optimize: reindent front-end with tab

This commit is contained in:
XZB-1248
2022-10-18 17:11:49 +08:00
parent dd2cc99aff
commit c421930ae2
19 changed files with 2651 additions and 2663 deletions

View File

@@ -11,6 +11,7 @@ function wrapper(props) {
<ProLayout
loading={false}
title='Spark'
logo={null}
layout='top'
navTheme='light'
collapsed={true}
@@ -25,7 +26,7 @@ function wrapper(props) {
</PageContainer>
</ProLayout>
);
};
}
function Title() {
return (
<div

View File

@@ -1,11 +0,0 @@
{
"mac": {
"show": true
},
"ram_total": {
"show": true
},
"disk_usage": {
"show": true
}
}

View File

@@ -11,8 +11,6 @@ import Runner from "../components/runner";
import {QuestionCircleOutlined} from "@ant-design/icons";
import i18n from "../locale/locale";
import defaultColumnsState from "../config/columnsState.json";
// DO NOT EDIT OR DELETE THIS COPYRIGHT MESSAGE.
console.log("%c By XZB %c https://github.com/XZB-1248/Spark", 'font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:64px;color:#00bbee;-webkit-text-fill-color:#00bbee;-webkit-text-stroke:1px#00bbee;', 'font-size:12px;');
@@ -193,9 +191,9 @@ function overview(props) {
}
return stateMap
} else {
localStorage.setItem(`columnsState`, JSON.stringify(defaultColumnsState));
localStorage.setItem(`columnsState`, JSON.stringify({}));
return {};
}
return defaultColumnsState;
}
function saveColumnsState(stateMap) {
setColumnsState(stateMap);