Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/issue-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
issue-number: ${{ github.event.issue.number }}
token: ${{ secrets.BOT }}

- uses: stefanbuck/github-issue-parser@v2
- uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/bug_report.yml
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down Expand Up @@ -33,7 +33,7 @@
<script type="module">
console.log(
"%cWin11React is a project by blueedgetechno and ascended by andrewstech. If you wish to help out with this project, visit https://github.com/blueedgetechno/win11React",
"color: lightblue; font-size: x-large"
"color: lightblue; font-size: x-large",
);
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion public/404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
4 changes: 2 additions & 2 deletions public/dycalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
year = parseInt(targetDomObject.getAttribute("data-year"));
btn = targetDomObject.getAttribute("data-btn");
option = JSON.parse(
targetDomObject.parentElement.getAttribute("data-option")
targetDomObject.parentElement.getAttribute("data-option"),
);

if (btn === "prev") {
Expand Down Expand Up @@ -475,7 +475,7 @@
targetDomObject.classList.contains("dycalendar-span-month-year")
) {
option = JSON.parse(
targetDomObject.parentElement.getAttribute("data-option")
targetDomObject.parentElement.getAttribute("data-option"),
);
dateObj = new Date();

Expand Down
2 changes: 1 addition & 1 deletion public/react-pwa.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions public/serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ self.addEventListener("install", (event) => {
console.log("Opened cache");

return cache.addAll(urlsToCache);
})
}),
);
});

Expand All @@ -19,7 +19,7 @@ self.addEventListener("fetch", (event) => {
event.respondWith(
caches.match(event.request).then(() => {
return fetch(event.request).catch(() => caches.match("index.html"));
})
}),
);
});

Expand All @@ -35,8 +35,8 @@ self.addEventListener("activate", (event) => {
if (!cacheWhitelist.includes(cacheName)) {
return caches.delete(cacheName);
}
})
)
)
}),
),
),
);
});
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function App() {
} catch (err) {}

var actionType0 = getComputedStyle(event.target).getPropertyValue(
"--prefix"
"--prefix",
);

