Skip to content

Commit

Permalink
push mantinence
Browse files Browse the repository at this point in the history
  • Loading branch information
sk337 committed Feb 9, 2024
1 parent fdfdc49 commit dcfbcea
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 44 deletions.
86 changes: 43 additions & 43 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
2
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
"linebreak-style": [
"error",
"unix"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
"quotes": [
"error",
"double"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
"semi": [
"error",
"always"
]
}
};
Binary file added bun.lockb
Binary file not shown.
9 changes: 9 additions & 0 deletions src/Maintience.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from "react";

export default function Maintience() {
return (
<div>
<h1 className="text-center p-5 text-2xl font-bold">Maintience</h1>
</div>
);
}
10 changes: 9 additions & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ import "highlight.js/styles/base16/windows-10.min.css";
import Leaderboard from "@/Leaderboard";
import Profile from "@/Profile";
import Stats from "@/Stats";
import Maintience from "./Maintience";
const isMaintience = true;

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

if (window.location.hash.toLowerCase().startsWith("#leaderboard")) {
if (isMaintience) {
root.render(
<React.StrictMode>
<Maintience />
</React.StrictMode>,
);
} else if (window.location.hash.toLowerCase().startsWith("#leaderboard")) {
root.render(
<React.StrictMode>
<Leaderboard />
Expand Down

0 comments on commit dcfbcea

Please sign in to comment.