@phis/ui 0.8.0 → 0.8.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 +9 -2
- package/components/cms/phi-cms-layout-renderer.js +15 -7
- package/components/cms/phi-cms-render-diagnostic-client.d.ts +3 -1
- package/components/cms/phi-cms-render-diagnostic-client.js +4 -3
- package/components/cms/phi-cms-render-diagnostic.d.ts +8 -2
- package/components/cms/phi-cms-render-diagnostic.js +12 -2
- package/components/cms/phi-cms-render-error-boundary.d.ts +2 -0
- package/components/cms/phi-cms-render-error-boundary.js +1 -1
- package/components/cms/phi-cms-root-layout.js +3 -1
- package/components/controls/phi-media-picker-control.d.ts +9 -0
- package/components/controls/phi-media-picker-control.js +1 -1
- package/components/controls/phi-popover-control.js +4 -1
- package/components/controls/phi-table-control.d.ts +7 -1
- package/components/controls/phi-table-control.js +26 -11
- package/components/forms/form-descriptor-field-check.d.ts +18 -0
- package/components/forms/form-descriptor-field-check.js +41 -0
- package/components/forms/form-descriptor-runtime-client.js +11 -10
- package/components/forms/form-record-source.d.ts +38 -0
- package/components/forms/form-record-source.js +48 -0
- package/components/forms/shared-form-descriptors.d.ts +0 -34
- package/components/forms/shared-form-descriptors.js +0 -6
- package/components/forms/shared-form-ids.d.ts +1 -1
- package/components/forms/shared-form-ids.js +1 -1
- package/components/media/media-settings-labels.d.ts +1 -0
- package/components/media/media-settings-labels.js +2 -0
- package/components/media/media-upload-flow.d.ts +62 -5
- package/components/media/media-upload-flow.js +62 -24
- package/components/media/phi-area-upload-widget.d.ts +44 -1
- package/components/media/phi-area-upload-widget.js +32 -7
- package/components/media/phi-media-picker-binding.d.ts +41 -33
- package/components/media/phi-media-picker-binding.js +2 -1
- package/components/media/phi-media-upload.d.ts +10 -3
- package/components/media/phi-media-upload.js +11 -8
- package/components/media/use-media-library-add-picker.d.ts +33 -32
- package/components/overlays/phi-overlay-container-client.js +11 -9
- package/components/regions/presets/phi-settings-page-shell-tree.d.ts +7 -0
- package/components/regions/presets/phi-settings-page-shell-tree.js +3 -3
- package/components/shell/phi-icon-names.d.ts +3 -0
- package/components/shell/phi-icon-names.js +3 -0
- package/components/shell/phi-icon.d.ts +5 -7
- package/components/shell/phi-icon.js +8 -21
- package/components/shell/phi-widget-icon.js +1 -0
- package/components/tables/client/phi-table-binding-params.d.ts +24 -0
- package/components/tables/client/phi-table-binding-params.js +39 -0
- package/components/tables/client/phi-table-binding.d.ts +1 -3
- package/components/tables/client/phi-table-binding.js +5 -9
- package/components/widgets/client/html-editor-link-node.d.ts +12 -0
- package/components/widgets/client/html-editor-link-node.js +60 -0
- package/components/widgets/client/html-editor.js +10 -6
- package/components/widgets/client/shared/phi-button-icons.d.ts +6 -4
- package/components/widgets/client/shared/phi-button-icons.js +8 -12
- package/components/widgets/client/shared/phi-collection-binding-params.d.ts +8 -0
- package/components/widgets/client/shared/phi-collection-binding-params.js +13 -0
- package/components/widgets/client/shared/phi-collection-provider.d.ts +11 -1
- package/components/widgets/client/shared/phi-collection-provider.js +5 -0
- package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
- package/components/widgets/client/shared/phi-collection-view-binding.js +33 -26
- package/components/widgets/client/shared/phi-command-buttons.d.ts +16 -0
- package/components/widgets/client/shared/phi-command-buttons.js +9 -1
- package/components/widgets/label-sets/admin-users.d.ts +1 -0
- package/components/widgets/label-sets/admin-users.js +2 -0
- package/components/widgets/label-sets/builder-modules.js +4 -0
- package/components/widgets/label-sets/profile.d.ts +0 -16
- package/components/widgets/label-sets/profile.js +0 -37
- package/components/widgets/label-sets/registration.d.ts +0 -1
- package/components/widgets/label-sets/registration.js +0 -2
- package/components/widgets/label-sets/revisions.js +2 -0
- package/components/widgets/label-sets/signals.js +2 -0
- package/components/widgets/label-types/builder-modules.d.ts +4 -0
- package/components/widgets/label-types/builder-modules.js +2 -0
- package/components/widgets/label-types/revisions.d.ts +2 -0
- package/components/widgets/label-types/revisions.js +2 -1
- package/components/widgets/label-types/signals.d.ts +2 -0
- package/components/widgets/label-types/signals.js +1 -0
- package/components/widgets/shared/widget-failure-audience.d.ts +7 -0
- package/components/widgets/shared/widget-failure-audience.js +21 -0
- package/components/widgets/shared/widget-failure-client.js +5 -2
- package/components/widgets/shared/widget-failure-notice-client.d.ts +6 -0
- package/components/widgets/shared/widget-failure-notice-client.js +10 -0
- package/components/widgets/shared/widget-failure-notice.d.ts +6 -0
- package/components/widgets/shared/widget-failure-notice.js +17 -0
- package/components/widgets/shared/widget-failure-staff.d.ts +3 -0
- package/components/widgets/shared/widget-failure-staff.js +18 -0
- package/components/widgets/shared/widget-failure.d.ts +9 -6
- package/components/widgets/shared/widget-failure.js +0 -9
- package/components/widgets/shared/widget-failure.server.d.ts +4 -2
- package/components/widgets/shared/widget-failure.server.js +8 -3
- package/constants/cms-widget-types.d.ts +1 -0
- package/constants/cms-widget-types.js +3 -0
- package/constants/customer-file.d.ts +12 -3
- package/constants/customer-file.js +12 -3
- package/constants/runtime-module-ownership.js +5 -3
- package/constants/site-address.d.ts +9 -0
- package/constants/site-address.js +10 -0
- package/constants/table-loading.d.ts +14 -0
- package/constants/table-loading.js +14 -0
- package/constants.d.ts +2 -1
- package/constants.js +3 -1
- package/gateway/site-cms-write-validation.js +19 -3
- package/gateway/site-proxy.d.ts +12 -0
- package/gateway/site-proxy.js +20 -0
- package/helpers/announced-action.d.ts +17 -0
- package/helpers/announced-action.js +29 -0
- package/helpers/phi-metadata.d.ts +0 -8
- package/helpers/phi-metadata.js +1 -10
- package/helpers/phi-site-description.d.ts +11 -0
- package/helpers/phi-site-description.js +13 -0
- package/helpers/preset-form-check.d.ts +14 -0
- package/helpers/preset-form-check.js +12 -0
- package/helpers/preset-table-check.d.ts +19 -15
- package/helpers/preset-table-check.js +33 -39
- package/helpers/record-widget-binding.d.ts +10 -0
- package/helpers/record-widget-binding.js +35 -0
- package/helpers/record-widget.d.ts +1 -10
- package/helpers/record-widget.js +4 -33
- package/helpers/table-widget-binding.d.ts +12 -0
- package/helpers/table-widget-binding.js +296 -0
- package/helpers/tree-widget-binding.d.ts +19 -0
- package/helpers/tree-widget-binding.js +72 -0
- package/helpers/typed-confirmation.d.ts +9 -0
- package/helpers/typed-confirmation.js +13 -0
- package/helpers/widget-binding-check.d.ts +22 -0
- package/helpers/widget-binding-check.js +91 -0
- package/module-page-check.d.ts +2 -0
- package/module-page-check.js +2 -0
- package/net/phi-next-proxy.d.ts +7 -0
- package/net/phi-next-proxy.js +1 -1
- package/next/root-route.js +2 -1
- package/package.json +27 -14
- package/plugins/runtime-modules/accounting/ids.d.ts +7 -4
- package/plugins/runtime-modules/accounting/ids.js +14 -3
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.d.ts +21 -9
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +29 -15
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +11 -8
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +206 -137
- package/plugins/runtime-modules/app/client-data-providers.js +1 -1
- package/plugins/runtime-modules/app/data-providers.d.ts +14 -69
- package/plugins/runtime-modules/app/data-providers.js +19 -54
- package/plugins/runtime-modules/app/definition.d.ts +8 -80
- package/plugins/runtime-modules/app/forms.d.ts +1 -16
- package/plugins/runtime-modules/app/forms.js +0 -59
- package/plugins/runtime-modules/app/ids.d.ts +2 -1
- package/plugins/runtime-modules/app/ids.js +3 -2
- package/plugins/runtime-modules/app/module.d.ts +8 -80
- package/plugins/runtime-modules/app/services/addresses-collection.d.ts +59 -0
- package/plugins/runtime-modules/app/services/{addresses-table.js → addresses-collection.js} +23 -19
- package/plugins/runtime-modules/app/trees/account-addresses-panel.d.ts +10 -6
- package/plugins/runtime-modules/app/trees/account-addresses-panel.js +37 -73
- package/plugins/runtime-modules/app/trees/addresses-label-set.d.ts +0 -5
- package/plugins/runtime-modules/app/trees/addresses-label-set.js +2 -6
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.d.ts +1 -2
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +1 -17
- package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +0 -2
- package/plugins/runtime-modules/app/trees/profile-label-set.js +2 -14
- package/plugins/runtime-modules/area-contributions/admin.d.ts +1 -1
- package/plugins/runtime-modules/area-contributions/admin.js +2 -0
- package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +5 -0
- package/plugins/runtime-modules/avatar/addresses.d.ts +1 -1
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +16 -6
- package/plugins/runtime-modules/builder/clients/inspector-image-field.js +3 -1
- package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +3 -1
- package/plugins/runtime-modules/builder/controller/signal-wiring-controller.js +5 -1
- package/plugins/runtime-modules/builder/signal-wiring-options.js +9 -2
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +5 -0
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +14 -1
- package/plugins/runtime-modules/cdn/authoring-widgets.d.ts +3 -0
- package/plugins/runtime-modules/cdn/authoring-widgets.js +7 -0
- package/plugins/runtime-modules/cdn/authoring.d.ts +1 -0
- package/plugins/runtime-modules/cdn/authoring.js +8 -0
- package/plugins/runtime-modules/cdn/bytes.d.ts +5 -0
- package/plugins/runtime-modules/cdn/bytes.js +17 -0
- package/plugins/runtime-modules/cdn/client-data-providers.d.ts +7 -0
- package/plugins/runtime-modules/cdn/client-data-providers.js +9 -0
- package/plugins/runtime-modules/cdn/data-providers.d.ts +134 -0
- package/plugins/runtime-modules/cdn/data-providers.js +117 -0
- package/plugins/runtime-modules/cdn/definition.d.ts +140 -0
- package/plugins/runtime-modules/cdn/definition.js +23 -0
- package/plugins/runtime-modules/cdn/ids.d.ts +18 -0
- package/plugins/runtime-modules/cdn/ids.js +20 -0
- package/plugins/runtime-modules/cdn/module.d.ts +131 -0
- package/plugins/runtime-modules/cdn/module.js +4 -0
- package/plugins/runtime-modules/cdn/platform.d.ts +25 -0
- package/plugins/runtime-modules/cdn/platform.js +73 -0
- package/plugins/runtime-modules/cdn/presets.d.ts +2 -0
- package/plugins/runtime-modules/cdn/presets.js +20 -0
- package/plugins/runtime-modules/cdn/server.d.ts +1 -0
- package/plugins/runtime-modules/cdn/server.js +14 -0
- package/plugins/runtime-modules/cdn/services/table.d.ts +11 -0
- package/plugins/runtime-modules/cdn/services/table.js +296 -0
- package/plugins/runtime-modules/cdn/services/upload.d.ts +20 -0
- package/plugins/runtime-modules/cdn/services/upload.js +146 -0
- package/plugins/runtime-modules/cdn/table-params.d.ts +10 -0
- package/plugins/runtime-modules/cdn/table-params.js +10 -0
- package/plugins/runtime-modules/cdn/trees/admin-cdn-label-set.d.ts +95 -0
- package/plugins/runtime-modules/cdn/trees/admin-cdn-label-set.js +156 -0
- package/plugins/runtime-modules/cdn/trees/phi-default-admin-cdn-page-tree.d.ts +18 -0
- package/plugins/runtime-modules/cdn/trees/phi-default-admin-cdn-page-tree.js +479 -0
- package/plugins/runtime-modules/cdn/widgets/upload/client.d.ts +12 -0
- package/plugins/runtime-modules/cdn/widgets/upload/client.js +138 -0
- package/plugins/runtime-modules/cdn/widgets/upload/config.d.ts +29 -0
- package/plugins/runtime-modules/cdn/widgets/upload/config.js +43 -0
- package/plugins/runtime-modules/cdn/widgets/upload/label-types.d.ts +24 -0
- package/plugins/runtime-modules/cdn/widgets/upload/label-types.js +1 -0
- package/plugins/runtime-modules/cdn/widgets/upload/labels.d.ts +4 -0
- package/plugins/runtime-modules/cdn/widgets/upload/labels.js +72 -0
- package/plugins/runtime-modules/cdn/widgets/upload/plugin.d.ts +3 -0
- package/plugins/runtime-modules/cdn/widgets/upload/plugin.js +7 -0
- package/plugins/runtime-modules/cdn/widgets/upload/server.d.ts +8 -0
- package/plugins/runtime-modules/cdn/widgets/upload/server.js +17 -0
- package/plugins/runtime-modules/cdn/widgets.d.ts +2 -0
- package/plugins/runtime-modules/cdn/widgets.js +13 -0
- package/plugins/runtime-modules/client-authoring-providers/admin.d.ts +1 -1
- package/plugins/runtime-modules/client-authoring-providers/admin.js +6 -0
- package/plugins/runtime-modules/client-manifests/admin.js +11 -1
- package/plugins/runtime-modules/client-manifests/common.js +6 -0
- package/plugins/runtime-modules/core/widgets/card/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.js +1 -1
- package/plugins/runtime-modules/core/widgets/collection-view/client.js +5 -2
- package/plugins/runtime-modules/core/widgets/collection-view/config.js +8 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.d.ts +55 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.js +175 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.d.ts +48 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.js +67 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/description/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/form/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/form/config.js +14 -1
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/record/client.js +2 -6
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/table/client.js +36 -52
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +3 -3
- package/plugins/runtime-modules/core/widgets/table/config.js +3 -0
- package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +2 -2
- package/plugins/runtime-modules/core/widgets/thread-conversation/config.d.ts +6 -2
- package/plugins/runtime-modules/core/widgets/thread-conversation/config.js +6 -1
- package/plugins/runtime-modules/core/widgets/thread-widget-config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/thread-widget-config.js +6 -0
- package/plugins/runtime-modules/core/widgets/tree/client.js +6 -6
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.d.ts +2 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.js +2 -0
- package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +5 -0
- package/plugins/runtime-modules/revisions/controller/binding.d.ts +37 -0
- package/plugins/runtime-modules/revisions/controller/binding.js +75 -0
- package/plugins/runtime-modules/revisions/controller/client.d.ts +5 -0
- package/plugins/runtime-modules/revisions/controller/client.js +74 -50
- package/plugins/runtime-modules/revisions/controller/definition.d.ts +5 -0
- package/plugins/runtime-modules/revisions/controller/definition.js +10 -0
- package/plugins/runtime-modules/revisions/forms.js +1 -1
- package/plugins/runtime-modules/revisions/page-ids.d.ts +1 -1
- package/plugins/runtime-modules/revisions/page-ids.js +4 -1
- package/plugins/runtime-modules/revisions/services/options.js +14 -4
- package/plugins/runtime-modules/revisions/services/table.js +41 -21
- package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +76 -3
- package/plugins/runtime-modules/theme/controller/runtime.js +14 -2
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +39 -13
- package/plugins/runtime-modules/threads/client-data-providers.js +5 -0
- package/plugins/runtime-modules/threads/controller/client.js +62 -2
- package/plugins/runtime-modules/threads/controller/definition.js +48 -0
- package/plugins/runtime-modules/threads/data-providers.d.ts +22 -37
- package/plugins/runtime-modules/threads/data-providers.js +35 -24
- package/plugins/runtime-modules/threads/definition.d.ts +22 -37
- package/plugins/runtime-modules/threads/ids.d.ts +2 -0
- package/plugins/runtime-modules/threads/ids.js +2 -0
- package/plugins/runtime-modules/threads/services/customer-file-addresses.d.ts +30 -0
- package/plugins/runtime-modules/threads/services/customer-file-addresses.js +59 -0
- package/plugins/runtime-modules/threads/services/customer-file-read.d.ts +22 -0
- package/plugins/runtime-modules/threads/services/customer-file-read.js +101 -0
- package/plugins/runtime-modules/threads/services/customer-file-table.d.ts +14 -80
- package/plugins/runtime-modules/threads/services/customer-file-table.js +27 -112
- package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.d.ts +4 -0
- package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.js +4 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.js +15 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +5 -0
- package/server-helpers/runtime.js +0 -1
- package/styles/controls.css +4 -2
- package/styles/layout.css +7 -0
- package/theme/phi-antd-token-resolver.d.ts +8 -0
- package/theme/phi-antd-token-resolver.js +10 -0
- package/theme/phi-theme-color.d.ts +19 -0
- package/theme/phi-theme-color.js +42 -0
- package/theme/phi-theme-gradients.js +4 -22
- package/theme/phi-theme-palette-defaults.d.ts +16 -0
- package/theme/phi-theme-palette-defaults.js +103 -0
- package/types/cms-plugins.d.ts +6 -1
- package/types/collection-provider.d.ts +27 -0
- package/types/collection-signal-values.d.ts +2 -0
- package/types/collection-signal-values.js +23 -0
- package/types/collection-view-widget.d.ts +9 -0
- package/types/core-widget-placements.d.ts +6 -0
- package/types/signals.d.ts +2 -0
- package/types/signals.js +2 -0
- package/types/table-widget.d.ts +17 -3
- package/types/table-widget.js +0 -282
- package/types/tree-widget.d.ts +0 -1
- package/types/tree-widget.js +0 -60
- package/types/widget-runtime.d.ts +0 -1
- package/types.d.ts +1 -1
- package/types.js +1 -1
- package/plugins/runtime-modules/app/services/addresses-table.d.ts +0 -135
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { type PhiGlobalTranslatorOptions } from "../../../../gateway/tr";
|
|
3
|
+
export declare function getPhiAdminCdnPageLabels(options: PhiGlobalTranslatorOptions): Promise<{
|
|
4
|
+
pageTitle: string;
|
|
5
|
+
pageDescription: string;
|
|
6
|
+
tableLabel: string;
|
|
7
|
+
columns: {
|
|
8
|
+
name: string;
|
|
9
|
+
version: string;
|
|
10
|
+
file: string;
|
|
11
|
+
size: string;
|
|
12
|
+
storage: string;
|
|
13
|
+
storageHint: string;
|
|
14
|
+
platform: string;
|
|
15
|
+
sha256: string;
|
|
16
|
+
sha256Hint: string;
|
|
17
|
+
state: string;
|
|
18
|
+
origin: string;
|
|
19
|
+
published: string;
|
|
20
|
+
};
|
|
21
|
+
storage: {
|
|
22
|
+
cdn: string;
|
|
23
|
+
link: string;
|
|
24
|
+
};
|
|
25
|
+
states: {
|
|
26
|
+
offered: string;
|
|
27
|
+
withdrawn: string;
|
|
28
|
+
deleted: string;
|
|
29
|
+
};
|
|
30
|
+
origins: {
|
|
31
|
+
cli: string;
|
|
32
|
+
upload: string;
|
|
33
|
+
addon: string;
|
|
34
|
+
};
|
|
35
|
+
filterState: string;
|
|
36
|
+
filterStateAll: string;
|
|
37
|
+
searchPlaceholder: string;
|
|
38
|
+
emptyTitle: string;
|
|
39
|
+
emptyText: string;
|
|
40
|
+
noCdn: string;
|
|
41
|
+
footer: string;
|
|
42
|
+
actions: {
|
|
43
|
+
upload: string;
|
|
44
|
+
check: string;
|
|
45
|
+
view: string;
|
|
46
|
+
copy: string;
|
|
47
|
+
withdraw: string;
|
|
48
|
+
delete: string;
|
|
49
|
+
adopt: string;
|
|
50
|
+
};
|
|
51
|
+
copied: string;
|
|
52
|
+
copyFailed: string;
|
|
53
|
+
confirmCancel: string;
|
|
54
|
+
withdraw: {
|
|
55
|
+
title: string;
|
|
56
|
+
text: string;
|
|
57
|
+
ok: string;
|
|
58
|
+
};
|
|
59
|
+
delete: {
|
|
60
|
+
title: string;
|
|
61
|
+
text: string;
|
|
62
|
+
linkNote: string;
|
|
63
|
+
ok: string;
|
|
64
|
+
};
|
|
65
|
+
uploadTitle: string;
|
|
66
|
+
detail: {
|
|
67
|
+
title: string;
|
|
68
|
+
key: string;
|
|
69
|
+
url: string;
|
|
70
|
+
sourceUrl: string;
|
|
71
|
+
contentType: string;
|
|
72
|
+
sizeBytes: string;
|
|
73
|
+
addon: string;
|
|
74
|
+
actor: string;
|
|
75
|
+
};
|
|
76
|
+
check: {
|
|
77
|
+
title: string;
|
|
78
|
+
tableLabel: string;
|
|
79
|
+
columns: {
|
|
80
|
+
key: string;
|
|
81
|
+
finding: string;
|
|
82
|
+
size: string;
|
|
83
|
+
recorded: string;
|
|
84
|
+
reason: string;
|
|
85
|
+
};
|
|
86
|
+
findings: {
|
|
87
|
+
unrecorded: string;
|
|
88
|
+
missing: string;
|
|
89
|
+
"size-mismatch": string;
|
|
90
|
+
};
|
|
91
|
+
empty: string;
|
|
92
|
+
footer: string;
|
|
93
|
+
footerConsistent: string;
|
|
94
|
+
};
|
|
95
|
+
}>;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { PHI_TR_CTX_WEB_UI_LABEL } from "../../../../gateway/tr";
|
|
3
|
+
import { definePhiRuntimeModuleLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../../gateway/label-set";
|
|
4
|
+
import { PHI_CDN_ADMIN_PAGE_PRESET_KEY, PHI_CDN_RUNTIME_MODULE_IDENTITY } from "../ids";
|
|
5
|
+
/** The words of the Admin page `CDN`, in English, the Module's source language. */
|
|
6
|
+
const PHI_ADMIN_CDN_PAGE_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_CDN_RUNTIME_MODULE_IDENTITY, {
|
|
7
|
+
key: `preset:${PHI_CDN_ADMIN_PAGE_PRESET_KEY}`,
|
|
8
|
+
ctx: PHI_TR_CTX_WEB_UI_LABEL,
|
|
9
|
+
labels: {
|
|
10
|
+
page_title: "CDN",
|
|
11
|
+
page_description: definePhiMessageLabel("Files published once under the Site's name and served from its CDN host."),
|
|
12
|
+
table_label: "CDN files",
|
|
13
|
+
column_name: "Name",
|
|
14
|
+
column_version: "Version",
|
|
15
|
+
column_file: "File",
|
|
16
|
+
column_size: "Size",
|
|
17
|
+
column_storage: "Storage",
|
|
18
|
+
column_storage_hint: definePhiMessageLabel("Copy: the CDN serves the bytes. Link: the source keeps them, and the Site sends visitors there."),
|
|
19
|
+
column_platform: "Platform",
|
|
20
|
+
column_sha256: "SHA-256",
|
|
21
|
+
column_sha256_hint: definePhiMessageLabel("Shortened here; copying the cell copies the whole checksum."),
|
|
22
|
+
column_state: "State",
|
|
23
|
+
column_origin: "Origin",
|
|
24
|
+
column_published: "Published",
|
|
25
|
+
storage_cdn: "Copy",
|
|
26
|
+
storage_link: "Link",
|
|
27
|
+
state_offered: "Offered",
|
|
28
|
+
state_withdrawn: "Withdrawn",
|
|
29
|
+
state_deleted: "Deleted",
|
|
30
|
+
origin_cli: "CLI",
|
|
31
|
+
origin_upload: "Upload",
|
|
32
|
+
origin_addon: "Add-on",
|
|
33
|
+
filter_state: "State",
|
|
34
|
+
filter_state_all: "All",
|
|
35
|
+
search_placeholder: "Search names and files",
|
|
36
|
+
empty_title: definePhiMessageLabel("No files published yet."),
|
|
37
|
+
empty_text: definePhiMessageLabel("Upload a file, or publish one with phis cdn publish."),
|
|
38
|
+
no_cdn: definePhiMessageLabel("This Site has no CDN yet. The operator attaches one on the server with phis cdn attach; then its files are listed here."),
|
|
39
|
+
footer: definePhiMessageLabel("%1 files of %2 total"),
|
|
40
|
+
action_upload: "Upload",
|
|
41
|
+
action_check: "Check",
|
|
42
|
+
action_view: "Details",
|
|
43
|
+
action_copy: "Copy address",
|
|
44
|
+
action_withdraw: "Withdraw",
|
|
45
|
+
action_delete: "Delete",
|
|
46
|
+
copied: definePhiMessageLabel("Address copied."),
|
|
47
|
+
copy_failed: definePhiMessageLabel("The browser did not allow copying the address."),
|
|
48
|
+
confirm_cancel: "Cancel",
|
|
49
|
+
withdraw_title: definePhiMessageLabel("Withdraw this file?"),
|
|
50
|
+
withdraw_text: definePhiMessageLabel("It is no longer offered: download pages stop listing it. The key stays taken, so nothing else can be published under it."),
|
|
51
|
+
withdraw_ok: "Withdraw",
|
|
52
|
+
delete_title: definePhiMessageLabel("Delete this file?"),
|
|
53
|
+
delete_text: definePhiMessageLabel("It is withdrawn and its bytes are removed from the CDN bucket. The key stays taken: no other file can ever be published under it. A cache may still serve the file until its copy expires."),
|
|
54
|
+
delete_link_note: definePhiMessageLabel("For a linked file no bytes are deleted: the source keeps them, and the entry is only withdrawn."),
|
|
55
|
+
delete_ok: "Delete",
|
|
56
|
+
upload_title: "Upload a file",
|
|
57
|
+
detail_title: "File details",
|
|
58
|
+
detail_key: "Key",
|
|
59
|
+
detail_url: "Address",
|
|
60
|
+
detail_source_url: "Source address",
|
|
61
|
+
detail_content_type: "Content type",
|
|
62
|
+
detail_size_bytes: "Size in bytes",
|
|
63
|
+
detail_addon: "Add-on",
|
|
64
|
+
detail_actor: "Uploaded by (user id)",
|
|
65
|
+
check_title: "Check bucket and catalogue",
|
|
66
|
+
check_table_label: "Check findings",
|
|
67
|
+
check_column_key: "Key",
|
|
68
|
+
check_column_finding: "Finding",
|
|
69
|
+
check_column_size: "Size in the bucket",
|
|
70
|
+
check_column_recorded: "Size recorded",
|
|
71
|
+
check_column_reason: "Why it cannot be adopted",
|
|
72
|
+
finding_unrecorded: "Not in the catalogue",
|
|
73
|
+
finding_missing: "Missing from the bucket",
|
|
74
|
+
finding_size_mismatch: "Size differs",
|
|
75
|
+
action_adopt: "Adopt",
|
|
76
|
+
check_empty: definePhiMessageLabel("Nothing to report."),
|
|
77
|
+
check_footer: definePhiMessageLabel("%1 objects in the bucket, %2 copied files in the catalogue."),
|
|
78
|
+
check_footer_consistent: definePhiMessageLabel("Bucket and catalogue agree: %1 objects, %2 copied files."),
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
export async function getPhiAdminCdnPageLabels(options) {
|
|
82
|
+
const labels = await getPhiLabelSet(options, PHI_ADMIN_CDN_PAGE_LABEL_SET);
|
|
83
|
+
return {
|
|
84
|
+
pageTitle: labels.page_title,
|
|
85
|
+
pageDescription: labels.page_description,
|
|
86
|
+
tableLabel: labels.table_label,
|
|
87
|
+
columns: {
|
|
88
|
+
name: labels.column_name,
|
|
89
|
+
version: labels.column_version,
|
|
90
|
+
file: labels.column_file,
|
|
91
|
+
size: labels.column_size,
|
|
92
|
+
storage: labels.column_storage,
|
|
93
|
+
storageHint: labels.column_storage_hint,
|
|
94
|
+
platform: labels.column_platform,
|
|
95
|
+
sha256: labels.column_sha256,
|
|
96
|
+
sha256Hint: labels.column_sha256_hint,
|
|
97
|
+
state: labels.column_state,
|
|
98
|
+
origin: labels.column_origin,
|
|
99
|
+
published: labels.column_published,
|
|
100
|
+
},
|
|
101
|
+
storage: { cdn: labels.storage_cdn, link: labels.storage_link },
|
|
102
|
+
states: { offered: labels.state_offered, withdrawn: labels.state_withdrawn, deleted: labels.state_deleted },
|
|
103
|
+
origins: { cli: labels.origin_cli, upload: labels.origin_upload, addon: labels.origin_addon },
|
|
104
|
+
filterState: labels.filter_state,
|
|
105
|
+
filterStateAll: labels.filter_state_all,
|
|
106
|
+
searchPlaceholder: labels.search_placeholder,
|
|
107
|
+
emptyTitle: labels.empty_title,
|
|
108
|
+
emptyText: labels.empty_text,
|
|
109
|
+
noCdn: labels.no_cdn,
|
|
110
|
+
footer: labels.footer,
|
|
111
|
+
actions: {
|
|
112
|
+
upload: labels.action_upload,
|
|
113
|
+
check: labels.action_check,
|
|
114
|
+
view: labels.action_view,
|
|
115
|
+
copy: labels.action_copy,
|
|
116
|
+
withdraw: labels.action_withdraw,
|
|
117
|
+
delete: labels.action_delete,
|
|
118
|
+
adopt: labels.action_adopt,
|
|
119
|
+
},
|
|
120
|
+
copied: labels.copied,
|
|
121
|
+
copyFailed: labels.copy_failed,
|
|
122
|
+
confirmCancel: labels.confirm_cancel,
|
|
123
|
+
withdraw: { title: labels.withdraw_title, text: labels.withdraw_text, ok: labels.withdraw_ok },
|
|
124
|
+
delete: { title: labels.delete_title, text: labels.delete_text, linkNote: labels.delete_link_note, ok: labels.delete_ok },
|
|
125
|
+
uploadTitle: labels.upload_title,
|
|
126
|
+
detail: {
|
|
127
|
+
title: labels.detail_title,
|
|
128
|
+
key: labels.detail_key,
|
|
129
|
+
url: labels.detail_url,
|
|
130
|
+
sourceUrl: labels.detail_source_url,
|
|
131
|
+
contentType: labels.detail_content_type,
|
|
132
|
+
sizeBytes: labels.detail_size_bytes,
|
|
133
|
+
addon: labels.detail_addon,
|
|
134
|
+
actor: labels.detail_actor,
|
|
135
|
+
},
|
|
136
|
+
check: {
|
|
137
|
+
title: labels.check_title,
|
|
138
|
+
tableLabel: labels.check_table_label,
|
|
139
|
+
columns: {
|
|
140
|
+
key: labels.check_column_key,
|
|
141
|
+
finding: labels.check_column_finding,
|
|
142
|
+
size: labels.check_column_size,
|
|
143
|
+
recorded: labels.check_column_recorded,
|
|
144
|
+
reason: labels.check_column_reason,
|
|
145
|
+
},
|
|
146
|
+
findings: {
|
|
147
|
+
unrecorded: labels.finding_unrecorded,
|
|
148
|
+
missing: labels.finding_missing,
|
|
149
|
+
"size-mismatch": labels.finding_size_mismatch,
|
|
150
|
+
},
|
|
151
|
+
empty: labels.check_empty,
|
|
152
|
+
footer: labels.check_footer,
|
|
153
|
+
footerConsistent: labels.check_footer_consistent,
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PhiCmsPageNode, PhiResolvedCmsPageTree } from "../../../../types/cms";
|
|
2
|
+
import type { PhiBlockRuntime } from "../../../../types";
|
|
3
|
+
/**
|
|
4
|
+
* The Admin page `CDN`: the catalogue as one Table, and three dialogs its actions open.
|
|
5
|
+
*
|
|
6
|
+
* - Upload (toolbar): the Module's upload Widget, which tells the Table to read again once a file is
|
|
7
|
+
* published.
|
|
8
|
+
* - Check (toolbar): a second Table on the same Provider, the `check` resource, which runs the check when
|
|
9
|
+
* the dialog opens (`remount`) and adopts what it can, row by row.
|
|
10
|
+
* - Details (row): the `record` Widget on the row, with the addresses in full.
|
|
11
|
+
*
|
|
12
|
+
* Copy address, Withdraw and Delete are the Provider's row actions; the two that change anything ask
|
|
13
|
+
* first. What any of them may do is Core's to decide, and Core refuses what a reader may not.
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildPhiDefaultAdminCdnPageTree({ page, runtime, }: {
|
|
16
|
+
page: PhiCmsPageNode;
|
|
17
|
+
runtime: PhiBlockRuntime;
|
|
18
|
+
}): Promise<PhiResolvedCmsPageTree>;
|