@synopackageland/sdk 0.31.3 → 0.31.5
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 +20 -1
- package/dist/i18n/shell/de.json +3 -1
- package/dist/i18n/shell/en.json +3 -1
- package/dist/i18n/shell/es.json +3 -1
- package/dist/i18n/shell/fr.json +3 -1
- package/dist/i18n/shell/it.json +3 -1
- package/dist/i18n/shell/ja.json +3 -1
- package/dist/i18n/shell/ko.json +3 -1
- package/dist/i18n/shell/zh-CN.json +3 -1
- package/dist/i18n/shell/zh-TW.json +3 -1
- package/dist/index.js +1966 -1896
- package/dist/src/context.d.ts +5 -2
- package/dist/src/dsm/service-ports.d.ts +23 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/shell/UiUpdateNotice.vue.d.ts +8 -0
- package/dist/src/shell/i18n.d.ts +2 -0
- package/dist/src/vue.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vue.js +1200 -1134
- package/executor-manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ App's `backend/go.mod`.
|
|
|
7
7
|
| Import | Contents |
|
|
8
8
|
|---|---|
|
|
9
9
|
| `@synopackageland/sdk` | Headless: `Context` and the other types, `createBackgroundSaveFacade`, `createNasProvider`, `scopedPicker`, `createPortalAccess`, copy catalogs (`uiLocale`, `saveCopy`, …). Never imports Vue. |
|
|
10
|
-
| `@synopackageland/sdk/vue` | Everything above plus the components (`AppShell`, `PageActions`, `PageInfo`, `FilesPage`, `NasPicker`, `LoginPage`, `PortalSettings`, `BackgroundPanel`, `ExecutorSettings`, `ExecutorApproval`, `ExecutorNotice`, `DelegatePanel`, `BackgroundSavePanel`, `BackgroundSaveSettings`, `AuthorizationGate`, `AuthorizationSettings`) and composables (`createSession`, `useExecutorSetup`, `ExecutorSetupKey`, `useAuthorization`). |
|
|
10
|
+
| `@synopackageland/sdk/vue` | Everything above plus the components (`AppShell`, `PageActions`, `PageInfo`, `FilesPage`, `NasPicker`, `LoginPage`, `PortalSettings`, `BackgroundPanel`, `ExecutorSettings`, `ExecutorApproval`, `ExecutorNotice`, `UiUpdateNotice`, `DelegatePanel`, `BackgroundSavePanel`, `BackgroundSaveSettings`, `AuthorizationGate`, `AuthorizationSettings`) and composables (`createSession`, `useExecutorSetup`, `ExecutorSetupKey`, `useAuthorization`). |
|
|
11
11
|
| `@synopackageland/sdk/vue/style.css` | The component stylesheet. Import it once next to `@synopackageland/ui`'s theme in the App entry. |
|
|
12
12
|
| `@synopackageland/sdk/native` | For a native product with its own pinned root tasks: `ROOT_RUNTIME` (`createRootAccess`) and `AUTHORIZATION_RUNTIME` (`createAuthorizationAccess`), plain ES5 source the product renders into its own DSM window; `AuthorizationGate` shows the result. Generated Apps use the executor instead. Never imports Vue. |
|
|
13
13
|
| `@synopackageland/sdk/i18n/<capability>/<locale>.json` | Copy in `en`, `zh-TW`, `zh-CN`, `ja`, `ko`, `de`, `fr`, `es`, `it`. |
|
|
@@ -462,6 +462,18 @@ whose routes for the approval's reads (`delegate.status`, `bg.browse`)
|
|
|
462
462
|
differ provides its adapter there, and the dialog reads as its settings
|
|
463
463
|
page does.
|
|
464
464
|
|
|
465
|
+
A full page, or a window DSM left open, keeps running the UI it loaded across
|
|
466
|
+
a package upgrade until the page reloads (CLI 0.33.2+ windows opened after
|
|
467
|
+
the upgrade load the new UI themselves). The CLI's DSM window (CLI 0.33.2+) gives `ctx.uiUpdate`: its `check()` reads the package's `ui/config`
|
|
468
|
+
without the browser cache and answers whether the installed build replaced
|
|
469
|
+
the window this page loaded. `AppShell` given that `ctx` shows
|
|
470
|
+
`UiUpdateNotice` above every page once it answers yes: one line, Updated.
|
|
471
|
+
Reload the page, with a **Reload** button, and nothing held back. It checks on
|
|
472
|
+
mount, when the window reopens and when the page is shown again (at most once
|
|
473
|
+
a minute). A failed check, or a window without `uiUpdate`, shows nothing. An
|
|
474
|
+
App without `AppShell` places `<UiUpdateNotice :ctx="ctx" :locale="ctx.locale" />`
|
|
475
|
+
above its pages.
|
|
476
|
+
|
|
465
477
|
The backend's `executor.status` and `executor.control` are the SDK's: a Go
|
|
466
478
|
App registers `delegate.ExecutorRoutes`, and the bridge runtime serves them
|
|
467
479
|
with `capabilities.root`.
|
|
@@ -605,3 +617,10 @@ Browser permission results never authorize backend writes or grants.
|
|
|
605
617
|
|
|
606
618
|
See [DSM session transport and App migration](../docs/dsm-session-transport.md).
|
|
607
619
|
Do not add root/executor access to browser-only Apps such as OpenList.
|
|
620
|
+
|
|
621
|
+
### DSM service ports
|
|
622
|
+
|
|
623
|
+
`readDsmPorts(ctx)` returns localized PortInfo definitions on demand in the
|
|
624
|
+
current administrator's DSM session. Start it after rendering the App. Refusal,
|
|
625
|
+
missing session and timeout return `[]`; use package-account `dsmservices`
|
|
626
|
+
reading on the backend independently. See [service ports](../docs/dsm-service-ports.md).
|
package/dist/i18n/shell/de.json
CHANGED
|
@@ -7,5 +7,7 @@
|
|
|
7
7
|
"deniedMessage": "Ihr DSM-Konto darf diese App nicht verwenden. Bitten Sie einen Administrator, sie in den DSM-Anwendungsberechtigungen freizugeben.",
|
|
8
8
|
"notes": "Hinweise",
|
|
9
9
|
"notesCount": "Hinweise ({count})",
|
|
10
|
-
"loading": "Wird geladen…"
|
|
10
|
+
"loading": "Wird geladen…",
|
|
11
|
+
"uiUpdated": "Aktualisiert. Laden Sie die Seite neu",
|
|
12
|
+
"uiReload": "Neu laden"
|
|
11
13
|
}
|
package/dist/i18n/shell/en.json
CHANGED
|
@@ -7,5 +7,7 @@
|
|
|
7
7
|
"deniedMessage": "Your DSM account is not allowed to use this app. Ask an administrator to allow it in DSM Application Privileges.",
|
|
8
8
|
"notes": "Notes",
|
|
9
9
|
"notesCount": "Notes ({count})",
|
|
10
|
-
"loading": "Loading…"
|
|
10
|
+
"loading": "Loading…",
|
|
11
|
+
"uiUpdated": "Updated. Reload the page",
|
|
12
|
+
"uiReload": "Reload"
|
|
11
13
|
}
|
package/dist/i18n/shell/es.json
CHANGED
|
@@ -7,5 +7,7 @@
|
|
|
7
7
|
"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
8
|
"notes": "Notas",
|
|
9
9
|
"notesCount": "Notas ({count})",
|
|
10
|
-
"loading": "Cargando…"
|
|
10
|
+
"loading": "Cargando…",
|
|
11
|
+
"uiUpdated": "Actualizado. Vuelva a cargar la página",
|
|
12
|
+
"uiReload": "Volver a cargar"
|
|
11
13
|
}
|
package/dist/i18n/shell/fr.json
CHANGED
|
@@ -7,5 +7,7 @@
|
|
|
7
7
|
"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
8
|
"notes": "Remarques",
|
|
9
9
|
"notesCount": "Remarques ({count})",
|
|
10
|
-
"loading": "Chargement…"
|
|
10
|
+
"loading": "Chargement…",
|
|
11
|
+
"uiUpdated": "Mis à jour. Rechargez la page",
|
|
12
|
+
"uiReload": "Recharger"
|
|
11
13
|
}
|
package/dist/i18n/shell/it.json
CHANGED
|
@@ -7,5 +7,7 @@
|
|
|
7
7
|
"deniedMessage": "L’account DSM non è autorizzato a usare questa app. Chiedere a un amministratore di consentirlo nei privilegi delle applicazioni DSM.",
|
|
8
8
|
"notes": "Note",
|
|
9
9
|
"notesCount": "Note ({count})",
|
|
10
|
-
"loading": "Caricamento…"
|
|
10
|
+
"loading": "Caricamento…",
|
|
11
|
+
"uiUpdated": "Aggiornato. Ricarica la pagina",
|
|
12
|
+
"uiReload": "Ricarica"
|
|
11
13
|
}
|
package/dist/i18n/shell/ja.json
CHANGED
package/dist/i18n/shell/ko.json
CHANGED