mirror of
				https://github.com/kyantech/Palmr.git
				synced 2025-11-03 21:43:20 +00:00 
			
		
		
		
	- Removed the outdated .eslintrc.json file and replaced it with a new eslint.config.mjs file for better configuration management. - Added .prettierrc.json to enforce consistent code formatting and included a .prettierignore file to exclude specific directories from formatting. - Updated components.json to streamline alias definitions and ensure proper icon library usage. - Enhanced package.json with new linting, formatting, and validation scripts to improve development workflow. - Made various formatting adjustments across multiple files for consistency and clarity.
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { Banner } from "fumadocs-ui/components/banner";
 | 
						|
 | 
						|
import "./global.css";
 | 
						|
 | 
						|
import type { ReactNode } from "react";
 | 
						|
import { Inter } from "next/font/google";
 | 
						|
import Link from "fumadocs-core/link";
 | 
						|
import { RootProvider } from "fumadocs-ui/provider";
 | 
						|
 | 
						|
import { LATEST_VERSION, LATEST_VERSION_PATH } from "@/config/constants";
 | 
						|
 | 
						|
const inter = Inter({
 | 
						|
  subsets: ["latin"],
 | 
						|
});
 | 
						|
 | 
						|
export const metadata = {
 | 
						|
  title: "Palmr. | Official Website",
 | 
						|
  description: "Palmr. is a fast, simple and powerful document sharing platform.",
 | 
						|
};
 | 
						|
 | 
						|
export default function Layout({ children }: { children: ReactNode }) {
 | 
						|
  return (
 | 
						|
    <html lang="en" className={inter.className} suppressHydrationWarning>
 | 
						|
      <body className="flex flex-col min-h-screen">
 | 
						|
        <Banner variant="rainbow" id="banner-21-beta">
 | 
						|
          <Link href={LATEST_VERSION_PATH}>Palmr. {LATEST_VERSION} has released!</Link>
 | 
						|
        </Banner>
 | 
						|
        <RootProvider
 | 
						|
          search={{
 | 
						|
            options: {
 | 
						|
              defaultTag: "3.1-beta",
 | 
						|
              tags: [
 | 
						|
                {
 | 
						|
                  name: "v2.0.0 Beta",
 | 
						|
                  value: "2.0.0-beta",
 | 
						|
                },
 | 
						|
                {
 | 
						|
                  name: "v3.0 Beta ✨",
 | 
						|
                  value: "3.1-beta",
 | 
						|
                  props: {
 | 
						|
                    style: {
 | 
						|
                      border: "1px solid rgba(0,165,80,0.2)",
 | 
						|
                    },
 | 
						|
                  },
 | 
						|
                },
 | 
						|
              ],
 | 
						|
            },
 | 
						|
          }}
 | 
						|
        >
 | 
						|
          {children}
 | 
						|
        </RootProvider>
 | 
						|
      </body>
 | 
						|
    </html>
 | 
						|
  );
 | 
						|
}
 |