Commit dcfbcea 1 parent fdfdc49 commit dcfbcea Copy full SHA for dcfbcea
File tree 4 files changed +61
-44
lines changed
4 files changed +61
-44
lines changed Original file line number Diff line number Diff line change 1
1
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
9
34
] ,
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"
22
38
] ,
23
- "parserOptions" : {
24
- "ecmaVersion" : "latest" ,
25
- "sourceType" : "module"
26
- } ,
27
- "plugins" : [
28
- "react"
39
+ "quotes" : [
40
+ "error" ,
41
+ "double"
29
42
] ,
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
+ }
48
48
} ;
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -7,11 +7,19 @@ import "highlight.js/styles/base16/windows-10.min.css";
7
7
import Leaderboard from "@/Leaderboard" ;
8
8
import Profile from "@/Profile" ;
9
9
import Stats from "@/Stats" ;
10
+ import Maintience from "./Maintience" ;
11
+ const isMaintience = true ;
10
12
11
13
const root = ReactDOM . createRoot ( document . getElementById ( "root" ) ) ;
12
14
console . log ( window . location . hash . toLowerCase ( ) ) ;
13
15
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" ) ) {
15
23
root . render (
16
24
< React . StrictMode >
17
25
< Leaderboard />
You can’t perform that action at this time.
0 commit comments