mirror of
https://github.com/XZB-1248/Spark
synced 2025-09-27 20:42:18 +08:00
optimize: reindent front-end with tab
This commit is contained in:
@@ -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
|
||||
|
@@ -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 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);
|
||||
|
Reference in New Issue
Block a user