@kinetis/vector-ui 0.10.1 → 0.10.3
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/CHANGELOG.md +88 -0
- package/app/components/Vx/Action/Dialog.vue +15 -9
- package/app/components/Vx/Cell/RichText.vue +1 -1
- package/app/components/Vx/Import/Dialog.vue +14 -3
- package/app/components/Vx/Inbox.vue +10 -3
- package/app/components/Vx/Input/KeyValue.vue +9 -4
- package/app/components/Vx/Input/Number.vue +2 -1
- package/app/components/Vx/Input/Relation.vue +15 -5
- package/app/components/Vx/Input/Repeater.vue +15 -5
- package/app/components/Vx/Input/RichText.vue +2 -2
- package/app/components/Vx/Input/Upload.vue +5 -3
- package/app/components/Vx/List/BulkEdit.vue +5 -5
- package/app/components/Vx/List/FilterBar.vue +14 -10
- package/app/components/Vx/Resource/Audit.vue +4 -1
- package/app/components/Vx/Resource/Form.vue +23 -8
- package/app/components/Vx/Resource/RelationPanel.vue +2 -1
- package/app/components/Vx/Resource/Table.vue +32 -15
- package/app/components/Vx/Widget/Card.vue +2 -1
- package/app/components/Vx/Widget/Table.vue +22 -4
- package/app/components/Vx/Widget/Trend.vue +1 -1
- package/app/composables/useVectorApi.ts +70 -14
- package/app/composables/useVectorAuthStore.ts +32 -7
- package/app/composables/useVectorBranding.ts +1 -1
- package/app/composables/useVectorExtensions.ts +1 -1
- package/app/composables/useVectorFields.ts +7 -1
- package/app/composables/useVectorForm.ts +8 -3
- package/app/composables/useVectorIdle.ts +3 -1
- package/app/composables/useVectorImpersonation.ts +11 -11
- package/app/composables/useVectorInputs.ts +6 -6
- package/app/composables/useVectorJobs.ts +6 -3
- package/app/composables/useVectorLocale.ts +3 -5
- package/app/composables/useVectorResource.ts +37 -32
- package/app/composables/useVectorSchema.ts +9 -1
- package/app/i18n/ar/actions.ts +1 -0
- package/app/i18n/ar/shell.ts +3 -0
- package/app/i18n/de/actions.ts +1 -0
- package/app/i18n/de/shell.ts +3 -0
- package/app/i18n/en/actions.ts +1 -0
- package/app/i18n/en/shell.ts +3 -0
- package/app/i18n/es/actions.ts +1 -0
- package/app/i18n/es/shell.ts +3 -0
- package/app/i18n/fr/actions.ts +1 -0
- package/app/i18n/fr/shell.ts +3 -0
- package/app/i18n/he/actions.ts +1 -0
- package/app/i18n/he/shell.ts +3 -0
- package/app/i18n/index.ts +15 -1
- package/app/i18n/it/actions.ts +1 -0
- package/app/i18n/it/shell.ts +3 -0
- package/app/i18n/ja/actions.ts +1 -0
- package/app/i18n/ja/shell.ts +3 -0
- package/app/i18n/ko/actions.ts +1 -0
- package/app/i18n/ko/shell.ts +3 -0
- package/app/i18n/nl/actions.ts +1 -0
- package/app/i18n/nl/shell.ts +3 -0
- package/app/i18n/pl/actions.ts +1 -0
- package/app/i18n/pl/shell.ts +3 -0
- package/app/i18n/pt/actions.ts +1 -0
- package/app/i18n/pt/shell.ts +3 -0
- package/app/i18n/pt-BR/actions.ts +1 -0
- package/app/i18n/pt-BR/shell.ts +3 -0
- package/app/i18n/ru/actions.ts +1 -0
- package/app/i18n/ru/shell.ts +3 -0
- package/app/i18n/tr/actions.ts +1 -0
- package/app/i18n/tr/shell.ts +3 -0
- package/app/i18n/uk/actions.ts +1 -0
- package/app/i18n/uk/shell.ts +3 -0
- package/app/i18n/zh-Hans/actions.ts +1 -0
- package/app/i18n/zh-Hans/shell.ts +3 -0
- package/app/pages/jobs/index.vue +18 -4
- package/app/pages/login.vue +11 -4
- package/app/pages/settings.vue +4 -3
- package/app/plugins/vector-extensions.client.ts +1 -1
- package/app/plugins/vector-i18n.ts +2 -2
- package/app/utils/files.ts +5 -2
- package/app/utils/internal/paths.ts +12 -0
- package/app/utils/internal/patterns.ts +50 -0
- package/app/utils/internal/violations.ts +26 -0
- package/app/utils/richtext.ts +2 -2
- package/app/utils/rules.ts +2 -12
- package/package.json +1 -1
|
@@ -38,46 +38,47 @@ export function filterQuery(filter: VectorFilterQuery | undefined, prefix = 'fil
|
|
|
38
38
|
return query
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
/** The
|
|
42
|
-
|
|
43
|
-
const
|
|
41
|
+
/** The query string of a list request. */
|
|
42
|
+
function listQuery(options: VectorListOptions): Record<string, string | number> {
|
|
43
|
+
const query: Record<string, string | number> = {}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
if (options.page) {
|
|
46
|
+
query.page = options.page
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
if (options.perPage) {
|
|
50
|
+
query.perPage = options.perPage
|
|
51
|
+
}
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
if (options.sort && options.sort.length > 0) {
|
|
54
|
+
query.sort = options.sort.map(s => (s.order === 'desc' ? '-' : '') + s.field).join(',')
|
|
55
|
+
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
if (options.q) {
|
|
58
|
+
query.q = options.q
|
|
59
|
+
}
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
if (options.group) {
|
|
62
|
+
query.group = options.group
|
|
63
|
+
}
|
|
63
64
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
if (options.summaries) {
|
|
66
|
+
query.summaries = '1'
|
|
67
|
+
}
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
if (options.columns && options.columns.length > 0) {
|
|
70
|
+
query.columns = options.columns.join(',')
|
|
71
|
+
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
73
|
+
return { ...query, ...filterQuery(options.filter) }
|
|
74
|
+
}
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
/** The record endpoints for one resource. */
|
|
77
|
+
export function useVectorResource(slug: MaybeRefOrGetter<string>) {
|
|
78
|
+
const api = useVectorApi()
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
function base() {
|
|
81
|
+
return `/vector/r/${encodeURIComponent(toValue(slug))}`
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
function list(options: VectorListOptions = {}): Promise<VectorPage> {
|
|
@@ -126,10 +127,14 @@ export function useVectorResource(slug: MaybeRefOrGetter<string>) {
|
|
|
126
127
|
return api<{ data: VectorRecord[] }>(`${base()}/changes`, { method: 'POST', body: { changes: list } })
|
|
127
128
|
}
|
|
128
129
|
|
|
129
|
-
/**
|
|
130
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Stores one file for a file or image field; the answer's key is the value to write.
|
|
132
|
+
* `record` is the id of the record being edited: an account that may update it but not create needs it.
|
|
133
|
+
*/
|
|
134
|
+
function upload(field: string, file: File, record?: string | number | null): Promise<VectorUploaded> {
|
|
131
135
|
const body = new FormData()
|
|
132
136
|
body.append('file', file)
|
|
137
|
+
if (record !== undefined && record !== null && record !== '') body.append('record', String(record))
|
|
133
138
|
return api<VectorUploaded>(`${base()}/fields/${encodeURIComponent(field)}/upload`, { method: 'POST', body })
|
|
134
139
|
}
|
|
135
140
|
|
|
@@ -174,7 +179,7 @@ export function useVectorResource(slug: MaybeRefOrGetter<string>) {
|
|
|
174
179
|
try {
|
|
175
180
|
response = await asFile(() => api.raw(`${base()}/actions/${encodeURIComponent(name)}`, {
|
|
176
181
|
method: 'POST',
|
|
177
|
-
body: { ...
|
|
182
|
+
body: { ...selection, fields },
|
|
178
183
|
responseType: 'blob',
|
|
179
184
|
}))
|
|
180
185
|
} catch (error) {
|
|
@@ -4,10 +4,14 @@ import type { VectorResource, VectorSchema } from '#vector/app/types/vector'
|
|
|
4
4
|
// language switched twice, say) must not replace it. One app per page.
|
|
5
5
|
let latestLoad = 0
|
|
6
6
|
|
|
7
|
+
/** The descriptor contract this UI reads: the `version` kinetis/vector publishes (VectorRegistry::VERSION). */
|
|
8
|
+
export const DESCRIPTOR_VERSION = 4
|
|
9
|
+
|
|
7
10
|
/**
|
|
8
11
|
* The descriptor, loaded once per session and shared by every page. The
|
|
9
12
|
* server's ETag makes a reload cheap; the layer reloads it after login
|
|
10
|
-
* because the permission overlay is per identity.
|
|
13
|
+
* because the permission overlay is per identity. A descriptor of another
|
|
14
|
+
* contract version is refused rather than read as this one.
|
|
11
15
|
*/
|
|
12
16
|
export function useVectorSchema() {
|
|
13
17
|
const schema = useState<VectorSchema | null>('vector.schema', () => null)
|
|
@@ -26,6 +30,10 @@ export function useVectorSchema() {
|
|
|
26
30
|
try {
|
|
27
31
|
const answer = await api<VectorSchema>('/vector/schema')
|
|
28
32
|
|
|
33
|
+
if (answer?.version !== DESCRIPTOR_VERSION) {
|
|
34
|
+
throw new Error(vt('shell.unsupportedDescriptor', { version: String(answer?.version), supported: DESCRIPTOR_VERSION }))
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
if (request === latestLoad) {
|
|
30
38
|
schema.value = answer
|
|
31
39
|
adoptMinorUnits(answer.minorUnits ?? {})
|
package/app/i18n/ar/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: 'تم تنفيذ {label}.',
|
|
9
9
|
declined: 'رُفض الإجراء.',
|
|
10
|
+
redirectRefused: 'طلب الإجراء فتح صفحة خارج لوحة الإدارة، ولم تُفتح.',
|
|
10
11
|
downloadStarted: 'بدأ التنزيل.',
|
|
11
12
|
queued: 'أُضيف {label} إلى قائمة الانتظار.',
|
|
12
13
|
}
|
package/app/i18n/ar/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'تبديل السمة',
|
|
9
9
|
language: 'اللغة: {name}',
|
|
10
10
|
languageFailed: 'تعذّر حفظ اللغة: {error}',
|
|
11
|
+
unsupportedDescriptor: 'تنشر الواجهة البرمجية الإصدار {version} من الواصف، وهذه الإدارة تقرأ الإصدار {supported}. ثبّت إصدارين متوافقين من kinetis/vector وvector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'الرئيسية',
|
|
13
14
|
dashboard: 'لوحة المعلومات',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'إنهاء التصرف باسم مستخدم آخر',
|
|
27
28
|
noAccess: 'ليس لدى {name} صلاحية الوصول إلى لوحة الإدارة، لذا لا يوجد ما يمكن رؤيته باسمه. تم إنهاء التصرف باسمه.',
|
|
28
29
|
noToken: 'استجاب التطبيق دون رمز مميز أو إعادة تحميل، لذا لم يتغير شيء.',
|
|
30
|
+
ended: 'انتهت مدة انتحال الهوية، فعدت إلى حسابك الخاص.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'البحث في السجلات والموارد…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'يُرجى إدخال عنوان بريد إلكتروني صالح',
|
|
48
50
|
welcome: 'مرحبًا بعودتك، {name}.',
|
|
49
51
|
signedOutIdle: 'تم تسجيل خروجك بعد {minutes} دقيقة من عدم النشاط. سجّل الدخول مجددًا للمتابعة من حيث توقفت.',
|
|
52
|
+
impersonationEnded: 'انتهت مدة انتحال الهوية وتعذّر تجديد جلستك الخاصة. سجّل الدخول مجددًا للمتابعة.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'لوحة المعلومات',
|
package/app/i18n/de/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: '{label} abgeschlossen.',
|
|
9
9
|
declined: 'Die Aktion wurde abgelehnt.',
|
|
10
|
+
redirectRefused: 'Die Aktion wollte eine Seite außerhalb des Admin-Bereichs öffnen; sie wurde nicht geöffnet.',
|
|
10
11
|
downloadStarted: 'Download gestartet.',
|
|
11
12
|
queued: '{label} wurde in die Warteschlange gestellt.',
|
|
12
13
|
}
|
package/app/i18n/de/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Design wechseln',
|
|
9
9
|
language: 'Sprache: {name}',
|
|
10
10
|
languageFailed: 'Die Sprache konnte nicht gespeichert werden: {error}',
|
|
11
|
+
unsupportedDescriptor: 'Die API veröffentlicht die Deskriptor-Version {version}; dieser Admin liest Version {supported}. Installieren Sie zueinander passende Versionen von kinetis/vector und vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Hauptmenü',
|
|
13
14
|
dashboard: 'Dashboard',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Identitätswechsel beenden',
|
|
27
28
|
noAccess: '{name} hat keinen Zugriff auf den Admin, daher gibt es in dieser Rolle nichts zu sehen. Der Identitätswechsel wurde beendet.',
|
|
28
29
|
noToken: 'Die Anwendung hat weder ein Token noch ein Neuladen geliefert, daher wurde nichts geändert.',
|
|
30
|
+
ended: 'Ihre Identitätsübernahme ist abgelaufen; Sie sind wieder in Ihrem eigenen Konto.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Datensätze und Ressourcen suchen…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Geben Sie eine gültige E-Mail-Adresse ein',
|
|
48
50
|
welcome: 'Willkommen zurück, {name}.',
|
|
49
51
|
signedOutIdle: 'Sie wurden nach {minutes} Minuten ohne Aktivität abgemeldet. Melden Sie sich erneut an, um dort weiterzumachen, wo Sie aufgehört haben.',
|
|
52
|
+
impersonationEnded: 'Ihre Identitätsübernahme ist abgelaufen, und Ihre eigene Sitzung konnte nicht erneuert werden. Melden Sie sich erneut an, um fortzufahren.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Dashboard',
|
package/app/i18n/en/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: '{label} done.',
|
|
9
9
|
declined: 'The action declined.',
|
|
10
|
+
redirectRefused: 'The action asked to open a page outside the admin; it was not opened.',
|
|
10
11
|
downloadStarted: 'Download started.',
|
|
11
12
|
queued: '{label} was queued.',
|
|
12
13
|
}
|
package/app/i18n/en/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Toggle theme',
|
|
9
9
|
language: 'Language: {name}',
|
|
10
10
|
languageFailed: 'The language could not be saved: {error}',
|
|
11
|
+
unsupportedDescriptor: 'The API publishes descriptor version {version}; this admin reads version {supported}. Install matching releases of kinetis/vector and vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Main',
|
|
13
14
|
dashboard: 'Dashboard',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Stop impersonating',
|
|
27
28
|
noAccess: '{name} has no access to the admin, so there is nothing to see as them. Impersonation was stopped.',
|
|
28
29
|
noToken: 'The application answered without a token or a reload, so nothing changed.',
|
|
30
|
+
ended: 'Your impersonation ran out, so you are back in your own account.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Search records and resources…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Enter a valid e-mail address',
|
|
48
50
|
welcome: 'Welcome back, {name}.',
|
|
49
51
|
signedOutIdle: 'You were signed out after {minutes} minutes of inactivity. Sign in again to continue where you left off.',
|
|
52
|
+
impersonationEnded: 'Your impersonation ran out and your own session could not be renewed. Sign in again to continue.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Dashboard',
|
package/app/i18n/es/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: 'Se completó {label}.',
|
|
9
9
|
declined: 'La acción se rechazó.',
|
|
10
|
+
redirectRefused: 'La acción pidió abrir una página fuera del panel; no se ha abierto.',
|
|
10
11
|
downloadStarted: 'Descarga iniciada.',
|
|
11
12
|
queued: '{label} se puso en cola.',
|
|
12
13
|
}
|
package/app/i18n/es/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Cambiar tema',
|
|
9
9
|
language: 'Idioma: {name}',
|
|
10
10
|
languageFailed: 'No se pudo guardar el idioma: {error}',
|
|
11
|
+
unsupportedDescriptor: 'La API publica la versión {version} del descriptor; este panel lee la versión {supported}. Instale versiones compatibles de kinetis/vector y vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Principal',
|
|
13
14
|
dashboard: 'Panel',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Dejar de actuar como otro usuario',
|
|
27
28
|
noAccess: '{name} no tiene acceso a la administración, así que no hay nada que ver en su nombre. Se dejó de actuar en su nombre.',
|
|
28
29
|
noToken: 'La aplicación respondió sin un token ni una recarga, así que no cambió nada.',
|
|
30
|
+
ended: 'Tu suplantación ha caducado, así que vuelves a estar en tu propia cuenta.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Buscar registros y recursos…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Introduzca una dirección de correo electrónico válida',
|
|
48
50
|
welcome: 'Hola de nuevo, {name}.',
|
|
49
51
|
signedOutIdle: 'Se cerró la sesión tras {minutes} minutos de inactividad. Inicie sesión de nuevo para continuar donde lo dejó.',
|
|
52
|
+
impersonationEnded: 'Tu suplantación ha caducado y no se pudo renovar tu propia sesión. Inicia sesión de nuevo para continuar.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Panel',
|
package/app/i18n/fr/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: '{label} terminé.',
|
|
9
9
|
declined: 'L’action a été refusée.',
|
|
10
|
+
redirectRefused: 'L’action demandait d’ouvrir une page hors de l’administration ; elle n’a pas été ouverte.',
|
|
10
11
|
downloadStarted: 'Téléchargement lancé.',
|
|
11
12
|
queued: '{label} a été mis en file d’attente.',
|
|
12
13
|
}
|
package/app/i18n/fr/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Changer de thème',
|
|
9
9
|
language: 'Langue : {name}',
|
|
10
10
|
languageFailed: 'La langue n’a pas pu être enregistrée : {error}',
|
|
11
|
+
unsupportedDescriptor: 'L’API publie la version {version} du descripteur ; cette administration lit la version {supported}. Installez des versions correspondantes de kinetis/vector et vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Principal',
|
|
13
14
|
dashboard: 'Tableau de bord',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Reprendre votre identité',
|
|
27
28
|
noAccess: '{name} n’a pas accès à l’administration, il n’y a donc rien à voir en son nom. L’action en son nom a été arrêtée.',
|
|
28
29
|
noToken: 'L’application a répondu sans jeton ni rechargement, rien n’a donc changé.',
|
|
30
|
+
ended: 'Votre usurpation d’identité a expiré : vous êtes de retour dans votre propre compte.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Rechercher des enregistrements et des ressources…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Saisissez une adresse e-mail valide',
|
|
48
50
|
welcome: 'Ravi de vous revoir, {name}.',
|
|
49
51
|
signedOutIdle: 'Vous avez été déconnecté après {minutes} minutes d’inactivité. Reconnectez-vous pour reprendre où vous en étiez.',
|
|
52
|
+
impersonationEnded: 'Votre usurpation d’identité a expiré et votre propre session n’a pas pu être renouvelée. Reconnectez-vous pour continuer.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Tableau de bord',
|
package/app/i18n/he/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: 'הפעולה "{label}" הושלמה.',
|
|
9
9
|
declined: 'הפעולה נדחתה.',
|
|
10
|
+
redirectRefused: 'הפעולה ביקשה לפתוח דף מחוץ לממשק הניהול, והוא לא נפתח.',
|
|
10
11
|
downloadStarted: 'ההורדה החלה.',
|
|
11
12
|
queued: 'הפעולה "{label}" נוספה לתור.',
|
|
12
13
|
}
|
package/app/i18n/he/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'החלפת ערכת נושא',
|
|
9
9
|
language: 'שפה: {name}',
|
|
10
10
|
languageFailed: 'לא ניתן לשמור את השפה: {error}',
|
|
11
|
+
unsupportedDescriptor: 'ה-API מפרסם את גרסה {version} של המתאר; ממשק הניהול הזה קורא את גרסה {supported}. התקינו גרסאות תואמות של kinetis/vector ו-vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'ראשי',
|
|
13
14
|
dashboard: 'לוח בקרה',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'הפסקת ההתחזות',
|
|
27
28
|
noAccess: 'ל־{name} אין גישה לממשק הניהול, כך שאין מה להציג בשם משתמש זה. ההתחזות הופסקה.',
|
|
28
29
|
noToken: 'האפליקציה השיבה בלי אסימון ובלי טעינה מחדש, ולכן דבר לא השתנה.',
|
|
30
|
+
ended: 'תוקף ההתחזות פג, ולכן חזרת לחשבון שלך.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'חיפוש רשומות ומשאבים…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'יש להזין כתובת דוא״ל תקינה',
|
|
48
50
|
welcome: 'שמחים לראות אותך שוב, {name}.',
|
|
49
51
|
signedOutIdle: 'יצאת מהמערכת לאחר {minutes} דקות ללא פעילות. יש להיכנס שוב כדי להמשיך מאותו מקום.',
|
|
52
|
+
impersonationEnded: 'תוקף ההתחזות פג ולא ניתן היה לחדש את ההפעלה שלך. התחבר מחדש כדי להמשיך.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'לוח בקרה',
|
package/app/i18n/index.ts
CHANGED
|
@@ -38,6 +38,19 @@ export function vuetifyLocale(tag: string): string {
|
|
|
38
38
|
return tag.replace(/-([a-z])/gi, (_, c: string) => c.toUpperCase())
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/** The Vuetify locale a tag switches to, of those `known`: its own, else its language's, else English. */
|
|
42
|
+
export function knownVuetifyLocale(tag: string, known: Record<string, unknown>): string {
|
|
43
|
+
const own = vuetifyLocale(tag)
|
|
44
|
+
if (known[own]) return own
|
|
45
|
+
const language = tag.split('-')[0]!
|
|
46
|
+
return known[language] ? language : 'en'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** The direction a language tag is written in. */
|
|
50
|
+
export function textDirection(tag: string): 'ltr' | 'rtl' {
|
|
51
|
+
return isRtl(tag) ? 'rtl' : 'ltr'
|
|
52
|
+
}
|
|
53
|
+
|
|
41
54
|
/**
|
|
42
55
|
* A language's name in the viewer's language (`de` shown in English is
|
|
43
56
|
* "German", in Hebrew "גרמנית"), from the browser's own CLDR data: a
|
|
@@ -103,7 +116,8 @@ export function pluralRule(locale: string): (choice: number, choicesLength: numb
|
|
|
103
116
|
category = 'other'
|
|
104
117
|
}
|
|
105
118
|
const index = forms.indexOf(category)
|
|
106
|
-
|
|
119
|
+
if (index >= 0) return index
|
|
120
|
+
return forms.includes('other') ? forms.indexOf('other') : choicesLength - 1
|
|
107
121
|
}
|
|
108
122
|
if (choicesLength === 2) return Math.abs(choice) === 1 ? 0 : 1
|
|
109
123
|
return Math.min(Math.max(choicesLength - 1, 0), Math.abs(choice) === 1 ? 0 : choicesLength - 1)
|
package/app/i18n/it/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: '{label} completato.',
|
|
9
9
|
declined: 'L’azione è stata rifiutata.',
|
|
10
|
+
redirectRefused: 'L’azione chiedeva di aprire una pagina esterna al pannello; non è stata aperta.',
|
|
10
11
|
downloadStarted: 'Download avviato.',
|
|
11
12
|
queued: '{label} è stato messo in coda.',
|
|
12
13
|
}
|
package/app/i18n/it/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Cambia tema',
|
|
9
9
|
language: 'Lingua: {name}',
|
|
10
10
|
languageFailed: 'Impossibile salvare la lingua: {error}',
|
|
11
|
+
unsupportedDescriptor: 'L’API pubblica la versione {version} del descrittore; questo pannello legge la versione {supported}. Installa versioni corrispondenti di kinetis/vector e vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Principale',
|
|
13
14
|
dashboard: 'Dashboard',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Termina impersonazione',
|
|
27
28
|
noAccess: '{name} non ha accesso all’amministrazione, quindi non c’è nulla da vedere al suo posto. L’impersonazione è stata interrotta.',
|
|
28
29
|
noToken: 'L’applicazione ha risposto senza un token né un ricaricamento, quindi non è cambiato nulla.',
|
|
30
|
+
ended: 'L’impersonificazione è scaduta: sei di nuovo nel tuo account.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Cerca record e risorse…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Inserisci un indirizzo e-mail valido',
|
|
48
50
|
welcome: 'Ti diamo il bentornato, {name}.',
|
|
49
51
|
signedOutIdle: 'Sei stato disconnesso dopo {minutes} minuti di inattività. Accedi di nuovo per riprendere da dove eri rimasto.',
|
|
52
|
+
impersonationEnded: 'L’impersonificazione è scaduta e non è stato possibile rinnovare la tua sessione. Accedi di nuovo per continuare.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Dashboard',
|
package/app/i18n/ja/actions.ts
CHANGED
package/app/i18n/ja/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'テーマの切り替え',
|
|
9
9
|
language: '言語:{name}',
|
|
10
10
|
languageFailed: '言語を保存できませんでした:{error}',
|
|
11
|
+
unsupportedDescriptor: 'API はディスクリプタのバージョン {version} を公開していますが、この管理画面が読めるのはバージョン {supported} です。対応する kinetis/vector と vector-ui をインストールしてください。',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'メイン',
|
|
13
14
|
dashboard: 'ダッシュボード',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: '代理操作を終了',
|
|
27
28
|
noAccess: '{name} は管理画面へのアクセス権がないため、表示できる内容がありません。代理操作を終了しました。',
|
|
28
29
|
noToken: 'アプリケーションがトークンも再読み込みも返さなかったため、何も変更されていません。',
|
|
30
|
+
ended: 'なりすましの有効期限が切れたため、ご自身のアカウントに戻りました。',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'レコードとリソースを検索…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: '有効なメールアドレスを入力してください',
|
|
48
50
|
welcome: 'おかえりなさい、{name} さん。',
|
|
49
51
|
signedOutIdle: '{minutes} 分間操作がなかったためサインアウトしました。もう一度サインインすると、続きから再開できます。',
|
|
52
|
+
impersonationEnded: 'なりすましの有効期限が切れ、ご自身のセッションを更新できませんでした。続けるには再度サインインしてください。',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'ダッシュボード',
|
package/app/i18n/ko/actions.ts
CHANGED
package/app/i18n/ko/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: '테마 전환',
|
|
9
9
|
language: '언어: {name}',
|
|
10
10
|
languageFailed: '언어를 저장할 수 없습니다: {error}',
|
|
11
|
+
unsupportedDescriptor: 'API가 디스크립터 버전 {version}을(를) 게시하지만 이 관리자는 버전 {supported}을(를) 읽습니다. 서로 맞는 kinetis/vector와 vector-ui 릴리스를 설치하세요.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: '메인',
|
|
13
14
|
dashboard: '대시보드',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: '대리 로그인 종료',
|
|
27
28
|
noAccess: '{name} 계정은 관리자 화면에 접근할 수 없어 해당 사용자로 볼 수 있는 내용이 없습니다. 대리 로그인이 종료되었습니다.',
|
|
28
29
|
noToken: '애플리케이션이 토큰이나 새로고침 없이 응답하여 아무것도 변경되지 않았습니다.',
|
|
30
|
+
ended: '대리 접속이 만료되어 본인 계정으로 돌아왔습니다.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: '레코드 및 리소스 검색…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: '올바른 이메일 주소를 입력하세요',
|
|
48
50
|
welcome: '{name}님, 다시 오신 것을 환영합니다.',
|
|
49
51
|
signedOutIdle: '{minutes}분 동안 활동이 없어 로그아웃되었습니다. 다시 로그인하면 중단한 곳에서 계속할 수 있습니다.',
|
|
52
|
+
impersonationEnded: '대리 접속이 만료되었고 본인 세션을 갱신할 수 없었습니다. 계속하려면 다시 로그인하세요.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: '대시보드',
|
package/app/i18n/nl/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: '{label} voltooid.',
|
|
9
9
|
declined: 'De actie is geweigerd.',
|
|
10
|
+
redirectRefused: 'De actie vroeg een pagina buiten de beheeromgeving te openen; die is niet geopend.',
|
|
10
11
|
downloadStarted: 'Download gestart.',
|
|
11
12
|
queued: '{label} is in de wachtrij geplaatst.',
|
|
12
13
|
}
|
package/app/i18n/nl/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Thema wisselen',
|
|
9
9
|
language: 'Taal: {name}',
|
|
10
10
|
languageFailed: 'De taal kon niet worden opgeslagen: {error}',
|
|
11
|
+
unsupportedDescriptor: 'De API publiceert descriptorversie {version}; deze beheeromgeving leest versie {supported}. Installeer bij elkaar passende versies van kinetis/vector en vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Hoofdmenu',
|
|
13
14
|
dashboard: 'Dashboard',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Terug naar uw eigen account',
|
|
27
28
|
noAccess: '{name} heeft geen toegang tot het beheer, dus er is niets te zien namens deze gebruiker. Het handelen als deze gebruiker is gestopt.',
|
|
28
29
|
noToken: 'De applicatie antwoordde zonder token of herlaadopdracht, dus er is niets gewijzigd.',
|
|
30
|
+
ended: 'Uw imitatie is verlopen; u bent weer in uw eigen account.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Records en resources zoeken…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Voer een geldig e-mailadres in',
|
|
48
50
|
welcome: 'Welkom terug, {name}.',
|
|
49
51
|
signedOutIdle: 'U bent na {minutes} minuten zonder activiteit afgemeld. Meld u opnieuw aan om verder te gaan waar u gebleven was.',
|
|
52
|
+
impersonationEnded: 'Uw imitatie is verlopen en uw eigen sessie kon niet worden vernieuwd. Meld u opnieuw aan om verder te gaan.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Dashboard',
|
package/app/i18n/pl/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: '{label}: gotowe.',
|
|
9
9
|
declined: 'Akcja została odrzucona.',
|
|
10
|
+
redirectRefused: 'Akcja chciała otworzyć stronę spoza panelu; nie została otwarta.',
|
|
10
11
|
downloadStarted: 'Rozpoczęto pobieranie.',
|
|
11
12
|
queued: '{label}: dodano do kolejki.',
|
|
12
13
|
}
|
package/app/i18n/pl/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Przełącz motyw',
|
|
9
9
|
language: 'Język: {name}',
|
|
10
10
|
languageFailed: 'Nie udało się zapisać języka: {error}',
|
|
11
|
+
unsupportedDescriptor: 'API publikuje deskryptor w wersji {version}; ten panel odczytuje wersję {supported}. Zainstaluj zgodne wydania kinetis/vector i vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Główne',
|
|
13
14
|
dashboard: 'Pulpit',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Wróć do swojego konta',
|
|
27
28
|
noAccess: '{name} nie ma dostępu do panelu administracyjnego, więc nie ma nic do wyświetlenia w jego imieniu. Działanie jako ten użytkownik zostało zakończone.',
|
|
28
29
|
noToken: 'Aplikacja odpowiedziała bez tokenu i bez przeładowania, więc nic się nie zmieniło.',
|
|
30
|
+
ended: 'Podszywanie się wygasło, więc wróciłeś na własne konto.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Szukaj rekordów i zasobów…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Podaj prawidłowy adres e-mail',
|
|
48
50
|
welcome: 'Witaj ponownie, {name}.',
|
|
49
51
|
signedOutIdle: 'Sesja została zakończona po {minutes} minutach bezczynności. Zaloguj się ponownie, aby wrócić do przerwanej pracy.',
|
|
52
|
+
impersonationEnded: 'Podszywanie się wygasło i nie udało się odnowić Twojej sesji. Zaloguj się ponownie, aby kontynuować.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Pulpit',
|
package/app/i18n/pt/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: '{label}: concluído.',
|
|
9
9
|
declined: 'A ação foi recusada.',
|
|
10
|
+
redirectRefused: 'A ação pediu para abrir uma página fora do painel; não foi aberta.',
|
|
10
11
|
downloadStarted: 'Transferência iniciada.',
|
|
11
12
|
queued: '{label}: colocado na fila.',
|
|
12
13
|
}
|
package/app/i18n/pt/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Alternar tema',
|
|
9
9
|
language: 'Idioma: {name}',
|
|
10
10
|
languageFailed: 'Não foi possível guardar o idioma: {error}',
|
|
11
|
+
unsupportedDescriptor: 'A API publica a versão {version} do descritor; este painel lê a versão {supported}. Instale versões correspondentes de kinetis/vector e vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Principal',
|
|
13
14
|
dashboard: 'Painel',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Parar de personificar',
|
|
27
28
|
noAccess: '{name} não tem acesso à administração, por isso não há nada para ver em seu nome. A personificação foi interrompida.',
|
|
28
29
|
noToken: 'A aplicação respondeu sem um token nem um recarregamento, por isso nada mudou.',
|
|
30
|
+
ended: 'A sua personificação expirou, por isso voltou à sua própria conta.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Pesquisar registos e recursos…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Insira um endereço de e-mail válido',
|
|
48
50
|
welcome: 'Bem-vindo de volta, {name}.',
|
|
49
51
|
signedOutIdle: 'A sessão terminou após {minutes} minutos de inatividade. Inicie sessão novamente para continuar onde estava.',
|
|
52
|
+
impersonationEnded: 'A sua personificação expirou e não foi possível renovar a sua própria sessão. Inicie sessão novamente para continuar.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Painel',
|
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{count} {label}',
|
|
8
8
|
done: '{label}: concluído.',
|
|
9
9
|
declined: 'A ação foi recusada.',
|
|
10
|
+
redirectRefused: 'A ação pediu para abrir uma página fora do painel; ela não foi aberta.',
|
|
10
11
|
downloadStarted: 'Download iniciado.',
|
|
11
12
|
queued: '{label}: adicionado à fila.',
|
|
12
13
|
}
|
package/app/i18n/pt-BR/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Alternar tema',
|
|
9
9
|
language: 'Idioma: {name}',
|
|
10
10
|
languageFailed: 'Não foi possível salvar o idioma: {error}',
|
|
11
|
+
unsupportedDescriptor: 'A API publica a versão {version} do descritor; este painel lê a versão {supported}. Instale versões correspondentes de kinetis/vector e vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Principal',
|
|
13
14
|
dashboard: 'Painel',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Parar de personificar',
|
|
27
28
|
noAccess: '{name} não tem acesso à administração, então não há nada para ver como essa pessoa. A personificação foi interrompida.',
|
|
28
29
|
noToken: 'O aplicativo respondeu sem um token nem um recarregamento, então nada mudou.',
|
|
30
|
+
ended: 'Sua personificação expirou, então você voltou para a sua própria conta.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Pesquisar registros e recursos…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Digite um endereço de e-mail válido',
|
|
48
50
|
welcome: 'Bem-vindo de volta, {name}.',
|
|
49
51
|
signedOutIdle: 'Você foi desconectado após {minutes} minutos de inatividade. Entre novamente para continuar de onde parou.',
|
|
52
|
+
impersonationEnded: 'Sua personificação expirou e não foi possível renovar a sua própria sessão. Entre novamente para continuar.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Painel',
|
package/app/i18n/ru/actions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
subjectCount: '{label} ({count})',
|
|
8
8
|
done: '{label}: выполнено.',
|
|
9
9
|
declined: 'Действие отклонено.',
|
|
10
|
+
redirectRefused: 'Действие пыталось открыть страницу вне панели; она не открыта.',
|
|
10
11
|
downloadStarted: 'Загрузка началась.',
|
|
11
12
|
queued: '{label}: поставлено в очередь.',
|
|
12
13
|
}
|
package/app/i18n/ru/shell.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
toggleTheme: 'Сменить тему',
|
|
9
9
|
language: 'Язык: {name}',
|
|
10
10
|
languageFailed: 'Не удалось сохранить язык: {error}',
|
|
11
|
+
unsupportedDescriptor: 'API публикует дескриптор версии {version}, а эта панель читает версию {supported}. Установите совместимые выпуски kinetis/vector и vector-ui.',
|
|
11
12
|
nav: {
|
|
12
13
|
main: 'Главное',
|
|
13
14
|
dashboard: 'Панель управления',
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
stop: 'Прекратить действовать от чужого имени',
|
|
27
28
|
noAccess: 'У {name} нет доступа к админ-панели, поэтому от этого имени нечего показать. Действие от чужого имени прекращено.',
|
|
28
29
|
noToken: 'Приложение ответило без токена и без перезагрузки, поэтому ничего не изменилось.',
|
|
30
|
+
ended: 'Срок работы от имени другого пользователя истёк, вы снова в своей учётной записи.',
|
|
29
31
|
},
|
|
30
32
|
palette: {
|
|
31
33
|
placeholder: 'Поиск записей и ресурсов…',
|
|
@@ -47,6 +49,7 @@ export default {
|
|
|
47
49
|
invalidEmail: 'Введите корректный адрес электронной почты',
|
|
48
50
|
welcome: 'С возвращением, {name}.',
|
|
49
51
|
signedOutIdle: 'Сеанс завершён после {minutes} минут бездействия. Войдите снова, чтобы продолжить с того же места.',
|
|
52
|
+
impersonationEnded: 'Срок работы от имени другого пользователя истёк, а ваш собственный сеанс не удалось продлить. Войдите снова, чтобы продолжить.',
|
|
50
53
|
},
|
|
51
54
|
home: {
|
|
52
55
|
title: 'Панель управления',
|