|
|
@ -18,7 +18,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
import { showNotification } from "@api/Notifications";
|
|
|
|
import { showNotification } from "@api/Notifications";
|
|
|
|
import { PlainSettings, Settings } from "@api/Settings";
|
|
|
|
import { PlainSettings, Settings } from "@api/Settings";
|
|
|
|
import { Toasts } from "@webpack/common";
|
|
|
|
import { moment, Toasts } from "@webpack/common";
|
|
|
|
import { deflateSync, inflateSync } from "fflate";
|
|
|
|
import { deflateSync, inflateSync } from "fflate";
|
|
|
|
|
|
|
|
|
|
|
|
import { getCloudAuth, getCloudUrl } from "./cloud";
|
|
|
|
import { getCloudAuth, getCloudUrl } from "./cloud";
|
|
|
@ -49,7 +49,7 @@ export async function exportSettings({ minify }: { minify?: boolean; } = {}) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export async function downloadSettingsBackup() {
|
|
|
|
export async function downloadSettingsBackup() {
|
|
|
|
const filename = "vencord-settings-backup.json";
|
|
|
|
const filename = `vencord-settings-backup-${moment().format("YYYY-MM-DD")}.json`;
|
|
|
|
const backup = await exportSettings();
|
|
|
|
const backup = await exportSettings();
|
|
|
|
const data = new TextEncoder().encode(backup);
|
|
|
|
const data = new TextEncoder().encode(backup);
|
|
|
|
|
|
|
|
|
|
|
|