This commit is contained in:
sakana
2024-08-11 23:47:31 +08:00
committed by GitHub
10 changed files with 321 additions and 36 deletions

View File

@@ -109,6 +109,8 @@ declare namespace App {
[K in keyof ThemeSettingToken]?: Partial<ThemeSettingToken[K]>;
};
};
/** menu history max value */
menuSearchHistoryMaxValue: number
}
interface OtherColor {
@@ -200,6 +202,11 @@ declare namespace App {
children?: Menu[];
};
/** The global search history or collect */
type SearchHistoryOrCollect = Menu & {
type: 'history' | 'collect';
};
type Breadcrumb = Omit<Menu, 'children'> & {
options?: Breadcrumb[];
};
@@ -329,6 +336,8 @@ declare namespace App {
yes: string;
no: string;
};
search_history: string;
collection_record: string;
};
request: {
logout: string;

View File

@@ -29,6 +29,7 @@ declare module 'vue' {
IconIcRoundRefresh: typeof import('~icons/ic/round-refresh')['default']
IconIcRoundRemove: typeof import('~icons/ic/round-remove')['default']
IconIcRoundSearch: typeof import('~icons/ic/round-search')['default']
IconIonClose: typeof import('~icons/ion/close')['default']
IconLocalActivity: typeof import('~icons/local/activity')['default']
IconLocalBanner: typeof import('~icons/local/banner')['default']
IconLocalCast: typeof import('~icons/local/cast')['default']

View File

@@ -35,5 +35,9 @@ declare namespace StorageType {
layout: UnionKey.ThemeLayoutMode;
siderCollapse: boolean;
};
/** The search history */
searchHistory: App.Global.SearchHistoryOrCollect[]
/** The search collect */
searchCollect: App.Global.SearchHistoryOrCollect[]
}
}