+
+ }
+ 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,48 +101,35 @@ 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
@@ -153,73 +138,84 @@ export function HomePage() {
`Latest Config : ${config.data.metadata.cfgNum}`
)
);
- }}
- >
- {t("go")}
-
-
-