Skip to content

Commit fdfb9a1

Browse files
authored
Merge pull request #20 from Aut-Labs/playground-subpage
added helmet, added subpage, added query-buster
2 parents c7c694c + ebb9b9a commit fdfb9a1

File tree

6 files changed

+57
-761
lines changed

6 files changed

+57
-761
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
/>
1313
<meta name="author" content="Āut" />
1414
<link
15-
href="/favicon-light.ico"
15+
href="/favicon-light.ico?"
1616
rel="icon"
1717
media="(prefers-color-scheme: light)"
1818
/>
1919
<link
20-
href="/favicon-dark.ico"
20+
href="/favicon-dark.ico?"
2121
rel="icon"
2222
media="(prefers-color-scheme: dark)"
2323
/>

package-lock.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"react-copy-to-clipboard": "^5.1.0",
5555
"react-dom": "^18.2.0",
5656
"react-dropzone": "^14.2.3",
57+
"react-helmet": "^6.1.0",
5758
"react-hook-form": "^7.49.3",
5859
"react-lines-ellipsis": "^0.15.4",
5960
"react-lottie-player": "^2.1.0",
@@ -72,6 +73,7 @@
7273
"@testing-library/jest-dom": "~6.4.1",
7374
"@testing-library/react": "~14.2.1",
7475
"@testing-library/user-event": "~14.5.2",
76+
"@types/react-helmet": "^6.1.11",
7577
"@typescript-eslint/eslint-plugin": "^8.6.0",
7678
"@typescript-eslint/parser": "^8.6.0",
7779
"@vitejs/plugin-react": "^4.3.1",

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function App() {
2525
const [loading, setLoading] = useState(true);
2626
const location = useLocation();
2727

28-
const isParticipationScorePage = location.pathname === "/ps";
28+
const isParticipationScorePage = location.pathname === "/playground";
2929

3030
useEffect(() => {
3131
if (!isParticipationScorePage) {
@@ -81,7 +81,7 @@ function App() {
8181
<Box sx={backgroundStyle}>
8282
<Suspense fallback={<AutLoading />}>
8383
<Routes>
84-
<Route path="/ps" element={<ParticipationScore />} />
84+
<Route path="/playground" element={<ParticipationScore />} />
8585
</Routes>
8686
</Suspense>
8787
</Box>

0 commit comments

Comments
 (0)