Skip to content

Commit dcfbcea

Browse files
committed
push mantinence
1 parent fdfdc49 commit dcfbcea

File tree

4 files changed

+61
-44
lines changed

4 files changed

+61
-44
lines changed

.eslintrc.js

+43-43
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
module.exports = {
2-
"env": {
3-
"browser": true,
4-
"es2021": true
5-
},
6-
"extends": [
7-
"eslint:recommended",
8-
"plugin:react/recommended"
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:react/recommended"
9+
],
10+
"overrides": [
11+
{
12+
"env": {
13+
"node": true
14+
},
15+
"files": [
16+
".eslintrc.{js,cjs}"
17+
],
18+
"parserOptions": {
19+
"sourceType": "script"
20+
}
21+
}
22+
],
23+
"parserOptions": {
24+
"ecmaVersion": "latest",
25+
"sourceType": "module"
26+
},
27+
"plugins": [
28+
"react"
29+
],
30+
"rules": {
31+
"indent": [
32+
"error",
33+
2
934
],
10-
"overrides": [
11-
{
12-
"env": {
13-
"node": true
14-
},
15-
"files": [
16-
".eslintrc.{js,cjs}"
17-
],
18-
"parserOptions": {
19-
"sourceType": "script"
20-
}
21-
}
35+
"linebreak-style": [
36+
"error",
37+
"unix"
2238
],
23-
"parserOptions": {
24-
"ecmaVersion": "latest",
25-
"sourceType": "module"
26-
},
27-
"plugins": [
28-
"react"
39+
"quotes": [
40+
"error",
41+
"double"
2942
],
30-
"rules": {
31-
"indent": [
32-
"error",
33-
4
34-
],
35-
"linebreak-style": [
36-
"error",
37-
"unix"
38-
],
39-
"quotes": [
40-
"error",
41-
"double"
42-
],
43-
"semi": [
44-
"error",
45-
"always"
46-
]
47-
}
43+
"semi": [
44+
"error",
45+
"always"
46+
]
47+
}
4848
};

bun.lockb

264 KB
Binary file not shown.

src/Maintience.jsx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as React from "react";
2+
3+
export default function Maintience() {
4+
return (
5+
<div>
6+
<h1 className="text-center p-5 text-2xl font-bold">Maintience</h1>
7+
</div>
8+
);
9+
}

src/index.jsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@ import "highlight.js/styles/base16/windows-10.min.css";
77
import Leaderboard from "@/Leaderboard";
88
import Profile from "@/Profile";
99
import Stats from "@/Stats";
10+
import Maintience from "./Maintience";
11+
const isMaintience = true;
1012

1113
const root = ReactDOM.createRoot(document.getElementById("root"));
1214
console.log(window.location.hash.toLowerCase());
1315

14-
if (window.location.hash.toLowerCase().startsWith("#leaderboard")) {
16+
if (isMaintience) {
17+
root.render(
18+
<React.StrictMode>
19+
<Maintience />
20+
</React.StrictMode>,
21+
);
22+
} else if (window.location.hash.toLowerCase().startsWith("#leaderboard")) {
1523
root.render(
1624
<React.StrictMode>
1725
<Leaderboard />

0 commit comments

Comments
 (0)