diff --git a/public/serviceWorker.js b/public/serviceWorker.js index dd04c80..b901012 100644 --- a/public/serviceWorker.js +++ b/public/serviceWorker.js @@ -36,7 +36,7 @@ self.addEventListener("activate", (event) => { return caches.delete(cacheName); } }), - ), ), + ), ); }); diff --git a/src/components/start/index.jsx b/src/components/start/index.jsx index 5e99a63..697e8f8 100644 --- a/src/components/start/index.jsx +++ b/src/components/start/index.jsx @@ -81,28 +81,28 @@ export const BandPane = () => { >
- - + className="hvlight" + width={17} + click="CALCUAPP" + payload="togg" + open="true" + src="calculator" + /> + +
); @@ -150,7 +150,7 @@ export const SidePane = () => { function sliderBackground(elem, e) { elem.style.setProperty( "--track-color", - `linear-gradient(90deg, var(--clrPrm) ${e - 3}%, #888888 ${e}%)` + `linear-gradient(90deg, var(--clrPrm) ${e - 3}%, #888888 ${e}%)`, ); } @@ -179,7 +179,7 @@ export const SidePane = () => { }, }); sliderBackground(bSlider, brgt); - }; + } useEffect(() => { sidepane.quicks.map((item, i) => { diff --git a/src/containers/applications/apps/explorer.jsx b/src/containers/applications/apps/explorer.jsx index 9079ca1..b32f6d1 100644 --- a/src/containers/applications/apps/explorer.jsx +++ b/src/containers/applications/apps/explorer.jsx @@ -342,7 +342,7 @@ const NavPane = ({}) => { notoggle pinned /> - + { const wall = useSelector((state) => state.wallpaper); - const [page, setPage] = useState("System"); // default System + const [page, setPage] = useState("系统"); // default System const [nav, setNav] = useState(""); const [updating, setUpdating] = useState(false); const [upmodalOpen, setUpmodalOpen] = useState(false); @@ -134,12 +134,26 @@ export const Settings = () => {
+
+ +

+ Microsoft 365 +
+ + 浏览优势 + +

+
setPage("Windows 更新")} > @@ -180,8 +194,7 @@ export const Settings = () => {

数据使用量

- {Math.round(Math.random() * 100)}GB, last 30 - days + {Math.round(Math.random() * 100)}GB, 过去30天

diff --git a/src/containers/applications/wnapp.scss b/src/containers/applications/wnapp.scss index f50e43c..12a40d4 100644 --- a/src/containers/applications/wnapp.scss +++ b/src/containers/applications/wnapp.scss @@ -147,6 +147,10 @@ body[data-theme="dark"] .calcApp { background: rgb(24, 24, 24); } +.discordWn { + background: #36393f; +} + .lightWindow { background: #e7eaec; } diff --git a/src/index.jsx b/src/index.jsx index 9de71de..34d17a8 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -4,8 +4,6 @@ import App from "./App"; import store from "./reducers"; import { Provider } from "react-redux"; - - const root = createRoot(document.getElementById("root")); root.render( diff --git a/src/reducers/dir.json b/src/reducers/dir.json index 3f4f7eb..8910dcf 100644 --- a/src/reducers/dir.json +++ b/src/reducers/dir.json @@ -76,7 +76,7 @@ }, "Blue": { "type": "folder", - "name": "此电脑", + "name": "˵", "info": { "spid": "%user%", "icon": "user" diff --git a/src/reducers/settings.js b/src/reducers/settings.js index 0817bb5..c3e89e0 100644 --- a/src/reducers/settings.js +++ b/src/reducers/settings.js @@ -72,9 +72,9 @@ const settReducer = (state = defState, action) => { tmpState = changeVal(tmpState, action.payload.path, action.payload.value); break; case "SETTLOAD": - changed = true; + changed = true; tmpState = { ...action.payload }; - break; + break; case "TOGGAIRPLNMD": changed = true; const airPlaneModeStatus = tmpState.network.airplane; diff --git a/src/reducers/startmenu.js b/src/reducers/startmenu.js index 5ded331..15de319 100644 --- a/src/reducers/startmenu.js +++ b/src/reducers/startmenu.js @@ -10,8 +10,8 @@ const defState = { pwctrl: false, curAlpha: "A", qksrch: [ - ["faClock", 1, "历史的今天"], - ["faChartLine", null, "今日市场"], //emmm,似乎是股票。这咋翻译哇(冬天 + ["faClock", 1, "历史上的今天"], + ["faChartLine", null, "今日行情"], ["faFilm", null, "近期电影"], ["faNewspaper", 1, "头条新闻"], ], diff --git a/src/reducers/taskbar.js b/src/reducers/taskbar.js index eeacbdc..8acd802 100644 --- a/src/reducers/taskbar.js +++ b/src/reducers/taskbar.js @@ -25,13 +25,13 @@ const taskReducer = (state = defState, action) => { align: "center", }; case "TASKLEF": - localStorage.setItem("taskbar-align", "left"); + localStorage.setItem("taskbar-align", "left"); return { ...state, align: "left", }; case "TASKTOG": - const alignment = state.align == "left" ? "center" : "left"; + const alignment = state.align == "left" ? "center" : "left"; localStorage.setItem("taskbar-align", alignment); return { ...state, diff --git a/src/utils/apps.js b/src/utils/apps.js index 4b7afc8..e6e5f38 100644 --- a/src/utils/apps.js +++ b/src/utils/apps.js @@ -225,6 +225,11 @@ const apps = [ icon: "tips", type: "app", }, + { + name: "To Do", + icon: "todo", + type: "app", + }, { name: "地图", icon: "maps", diff --git a/src/utils/general.jsx b/src/utils/general.jsx index 57424c0..3d0817a 100644 --- a/src/utils/general.jsx +++ b/src/utils/general.jsx @@ -41,7 +41,7 @@ export const Icon = (props) => { const clickDispatch = (event) => { if (!sidepane.banhide) dispatch({ type: "BANDHIDE" }); - + var action = { type: event.currentTarget.dataset.action, payload: event.currentTarget.dataset.payload, diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..4e23148 --- /dev/null +++ b/vercel.json @@ -0,0 +1,13 @@ +{ + "headers": [ + { + "source": "/(.*)", + "headers": [ + { + "key": "X-Content-Type-Options", + "value": "nosniff" + } + ] + } + ] +}