Skip to content

Commit dcab8e2

Browse files
committed
Fixed build errors
1 parent 2f6d299 commit dcab8e2

14 files changed

Lines changed: 57 additions & 192 deletions

File tree

‎.eslintrc.json‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
],
66
"rules": {
77
"no-unused-vars": "off",
8-
"@typescript-eslint/no-unused-vars": "warn"
8+
"@typescript-eslint/no-unused-vars": [
9+
"warn",
10+
{
11+
"args": "all",
12+
"argsIgnorePattern": "^_",
13+
"caughtErrors": "all",
14+
"caughtErrorsIgnorePattern": "^_",
15+
"destructuredArrayIgnorePattern": "^_",
16+
"varsIgnorePattern": "^_",
17+
"ignoreRestSiblings": true
18+
}
19+
]
920
}
1021
}

‎src/app/(modal)/layout.tsx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import React from "react";
3+
import React, { Suspense } from "react";
44
import ClockView from "@components/clock/clock-view";
55
import Menu from "@components/xmb-menu/xmb-menu";
66
import BackgroundView from "@components/background/background-view";
@@ -16,10 +16,12 @@ export default function Layout({ children }: { children: React.ReactNode }) {
1616

1717
return (
1818
<div className={`root-container ${themeClassName} ${fontClassName}`}>
19-
<BackgroundView />
20-
<ClockView />
21-
{ !modal && <Menu /> }
22-
{children}
19+
<Suspense>
20+
<BackgroundView />
21+
<ClockView />
22+
{ !modal && <Menu /> }
23+
{children}
24+
</Suspense>
2325
</div>
2426
);
2527
}

‎src/app/(modal)/secrets/input/actions.tsx‎

Whitespace-only changes.

‎src/app/(modal)/secrets/input/page.tsx‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
"use client";
22

3-
import React from "react";
3+
import React, { Suspense } from "react";
4+
import dynamic from 'next/dynamic';
45
import { Modal, ModalMenuButton } from "@components/modal/modal";
5-
import SecretInput from "./secret-input";
66
import { useRouter } from "next/navigation";
77
import { faHandPointer } from "@fortawesome/free-solid-svg-icons";
88

9+
const SecretInput = dynamic(
10+
() => import('./secret-input'),
11+
{ ssr: false },
12+
);
13+
914
export default function SecretsPage() {
1015

1116
const router = useRouter();
@@ -24,7 +29,9 @@ export default function SecretsPage() {
2429
<>
2530
<Modal title="Enter Password" menuButton={modalButton}>
2631
<div className="secret-input-wrapper">
27-
<SecretInput />
32+
<Suspense>
33+
<SecretInput />
34+
</Suspense>
2835
</div>
2936
</Modal>
3037
</>

‎src/app/(modal)/secrets/input/secret-submit-button.tsx‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎src/app/api/mac/route.ts‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎src/app/brix/page.tsx‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import React, { useEffect } from "react";
3+
import React, { Suspense, useEffect } from "react";
44
import { useBoot, useTheme } from "@context";
55
import { BootView, BrixBoot } from "@components/boot";
66
import { BackgroundView, BrixBackground } from "@components/background";
@@ -26,17 +26,19 @@ export function BrixPage() {
2626

2727
return (
2828
<div className={`root-container ${themeClassName} ${fontClassName}`}>
29-
{
30-
isBootVisible
31-
?
32-
<BootView />
33-
:
34-
<>
35-
<BackgroundView />
36-
{clock}
37-
<Menu />
38-
</>
39-
}
29+
<Suspense>
30+
{
31+
isBootVisible
32+
?
33+
<BootView />
34+
:
35+
<>
36+
<BackgroundView />
37+
{clock}
38+
<Menu />
39+
</>
40+
}
41+
</Suspense>
4042
</div>
4143
);
4244
}

‎src/app/providers.tsx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import React, { ReactNode } from "react";
3+
import React, { ReactNode, Suspense } from "react";
44
import { ThemeProvider as MuiThemeProvider, createTheme } from '@mui/material/styles';
55
import { CssBaseline } from "@mui/material";
66
import { ProviderComposer } from "@providers/ProviderComposer";
@@ -40,8 +40,10 @@ const providers = [
4040

4141
export default function Providers({ children }: ({ children: ReactNode })) {
4242
return (
43-
<ProviderComposer providers={providers}>
44-
{children}
45-
</ProviderComposer>
43+
<Suspense>
44+
<ProviderComposer providers={providers}>
45+
{children}
46+
</ProviderComposer>
47+
</Suspense>
4648
);
4749
}

‎src/app/ps2/page.tsx‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

‎src/app/psp/page.tsx‎

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)