diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9006239..c86ef6c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -21,6 +21,10 @@ jobs: - name: Install dependencies run: bun install --frozen-lockfile + - name: Generate route tree + working-directory: packages/admin + run: bunx @tanstack/router-cli generate + - name: Lint run: bun run lint diff --git a/Dockerfile.frontend b/Dockerfile.frontend index cb61c63..5c297f2 100644 --- a/Dockerfile.frontend +++ b/Dockerfile.frontend @@ -16,6 +16,7 @@ COPY packages/admin ./packages/admin COPY package.json ./ COPY tsconfig.base.json ./ WORKDIR /app/packages/admin +RUN bunx @tanstack/router-cli generate RUN bun run build FROM nginx:alpine diff --git a/packages/admin/src/routeTree.gen.ts b/packages/admin/src/routeTree.gen.ts index 7be384e..36e5b7f 100644 --- a/packages/admin/src/routeTree.gen.ts +++ b/packages/admin/src/routeTree.gen.ts @@ -27,6 +27,7 @@ import { Route as AuthenticatedFilesIndexRouteImport } from './routes/_authentic import { Route as AuthenticatedAccountsIndexRouteImport } from './routes/_authenticated/accounts/index' import { Route as AuthenticatedRolesNewRouteImport } from './routes/_authenticated/roles/new' import { Route as AuthenticatedRolesRoleIdRouteImport } from './routes/_authenticated/roles/$roleId' +import { Route as AuthenticatedReportsDailyRouteImport } from './routes/_authenticated/reports/daily' import { Route as AuthenticatedRepairsTemplatesRouteImport } from './routes/_authenticated/repairs/templates' import { Route as AuthenticatedRepairsNewRouteImport } from './routes/_authenticated/repairs/new' import { Route as AuthenticatedRepairsTicketIdRouteImport } from './routes/_authenticated/repairs/$ticketId' @@ -152,6 +153,12 @@ const AuthenticatedRolesRoleIdRoute = path: '/roles/$roleId', getParentRoute: () => AuthenticatedRoute, } as any) +const AuthenticatedReportsDailyRoute = + AuthenticatedReportsDailyRouteImport.update({ + id: '/reports/daily', + path: '/reports/daily', + getParentRoute: () => AuthenticatedRoute, + } as any) const AuthenticatedRepairsTemplatesRoute = AuthenticatedRepairsTemplatesRouteImport.update({ id: '/repairs/templates', @@ -344,6 +351,7 @@ export interface FileRoutesByFullPath { '/repairs/$ticketId': typeof AuthenticatedRepairsTicketIdRoute '/repairs/new': typeof AuthenticatedRepairsNewRoute '/repairs/templates': typeof AuthenticatedRepairsTemplatesRoute + '/reports/daily': typeof AuthenticatedReportsDailyRoute '/roles/$roleId': typeof AuthenticatedRolesRoleIdRoute '/roles/new': typeof AuthenticatedRolesNewRoute '/accounts/': typeof AuthenticatedAccountsIndexRoute @@ -391,6 +399,7 @@ export interface FileRoutesByTo { '/repairs/$ticketId': typeof AuthenticatedRepairsTicketIdRoute '/repairs/new': typeof AuthenticatedRepairsNewRoute '/repairs/templates': typeof AuthenticatedRepairsTemplatesRoute + '/reports/daily': typeof AuthenticatedReportsDailyRoute '/roles/$roleId': typeof AuthenticatedRolesRoleIdRoute '/roles/new': typeof AuthenticatedRolesNewRoute '/accounts': typeof AuthenticatedAccountsIndexRoute @@ -441,6 +450,7 @@ export interface FileRoutesById { '/_authenticated/repairs/$ticketId': typeof AuthenticatedRepairsTicketIdRoute '/_authenticated/repairs/new': typeof AuthenticatedRepairsNewRoute '/_authenticated/repairs/templates': typeof AuthenticatedRepairsTemplatesRoute + '/_authenticated/reports/daily': typeof AuthenticatedReportsDailyRoute '/_authenticated/roles/$roleId': typeof AuthenticatedRolesRoleIdRoute '/_authenticated/roles/new': typeof AuthenticatedRolesNewRoute '/_authenticated/accounts/': typeof AuthenticatedAccountsIndexRoute @@ -491,6 +501,7 @@ export interface FileRouteTypes { | '/repairs/$ticketId' | '/repairs/new' | '/repairs/templates' + | '/reports/daily' | '/roles/$roleId' | '/roles/new' | '/accounts/' @@ -538,6 +549,7 @@ export interface FileRouteTypes { | '/repairs/$ticketId' | '/repairs/new' | '/repairs/templates' + | '/reports/daily' | '/roles/$roleId' | '/roles/new' | '/accounts' @@ -587,6 +599,7 @@ export interface FileRouteTypes { | '/_authenticated/repairs/$ticketId' | '/_authenticated/repairs/new' | '/_authenticated/repairs/templates' + | '/_authenticated/reports/daily' | '/_authenticated/roles/$roleId' | '/_authenticated/roles/new' | '/_authenticated/accounts/' @@ -752,6 +765,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthenticatedRolesRoleIdRouteImport parentRoute: typeof AuthenticatedRoute } + '/_authenticated/reports/daily': { + id: '/_authenticated/reports/daily' + path: '/reports/daily' + fullPath: '/reports/daily' + preLoaderRoute: typeof AuthenticatedReportsDailyRouteImport + parentRoute: typeof AuthenticatedRoute + } '/_authenticated/repairs/templates': { id: '/_authenticated/repairs/templates' path: '/repairs/templates' @@ -1004,6 +1024,7 @@ interface AuthenticatedRouteChildren { AuthenticatedRepairsTicketIdRoute: typeof AuthenticatedRepairsTicketIdRoute AuthenticatedRepairsNewRoute: typeof AuthenticatedRepairsNewRoute AuthenticatedRepairsTemplatesRoute: typeof AuthenticatedRepairsTemplatesRoute + AuthenticatedReportsDailyRoute: typeof AuthenticatedReportsDailyRoute AuthenticatedRolesRoleIdRoute: typeof AuthenticatedRolesRoleIdRoute AuthenticatedRolesNewRoute: typeof AuthenticatedRolesNewRoute AuthenticatedAccountsIndexRoute: typeof AuthenticatedAccountsIndexRoute @@ -1047,6 +1068,7 @@ const AuthenticatedRouteChildren: AuthenticatedRouteChildren = { AuthenticatedRepairsTicketIdRoute: AuthenticatedRepairsTicketIdRoute, AuthenticatedRepairsNewRoute: AuthenticatedRepairsNewRoute, AuthenticatedRepairsTemplatesRoute: AuthenticatedRepairsTemplatesRoute, + AuthenticatedReportsDailyRoute: AuthenticatedReportsDailyRoute, AuthenticatedRolesRoleIdRoute: AuthenticatedRolesRoleIdRoute, AuthenticatedRolesNewRoute: AuthenticatedRolesNewRoute, AuthenticatedAccountsIndexRoute: AuthenticatedAccountsIndexRoute,