@chaaskit/server 0.1.1 → 0.1.2
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/LICENSE +21 -0
- package/dist/api/admin.js +211 -0
- package/dist/api/admin.js.map +1 -1
- package/dist/api/auth.js +91 -6
- package/dist/api/auth.js.map +1 -1
- package/dist/api/chat.js +51 -3
- package/dist/api/chat.js.map +1 -1
- package/dist/api/config.js +25 -14
- package/dist/api/config.js.map +1 -1
- package/dist/api/credits.js +122 -0
- package/dist/api/credits.js.map +1 -0
- package/dist/api/payments.js +94 -11
- package/dist/api/payments.js.map +1 -1
- package/dist/api/user.js +3 -4
- package/dist/api/user.js.map +1 -1
- package/dist/app.js +15 -6
- package/dist/app.js.map +1 -1
- package/dist/config/loader.js +62 -2
- package/dist/config/loader.js.map +1 -1
- package/dist/extensions/loader.js +1 -0
- package/dist/extensions/loader.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/middleware/apiKeyAuth.js +2 -1
- package/dist/middleware/apiKeyAuth.js.map +1 -1
- package/dist/middleware/auth.js +29 -5
- package/dist/middleware/auth.js.map +1 -1
- package/dist/queue/cli.js +0 -0
- package/dist/secrets/index.js +147 -0
- package/dist/secrets/index.js.map +1 -0
- package/dist/services/credits.js +206 -0
- package/dist/services/credits.js.map +1 -0
- package/dist/services/email/templates.js +116 -0
- package/dist/services/email/templates.js.map +1 -1
- package/dist/services/metering.js +24 -0
- package/dist/services/metering.js.map +1 -0
- package/dist/services/referrals.js +133 -0
- package/dist/services/referrals.js.map +1 -0
- package/dist/services/usage.js +42 -29
- package/dist/services/usage.js.map +1 -1
- package/dist/services/waitlist.js +142 -0
- package/dist/services/waitlist.js.map +1 -0
- package/package.json +26 -12
- package/dist/api/upload.js +0 -57
- package/dist/api/upload.js.map +0 -1
- package/dist/ssr/build.js +0 -90
- package/dist/ssr/build.js.map +0 -1
- package/dist/ssr/components/SSRMessageList.js +0 -120
- package/dist/ssr/components/SSRMessageList.js.map +0 -1
- package/dist/ssr/entry.client.js +0 -8
- package/dist/ssr/entry.client.js.map +0 -1
- package/dist/ssr/entry.server.js +0 -71
- package/dist/ssr/entry.server.js.map +0 -1
- package/dist/ssr/handler.js +0 -51
- package/dist/ssr/handler.js.map +0 -1
- package/dist/ssr/root.js +0 -184
- package/dist/ssr/root.js.map +0 -1
- package/dist/ssr/routes/login.js +0 -140
- package/dist/ssr/routes/login.js.map +0 -1
- package/dist/ssr/routes/pricing.js +0 -195
- package/dist/ssr/routes/pricing.js.map +0 -1
- package/dist/ssr/routes/privacy.js +0 -39
- package/dist/ssr/routes/privacy.js.map +0 -1
- package/dist/ssr/routes/register.js +0 -148
- package/dist/ssr/routes/register.js.map +0 -1
- package/dist/ssr/routes/shared.$shareId.js +0 -153
- package/dist/ssr/routes/shared.$shareId.js.map +0 -1
- package/dist/ssr/routes/terms.js +0 -39
- package/dist/ssr/routes/terms.js.map +0 -1
package/dist/ssr/routes/login.js
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Link, useOutletContext } from '@remix-run/react';
|
|
3
|
-
export const meta = ({ matches }) => {
|
|
4
|
-
// Get config from parent loader
|
|
5
|
-
const parentData = matches.find((m) => m.id === 'root')?.data;
|
|
6
|
-
const appName = parentData?.config?.app?.name || 'AI Chat';
|
|
7
|
-
return [
|
|
8
|
-
{ title: `Sign In - ${appName}` },
|
|
9
|
-
{ name: 'description', content: `Sign in to your ${appName} account` },
|
|
10
|
-
// Prevent indexing of login page
|
|
11
|
-
{ name: 'robots', content: 'noindex, nofollow' },
|
|
12
|
-
];
|
|
13
|
-
};
|
|
14
|
-
export default function LoginPage() {
|
|
15
|
-
const { config } = useOutletContext();
|
|
16
|
-
const hasEmailPassword = config.auth?.methods?.includes('email-password') ?? true;
|
|
17
|
-
const hasMagicLink = config.auth?.magicLink?.enabled ?? false;
|
|
18
|
-
const hasGoogle = config.auth?.methods?.includes('google') ?? false;
|
|
19
|
-
const hasGitHub = config.auth?.methods?.includes('github') ?? false;
|
|
20
|
-
return (_jsx("div", { style: {
|
|
21
|
-
display: 'flex',
|
|
22
|
-
minHeight: '100vh',
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
justifyContent: 'center',
|
|
25
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
26
|
-
padding: '1rem',
|
|
27
|
-
}, children: _jsxs("div", { style: { width: '100%', maxWidth: '28rem' }, children: [_jsxs("div", { style: { marginBottom: '2rem', textAlign: 'center' }, children: [config.ui?.logo && (_jsx("img", { src: typeof config.ui.logo === 'string' ? config.ui.logo : config.ui.logo.light, alt: config.app.name, style: {
|
|
28
|
-
height: '4rem',
|
|
29
|
-
width: '4rem',
|
|
30
|
-
marginLeft: 'auto',
|
|
31
|
-
marginRight: 'auto',
|
|
32
|
-
marginBottom: '1rem',
|
|
33
|
-
borderRadius: '0.5rem',
|
|
34
|
-
objectFit: 'contain',
|
|
35
|
-
} })), _jsx("h1", { style: {
|
|
36
|
-
fontSize: '1.875rem',
|
|
37
|
-
fontWeight: 'bold',
|
|
38
|
-
color: 'rgb(var(--color-text-primary))',
|
|
39
|
-
margin: 0,
|
|
40
|
-
}, children: "Welcome back" }), _jsxs("p", { style: {
|
|
41
|
-
marginTop: '0.5rem',
|
|
42
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
43
|
-
}, children: ["Sign in to ", config.app.name] })] }), (hasGoogle || hasGitHub) && (_jsxs("div", { style: { marginBottom: '1.5rem', display: 'flex', flexDirection: 'column', gap: '0.75rem' }, children: [hasGoogle && (_jsxs("a", { href: "/api/auth/oauth/google", style: {
|
|
44
|
-
display: 'flex',
|
|
45
|
-
width: '100%',
|
|
46
|
-
alignItems: 'center',
|
|
47
|
-
justifyContent: 'center',
|
|
48
|
-
gap: '0.5rem',
|
|
49
|
-
borderRadius: '0.5rem',
|
|
50
|
-
border: '1px solid rgb(var(--color-border))',
|
|
51
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
52
|
-
padding: '0.5rem 1rem',
|
|
53
|
-
color: 'rgb(var(--color-text-primary))',
|
|
54
|
-
textDecoration: 'none',
|
|
55
|
-
}, children: [_jsxs("svg", { style: { height: '1.25rem', width: '1.25rem' }, viewBox: "0 0 24 24", children: [_jsx("path", { fill: "currentColor", d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" }), _jsx("path", { fill: "currentColor", d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }), _jsx("path", { fill: "currentColor", d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }), _jsx("path", { fill: "currentColor", d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" })] }), "Continue with Google"] })), hasGitHub && (_jsxs("a", { href: "/api/auth/oauth/github", style: {
|
|
56
|
-
display: 'flex',
|
|
57
|
-
width: '100%',
|
|
58
|
-
alignItems: 'center',
|
|
59
|
-
justifyContent: 'center',
|
|
60
|
-
gap: '0.5rem',
|
|
61
|
-
borderRadius: '0.5rem',
|
|
62
|
-
border: '1px solid rgb(var(--color-border))',
|
|
63
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
64
|
-
padding: '0.5rem 1rem',
|
|
65
|
-
color: 'rgb(var(--color-text-primary))',
|
|
66
|
-
textDecoration: 'none',
|
|
67
|
-
}, children: [_jsx("svg", { style: { height: '1.25rem', width: '1.25rem' }, viewBox: "0 0 24 24", fill: "currentColor", children: _jsx("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" }) }), "Continue with GitHub"] }))] })), (hasGoogle || hasGitHub) && hasEmailPassword && (_jsxs("div", { style: { position: 'relative', marginBottom: '1.5rem' }, children: [_jsx("div", { style: {
|
|
68
|
-
position: 'absolute',
|
|
69
|
-
inset: 0,
|
|
70
|
-
display: 'flex',
|
|
71
|
-
alignItems: 'center',
|
|
72
|
-
}, children: _jsx("div", { style: {
|
|
73
|
-
width: '100%',
|
|
74
|
-
borderTop: '1px solid rgb(var(--color-border))',
|
|
75
|
-
} }) }), _jsx("div", { style: {
|
|
76
|
-
position: 'relative',
|
|
77
|
-
display: 'flex',
|
|
78
|
-
justifyContent: 'center',
|
|
79
|
-
fontSize: '0.875rem',
|
|
80
|
-
}, children: _jsx("span", { style: {
|
|
81
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
82
|
-
padding: '0 0.5rem',
|
|
83
|
-
color: 'rgb(var(--color-text-muted))',
|
|
84
|
-
}, children: "Or continue with email" }) })] })), hasEmailPassword && (_jsxs("form", { method: "post", action: "/api/auth/login", style: { display: 'flex', flexDirection: 'column', gap: '1rem' }, children: [_jsxs("div", { children: [_jsx("label", { htmlFor: "email", style: {
|
|
85
|
-
display: 'block',
|
|
86
|
-
fontSize: '0.875rem',
|
|
87
|
-
fontWeight: 500,
|
|
88
|
-
color: 'rgb(var(--color-text-primary))',
|
|
89
|
-
}, children: "Email" }), _jsx("input", { type: "email", id: "email", name: "email", required: true, style: {
|
|
90
|
-
marginTop: '0.25rem',
|
|
91
|
-
width: '100%',
|
|
92
|
-
borderRadius: '0.5rem',
|
|
93
|
-
border: '1px solid rgb(var(--color-input-border))',
|
|
94
|
-
backgroundColor: 'rgb(var(--color-input-background))',
|
|
95
|
-
padding: '0.5rem 1rem',
|
|
96
|
-
color: 'rgb(var(--color-text-primary))',
|
|
97
|
-
boxSizing: 'border-box',
|
|
98
|
-
} })] }), _jsxs("div", { children: [_jsx("label", { htmlFor: "password", style: {
|
|
99
|
-
display: 'block',
|
|
100
|
-
fontSize: '0.875rem',
|
|
101
|
-
fontWeight: 500,
|
|
102
|
-
color: 'rgb(var(--color-text-primary))',
|
|
103
|
-
}, children: "Password" }), _jsx("input", { type: "password", id: "password", name: "password", required: true, style: {
|
|
104
|
-
marginTop: '0.25rem',
|
|
105
|
-
width: '100%',
|
|
106
|
-
borderRadius: '0.5rem',
|
|
107
|
-
border: '1px solid rgb(var(--color-input-border))',
|
|
108
|
-
backgroundColor: 'rgb(var(--color-input-background))',
|
|
109
|
-
padding: '0.5rem 1rem',
|
|
110
|
-
color: 'rgb(var(--color-text-primary))',
|
|
111
|
-
boxSizing: 'border-box',
|
|
112
|
-
} })] }), _jsx("button", { type: "submit", style: {
|
|
113
|
-
width: '100%',
|
|
114
|
-
borderRadius: '0.5rem',
|
|
115
|
-
backgroundColor: 'rgb(var(--color-primary))',
|
|
116
|
-
padding: '0.5rem 1rem',
|
|
117
|
-
fontWeight: 500,
|
|
118
|
-
color: 'white',
|
|
119
|
-
border: 'none',
|
|
120
|
-
cursor: 'pointer',
|
|
121
|
-
}, children: "Sign in" })] })), hasMagicLink && hasEmailPassword && (_jsx("button", { type: "button", style: {
|
|
122
|
-
marginTop: '1rem',
|
|
123
|
-
width: '100%',
|
|
124
|
-
textAlign: 'center',
|
|
125
|
-
fontSize: '0.875rem',
|
|
126
|
-
color: 'rgb(var(--color-primary))',
|
|
127
|
-
background: 'none',
|
|
128
|
-
border: 'none',
|
|
129
|
-
cursor: 'pointer',
|
|
130
|
-
}, children: "Sign in with magic link instead" })), _jsxs("p", { style: {
|
|
131
|
-
marginTop: '1.5rem',
|
|
132
|
-
textAlign: 'center',
|
|
133
|
-
fontSize: '0.875rem',
|
|
134
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
135
|
-
}, children: ["Don't have an account?", ' ', _jsx(Link, { to: "/register", style: {
|
|
136
|
-
color: 'rgb(var(--color-primary))',
|
|
137
|
-
textDecoration: 'none',
|
|
138
|
-
}, children: "Sign up" })] })] }) }));
|
|
139
|
-
}
|
|
140
|
-
//# sourceMappingURL=login.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login.js","sourceRoot":"","sources":["../../../src/ssr/routes/login.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,MAAM,CAAC,MAAM,IAAI,GAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IAChD,gCAAgC;IAChC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,IAA4D,CAAC;IACtH,MAAM,OAAO,GAAG,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,IAAI,SAAS,CAAC;IAE3D,OAAO;QACL,EAAE,KAAK,EAAE,aAAa,OAAO,EAAE,EAAE;QACjC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,mBAAmB,OA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AAgC;wCACvC,SAAS,EAAE,YAAY;qCACxB,GACD,IACE,EAEN,iBACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE;gCACL,KAAK,EAAE,MAAM;gCACb,YAAY,EAAE,QAAQ;gCACtB,eAAe,EAAE,2BAA2B;gCAC5C,OAAO,EAAE,aAAa;gCACtB,UAAU,EAAE,GAAG;gCACf,KAAK,EAAE,OAAO;gCACd,MAAM,EAAE,MAAM;gCACd,MAAM,EAAE,SAAS;6BAClB,wBAGM,IACJ,CACR,EAGA,YAAY,IAAI,gBAAgB,IAAI,CACnC,iBACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE;wBACL,SAAS,EAAE,MAAM;wBACjB,KAAK,EAAE,MAAM;wBACb,SAAS,EAAE,QAAQ;wBACnB,QAAQ,EAAE,UAAU;wBACpB,KAAK,EAAE,2BAA2B;wBAClC,UAAU,EAAE,MAAM;wBAClB,MAAM,EAAE,MAAM;wBACd,MAAM,EAAE,SAAS;qBAClB,gDAGM,CACV,EAGD,aACE,KAAK,EAAE;wBACL,SAAS,EAAE,QAAQ;wBACnB,SAAS,EAAE,QAAQ;wBACnB,QAAQ,EAAE,UAAU;wBACpB,KAAK,EAAE,kCAAkC;qBAC1C,uCAEsB,GAAG,EAC1B,KAAC,IAAI,IACH,EAAE,EAAC,WAAW,EACd,KAAK,EAAE;gCACL,KAAK,EAAE,2BAA2B;gCAClC,cAAc,EAAE,MAAM;6BACvB,wBAGI,IACL,IACA,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { json } from '@remix-run/node';
|
|
3
|
-
import { useLoaderData, Link, useOutletContext } from '@remix-run/react';
|
|
4
|
-
import { getConfig } from '../../config/loader.js';
|
|
5
|
-
export const meta = ({ data }) => {
|
|
6
|
-
const appName = data?.appName || 'AI Chat';
|
|
7
|
-
return [
|
|
8
|
-
{ title: `Pricing - ${appName}` },
|
|
9
|
-
{ name: 'description', content: `View pricing plans for ${appName}. Choose the plan that best fits your needs.` },
|
|
10
|
-
// Open Graph
|
|
11
|
-
{ property: 'og:title', content: `Pricing - ${appName}` },
|
|
12
|
-
{ property: 'og:description', content: `View pricing plans for ${appName}` },
|
|
13
|
-
{ property: 'og:type', content: 'website' },
|
|
14
|
-
];
|
|
15
|
-
};
|
|
16
|
-
export async function loader({ request }) {
|
|
17
|
-
const config = getConfig();
|
|
18
|
-
// Convert payment plans from config to Plan format
|
|
19
|
-
const plans = (config.payments?.plans || []).map((plan) => {
|
|
20
|
-
const params = plan.params;
|
|
21
|
-
return {
|
|
22
|
-
id: plan.id,
|
|
23
|
-
name: plan.name,
|
|
24
|
-
description: plan.description,
|
|
25
|
-
type: plan.type,
|
|
26
|
-
scope: plan.scope || 'both',
|
|
27
|
-
priceUSD: params.priceUSD || 0,
|
|
28
|
-
monthlyMessageLimit: params.monthlyMessageLimit,
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
return json({
|
|
32
|
-
plans,
|
|
33
|
-
appName: config.app.name,
|
|
34
|
-
paymentsEnabled: config.payments?.enabled ?? false,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function CheckIcon() {
|
|
38
|
-
return (_jsx("svg", { style: { height: '1rem', width: '1rem', color: 'rgb(var(--color-success))' }, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("polyline", { points: "20,6 9,17 4,12" }) }));
|
|
39
|
-
}
|
|
40
|
-
export default function PricingPage() {
|
|
41
|
-
const { plans, appName, paymentsEnabled } = useLoaderData();
|
|
42
|
-
const { config } = useOutletContext();
|
|
43
|
-
// Filter out credits plans for the main grid
|
|
44
|
-
const displayPlans = plans.filter((plan) => plan.type !== 'credits');
|
|
45
|
-
const hasCreditsPlans = plans.some((plan) => plan.type === 'credits');
|
|
46
|
-
if (!paymentsEnabled) {
|
|
47
|
-
return (_jsx("div", { style: {
|
|
48
|
-
minHeight: '100vh',
|
|
49
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
50
|
-
display: 'flex',
|
|
51
|
-
alignItems: 'center',
|
|
52
|
-
justifyContent: 'center',
|
|
53
|
-
padding: '1rem',
|
|
54
|
-
}, children: _jsxs("div", { style: { textAlign: 'center' }, children: [_jsx("h1", { style: {
|
|
55
|
-
fontSize: '1.5rem',
|
|
56
|
-
fontWeight: 'bold',
|
|
57
|
-
color: 'rgb(var(--color-text-primary))',
|
|
58
|
-
marginBottom: '0.5rem',
|
|
59
|
-
}, children: "Free to Use" }), _jsxs("p", { style: { color: 'rgb(var(--color-text-secondary))', marginBottom: '1.5rem' }, children: [appName, " is currently free to use."] }), _jsx(Link, { to: "/", style: {
|
|
60
|
-
display: 'inline-block',
|
|
61
|
-
backgroundColor: 'rgb(var(--color-primary))',
|
|
62
|
-
color: 'white',
|
|
63
|
-
padding: '0.5rem 1rem',
|
|
64
|
-
borderRadius: '0.5rem',
|
|
65
|
-
textDecoration: 'none',
|
|
66
|
-
}, children: "Get Started" })] }) }));
|
|
67
|
-
}
|
|
68
|
-
return (_jsx("div", { style: {
|
|
69
|
-
minHeight: '100vh',
|
|
70
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
71
|
-
padding: '3rem 1rem',
|
|
72
|
-
}, children: _jsxs("div", { style: { maxWidth: '72rem', marginLeft: 'auto', marginRight: 'auto' }, children: [_jsxs("div", { style: { textAlign: 'center', marginBottom: '3rem' }, children: [_jsx("h1", { style: {
|
|
73
|
-
fontSize: '1.875rem',
|
|
74
|
-
fontWeight: 'bold',
|
|
75
|
-
color: 'rgb(var(--color-text-primary))',
|
|
76
|
-
marginBottom: '1rem',
|
|
77
|
-
}, children: "Choose Your Plan" }), _jsx("p", { style: {
|
|
78
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
79
|
-
maxWidth: '42rem',
|
|
80
|
-
marginLeft: 'auto',
|
|
81
|
-
marginRight: 'auto',
|
|
82
|
-
}, children: "Select the plan that best fits your needs. Upgrade or downgrade anytime." })] }), _jsx("div", { style: {
|
|
83
|
-
display: 'grid',
|
|
84
|
-
gap: '1.5rem',
|
|
85
|
-
gridTemplateColumns: displayPlans.length >= 3 ? 'repeat(auto-fit, minmax(280px, 1fr))' : 'repeat(auto-fit, minmax(300px, 1fr))',
|
|
86
|
-
maxWidth: displayPlans.length === 2 ? '48rem' : undefined,
|
|
87
|
-
marginLeft: 'auto',
|
|
88
|
-
marginRight: 'auto',
|
|
89
|
-
}, children: displayPlans.map((plan) => {
|
|
90
|
-
const isPopular = plan.id === 'pro';
|
|
91
|
-
return (_jsxs("div", { style: {
|
|
92
|
-
borderRadius: '0.75rem',
|
|
93
|
-
border: `1px solid ${isPopular ? 'rgb(var(--color-primary))' : 'rgb(var(--color-border))'}`,
|
|
94
|
-
backgroundColor: isPopular
|
|
95
|
-
? 'rgba(var(--color-primary), 0.05)'
|
|
96
|
-
: 'rgb(var(--color-background-secondary))',
|
|
97
|
-
padding: '1.5rem',
|
|
98
|
-
}, children: [isPopular && (_jsx("div", { style: { display: 'flex', justifyContent: 'flex-end', marginBottom: '0.5rem' }, children: _jsx("span", { style: {
|
|
99
|
-
backgroundColor: 'rgb(var(--color-primary))',
|
|
100
|
-
color: 'white',
|
|
101
|
-
padding: '0.25rem 0.75rem',
|
|
102
|
-
borderRadius: '9999px',
|
|
103
|
-
fontSize: '0.75rem',
|
|
104
|
-
fontWeight: 500,
|
|
105
|
-
}, children: "Popular" }) })), _jsx("h3", { style: {
|
|
106
|
-
fontSize: '1.25rem',
|
|
107
|
-
fontWeight: 'bold',
|
|
108
|
-
color: 'rgb(var(--color-text-primary))',
|
|
109
|
-
margin: 0,
|
|
110
|
-
}, children: plan.name }), _jsxs("div", { style: { marginTop: '0.5rem', display: 'flex', alignItems: 'baseline', gap: '0.25rem' }, children: [_jsxs("span", { style: {
|
|
111
|
-
fontSize: '1.875rem',
|
|
112
|
-
fontWeight: 'bold',
|
|
113
|
-
color: 'rgb(var(--color-text-primary))',
|
|
114
|
-
}, children: ["$", plan.priceUSD] }), plan.type === 'monthly' && (_jsx("span", { style: { color: 'rgb(var(--color-text-muted))' }, children: "/month" }))] }), plan.description && (_jsx("p", { style: {
|
|
115
|
-
marginTop: '0.5rem',
|
|
116
|
-
fontSize: '0.875rem',
|
|
117
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
118
|
-
}, children: plan.description })), _jsxs("ul", { style: { marginTop: '1.5rem', listStyle: 'none', padding: 0 }, children: [_jsxs("li", { style: {
|
|
119
|
-
display: 'flex',
|
|
120
|
-
alignItems: 'flex-start',
|
|
121
|
-
gap: '0.5rem',
|
|
122
|
-
fontSize: '0.875rem',
|
|
123
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
124
|
-
marginBottom: '0.75rem',
|
|
125
|
-
}, children: [_jsx("span", { style: { flexShrink: 0, marginTop: '0.125rem' }, children: _jsx(CheckIcon, {}) }), _jsx("span", { children: plan.monthlyMessageLimit === -1
|
|
126
|
-
? 'Unlimited messages'
|
|
127
|
-
: `${plan.monthlyMessageLimit?.toLocaleString()} messages/month` })] }), plan.type === 'monthly' && (_jsxs("li", { style: {
|
|
128
|
-
display: 'flex',
|
|
129
|
-
alignItems: 'flex-start',
|
|
130
|
-
gap: '0.5rem',
|
|
131
|
-
fontSize: '0.875rem',
|
|
132
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
133
|
-
marginBottom: '0.75rem',
|
|
134
|
-
}, children: [_jsx("span", { style: { flexShrink: 0, marginTop: '0.125rem' }, children: _jsx(CheckIcon, {}) }), _jsx("span", { children: "Priority support" })] }))] }), _jsx(Link, { to: plan.type === 'free' ? '/register' : '/login?redirect=/pricing', style: {
|
|
135
|
-
display: 'block',
|
|
136
|
-
marginTop: '1.5rem',
|
|
137
|
-
width: '100%',
|
|
138
|
-
borderRadius: '0.5rem',
|
|
139
|
-
padding: '0.625rem',
|
|
140
|
-
fontSize: '0.875rem',
|
|
141
|
-
fontWeight: 500,
|
|
142
|
-
textAlign: 'center',
|
|
143
|
-
textDecoration: 'none',
|
|
144
|
-
backgroundColor: isPopular
|
|
145
|
-
? 'rgb(var(--color-primary))'
|
|
146
|
-
: plan.type === 'free'
|
|
147
|
-
? 'rgb(var(--color-background-secondary))'
|
|
148
|
-
: 'rgb(var(--color-background))',
|
|
149
|
-
color: isPopular
|
|
150
|
-
? 'white'
|
|
151
|
-
: plan.type === 'free'
|
|
152
|
-
? 'rgb(var(--color-text-muted))'
|
|
153
|
-
: 'rgb(var(--color-text-primary))',
|
|
154
|
-
border: isPopular || plan.type === 'free' ? 'none' : '1px solid rgb(var(--color-border))',
|
|
155
|
-
boxSizing: 'border-box',
|
|
156
|
-
}, children: plan.type === 'free' ? 'Get Started Free' : 'Get Started' })] }, plan.id));
|
|
157
|
-
}) }), hasCreditsPlans && (_jsx("div", { style: {
|
|
158
|
-
marginTop: '3rem',
|
|
159
|
-
borderRadius: '0.75rem',
|
|
160
|
-
border: '1px solid rgb(var(--color-border))',
|
|
161
|
-
backgroundColor: 'rgb(var(--color-background-secondary))',
|
|
162
|
-
padding: '1.5rem',
|
|
163
|
-
}, children: _jsxs("div", { style: {
|
|
164
|
-
display: 'flex',
|
|
165
|
-
flexDirection: 'column',
|
|
166
|
-
gap: '1rem',
|
|
167
|
-
alignItems: 'center',
|
|
168
|
-
textAlign: 'center',
|
|
169
|
-
}, children: [_jsxs("div", { children: [_jsx("h3", { style: {
|
|
170
|
-
fontSize: '1.125rem',
|
|
171
|
-
fontWeight: 600,
|
|
172
|
-
color: 'rgb(var(--color-text-primary))',
|
|
173
|
-
margin: 0,
|
|
174
|
-
}, children: "Need more messages?" }), _jsx("p", { style: {
|
|
175
|
-
fontSize: '0.875rem',
|
|
176
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
177
|
-
marginTop: '0.25rem',
|
|
178
|
-
}, children: "Buy credits to use when you exceed your monthly limit." })] }), _jsx(Link, { to: "/login", style: {
|
|
179
|
-
display: 'inline-flex',
|
|
180
|
-
alignItems: 'center',
|
|
181
|
-
justifyContent: 'center',
|
|
182
|
-
borderRadius: '0.5rem',
|
|
183
|
-
backgroundColor: 'rgb(var(--color-primary))',
|
|
184
|
-
padding: '0.5rem 1rem',
|
|
185
|
-
fontSize: '0.875rem',
|
|
186
|
-
fontWeight: 500,
|
|
187
|
-
color: 'white',
|
|
188
|
-
textDecoration: 'none',
|
|
189
|
-
}, children: "Buy Credits" })] }) })), _jsx("div", { style: { marginTop: '2rem', textAlign: 'center' }, children: _jsxs(Link, { to: "/", style: {
|
|
190
|
-
fontSize: '0.875rem',
|
|
191
|
-
color: 'rgb(var(--color-text-muted))',
|
|
192
|
-
textDecoration: 'none',
|
|
193
|
-
}, children: ["Back to ", appName] }) })] }) }));
|
|
194
|
-
}
|
|
195
|
-
//# sourceMappingURL=pricing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["../../../src/ssr/routes/pricing.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAanD,MAAM,CAAC,MAAM,IAAI,GAAgC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAG,IAAI,EAAE,OAAO,IAAI,SAAS,CAAC;IAE3C,OAAO;QACL,EAAE,KAAK,EAAE,aAAa,OAAO,EAAE,EAAE;QACjC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,0BAA0B,OAAO,8CAA8C,EAAE;QACjH,aAAa;QACb,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,OAAO,EAAE,EAAE;QACzD,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,EAAE,0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aAAa;oCACtB,UAAU,EAAE,QAAQ;oCACpB,cAAc,EAAE,QAAQ;oCACxB,YAAY,EAAE,QAAQ;oCACtB,eAAe,EAAE,2BAA2B;oCAC5C,OAAO,EAAE,aAAa;oCACtB,QAAQ,EAAE,UAAU;oCACpB,UAAU,EAAE,GAAG;oCACf,KAAK,EAAE,OAAO;oCACd,cAAc,EAAE,MAAM;iCACvB,4BAGI,IACH,GACF,CACP,EAGD,cAAK,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,YACpD,MAAC,IAAI,IACH,EAAE,EAAC,GAAG,EACN,KAAK,EAAE;4BACL,QAAQ,EAAE,UAAU;4BACpB,KAAK,EAAE,8BAA8B;4BACrC,cAAc,EAAE,MAAM;yBACvB,yBAEQ,OAAO,IACX,GACH,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Link, useOutletContext } from '@remix-run/react';
|
|
3
|
-
export const meta = ({ matches }) => {
|
|
4
|
-
const parentData = matches.find((m) => m.id === 'root')?.data;
|
|
5
|
-
const appName = parentData?.config?.app?.name || 'AI Chat';
|
|
6
|
-
return [
|
|
7
|
-
{ title: `Privacy Policy - ${appName}` },
|
|
8
|
-
{ name: 'description', content: `Privacy Policy for ${appName}` },
|
|
9
|
-
];
|
|
10
|
-
};
|
|
11
|
-
export default function PrivacyPage() {
|
|
12
|
-
const { config } = useOutletContext();
|
|
13
|
-
return (_jsx("div", { style: {
|
|
14
|
-
minHeight: '100vh',
|
|
15
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
16
|
-
padding: '2rem 1rem',
|
|
17
|
-
}, children: _jsxs("div", { style: {
|
|
18
|
-
maxWidth: '48rem',
|
|
19
|
-
marginLeft: 'auto',
|
|
20
|
-
marginRight: 'auto',
|
|
21
|
-
}, children: [_jsx("div", { style: { marginBottom: '2rem' }, children: _jsxs(Link, { to: "/", style: {
|
|
22
|
-
fontSize: '0.875rem',
|
|
23
|
-
color: 'rgb(var(--color-primary))',
|
|
24
|
-
textDecoration: 'none',
|
|
25
|
-
}, children: ["\u2190 Back to ", config.app.name] }) }), _jsxs("article", { children: [_jsx("h1", { style: {
|
|
26
|
-
fontSize: '2rem',
|
|
27
|
-
fontWeight: 'bold',
|
|
28
|
-
color: 'rgb(var(--color-text-primary))',
|
|
29
|
-
marginBottom: '1.5rem',
|
|
30
|
-
}, children: "Privacy Policy" }), _jsxs("p", { style: {
|
|
31
|
-
color: 'rgb(var(--color-text-muted))',
|
|
32
|
-
marginBottom: '2rem',
|
|
33
|
-
fontSize: '0.875rem',
|
|
34
|
-
}, children: ["Last updated: ", new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })] }), _jsxs("div", { className: "markdown-content", style: {
|
|
35
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
36
|
-
lineHeight: 1.7,
|
|
37
|
-
}, children: [_jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Introduction" }), _jsxs("p", { style: { marginBottom: '1rem' }, children: ["This Privacy Policy describes how ", config.app.name, " (\"we\", \"us\", or \"our\") collects, uses, and shares your personal information when you use our service."] }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Information We Collect" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "We collect information you provide directly to us, such as when you create an account, use our service, or contact us for support. This may include:" }), _jsxs("ul", { style: { marginBottom: '1rem', paddingLeft: '1.5rem', listStyleType: 'disc' }, children: [_jsx("li", { style: { marginBottom: '0.5rem' }, children: "Email address" }), _jsx("li", { style: { marginBottom: '0.5rem' }, children: "Name (if provided)" }), _jsx("li", { style: { marginBottom: '0.5rem' }, children: "Chat messages and conversations" }), _jsx("li", { style: { marginBottom: '0.5rem' }, children: "Usage data and analytics" })] }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "How We Use Your Information" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "We use the information we collect to:" }), _jsxs("ul", { style: { marginBottom: '1rem', paddingLeft: '1.5rem', listStyleType: 'disc' }, children: [_jsx("li", { style: { marginBottom: '0.5rem' }, children: "Provide, maintain, and improve our service" }), _jsx("li", { style: { marginBottom: '0.5rem' }, children: "Process transactions and send related information" }), _jsx("li", { style: { marginBottom: '0.5rem' }, children: "Send technical notices and support messages" }), _jsx("li", { style: { marginBottom: '0.5rem' }, children: "Respond to your comments and questions" })] }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Data Security" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "We implement appropriate security measures to protect your personal information. However, no method of transmission over the Internet is completely secure, and we cannot guarantee absolute security." }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Your Rights" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "You have the right to access, update, or delete your personal information. You can do this through your account settings or by contacting us directly." }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Contact Us" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "If you have any questions about this Privacy Policy, please contact us." })] })] })] }) }));
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=privacy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"privacy.js","sourceRoot":"","sources":["../../../src/ssr/routes/privacy.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,gBAAgB,EA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P,CAAC;AACJ,CAAC"}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Link, useOutletContext } from '@remix-run/react';
|
|
3
|
-
export const meta = ({ matches }) => {
|
|
4
|
-
const parentData = matches.find((m) => m.id === 'root')?.data;
|
|
5
|
-
const appName = parentData?.config?.app?.name || 'AI Chat';
|
|
6
|
-
return [
|
|
7
|
-
{ title: `Sign Up - ${appName}` },
|
|
8
|
-
{ name: 'description', content: `Create your ${appName} account` },
|
|
9
|
-
// Prevent indexing of registration page
|
|
10
|
-
{ name: 'robots', content: 'noindex, nofollow' },
|
|
11
|
-
];
|
|
12
|
-
};
|
|
13
|
-
export default function RegisterPage() {
|
|
14
|
-
const { config } = useOutletContext();
|
|
15
|
-
const hasEmailPassword = config.auth?.methods?.includes('email-password') ?? true;
|
|
16
|
-
const hasGoogle = config.auth?.methods?.includes('google') ?? false;
|
|
17
|
-
const hasGitHub = config.auth?.methods?.includes('github') ?? false;
|
|
18
|
-
return (_jsx("div", { style: {
|
|
19
|
-
display: 'flex',
|
|
20
|
-
minHeight: '100vh',
|
|
21
|
-
alignItems: 'center',
|
|
22
|
-
justifyContent: 'center',
|
|
23
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
24
|
-
padding: '1rem',
|
|
25
|
-
}, children: _jsxs("div", { style: { width: '100%', maxWidth: '28rem' }, children: [_jsxs("div", { style: { marginBottom: '2rem', textAlign: 'center' }, children: [config.ui?.logo && (_jsx("img", { src: typeof config.ui.logo === 'string' ? config.ui.logo : config.ui.logo.light, alt: config.app.name, style: {
|
|
26
|
-
height: '4rem',
|
|
27
|
-
width: '4rem',
|
|
28
|
-
marginLeft: 'auto',
|
|
29
|
-
marginRight: 'auto',
|
|
30
|
-
marginBottom: '1rem',
|
|
31
|
-
borderRadius: '0.5rem',
|
|
32
|
-
objectFit: 'contain',
|
|
33
|
-
} })), _jsx("h1", { style: {
|
|
34
|
-
fontSize: '1.875rem',
|
|
35
|
-
fontWeight: 'bold',
|
|
36
|
-
color: 'rgb(var(--color-text-primary))',
|
|
37
|
-
margin: 0,
|
|
38
|
-
}, children: "Create an account" }), _jsxs("p", { style: {
|
|
39
|
-
marginTop: '0.5rem',
|
|
40
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
41
|
-
}, children: ["Get started with ", config.app.name] })] }), (hasGoogle || hasGitHub) && (_jsxs("div", { style: { marginBottom: '1.5rem', display: 'flex', flexDirection: 'column', gap: '0.75rem' }, children: [hasGoogle && (_jsxs("a", { href: "/api/auth/oauth/google", style: {
|
|
42
|
-
display: 'flex',
|
|
43
|
-
width: '100%',
|
|
44
|
-
alignItems: 'center',
|
|
45
|
-
justifyContent: 'center',
|
|
46
|
-
gap: '0.5rem',
|
|
47
|
-
borderRadius: '0.5rem',
|
|
48
|
-
border: '1px solid rgb(var(--color-border))',
|
|
49
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
50
|
-
padding: '0.5rem 1rem',
|
|
51
|
-
color: 'rgb(var(--color-text-primary))',
|
|
52
|
-
textDecoration: 'none',
|
|
53
|
-
}, children: [_jsxs("svg", { style: { height: '1.25rem', width: '1.25rem' }, viewBox: "0 0 24 24", children: [_jsx("path", { fill: "currentColor", d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" }), _jsx("path", { fill: "currentColor", d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }), _jsx("path", { fill: "currentColor", d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }), _jsx("path", { fill: "currentColor", d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" })] }), "Sign up with Google"] })), hasGitHub && (_jsxs("a", { href: "/api/auth/oauth/github", style: {
|
|
54
|
-
display: 'flex',
|
|
55
|
-
width: '100%',
|
|
56
|
-
alignItems: 'center',
|
|
57
|
-
justifyContent: 'center',
|
|
58
|
-
gap: '0.5rem',
|
|
59
|
-
borderRadius: '0.5rem',
|
|
60
|
-
border: '1px solid rgb(var(--color-border))',
|
|
61
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
62
|
-
padding: '0.5rem 1rem',
|
|
63
|
-
color: 'rgb(var(--color-text-primary))',
|
|
64
|
-
textDecoration: 'none',
|
|
65
|
-
}, children: [_jsx("svg", { style: { height: '1.25rem', width: '1.25rem' }, viewBox: "0 0 24 24", fill: "currentColor", children: _jsx("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" }) }), "Sign up with GitHub"] }))] })), (hasGoogle || hasGitHub) && hasEmailPassword && (_jsxs("div", { style: { position: 'relative', marginBottom: '1.5rem' }, children: [_jsx("div", { style: {
|
|
66
|
-
position: 'absolute',
|
|
67
|
-
inset: 0,
|
|
68
|
-
display: 'flex',
|
|
69
|
-
alignItems: 'center',
|
|
70
|
-
}, children: _jsx("div", { style: {
|
|
71
|
-
width: '100%',
|
|
72
|
-
borderTop: '1px solid rgb(var(--color-border))',
|
|
73
|
-
} }) }), _jsx("div", { style: {
|
|
74
|
-
position: 'relative',
|
|
75
|
-
display: 'flex',
|
|
76
|
-
justifyContent: 'center',
|
|
77
|
-
fontSize: '0.875rem',
|
|
78
|
-
}, children: _jsx("span", { style: {
|
|
79
|
-
backgroundColor: 'rgb(var(--color-background))',
|
|
80
|
-
padding: '0 0.5rem',
|
|
81
|
-
color: 'rgb(var(--color-text-muted))',
|
|
82
|
-
}, children: "Or continue with email" }) })] })), hasEmailPassword && (_jsxs("form", { method: "post", action: "/api/auth/register", style: { display: 'flex', flexDirection: 'column', gap: '1rem' }, children: [_jsxs("div", { children: [_jsx("label", { htmlFor: "name", style: {
|
|
83
|
-
display: 'block',
|
|
84
|
-
fontSize: '0.875rem',
|
|
85
|
-
fontWeight: 500,
|
|
86
|
-
color: 'rgb(var(--color-text-primary))',
|
|
87
|
-
}, children: "Name" }), _jsx("input", { type: "text", id: "name", name: "name", required: true, style: {
|
|
88
|
-
marginTop: '0.25rem',
|
|
89
|
-
width: '100%',
|
|
90
|
-
borderRadius: '0.5rem',
|
|
91
|
-
border: '1px solid rgb(var(--color-input-border))',
|
|
92
|
-
backgroundColor: 'rgb(var(--color-input-background))',
|
|
93
|
-
padding: '0.5rem 1rem',
|
|
94
|
-
color: 'rgb(var(--color-text-primary))',
|
|
95
|
-
boxSizing: 'border-box',
|
|
96
|
-
} })] }), _jsxs("div", { children: [_jsx("label", { htmlFor: "email", style: {
|
|
97
|
-
display: 'block',
|
|
98
|
-
fontSize: '0.875rem',
|
|
99
|
-
fontWeight: 500,
|
|
100
|
-
color: 'rgb(var(--color-text-primary))',
|
|
101
|
-
}, children: "Email" }), _jsx("input", { type: "email", id: "email", name: "email", required: true, style: {
|
|
102
|
-
marginTop: '0.25rem',
|
|
103
|
-
width: '100%',
|
|
104
|
-
borderRadius: '0.5rem',
|
|
105
|
-
border: '1px solid rgb(var(--color-input-border))',
|
|
106
|
-
backgroundColor: 'rgb(var(--color-input-background))',
|
|
107
|
-
padding: '0.5rem 1rem',
|
|
108
|
-
color: 'rgb(var(--color-text-primary))',
|
|
109
|
-
boxSizing: 'border-box',
|
|
110
|
-
} })] }), _jsxs("div", { children: [_jsx("label", { htmlFor: "password", style: {
|
|
111
|
-
display: 'block',
|
|
112
|
-
fontSize: '0.875rem',
|
|
113
|
-
fontWeight: 500,
|
|
114
|
-
color: 'rgb(var(--color-text-primary))',
|
|
115
|
-
}, children: "Password" }), _jsx("input", { type: "password", id: "password", name: "password", required: true, minLength: 8, style: {
|
|
116
|
-
marginTop: '0.25rem',
|
|
117
|
-
width: '100%',
|
|
118
|
-
borderRadius: '0.5rem',
|
|
119
|
-
border: '1px solid rgb(var(--color-input-border))',
|
|
120
|
-
backgroundColor: 'rgb(var(--color-input-background))',
|
|
121
|
-
padding: '0.5rem 1rem',
|
|
122
|
-
color: 'rgb(var(--color-text-primary))',
|
|
123
|
-
boxSizing: 'border-box',
|
|
124
|
-
} })] }), _jsx("button", { type: "submit", style: {
|
|
125
|
-
width: '100%',
|
|
126
|
-
borderRadius: '0.5rem',
|
|
127
|
-
backgroundColor: 'rgb(var(--color-primary))',
|
|
128
|
-
padding: '0.5rem 1rem',
|
|
129
|
-
fontWeight: 500,
|
|
130
|
-
color: 'white',
|
|
131
|
-
border: 'none',
|
|
132
|
-
cursor: 'pointer',
|
|
133
|
-
}, children: "Create account" })] })), _jsxs("p", { style: {
|
|
134
|
-
marginTop: '1rem',
|
|
135
|
-
textAlign: 'center',
|
|
136
|
-
fontSize: '0.75rem',
|
|
137
|
-
color: 'rgb(var(--color-text-muted))',
|
|
138
|
-
}, children: ["By signing up, you agree to our", ' ', _jsx(Link, { to: config.legal?.termsOfServiceUrl || '/terms', style: { color: 'rgb(var(--color-primary))', textDecoration: 'none' }, children: "Terms of Service" }), ' ', "and", ' ', _jsx(Link, { to: config.legal?.privacyPolicyUrl || '/privacy', style: { color: 'rgb(var(--color-primary))', textDecoration: 'none' }, children: "Privacy Policy" })] }), _jsxs("p", { style: {
|
|
139
|
-
marginTop: '1.5rem',
|
|
140
|
-
textAlign: 'center',
|
|
141
|
-
fontSize: '0.875rem',
|
|
142
|
-
color: 'rgb(var(--color-text-secondary))',
|
|
143
|
-
}, children: ["Already have an account?", ' ', _jsx(Link, { to: "/login", style: {
|
|
144
|
-
color: 'rgb(var(--color-primary))',
|
|
145
|
-
textDecoration: 'none',
|
|
146
|
-
}, children: "Sign in" })] })] }) }));
|
|
147
|
-
}
|
|
148
|
-
//# sourceMappingURL=register.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../src/ssr/routes/register.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,MAAM,CAAC,MAAM,IAAI,GAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IAChD,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,IAA4D,CAAC;IACtH,MAAM,OAAO,GAAG,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,IAAI,SAAS,CAAC;IAE3D,OAAO;QACL,EAAE,KAAK,EAAE,aAAa,OAAO,EAAE,EAAE;QACjC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,OAAO,UAAU,EAAE;QAClE,wCAAwC;QACxC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE;KACjD,CAAC;AACJ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