mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 13:05:57 +02:00
enhance(frontend): ウィジェットもpreference管理に
This commit is contained in:
@@ -35,6 +35,15 @@ export const PREF_DEF = {
|
||||
accountDependent: true,
|
||||
default: null as string | null,
|
||||
},
|
||||
widgets: {
|
||||
accountDependent: true,
|
||||
default: [] as {
|
||||
name: string;
|
||||
id: string;
|
||||
place: string | null;
|
||||
data: Record<string, any>;
|
||||
}[],
|
||||
},
|
||||
|
||||
themes: {
|
||||
default: [] as Theme[],
|
||||
|
||||
@@ -203,7 +203,7 @@ export async function enableAutoBackup() {
|
||||
export const shouldSuggestRestoreBackup = ref(false);
|
||||
|
||||
if ($i != null) {
|
||||
if (new Date($i.createdAt).getTime() < (Date.now() - 1000 * 60 * 30)) { // アカウント作成直後は意味ないので除外
|
||||
if (new Date($i.createdAt).getTime() > (Date.now() - 1000 * 60 * 30)) { // アカウント作成直後は意味ないので除外
|
||||
miLocalStorage.setItem('hidePreferencesRestoreSuggestion', 'true');
|
||||
} else {
|
||||
if (miLocalStorage.getItem('hidePreferencesRestoreSuggestion') !== 'true') {
|
||||
|
||||
Reference in New Issue
Block a user