mirror of
https://github.com/XZB-1248/Spark
synced 2025-09-28 04:52:18 +08:00
optimize: reindent front-end with tab
This commit is contained in:
@@ -11,6 +11,7 @@ function wrapper(props) {
|
|||||||
<ProLayout
|
<ProLayout
|
||||||
loading={false}
|
loading={false}
|
||||||
title='Spark'
|
title='Spark'
|
||||||
|
logo={null}
|
||||||
layout='top'
|
layout='top'
|
||||||
navTheme='light'
|
navTheme='light'
|
||||||
collapsed={true}
|
collapsed={true}
|
||||||
@@ -25,7 +26,7 @@ function wrapper(props) {
|
|||||||
</PageContainer>
|
</PageContainer>
|
||||||
</ProLayout>
|
</ProLayout>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
function Title() {
|
function Title() {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"mac": {
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
"ram_total": {
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
"disk_usage": {
|
|
||||||
"show": true
|
|
||||||
}
|
|
||||||
}
|
|
@@ -11,8 +11,6 @@ import Runner from "../components/runner";
|
|||||||
import {QuestionCircleOutlined} from "@ant-design/icons";
|
import {QuestionCircleOutlined} from "@ant-design/icons";
|
||||||
import i18n from "../locale/locale";
|
import i18n from "../locale/locale";
|
||||||
|
|
||||||
import defaultColumnsState from "../config/columnsState.json";
|
|
||||||
|
|
||||||
// DO NOT EDIT OR DELETE THIS COPYRIGHT MESSAGE.
|
// 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;');
|
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
|
return stateMap
|
||||||
} else {
|
} else {
|
||||||
localStorage.setItem(`columnsState`, JSON.stringify(defaultColumnsState));
|
localStorage.setItem(`columnsState`, JSON.stringify({}));
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
return defaultColumnsState;
|
|
||||||
}
|
}
|
||||||
function saveColumnsState(stateMap) {
|
function saveColumnsState(stateMap) {
|
||||||
setColumnsState(stateMap);
|
setColumnsState(stateMap);
|
||||||
|
Reference in New Issue
Block a user