@synopackageland/sdk 0.10.1 → 0.10.2
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 +14 -3
- package/dist/i18n/bridge/de.json +1 -0
- package/dist/i18n/bridge/en.json +1 -0
- package/dist/i18n/bridge/es.json +1 -0
- package/dist/i18n/bridge/fr.json +1 -0
- package/dist/i18n/bridge/it.json +1 -0
- package/dist/i18n/bridge/ja.json +1 -0
- package/dist/i18n/bridge/ko.json +1 -0
- package/dist/i18n/bridge/zh-CN.json +2 -1
- package/dist/i18n/bridge/zh-TW.json +1 -0
- package/dist/i18n/shell/zh-CN.json +1 -1
- package/dist/index.js +251 -242
- package/dist/src/bridge/i18n.d.ts +2 -2
- package/dist/src/delegate/ExecutorApproval.vue.d.ts +2 -2
- package/dist/src/delegate/executor-setup.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vue.js +1151 -1129
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -143,7 +143,11 @@ the DSM password (`ExecutorSettings`: the form, the status and the refusal's
|
|
|
143
143
|
reason) and the pages show once the executor is ready; anyone else is told to
|
|
144
144
|
ask an administrator. A later status that is not ready brings it back, and
|
|
145
145
|
with `ctx` so does one read when the window reopens. Without a provided
|
|
146
|
-
executor (a dev server, a Portal page) the pages show at once.
|
|
146
|
+
executor (a dev server, a Portal page) the pages show at once. On a full page
|
|
147
|
+
(`ctx.fullPage`, or a standalone host) the approval names the App with
|
|
148
|
+
`ctx.displayName` and `ctx.appIcon`, as a DSM window's title bar does. An
|
|
149
|
+
approval after which the executor still reads `needs-admin-approval` says it
|
|
150
|
+
could not be completed, with the reason the status carries.
|
|
147
151
|
`AuthorizationGate` cannot approve the executor: its `request()` takes no
|
|
148
152
|
password.
|
|
149
153
|
|
|
@@ -168,6 +172,11 @@ back. It checks on mount, on each status the executor publishes and when the
|
|
|
168
172
|
window reopens. An App without `AppShell` places
|
|
169
173
|
`<ExecutorNotice :ctx="ctx" :locale="ctx.locale" />` above its pages. A
|
|
170
174
|
root-ops App keeps `ExecutorApproval`; inside it the notice never shows.
|
|
175
|
+
The notice uses the setup the App provides (`ExecutorSetupKey`) before
|
|
176
|
+
`ctx.executor`, and that setup's optional `call` before `ctx.call`: an App
|
|
177
|
+
whose routes for the approval's reads (`delegate.status`, `bg.browse`)
|
|
178
|
+
differ provides its adapter there, and the dialog reads as its settings
|
|
179
|
+
page does.
|
|
171
180
|
|
|
172
181
|
The backend's `executor.status` and `executor.control` are the SDK's: a Go
|
|
173
182
|
App registers `delegate.ExecutorRoutes`, and the bridge runtime serves them
|
|
@@ -207,8 +216,10 @@ key the order is the App's locale, the SDK's locale, then `en`.
|
|
|
207
216
|
|
|
208
217
|
`bridgeErrorCopy(error, locale)` is the text of a code that the bridge runtime
|
|
209
218
|
adds for Python, Node and Rust Apps: `app_unavailable`, and the services'
|
|
210
|
-
`limit_exceeded`, `read_failed` and `identity_unavailable
|
|
211
|
-
|
|
219
|
+
`limit_exceeded`, `read_failed` and `identity_unavailable`; and of
|
|
220
|
+
`request_timeout`, which a Go App and the runtime send past the request
|
|
221
|
+
deadline and an SDK client gives when it stops waiting. For any other code it
|
|
222
|
+
returns `undefined`, so the App falls back to its own text. Its catalogs,
|
|
212
223
|
`i18n/bridge/<locale>.json`, are generated from `spec/bridge/v1/errors.json`.
|
|
213
224
|
|
|
214
225
|
The Vue entry needs the peer dependencies `vue`, `@synopackageland/ui` and
|
package/dist/i18n/bridge/de.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app_unavailable": "Die App ist derzeit nicht verfügbar. Versuchen Sie es später erneut.",
|
|
3
|
+
"request_timeout": "Die Anfrage hat zu lange gedauert und wurde abgebrochen. Versuchen Sie es erneut oder mit einer kleineren Aufgabe.",
|
|
3
4
|
"limit_exceeded": "Die Datei ist größer als zulässig.",
|
|
4
5
|
"read_failed": "Die Datei kann nicht gelesen werden. Bitte versuchen Sie es später erneut.",
|
|
5
6
|
"identity_unavailable": "Dieses Benutzerkonto kann nicht ermittelt werden. Bitte versuchen Sie es später erneut."
|
package/dist/i18n/bridge/en.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app_unavailable": "The App is not available right now. Try again later.",
|
|
3
|
+
"request_timeout": "The request took too long and was stopped. Try again, or try a smaller task.",
|
|
3
4
|
"limit_exceeded": "The file is larger than allowed.",
|
|
4
5
|
"read_failed": "Unable to read the file. Please try again later.",
|
|
5
6
|
"identity_unavailable": "Unable to identify this user account. Please try again later."
|
package/dist/i18n/bridge/es.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app_unavailable": "La App no está disponible en este momento. Vuelva a intentarlo más tarde.",
|
|
3
|
+
"request_timeout": "La solicitud tardó demasiado y se detuvo. Vuelva a intentarlo o pruebe con una tarea más pequeña.",
|
|
3
4
|
"limit_exceeded": "El archivo supera el tamaño permitido.",
|
|
4
5
|
"read_failed": "No se puede leer el archivo. Vuelva a intentarlo más tarde.",
|
|
5
6
|
"identity_unavailable": "No se puede identificar esta cuenta de usuario. Vuelva a intentarlo más tarde."
|
package/dist/i18n/bridge/fr.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app_unavailable": "L’App n’est pas disponible pour le moment. Réessayez plus tard.",
|
|
3
|
+
"request_timeout": "La requête a pris trop de temps et a été arrêtée. Réessayez ou essayez une tâche plus petite.",
|
|
3
4
|
"limit_exceeded": "Le fichier dépasse la taille autorisée.",
|
|
4
5
|
"read_failed": "Impossible de lire le fichier. Veuillez réessayer ultérieurement.",
|
|
5
6
|
"identity_unavailable": "Impossible d'identifier ce compte utilisateur. Veuillez réessayer ultérieurement."
|
package/dist/i18n/bridge/it.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app_unavailable": "L’App non è al momento disponibile. Riprovare più tardi.",
|
|
3
|
+
"request_timeout": "La richiesta ha impiegato troppo tempo ed è stata interrotta. Riprovare o provare con un’attività più piccola.",
|
|
3
4
|
"limit_exceeded": "Il file supera le dimensioni consentite.",
|
|
4
5
|
"read_failed": "Impossibile leggere il file. Riprovare più tardi.",
|
|
5
6
|
"identity_unavailable": "Impossibile identificare questo account utente. Riprovare più tardi."
|
package/dist/i18n/bridge/ja.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app_unavailable": "App は現在使用できません。しばらくしてから再試行してください。",
|
|
3
|
+
"request_timeout": "リクエストの処理に時間がかかりすぎたため、停止しました。もう一度お試しいただくか、範囲を小さくしてください。",
|
|
3
4
|
"limit_exceeded": "ファイルが許可されたサイズを超えています。",
|
|
4
5
|
"read_failed": "ファイルを読み取れません。後でもう一度お試しください。",
|
|
5
6
|
"identity_unavailable": "このユーザー アカウントを識別できません。後でもう一度お試しください。"
|
package/dist/i18n/bridge/ko.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app_unavailable": "현재 App을 사용할 수 없습니다. 나중에 다시 시도하십시오.",
|
|
3
|
+
"request_timeout": "요청 처리 시간이 너무 오래 걸려 중지되었습니다. 다시 시도하거나 작업 범위를 줄이십시오.",
|
|
3
4
|
"limit_exceeded": "파일이 허용된 크기를 초과합니다.",
|
|
4
5
|
"read_failed": "파일을 읽을 수 없습니다. 나중에 다시 시도하십시오.",
|
|
5
6
|
"identity_unavailable": "이 사용자 계정을 확인할 수 없습니다. 나중에 다시 시도하십시오."
|