+
+ }
+ onClick={async () =>
+ await exportData("full", config.data.metadata.cfgNum)
+ }
+ >
+ {t("downloadIt")}
+
+
+
+ }
+ >
+ {t("restore")}
+ {
+ if (e.target instanceof HTMLInputElement) {
+ handleChangeFile(e as ChangeEvent).then(
+ (fileContent) => {
console.debug("File content:", fileContent);
dispatch(
saveConfigAsync(
@@ -103,56 +101,43 @@ export function HomePage() {
)
);
setOpenSavePopup(true);
- });
- }
- }}
- />
-
-
-
-
-
-
-
-
-
- SetAimedConf(Number(e.target.value))}
- onKeyDown={(e) => {
- if (e.key === "Enter") {
- if (aimedConf <= config.data.metadata.cfgNum) {
- dispatch(push(`#conf/${aimedConf}`));
- } else
- dispatch(
- setError(
- `Latest Config : ${config.data.metadata.cfgNum}`
- )
- );
+ }
+ );
}
}}
/>
-
+
+
+
+
+
+
+
+
+ SetAimedConf(Number(e.target.value))}
+ onKeyDown={(e) => {
+ if (e.key === "Enter") {
if (aimedConf <= config.data.metadata.cfgNum) {
dispatch(push(`#conf/${aimedConf}`));
} else
@@ -161,73 +146,84 @@ export function HomePage() {
`Latest Config : ${config.data.metadata.cfgNum}`
)
);
- }}
- >
- {t("go")}
-
-
-