mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-08-06 08:13:56 +08:00
feat(SubmitterWindow): add view submission queue button
add a button to open the submission queue page in new tab, alongside the close button in the header
This commit is contained in:
@@ -14,13 +14,23 @@
|
||||
</div>
|
||||
<h1 class="text-lg font-semibold">投稿应用</h1>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="submitter-close-button inline-flex h-8 w-8 items-center justify-center rounded-lg text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800"
|
||||
@click="closeWindow"
|
||||
>
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
<div class="flex items-center gap-2">
|
||||
<button
|
||||
type="button"
|
||||
class="inline-flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium text-blue-600 hover:bg-blue-50 dark:text-blue-400 dark:hover:bg-slate-800"
|
||||
@click="openSubmissionQueue"
|
||||
>
|
||||
<i class="fas fa-list"></i>
|
||||
查看当前投稿队列
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="submitter-close-button inline-flex h-8 w-8 items-center justify-center rounded-lg text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800"
|
||||
@click="closeWindow"
|
||||
>
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1042,6 +1052,10 @@ const updateFormTags = () => {
|
||||
formData.tags = selectedTags.value.map((t) => t.value).join(";");
|
||||
};
|
||||
|
||||
const openSubmissionQueue = (): void => {
|
||||
window.open("https://upload.spark-app.store/", "_blank", "noopener,noreferrer");
|
||||
};
|
||||
|
||||
const selectDebFile = async () => {
|
||||
const result = await window.ipcRenderer.invoke("select-deb-file");
|
||||
if (result?.success && result.filePath) {
|
||||
|
||||
Reference in New Issue
Block a user