mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 11:03:57 +00:00
Removed Other settings component
This commit is contained in:
@@ -49,6 +49,32 @@ label={_t('settings.tabGroup.showServerName', {
|
|||||||
})}
|
})}
|
||||||
defaultValue={false}
|
defaultValue={false}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<FormSelectField
|
||||||
|
label={_t('settings.other.autoUpdateApplication', { defaultMessage: 'Auto update application' })}
|
||||||
|
name="app.autoUpdateMode"
|
||||||
|
isNative
|
||||||
|
defaultValue=""
|
||||||
|
options={[
|
||||||
|
{
|
||||||
|
value: 'skip',
|
||||||
|
label: _t('settings.other.autoUpdateApplication.skip', {
|
||||||
|
defaultMessage: 'Do not check for new versions',
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '',
|
||||||
|
label: _t('settings.other.autoUpdateApplication.check', { defaultMessage: 'Check for new versions' }),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'download',
|
||||||
|
label: _t('settings.other.autoUpdateApplication.download', {
|
||||||
|
defaultMessage: 'Check and download new versions',
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
|
||||||
<div class="heading">{_t('settings.localization', { defaultMessage: 'Localization' })}</div>
|
<div class="heading">{_t('settings.localization', { defaultMessage: 'Localization' })}</div>
|
||||||
|
|
||||||
<FormFieldTemplateLarge
|
<FormFieldTemplateLarge
|
||||||
|
|||||||
@@ -1,64 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import FormCheckboxField from "../forms/FormCheckboxField.svelte";
|
|
||||||
import FormSelectField from "../forms/FormSelectField.svelte";
|
|
||||||
import FormTextField from "../forms/FormTextField.svelte";
|
|
||||||
import { _t } from "../translations";
|
|
||||||
import { isProApp } from "../utility/proTools";
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<div class="heading">{_t('settings.other', { defaultMessage: 'Other' })}</div>
|
|
||||||
|
|
||||||
<FormTextField
|
|
||||||
name="other.gistCreateToken"
|
|
||||||
label={_t('settings.other.gistCreateToken', { defaultMessage: 'API token for creating error gists' })}
|
|
||||||
defaultValue=""
|
|
||||||
/>
|
|
||||||
|
|
||||||
<FormSelectField
|
|
||||||
label={_t('settings.other.autoUpdateApplication', { defaultMessage: 'Auto update application' })}
|
|
||||||
name="app.autoUpdateMode"
|
|
||||||
isNative
|
|
||||||
defaultValue=""
|
|
||||||
options={[
|
|
||||||
{
|
|
||||||
value: 'skip',
|
|
||||||
label: _t('settings.other.autoUpdateApplication.skip', {
|
|
||||||
defaultMessage: 'Do not check for new versions',
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: '',
|
|
||||||
label: _t('settings.other.autoUpdateApplication.check', { defaultMessage: 'Check for new versions' }),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'download',
|
|
||||||
label: _t('settings.other.autoUpdateApplication.download', {
|
|
||||||
defaultMessage: 'Check and download new versions',
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{#if isProApp()}
|
|
||||||
<FormCheckboxField
|
|
||||||
name="ai.allowSendModels"
|
|
||||||
label={_t('settings.other.ai.allowSendModels', {
|
|
||||||
defaultMessage: 'Allow to send DB models and query snippets to AI service',
|
|
||||||
})}
|
|
||||||
defaultValue={false}
|
|
||||||
/>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.heading {
|
|
||||||
font-size: 20px;
|
|
||||||
margin: 5px;
|
|
||||||
margin-left: var(--dim-large-form-margin);
|
|
||||||
margin-top: var(--dim-large-form-margin);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -11,7 +11,6 @@
|
|||||||
import DefaultActionsSettings from "../settings/DefaultActionsSettings.svelte";
|
import DefaultActionsSettings from "../settings/DefaultActionsSettings.svelte";
|
||||||
import BehaviourSettings from "../settings/BehaviourSettings.svelte";
|
import BehaviourSettings from "../settings/BehaviourSettings.svelte";
|
||||||
import ExternalToolsSettings from "../settings/ExternalToolsSettings.svelte";
|
import ExternalToolsSettings from "../settings/ExternalToolsSettings.svelte";
|
||||||
import OtherSettings from "../settings/OtherSettings.svelte";
|
|
||||||
import LicenseSettings from "../settings/LicenseSettings.svelte";
|
import LicenseSettings from "../settings/LicenseSettings.svelte";
|
||||||
import { isProApp } from "../utility/proTools";
|
import { isProApp } from "../utility/proTools";
|
||||||
import { _t } from "../translations";
|
import { _t } from "../translations";
|
||||||
@@ -100,13 +99,6 @@
|
|||||||
props: {},
|
props: {},
|
||||||
testid: 'settings-ai',
|
testid: 'settings-ai',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: _t('settings.other', { defaultMessage: 'Other' }),
|
|
||||||
identifier: 'other',
|
|
||||||
component: OtherSettings,
|
|
||||||
props: {},
|
|
||||||
testid: 'settings-other',
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user