@synopackageland/sdk 0.37.0 → 0.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -5
- package/dist/i18n/shell/de.json +1 -0
- package/dist/i18n/shell/en.json +1 -0
- package/dist/i18n/shell/es.json +1 -0
- package/dist/i18n/shell/fr.json +1 -0
- package/dist/i18n/shell/it.json +1 -0
- package/dist/i18n/shell/ja.json +1 -0
- package/dist/i18n/shell/ko.json +1 -0
- package/dist/i18n/shell/zh-CN.json +1 -0
- package/dist/i18n/shell/zh-TW.json +1 -0
- package/dist/index.js +1352 -1342
- package/dist/src/context.d.ts +4 -3
- package/dist/src/shell/i18n.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vue.js +915 -893
- package/executor-manifest.json +1 -1
- package/package.json +1 -1
- package/spec/protocol/v1/README.md +4 -2
- package/spec/protocol/v1/timeouts.json +1 -1
package/README.md
CHANGED
|
@@ -75,9 +75,17 @@ banner visibly names this App, the shell hides its duplicate brand block. It
|
|
|
75
75
|
also hides its default account footer while DSM's account menu is visible;
|
|
76
76
|
a custom `sidebar-footer` stays. Detection reads only the containing DSM
|
|
77
77
|
standalone window's DOM, with no settings API or administrator permission.
|
|
78
|
-
Hidden, missing or unrecognized banner markup keeps the shell's own chrome.
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
Hidden, missing or unrecognized banner markup keeps the shell's own chrome.
|
|
79
|
+
|
|
80
|
+
An App whose own frame already names it and shows the account (a full-page
|
|
81
|
+
web App) can drop DSM's banner with the CLI's `ui.banner: hidden` in
|
|
82
|
+
`dsm-package.yaml`. The shell then shows the account, and on a DSM full page a
|
|
83
|
+
Sign out button under it that calls `ctx.host.signOut()`, DSM's banner sign-out.
|
|
84
|
+
An App with its own `sidebar-footer` offers sign-out itself with the same call;
|
|
85
|
+
it answers `unsupported` outside DSM and is absent with CLIs before `ui.banner`.
|
|
86
|
+
Keep the banner (the default) when the App relies on DSM for the account menu.
|
|
87
|
+
`AppShell` reads only `fullPage` (or `host`), `displayName`, `appIcon` and
|
|
88
|
+
`user` (`ShellContext`), so the DSM window's ctx works as it is.
|
|
81
89
|
|
|
82
90
|
```vue
|
|
83
91
|
<AppShell v-model="page" :ctx="ctx" :locale="ctx.locale" :pages="pages" sidebar-storage-key="HelloGo" />
|
|
@@ -485,8 +493,17 @@ with `capabilities.root`.
|
|
|
485
493
|
`signal` rejects it with `{code: 'request_canceled'}`, for a page the user
|
|
486
494
|
leaves; past `clientTimeout(ctx.requestTimeout)` it rejects with `{code:
|
|
487
495
|
'request_timeout'}`.
|
|
488
|
-
Without `ctx.requestTimeout` the deadline is `DEFAULT_REQUEST_TIMEOUT`,
|
|
489
|
-
seconds like the backend's, and the client waits
|
|
496
|
+
Without `ctx.requestTimeout` the deadline is `DEFAULT_REQUEST_TIMEOUT`, 300
|
|
497
|
+
seconds like the backend's, and the client waits 302. Explicit App deadlines
|
|
498
|
+
still take precedence; set the backend and browser together.
|
|
499
|
+
|
|
500
|
+
For NAS work of uncertain duration, submit to the existing background worker,
|
|
501
|
+
return its original job ID and poll authorized status/result endpoints. Show
|
|
502
|
+
queued/running as still working, optionally labeling a long wait as slow; do not
|
|
503
|
+
infer failure from elapsed time or a failed status request. A timeout after a
|
|
504
|
+
mutation was sent leaves its completion uncertain: read back the original job
|
|
505
|
+
or operation, without automatically submitting a new one. See
|
|
506
|
+
[request deadlines](../docs/request-deadlines.md).
|
|
490
507
|
|
|
491
508
|
```ts
|
|
492
509
|
const controller = new AbortController()
|
package/dist/i18n/shell/de.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"background": "Hintergrundaufträge",
|
|
4
4
|
"administrator": "Administrator",
|
|
5
5
|
"dsmUser": "DSM-Benutzer",
|
|
6
|
+
"signOut": "Abmelden",
|
|
6
7
|
"deniedTitle": "Kein Zugriff",
|
|
7
8
|
"deniedMessage": "Ihr DSM-Konto darf diese App nicht verwenden. Bitten Sie einen Administrator, sie in den DSM-Anwendungsberechtigungen freizugeben.",
|
|
8
9
|
"notes": "Hinweise",
|
package/dist/i18n/shell/en.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"background": "Background jobs",
|
|
4
4
|
"administrator": "Administrator",
|
|
5
5
|
"dsmUser": "DSM user",
|
|
6
|
+
"signOut": "Sign out",
|
|
6
7
|
"deniedTitle": "No access",
|
|
7
8
|
"deniedMessage": "Your DSM account is not allowed to use this app. Ask an administrator to allow it in DSM Application Privileges.",
|
|
8
9
|
"notes": "Notes",
|
package/dist/i18n/shell/es.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"background": "Tareas en segundo plano",
|
|
4
4
|
"administrator": "Administrador",
|
|
5
5
|
"dsmUser": "Usuario DSM",
|
|
6
|
+
"signOut": "Cerrar sesión",
|
|
6
7
|
"deniedTitle": "Sin acceso",
|
|
7
8
|
"deniedMessage": "Su cuenta de DSM no tiene permiso para usar esta aplicación. Pida a un administrador que la permita en los privilegios de aplicaciones de DSM.",
|
|
8
9
|
"notes": "Notas",
|
package/dist/i18n/shell/fr.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"background": "Tâches en arrière-plan",
|
|
4
4
|
"administrator": "Administrateur",
|
|
5
5
|
"dsmUser": "Utilisateur DSM",
|
|
6
|
+
"signOut": "Se déconnecter",
|
|
6
7
|
"deniedTitle": "Accès refusé",
|
|
7
8
|
"deniedMessage": "Votre compte DSM n’est pas autorisé à utiliser cette application. Demandez à un administrateur de l’autoriser dans les privilèges d’application de DSM.",
|
|
8
9
|
"notes": "Remarques",
|
package/dist/i18n/shell/it.json
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"background": "Attività in background",
|
|
4
4
|
"administrator": "Amministratore",
|
|
5
5
|
"dsmUser": "Utente DSM",
|
|
6
|
+
"signOut": "Esci",
|
|
6
7
|
"deniedTitle": "Accesso negato",
|
|
7
8
|
"deniedMessage": "L’account DSM non è autorizzato a usare questa app. Chiedere a un amministratore di consentirlo nei privilegi delle applicazioni DSM.",
|
|
8
9
|
"notes": "Note",
|
package/dist/i18n/shell/ja.json
CHANGED
package/dist/i18n/shell/ko.json
CHANGED