@chaaskit/server 0.1.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/dist/api/admin.js +438 -0
- package/dist/api/admin.js.map +1 -0
- package/dist/api/agents.js +21 -0
- package/dist/api/agents.js.map +1 -0
- package/dist/api/api-keys.js +122 -0
- package/dist/api/api-keys.js.map +1 -0
- package/dist/api/auth.js +399 -0
- package/dist/api/auth.js.map +1 -0
- package/dist/api/chat.js +900 -0
- package/dist/api/chat.js.map +1 -0
- package/dist/api/config.js +91 -0
- package/dist/api/config.js.map +1 -0
- package/dist/api/documents.js +237 -0
- package/dist/api/documents.js.map +1 -0
- package/dist/api/export.js +107 -0
- package/dist/api/export.js.map +1 -0
- package/dist/api/health.js +25 -0
- package/dist/api/health.js.map +1 -0
- package/dist/api/mcp-server.js +84 -0
- package/dist/api/mcp-server.js.map +1 -0
- package/dist/api/mcp.js +400 -0
- package/dist/api/mcp.js.map +1 -0
- package/dist/api/mentions.js +94 -0
- package/dist/api/mentions.js.map +1 -0
- package/dist/api/oauth.js +366 -0
- package/dist/api/oauth.js.map +1 -0
- package/dist/api/payments.js +473 -0
- package/dist/api/payments.js.map +1 -0
- package/dist/api/projects.js +301 -0
- package/dist/api/projects.js.map +1 -0
- package/dist/api/scheduled-prompts.js +617 -0
- package/dist/api/scheduled-prompts.js.map +1 -0
- package/dist/api/search.js +85 -0
- package/dist/api/search.js.map +1 -0
- package/dist/api/share.js +188 -0
- package/dist/api/share.js.map +1 -0
- package/dist/api/slack.js +468 -0
- package/dist/api/slack.js.map +1 -0
- package/dist/api/teams.js +693 -0
- package/dist/api/teams.js.map +1 -0
- package/dist/api/templates.js +134 -0
- package/dist/api/templates.js.map +1 -0
- package/dist/api/threads.js +323 -0
- package/dist/api/threads.js.map +1 -0
- package/dist/api/upload.js +57 -0
- package/dist/api/upload.js.map +1 -0
- package/dist/api/user.js +111 -0
- package/dist/api/user.js.map +1 -0
- package/dist/api/v1/openai.js +245 -0
- package/dist/api/v1/openai.js.map +1 -0
- package/dist/app.js +168 -0
- package/dist/app.js.map +1 -0
- package/dist/bin/cli.js +57 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/commands/db-sync.js +108 -0
- package/dist/commands/db-sync.js.map +1 -0
- package/dist/config/loader.js +374 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/documents/extractors.js +136 -0
- package/dist/documents/extractors.js.map +1 -0
- package/dist/extensions/glob.js +53 -0
- package/dist/extensions/glob.js.map +1 -0
- package/dist/extensions/loader.js +72 -0
- package/dist/extensions/loader.js.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/loaders/index.js +75 -0
- package/dist/loaders/index.js.map +1 -0
- package/dist/mcp/client.js +551 -0
- package/dist/mcp/client.js.map +1 -0
- package/dist/mcp/server.js +335 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/middleware/apiKeyAuth.js +136 -0
- package/dist/middleware/apiKeyAuth.js.map +1 -0
- package/dist/middleware/auth.js +192 -0
- package/dist/middleware/auth.js.map +1 -0
- package/dist/middleware/errorHandler.js +41 -0
- package/dist/middleware/errorHandler.js.map +1 -0
- package/dist/middleware/mcpServerAuth.js +164 -0
- package/dist/middleware/mcpServerAuth.js.map +1 -0
- package/dist/middleware/requestLogger.js +9 -0
- package/dist/middleware/requestLogger.js.map +1 -0
- package/dist/middleware/team.js +132 -0
- package/dist/middleware/team.js.map +1 -0
- package/dist/oauth/server.js +410 -0
- package/dist/oauth/server.js.map +1 -0
- package/dist/queue/cli.js +93 -0
- package/dist/queue/cli.js.map +1 -0
- package/dist/queue/handlers/index.js +91 -0
- package/dist/queue/handlers/index.js.map +1 -0
- package/dist/queue/handlers/scheduled-prompt.js +270 -0
- package/dist/queue/handlers/scheduled-prompt.js.map +1 -0
- package/dist/queue/index.js +91 -0
- package/dist/queue/index.js.map +1 -0
- package/dist/queue/providers/memory.js +296 -0
- package/dist/queue/providers/memory.js.map +1 -0
- package/dist/queue/providers/sqs.js +275 -0
- package/dist/queue/providers/sqs.js.map +1 -0
- package/dist/queue/scheduler.js +355 -0
- package/dist/queue/scheduler.js.map +1 -0
- package/dist/queue/types.js +5 -0
- package/dist/queue/types.js.map +1 -0
- package/dist/queue/worker.js +230 -0
- package/dist/queue/worker.js.map +1 -0
- package/dist/registry/index.js +40 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/server.js +207 -0
- package/dist/server.js.map +1 -0
- package/dist/services/agent.js +530 -0
- package/dist/services/agent.js.map +1 -0
- package/dist/services/agents.js +194 -0
- package/dist/services/agents.js.map +1 -0
- package/dist/services/documents.js +507 -0
- package/dist/services/documents.js.map +1 -0
- package/dist/services/email/index.js +91 -0
- package/dist/services/email/index.js.map +1 -0
- package/dist/services/email/providers/ses.js +97 -0
- package/dist/services/email/providers/ses.js.map +1 -0
- package/dist/services/email/templates.js +194 -0
- package/dist/services/email/templates.js.map +1 -0
- package/dist/services/email/types.js +5 -0
- package/dist/services/email/types.js.map +1 -0
- package/dist/services/encryption.js +69 -0
- package/dist/services/encryption.js.map +1 -0
- package/dist/services/oauth-discovery.js +226 -0
- package/dist/services/oauth-discovery.js.map +1 -0
- package/dist/services/pendingConfirmation.js +105 -0
- package/dist/services/pendingConfirmation.js.map +1 -0
- package/dist/services/scheduledPrompts.js +70 -0
- package/dist/services/scheduledPrompts.js.map +1 -0
- package/dist/services/slack/client.js +174 -0
- package/dist/services/slack/client.js.map +1 -0
- package/dist/services/slack/events.js +189 -0
- package/dist/services/slack/events.js.map +1 -0
- package/dist/services/slack/index.js +6 -0
- package/dist/services/slack/index.js.map +1 -0
- package/dist/services/slack/notifications.js +124 -0
- package/dist/services/slack/notifications.js.map +1 -0
- package/dist/services/slack/signature.js +74 -0
- package/dist/services/slack/signature.js.map +1 -0
- package/dist/services/slack/thread-context.js +191 -0
- package/dist/services/slack/thread-context.js.map +1 -0
- package/dist/services/toolConfirmation.js +55 -0
- package/dist/services/toolConfirmation.js.map +1 -0
- package/dist/services/usage.js +241 -0
- package/dist/services/usage.js.map +1 -0
- package/dist/ssr/build.js +90 -0
- package/dist/ssr/build.js.map +1 -0
- package/dist/ssr/components/SSRMessageList.js +120 -0
- package/dist/ssr/components/SSRMessageList.js.map +1 -0
- package/dist/ssr/entry.client.js +8 -0
- package/dist/ssr/entry.client.js.map +1 -0
- package/dist/ssr/entry.server.js +71 -0
- package/dist/ssr/entry.server.js.map +1 -0
- package/dist/ssr/handler.js +51 -0
- package/dist/ssr/handler.js.map +1 -0
- package/dist/ssr/root.js +184 -0
- package/dist/ssr/root.js.map +1 -0
- package/dist/ssr/routes/login.js +140 -0
- package/dist/ssr/routes/login.js.map +1 -0
- package/dist/ssr/routes/pricing.js +195 -0
- package/dist/ssr/routes/pricing.js.map +1 -0
- package/dist/ssr/routes/privacy.js +39 -0
- package/dist/ssr/routes/privacy.js.map +1 -0
- package/dist/ssr/routes/register.js +148 -0
- package/dist/ssr/routes/register.js.map +1 -0
- package/dist/ssr/routes/shared.$shareId.js +153 -0
- package/dist/ssr/routes/shared.$shareId.js.map +1 -0
- package/dist/ssr/routes/terms.js +39 -0
- package/dist/ssr/routes/terms.js.map +1 -0
- package/dist/storage/index.js +43 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/providers/database.js +38 -0
- package/dist/storage/providers/database.js.map +1 -0
- package/dist/storage/providers/filesystem.js +51 -0
- package/dist/storage/providers/filesystem.js.map +1 -0
- package/dist/storage/types.js +2 -0
- package/dist/storage/types.js.map +1 -0
- package/dist/tools/documents.js +336 -0
- package/dist/tools/documents.js.map +1 -0
- package/dist/tools/get-plan-usage.js +82 -0
- package/dist/tools/get-plan-usage.js.map +1 -0
- package/dist/tools/index.js +106 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/types.js +2 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/tools/web-scrape.js +145 -0
- package/dist/tools/web-scrape.js.map +1 -0
- package/package.json +93 -0
package/dist/ssr/root.js
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Links, Meta, Outlet, Scripts, ScrollRestoration, useLoaderData, } from '@remix-run/react';
|
|
3
|
+
import { json } from '@remix-run/node';
|
|
4
|
+
import { getConfig } from '../config/loader.js';
|
|
5
|
+
// Generate CSS variables from theme config
|
|
6
|
+
function generateThemeCSS(config, theme) {
|
|
7
|
+
const themeConfig = config.theming.themes[theme];
|
|
8
|
+
if (!themeConfig)
|
|
9
|
+
return '';
|
|
10
|
+
const hexToRgb = (hex) => {
|
|
11
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
12
|
+
if (!result)
|
|
13
|
+
return '';
|
|
14
|
+
return `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}`;
|
|
15
|
+
};
|
|
16
|
+
const cssVars = Object.entries(themeConfig.colors)
|
|
17
|
+
.map(([key, value]) => {
|
|
18
|
+
const cssKey = `--color-${key.replace(/([A-Z])/g, '-$1').toLowerCase()}`;
|
|
19
|
+
return `${cssKey}: ${hexToRgb(value)};`;
|
|
20
|
+
})
|
|
21
|
+
.join('\n ');
|
|
22
|
+
return `
|
|
23
|
+
:root {
|
|
24
|
+
${cssVars}
|
|
25
|
+
--font-sans: ${config.theming.fonts.sans};
|
|
26
|
+
--font-mono: ${config.theming.fonts.mono};
|
|
27
|
+
--radius-sm: ${config.theming.borderRadius.sm};
|
|
28
|
+
--radius-md: ${config.theming.borderRadius.md};
|
|
29
|
+
--radius-lg: ${config.theming.borderRadius.lg};
|
|
30
|
+
--radius-full: ${config.theming.borderRadius.full};
|
|
31
|
+
}`;
|
|
32
|
+
}
|
|
33
|
+
export const links = () => {
|
|
34
|
+
return [
|
|
35
|
+
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
|
36
|
+
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossOrigin: 'anonymous' },
|
|
37
|
+
{
|
|
38
|
+
rel: 'stylesheet',
|
|
39
|
+
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap',
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
};
|
|
43
|
+
export async function loader({ request }) {
|
|
44
|
+
const config = getConfig();
|
|
45
|
+
const theme = config.theming.defaultTheme;
|
|
46
|
+
return json({
|
|
47
|
+
config: {
|
|
48
|
+
app: config.app,
|
|
49
|
+
ui: config.ui,
|
|
50
|
+
theming: config.theming,
|
|
51
|
+
legal: config.legal,
|
|
52
|
+
sharing: config.sharing,
|
|
53
|
+
payments: config.payments,
|
|
54
|
+
auth: config.auth,
|
|
55
|
+
},
|
|
56
|
+
theme,
|
|
57
|
+
themeCSS: generateThemeCSS(config, theme),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export default function App() {
|
|
61
|
+
const { config, theme, themeCSS } = useLoaderData();
|
|
62
|
+
return (_jsxs("html", { lang: "en", "data-theme": theme, children: [_jsxs("head", { children: [_jsx("meta", { charSet: "utf-8" }), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }), _jsx(Meta, {}), _jsx(Links, {}), _jsx("style", { dangerouslySetInnerHTML: { __html: themeCSS } }), _jsx("style", { dangerouslySetInnerHTML: { __html: `
|
|
63
|
+
/* Base styles */
|
|
64
|
+
html { font-family: var(--font-sans); }
|
|
65
|
+
body {
|
|
66
|
+
background-color: rgb(var(--color-background));
|
|
67
|
+
color: rgb(var(--color-text-primary));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Utility classes */
|
|
71
|
+
.bg-background { background-color: rgb(var(--color-background)); }
|
|
72
|
+
.bg-background-secondary { background-color: rgb(var(--color-background-secondary)); }
|
|
73
|
+
.text-text-primary { color: rgb(var(--color-text-primary)); }
|
|
74
|
+
.text-text-secondary { color: rgb(var(--color-text-secondary)); }
|
|
75
|
+
.text-text-muted { color: rgb(var(--color-text-muted)); }
|
|
76
|
+
.text-white { color: white; }
|
|
77
|
+
.border-border { border-color: rgb(var(--color-border)); }
|
|
78
|
+
.bg-primary { background-color: rgb(var(--color-primary)); }
|
|
79
|
+
.hover\\:bg-primary-hover:hover { background-color: rgb(var(--color-primary-hover)); }
|
|
80
|
+
.bg-assistant-message-bg { background-color: rgb(var(--color-assistant-message-bg)); }
|
|
81
|
+
.text-assistant-message-text { color: rgb(var(--color-assistant-message-text)); }
|
|
82
|
+
.bg-user-message-bg { background-color: rgb(var(--color-user-message-bg)); }
|
|
83
|
+
.text-user-message-text { color: rgb(var(--color-user-message-text)); }
|
|
84
|
+
|
|
85
|
+
/* Layout utilities */
|
|
86
|
+
.min-h-screen { min-height: 100vh; }
|
|
87
|
+
.flex { display: flex; }
|
|
88
|
+
.flex-col { flex-direction: column; }
|
|
89
|
+
.items-center { align-items: center; }
|
|
90
|
+
.justify-center { justify-content: center; }
|
|
91
|
+
.justify-between { justify-content: space-between; }
|
|
92
|
+
.gap-3 { gap: 0.75rem; }
|
|
93
|
+
.mx-auto { margin-left: auto; margin-right: auto; }
|
|
94
|
+
.max-w-3xl { max-width: 48rem; }
|
|
95
|
+
.px-4 { padding-left: 1rem; padding-right: 1rem; }
|
|
96
|
+
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
|
|
97
|
+
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
|
|
98
|
+
.pb-8 { padding-bottom: 2rem; }
|
|
99
|
+
.p-4 { padding: 1rem; }
|
|
100
|
+
.mb-2 { margin-bottom: 0.5rem; }
|
|
101
|
+
.mb-6 { margin-bottom: 1.5rem; }
|
|
102
|
+
.space-y-3 > * + * { margin-top: 0.75rem; }
|
|
103
|
+
.space-y-4 > * + * { margin-top: 1rem; }
|
|
104
|
+
|
|
105
|
+
/* Typography */
|
|
106
|
+
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
|
|
107
|
+
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
|
|
108
|
+
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
|
|
109
|
+
.text-center { text-align: center; }
|
|
110
|
+
.font-semibold { font-weight: 600; }
|
|
111
|
+
.font-bold { font-weight: 700; }
|
|
112
|
+
|
|
113
|
+
/* Borders */
|
|
114
|
+
.border-b { border-bottom-width: 1px; }
|
|
115
|
+
.border-t { border-top-width: 1px; }
|
|
116
|
+
.rounded-lg { border-radius: 0.5rem; }
|
|
117
|
+
.rounded-full { border-radius: 9999px; }
|
|
118
|
+
|
|
119
|
+
/* Flex utilities */
|
|
120
|
+
.flex-shrink-0 { flex-shrink: 0; }
|
|
121
|
+
|
|
122
|
+
/* Sizing */
|
|
123
|
+
.h-6 { height: 1.5rem; }
|
|
124
|
+
.w-6 { width: 1.5rem; }
|
|
125
|
+
.h-8 { height: 2rem; }
|
|
126
|
+
.w-8 { width: 2rem; }
|
|
127
|
+
.max-w-\\[85\\%\\] { max-width: 85%; }
|
|
128
|
+
|
|
129
|
+
/* Animations */
|
|
130
|
+
.animate-spin {
|
|
131
|
+
animation: spin 1s linear infinite;
|
|
132
|
+
}
|
|
133
|
+
@keyframes spin {
|
|
134
|
+
from { transform: rotate(0deg); }
|
|
135
|
+
to { transform: rotate(360deg); }
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Message bubbles */
|
|
139
|
+
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
|
|
140
|
+
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
|
|
141
|
+
|
|
142
|
+
/* Markdown content */
|
|
143
|
+
.markdown-content { line-height: 1.625; }
|
|
144
|
+
.markdown-content p { margin-bottom: 1rem; }
|
|
145
|
+
.markdown-content p:last-child { margin-bottom: 0; }
|
|
146
|
+
.markdown-content pre {
|
|
147
|
+
background-color: rgb(var(--color-background-secondary));
|
|
148
|
+
padding: 1rem;
|
|
149
|
+
border-radius: 0.5rem;
|
|
150
|
+
overflow-x: auto;
|
|
151
|
+
margin: 1rem 0;
|
|
152
|
+
}
|
|
153
|
+
.markdown-content code {
|
|
154
|
+
font-family: var(--font-mono);
|
|
155
|
+
font-size: 0.875rem;
|
|
156
|
+
}
|
|
157
|
+
.markdown-content ul, .markdown-content ol {
|
|
158
|
+
padding-left: 1.5rem;
|
|
159
|
+
margin-bottom: 1rem;
|
|
160
|
+
}
|
|
161
|
+
.markdown-content ul { list-style-type: disc; }
|
|
162
|
+
.markdown-content ol { list-style-type: decimal; }
|
|
163
|
+
.markdown-content li { margin-bottom: 0.25rem; }
|
|
164
|
+
` } })] }), _jsxs("body", { children: [_jsx(Outlet, { context: { config } }), _jsx(ScrollRestoration, {}), _jsx(Scripts, {})] })] }));
|
|
165
|
+
}
|
|
166
|
+
// Error boundary for SSR routes
|
|
167
|
+
export function ErrorBoundary() {
|
|
168
|
+
return (_jsxs("html", { lang: "en", children: [_jsxs("head", { children: [_jsx("meta", { charSet: "utf-8" }), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }), _jsx("title", { children: "Error" }), _jsx(Meta, {}), _jsx(Links, {})] }), _jsxs("body", { children: [_jsxs("div", { style: {
|
|
169
|
+
display: 'flex',
|
|
170
|
+
flexDirection: 'column',
|
|
171
|
+
alignItems: 'center',
|
|
172
|
+
justifyContent: 'center',
|
|
173
|
+
minHeight: '100vh',
|
|
174
|
+
padding: '1rem',
|
|
175
|
+
fontFamily: 'system-ui, sans-serif'
|
|
176
|
+
}, children: [_jsx("h1", { style: { fontSize: '1.5rem', fontWeight: 'bold', marginBottom: '0.5rem' }, children: "Something went wrong" }), _jsx("p", { style: { color: '#666', marginBottom: '1.5rem' }, children: "We're sorry, but an error occurred while loading this page." }), _jsx("a", { href: "/", style: {
|
|
177
|
+
backgroundColor: '#6366f1',
|
|
178
|
+
color: 'white',
|
|
179
|
+
padding: '0.5rem 1rem',
|
|
180
|
+
borderRadius: '0.5rem',
|
|
181
|
+
textDecoration: 'none',
|
|
182
|
+
}, children: "Go to Home" })] }), _jsx(Scripts, {})] })] }));
|
|
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,uBAAuB;yBACpC,aACC,aAAI,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,qCAExE,EACL,YAAG,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,4EAE/C,EACJ,YACE,IAAI,EAAC,GAAG,EACR,KAAK,EAAE;oCACL,eAAe,EAAE,SAAS;oCAC1B,KAAK,EAAE,OAAO;oCACd,OAAO,EAAE,aAAa;oCACtB,YAAY,EAAE,QAAQ;oCACtB,cAAc,EAAE,MAAM;iCACvB,2BAGC,IACA,EACN,KAAC,OAAO,KAAG,IACN,IACF,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,OAAO,UAAU,EAAE;QACtE,iCAAiC;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE;KACjD,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS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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"}
|
|
@@ -0,0 +1,195 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,0BAA0B,OAAO,EAAE,EAAE;QAC5E,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;KAC5C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,MAAM,CAA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,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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privacy.js","sourceRoot":"","sources":["../../../src/ssr/routes/privacy.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,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