diff --git a/CHANGELOG.md b/CHANGELOG.md index 90325f1363..a5e1fa65bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ You should also include the user name that made the change. --> +## 12.x.x (unreleased) + +### Improvements +- Client: registry editor @syuilo + +### Bugfixes +- + ## 12.115.0 (2022/07/16) ### Improvements diff --git a/packages/client/src/pages/registry.keys.vue b/packages/client/src/pages/registry.keys.vue new file mode 100644 index 0000000000..9d2f24f18a --- /dev/null +++ b/packages/client/src/pages/registry.keys.vue @@ -0,0 +1,96 @@ + + + + + + + {{ $ts._registry.domain }} + {{ $ts.system }} + + + {{ $ts._registry.scope }} + {{ scope.join('/') }} + + + + {{ i18n.ts._registry.createKey }} + + + {{ i18n.ts.keys }} + + {{ key[0] }}{{ key[1].toUpperCase() }} + + + + + + + + + diff --git a/packages/client/src/pages/registry.value.vue b/packages/client/src/pages/registry.value.vue new file mode 100644 index 0000000000..5291b2e4c8 --- /dev/null +++ b/packages/client/src/pages/registry.value.vue @@ -0,0 +1,123 @@ + + + + + {{ $ts.editTheseSettingsMayBreakAccount }} + + + + + {{ $ts._registry.domain }} + {{ $ts.system }} + + + {{ $ts._registry.scope }} + {{ scope.join('/') }} + + + {{ $ts._registry.key }} + {{ key }} + + + + + {{ $ts.value }} (JSON) + + + {{ $ts.save }} + + + {{ $ts.updatedAt }} + + + + {{ $ts.delete }} + + + + + + + + diff --git a/packages/client/src/pages/registry.vue b/packages/client/src/pages/registry.vue new file mode 100644 index 0000000000..a428755a88 --- /dev/null +++ b/packages/client/src/pages/registry.vue @@ -0,0 +1,74 @@ + + + + + {{ i18n.ts._registry.createKey }} + + + {{ i18n.ts.system }} + + {{ scope.join('/') }} + + + + + + + + + diff --git a/packages/client/src/pages/settings/other.vue b/packages/client/src/pages/settings/other.vue index 52ef4d401f..51dab04cfa 100644 --- a/packages/client/src/pages/settings/other.vue +++ b/packages/client/src/pages/settings/other.vue @@ -10,6 +10,8 @@ {{ i18n.ts.accountInfo }} + {{ i18n.ts.registry }} + {{ i18n.ts.closeAccount }} diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts index 2ff41e9723..b61b77eeeb 100644 --- a/packages/client/src/router.ts +++ b/packages/client/src/router.ts @@ -153,6 +153,15 @@ export const routes = [{ }, { path: '/channels', component: page(() => import('./pages/channels.vue')), +}, { + path: '/registry/keys/system/:path(*)?', + component: page(() => import('./pages/registry.keys.vue')), +}, { + path: '/registry/value/system/:path(*)?', + component: page(() => import('./pages/registry.value.vue')), +}, { + path: '/registry', + component: page(() => import('./pages/registry.vue')), }, { path: '/admin/file/:fileId', component: iAmModerator ? page(() => import('./pages/admin-file.vue')) : page(() => import('./pages/not-found.vue')),