arcanajs 2.3.6 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/framework/cli/index.d.ts +0 -1
- package/framework/cli/index.js +0 -204
- package/framework/cli/templates.d.ts +0 -6
- package/framework/cli/templates.js +0 -44
- package/framework/cli/webpack.config.d.ts +0 -3
- package/framework/cli/webpack.config.js +0 -310
- package/framework/lib/client/index.d.ts +0 -34
- package/framework/lib/client/index.js +0 -82
- package/framework/lib/config/index.d.ts +0 -46
- package/framework/lib/config/index.js +0 -115
- package/framework/lib/global.d.ts +0 -58
- package/framework/lib/index.d.ts +0 -19
- package/framework/lib/index.js +0 -59
- package/framework/lib/server/ArcanaJSMiddleware.d.ts +0 -24
- package/framework/lib/server/ArcanaJSMiddleware.js +0 -114
- package/framework/lib/server/ArcanaJSServer.d.ts +0 -23
- package/framework/lib/server/ArcanaJSServer.js +0 -165
- package/framework/lib/server/ControllerBinder.d.ts +0 -4
- package/framework/lib/server/ControllerBinder.js +0 -32
- package/framework/lib/server/CsrfMiddleware.d.ts +0 -2
- package/framework/lib/server/CsrfMiddleware.js +0 -34
- package/framework/lib/server/DynamicRouter.d.ts +0 -2
- package/framework/lib/server/DynamicRouter.js +0 -50
- package/framework/lib/server/ResponseHandlerMiddleware.d.ts +0 -27
- package/framework/lib/server/ResponseHandlerMiddleware.js +0 -30
- package/framework/lib/server/Router.d.ts +0 -94
- package/framework/lib/server/Router.js +0 -203
- package/framework/lib/server/default-index.html +0 -12
- package/framework/lib/server.d.ts +0 -32
- package/framework/lib/server.js +0 -69
- package/framework/lib/shared/components/Body.d.ts +0 -6
- package/framework/lib/shared/components/Body.js +0 -8
- package/framework/lib/shared/components/Head.d.ts +0 -4
- package/framework/lib/shared/components/Head.js +0 -125
- package/framework/lib/shared/components/Link.d.ts +0 -6
- package/framework/lib/shared/components/Link.js +0 -14
- package/framework/lib/shared/components/NavLink.d.ts +0 -8
- package/framework/lib/shared/components/NavLink.js +0 -13
- package/framework/lib/shared/components/Page.d.ts +0 -6
- package/framework/lib/shared/components/Page.js +0 -10
- package/framework/lib/shared/context/HeadContext.d.ts +0 -6
- package/framework/lib/shared/context/HeadContext.js +0 -5
- package/framework/lib/shared/context/PageContext.d.ts +0 -1
- package/framework/lib/shared/context/PageContext.js +0 -5
- package/framework/lib/shared/context/RouterContext.d.ts +0 -13
- package/framework/lib/shared/context/RouterContext.js +0 -10
- package/framework/lib/shared/core/ArcanaJSApp.d.ts +0 -13
- package/framework/lib/shared/core/ArcanaJSApp.js +0 -65
- package/framework/lib/shared/hooks/useHead.d.ts +0 -1
- package/framework/lib/shared/hooks/useHead.js +0 -7
- package/framework/lib/shared/hooks/useLocation.d.ts +0 -5
- package/framework/lib/shared/hooks/useLocation.js +0 -13
- package/framework/lib/shared/hooks/usePage.d.ts +0 -1
- package/framework/lib/shared/hooks/usePage.js +0 -7
- package/framework/lib/shared/hooks/useParams.d.ts +0 -1
- package/framework/lib/shared/hooks/useParams.js +0 -13
- package/framework/lib/shared/hooks/useQuery.d.ts +0 -1
- package/framework/lib/shared/hooks/useQuery.js +0 -9
- package/framework/lib/shared/hooks/useRouter.d.ts +0 -1
- package/framework/lib/shared/hooks/useRouter.js +0 -13
- package/framework/lib/shared/utils/createSingletonContext.d.ts +0 -11
- package/framework/lib/shared/utils/createSingletonContext.js +0 -21
- package/framework/lib/shared/views/ErrorPage.d.ts +0 -7
- package/framework/lib/shared/views/ErrorPage.js +0 -12
- package/framework/lib/shared/views/NotFoundPage.d.ts +0 -5
- package/framework/lib/shared/views/NotFoundPage.js +0 -11
- package/framework/lib/types.d.ts +0 -174
- package/framework/lib/types.js +0 -8
- package/framework/templates/ErrorPage.tsx +0 -136
- package/framework/templates/HomePage.tsx +0 -344
- package/framework/templates/NotFoundPage.tsx +0 -108
- package/framework/templates/arcanajs.config.ts +0 -44
- package/framework/templates/arcanajs.d.ts +0 -8
- package/framework/templates/arcanajs.png +0 -0
- package/framework/templates/arcanajs.svg +0 -12
- package/framework/templates/client-index.tsx +0 -7
- package/framework/templates/favicon.ico +0 -0
- package/framework/templates/globals.css +0 -198
- package/framework/templates/package.json +0 -15
- package/framework/templates/postcss.config.js +0 -6
- package/framework/templates/server-controller-home.ts +0 -7
- package/framework/templates/server-index.ts +0 -11
- package/framework/templates/server-routes-web.ts +0 -7
- package/framework/templates/tsconfig.json +0 -27
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = NotFoundPage;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const Body_1 = require("../components/Body");
|
|
6
|
-
const Head_1 = require("../components/Head");
|
|
7
|
-
const Link_1 = require("../components/Link");
|
|
8
|
-
const Page_1 = require("../components/Page");
|
|
9
|
-
function NotFoundPage({ url }) {
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(Page_1.Page, { children: [(0, jsx_runtime_1.jsxs)(Head_1.Head, { children: [(0, jsx_runtime_1.jsx)("title", { children: "404 - Page Not Found" }), (0, jsx_runtime_1.jsx)("meta", { name: "description", content: "The page you're looking for doesn't exist" })] }), (0, jsx_runtime_1.jsx)(Body_1.Body, { children: (0, jsx_runtime_1.jsxs)("div", { className: "relative min-h-screen overflow-hidden bg-black text-white flex flex-col justify-center items-center px-4 font-sans", children: [(0, jsx_runtime_1.jsxs)("div", { className: "fixed inset-0 z-0 overflow-hidden pointer-events-none", children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 grid-pattern opacity-30" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute top-1/4 left-1/4 w-96 h-96 bg-orange-500 rounded-full opacity-20 blur-3xl animate-glow" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute bottom-1/4 right-1/4 w-96 h-96 bg-purple-500 rounded-full opacity-10 blur-3xl animate-glow", style: { animationDelay: "2s" } }), (0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 hero-gradient" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "relative z-10 max-w-lg w-full text-center animate-scale-in", children: [(0, jsx_runtime_1.jsxs)("div", { className: "glass-card rounded-3xl p-12 border border-white/10 shadow-2xl", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mb-8", children: [(0, jsx_runtime_1.jsx)("h1", { className: "text-9xl font-bold text-transparent bg-clip-text bg-gradient-to-br from-white to-gray-500 mb-4 animate-float", children: "404" }), (0, jsx_runtime_1.jsx)("h2", { className: "text-3xl font-bold text-white mb-4", children: "Page Not Found" }), (0, jsx_runtime_1.jsx)("p", { className: "text-gray-400 text-lg leading-relaxed", children: url ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["The page ", (0, jsx_runtime_1.jsxs)("span", { className: "text-orange-400", children: ["\"", url, "\""] }), " ", "you're looking for doesn't exist."] })) : ("The page you're looking for doesn't exist.") })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:flex-row gap-4 justify-center", children: [(0, jsx_runtime_1.jsxs)(Link_1.Link, { href: "/", className: "btn-primary px-8 py-3.5 text-white font-semibold rounded-xl inline-flex items-center justify-center gap-2 w-full sm:w-auto", children: [(0, jsx_runtime_1.jsx)("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" }) }), "Go Home"] }), (0, jsx_runtime_1.jsxs)("button", { onClick: () => window.history.back(), className: "btn-secondary px-8 py-3.5 text-white font-semibold rounded-xl inline-flex items-center justify-center gap-2 w-full sm:w-auto", children: [(0, jsx_runtime_1.jsx)("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 19l-7-7m0 0l7-7m-7 7h18" }) }), "Go Back"] })] })] }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-8 text-gray-500 text-sm", children: ["If you believe this is an error, please", " ", (0, jsx_runtime_1.jsx)(Link_1.Link, { href: "/contact", className: "text-orange-400 hover:text-orange-300 underline transition-colors", children: "contact support" }), "."] })] })] }) })] }));
|
|
11
|
-
}
|
package/framework/lib/types.d.ts
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ArcanaJS Framework - Centralized Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* This file exports all public TypeScript types and interfaces
|
|
5
|
-
* for the ArcanaJS framework.
|
|
6
|
-
*/
|
|
7
|
-
export type { ArcanaJSConfig } from "./server/ArcanaJSServer";
|
|
8
|
-
export type { ArcanaJSAppProps } from "./shared/core/ArcanaJSApp";
|
|
9
|
-
export type { HeadManager } from "./shared/context/HeadContext";
|
|
10
|
-
export type { RouterContextType } from "./shared/context/RouterContext";
|
|
11
|
-
import type React from "react";
|
|
12
|
-
/**
|
|
13
|
-
* Props for the Page component
|
|
14
|
-
*/
|
|
15
|
-
export interface PageProps {
|
|
16
|
-
data?: any;
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Props for the Head component
|
|
21
|
-
*/
|
|
22
|
-
export interface HeadProps {
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Props for the Body component
|
|
27
|
-
*/
|
|
28
|
-
export interface BodyProps {
|
|
29
|
-
children?: React.ReactNode;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Props for the Link component
|
|
33
|
-
*/
|
|
34
|
-
export interface LinkProps {
|
|
35
|
-
to: string;
|
|
36
|
-
children?: React.ReactNode;
|
|
37
|
-
className?: string;
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Props for the NavLink component
|
|
42
|
-
*/
|
|
43
|
-
export interface NavLinkProps extends LinkProps {
|
|
44
|
-
activeClassName?: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Return type for useRouter hook
|
|
48
|
-
*/
|
|
49
|
-
export interface UseRouterReturn {
|
|
50
|
-
navigateTo: (url: string) => void;
|
|
51
|
-
currentPage: string;
|
|
52
|
-
currentUrl: string;
|
|
53
|
-
params: Record<string, string>;
|
|
54
|
-
csrfToken?: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Return type for useParams hook
|
|
58
|
-
*/
|
|
59
|
-
export type UseParamsReturn = Record<string, string>;
|
|
60
|
-
/**
|
|
61
|
-
* Return type for useLocation hook
|
|
62
|
-
*/
|
|
63
|
-
export interface UseLocationReturn {
|
|
64
|
-
pathname: string;
|
|
65
|
-
search: string;
|
|
66
|
-
hash: string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Return type for useQuery hook
|
|
70
|
-
*/
|
|
71
|
-
export type UseQueryReturn = URLSearchParams;
|
|
72
|
-
/**
|
|
73
|
-
* Return type for usePage hook
|
|
74
|
-
*/
|
|
75
|
-
export type UsePageReturn = any;
|
|
76
|
-
/**
|
|
77
|
-
* Return type for useHead hook
|
|
78
|
-
*/
|
|
79
|
-
export interface UseHeadReturn {
|
|
80
|
-
push: (tags: React.ReactNode) => void;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* View component type - a React functional component that can receive data and params
|
|
84
|
-
*/
|
|
85
|
-
export type ViewComponent<T = any> = React.FC<{
|
|
86
|
-
data?: T;
|
|
87
|
-
params?: Record<string, string>;
|
|
88
|
-
navigateTo?: (url: string) => void;
|
|
89
|
-
}>;
|
|
90
|
-
/**
|
|
91
|
-
* Views registry - maps view names to view components
|
|
92
|
-
*/
|
|
93
|
-
export type ViewsRegistry = Record<string, React.FC<any>>;
|
|
94
|
-
/**
|
|
95
|
-
* Layout component type
|
|
96
|
-
*/
|
|
97
|
-
export type LayoutComponent = React.FC<{
|
|
98
|
-
children: React.ReactNode;
|
|
99
|
-
}>;
|
|
100
|
-
import type { RequestHandler } from "express";
|
|
101
|
-
/**
|
|
102
|
-
* Controller class type
|
|
103
|
-
*/
|
|
104
|
-
export type ControllerClass = new (...args: any[]) => any;
|
|
105
|
-
/**
|
|
106
|
-
* Route action - can be a handler function or a controller/method pair
|
|
107
|
-
*/
|
|
108
|
-
export type RouteAction = RequestHandler | [ControllerClass, string];
|
|
109
|
-
/**
|
|
110
|
-
* User-facing configuration for ArcanaJS
|
|
111
|
-
*/
|
|
112
|
-
export interface ArcanaJSUserConfig {
|
|
113
|
-
/**
|
|
114
|
-
* Server configuration
|
|
115
|
-
*/
|
|
116
|
-
server?: {
|
|
117
|
-
/**
|
|
118
|
-
* Port to run the server on
|
|
119
|
-
* @default 3000
|
|
120
|
-
*/
|
|
121
|
-
port?: number | string;
|
|
122
|
-
/**
|
|
123
|
-
* Static files directory
|
|
124
|
-
* @default "public"
|
|
125
|
-
*/
|
|
126
|
-
staticDir?: string;
|
|
127
|
-
/**
|
|
128
|
-
* Distribution directory for built assets
|
|
129
|
-
* @default "dist/public"
|
|
130
|
-
*/
|
|
131
|
-
distDir?: string;
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Build configuration
|
|
135
|
-
*/
|
|
136
|
-
build?: {
|
|
137
|
-
/**
|
|
138
|
-
* Output directory for build
|
|
139
|
-
* @default "dist"
|
|
140
|
-
*/
|
|
141
|
-
outDir?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Enable source maps
|
|
144
|
-
* @default true in development, false in production
|
|
145
|
-
*/
|
|
146
|
-
sourcemap?: boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Enable minification
|
|
149
|
-
* @default true in production, false in development
|
|
150
|
-
*/
|
|
151
|
-
minify?: boolean;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* Views configuration
|
|
155
|
-
*/
|
|
156
|
-
views?: {
|
|
157
|
-
/**
|
|
158
|
-
* Directory containing view files
|
|
159
|
-
* @default "src/views"
|
|
160
|
-
*/
|
|
161
|
-
dir?: string;
|
|
162
|
-
/**
|
|
163
|
-
* Custom layout component
|
|
164
|
-
*/
|
|
165
|
-
layout?: LayoutComponent;
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Resolved internal configuration
|
|
170
|
-
*/
|
|
171
|
-
export interface ResolvedArcanaJSConfig extends Required<ArcanaJSUserConfig> {
|
|
172
|
-
root: string;
|
|
173
|
-
mode: "development" | "production";
|
|
174
|
-
}
|
package/framework/lib/types.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { Body, Head, Link, Page } from "arcanajs";
|
|
2
|
-
|
|
3
|
-
interface ErrorPageProps {
|
|
4
|
-
message?: string;
|
|
5
|
-
statusCode?: number;
|
|
6
|
-
stack?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export default function ErrorPage({
|
|
10
|
-
message = "Something went wrong",
|
|
11
|
-
statusCode = 500,
|
|
12
|
-
stack,
|
|
13
|
-
}: ErrorPageProps) {
|
|
14
|
-
const isDevelopment = process.env.NODE_ENV === "development";
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<Page>
|
|
18
|
-
<Head>
|
|
19
|
-
<title>{statusCode} - Server Error</title>
|
|
20
|
-
<meta name="description" content="An error occurred on the server" />
|
|
21
|
-
</Head>
|
|
22
|
-
<Body>
|
|
23
|
-
<div className="relative min-h-screen overflow-hidden bg-black text-white flex flex-col justify-center items-center px-4 font-sans">
|
|
24
|
-
{/* Animated Background */}
|
|
25
|
-
<div className="fixed inset-0 z-0 overflow-hidden pointer-events-none">
|
|
26
|
-
<div className="absolute inset-0 grid-pattern opacity-30"></div>
|
|
27
|
-
<div className="absolute top-1/4 right-1/4 w-96 h-96 bg-red-600 rounded-full opacity-20 blur-3xl animate-glow"></div>
|
|
28
|
-
<div
|
|
29
|
-
className="absolute bottom-1/4 left-1/4 w-96 h-96 bg-orange-600 rounded-full opacity-10 blur-3xl animate-glow"
|
|
30
|
-
style={{ animationDelay: "2s" }}
|
|
31
|
-
></div>
|
|
32
|
-
<div className="absolute inset-0 hero-gradient"></div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<div className="relative z-10 max-w-2xl w-full text-center animate-scale-in">
|
|
36
|
-
<div className="glass-card rounded-3xl p-12 border border-white/10 shadow-2xl">
|
|
37
|
-
<div className="mb-8">
|
|
38
|
-
<div className="text-6xl mb-6 animate-float">
|
|
39
|
-
<span className="text-red-500 drop-shadow-lg filter">⚠️</span>
|
|
40
|
-
</div>
|
|
41
|
-
<h1 className="text-8xl font-bold text-transparent bg-clip-text bg-gradient-to-br from-red-500 to-orange-500 mb-4">
|
|
42
|
-
{statusCode}
|
|
43
|
-
</h1>
|
|
44
|
-
<h2 className="text-3xl font-bold text-white mb-4">
|
|
45
|
-
Server Error
|
|
46
|
-
</h2>
|
|
47
|
-
<p className="text-gray-400 text-lg leading-relaxed">
|
|
48
|
-
{message}
|
|
49
|
-
</p>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<div className="flex flex-col sm:flex-row gap-4 justify-center mb-8">
|
|
53
|
-
<Link
|
|
54
|
-
href="/"
|
|
55
|
-
className="btn-primary px-8 py-3.5 text-white font-semibold rounded-xl inline-flex items-center justify-center gap-2 w-full sm:w-auto bg-gradient-to-r from-red-600 to-orange-600 hover:from-red-500 hover:to-orange-500 border-none shadow-red-900/20"
|
|
56
|
-
>
|
|
57
|
-
<svg
|
|
58
|
-
className="w-5 h-5"
|
|
59
|
-
fill="none"
|
|
60
|
-
stroke="currentColor"
|
|
61
|
-
viewBox="0 0 24 24"
|
|
62
|
-
>
|
|
63
|
-
<path
|
|
64
|
-
strokeLinecap="round"
|
|
65
|
-
strokeLinejoin="round"
|
|
66
|
-
strokeWidth={2}
|
|
67
|
-
d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"
|
|
68
|
-
/>
|
|
69
|
-
</svg>
|
|
70
|
-
Go Home
|
|
71
|
-
</Link>
|
|
72
|
-
|
|
73
|
-
<button
|
|
74
|
-
onClick={() => window.location.reload()}
|
|
75
|
-
className="btn-secondary px-8 py-3.5 text-white font-semibold rounded-xl inline-flex items-center justify-center gap-2 w-full sm:w-auto"
|
|
76
|
-
>
|
|
77
|
-
<svg
|
|
78
|
-
className="w-5 h-5"
|
|
79
|
-
fill="none"
|
|
80
|
-
stroke="currentColor"
|
|
81
|
-
viewBox="0 0 24 24"
|
|
82
|
-
>
|
|
83
|
-
<path
|
|
84
|
-
strokeLinecap="round"
|
|
85
|
-
strokeLinejoin="round"
|
|
86
|
-
strokeWidth={2}
|
|
87
|
-
d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
|
|
88
|
-
/>
|
|
89
|
-
</svg>
|
|
90
|
-
Try Again
|
|
91
|
-
</button>
|
|
92
|
-
</div>
|
|
93
|
-
|
|
94
|
-
{isDevelopment && stack && (
|
|
95
|
-
<div className="mt-8 text-left animate-slide-up">
|
|
96
|
-
<details className="bg-black/40 border border-white/10 rounded-xl overflow-hidden group">
|
|
97
|
-
<summary className="cursor-pointer font-medium text-gray-300 p-4 hover:bg-white/5 transition-colors flex items-center justify-between select-none">
|
|
98
|
-
<span>Stack Trace (Development Only)</span>
|
|
99
|
-
<svg
|
|
100
|
-
className="w-5 h-5 text-gray-500 group-open:rotate-180 transition-transform"
|
|
101
|
-
fill="none"
|
|
102
|
-
stroke="currentColor"
|
|
103
|
-
viewBox="0 0 24 24"
|
|
104
|
-
>
|
|
105
|
-
<path
|
|
106
|
-
strokeLinecap="round"
|
|
107
|
-
strokeLinejoin="round"
|
|
108
|
-
strokeWidth={2}
|
|
109
|
-
d="M19 9l-7 7-7-7"
|
|
110
|
-
/>
|
|
111
|
-
</svg>
|
|
112
|
-
</summary>
|
|
113
|
-
<pre className="text-xs text-red-300/80 p-4 overflow-x-auto whitespace-pre-wrap font-mono border-t border-white/5 bg-black/20">
|
|
114
|
-
{stack}
|
|
115
|
-
</pre>
|
|
116
|
-
</details>
|
|
117
|
-
</div>
|
|
118
|
-
)}
|
|
119
|
-
</div>
|
|
120
|
-
|
|
121
|
-
<div className="mt-8 text-gray-500 text-sm">
|
|
122
|
-
If this problem persists, please{" "}
|
|
123
|
-
<Link
|
|
124
|
-
href="/contact"
|
|
125
|
-
className="text-red-400 hover:text-red-300 underline transition-colors"
|
|
126
|
-
>
|
|
127
|
-
contact support
|
|
128
|
-
</Link>
|
|
129
|
-
.
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</Body>
|
|
134
|
-
</Page>
|
|
135
|
-
);
|
|
136
|
-
}
|