Skip to content

Commit cf1c3a1

Browse files
authored
Merge pull request #48 from inwinter04/Dev
🔧 尝试修复BUG
2 parents dd2b4bd + 4f7ffd2 commit cf1c3a1

File tree

13 files changed

+73
-40
lines changed

13 files changed

+73
-40
lines changed

public/serviceWorker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ self.addEventListener("activate", (event) => {
3636
return caches.delete(cacheName);
3737
}
3838
}),
39-
),
4039
),
40+
),
4141
);
4242
});

src/components/start/index.jsx

+24-24
Original file line numberDiff line numberDiff line change
@@ -81,28 +81,28 @@ export const BandPane = () => {
8181
>
8282
<div className="bandContainer">
8383
<Icon
84-
className="hvlight"
85-
width={17}
86-
click="CALCUAPP"
87-
payload="togg"
88-
open="true"
89-
src="calculator"
90-
/>
91-
<Icon
92-
className="hvlight"
93-
width={17}
94-
click="SPOTIFY"
95-
payload="togg"
96-
open="true"
97-
src="spotify"
98-
/>
99-
<Icon
100-
className="hvlight"
101-
width={17}
102-
click="NOTEPAD"
103-
payload="togg"
104-
src="notepad"
105-
/>
84+
className="hvlight"
85+
width={17}
86+
click="CALCUAPP"
87+
payload="togg"
88+
open="true"
89+
src="calculator"
90+
/>
91+
<Icon
92+
className="hvlight"
93+
width={17}
94+
click="SPOTIFY"
95+
payload="togg"
96+
open="true"
97+
src="spotify"
98+
/>
99+
<Icon
100+
className="hvlight"
101+
width={17}
102+
click="NOTEPAD"
103+
payload="togg"
104+
src="notepad"
105+
/>
106106
</div>
107107
</div>
108108
);
@@ -150,7 +150,7 @@ export const SidePane = () => {
150150
function sliderBackground(elem, e) {
151151
elem.style.setProperty(
152152
"--track-color",
153-
`linear-gradient(90deg, var(--clrPrm) ${e - 3}%, #888888 ${e}%)`
153+
`linear-gradient(90deg, var(--clrPrm) ${e - 3}%, #888888 ${e}%)`,
154154
);
155155
}
156156

@@ -179,7 +179,7 @@ export const SidePane = () => {
179179
},
180180
});
181181
sliderBackground(bSlider, brgt);
182-
};
182+
}
183183

184184
useEffect(() => {
185185
sidepane.quicks.map((item, i) => {

src/containers/applications/apps/explorer.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ const NavPane = ({}) => {
342342
notoggle
343343
pinned
344344
/>
345-
<Dropdown icon="user" title="Blue Edge" spid="%user%" notoggle pinned />
345+
<Dropdown icon="user" title="此电脑" spid="%user%" notoggle pinned />
346346
<Dropdown
347347
icon="docs"
348348
title="文档"

src/containers/applications/apps/settings.jsx

+17-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const Settings = () => {
1313

1414
const wall = useSelector((state) => state.wallpaper);
1515

16-
const [page, setPage] = useState("System"); // default System
16+
const [page, setPage] = useState("系统"); // default System
1717
const [nav, setNav] = useState("");
1818
const [updating, setUpdating] = useState(false);
1919
const [upmodalOpen, setUpmodalOpen] = useState(false);
@@ -134,12 +134,26 @@ export const Settings = () => {
134134
</div>
135135
</div>
136136
<div className="right">
137+
<div className="column">
138+
<img
139+
src="https://upload.wikimedia.org/wikipedia/commons/2/25/Microsoft_icon.svg"
140+
height={20}
141+
alt=""
142+
/>
143+
<p>
144+
Microsoft 365
145+
<br />
146+
<span className="column_lower">
147+
浏览优势
148+
</span>
149+
</p>
150+
</div>
137151
<div
138152
className="column"
139153
onClick={() => setPage("Windows 更新")}
140154
>
141155
<img
142-
src="img/settings/Windows Update.webp"
156+
src="img/settings/Windows 更新.webp"
143157
alt=""
144158
height={20}
145159
/>
@@ -180,8 +194,7 @@ export const Settings = () => {
180194
<div>
181195
<h3>数据使用量</h3>
182196
<p>
183-
{Math.round(Math.random() * 100)}GB, last 30
184-
days
197+
{Math.round(Math.random() * 100)}GB, 过去30天
185198
</p>
186199
</div>
187200
</div>

src/containers/applications/wnapp.scss

+4
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ body[data-theme="dark"] .calcApp {
147147
background: rgb(24, 24, 24);
148148
}
149149

150+
.discordWn {
151+
background: #36393f;
152+
}
153+
150154
.lightWindow {
151155
background: #e7eaec;
152156
}

src/index.jsx

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import App from "./App";
44
import store from "./reducers";
55
import { Provider } from "react-redux";
66

7-
8-
97
const root = createRoot(document.getElementById("root"));
108

119
root.render(

src/reducers/dir.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
},
7777
"Blue": {
7878
"type": "folder",
79-
"name": "此电脑",
79+
"name": "´ËµçÄÔ",
8080
"info": {
8181
"spid": "%user%",
8282
"icon": "user"

src/reducers/settings.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ const settReducer = (state = defState, action) => {
7272
tmpState = changeVal(tmpState, action.payload.path, action.payload.value);
7373
break;
7474
case "SETTLOAD":
75-
changed = true;
75+
changed = true;
7676
tmpState = { ...action.payload };
77-
break;
77+
break;
7878
case "TOGGAIRPLNMD":
7979
changed = true;
8080
const airPlaneModeStatus = tmpState.network.airplane;

src/reducers/startmenu.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const defState = {
1010
pwctrl: false,
1111
curAlpha: "A",
1212
qksrch: [
13-
["faClock", 1, "历史的今天"],
14-
["faChartLine", null, "今日市场"], //emmm,似乎是股票。这咋翻译哇(冬天
13+
["faClock", 1, "历史上的今天"],
14+
["faChartLine", null, "今日行情"],
1515
["faFilm", null, "近期电影"],
1616
["faNewspaper", 1, "头条新闻"],
1717
],

src/reducers/taskbar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ const taskReducer = (state = defState, action) => {
2525
align: "center",
2626
};
2727
case "TASKLEF":
28-
localStorage.setItem("taskbar-align", "left");
28+
localStorage.setItem("taskbar-align", "left");
2929
return {
3030
...state,
3131
align: "left",
3232
};
3333
case "TASKTOG":
34-
const alignment = state.align == "left" ? "center" : "left";
34+
const alignment = state.align == "left" ? "center" : "left";
3535
localStorage.setItem("taskbar-align", alignment);
3636
return {
3737
...state,

src/utils/apps.js

+5
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ const apps = [
225225
icon: "tips",
226226
type: "app",
227227
},
228+
{
229+
name: "To Do",
230+
icon: "todo",
231+
type: "app",
232+
},
228233
{
229234
name: "地图",
230235
icon: "maps",

src/utils/general.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const Icon = (props) => {
4141

4242
const clickDispatch = (event) => {
4343
if (!sidepane.banhide) dispatch({ type: "BANDHIDE" });
44-
44+
4545
var action = {
4646
type: event.currentTarget.dataset.action,
4747
payload: event.currentTarget.dataset.payload,

vercel.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"headers": [
3+
{
4+
"source": "/(.*)",
5+
"headers": [
6+
{
7+
"key": "X-Content-Type-Options",
8+
"value": "nosniff"
9+
}
10+
]
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)