chore: build
This commit is contained in:
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
||||
import { Head } from "@inertiajs/react";
|
||||
import { useState, useCallback, useEffect } from "react";
|
||||
import { c as cn } from "./index-CY6fYws-.js";
|
||||
import { Sun, Moon, Monitor } from "lucide-react";
|
||||
import { Sun } from "lucide-react";
|
||||
import { e as edit, S as SettingsLayout, H as HeadingSmall } from "./layout-BQI5MpcL.js";
|
||||
import { A as AppLayout } from "./app-layout-BFyUFda2.js";
|
||||
import "@radix-ui/react-slot";
|
||||
@@ -48,7 +48,7 @@ const handleSystemThemeChange = () => {
|
||||
applyTheme(currentAppearance || "system");
|
||||
};
|
||||
function useAppearance() {
|
||||
const [appearance, setAppearance] = useState("system");
|
||||
const [appearance, setAppearance] = useState("light");
|
||||
const updateAppearance = useCallback((mode) => {
|
||||
setAppearance(mode);
|
||||
localStorage.setItem("appearance", mode);
|
||||
@@ -59,7 +59,7 @@ function useAppearance() {
|
||||
const savedAppearance = localStorage.getItem(
|
||||
"appearance"
|
||||
);
|
||||
updateAppearance(savedAppearance || "system");
|
||||
updateAppearance(savedAppearance || "light");
|
||||
return () => mediaQuery()?.removeEventListener(
|
||||
"change",
|
||||
handleSystemThemeChange
|
||||
@@ -73,9 +73,9 @@ function AppearanceToggleTab({
|
||||
}) {
|
||||
const { appearance, updateAppearance } = useAppearance();
|
||||
const tabs = [
|
||||
{ value: "light", icon: Sun, label: "Light" },
|
||||
{ value: "dark", icon: Moon, label: "Dark" },
|
||||
{ value: "system", icon: Monitor, label: "System" }
|
||||
{ value: "light", icon: Sun, label: "Light" }
|
||||
// { value: 'dark', icon: Moon, label: 'Dark' },
|
||||
// { value: 'system', icon: Monitor, label: 'System' },
|
||||
];
|
||||
return /* @__PURE__ */ jsx(
|
||||
"div",
|
||||
@@ -191,7 +191,7 @@
|
||||
"/build/assets/app-layout-BFyUFda2.js"
|
||||
],
|
||||
"resources/js/components/appearance-tabs.tsx": [
|
||||
"/build/assets/appearance-Bfpl1eM5.js"
|
||||
"/build/assets/appearance-C7skoyub.js"
|
||||
],
|
||||
"resources/js/components/breadcrumbs.tsx": [
|
||||
"/build/assets/app-layout-BFyUFda2.js"
|
||||
@@ -328,7 +328,7 @@
|
||||
"/build/assets/app-layout-BFyUFda2.js"
|
||||
],
|
||||
"resources/js/hooks/use-appearance.tsx": [
|
||||
"/build/assets/appearance-Bfpl1eM5.js"
|
||||
"/build/assets/appearance-C7skoyub.js"
|
||||
],
|
||||
"resources/js/hooks/use-clipboard.ts": [
|
||||
"/build/assets/two-factor-DaA3_KAg.js"
|
||||
@@ -451,7 +451,7 @@
|
||||
"/build/assets/product-DH6XS18R.js"
|
||||
],
|
||||
"resources/js/pages/settings/appearance.tsx": [
|
||||
"/build/assets/appearance-Bfpl1eM5.js"
|
||||
"/build/assets/appearance-C7skoyub.js"
|
||||
],
|
||||
"resources/js/pages/settings/password.tsx": [
|
||||
"/build/assets/password-5nAC6NdB.js"
|
||||
|
||||
@@ -20,7 +20,7 @@ createServer(
|
||||
title: (title) => title ? `${title} - ${appName}` : appName,
|
||||
resolve: (name) => resolvePageComponent(
|
||||
`./pages/${name}.tsx`,
|
||||
/* @__PURE__ */ Object.assign({ "./pages/about.tsx": () => import("./assets/about-Bpe9pve7.js"), "./pages/art.tsx": () => import("./assets/art-C_czZZ6v.js"), "./pages/auth/confirm-password.tsx": () => import("./assets/confirm-password-yJ2scxPz.js"), "./pages/auth/forgot-password.tsx": () => import("./assets/forgot-password-BNiMrYQb.js"), "./pages/auth/login.tsx": () => import("./assets/login-Bx7GyWNN.js"), "./pages/auth/register.tsx": () => import("./assets/register-5D2-Zto1.js"), "./pages/auth/reset-password.tsx": () => import("./assets/reset-password-yPQQhFaB.js"), "./pages/auth/two-factor-challenge.tsx": () => import("./assets/two-factor-challenge-C3nZjMy6.js"), "./pages/auth/verify-email.tsx": () => import("./assets/verify-email-C6dGXcHB.js"), "./pages/bespoke.tsx": () => import("./assets/bespoke-Bov4UVda.js"), "./pages/contact.tsx": () => import("./assets/contact-DiSMu-mk.js"), "./pages/dashboard.tsx": () => import("./assets/dashboard-CbiUEmKd.js"), "./pages/dashboard/carousel/add.tsx": () => import("./assets/add-S6fabe2O.js"), "./pages/dashboard/carousel/carousel.tsx": () => import("./assets/carousel-BH5ls6c-.js"), "./pages/dashboard/faq/add.tsx": () => import("./assets/add-BhcrNqMR.js"), "./pages/dashboard/faq/index.tsx": () => import("./assets/index-OpaYcuxi.js"), "./pages/dashboard/products/add.tsx": () => import("./assets/add-CPccOhjJ.js"), "./pages/dashboard/products/edit.tsx": () => import("./assets/edit-l0sNRNKZ.js"), "./pages/dashboard/products/index.tsx": () => import("./assets/index-C7ejuoa3.js"), "./pages/dashboard/testimonial.tsx": () => import("./assets/testimonial-B1EWgUPO.js"), "./pages/faq.tsx": () => import("./assets/faq-pz_F0yUl.js"), "./pages/product.tsx": () => import("./assets/product-DH6XS18R.js"), "./pages/settings/appearance.tsx": () => import("./assets/appearance-Bfpl1eM5.js"), "./pages/settings/password.tsx": () => import("./assets/password-5nAC6NdB.js"), "./pages/settings/profile.tsx": () => import("./assets/profile-0AslOX4t.js"), "./pages/settings/two-factor.tsx": () => import("./assets/two-factor-DaA3_KAg.js"), "./pages/welcome.tsx": () => import("./assets/welcome-C5bPUp-g.js") })
|
||||
/* @__PURE__ */ Object.assign({ "./pages/about.tsx": () => import("./assets/about-Bpe9pve7.js"), "./pages/art.tsx": () => import("./assets/art-C_czZZ6v.js"), "./pages/auth/confirm-password.tsx": () => import("./assets/confirm-password-yJ2scxPz.js"), "./pages/auth/forgot-password.tsx": () => import("./assets/forgot-password-BNiMrYQb.js"), "./pages/auth/login.tsx": () => import("./assets/login-Bx7GyWNN.js"), "./pages/auth/register.tsx": () => import("./assets/register-5D2-Zto1.js"), "./pages/auth/reset-password.tsx": () => import("./assets/reset-password-yPQQhFaB.js"), "./pages/auth/two-factor-challenge.tsx": () => import("./assets/two-factor-challenge-C3nZjMy6.js"), "./pages/auth/verify-email.tsx": () => import("./assets/verify-email-C6dGXcHB.js"), "./pages/bespoke.tsx": () => import("./assets/bespoke-Bov4UVda.js"), "./pages/contact.tsx": () => import("./assets/contact-DiSMu-mk.js"), "./pages/dashboard.tsx": () => import("./assets/dashboard-CbiUEmKd.js"), "./pages/dashboard/carousel/add.tsx": () => import("./assets/add-S6fabe2O.js"), "./pages/dashboard/carousel/carousel.tsx": () => import("./assets/carousel-BH5ls6c-.js"), "./pages/dashboard/faq/add.tsx": () => import("./assets/add-BhcrNqMR.js"), "./pages/dashboard/faq/index.tsx": () => import("./assets/index-OpaYcuxi.js"), "./pages/dashboard/products/add.tsx": () => import("./assets/add-CPccOhjJ.js"), "./pages/dashboard/products/edit.tsx": () => import("./assets/edit-l0sNRNKZ.js"), "./pages/dashboard/products/index.tsx": () => import("./assets/index-C7ejuoa3.js"), "./pages/dashboard/testimonial.tsx": () => import("./assets/testimonial-B1EWgUPO.js"), "./pages/faq.tsx": () => import("./assets/faq-pz_F0yUl.js"), "./pages/product.tsx": () => import("./assets/product-DH6XS18R.js"), "./pages/settings/appearance.tsx": () => import("./assets/appearance-C7skoyub.js"), "./pages/settings/password.tsx": () => import("./assets/password-5nAC6NdB.js"), "./pages/settings/profile.tsx": () => import("./assets/profile-0AslOX4t.js"), "./pages/settings/two-factor.tsx": () => import("./assets/two-factor-DaA3_KAg.js"), "./pages/welcome.tsx": () => import("./assets/welcome-C5bPUp-g.js") })
|
||||
),
|
||||
setup: ({ App, props }) => {
|
||||
return /* @__PURE__ */ jsx(App, { ...props });
|
||||
|
||||
Reference in New Issue
Block a user