1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-27 05:24:39 +02:00
This commit is contained in:
syuilo
2026-07-26 08:50:32 +09:00
parent a01b6af7c1
commit b1980f1287
4 changed files with 24 additions and 0 deletions

View File

@@ -1422,6 +1422,8 @@ append: "末尾に追加"
prepend: "先頭に追加"
urlPreviewSensitiveList: "サムネイルの表示を制限するURL"
urlPreviewSensitiveListDescription: "スペースで区切るとAND指定になり、改行で区切るとOR指定になります。スラッシュで囲むと正規表現になります。一致した場合、サムネイルが表示されなくなります。"
latestBackupAt: "最終バックアップ"
latestSyncAt: "最終同期"
_imageEditing:
_vars:

View File

@@ -66,11 +66,13 @@ export function getPreferencesProfileMenu(): MenuItem[] {
type: 'switch',
icon: 'ti ti-cloud-up',
text: i18n.ts._preferencesBackup.autoBackup,
caption: i18n.ts.latestBackupAt + ': ' + (store.s.latestPreferencesBackupAt ? new Date(store.s.latestPreferencesBackupAt).toLocaleString() : '-'),
ref: autoBackupEnabled,
}, {
type: 'switch',
icon: 'ti ti-cloud-down',
text: i18n.ts._preferencesBackup.autoSync,
caption: i18n.ts.latestSyncAt + ': ' + (store.s.latestPreferencesSyncAt ? new Date(store.s.latestPreferencesSyncAt).toLocaleString() : '-'),
ref: autoSyncEnabled,
}, {
text: i18n.ts.export,
@@ -173,6 +175,8 @@ export async function cloudSync() {
miLocalStorage.setItem('preferences', JSON.stringify(mergeProfiles(prefer.profile, cloudProfile)));
prefer.reloadProfile();
store.set('latestPreferencesSyncAt', Date.now());
}
export async function cloudBackup() {
@@ -200,6 +204,8 @@ export async function cloudBackup() {
key: prefer.profile.name,
value: currentProfile,
});
store.set('latestPreferencesBackupAt', Date.now());
}
export async function listCloudBackups() {

View File

@@ -122,6 +122,14 @@ export const store = markRaw(new Pizzax('base', {
where: 'device',
default: true,
},
latestPreferencesBackupAt: {
where: 'device',
default: 0,
},
latestPreferencesSyncAt: {
where: 'device',
default: 0,
},
}));
// TODO: 他のタブと永続化されたstateを同期

View File

@@ -5703,6 +5703,14 @@ export interface Locale extends ILocale {
* スペースで区切るとAND指定になり、改行で区切るとOR指定になります。スラッシュで囲むと正規表現になります。一致した場合、サムネイルが表示されなくなります。
*/
"urlPreviewSensitiveListDescription": string;
/**
* 最終バックアップ
*/
"latestBackupAt": string;
/**
* 最終同期
*/
"latestSyncAt": string;
"_imageEditing": {
"_vars": {
/**