Skip to content

Commit

Permalink
mv
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 committed Dec 26, 2024
1 parent 7b3b037 commit 28851c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 6 additions & 0 deletions packages/frontend/src/pages/settings/general.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkSwitch v-model="disableNyaize">{{ i18n.ts.noNyaization }} <span class="_beta">CherryPick</span></MkSwitch>
<MkSwitch v-model="checkMultipleRenote">{{ i18n.ts.showMultipleRenoteWarning }} <span class="_beta">yojo-art</span></MkSwitch>
</div>
<MkInput v-model="searchEngine" manualSave :spellcheck="false">
<template #label>{{ i18n.ts.search }}<span class="_beta">yojo-art</span></template>
<template #caption>{{ i18n.ts.searchEngineDescription }}</template>
</MkInput>
<MkSelect v-model="serverDisconnectedBehavior">
<template #label>{{ i18n.ts.whenServerDisconnected }} <span class="_beta" style="vertical-align: middle;">CherryPick</span></template>
<option value="reload">{{ i18n.ts._serverDisconnectedBehavior.reload }}</option>
Expand Down Expand Up @@ -161,6 +165,7 @@ import FormSection from '@/components/form/section.vue';
import FormLink from '@/components/form/link.vue';
import MkLink from '@/components/MkLink.vue';
import MkInfo from '@/components/MkInfo.vue';
import MkInput from '@/components/MkInput.vue';
import { defaultStore } from '@/store.js';
import * as os from '@/os.js';
import { misskeyApi } from '@/scripts/misskey-api.js';
Expand Down Expand Up @@ -201,6 +206,7 @@ const useAutoTranslate = computed(defaultStore.makeGetterSetter('useAutoTranslat
const welcomeBackToast = computed(defaultStore.makeGetterSetter('welcomeBackToast'));
const disableNyaize = computed(defaultStore.makeGetterSetter('disableNyaize'));
const checkMultipleRenote = computed(defaultStore.makeGetterSetter('checkMultipleRenote'));
const searchEngine = computed(defaultStore.makeGetterSetter('searchEngine'));

watch(lang, () => {
miLocalStorage.setItem('lang', lang.value as string);
Expand Down
7 changes: 0 additions & 7 deletions packages/frontend/src/pages/settings/privacy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ SPDX-License-Identifier: AGPL-3.0-only
</FormSection>

<MkSwitch v-model="keepCw" @update:modelValue="save()">{{ i18n.ts.keepCw }}</MkSwitch>

<MkInput v-model="searchEngine" manualSave :spellcheck="false">
<template #label>{{ i18n.ts.search }}<span class="_beta">yojo-art</span></template>
<template #caption>{{ i18n.ts.searchEngineDescription }}</template>
</MkInput>
</div>
</template>

Expand All @@ -115,7 +110,6 @@ import MkSelect from '@/components/MkSelect.vue';
import FormSection from '@/components/form/section.vue';
import MkFolder from '@/components/MkFolder.vue';
import MkInfo from '@/components/MkInfo.vue';
import MkInput from '@/components/MkInput.vue';
import { misskeyApi } from '@/scripts/misskey-api.js';
import { defaultStore } from '@/store.js';
import { i18n } from '@/i18n.js';
Expand All @@ -141,7 +135,6 @@ const defaultNoteSearchbility = computed(defaultStore.makeGetterSetter('defaultN
const rememberNoteSearchbility = computed(defaultStore.makeGetterSetter('rememberNoteSearchbility'));
const rememberNoteVisibility = computed(defaultStore.makeGetterSetter('rememberNoteVisibility'));
const keepCw = computed(defaultStore.makeGetterSetter('keepCw'));
const searchEngine = computed(defaultStore.makeGetterSetter('searchEngine'));

function save() {
console.log(typeof(searchableBy.value));
Expand Down

0 comments on commit 28851c8

Please sign in to comment.