chore: remove build artifacts and update gitignore
- Remove woff2 font files and validator.ts from repository - Add *.woff2, validator.ts, and routes.ts to .gitignore - These are Next.js build artifacts that should be generated during build
This commit is contained in:
parent
3c3124d8c9
commit
e8462ef301
15 changed files with 5 additions and 304 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -39,3 +39,8 @@ yarn-error.log*
|
||||||
# typescript
|
# typescript
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
validator.ts
|
||||||
|
routes.ts
|
||||||
|
|
||||||
|
# fonts
|
||||||
|
*.woff2
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
304
validator.ts
304
validator.ts
|
|
@ -1,304 +0,0 @@
|
||||||
// This file is generated automatically by Next.js
|
|
||||||
// Do not edit this file manually
|
|
||||||
// This file validates that all pages and layouts export the correct types
|
|
||||||
|
|
||||||
import type { AppRoutes, LayoutRoutes, ParamMap, AppRouteHandlerRoutes } from "./routes.js"
|
|
||||||
import type { ResolvingMetadata, ResolvingViewport } from "next/types.js"
|
|
||||||
import type { NextRequest } from 'next/server.js'
|
|
||||||
|
|
||||||
type AppPageConfig<Route extends AppRoutes = AppRoutes> = {
|
|
||||||
default: React.ComponentType<{ params: Promise<ParamMap[Route]> } & any> | ((props: { params: Promise<ParamMap[Route]> } & any) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
|
|
||||||
generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
|
|
||||||
generateMetadata?: (
|
|
||||||
props: { params: Promise<ParamMap[Route]> } & any,
|
|
||||||
parent: ResolvingMetadata
|
|
||||||
) => Promise<any> | any
|
|
||||||
generateViewport?: (
|
|
||||||
props: { params: Promise<ParamMap[Route]> } & any,
|
|
||||||
parent: ResolvingViewport
|
|
||||||
) => Promise<any> | any
|
|
||||||
metadata?: any
|
|
||||||
viewport?: any
|
|
||||||
}
|
|
||||||
|
|
||||||
type LayoutConfig<Route extends LayoutRoutes = LayoutRoutes> = {
|
|
||||||
default: React.ComponentType<LayoutProps<Route>> | ((props: LayoutProps<Route>) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
|
|
||||||
generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
|
|
||||||
generateMetadata?: (
|
|
||||||
props: { params: Promise<ParamMap[Route]> } & any,
|
|
||||||
parent: ResolvingMetadata
|
|
||||||
) => Promise<any> | any
|
|
||||||
generateViewport?: (
|
|
||||||
props: { params: Promise<ParamMap[Route]> } & any,
|
|
||||||
parent: ResolvingViewport
|
|
||||||
) => Promise<any> | any
|
|
||||||
metadata?: any
|
|
||||||
viewport?: any
|
|
||||||
}
|
|
||||||
|
|
||||||
type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRoutes> = {
|
|
||||||
GET?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
||||||
POST?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
||||||
PUT?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
||||||
PATCH?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
||||||
DELETE?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
||||||
HEAD?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
||||||
OPTIONS?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Validate ../../../app/addigy-devices/page.tsx
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends AppPageConfig<"/addigy-devices">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/addigy-devices/page.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/config-enrichment-test/page.tsx
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends AppPageConfig<"/config-enrichment-test">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/config-enrichment-test/page.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/configuration-items/[id]/page.tsx
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends AppPageConfig<"/configuration-items/[id]">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/configuration-items/[id]/page.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/configuration-items/page.tsx
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends AppPageConfig<"/configuration-items">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/configuration-items/page.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/page.tsx
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends AppPageConfig<"/">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/page.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/setup/page.tsx
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends AppPageConfig<"/setup">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/setup/page.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/addigy-devices/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/addigy-devices">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/addigy-devices/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/addigy-policies/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/addigy-policies">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/addigy-policies/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/companies/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/companies">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/companies/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/config-enrichment/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/config-enrichment">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/config-enrichment/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/config-items/[id]/tickets/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/config-items/[id]/tickets">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/config-items/[id]/tickets/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/configuration-items/[id]/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/configuration-items/[id]">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/configuration-items/[id]/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/configuration-items/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/configuration-items">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/configuration-items/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/contacts/[id]/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/contacts/[id]">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/contacts/[id]/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/debug-auth/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/debug-auth">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/debug-auth/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/health/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/health">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/health/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/invoices/[id]/line-items/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/invoices/[id]/line-items">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/invoices/[id]/line-items/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/picklists/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/picklists">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/picklists/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/resources/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/resources">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/resources/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/rmm-audit/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/rmm-audit">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/rmm-audit/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/rmm-devices/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/rmm-devices">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/rmm-devices/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/rmm-test/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/rmm-test">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/rmm-test/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/tasks/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/tasks">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/tasks/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/test-zones/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/test-zones">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/test-zones/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/tickets/[id]/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/tickets/[id]">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/tickets/[id]/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/tickets/[id]/time-entries/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/tickets/[id]/time-entries">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/tickets/[id]/time-entries/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate ../../../app/api/tickets/route.ts
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends RouteHandlerConfig<"/api/tickets">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/api/tickets/route.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Validate ../../../app/layout.tsx
|
|
||||||
{
|
|
||||||
type __IsExpected<Specific extends LayoutConfig<"/">> = Specific
|
|
||||||
const handler = {} as typeof import("../../../app/layout.js")
|
|
||||||
type __Check = __IsExpected<typeof handler>
|
|
||||||
// @ts-ignore
|
|
||||||
type __Unused = __Check
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue