Skip to content

Commit 10c8d11

Browse files
+
1 parent 66f7395 commit 10c8d11

40 files changed

+931
-290
lines changed

next.config.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,26 @@ const config = {
1414
typescript: {
1515
ignoreBuildErrors: true,
1616
},
17+
experimental: {
18+
reactCompiler: true,
19+
},
1720
async redirects() {
1821
return [
1922
{
2023
source: routes.desktop,
2124
destination: routes.lock,
2225
permanent: false,
23-
// missing: [
24-
// {
25-
// type: "query",
26-
// key: "authorized",
27-
// value: "true",
28-
// },
29-
// ],
3026
missing: [
3127
{
32-
type: "cookie",
28+
type: "query",
3329
key: "authorized",
3430
value: "true",
3531
},
32+
// {
33+
// type: "cookie",
34+
// key: "authorized",
35+
// value: "true",
36+
// },
3637
],
3738
},
3839
];

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@radix-ui/react-slot": "^1.1.0",
3333
"@radix-ui/react-tooltip": "^1.1.2",
3434
"@t3-oss/env-nextjs": "^0.10.1",
35+
"babel-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
3536
"class-variance-authority": "^0.7.0",
3637
"clsx": "^2.1.1",
3738
"cookies-next": "^5.0.2",

pnpm-lock.yaml

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

public/google0297be4585eb90db.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-site-verification: google0297be4585eb90db.html

public/icons/file.png

1.23 KB
Loading

public/icons/notepad.png

7.63 KB
Loading

public/icons/settings.png

13.5 KB
Loading

public/icons/shortcut.png

1.25 KB
Loading

public/icons/x-twitter.svg

Lines changed: 9 additions & 0 deletions
Loading

public/start-dark.ico

143 KB
Binary file not shown.

public/start-light.ico

143 KB
Binary file not shown.

src/app/layout.tsx

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
import type { Metadata } from "next";
1+
import type { Metadata, Viewport } from "next";
22
import { ThemeProvider } from "next-themes";
33
import React, { Suspense } from "react";
44
import { ProgressBar } from "@lexz451/next-nprogress";
55
import { TailwindIndicator } from "@/components/tailwind-indicator";
66
import "@/styles/globals.css";
7-
import Screen from "@/components/desktop/screen";
87
import { roboto, SegoeUIDisplayFont, SegoIconFont } from "@/font";
98
import { LoadingHelper } from "@/lib/loading/loading-comps";
109
import { ThemeHelper } from "@/hooks/useTheme";
1110
import SettingInit from "@/lib/Setting/setting-init";
11+
import { siteConfig } from "@/lib/site-config";
12+
import { routes } from "@/lib/routes-map";
1213
let ShadcnThemeEditor: any;
1314
if (process.env.NODE_ENV === "development") {
1415
import("shadcn-theme-editor").then((module) => {
@@ -20,8 +21,35 @@ if (process.env.NODE_ENV === "development") {
2021
}
2122

2223
export const metadata: Metadata = {
23-
title: "Fluent UI",
24-
description: "Generated by Immi",
24+
title: siteConfig.name,
25+
description: siteConfig.description,
26+
applicationName: siteConfig.name,
27+
authors: siteConfig.authors,
28+
generator: siteConfig.authors.name,
29+
keywords: siteConfig.keywords,
30+
alternates: {
31+
types: {
32+
"text/html": [
33+
{ url: new URL(routes.desktop, siteConfig.url), title: "Home" },
34+
{
35+
url: new URL(routes.lock, siteConfig.url),
36+
title: "Lock Screen",
37+
},
38+
{ url: siteConfig.repo, title: "Source Code (Github)" },
39+
],
40+
},
41+
},
42+
twitter: {
43+
title: siteConfig.name,
44+
description: siteConfig.description,
45+
creator: "@o_immi",
46+
creatorId: "1813232551131291651",
47+
},
48+
// https://i.ibb.co/Jk7gMHT/bg-dark.jpg
49+
};
50+
51+
export const viewport: Viewport = {
52+
themeColor: siteConfig.color,
2553
};
2654

2755
export default function RootLayout({
@@ -32,7 +60,7 @@ export default function RootLayout({
3260
return (
3361
<html lang="en" className="dark">
3462
<Body>
35-
<Screen>{children}</Screen>
63+
<>{children}</>
3664
</Body>
3765
</html>
3866
);
@@ -41,7 +69,7 @@ export default function RootLayout({
4169
function Body({ children }: { children: React.ReactNode }) {
4270
return (
4371
<body
44-
className={`!pointer-events-auto fixed min-h-screen ${roboto.className} ${SegoIconFont.variable} ${SegoeUIDisplayFont.variable}`}
72+
className={`!pointer-events-auto fixed flex h-screen w-screen flex-col overflow-hidden ${roboto.className} ${SegoIconFont.variable} ${SegoeUIDisplayFont.variable}`}
4573
// style={{fontFamily: roboto.style.fontFamily}}
4674
>
4775
<Suspense fallback={<>Loading.............</>}>

0 commit comments

Comments
 (0)