enhance(client): make possible to hide ads

Resolve #9590
Resolve #8996
This commit is contained in:
syuilo
2023-01-16 11:21:04 +09:00
parent 60d9bb0218
commit fe0bb21b37
6 changed files with 51 additions and 2 deletions

View File

@ -86,6 +86,10 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'account',
default: [] as string[],
},
hiddenAds: {
where: 'account',
default: [] as string[],
},
menu: {
where: 'deviceAccount',
@ -293,10 +297,10 @@ interface Watcher {
/**
* 常にメモリにロードしておく必要がないような設定情報を保管するストレージ(非リアクティブ)
*/
import { miLocalStorage } from './local-storage';
import lightTheme from '@/themes/l-light.json5';
import darkTheme from '@/themes/d-green-lime.json5';
import { Note, UserDetailed } from 'misskey-js/built/entities';
import { miLocalStorage } from './local-storage';
export class ColdDeviceStorage {
public static default = {