.
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
declare function AppError(): import("react/jsx-runtime").JSX.Element;
|
||||
export default AppError;
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _default;
|
||||
}
|
||||
});
|
||||
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
||||
const _jsxruntime = require("react/jsx-runtime");
|
||||
const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
||||
const _errorstyles = require("./error-styles");
|
||||
// This is the static 500.html page for App Router apps.
|
||||
// Always a server error, rendered at build time.
|
||||
function AppError() {
|
||||
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("html", {
|
||||
id: "__next_error__",
|
||||
children: [
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsxs)("head", {
|
||||
children: [
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("title", {
|
||||
children: "500: This page couldn’t load"
|
||||
}),
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
|
||||
dangerouslySetInnerHTML: {
|
||||
__html: _errorstyles.errorThemeCss
|
||||
}
|
||||
})
|
||||
]
|
||||
}),
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("body", {
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
||||
style: _errorstyles.errorStyles.container,
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
||||
style: _errorstyles.errorStyles.card,
|
||||
children: [
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)(_errorstyles.WarningIcon, {}),
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("h1", {
|
||||
style: _errorstyles.errorStyles.title,
|
||||
children: "This page couldn’t load"
|
||||
}),
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("p", {
|
||||
style: _errorstyles.errorStyles.message,
|
||||
children: "A server error occurred. Reload to try again."
|
||||
}),
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("form", {
|
||||
style: _errorstyles.errorStyles.form,
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
||||
type: "submit",
|
||||
style: _errorstyles.errorStyles.button,
|
||||
children: "Reload"
|
||||
})
|
||||
})
|
||||
]
|
||||
})
|
||||
})
|
||||
})
|
||||
]
|
||||
});
|
||||
}
|
||||
const _default = AppError;
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=app-error.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/app-error.tsx"],"sourcesContent":["import React from 'react'\nimport { errorStyles, errorThemeCss, WarningIcon } from './error-styles'\n\n// This is the static 500.html page for App Router apps.\n// Always a server error, rendered at build time.\nfunction AppError() {\n return (\n <html id=\"__next_error__\">\n <head>\n <title>500: This page couldn’t load</title>\n <style dangerouslySetInnerHTML={{ __html: errorThemeCss }} />\n </head>\n <body>\n <div style={errorStyles.container}>\n <div style={errorStyles.card}>\n <WarningIcon />\n <h1 style={errorStyles.title}>This page couldn’t load</h1>\n <p style={errorStyles.message}>\n A server error occurred. Reload to try again.\n </p>\n <form style={errorStyles.form}>\n <button type=\"submit\" style={errorStyles.button}>\n Reload\n </button>\n </form>\n </div>\n </div>\n </body>\n </html>\n )\n}\n\nexport default AppError\n"],"names":["AppError","html","id","head","title","style","dangerouslySetInnerHTML","__html","errorThemeCss","body","div","errorStyles","container","card","WarningIcon","h1","p","message","form","button","type"],"mappings":";;;;+BAgCA;;;eAAA;;;;;gEAhCkB;6BACsC;AAExD,wDAAwD;AACxD,iDAAiD;AACjD,SAASA;IACP,qBACE,sBAACC;QAAKC,IAAG;;0BACP,sBAACC;;kCACC,qBAACC;kCAAM;;kCACP,qBAACC;wBAAMC,yBAAyB;4BAAEC,QAAQC,0BAAa;wBAAC;;;;0BAE1D,qBAACC;0BACC,cAAA,qBAACC;oBAAIL,OAAOM,wBAAW,CAACC,SAAS;8BAC/B,cAAA,sBAACF;wBAAIL,OAAOM,wBAAW,CAACE,IAAI;;0CAC1B,qBAACC,wBAAW;0CACZ,qBAACC;gCAAGV,OAAOM,wBAAW,CAACP,KAAK;0CAAE;;0CAC9B,qBAACY;gCAAEX,OAAOM,wBAAW,CAACM,OAAO;0CAAE;;0CAG/B,qBAACC;gCAAKb,OAAOM,wBAAW,CAACO,IAAI;0CAC3B,cAAA,qBAACC;oCAAOC,MAAK;oCAASf,OAAOM,wBAAW,CAACQ,MAAM;8CAAE;;;;;;;;;AAS/D;MAEA,WAAenB","ignoreList":[0]}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export declare const PARALLEL_ROUTE_DEFAULT_NULL_PATH = "next/dist/client/components/builtin/default-null.js";
|
||||
export default function ParallelRouteDefaultNull(): null;
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
PARALLEL_ROUTE_DEFAULT_NULL_PATH: null,
|
||||
default: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
PARALLEL_ROUTE_DEFAULT_NULL_PATH: function() {
|
||||
return PARALLEL_ROUTE_DEFAULT_NULL_PATH;
|
||||
},
|
||||
default: function() {
|
||||
return ParallelRouteDefaultNull;
|
||||
}
|
||||
});
|
||||
const PARALLEL_ROUTE_DEFAULT_NULL_PATH = 'next/dist/client/components/builtin/default-null.js';
|
||||
function ParallelRouteDefaultNull() {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=default-null.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/default-null.tsx"],"sourcesContent":["export const PARALLEL_ROUTE_DEFAULT_NULL_PATH =\n 'next/dist/client/components/builtin/default-null.js'\n\nexport default function ParallelRouteDefaultNull() {\n return null\n}\n"],"names":["PARALLEL_ROUTE_DEFAULT_NULL_PATH","ParallelRouteDefaultNull"],"mappings":";;;;;;;;;;;;;;;IAAaA,gCAAgC;eAAhCA;;IAGb,OAEC;eAFuBC;;;AAHjB,MAAMD,mCACX;AAEa,SAASC;IACtB,OAAO;AACT","ignoreList":[0]}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export declare const PARALLEL_ROUTE_DEFAULT_PATH = "next/dist/client/components/builtin/default.js";
|
||||
export default function ParallelRouteDefault(): void;
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
PARALLEL_ROUTE_DEFAULT_PATH: null,
|
||||
default: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
PARALLEL_ROUTE_DEFAULT_PATH: function() {
|
||||
return PARALLEL_ROUTE_DEFAULT_PATH;
|
||||
},
|
||||
default: function() {
|
||||
return ParallelRouteDefault;
|
||||
}
|
||||
});
|
||||
const _notfound = require("../not-found");
|
||||
const PARALLEL_ROUTE_DEFAULT_PATH = 'next/dist/client/components/builtin/default.js';
|
||||
function ParallelRouteDefault() {
|
||||
(0, _notfound.notFound)();
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=default.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/default.tsx"],"sourcesContent":["import { notFound } from '../not-found'\n\nexport const PARALLEL_ROUTE_DEFAULT_PATH =\n 'next/dist/client/components/builtin/default.js'\n\nexport default function ParallelRouteDefault() {\n notFound()\n}\n"],"names":["PARALLEL_ROUTE_DEFAULT_PATH","ParallelRouteDefault","notFound"],"mappings":";;;;;;;;;;;;;;;IAEaA,2BAA2B;eAA3BA;;IAGb,OAEC;eAFuBC;;;0BALC;AAElB,MAAMD,8BACX;AAEa,SAASC;IACtBC,IAAAA,kBAAQ;AACV","ignoreList":[0]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export default function Empty(): null;
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return Empty;
|
||||
}
|
||||
});
|
||||
function Empty() {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=empty-stub.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/empty-stub.tsx"],"sourcesContent":["export default function Empty() {\n return null\n}\n"],"names":["Empty"],"mappings":";;;;+BAAA;;;eAAwBA;;;AAAT,SAASA;IACtB,OAAO;AACT","ignoreList":[0]}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
export declare const errorStyles: {
|
||||
readonly container: {
|
||||
readonly fontFamily: "system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"";
|
||||
readonly height: "100vh";
|
||||
readonly display: "flex";
|
||||
readonly alignItems: "center";
|
||||
readonly justifyContent: "center";
|
||||
};
|
||||
readonly card: {
|
||||
readonly marginTop: "-32px";
|
||||
readonly maxWidth: "325px";
|
||||
readonly padding: "32px 28px";
|
||||
readonly textAlign: "left";
|
||||
};
|
||||
readonly icon: {
|
||||
readonly marginBottom: "24px";
|
||||
};
|
||||
readonly title: {
|
||||
readonly fontSize: "24px";
|
||||
readonly fontWeight: 500;
|
||||
readonly letterSpacing: "-0.02em";
|
||||
readonly lineHeight: "32px";
|
||||
readonly margin: "0 0 12px 0";
|
||||
readonly color: "var(--next-error-title)";
|
||||
};
|
||||
readonly message: {
|
||||
readonly fontSize: "14px";
|
||||
readonly fontWeight: 400;
|
||||
readonly lineHeight: "21px";
|
||||
readonly margin: "0 0 20px 0";
|
||||
readonly color: "var(--next-error-message)";
|
||||
};
|
||||
readonly form: {
|
||||
readonly margin: 0;
|
||||
};
|
||||
readonly buttonGroup: {
|
||||
readonly display: "flex";
|
||||
readonly gap: "8px";
|
||||
readonly alignItems: "center";
|
||||
};
|
||||
readonly button: {
|
||||
readonly display: "inline-flex";
|
||||
readonly alignItems: "center";
|
||||
readonly justifyContent: "center";
|
||||
readonly height: "32px";
|
||||
readonly padding: "0 12px";
|
||||
readonly fontSize: "14px";
|
||||
readonly fontWeight: 500;
|
||||
readonly lineHeight: "20px";
|
||||
readonly borderRadius: "6px";
|
||||
readonly cursor: "pointer";
|
||||
readonly color: "var(--next-error-btn-text)";
|
||||
readonly background: "var(--next-error-btn-bg)";
|
||||
readonly border: "var(--next-error-btn-border)";
|
||||
};
|
||||
readonly buttonSecondary: {
|
||||
readonly display: "inline-flex";
|
||||
readonly alignItems: "center";
|
||||
readonly justifyContent: "center";
|
||||
readonly height: "32px";
|
||||
readonly padding: "0 12px";
|
||||
readonly fontSize: "14px";
|
||||
readonly fontWeight: 500;
|
||||
readonly lineHeight: "20px";
|
||||
readonly borderRadius: "6px";
|
||||
readonly cursor: "pointer";
|
||||
readonly color: "var(--next-error-btn-secondary-text)";
|
||||
readonly background: "var(--next-error-btn-secondary-bg)";
|
||||
readonly border: "var(--next-error-btn-secondary-border)";
|
||||
};
|
||||
readonly digestFooter: {
|
||||
readonly position: "fixed";
|
||||
readonly bottom: "32px";
|
||||
readonly left: "0";
|
||||
readonly right: "0";
|
||||
readonly textAlign: "center";
|
||||
readonly fontFamily: "ui-monospace,SFMono-Regular,\"SF Mono\",Menlo,Consolas,monospace";
|
||||
readonly fontSize: "12px";
|
||||
readonly lineHeight: "18px";
|
||||
readonly fontWeight: 400;
|
||||
readonly margin: "0";
|
||||
readonly color: "var(--next-error-digest)";
|
||||
};
|
||||
};
|
||||
export declare const errorThemeCss: string;
|
||||
export declare function WarningIcon(): import("react/jsx-runtime").JSX.Element;
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
WarningIcon: null,
|
||||
errorStyles: null,
|
||||
errorThemeCss: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
WarningIcon: function() {
|
||||
return WarningIcon;
|
||||
},
|
||||
errorStyles: function() {
|
||||
return errorStyles;
|
||||
},
|
||||
errorThemeCss: function() {
|
||||
return errorThemeCss;
|
||||
}
|
||||
});
|
||||
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
||||
const _jsxruntime = require("react/jsx-runtime");
|
||||
const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
||||
const errorStyles = {
|
||||
container: {
|
||||
fontFamily: 'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
|
||||
height: '100vh',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center'
|
||||
},
|
||||
card: {
|
||||
marginTop: '-32px',
|
||||
maxWidth: '325px',
|
||||
padding: '32px 28px',
|
||||
textAlign: 'left'
|
||||
},
|
||||
icon: {
|
||||
marginBottom: '24px'
|
||||
},
|
||||
title: {
|
||||
fontSize: '24px',
|
||||
fontWeight: 500,
|
||||
letterSpacing: '-0.02em',
|
||||
lineHeight: '32px',
|
||||
margin: '0 0 12px 0',
|
||||
color: 'var(--next-error-title)'
|
||||
},
|
||||
message: {
|
||||
fontSize: '14px',
|
||||
fontWeight: 400,
|
||||
lineHeight: '21px',
|
||||
margin: '0 0 20px 0',
|
||||
color: 'var(--next-error-message)'
|
||||
},
|
||||
form: {
|
||||
margin: 0
|
||||
},
|
||||
buttonGroup: {
|
||||
display: 'flex',
|
||||
gap: '8px',
|
||||
alignItems: 'center'
|
||||
},
|
||||
button: {
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
height: '32px',
|
||||
padding: '0 12px',
|
||||
fontSize: '14px',
|
||||
fontWeight: 500,
|
||||
lineHeight: '20px',
|
||||
borderRadius: '6px',
|
||||
cursor: 'pointer',
|
||||
color: 'var(--next-error-btn-text)',
|
||||
background: 'var(--next-error-btn-bg)',
|
||||
border: 'var(--next-error-btn-border)'
|
||||
},
|
||||
buttonSecondary: {
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
height: '32px',
|
||||
padding: '0 12px',
|
||||
fontSize: '14px',
|
||||
fontWeight: 500,
|
||||
lineHeight: '20px',
|
||||
borderRadius: '6px',
|
||||
cursor: 'pointer',
|
||||
color: 'var(--next-error-btn-secondary-text)',
|
||||
background: 'var(--next-error-btn-secondary-bg)',
|
||||
border: 'var(--next-error-btn-secondary-border)'
|
||||
},
|
||||
digestFooter: {
|
||||
position: 'fixed',
|
||||
bottom: '32px',
|
||||
left: '0',
|
||||
right: '0',
|
||||
textAlign: 'center',
|
||||
fontFamily: 'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',
|
||||
fontSize: '12px',
|
||||
lineHeight: '18px',
|
||||
fontWeight: 400,
|
||||
margin: '0',
|
||||
color: 'var(--next-error-digest)'
|
||||
}
|
||||
};
|
||||
const errorThemeCss = `
|
||||
:root {
|
||||
--next-error-bg: #fff;
|
||||
--next-error-text: #171717;
|
||||
--next-error-title: #171717;
|
||||
--next-error-message: #171717;
|
||||
--next-error-digest: #666666;
|
||||
--next-error-btn-text: #fff;
|
||||
--next-error-btn-bg: #171717;
|
||||
--next-error-btn-border: none;
|
||||
--next-error-btn-secondary-text: #171717;
|
||||
--next-error-btn-secondary-bg: transparent;
|
||||
--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--next-error-bg: #0a0a0a;
|
||||
--next-error-text: #ededed;
|
||||
--next-error-title: #ededed;
|
||||
--next-error-message: #ededed;
|
||||
--next-error-digest: #a0a0a0;
|
||||
--next-error-btn-text: #0a0a0a;
|
||||
--next-error-btn-bg: #ededed;
|
||||
--next-error-btn-border: none;
|
||||
--next-error-btn-secondary-text: #ededed;
|
||||
--next-error-btn-secondary-bg: transparent;
|
||||
--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
|
||||
}
|
||||
}
|
||||
body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
|
||||
`.replace(/\n\s*/g, '');
|
||||
function WarningIcon() {
|
||||
return /*#__PURE__*/ (0, _jsxruntime.jsx)("svg", {
|
||||
width: "32",
|
||||
height: "32",
|
||||
viewBox: "-0.2 -1.5 32 32",
|
||||
fill: "none",
|
||||
style: errorStyles.icon,
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("path", {
|
||||
d: "M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",
|
||||
fill: "var(--next-error-title)"
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=error-styles.js.map
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
export default function Forbidden(): import("react/jsx-runtime").JSX.Element;
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return Forbidden;
|
||||
}
|
||||
});
|
||||
const _jsxruntime = require("react/jsx-runtime");
|
||||
const _errorfallback = require("../http-access-fallback/error-fallback");
|
||||
function Forbidden() {
|
||||
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_errorfallback.HTTPAccessErrorFallback, {
|
||||
status: 403,
|
||||
message: "This page could not be accessed."
|
||||
});
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=forbidden.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/forbidden.tsx"],"sourcesContent":["import { HTTPAccessErrorFallback } from '../http-access-fallback/error-fallback'\n\nexport default function Forbidden() {\n return (\n <HTTPAccessErrorFallback\n status={403}\n message=\"This page could not be accessed.\"\n />\n )\n}\n"],"names":["Forbidden","HTTPAccessErrorFallback","status","message"],"mappings":";;;;+BAEA;;;eAAwBA;;;;+BAFgB;AAEzB,SAASA;IACtB,qBACE,qBAACC,sCAAuB;QACtBC,QAAQ;QACRC,SAAQ;;AAGd","ignoreList":[0]}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
export type GlobalErrorComponent = React.ComponentType<{
|
||||
error: any;
|
||||
reset: () => void;
|
||||
unstable_retry: () => void;
|
||||
}>;
|
||||
declare function DefaultGlobalError({ error }: {
|
||||
error: any;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
export default DefaultGlobalError;
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
'use client';
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, // Exported so that the import signature in the loaders can be identical to user
|
||||
// supplied custom global error signatures.
|
||||
"default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _default;
|
||||
}
|
||||
});
|
||||
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
||||
const _jsxruntime = require("react/jsx-runtime");
|
||||
const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
||||
const _handleisrerror = require("../handle-isr-error");
|
||||
const _errorstyles = require("./error-styles");
|
||||
function DefaultGlobalError({ error }) {
|
||||
const digest = error?.digest;
|
||||
const isServerError = !!digest;
|
||||
const message = isServerError ? 'A server error occurred. Reload to try again.' : 'Reload to try again, or go back.';
|
||||
(0, _handleisrerror.handleISRError)({
|
||||
error
|
||||
});
|
||||
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("html", {
|
||||
id: "__next_error__",
|
||||
children: [
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("head", {
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
|
||||
dangerouslySetInnerHTML: {
|
||||
__html: _errorstyles.errorThemeCss
|
||||
}
|
||||
})
|
||||
}),
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsxs)("body", {
|
||||
children: [
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
||||
style: _errorstyles.errorStyles.container,
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
||||
style: _errorstyles.errorStyles.card,
|
||||
children: [
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)(_errorstyles.WarningIcon, {}),
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("h1", {
|
||||
style: _errorstyles.errorStyles.title,
|
||||
children: "This page couldn’t load"
|
||||
}),
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("p", {
|
||||
style: _errorstyles.errorStyles.message,
|
||||
children: message
|
||||
}),
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
||||
style: _errorstyles.errorStyles.buttonGroup,
|
||||
children: [
|
||||
/*#__PURE__*/ (0, _jsxruntime.jsx)("form", {
|
||||
style: _errorstyles.errorStyles.form,
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
||||
type: "submit",
|
||||
style: _errorstyles.errorStyles.button,
|
||||
children: "Reload"
|
||||
})
|
||||
}),
|
||||
!isServerError && /*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
||||
type: "button",
|
||||
style: _errorstyles.errorStyles.buttonSecondary,
|
||||
onClick: ()=>{
|
||||
if (window.history.length > 1) {
|
||||
window.history.back();
|
||||
} else {
|
||||
window.location.href = '/';
|
||||
}
|
||||
},
|
||||
children: "Back"
|
||||
})
|
||||
]
|
||||
})
|
||||
]
|
||||
})
|
||||
}),
|
||||
digest && /*#__PURE__*/ (0, _jsxruntime.jsxs)("p", {
|
||||
style: _errorstyles.errorStyles.digestFooter,
|
||||
children: [
|
||||
"ERROR ",
|
||||
digest
|
||||
]
|
||||
})
|
||||
]
|
||||
})
|
||||
]
|
||||
});
|
||||
}
|
||||
const _default = DefaultGlobalError;
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=global-error.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/global-error.tsx"],"sourcesContent":["'use client'\n\nimport React from 'react'\nimport { handleISRError } from '../handle-isr-error'\nimport { errorStyles, errorThemeCss, WarningIcon } from './error-styles'\n\nexport type GlobalErrorComponent = React.ComponentType<{\n error: any\n reset: () => void\n unstable_retry: () => void\n}>\n\nfunction DefaultGlobalError({ error }: { error: any }) {\n const digest: string | undefined = error?.digest\n const isServerError = !!digest\n\n const message = isServerError\n ? 'A server error occurred. Reload to try again.'\n : 'Reload to try again, or go back.'\n\n handleISRError({ error })\n\n return (\n <html id=\"__next_error__\">\n <head>\n <style dangerouslySetInnerHTML={{ __html: errorThemeCss }} />\n </head>\n <body>\n <div style={errorStyles.container}>\n <div style={errorStyles.card}>\n <WarningIcon />\n <h1 style={errorStyles.title}>This page couldn’t load</h1>\n <p style={errorStyles.message}>{message}</p>\n <div style={errorStyles.buttonGroup}>\n <form style={errorStyles.form}>\n <button type=\"submit\" style={errorStyles.button}>\n Reload\n </button>\n </form>\n {!isServerError && (\n <button\n type=\"button\"\n style={errorStyles.buttonSecondary}\n onClick={() => {\n if (window.history.length > 1) {\n window.history.back()\n } else {\n window.location.href = '/'\n }\n }}\n >\n Back\n </button>\n )}\n </div>\n </div>\n </div>\n {digest && <p style={errorStyles.digestFooter}>ERROR {digest}</p>}\n </body>\n </html>\n )\n}\n\n// Exported so that the import signature in the loaders can be identical to user\n// supplied custom global error signatures.\nexport default DefaultGlobalError\n"],"names":["DefaultGlobalError","error","digest","isServerError","message","handleISRError","html","id","head","style","dangerouslySetInnerHTML","__html","errorThemeCss","body","div","errorStyles","container","card","WarningIcon","h1","title","p","buttonGroup","form","button","type","buttonSecondary","onClick","window","history","length","back","location","href","digestFooter"],"mappings":"AAAA;;;;;+BA+DA,gFAAgF;AAChF,2CAA2C;AAC3C;;;eAAA;;;;;gEA/DkB;gCACa;6BACyB;AAQxD,SAASA,mBAAmB,EAAEC,KAAK,EAAkB;IACnD,MAAMC,SAA6BD,OAAOC;IAC1C,MAAMC,gBAAgB,CAAC,CAACD;IAExB,MAAME,UAAUD,gBACZ,kDACA;IAEJE,IAAAA,8BAAc,EAAC;QAAEJ;IAAM;IAEvB,qBACE,sBAACK;QAAKC,IAAG;;0BACP,qBAACC;0BACC,cAAA,qBAACC;oBAAMC,yBAAyB;wBAAEC,QAAQC,0BAAa;oBAAC;;;0BAE1D,sBAACC;;kCACC,qBAACC;wBAAIL,OAAOM,wBAAW,CAACC,SAAS;kCAC/B,cAAA,sBAACF;4BAAIL,OAAOM,wBAAW,CAACE,IAAI;;8CAC1B,qBAACC,wBAAW;8CACZ,qBAACC;oCAAGV,OAAOM,wBAAW,CAACK,KAAK;8CAAE;;8CAC9B,qBAACC;oCAAEZ,OAAOM,wBAAW,CAACX,OAAO;8CAAGA;;8CAChC,sBAACU;oCAAIL,OAAOM,wBAAW,CAACO,WAAW;;sDACjC,qBAACC;4CAAKd,OAAOM,wBAAW,CAACQ,IAAI;sDAC3B,cAAA,qBAACC;gDAAOC,MAAK;gDAAShB,OAAOM,wBAAW,CAACS,MAAM;0DAAE;;;wCAIlD,CAACrB,+BACA,qBAACqB;4CACCC,MAAK;4CACLhB,OAAOM,wBAAW,CAACW,eAAe;4CAClCC,SAAS;gDACP,IAAIC,OAAOC,OAAO,CAACC,MAAM,GAAG,GAAG;oDAC7BF,OAAOC,OAAO,CAACE,IAAI;gDACrB,OAAO;oDACLH,OAAOI,QAAQ,CAACC,IAAI,GAAG;gDACzB;4CACF;sDACD;;;;;;;oBAOR/B,wBAAU,sBAACmB;wBAAEZ,OAAOM,wBAAW,CAACmB,YAAY;;4BAAE;4BAAOhC;;;;;;;AAI9D;MAIA,WAAeF","ignoreList":[0]}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
declare function GlobalNotFound(): import("react/jsx-runtime").JSX.Element;
|
||||
export default GlobalNotFound;
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _default;
|
||||
}
|
||||
});
|
||||
const _jsxruntime = require("react/jsx-runtime");
|
||||
const _errorfallback = require("../http-access-fallback/error-fallback");
|
||||
function GlobalNotFound() {
|
||||
return /*#__PURE__*/ (0, _jsxruntime.jsx)("html", {
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("body", {
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_errorfallback.HTTPAccessErrorFallback, {
|
||||
status: 404,
|
||||
message: 'This page could not be found.'
|
||||
})
|
||||
})
|
||||
});
|
||||
}
|
||||
const _default = GlobalNotFound;
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=global-not-found.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/global-not-found.tsx"],"sourcesContent":["import { HTTPAccessErrorFallback } from '../http-access-fallback/error-fallback'\n\nfunction GlobalNotFound() {\n return (\n <html>\n <body>\n <HTTPAccessErrorFallback\n status={404}\n message={'This page could not be found.'}\n />\n </body>\n </html>\n )\n}\n\nexport default GlobalNotFound\n"],"names":["GlobalNotFound","html","body","HTTPAccessErrorFallback","status","message"],"mappings":";;;;+BAeA;;;eAAA;;;;+BAfwC;AAExC,SAASA;IACP,qBACE,qBAACC;kBACC,cAAA,qBAACC;sBACC,cAAA,qBAACC,sCAAuB;gBACtBC,QAAQ;gBACRC,SAAS;;;;AAKnB;MAEA,WAAeL","ignoreList":[0]}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import React from 'react';
|
||||
export default function DefaultLayout({ children, }: {
|
||||
children: React.ReactNode;
|
||||
}): import("react/jsx-runtime").JSX.Element;
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return DefaultLayout;
|
||||
}
|
||||
});
|
||||
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
||||
const _jsxruntime = require("react/jsx-runtime");
|
||||
const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
||||
function DefaultLayout({ children }) {
|
||||
return /*#__PURE__*/ (0, _jsxruntime.jsx)("html", {
|
||||
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("body", {
|
||||
children: children
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=layout.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/layout.tsx"],"sourcesContent":["import React from 'react'\n\nexport default function DefaultLayout({\n children,\n}: {\n children: React.ReactNode\n}) {\n return (\n <html>\n <body>{children}</body>\n </html>\n )\n}\n"],"names":["DefaultLayout","children","html","body"],"mappings":";;;;+BAEA;;;eAAwBA;;;;;gEAFN;AAEH,SAASA,cAAc,EACpCC,QAAQ,EAGT;IACC,qBACE,qBAACC;kBACC,cAAA,qBAACC;sBAAMF;;;AAGb","ignoreList":[0]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export default function NotFound(): import("react/jsx-runtime").JSX.Element;
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return NotFound;
|
||||
}
|
||||
});
|
||||
const _jsxruntime = require("react/jsx-runtime");
|
||||
const _errorfallback = require("../http-access-fallback/error-fallback");
|
||||
function NotFound() {
|
||||
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_errorfallback.HTTPAccessErrorFallback, {
|
||||
status: 404,
|
||||
message: "This page could not be found."
|
||||
});
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=not-found.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/not-found.tsx"],"sourcesContent":["import { HTTPAccessErrorFallback } from '../http-access-fallback/error-fallback'\n\nexport default function NotFound() {\n return (\n <HTTPAccessErrorFallback\n status={404}\n message=\"This page could not be found.\"\n />\n )\n}\n"],"names":["NotFound","HTTPAccessErrorFallback","status","message"],"mappings":";;;;+BAEA;;;eAAwBA;;;;+BAFgB;AAEzB,SAASA;IACtB,qBACE,qBAACC,sCAAuB;QACtBC,QAAQ;QACRC,SAAQ;;AAGd","ignoreList":[0]}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export default function Unauthorized(): import("react/jsx-runtime").JSX.Element;
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return Unauthorized;
|
||||
}
|
||||
});
|
||||
const _jsxruntime = require("react/jsx-runtime");
|
||||
const _errorfallback = require("../http-access-fallback/error-fallback");
|
||||
function Unauthorized() {
|
||||
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_errorfallback.HTTPAccessErrorFallback, {
|
||||
status: 401,
|
||||
message: "You're not authorized to access this page."
|
||||
});
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=unauthorized.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/client/components/builtin/unauthorized.tsx"],"sourcesContent":["import { HTTPAccessErrorFallback } from '../http-access-fallback/error-fallback'\n\nexport default function Unauthorized() {\n return (\n <HTTPAccessErrorFallback\n status={401}\n message=\"You're not authorized to access this page.\"\n />\n )\n}\n"],"names":["Unauthorized","HTTPAccessErrorFallback","status","message"],"mappings":";;;;+BAEA;;;eAAwBA;;;;+BAFgB;AAEzB,SAASA;IACtB,qBACE,qBAACC,sCAAuB;QACtBC,QAAQ;QACRC,SAAQ;;AAGd","ignoreList":[0]}
|
||||
Reference in New Issue
Block a user