mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 08:33:58 +00:00
Add ai settings component to SettingsTab
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
import HorizontalSplitter from "../elements/HorizontalSplitter.svelte";
|
|
||||||
import SettingsMenuControl from "../elements/SettingsMenuControl.svelte";
|
import SettingsMenuControl from "../elements/SettingsMenuControl.svelte";
|
||||||
import GeneralSettings from "../settings/GeneralSettings.svelte";
|
import GeneralSettings from "../settings/GeneralSettings.svelte";
|
||||||
import SettingsFormProvider from "../forms/SettingsFormProvider.svelte";
|
import SettingsFormProvider from "../forms/SettingsFormProvider.svelte";
|
||||||
@@ -15,6 +14,7 @@
|
|||||||
import CommandListTab from "./CommandListTab.svelte";
|
import CommandListTab from "./CommandListTab.svelte";
|
||||||
import DataGridSettings from "../settings/DataGridSettings.svelte";
|
import DataGridSettings from "../settings/DataGridSettings.svelte";
|
||||||
import SQLEditorSettings from "../settings/SQLEditorSettings.svelte";
|
import SQLEditorSettings from "../settings/SQLEditorSettings.svelte";
|
||||||
|
import AiSettingsTab from "../settings/AiSettingsTab.svelte";
|
||||||
|
|
||||||
const menuItems = [
|
const menuItems = [
|
||||||
{
|
{
|
||||||
@@ -87,6 +87,13 @@
|
|||||||
props: {},
|
props: {},
|
||||||
testid: 'settings-license',
|
testid: 'settings-license',
|
||||||
},
|
},
|
||||||
|
isProApp() && {
|
||||||
|
label: _t('settings.AI', { defaultMessage: 'AI'}),
|
||||||
|
identifier: 'ai',
|
||||||
|
component: AiSettingsTab,
|
||||||
|
props: {},
|
||||||
|
testid: 'settings-ai',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: _t('settings.other', { defaultMessage: 'Other' }),
|
label: _t('settings.other', { defaultMessage: 'Other' }),
|
||||||
identifier: 'other',
|
identifier: 'other',
|
||||||
|
|||||||
Reference in New Issue
Block a user