ess.forEach((item, i) => {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const performApp = (act, menu) => {
var app = Object.keys(apps).filter(
(x) =>
apps[x].action == data.type ||
(apps[x].payload == data.payload && apps[x].payload != null)
(apps[x].payload == data.payload && apps[x].payload != null),
);

app = apps[app];
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const ActMenu = () => {
{menuobj(opt.opts)}
</div>
) : null}
</div>
</div>,
);
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/start/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,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}%)`,
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/start/start.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const StartMenu = () => {
<div className="ltName">
{i == 0 ? "#" : String.fromCharCode(i + 64)}
</div>
</div>
</div>,
);

ldx.forEach((app, j) => {
Expand All @@ -224,7 +224,7 @@ export const StartMenu = () => {
>
<Icon className="pnIcon" src={app.icon} width={24} />
<div className="appName">{app.name}</div>
</div>
</div>,
);
});

Expand Down
4 changes: 2 additions & 2 deletions src/containers/applications/apps/about.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const AboutWin = () => {
const { abOpen } = useSelector((state) => state.desktop);
const { locked, booted } = useSelector((state) => state.wallpaper);
const [open, setOpen] = useState(
true && import.meta.env.MODE != "development"
true && import.meta.env.MODE != "development",
);
const [timer, setTimer] = useState(
localStorage.getItem("closeAbout") == "true" ? 0 : 5
localStorage.getItem("closeAbout") == "true" ? 0 : 5,
);
const dispatch = useDispatch();
const { t, i18n } = useTranslation();
Expand Down
2 changes: 1 addition & 1 deletion src/containers/applications/apps/assets/jiosaavn.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class JioSaavn {
// console.log("Okay");
return new Promise((resolve) => {
this.fetchSong(
this.defaultSongs[floor(random() * this.defaultSongs.length)]
this.defaultSongs[floor(random() * this.defaultSongs.length)],
)
.then((res) => {
resolve([this.mapToSong(res)]);
Expand Down
4 changes: 3 additions & 1 deletion src/containers/applications/apps/assets/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@
}

.selected {
box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--clrPrm);
box-shadow:
0 0 0 2px var(--bg),
0 0 0 4px var(--clrPrm);
border-radius: 2px;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/applications/apps/discord.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const DScord = () => {
useEffect(() => {
if (url == null) {
setUrl(
"https://e.widgetbot.io/channels/868499076432408627/868499076432408631"
"https://e.widgetbot.io/channels/868499076432408627/868499076432408631",
);
// setUrl("https://emerald.widgetbot.io/channels/299881420891881473/450428756855750666/?api=e2f9b64f-5292-43f5-a0d8-26fa43447eeb")
}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/applications/apps/edge.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const EdgeMenu = () => {

const isValidURL = (string) => {
var res = string.match(
/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g
/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g,
);
return res !== null;
};
Expand Down
6 changes: 3 additions & 3 deletions src/containers/applications/apps/explorer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const Explorer = () => {
{curr.name}
</div>
<Icon className="dirchev" fafa="faChevronRight" width={8} />
</div>
</div>,
);

curr = curr.host;
Expand All @@ -140,7 +140,7 @@ export const Explorer = () => {
This PC
</div>
<Icon className="dirchev" fafa="faChevronRight" width={8} />
</div>
</div>,
);

arr.push(
Expand All @@ -151,7 +151,7 @@ export const Explorer = () => {
width={16}
/>
<Icon className="dirchev" fafa="faChevronRight" width={8} />
</div>
</div>,
);

return (
Expand Down
2 changes: 1 addition & 1 deletion src/containers/applications/apps/settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export const Settings = () => {
);
default:
return console.log(
`error - type ${e.type} not found`
`error - type ${e.type} not found`,
);
}
})}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/applications/apps/taskmanager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const Taskmanager = () => {
{
powerUsage[
Math.floor(
Math.random() * powerUsage.length
Math.random() * powerUsage.length,
)
]
}
Expand Down
8 changes: 4 additions & 4 deletions src/containers/applications/apps/terminal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ export const WnTerminal = () => {
cmdcont.style.color = color;
} else {
tmpStack.push(
"Set the color of the background and the text for the console."
"Set the color of the background and the text for the console.",
);
tmpStack.push("COLOR [arg]");
tmpStack.push("arg\t\tSpecifies the color for the console output");
tmpStack.push(
"The color attribute is a combination of the following values:"
"The color attribute is a combination of the following values:",
);
tmpStack.push("0\t\tBlack");
tmpStack.push("1\t\tBlue");
Expand Down Expand Up @@ -195,7 +195,7 @@ export const WnTerminal = () => {
})
.replaceAll(":", ".") +
"." +
Math.floor(Math.random() * 100)
Math.floor(Math.random() * 100),
);
} else if (type == "exit") {
tmpStack = ["OS [Version 10.0.22000.51]", ""];
Expand Down Expand Up @@ -258,7 +258,7 @@ export const WnTerminal = () => {
} else if (type == "") {
} else {
tmpStack.push(
`'${type}' is not recognized as an internal or external command,`
`'${type}' is not recognized as an internal or external command,`,
);
tmpStack.push("operable program or batch file.");
tmpStack.push("");
Expand Down
3 changes: 2 additions & 1 deletion src/containers/applications/wnapp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

@font-face {
font-family: "Spotify";
src: url("./apps/assets/spotify.woff2") format("woff2"),
src:
url("./apps/assets/spotify.woff2") format("woff2"),
url("./apps/assets/spotify.ttf") format("truetype");
}

Expand Down
7 changes: 6 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ body[data-sepia="true"]:before {
}

code {
font-family: source-code-pro, Menlo, Monaco, "Consolas", Courier New,
font-family:
source-code-pro,
Menlo,
Monaco,
"Consolas",
Courier New,
monospace;
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ root.render(
<Provider store={store}>
<App />
</Provider>
</Suspense>
</Suspense>,
);
4 changes: 2 additions & 2 deletions src/reducers/widpane.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ const defState = {
stock: [
[
Number(
parseFloat(2300 + Math.random() * 200).toFixed(2)
parseFloat(2300 + Math.random() * 200).toFixed(2),
).toLocaleString(),
parseFloat(Math.random() * 2).toFixed(2),
Math.round(Math.random()),
],
[
Number(
parseFloat(600 + Math.random() * 200).toFixed(2)
parseFloat(600 + Math.random() * 200).toFixed(2),
).toLocaleString(),
parseFloat(Math.random() * 2).toFixed(2),
Math.round(Math.random()),
Expand Down
8 changes: 4 additions & 4 deletions src/utils/general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -306,16 +306,16 @@ body[data-theme="dark"] .toolbar[data-noinvert="false"] {

&:vertical {
&:hover {
background: var(--scrollbar-bottom-btn) 0% calc(100% - 3px) / contain
no-repeat,
background:
var(--scrollbar-bottom-btn) 0% calc(100% - 3px) / contain no-repeat,
var(--scrollbar-top-btn) 0% calc(0% + 3px) / contain no-repeat,
var(--scroll);
}
}
&:horizontal {
&:hover {
background: var(--scrollbar-right-btn) calc(100% - 3px) 0% / contain
no-repeat,
background:
var(--scrollbar-right-btn) calc(100% - 3px) 0% / contain no-repeat,
var(--scrollbar-left-btn) calc(0% + 3px) 0% / contain no-repeat,
var(--scroll);
}
Expand Down