Initial boiler plate project

This commit is contained in:
2024-09-24 03:52:46 +00:00
parent 6120b2d6c3
commit 154b93e267
10034 changed files with 2079352 additions and 2 deletions

View File

@ -0,0 +1,9 @@
import type { RouteDefinition } from './route-definition';
import { RouteKind } from '../route-kind';
export interface AppPageRouteDefinition extends RouteDefinition<RouteKind.APP_PAGE> {
readonly appPaths: ReadonlyArray<string>;
}
/**
* Returns true if the given definition is an App Page route definition.
*/
export declare function isAppPageRouteDefinition(definition: RouteDefinition): definition is AppPageRouteDefinition;

View File

@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "isAppPageRouteDefinition", {
enumerable: true,
get: function() {
return isAppPageRouteDefinition;
}
});
const _routekind = require("../route-kind");
function isAppPageRouteDefinition(definition) {
return definition.kind === _routekind.RouteKind.APP_PAGE;
}
//# sourceMappingURL=app-page-route-definition.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/server/future/route-definitions/app-page-route-definition.ts"],"names":["isAppPageRouteDefinition","definition","kind","RouteKind","APP_PAGE"],"mappings":";;;;+BAWgBA;;;eAAAA;;;2BAVU;AAUnB,SAASA,yBACdC,UAA2B;IAE3B,OAAOA,WAAWC,IAAI,KAAKC,oBAAS,CAACC,QAAQ;AAC/C"}

View File

@ -0,0 +1,4 @@
import type { RouteKind } from '../route-kind';
import type { RouteDefinition } from './route-definition';
export interface AppRouteRouteDefinition extends RouteDefinition<RouteKind.APP_ROUTE> {
}

View File

@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=app-route-route-definition.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":""}

View File

@ -0,0 +1,15 @@
import type { RouteDefinition } from './route-definition';
import type { RouteKind } from '../route-kind';
export interface LocaleRouteDefinition<K extends RouteKind = RouteKind> extends RouteDefinition<K> {
/**
* When defined it means that this route is locale aware. When undefined,
* it means no special handling has to occur to process locales.
*/
i18n?: {
/**
* Describes the locale for the route. If this is undefined, then it
* indicates that this route can handle _any_ locale.
*/
locale?: string;
};
}

View File

@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=locale-route-definition.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":""}

View File

@ -0,0 +1,4 @@
import type { RouteKind } from '../route-kind';
import type { LocaleRouteDefinition } from './locale-route-definition';
export interface PagesAPIRouteDefinition extends LocaleRouteDefinition<RouteKind.PAGES_API> {
}

View File

@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=pages-api-route-definition.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":""}

View File

@ -0,0 +1,4 @@
import type { LocaleRouteDefinition } from './locale-route-definition';
import type { RouteKind } from '../route-kind';
export interface PagesRouteDefinition extends LocaleRouteDefinition<RouteKind.PAGES> {
}

View File

@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=pages-route-definition.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":""}

View File

@ -0,0 +1,16 @@
import type { RouteKind } from '../route-kind';
export interface RouteDefinition<K extends RouteKind = RouteKind> {
readonly kind: K;
readonly bundlePath: string;
readonly filename: string;
/**
* Describes the pathname including all internal modifiers such as
* intercepting routes, parallel routes and route/page suffixes that are not
* part of the pathname.
*/
readonly page: string;
/**
* The pathname (including dynamic placeholders) for a route to resolve.
*/
readonly pathname: string;
}

View File

@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=route-definition.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":""}