Wait a moment while we load your files...
-Loading player...
-Loading player...
-Loading image...
-- Looks like this file size exceed the preview size limit -
-Loading content...
-Loading content...
-- This file type is not supported for preview, try downloading the - file instead. -
-Loading player...
-Loading video...
-- {props.description} -
-- {props.description} -
-Tooltip content
-Popover content
-
{error.message}
diff --git a/src/app/globals.css b/src/app/globals.css
index e73ec9b..75f52f7 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -1,3 +1,4 @@
+/* Version: ${pkg.version} */
@tailwind base;
@tailwind components;
@tailwind utilities;
@@ -50,6 +51,10 @@
--ring: 0 0% 14.9%;
/* --ring: 0 0% 83.1%; */
}
+
+ div.preview * {
+ @apply !transition-none;
+ }
}
html,
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index b99a5b5..deebe88 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,19 +1,18 @@
import { Metadata } from "next";
import { JetBrains_Mono, Outfit, Source_Sans_3 } from "next/font/google";
import "plyr-react/plyr.css";
-import { cn } from "~/utils";
+import { Footer, Navbar, Password, ThemeProvider } from "~/components/Layout";
+import ToTop from "~/components/Layout/ToTop";
+
+import { cn } from "~/utils/cn";
import { formatFooter } from "~/utils/footerFormatter";
-import config from "~/config/gIndex.config";
+import { CheckSitePassword } from "actions";
+import config from "config";
-import Footer from "./@footer";
-import Navbar from "./@navbar";
-import Password from "./@password";
-import { CheckSitePassword } from "./actions";
import "./globals.css";
import "./markdown.css";
-import ThemeProvider from "./theme-provider";
const sourceSans3 = Source_Sans_3({
weight: ["300", "400", "600", "700"],
@@ -41,11 +40,7 @@ export const metadata: Metadata = {
metadataBase: new URL(config.basePath),
title: {
default: config.siteConfig.siteName,
- template:
- config.siteConfig.siteNameTemplate?.replace(
- "%t",
- config.siteConfig.siteName,
- ) || "%s",
+ template: config.siteConfig.siteNameTemplate?.replace("%t", config.siteConfig.siteName) || "%s",
},
description: config.siteConfig.siteDescription,
authors: config.siteConfig.siteAuthor
@@ -78,10 +73,14 @@ export const metadata: Metadata = {
robots: config.siteConfig.robots,
};
-export default async function RootLayout({
- children,
-}: Readonly<{ children: React.ReactNode }>) {
- const unlocked = await CheckSitePassword();
+export default async function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
+ let unlocked: Awaited> = {
+ success: true,
+ message: "",
+ };
+ if (config.siteConfig.privateIndex) {
+ unlocked = await CheckSitePassword();
+ }
return (
@@ -118,9 +117,8 @@ export default async function RootLayout({
<>{children}>
)}
- {config.siteConfig.footer && (
-
- )}
+ {config.siteConfig.footer && }
+