www: Various documentation improvements (#1635)

Co-authored-by: Reed von Redwitz <reed+github@vonredwitz.com>
This commit is contained in:
Marvin Hagemeister
2023-08-16 16:24:53 +02:00
committed by GitHub
co-authored by Reed von Redwitz
parent 794c8ac10c
commit b2362da281
14 changed files with 275 additions and 137 deletions
+6 -6
View File
@@ -253,7 +253,7 @@ export class ServerContext {
component,
handler,
csp: Boolean(config?.csp ?? false),
appTemplate: !config?.skipAppTemplate,
appWrapper: !config?.skipAppWrapper,
inheritLayouts: !config?.skipInheritedLayouts,
};
routes.push(route);
@@ -274,7 +274,7 @@ export class ServerContext {
baseRoute: toBaseRoute(baseRoute),
handler: mod.handler,
component: mod.default,
appTemplate: !config?.skipAppTemplate,
appWrapper: !config?.skipAppWrapper,
inheritLayouts: !config?.skipInheritedLayouts,
});
} else if (
@@ -295,7 +295,7 @@ export class ServerContext {
component,
handler: handler ?? ((req) => router.defaultOtherHandler(req)),
csp: Boolean(config?.csp ?? false),
appTemplate: !config?.skipAppTemplate,
appWrapper: !config?.skipAppWrapper,
inheritLayouts: !config?.skipInheritedLayouts,
};
} else if (
@@ -317,7 +317,7 @@ export class ServerContext {
handler: handler ??
((req, ctx) => router.defaultErrorHandler(req, ctx, ctx.error)),
csp: Boolean(config?.csp ?? false),
appTemplate: !config?.skipAppTemplate,
appWrapper: !config?.skipAppWrapper,
inheritLayouts: !config?.skipInheritedLayouts,
};
}
@@ -982,7 +982,7 @@ const DEFAULT_NOT_FOUND: UnknownPage = {
name: "_404",
handler: (req) => router.defaultOtherHandler(req),
csp: false,
appTemplate: true,
appWrapper: true,
inheritLayouts: true,
};
@@ -994,7 +994,7 @@ const DEFAULT_ERROR: ErrorPage = {
component: DefaultErrorHandler,
handler: (_req, ctx) => ctx.render(),
csp: false,
appTemplate: true,
appWrapper: true,
inheritLayouts: true,
};