From e2862c0dbd51691ba05bb8850bad8a4b71b22ff9 Mon Sep 17 00:00:00 2001 From: Aleksei Potsetsuev Date: Wed, 18 Sep 2024 19:45:07 +0800 Subject: [PATCH] chore: hide extra settings from UI --- .../src/ConnectionsSettingsService.ts | 28 ++++---- .../core-events/src/EventsSettingsService.ts | 23 +++---- .../src/NavTreeSettingsService.ts | 67 +++++++++---------- .../core-navigation-tree/src/locales/en.ts | 4 +- .../core-navigation-tree/src/locales/fr.ts | 4 +- .../core-navigation-tree/src/locales/it.ts | 4 +- .../core-navigation-tree/src/locales/zh.ts | 4 +- .../src/locales/en.ts | 2 +- .../src/locales/fr.ts | 2 +- .../src/locales/it.ts | 2 +- .../src/locales/zh.ts | 2 +- .../src/PluginConnectionsSettingsService.ts | 28 ++++---- .../src/LogViewer/LogViewerSettingsService.ts | 40 +++++------ .../src/NavigationTreeSettingsService.ts | 20 +++--- .../ResourceManagerScriptsSettingsService.ts | 20 +++--- .../src/SettingsPanel/Settings.tsx | 5 +- .../src/SqlEditorSettingsService.ts | 42 ++++++------ .../plugin-sql-editor/src/locales/en.ts | 2 +- .../plugin-sql-editor/src/locales/fr.ts | 2 +- .../plugin-sql-editor/src/locales/it.ts | 2 +- .../plugin-sql-editor/src/locales/ru.ts | 2 +- .../plugin-sql-editor/src/locales/zh.ts | 2 +- 22 files changed, 148 insertions(+), 159 deletions(-) diff --git a/webapp/packages/core-connections/src/ConnectionsSettingsService.ts b/webapp/packages/core-connections/src/ConnectionsSettingsService.ts index 112803e8e3..8c583b6332 100644 --- a/webapp/packages/core-connections/src/ConnectionsSettingsService.ts +++ b/webapp/packages/core-connections/src/ConnectionsSettingsService.ts @@ -6,11 +6,9 @@ * you may not use this file except in compliance with the License. */ import { Dependency, injectable } from '@cloudbeaver/core-di'; -import { ESettingsValueType, SettingsManagerService, SettingsProvider, SettingsProviderService } from '@cloudbeaver/core-settings'; +import { SettingsManagerService, SettingsProvider, SettingsProviderService } from '@cloudbeaver/core-settings'; import { schema, schemaExtra } from '@cloudbeaver/core-utils'; -import { CONNECTIONS_SETTINGS_GROUP } from './CONNECTIONS_SETTINGS_GROUP'; - const settingsSchema = schema.object({ 'core.connections.disabled': schemaExtra.stringedBoolean().default(false), }); @@ -34,17 +32,17 @@ export class ConnectionsSettingsService extends Dependency { } private registerSettings() { - this.settingsManagerService.registerSettings(this.settings, () => [ - { - group: CONNECTIONS_SETTINGS_GROUP, - key: 'core.connections.disabled', - access: { - scope: ['server'], - }, - name: 'core_connections_settings_disable', - description: 'core_connections_settings_disable_description', - type: ESettingsValueType.Checkbox, - }, - ]); + // this.settingsManagerService.registerSettings(this.settings, () => [ + // { + // group: CONNECTIONS_SETTINGS_GROUP, + // key: 'core.connections.disabled', + // access: { + // scope: ['server'], + // }, + // name: 'core_connections_settings_disable', + // description: 'core_connections_settings_disable_description', + // type: ESettingsValueType.Checkbox, + // }, + // ]); } } diff --git a/webapp/packages/core-events/src/EventsSettingsService.ts b/webapp/packages/core-events/src/EventsSettingsService.ts index 5dd6518f1c..f43f830977 100644 --- a/webapp/packages/core-events/src/EventsSettingsService.ts +++ b/webapp/packages/core-events/src/EventsSettingsService.ts @@ -8,7 +8,6 @@ import { Dependency, injectable } from '@cloudbeaver/core-di'; import { createSettingsAliasResolver, - ESettingsValueType, ROOT_SETTINGS_LAYER, SettingsManagerService, SettingsProvider, @@ -17,8 +16,6 @@ import { } from '@cloudbeaver/core-settings'; import { schema } from '@cloudbeaver/core-utils'; -import { NOTIFICATIONS_SETTINGS_GROUP } from './NOTIFICATIONS_SETTINGS_GROUP'; - const settingsSchema = schema.object({ 'plugin.notifications.notificationsPool': schema.coerce.number().default(20), 'plugin.notifications.maxPersistentAllow': schema.coerce.number().default(5), @@ -66,16 +63,16 @@ export class EventsSettingsService extends Dependency { // name: 'Max persistent notifications count', // type: ESettingsValueType.Input, // }, - { - group: NOTIFICATIONS_SETTINGS_GROUP, - key: 'plugin.notifications.notificationsPool', - access: { - scope: ['client'], - }, - name: 'core_events_notifications_settings_pool_size', - description: 'core_events_notifications_settings_pool_size_description', - type: ESettingsValueType.Input, - }, + // { + // group: NOTIFICATIONS_SETTINGS_GROUP, + // key: 'plugin.notifications.notificationsPool', + // access: { + // scope: ['client'], + // }, + // name: 'core_events_notifications_settings_pool_size', + // description: 'core_events_notifications_settings_pool_size_description', + // type: ESettingsValueType.Input, + // }, ]); } } diff --git a/webapp/packages/core-navigation-tree/src/NavTreeSettingsService.ts b/webapp/packages/core-navigation-tree/src/NavTreeSettingsService.ts index 5c009f8850..33b3096d6f 100644 --- a/webapp/packages/core-navigation-tree/src/NavTreeSettingsService.ts +++ b/webapp/packages/core-navigation-tree/src/NavTreeSettingsService.ts @@ -8,7 +8,6 @@ import { Dependency, injectable } from '@cloudbeaver/core-di'; import { createSettingsAliasResolver, - ESettingsValueType, ROOT_SETTINGS_LAYER, SettingsManagerService, SettingsProvider, @@ -17,8 +16,6 @@ import { } from '@cloudbeaver/core-settings'; import { schema, schemaExtra } from '@cloudbeaver/core-utils'; -import { NAVIGATION_TREE_SETTINGS_GROUP } from './NAVIGATION_TREE_SETTINGS_GROUP'; - const settingsSchema = schema.object({ 'core.navigation-tree.childrenLimit': schema.coerce.number().min(10).max(1000).default(100), 'core.navigation-tree.editing': schemaExtra.stringedBoolean().default(true), @@ -63,37 +60,37 @@ export class NavTreeSettingsService extends Dependency { } private registerSettings() { - this.settingsManagerService.registerSettings(this.settings, () => [ - { - key: 'core.navigation-tree.childrenLimit', - access: { - scope: ['server'], - }, - group: NAVIGATION_TREE_SETTINGS_GROUP, - name: 'core_navigation_tree_settings_children_limit', - description: 'core_navigation_tree_settings_children_limit_description', - type: ESettingsValueType.Input, - }, - { - group: NAVIGATION_TREE_SETTINGS_GROUP, - key: 'core.navigation-tree.editing', - access: { - scope: ['server'], - }, - name: 'core_navigation_tree_settings_editing', - description: 'core_navigation_tree_settings_editing_description', - type: ESettingsValueType.Checkbox, - }, - { - group: NAVIGATION_TREE_SETTINGS_GROUP, - key: 'core.navigation-tree.deleting', - access: { - scope: ['server'], - }, - name: 'core_navigation_tree_settings_deleting', - description: 'core_navigation_tree_settings_deleting_description', - type: ESettingsValueType.Checkbox, - }, - ]); + // this.settingsManagerService.registerSettings(this.settings, () => [ + // { + // key: 'core.navigation-tree.childrenLimit', + // access: { + // scope: ['server'], + // }, + // group: NAVIGATION_TREE_SETTINGS_GROUP, + // name: 'core_navigation_tree_settings_children_limit', + // description: 'core_navigation_tree_settings_children_limit_description', + // type: ESettingsValueType.Input, + // }, + // { + // group: NAVIGATION_TREE_SETTINGS_GROUP, + // key: 'core.navigation-tree.editing', + // access: { + // scope: ['server'], + // }, + // name: 'core_navigation_tree_settings_editing', + // description: 'core_navigation_tree_settings_editing_description', + // type: ESettingsValueType.Checkbox, + // }, + // { + // group: NAVIGATION_TREE_SETTINGS_GROUP, + // key: 'core.navigation-tree.deleting', + // access: { + // scope: ['server'], + // }, + // name: 'core_navigation_tree_settings_deleting', + // description: 'core_navigation_tree_settings_deleting_description', + // type: ESettingsValueType.Checkbox, + // }, + // ]); } } diff --git a/webapp/packages/core-navigation-tree/src/locales/en.ts b/webapp/packages/core-navigation-tree/src/locales/en.ts index a54bd11c94..7619462963 100644 --- a/webapp/packages/core-navigation-tree/src/locales/en.ts +++ b/webapp/packages/core-navigation-tree/src/locales/en.ts @@ -7,8 +7,8 @@ */ export default [ ['core_navigation_tree_navigation_tree_settings_group', 'Navigation Tree'], - ['core_navigation_tree_settings_children_limit', 'Amount of children to load'], - ['core_navigation_tree_settings_children_limit_description', 'Amount of children to load in a single request'], + ['core_navigation_tree_settings_children_limit', 'Amount of nodes to load'], + ['core_navigation_tree_settings_children_limit_description', 'Amount of nodes to load in a single request'], ['core_navigation_tree_settings_editing', 'Editing'], ['core_navigation_tree_settings_editing_description', 'Allow editing nodes such as renaming'], ['core_navigation_tree_settings_deleting', 'Deleting'], diff --git a/webapp/packages/core-navigation-tree/src/locales/fr.ts b/webapp/packages/core-navigation-tree/src/locales/fr.ts index e4f268c9dd..fab896a76f 100644 --- a/webapp/packages/core-navigation-tree/src/locales/fr.ts +++ b/webapp/packages/core-navigation-tree/src/locales/fr.ts @@ -7,8 +7,8 @@ */ export default [ ['core_navigation_tree_navigation_tree_settings_group', 'Arborescence de navigation'], - ['core_navigation_tree_settings_children_limit', 'Amount of children to load'], - ['core_navigation_tree_settings_children_limit_description', 'Amount of children to load in a single request'], + ['core_navigation_tree_settings_children_limit', 'Amount of nodes to load'], + ['core_navigation_tree_settings_children_limit_description', 'Amount of nodes to load in a single request'], ['core_navigation_tree_settings_editing', 'Editing'], ['core_navigation_tree_settings_editing_description', 'Allow editing nodes such as renaming'], ['core_navigation_tree_settings_deleting', 'Deleting'], diff --git a/webapp/packages/core-navigation-tree/src/locales/it.ts b/webapp/packages/core-navigation-tree/src/locales/it.ts index a54bd11c94..7619462963 100644 --- a/webapp/packages/core-navigation-tree/src/locales/it.ts +++ b/webapp/packages/core-navigation-tree/src/locales/it.ts @@ -7,8 +7,8 @@ */ export default [ ['core_navigation_tree_navigation_tree_settings_group', 'Navigation Tree'], - ['core_navigation_tree_settings_children_limit', 'Amount of children to load'], - ['core_navigation_tree_settings_children_limit_description', 'Amount of children to load in a single request'], + ['core_navigation_tree_settings_children_limit', 'Amount of nodes to load'], + ['core_navigation_tree_settings_children_limit_description', 'Amount of nodes to load in a single request'], ['core_navigation_tree_settings_editing', 'Editing'], ['core_navigation_tree_settings_editing_description', 'Allow editing nodes such as renaming'], ['core_navigation_tree_settings_deleting', 'Deleting'], diff --git a/webapp/packages/core-navigation-tree/src/locales/zh.ts b/webapp/packages/core-navigation-tree/src/locales/zh.ts index b0a2ba10f9..290388ff22 100644 --- a/webapp/packages/core-navigation-tree/src/locales/zh.ts +++ b/webapp/packages/core-navigation-tree/src/locales/zh.ts @@ -7,8 +7,8 @@ */ export default [ ['core_navigation_tree_navigation_tree_settings_group', '导航树'], - ['core_navigation_tree_settings_children_limit', 'Amount of children to load'], - ['core_navigation_tree_settings_children_limit_description', 'Amount of children to load in a single request'], + ['core_navigation_tree_settings_children_limit', 'Amount of nodes to load'], + ['core_navigation_tree_settings_children_limit_description', 'Amount of nodes to load in a single request'], ['core_navigation_tree_settings_editing', 'Editing'], ['core_navigation_tree_settings_editing_description', 'Allow editing nodes such as renaming'], ['core_navigation_tree_settings_deleting', 'Deleting'], diff --git a/webapp/packages/plugin-connection-search/src/locales/en.ts b/webapp/packages/plugin-connection-search/src/locales/en.ts index a78880f598..d99b5104c5 100644 --- a/webapp/packages/plugin-connection-search/src/locales/en.ts +++ b/webapp/packages/plugin-connection-search/src/locales/en.ts @@ -7,6 +7,6 @@ */ export default [ ['plugin_connection_search_action_search_label', 'Find Local Database'], - ['plugin_connection_search_settings_disable', 'Disable connections search'], + ['plugin_connection_search_settings_disable', 'Disable "{alias:plugin_connection_search_action_search_label}"'], ['plugin_connection_search_settings_disable_description', 'Disable the ability to search connections on a specific address'], ]; diff --git a/webapp/packages/plugin-connection-search/src/locales/fr.ts b/webapp/packages/plugin-connection-search/src/locales/fr.ts index 46757adf89..a371fbcb02 100644 --- a/webapp/packages/plugin-connection-search/src/locales/fr.ts +++ b/webapp/packages/plugin-connection-search/src/locales/fr.ts @@ -7,6 +7,6 @@ */ export default [ ['plugin_connection_search_action_search_label', 'Trouver une base de données locale'], - ['plugin_connection_search_settings_disable', 'Disable connections search'], + ['plugin_connection_search_settings_disable', 'Disable "{alias:plugin_connection_search_action_search_label}"'], ['plugin_connection_search_settings_disable_description', 'Disable the ability to search connections on a specific address'], ]; diff --git a/webapp/packages/plugin-connection-search/src/locales/it.ts b/webapp/packages/plugin-connection-search/src/locales/it.ts index a78880f598..d99b5104c5 100644 --- a/webapp/packages/plugin-connection-search/src/locales/it.ts +++ b/webapp/packages/plugin-connection-search/src/locales/it.ts @@ -7,6 +7,6 @@ */ export default [ ['plugin_connection_search_action_search_label', 'Find Local Database'], - ['plugin_connection_search_settings_disable', 'Disable connections search'], + ['plugin_connection_search_settings_disable', 'Disable "{alias:plugin_connection_search_action_search_label}"'], ['plugin_connection_search_settings_disable_description', 'Disable the ability to search connections on a specific address'], ]; diff --git a/webapp/packages/plugin-connection-search/src/locales/zh.ts b/webapp/packages/plugin-connection-search/src/locales/zh.ts index 293abed1ca..fd82a90802 100644 --- a/webapp/packages/plugin-connection-search/src/locales/zh.ts +++ b/webapp/packages/plugin-connection-search/src/locales/zh.ts @@ -7,6 +7,6 @@ */ export default [ ['plugin_connection_search_action_search_label', '查找本地数据库'], - ['plugin_connection_search_settings_disable', 'Disable connections search'], + ['plugin_connection_search_settings_disable', 'Disable "{alias:plugin_connection_search_action_search_label}"'], ['plugin_connection_search_settings_disable_description', 'Disable the ability to search connections on a specific address'], ]; diff --git a/webapp/packages/plugin-connections/src/PluginConnectionsSettingsService.ts b/webapp/packages/plugin-connections/src/PluginConnectionsSettingsService.ts index 92bd06c69a..d9ef4cec64 100644 --- a/webapp/packages/plugin-connections/src/PluginConnectionsSettingsService.ts +++ b/webapp/packages/plugin-connections/src/PluginConnectionsSettingsService.ts @@ -5,9 +5,8 @@ * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ -import { CONNECTIONS_SETTINGS_GROUP } from '@cloudbeaver/core-connections'; import { Dependency, injectable } from '@cloudbeaver/core-di'; -import { ESettingsValueType, SettingsManagerService, SettingsProvider, SettingsProviderService } from '@cloudbeaver/core-settings'; +import { SettingsManagerService, SettingsProvider, SettingsProviderService } from '@cloudbeaver/core-settings'; import { schema, schemaExtra } from '@cloudbeaver/core-utils'; const defaultSettings = schema.object({ @@ -34,17 +33,18 @@ export class PluginConnectionsSettingsService extends Dependency { } private registerSettings() { - this.settingsManagerService.registerSettings(this.settings, () => [ - { - key: 'plugin.connections.hideConnectionViewForUsers', - type: ESettingsValueType.Checkbox, - access: { - scope: ['server'], - }, - name: 'settings_connections_hide_connections_view_name', - description: 'settings_connections_hide_connections_view_description', - group: CONNECTIONS_SETTINGS_GROUP, - }, - ]); + // todo: probably not working as a separate setting + // this.settingsManagerService.registerSettings(this.settings, () => [ + // { + // key: 'plugin.connections.hideConnectionViewForUsers', + // type: ESettingsValueType.Checkbox, + // access: { + // scope: ['server'], + // }, + // name: 'settings_connections_hide_connections_view_name', + // description: 'settings_connections_hide_connections_view_description', + // group: CONNECTIONS_SETTINGS_GROUP, + // }, + // ]); } } diff --git a/webapp/packages/plugin-log-viewer/src/LogViewer/LogViewerSettingsService.ts b/webapp/packages/plugin-log-viewer/src/LogViewer/LogViewerSettingsService.ts index 0eb053ad6d..b6b4118222 100644 --- a/webapp/packages/plugin-log-viewer/src/LogViewer/LogViewerSettingsService.ts +++ b/webapp/packages/plugin-log-viewer/src/LogViewer/LogViewerSettingsService.ts @@ -65,26 +65,26 @@ export class LogViewerSettingsService extends Dependency { private registerSettings() { this.settingsManagerService.registerSettings(this.settings, () => [ - { - group: LOG_VIEWER_SETTINGS_GROUP, - key: 'plugin.log-viewer.maxLogRecords', - access: { - scope: ['client'], - }, - type: ESettingsValueType.Input, - name: 'plugin_log_viewer_settings_max_log_records', - description: 'plugin_log_viewer_settings_max_log_records_description', - }, - { - group: LOG_VIEWER_SETTINGS_GROUP, - key: 'plugin.log-viewer.logBatchSize', - access: { - scope: ['client'], - }, - type: ESettingsValueType.Input, - name: 'plugin_log_viewer_settings_log_batch_size', - description: 'plugin_log_viewer_settings_log_batch_size_description', - }, + // { + // group: LOG_VIEWER_SETTINGS_GROUP, + // key: 'plugin.log-viewer.maxLogRecords', + // access: { + // scope: ['client'], + // }, + // type: ESettingsValueType.Input, + // name: 'plugin_log_viewer_settings_max_log_records', + // description: 'plugin_log_viewer_settings_max_log_records_description', + // }, + // { + // group: LOG_VIEWER_SETTINGS_GROUP, + // key: 'plugin.log-viewer.logBatchSize', + // access: { + // scope: ['client'], + // }, + // type: ESettingsValueType.Input, + // name: 'plugin_log_viewer_settings_log_batch_size', + // description: 'plugin_log_viewer_settings_log_batch_size_description', + // }, { key: 'plugin.log-viewer.disabled', access: { diff --git a/webapp/packages/plugin-navigation-tree/src/NavigationTreeSettingsService.ts b/webapp/packages/plugin-navigation-tree/src/NavigationTreeSettingsService.ts index 3cb58f48fe..01f414c060 100644 --- a/webapp/packages/plugin-navigation-tree/src/NavigationTreeSettingsService.ts +++ b/webapp/packages/plugin-navigation-tree/src/NavigationTreeSettingsService.ts @@ -42,16 +42,16 @@ export class NavigationTreeSettingsService extends Dependency { private registerSettings() { this.settingsManagerService.registerSettings(this.settings, () => [ - { - group: NAVIGATION_TREE_SETTINGS_GROUP, - key: 'plugin.navigation-tree.disabled', - access: { - scope: ['server'], - }, - type: ESettingsValueType.Checkbox, - name: 'plugin_navigation_tree_settings_disable', - description: 'plugin_navigation_tree_settings_disable_description', - }, + // { + // group: NAVIGATION_TREE_SETTINGS_GROUP, + // key: 'plugin.navigation-tree.disabled', + // access: { + // scope: ['server'], + // }, + // type: ESettingsValueType.Checkbox, + // name: 'plugin_navigation_tree_settings_disable', + // description: 'plugin_navigation_tree_settings_disable_description', + // }, ]); } } diff --git a/webapp/packages/plugin-resource-manager-scripts/src/ResourceManagerScriptsSettingsService.ts b/webapp/packages/plugin-resource-manager-scripts/src/ResourceManagerScriptsSettingsService.ts index 885880953d..9aa42668c6 100644 --- a/webapp/packages/plugin-resource-manager-scripts/src/ResourceManagerScriptsSettingsService.ts +++ b/webapp/packages/plugin-resource-manager-scripts/src/ResourceManagerScriptsSettingsService.ts @@ -36,16 +36,16 @@ export class ResourceManagerScriptsSettingsService extends Dependency { private registerSettings() { this.settingsManagerService.registerSettings(this.settings, () => [ - { - group: RESOURCE_MANAGER_SETTINGS_GROUP, - key: 'plugin.resource-manager-scripts.disabled', - access: { - scope: ['server'], - }, - type: ESettingsValueType.Checkbox, - name: 'plugin_resource_manager_scripts_disable', - description: 'plugin_resource_manager_scripts_disable_description', - }, + // { + // group: RESOURCE_MANAGER_SETTINGS_GROUP, + // key: 'plugin.resource-manager-scripts.disabled', + // access: { + // scope: ['server'], + // }, + // type: ESettingsValueType.Checkbox, + // name: 'plugin_resource_manager_scripts_disable', + // description: 'plugin_resource_manager_scripts_disable_description', + // }, ]); } } diff --git a/webapp/packages/plugin-settings-panel/src/SettingsPanel/Settings.tsx b/webapp/packages/plugin-settings-panel/src/SettingsPanel/Settings.tsx index c47db4d647..61a8572535 100644 --- a/webapp/packages/plugin-settings-panel/src/SettingsPanel/Settings.tsx +++ b/webapp/packages/plugin-settings-panel/src/SettingsPanel/Settings.tsx @@ -56,10 +56,7 @@ export const Settings = observer(function Settings({ source, acc }; }, getChildren(id) { - return (ROOT_SETTINGS_GROUP.get(id)?.subGroups || []) - .filter(filterExistsGroups) - .sort((a, b) => translate(a.name).localeCompare(translate(b.name))) - .map(group => group.id); + return (ROOT_SETTINGS_GROUP.get(id)?.subGroups || []).filter(filterExistsGroups).map(group => group.id); }, load() { return Promise.resolve(); diff --git a/webapp/packages/plugin-sql-editor/src/SqlEditorSettingsService.ts b/webapp/packages/plugin-sql-editor/src/SqlEditorSettingsService.ts index 6ed0e59ec7..5352a79a15 100644 --- a/webapp/packages/plugin-sql-editor/src/SqlEditorSettingsService.ts +++ b/webapp/packages/plugin-sql-editor/src/SqlEditorSettingsService.ts @@ -121,36 +121,36 @@ export class SqlEditorSettingsService extends Dependency { this.settingsManagerService.registerSettings(this.settings, () => { const settings: ISettingDescription[] = [ - { - group: SQL_EDITOR_SETTINGS_GROUP, - key: 'plugin.sql-editor.disabled', - access: { - scope: ['server'], - }, - type: ESettingsValueType.Checkbox, - name: 'plugin_sql_editor_settings_disable', - description: 'plugin_sql_editor_settings_disable_description', - }, + // { + // group: SQL_EDITOR_SETTINGS_GROUP, + // key: 'plugin.sql-editor.disabled', + // access: { + // scope: ['server'], + // }, + // type: ESettingsValueType.Checkbox, + // name: 'plugin_sql_editor_settings_disable', + // description: 'plugin_sql_editor_settings_disable_description', + // }, { group: SQL_EDITOR_SETTINGS_GROUP, key: 'plugin.sql-editor.maxFileSize', access: { - scope: ['client', 'server'], + scope: ['client'], }, type: ESettingsValueType.Input, name: 'plugin_sql_editor_settings_import_max_size', description: 'plugin_sql_editor_settings_import_max_size_description', }, - { - group: SQL_EDITOR_SETTINGS_GROUP, - key: 'plugin.sql-editor.autoSave', - access: { - scope: ['client'], - }, - type: ESettingsValueType.Checkbox, - name: 'plugin_sql_editor_settings_auto_save', - description: 'plugin_sql_editor_settings_auto_save_description', - }, + // { + // group: SQL_EDITOR_SETTINGS_GROUP, + // key: 'plugin.sql-editor.autoSave', + // access: { + // scope: ['client'], + // }, + // type: ESettingsValueType.Checkbox, + // name: 'plugin_sql_editor_settings_auto_save', + // description: 'plugin_sql_editor_settings_auto_save_description', + // }, ]; if (!this.serverSettingsManagerService.providedSettings.has('sql.proposals.insert.table.alias')) { diff --git a/webapp/packages/plugin-sql-editor/src/locales/en.ts b/webapp/packages/plugin-sql-editor/src/locales/en.ts index 3856a6a397..54dde6f381 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/en.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/en.ts @@ -48,7 +48,7 @@ export default [ ['plugin_sql_editor_action_close_group', 'Close all of the same query'], ['plugin_sql_editor_settings_disable', 'Disable'], ['plugin_sql_editor_settings_disable_description', 'Disable SQL editor for all users'], - ['plugin_sql_editor_settings_import_max_size', 'Max imported file size (KB)'], + ['plugin_sql_editor_settings_import_max_size', 'Import limit (KB)'], ['plugin_sql_editor_settings_import_max_size_description', 'Maximum file size that can be imported in KB'], ['plugin_sql_editor_settings_auto_save', 'Auto save'], ['plugin_sql_editor_settings_auto_save_description', 'Automatically save the editor content'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/fr.ts b/webapp/packages/plugin-sql-editor/src/locales/fr.ts index 36791c7bbf..859e5dfc0f 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/fr.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/fr.ts @@ -49,7 +49,7 @@ export default [ ['plugin_sql_editor_action_close_query', 'Fermer toutes les requêtes du même type'], ['plugin_sql_editor_settings_disable', 'Disable'], ['plugin_sql_editor_settings_disable_description', 'Disable SQL editor for all users'], - ['plugin_sql_editor_settings_import_max_size', 'Max imported file size (KB)'], + ['plugin_sql_editor_settings_import_max_size', 'Import limit (KB)'], ['plugin_sql_editor_settings_import_max_size_description', 'Maximum file size that can be imported in KB'], ['plugin_sql_editor_settings_auto_save', 'Auto save'], ['plugin_sql_editor_settings_auto_save_description', 'Automatically save the editor content'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/it.ts b/webapp/packages/plugin-sql-editor/src/locales/it.ts index b468340c84..f9979d8cd9 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/it.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/it.ts @@ -41,7 +41,7 @@ export default [ ['plugin_sql_editor_action_close_group', 'Close all of the same query'], ['plugin_sql_editor_settings_disable', 'Disable'], ['plugin_sql_editor_settings_disable_description', 'Disable SQL editor for all users'], - ['plugin_sql_editor_settings_import_max_size', 'Max imported file size (KB)'], + ['plugin_sql_editor_settings_import_max_size', 'Import limit (KB)'], ['plugin_sql_editor_settings_import_max_size_description', 'Maximum file size that can be imported in KB'], ['plugin_sql_editor_settings_auto_save', 'Auto save'], ['plugin_sql_editor_settings_auto_save_description', 'Automatically save the editor content'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/ru.ts b/webapp/packages/plugin-sql-editor/src/locales/ru.ts index 03246c0560..c2793b2fe1 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/ru.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/ru.ts @@ -45,7 +45,7 @@ export default [ ['plugin_sql_editor_action_close_group', 'Закрыть все из этого запроса'], ['plugin_sql_editor_settings_disable', 'Отключить'], ['plugin_sql_editor_settings_disable_description', 'Отключить SQL редактор для всех пользователей'], - ['plugin_sql_editor_settings_import_max_size', 'Максимальный размер импортируемого файла (КБ)'], + ['plugin_sql_editor_settings_import_max_size', 'Лимит импорта (КБ)'], ['plugin_sql_editor_settings_import_max_size_description', 'Максимальный размер файла, который можно импортировать в КБ'], ['plugin_sql_editor_settings_auto_save', 'Автосохранение'], ['plugin_sql_editor_settings_auto_save_description', 'Автоматически сохранять содержимое редактора'], diff --git a/webapp/packages/plugin-sql-editor/src/locales/zh.ts b/webapp/packages/plugin-sql-editor/src/locales/zh.ts index 17d692e9b4..c25a7f6d68 100644 --- a/webapp/packages/plugin-sql-editor/src/locales/zh.ts +++ b/webapp/packages/plugin-sql-editor/src/locales/zh.ts @@ -45,7 +45,7 @@ export default [ ['plugin_sql_editor_action_close_group', '关闭所有相同查询'], ['plugin_sql_editor_settings_disable', 'Disable'], ['plugin_sql_editor_settings_disable_description', 'Disable SQL editor for all users'], - ['plugin_sql_editor_settings_import_max_size', 'Max imported file size (KB)'], + ['plugin_sql_editor_settings_import_max_size', 'Import limit (KB)'], ['plugin_sql_editor_settings_import_max_size_description', 'Maximum file size that can be imported in KB'], ['plugin_sql_editor_settings_auto_save', 'Auto save'], ['plugin_sql_editor_settings_auto_save_description', 'Automatically save the editor content'],