feat: export word & translation

This commit is contained in:
Gabe Yuan
2024-04-16 16:29:59 +08:00
parent b416e72820
commit bf3a16f96d
8 changed files with 278 additions and 189 deletions

View File

@@ -776,7 +776,7 @@ function UserRules({ subRules }) {
<UploadButton text={i18n("import")} handleImport={handleImport} />
<DownloadButton
data={JSON.stringify([...rules.list].reverse(), null, 2)}
handleData={() => JSON.stringify([...rules.list].reverse(), null, 2)}
text={i18n("export")}
fileName={`kiss-rules_${Date.now()}.json`}
/>