feat(publish): add tenant publish management with desktop deep-link

Expose tenant-authenticated publish task list and retry endpoints so the
admin web can show desktop publish state without an Electron bridge, and
register a `shengxintui://` deep-link so the page can hand off to the
desktop client workbench.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-07 12:07:28 +08:00
parent c347f583a4
commit c1e7c5e90c
15 changed files with 1429 additions and 56 deletions
@@ -2,7 +2,7 @@ import { app } from 'electron/main'
let initialized = false
export function initSingleInstance(onSecondInstance?: () => void): boolean {
export function initSingleInstance(onSecondInstance?: (argv: string[]) => void): boolean {
if (initialized) {
return true
}
@@ -13,8 +13,8 @@ export function initSingleInstance(onSecondInstance?: () => void): boolean {
return false
}
app.on('second-instance', () => {
onSecondInstance?.()
app.on('second-instance', (_event, argv) => {
onSecondInstance?.(argv)
})
return true