[WEB-5043] feat: web vite migration (#7973)

This commit is contained in:
Prateek Shourya 2025-11-06 14:08:48 +05:30 committed by GitHub
parent 118ecc81ba
commit 696fb96e87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
642 changed files with 3013 additions and 2311 deletions

View file

@ -1,16 +1,16 @@
"use client";
import { redirect } from "react-router";
import type { ClientLoaderFunctionArgs } from "react-router";
// plane imports
import { SitesProjectPublishService } from "@plane/services";
import type { TProjectPublishSettings } from "@plane/types";
// components
import { LogoSpinner } from "@/components/common/logo-spinner";
import type { Route } from "./+types/page";
const publishService = new SitesProjectPublishService();
export const clientLoader = async ({ params, request }: ClientLoaderFunctionArgs) => {
export const clientLoader = async ({ params, request }: Route.ClientLoaderArgs) => {
const { workspaceSlug, projectId } = params;
// Validate required params

View file

@ -1,12 +1,11 @@
import { Links, Meta, Outlet, Scripts } from "react-router";
import type { LinksFunction } from "react-router";
// styles
import "@/styles/globals.css";
// assets
import appleTouchIcon from "@/app/assets/favicon/apple-touch-icon.png?url";
import favicon16 from "@/app/assets/favicon/favicon-16x16.png?url";
import favicon32 from "@/app/assets/favicon/favicon-32x32.png?url";
import faviconIco from "@/app/assets/favicon/favicon.ico?url";
import globalStyles from "@/styles/globals.css?url";
// types
import type { Route } from "./+types/root";
// local imports
@ -22,6 +21,7 @@ export const links: LinksFunction = () => [
{ rel: "icon", type: "image/png", sizes: "16x16", href: favicon16 },
{ rel: "shortcut icon", href: faviconIco },
{ rel: "manifest", href: `/site.webmanifest.json` },
{ rel: "stylesheet", href: globalStyles },
];
export function Layout({ children }: { children: React.ReactNode }) {
@ -61,6 +61,10 @@ export default function Root() {
return <Outlet />;
}
export function HydrateFallback() {
return null;
}
export function ErrorBoundary() {
return <ErrorPage />;
}