merge: Choosing search engines for search mfm (!547)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/547 Approved-by: Luna <her@mint.lgbt> Approved-by: Marie <marie@kaifa.ch>
This commit is contained in:
commit
fef64e9c69
9 changed files with 85 additions and 6 deletions
|
|
@ -6,6 +6,7 @@
|
|||
import { markRaw, ref } from 'vue';
|
||||
import * as Misskey from 'misskey-js';
|
||||
import { miLocalStorage } from './local-storage.js';
|
||||
import { searchEngineMap } from './scripts/search-engine-map.js';
|
||||
import type { SoundType } from '@/scripts/sound.js';
|
||||
import type { BuiltinTheme as ShikiBuiltinTheme } from 'shiki';
|
||||
import { Storage } from '@/pizzax.js';
|
||||
|
|
@ -308,6 +309,10 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||
where: 'device',
|
||||
default: false,
|
||||
},
|
||||
searchEngine: {
|
||||
where: 'account',
|
||||
default: Object.keys(searchEngineMap)[0],
|
||||
},
|
||||
noteDesign: {
|
||||
where: 'device',
|
||||
default: 'sharkey' as 'sharkey' | 'misskey',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue