This commit is contained in:
+24
-11
@@ -1,6 +1,7 @@
|
||||
import { w as with_request_store, t as text_decoder, b as base64_decode, r as root, d as decode_pathname, D as DEV, n as normalize_path, a as disable_search, c as decode_params, v as validate_layout_server_exports, e as validate_layout_exports, f as validate_page_server_exports, g as validate_page_exports, h as text_encoder, i as resolve, m as make_trackable, j as get_relative_path, k as base64_encode, l as writable, o as readable } from './chunks/exports-t4TpQnRz.js';
|
||||
import { D as DevalueError, i as is_primitive, g as get_type, a as is_plain_object, e as enumerable_symbols, s as stringify_key, b as stringify_string, c as browser, u as uneval } from './chunks/index2-DP7VISHE.js';
|
||||
import { H as HttpError, j as json, t as text, S as SvelteKitError, R as Redirect, e as error, A as ActionFailure } from './chunks/index-B2LGyy1l.js';
|
||||
import { D as DevalueError, i as is_primitive, g as get_type, a as is_plain_object, e as enumerable_symbols, s as stringify_key, b as stringify_string, u as uneval } from './chunks/index-DV2ddKt_.js';
|
||||
import { w as with_request_store, t as text_decoder, b as base64_decode, r as root, d as decode_pathname, n as normalize_path, a as disable_search, c as decode_params, v as validate_layout_server_exports, e as validate_layout_exports, f as validate_page_server_exports, g as validate_page_exports, h as text_encoder, i as resolve, m as make_trackable, j as get_relative_path, k as base64_encode } from './chunks/root-DBd7NWpv.js';
|
||||
import { w as writable, r as readable } from './chunks/index-CHCwDMOw.js';
|
||||
import 'clsx';
|
||||
|
||||
/**
|
||||
@@ -1182,7 +1183,19 @@ const options = {
|
||||
service_worker: false,
|
||||
service_worker_options: void 0,
|
||||
templates: {
|
||||
app: ({ head, body, assets, nonce, env }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <link rel="icon" href="' + assets + '/favicon.png" />\n <meta name="viewport" content="width=device-width, initial-scale=1" />\n ' + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
|
||||
app: ({ head, body, assets, nonce, env }) => `<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='4' fill='%231e293b'/><text x='16' y='22' font-size='18' font-family='system-ui' fill='%2394a3b8' text-anchor='middle'>S</text></svg>" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5, viewport-fit=cover" />
|
||||
<meta name="theme-color" content="#0f172a" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="Stackq" />
|
||||
<link rel="apple-touch-icon" href="/icon.svg" />
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
` + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
|
||||
error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
|
||||
|
||||
<style>
|
||||
@@ -1254,7 +1267,7 @@ const options = {
|
||||
<div class="error">
|
||||
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
||||
},
|
||||
version_hash: "1cw4viz"
|
||||
version_hash: "1lkqwc1"
|
||||
};
|
||||
async function get_hooks() {
|
||||
let handle;
|
||||
@@ -2015,7 +2028,7 @@ async function handle_action_json_request(event, event_state, options2, server)
|
||||
check_named_default_separate(actions);
|
||||
try {
|
||||
const data = await call_action(event, event_state, actions);
|
||||
if (DEV) ;
|
||||
if (browser) ;
|
||||
if (data instanceof ActionFailure) {
|
||||
return action_json({
|
||||
type: "failure",
|
||||
@@ -2100,7 +2113,7 @@ async function handle_action_request(event, event_state, server) {
|
||||
check_named_default_separate(actions);
|
||||
try {
|
||||
const data = await call_action(event, event_state, actions);
|
||||
if (DEV) ;
|
||||
if (browser) ;
|
||||
if (data instanceof ActionFailure) {
|
||||
return {
|
||||
type: "failure",
|
||||
@@ -3391,7 +3404,7 @@ async function render_response({
|
||||
csp: csp.script_needs_nonce ? { nonce: csp.nonce } : { hash: csp.script_needs_hash }
|
||||
};
|
||||
try {
|
||||
if (DEV) ;
|
||||
if (browser) ;
|
||||
rendered = await with_request_store({ event, state: event_state }, async () => {
|
||||
if (relative) override({ base: base$1, assets: assets$1 });
|
||||
const maybe_promise = options2.root.render(props, render_opts);
|
||||
@@ -4257,7 +4270,7 @@ async function render_page(event, event_state, page, options2, manifest, state,
|
||||
const ssr = nodes.ssr();
|
||||
const csr = nodes.csr();
|
||||
if (ssr === false && !(state.prerendering && should_prerender_data)) {
|
||||
if (DEV && action_result && !event.request.headers.has("x-sveltekit-action")) ;
|
||||
if (browser && action_result && !event.request.headers.has("x-sveltekit-action")) ;
|
||||
return await render_response({
|
||||
branch: [],
|
||||
fetched,
|
||||
@@ -5110,12 +5123,12 @@ async function internal_respond(request, options2, manifest, state) {
|
||||
if (url.pathname === base || url.pathname === base + "/") {
|
||||
trailing_slash = "always";
|
||||
} else if (page_nodes) {
|
||||
if (DEV) ;
|
||||
if (browser) ;
|
||||
trailing_slash = page_nodes.trailing_slash();
|
||||
} else if (route.endpoint) {
|
||||
const node = await route.endpoint();
|
||||
trailing_slash = node.trailingSlash ?? "never";
|
||||
if (DEV) ;
|
||||
if (browser) ;
|
||||
}
|
||||
if (!is_data_request) {
|
||||
const normalized = normalize_path(url.pathname, trailing_slash);
|
||||
@@ -5375,7 +5388,7 @@ async function internal_respond(request, options2, manifest, state) {
|
||||
});
|
||||
}
|
||||
if (state.depth === 0) {
|
||||
if (DEV && event2.url.pathname === "/.well-known/appspecific/com.chrome.devtools.json") ;
|
||||
if (browser && event2.url.pathname === "/.well-known/appspecific/com.chrome.devtools.json") ;
|
||||
return await respond_with_error({
|
||||
event: event2,
|
||||
event_state,
|
||||
|
||||
Reference in New Issue
Block a user