Arreglos menores

This commit is contained in:
David Arranz 2025-12-01 20:14:12 +01:00
parent c02adef593
commit 411e924fce
4 changed files with 52 additions and 50 deletions

View File

@ -20,7 +20,7 @@ import { useIssuedInvoiceListPageController } from "../../controllers";
import { IssuedInvoicesGrid, useIssuedInvoicesGridColumns } from "../blocks"; import { IssuedInvoicesGrid, useIssuedInvoicesGridColumns } from "../blocks";
export const IssuedInvoiceListPage = () => { export const IssuedInvoiceListPage = () => {
const { t, i18n } = useTranslation(); const { t } = useTranslation();
const navigate = useNavigate(); const navigate = useNavigate();
const { const {
@ -56,8 +56,6 @@ export const IssuedInvoiceListPage = () => {
); );
} }
console.log(i18n.store);
return ( return (
<> <>
<AppHeader> <AppHeader>

View File

@ -7,7 +7,7 @@ i18n
.use(initReactI18next) .use(initReactI18next)
.init({ .init({
detection: { order: ["navigator"] }, detection: { order: ["navigator"] },
debug: true, debug: false,
fallbackLng: "es", fallbackLng: "es",
interpolation: { escapeValue: false }, interpolation: { escapeValue: false },
}); });
@ -52,7 +52,6 @@ export const registerTranslations = (
const alreadyExists = i18n.hasResourceBundle(locale, ns); const alreadyExists = i18n.hasResourceBundle(locale, ns);
if (!alreadyExists) { if (!alreadyExists) {
console.log("cargando => ", moduleName, locale);
i18n.addResourceBundle(locale, ns, resources, true, true); i18n.addResourceBundle(locale, ns, resources, true, true);
} }
}; };

View File

@ -29,8 +29,6 @@ import type * as React from "react";
import { NavMain } from "./nav-main.tsx"; import { NavMain } from "./nav-main.tsx";
import { NavSecondary } from "./nav-secondary.tsx"; import { NavSecondary } from "./nav-secondary.tsx";
import { NavUser } from "./nav-user.tsx";
import { SearchForm } from "./search-form.tsx";
import { TeamSwitcher } from "./team-switcher.tsx"; import { TeamSwitcher } from "./team-switcher.tsx";
const data = { const data = {
@ -230,14 +228,14 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
<Sidebar collapsible="icon" {...props}> <Sidebar collapsible="icon" {...props}>
<SidebarHeader className="mb-3"> <SidebarHeader className="mb-3">
<TeamSwitcher teams={data2.teams} /> <TeamSwitcher teams={data2.teams} />
<SearchForm /> {/*<SearchForm />*/}
</SidebarHeader> </SidebarHeader>
<SidebarContent> <SidebarContent>
<NavMain items={data2.navMain} /> <NavMain items={data2.navMain} />
</SidebarContent> </SidebarContent>
<SidebarFooter> <SidebarFooter>
<NavSecondary className="mt-auto" items={data.navSecondary} /> <NavSecondary className="mt-auto" items={data.navSecondary} />
<NavUser user={data.user} /> {/*<NavUser user={data.user} />*/}
</SidebarFooter> </SidebarFooter>
<SidebarRail /> <SidebarRail />
</Sidebar> </Sidebar>

View File

@ -117,48 +117,55 @@
--font-serif: "Noto Serif", ui-serif, serif; --font-serif: "Noto Serif", ui-serif, serif;
--font-mono: "Noto Sans Mono", ui-monospace, monospace; --font-mono: "Noto Sans Mono", ui-monospace, monospace;
--background: #eef4ff; --background: oklch(0.9658 0.0161 262.7533);
--foreground: #1e293b; --foreground: oklch(0.2795 0.0368 260.031);
--card: #ffffff; --card: oklch(1 0 0);
--card-foreground: #1e293b; --card-foreground: oklch(0.2795 0.0368 260.031);
--popover: #ffffff; --popover: oklch(1 0 0);
--popover-foreground: #1e293b; --popover-foreground: oklch(0.2795 0.0368 260.031);
--primary: #3478d1; --primary: oklch(0.575 0.1533 256.4357);
--primary-foreground: #ffffff; --primary-foreground: oklch(1 0 0);
--secondary: #e8f1fb; --secondary: oklch(0.6427 0.1407 253.94);
--secondary-foreground: #1e293b; --secondary-foreground: oklch(0.9543 0.0166 250.8425);
--muted: #e8f1fb; --muted: oklch(0.9543 0.0166 250.8425);
--muted-foreground: #6b7d93; --muted-foreground: oklch(0.5832 0.04 253.599);
--accent: #6b7d93; --accent: oklch(0.5832 0.04 253.599);
--accent-foreground: #ffffff; --accent-foreground: oklch(1 0 0);
--destructive: #ef4444; --destructive: oklch(0.6368 0.2078 25.3313);
--destructive-foreground: #ffffff; --destructive-foreground: oklch(1 0 0);
--border: #d1dce8; --border: oklch(0.8897 0.0203 250.3999);
--input: #d1dce8; --input: oklch(1 0 0);
--ring: #3478d1; --ring: oklch(0.575 0.1533 256.4357);
--chart-1: #3478d1; --chart-1: oklch(0.575 0.1533 256.4357);
--chart-2: #6b7d93; --chart-2: oklch(0.5832 0.04 253.599);
--chart-3: #5ba3e0; --chart-3: oklch(0.694 0.1158 246.0594);
--chart-4: #4a90c9; --chart-4: oklch(0.6326 0.1115 245.4396);
--chart-5: #8ba3bd; --chart-5: oklch(0.706 0.0467 250.5651);
--sidebar: #3478d1; --sidebar: oklch(0.575 0.1533 256.4357);
--sidebar-foreground: #ffffff; --sidebar-foreground: oklch(1 0 0);
--sidebar-primary: #ffffff; --sidebar-primary: oklch(1 0 0);
--sidebar-primary-foreground: #3478d1; --sidebar-primary-foreground: oklch(0.575 0.1533 256.4357);
--sidebar-accent: #4a8fe0; --sidebar-accent: oklch(0.6427 0.1407 253.94);
--sidebar-accent-foreground: #ffffff; --sidebar-accent-foreground: oklch(1 0 0);
--sidebar-border: #4a8fe0; --sidebar-border: oklch(0.6427 0.1407 253.94);
--sidebar-ring: #ffffff; --sidebar-ring: oklch(1 0 0);
--radius: 0.4rem; --radius: 0.4rem;
--shadow-2xs: 1px 1px 6px 0px hsl(0 0% 0% / 0.05); --shadow-x: 0;
--shadow-xs: 1px 1px 6px 0px hsl(0 0% 0% / 0.05); --shadow-y: 1px;
--shadow-sm: 1px 1px 6px 0px hsl(0 0% 0% / 0.1), 1px 1px 2px -1px hsl(0 0% 0% / 0.1); --shadow-blur: 3px;
--shadow: 1px 1px 6px 0px hsl(0 0% 0% / 0.1), 1px 1px 2px -1px hsl(0 0% 0% / 0.1); --shadow-spread: 0px;
--shadow-md: 1px 1px 6px 0px hsl(0 0% 0% / 0.1), 1px 2px 4px -1px hsl(0 0% 0% / 0.1); --shadow-opacity: 0.1;
--shadow-lg: 1px 1px 6px 0px hsl(0 0% 0% / 0.1), 1px 4px 6px -1px hsl(0 0% 0% / 0.1); --shadow-color: oklch(0 0 0);
--shadow-xl: 1px 1px 6px 0px hsl(0 0% 0% / 0.1), 1px 8px 10px -1px hsl(0 0% 0% / 0.1); --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
--shadow-2xl: 1px 1px 6px 0px hsl(0 0% 0% / 0.25); --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
--tracking-normal: 0rem; --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
--shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
--shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);
--shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);
--shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
--tracking-normal: 0em;
--spacing: 0.22rem; --spacing: 0.22rem;
} }