@promptbook/cli 0.104.0-1 → 0.104.0-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/apps/agents-server/next.config.ts +2 -2
- package/apps/agents-server/package.json +6 -1
- package/apps/agents-server/public/fonts/OpenMoji-color-cbdt.woff2 +0 -0
- package/apps/agents-server/scripts/generate-reserved-paths/generate-reserved-paths.ts +50 -0
- package/apps/agents-server/scripts/generate-reserved-paths/tsconfig.json +19 -0
- package/apps/agents-server/src/app/AddAgentButton.tsx +4 -3
- package/apps/agents-server/src/app/actions.ts +17 -5
- package/apps/agents-server/src/app/admin/metadata/MetadataClient.tsx +15 -11
- package/apps/agents-server/src/app/agents/[agentName]/AgentOptionsMenu.tsx +51 -7
- package/apps/agents-server/src/app/agents/[agentName]/AgentProfileChat.tsx +32 -2
- package/apps/agents-server/src/app/agents/[agentName]/AgentProfileWrapper.tsx +2 -0
- package/apps/agents-server/src/app/agents/[agentName]/_utils.ts +18 -0
- package/apps/agents-server/src/app/agents/[agentName]/agentLinks.tsx +8 -8
- package/apps/agents-server/src/app/agents/[agentName]/api/agents/route.ts +17 -26
- package/apps/agents-server/src/app/agents/[agentName]/api/chat/route.ts +17 -0
- package/apps/agents-server/src/app/agents/[agentName]/api/profile/route.ts +1 -1
- package/apps/agents-server/src/app/agents/[agentName]/api/voice/route.ts +1 -1
- package/apps/agents-server/src/app/agents/[agentName]/book/BookEditorWrapper.tsx +20 -16
- package/apps/agents-server/src/app/agents/[agentName]/book/page.tsx +15 -2
- package/apps/agents-server/src/app/agents/[agentName]/book+chat/page.tsx +15 -2
- package/apps/agents-server/src/app/agents/[agentName]/chat/page.tsx +12 -0
- package/apps/agents-server/src/app/agents/[agentName]/code/api/route.ts +66 -0
- package/apps/agents-server/src/app/agents/[agentName]/code/page.tsx +211 -0
- package/apps/agents-server/src/app/agents/[agentName]/generateAgentMetadata.ts +5 -0
- package/apps/agents-server/src/app/agents/[agentName]/history/actions.ts +2 -2
- package/apps/agents-server/src/app/agents/[agentName]/integration/page.tsx +1 -1
- package/apps/agents-server/src/app/agents/[agentName]/links/page.tsx +2 -2
- package/apps/agents-server/src/app/agents/[agentName]/page.tsx +12 -6
- package/apps/agents-server/src/app/agents/[agentName]/system-message/page.tsx +87 -0
- package/apps/agents-server/src/app/api/admin-email/route.ts +12 -0
- package/apps/agents-server/src/app/api/agents/[agentName]/restore/route.ts +19 -0
- package/apps/agents-server/src/app/api/agents/[agentName]/route.ts +42 -0
- package/apps/agents-server/src/app/api/agents/route.ts +29 -4
- package/apps/agents-server/src/app/api/docs/book.md/route.ts +58 -0
- package/apps/agents-server/src/app/api/federated-agents/route.ts +12 -0
- package/apps/agents-server/src/app/api/images/[filename]/route.ts +107 -0
- package/apps/agents-server/src/app/api/upload/route.ts +119 -45
- package/apps/agents-server/src/app/docs/[docId]/page.tsx +2 -3
- package/apps/agents-server/src/app/docs/page.tsx +12 -12
- package/apps/agents-server/src/app/globals.css +140 -33
- package/apps/agents-server/src/app/layout.tsx +27 -22
- package/apps/agents-server/src/app/page.tsx +50 -4
- package/apps/agents-server/src/app/recycle-bin/actions.ts +20 -14
- package/apps/agents-server/src/app/recycle-bin/page.tsx +25 -41
- package/apps/agents-server/src/app/sitemap.xml/route.ts +6 -3
- package/apps/agents-server/src/components/AgentProfile/AgentProfile.tsx +6 -97
- package/apps/agents-server/src/components/AgentProfile/useAgentBackground.ts +97 -0
- package/apps/agents-server/src/components/DeletedAgentBanner.tsx +26 -0
- package/apps/agents-server/src/components/DocsToolbar/DocsToolbar.tsx +38 -0
- package/apps/agents-server/src/components/DocumentationContent/DocumentationContent.tsx +11 -9
- package/apps/agents-server/src/components/Footer/Footer.tsx +5 -5
- package/apps/agents-server/src/components/ForgottenPasswordDialog/ForgottenPasswordDialog.tsx +61 -0
- package/apps/agents-server/src/components/Header/Header.tsx +79 -35
- package/apps/agents-server/src/components/Homepage/AgentCard.tsx +85 -20
- package/apps/agents-server/src/components/Homepage/AgentsList.tsx +72 -12
- package/apps/agents-server/src/components/Homepage/DeletedAgentsList.tsx +50 -0
- package/apps/agents-server/src/components/LayoutWrapper/LayoutWrapper.tsx +3 -2
- package/apps/agents-server/src/components/LoginForm/LoginForm.tsx +50 -1
- package/apps/agents-server/src/components/NotFoundPage/NotFoundPage.tsx +7 -2
- package/apps/agents-server/src/components/OpenMojiIcon/OpenMojiIcon.tsx +16 -7
- package/apps/agents-server/src/components/PrintHeader/PrintHeader.tsx +4 -4
- package/apps/agents-server/src/components/RegisterUserDialog/RegisterUserDialog.tsx +61 -0
- package/apps/agents-server/src/database/metadataDefaults.ts +19 -1
- package/apps/agents-server/src/database/migrations/2025-12-0240-agent-public-id.sql +3 -0
- package/apps/agents-server/src/database/migrations/2025-12-0360-agent-deleted-at.sql +1 -0
- package/apps/agents-server/src/database/migrations/2025-12-0370-image-table.sql +19 -0
- package/apps/agents-server/src/database/migrations/2025-12-0380-agent-visibility.sql +1 -0
- package/apps/agents-server/src/database/migrations/2025-12-0390-upload-tracking.sql +20 -0
- package/apps/agents-server/src/database/migrations/2025-12-0401-file-upload-status.sql +13 -0
- package/apps/agents-server/src/database/migrations/2025-12-0640-openai-assistant-cache.sql +12 -0
- package/apps/agents-server/src/database/schema.ts +109 -0
- package/apps/agents-server/src/generated/reservedPaths.ts +27 -0
- package/apps/agents-server/src/middleware.ts +7 -20
- package/apps/agents-server/src/tools/$provideCdnForServer.ts +6 -1
- package/apps/agents-server/src/utils/cdn/classes/TrackedFilesStorage.ts +57 -0
- package/apps/agents-server/src/utils/cdn/classes/VercelBlobStorage.ts +4 -0
- package/apps/agents-server/src/utils/cdn/interfaces/IFilesStorage.ts +18 -0
- package/apps/agents-server/src/utils/getUserIdFromRequest.ts +33 -0
- package/apps/agents-server/src/utils/handleChatCompletion.ts +60 -4
- package/apps/agents-server/src/utils/normalization/filenameToPrompt.ts +21 -0
- package/apps/agents-server/src/utils/validateApiKey.ts +2 -1
- package/esm/index.es.js +140 -27
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/types.index.d.ts +6 -2
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +6 -1
- package/esm/typings/src/book-components/Chat/Chat/ChatMessageItem.d.ts +5 -1
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
- package/esm/typings/src/book-components/Chat/CodeBlock/CodeBlock.d.ts +13 -0
- package/esm/typings/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
- package/esm/typings/src/book-components/_common/Dropdown/Dropdown.d.ts +2 -2
- package/esm/typings/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +56 -0
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +13 -7
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +6 -0
- package/esm/typings/src/commitments/DICTIONARY/DICTIONARY.d.ts +46 -0
- package/esm/typings/src/commitments/index.d.ts +2 -1
- package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +1 -1
- package/esm/typings/src/types/typeAliases.d.ts +12 -0
- package/esm/typings/src/utils/environment/$detectRuntimeEnvironment.d.ts +4 -4
- package/esm/typings/src/utils/environment/$isRunningInBrowser.d.ts +1 -1
- package/esm/typings/src/utils/environment/$isRunningInJest.d.ts +1 -1
- package/esm/typings/src/utils/environment/$isRunningInNode.d.ts +1 -1
- package/esm/typings/src/utils/environment/$isRunningInWebWorker.d.ts +1 -1
- package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +2 -2
- package/esm/typings/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +2 -2
- package/esm/typings/src/utils/random/$randomBase58.d.ts +12 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +146 -33
- package/umd/index.umd.js.map +1 -1
- package/apps/agents-server/package-lock.json +0 -27
- package/apps/agents-server/public/fonts/download-font.js +0 -22
- package/apps/agents-server/src/components/PrintButton/PrintButton.tsx +0 -18
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { AgentBasicInformation } from '@promptbook-local/types';
|
|
4
4
|
import { RepeatIcon } from 'lucide-react';
|
|
5
|
-
import {
|
|
6
|
-
import spaceTrim from 'spacetrim';
|
|
7
|
-
import { Color } from '../../../../../src/utils/color/Color';
|
|
8
|
-
import { darken } from '../../../../../src/utils/color/operators/darken';
|
|
9
|
-
import { lighten } from '../../../../../src/utils/color/operators/lighten';
|
|
5
|
+
import { useState } from 'react';
|
|
10
6
|
import { AgentQrCode } from './AgentQrCode';
|
|
11
7
|
import { QrCodeModal } from './QrCodeModal';
|
|
8
|
+
import { useAgentBackground } from './useAgentBackground';
|
|
12
9
|
|
|
13
10
|
type AgentProfileProps = {
|
|
14
11
|
/**
|
|
@@ -88,95 +85,7 @@ export function AgentProfile(props: AgentProfileProps) {
|
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
// Compute Colors and Background
|
|
91
|
-
const { brandColorHex, brandColorLightHex, brandColorDarkHex, backgroundImage } =
|
|
92
|
-
// [🧠] Default color should be imported constant, but for now hardcoded fallback
|
|
93
|
-
const PROMPTBOOK_COLOR_HEX = '#f15b24'; // TODO: Import PROMPTBOOK_COLOR
|
|
94
|
-
const brandColorString = meta.color || PROMPTBOOK_COLOR_HEX;
|
|
95
|
-
|
|
96
|
-
let brandColor;
|
|
97
|
-
try {
|
|
98
|
-
brandColor = Color.fromSafe(brandColorString.split(',')[0].trim());
|
|
99
|
-
} catch {
|
|
100
|
-
brandColor = Color.fromHex(PROMPTBOOK_COLOR_HEX);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const brandColorHex = brandColor.toHex();
|
|
104
|
-
const brandColorLightHex = brandColor.then(lighten(0.2)).toHex();
|
|
105
|
-
const brandColorDarkHex = brandColor.then(darken(0.15)).toHex();
|
|
106
|
-
|
|
107
|
-
// Generate Noisy SVG Background
|
|
108
|
-
const color1 = brandColor;
|
|
109
|
-
// const color2 = brandColors[1] || brandColors[0]!; // Use secondary color if available?
|
|
110
|
-
// For simplicity using primary color for now or derive second one
|
|
111
|
-
const color2 = brandColor;
|
|
112
|
-
|
|
113
|
-
// [🧠] Make colors much lighter for the background
|
|
114
|
-
const color1Light = color1.then(lighten(0.3)).toHex();
|
|
115
|
-
const color1Main = color1.toHex();
|
|
116
|
-
const color1Dark = color1.then(darken(0.3)).toHex();
|
|
117
|
-
|
|
118
|
-
const color2Light = color2.then(lighten(0.3)).toHex();
|
|
119
|
-
const color2Main = color2.toHex();
|
|
120
|
-
const color2Dark = color2.then(darken(0.3)).toHex();
|
|
121
|
-
|
|
122
|
-
const svgContent = spaceTrim(`
|
|
123
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
124
|
-
viewBox="0 0 1920 1080"
|
|
125
|
-
width="1920" height="1080"
|
|
126
|
-
preserveAspectRatio="xMidYMid slice">
|
|
127
|
-
<defs>
|
|
128
|
-
<!-- Bottom-left -->
|
|
129
|
-
<radialGradient id="grad1" cx="0%" cy="100%" r="90%">
|
|
130
|
-
<stop offset="0%" stop-color="${color1Light}" />
|
|
131
|
-
<stop offset="50%" stop-color="${color1Main}" />
|
|
132
|
-
<stop offset="100%" stop-color="${color1Dark}" />
|
|
133
|
-
</radialGradient>
|
|
134
|
-
|
|
135
|
-
<!-- Bottom-right -->
|
|
136
|
-
<radialGradient id="grad2" cx="100%" cy="100%" r="90%">
|
|
137
|
-
<stop offset="0%" stop-color="${color2Light}" />
|
|
138
|
-
<stop offset="50%" stop-color="${color2Main}" />
|
|
139
|
-
<stop offset="100%" stop-color="${color2Dark}" />
|
|
140
|
-
</radialGradient>
|
|
141
|
-
|
|
142
|
-
<!-- White top fade -->
|
|
143
|
-
<linearGradient id="whiteTopGrad" x1="0%" y1="0%" x2="0%" y2="100%">
|
|
144
|
-
<stop offset="0%" stop-color="#ffffff" stop-opacity="1" />
|
|
145
|
-
<stop offset="100%" stop-color="#ffffff" stop-opacity="0.3" />
|
|
146
|
-
</linearGradient>
|
|
147
|
-
|
|
148
|
-
<!-- Strong grain -->
|
|
149
|
-
<filter id="grain" x="-10%" y="-10%" width="120%" height="120%">
|
|
150
|
-
<feTurbulence type="fractalNoise" baseFrequency="3.5" numOctaves="3" seed="8" result="noise" />
|
|
151
|
-
<feComponentTransfer>
|
|
152
|
-
<feFuncR type="linear" slope="3.5" intercept="-1.2" />
|
|
153
|
-
<feFuncG type="linear" slope="3.5" intercept="-1.2" />
|
|
154
|
-
<feFuncB type="linear" slope="3.5" intercept="-1.2" />
|
|
155
|
-
<feFuncA type="table" tableValues="0 0.8" />
|
|
156
|
-
</feComponentTransfer>
|
|
157
|
-
</filter>
|
|
158
|
-
</defs>
|
|
159
|
-
|
|
160
|
-
<!-- White base -->
|
|
161
|
-
<rect width="100%" height="100%" fill="#ffffff" />
|
|
162
|
-
|
|
163
|
-
<!-- Gradients -->
|
|
164
|
-
<rect width="100%" height="100%" fill="url(#grad1)" />
|
|
165
|
-
<rect width="100%" height="100%" fill="url(#grad2)" style="mix-blend-mode:screen; opacity:0.85" />
|
|
166
|
-
|
|
167
|
-
<!-- White fade on top -->
|
|
168
|
-
<rect width="100%" height="100%" fill="url(#whiteTopGrad)" />
|
|
169
|
-
|
|
170
|
-
<!-- Strong visible noise -->
|
|
171
|
-
<rect width="100%" height="100%" filter="url(#grain)"
|
|
172
|
-
style="mix-blend-mode:soft-light; opacity:1.2" />
|
|
173
|
-
</svg>
|
|
174
|
-
`);
|
|
175
|
-
|
|
176
|
-
const backgroundImage = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svgContent)}`;
|
|
177
|
-
|
|
178
|
-
return { brandColorHex, brandColorLightHex, brandColorDarkHex, backgroundImage };
|
|
179
|
-
}, [meta.color]);
|
|
88
|
+
const { brandColorHex, brandColorLightHex, brandColorDarkHex, backgroundImage } = useAgentBackground(meta.color);
|
|
180
89
|
|
|
181
90
|
return (
|
|
182
91
|
<>
|
|
@@ -230,6 +139,8 @@ export function AgentProfile(props: AgentProfileProps) {
|
|
|
230
139
|
backfaceVisibility: 'hidden',
|
|
231
140
|
backgroundColor: brandColorDarkHex,
|
|
232
141
|
boxShadow: `0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px ${brandColorLightHex}40`,
|
|
142
|
+
// borderRadius: '50%',
|
|
143
|
+
// ['cornerShape' as really_any]: 'squircle ',
|
|
233
144
|
}}
|
|
234
145
|
>
|
|
235
146
|
{imageUrl ? (
|
|
@@ -298,9 +209,7 @@ export function AgentProfile(props: AgentProfileProps) {
|
|
|
298
209
|
</div>
|
|
299
210
|
|
|
300
211
|
{/* Chat Area */}
|
|
301
|
-
<div className="col-span-2 md:col-span-1 md:col-start-2 w-full mt-2 md:mt-0">
|
|
302
|
-
{children}
|
|
303
|
-
</div>
|
|
212
|
+
<div className="col-span-2 md:col-span-1 md:col-start-2 w-full mt-2 md:mt-0">{children}</div>
|
|
304
213
|
|
|
305
214
|
{/* Secondary Actions */}
|
|
306
215
|
{!isHeadless && (
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Color } from '../../../../../src/utils/color/Color';
|
|
2
|
+
import { darken } from '../../../../../src/utils/color/operators/darken';
|
|
3
|
+
import { lighten } from '../../../../../src/utils/color/operators/lighten';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import spaceTrim from 'spacetrim';
|
|
6
|
+
|
|
7
|
+
export function useAgentBackground(colorString: string | undefined) {
|
|
8
|
+
return useMemo(() => {
|
|
9
|
+
// [🧠] Default color should be imported constant, but for now hardcoded fallback
|
|
10
|
+
const PROMPTBOOK_COLOR_HEX = '#f15b24'; // TODO: Import PROMPTBOOK_COLOR
|
|
11
|
+
const brandColorString = colorString || PROMPTBOOK_COLOR_HEX;
|
|
12
|
+
|
|
13
|
+
let brandColor;
|
|
14
|
+
try {
|
|
15
|
+
brandColor = Color.fromSafe(brandColorString.split(',')[0].trim());
|
|
16
|
+
} catch {
|
|
17
|
+
brandColor = Color.fromHex(PROMPTBOOK_COLOR_HEX);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const brandColorHex = brandColor.toHex();
|
|
21
|
+
const brandColorLightHex = brandColor.then(lighten(0.2)).toHex();
|
|
22
|
+
const brandColorDarkHex = brandColor.then(darken(0.15)).toHex();
|
|
23
|
+
|
|
24
|
+
// Generate Noisy SVG Background
|
|
25
|
+
const color1 = brandColor;
|
|
26
|
+
// const color2 = brandColors[1] || brandColors[0]!; // Use secondary color if available?
|
|
27
|
+
// For simplicity using primary color for now or derive second one
|
|
28
|
+
const color2 = brandColor;
|
|
29
|
+
|
|
30
|
+
// [🧠] Make colors much lighter for the background
|
|
31
|
+
const color1Light = color1.then(lighten(0.3)).toHex();
|
|
32
|
+
const color1Main = color1.toHex();
|
|
33
|
+
const color1Dark = color1.then(darken(0.3)).toHex();
|
|
34
|
+
|
|
35
|
+
const color2Light = color2.then(lighten(0.3)).toHex();
|
|
36
|
+
const color2Main = color2.toHex();
|
|
37
|
+
const color2Dark = color2.then(darken(0.3)).toHex();
|
|
38
|
+
|
|
39
|
+
const svgContent = spaceTrim(`
|
|
40
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
41
|
+
viewBox="0 0 1920 1080"
|
|
42
|
+
width="1920" height="1080"
|
|
43
|
+
preserveAspectRatio="xMidYMid slice">
|
|
44
|
+
<defs>
|
|
45
|
+
<!-- Bottom-left -->
|
|
46
|
+
<radialGradient id="grad1" cx="0%" cy="100%" r="90%">
|
|
47
|
+
<stop offset="0%" stop-color="${color1Light}" />
|
|
48
|
+
<stop offset="50%" stop-color="${color1Main}" />
|
|
49
|
+
<stop offset="100%" stop-color="${color1Dark}" />
|
|
50
|
+
</radialGradient>
|
|
51
|
+
|
|
52
|
+
<!-- Bottom-right -->
|
|
53
|
+
<radialGradient id="grad2" cx="100%" cy="100%" r="90%">
|
|
54
|
+
<stop offset="0%" stop-color="${color2Light}" />
|
|
55
|
+
<stop offset="50%" stop-color="${color2Main}" />
|
|
56
|
+
<stop offset="100%" stop-color="${color2Dark}" />
|
|
57
|
+
</radialGradient>
|
|
58
|
+
|
|
59
|
+
<!-- White top fade -->
|
|
60
|
+
<linearGradient id="whiteTopGrad" x1="0%" y1="0%" x2="0%" y2="100%">
|
|
61
|
+
<stop offset="0%" stop-color="#ffffff" stop-opacity="1" />
|
|
62
|
+
<stop offset="100%" stop-color="#ffffff" stop-opacity="0.3" />
|
|
63
|
+
</linearGradient>
|
|
64
|
+
|
|
65
|
+
<!-- Strong grain -->
|
|
66
|
+
<filter id="grain" x="-10%" y="-10%" width="120%" height="120%">
|
|
67
|
+
<feTurbulence type="fractalNoise" baseFrequency="3.5" numOctaves="3" seed="8" result="noise" />
|
|
68
|
+
<feComponentTransfer>
|
|
69
|
+
<feFuncR type="linear" slope="3.5" intercept="-1.2" />
|
|
70
|
+
<feFuncG type="linear" slope="3.5" intercept="-1.2" />
|
|
71
|
+
<feFuncB type="linear" slope="3.5" intercept="-1.2" />
|
|
72
|
+
<feFuncA type="table" tableValues="0 0.8" />
|
|
73
|
+
</feComponentTransfer>
|
|
74
|
+
</filter>
|
|
75
|
+
</defs>
|
|
76
|
+
|
|
77
|
+
<!-- White base -->
|
|
78
|
+
<rect width="100%" height="100%" fill="#ffffff" />
|
|
79
|
+
|
|
80
|
+
<!-- Gradients -->
|
|
81
|
+
<rect width="100%" height="100%" fill="url(#grad1)" />
|
|
82
|
+
<rect width="100%" height="100%" fill="url(#grad2)" style="mix-blend-mode:screen; opacity:0.85" />
|
|
83
|
+
|
|
84
|
+
<!-- White fade on top -->
|
|
85
|
+
<rect width="100%" height="100%" fill="url(#whiteTopGrad)" />
|
|
86
|
+
|
|
87
|
+
<!-- Strong visible noise -->
|
|
88
|
+
<rect width="100%" height="100%" filter="url(#grain)"
|
|
89
|
+
style="mix-blend-mode:soft-light; opacity:1.2" />
|
|
90
|
+
</svg>
|
|
91
|
+
`);
|
|
92
|
+
|
|
93
|
+
const backgroundImage = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svgContent)}`;
|
|
94
|
+
|
|
95
|
+
return { brandColorHex, brandColorLightHex, brandColorDarkHex, backgroundImage };
|
|
96
|
+
}, [colorString]);
|
|
97
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
type DeletedAgentBannerProps = {
|
|
4
|
+
message?: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export function DeletedAgentBanner({
|
|
8
|
+
message = "This agent has been deleted. You can restore it from the Recycle Bin."
|
|
9
|
+
}: DeletedAgentBannerProps) {
|
|
10
|
+
return (
|
|
11
|
+
<div className="bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-6">
|
|
12
|
+
<div className="flex">
|
|
13
|
+
<div className="flex-shrink-0">
|
|
14
|
+
<svg className="h-5 w-5 text-yellow-400" viewBox="0 0 20 20" fill="currentColor">
|
|
15
|
+
<path fillRule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clipRule="evenodd" />
|
|
16
|
+
</svg>
|
|
17
|
+
</div>
|
|
18
|
+
<div className="ml-3">
|
|
19
|
+
<p className="text-sm text-yellow-700">
|
|
20
|
+
{message}
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { Download, PrinterIcon } from 'lucide-react';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import { OpenMojiIcon } from '../OpenMojiIcon/OpenMojiIcon';
|
|
6
|
+
|
|
7
|
+
export function DocsToolbar() {
|
|
8
|
+
return (
|
|
9
|
+
<div className="flex flex-wrap items-center justify-between gap-4 p-4 mb-8 bg-white rounded-xl shadow-sm border border-gray-100 print:hidden">
|
|
10
|
+
<div className="flex items-center gap-2">
|
|
11
|
+
<OpenMojiIcon icon="📚" className="text-2xl" />
|
|
12
|
+
<span className="font-semibold text-gray-700">Documentation</span>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div className="flex flex-wrap gap-2">
|
|
16
|
+
<button
|
|
17
|
+
onClick={() => window.print()}
|
|
18
|
+
className="flex items-center gap-2 px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors"
|
|
19
|
+
title="Print this page or save as PDF"
|
|
20
|
+
>
|
|
21
|
+
<PrinterIcon className="w-4 h-4" />
|
|
22
|
+
Print / Save as PDF
|
|
23
|
+
</button>
|
|
24
|
+
|
|
25
|
+
<Link
|
|
26
|
+
href="/api/docs/book.md"
|
|
27
|
+
download="book.md"
|
|
28
|
+
target="_blank"
|
|
29
|
+
className="flex items-center gap-2 px-4 py-2 text-sm font-medium text-blue-700 bg-blue-50 border border-blue-200 rounded-lg hover:bg-blue-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors"
|
|
30
|
+
title="Download raw Markdown documentation"
|
|
31
|
+
>
|
|
32
|
+
<Download className="w-4 h-4" />
|
|
33
|
+
Download Markdown
|
|
34
|
+
</Link>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -17,34 +17,36 @@ export function DocumentationContent({ primary, aliases = [], isPrintOnly = fals
|
|
|
17
17
|
<div
|
|
18
18
|
className={`bg-white rounded-xl shadow-lg border border-gray-200 overflow-hidden ${
|
|
19
19
|
isPrintOnly ? 'shadow-none border-none' : ''
|
|
20
|
-
}`}
|
|
20
|
+
} print:shadow-none print:border-none print:rounded-none`}
|
|
21
21
|
>
|
|
22
22
|
<div
|
|
23
23
|
className={`p-8 border-b border-gray-100 bg-gray-50/50 ${
|
|
24
24
|
isPrintOnly ? 'border-none bg-white p-0 mb-4' : ''
|
|
25
|
-
}`}
|
|
25
|
+
} print:p-0 print:border-none print:bg-white print:mb-4`}
|
|
26
26
|
>
|
|
27
27
|
<div className="flex items-center gap-4 mb-4">
|
|
28
|
-
<h1 className="text-4xl font-bold text-gray-900 tracking-tight">
|
|
29
|
-
<OpenMojiIcon icon={primary.icon} className="mr-3" />
|
|
28
|
+
<h1 className="text-4xl font-bold text-gray-900 tracking-tight print:text-3xl">
|
|
29
|
+
<OpenMojiIcon icon={primary.icon} variant="color" className="mr-3" />
|
|
30
30
|
{primary.type}
|
|
31
31
|
{aliases.length > 0 && (
|
|
32
|
-
<span className="text-gray-400 font-normal ml-4 text-2xl"
|
|
32
|
+
<span className="text-gray-400 font-normal ml-4 text-2xl print:text-xl">
|
|
33
|
+
/ {aliases.join(' / ')}
|
|
34
|
+
</span>
|
|
33
35
|
)}
|
|
34
36
|
</h1>
|
|
35
37
|
{!isPrintOnly && (
|
|
36
|
-
<span className="px-3 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-700">
|
|
38
|
+
<span className="px-3 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-700 print:hidden">
|
|
37
39
|
Commitment
|
|
38
40
|
</span>
|
|
39
41
|
)}
|
|
40
42
|
</div>
|
|
41
43
|
{primary.description && (
|
|
42
|
-
<p className="text-xl text-gray-600 leading-relaxed max-w-3xl">{primary.description}</p>
|
|
44
|
+
<p className="text-xl text-gray-600 leading-relaxed max-w-3xl print:text-lg">{primary.description}</p>
|
|
43
45
|
)}
|
|
44
46
|
</div>
|
|
45
47
|
|
|
46
|
-
<div className={`p-8 ${isPrintOnly ? 'p-0' : ''}`}>
|
|
47
|
-
<article className="prose prose-lg prose-slate max-w-none prose-headings:font-bold prose-headings:tracking-tight prose-headings:text-gray-900 prose-h1:text-4xl prose-h1:mb-8 prose-h2:text-2xl prose-h2:mt-12 prose-h2:mb-6 prose-h2:pb-2 prose-h2:border-b prose-h2:border-gray-200 prose-h3:text-xl prose-h3:mt-8 prose-h3:mb-4 prose-h3:text-gray-800 prose-p:text-gray-600 prose-p:leading-relaxed prose-p:mb-6 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:text-blue-700 hover:prose-a:underline prose-a:transition-colors prose-strong:font-bold prose-strong:text-gray-900 prose-code:text-blue-600 prose-code:bg-blue-50 prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded-md prose-code:before:content-none prose-code:after:content-none prose-code:font-medium prose-pre:bg-gray-900 prose-pre:text-gray-100 prose-pre:shadow-lg prose-pre:rounded-xl prose-pre:p-6 prose-ul:list-disc prose-ul:pl-6 prose-li:marker:text-gray-400 prose-li:mb-2 prose-ol:list-decimal prose-ol:pl-6 prose-li:mb-2 prose-blockquote:border-l-4 prose-blockquote:border-blue-500 prose-blockquote:bg-blue-50/50 prose-blockquote:py-2 prose-blockquote:px-4 prose-blockquote:rounded-r-lg prose-blockquote:not-italic prose-blockquote:text-gray-700 prose-blockquote:my-8 prose-img:rounded-xl prose-img:shadow-md prose-img:my-8 prose-hr:border-gray-200 prose-hr:my-10 prose-table:w-full prose-th:text-left prose-th:py-2 prose-th:px-3 prose-th:bg-gray-100 prose-th:font-semibold prose-th:text-gray-900 prose-td:py-2 prose-td:px-3 prose-td:border-b prose-td:border-gray-200 prose-tr:hover:bg-gray-50">
|
|
48
|
+
<div className={`p-8 ${isPrintOnly ? 'p-0' : ''} print:p-0`}>
|
|
49
|
+
<article className="prose prose-lg prose-slate max-w-none prose-headings:font-bold prose-headings:tracking-tight prose-headings:text-gray-900 prose-h1:text-4xl prose-h1:mb-8 prose-h2:text-2xl prose-h2:mt-12 prose-h2:mb-6 prose-h2:pb-2 prose-h2:border-b prose-h2:border-gray-200 prose-h3:text-xl prose-h3:mt-8 prose-h3:mb-4 prose-h3:text-gray-800 prose-p:text-gray-600 prose-p:leading-relaxed prose-p:mb-6 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:text-blue-700 hover:prose-a:underline prose-a:transition-colors prose-strong:font-bold prose-strong:text-gray-900 prose-code:text-blue-600 prose-code:bg-blue-50 prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded-md prose-code:before:content-none prose-code:after:content-none prose-code:font-medium prose-pre:bg-gray-900 prose-pre:text-gray-100 prose-pre:shadow-lg prose-pre:rounded-xl prose-pre:p-6 prose-ul:list-disc prose-ul:pl-6 prose-li:marker:text-gray-400 prose-li:mb-2 prose-ol:list-decimal prose-ol:pl-6 prose-li:mb-2 prose-blockquote:border-l-4 prose-blockquote:border-blue-500 prose-blockquote:bg-blue-50/50 prose-blockquote:py-2 prose-blockquote:px-4 prose-blockquote:rounded-r-lg prose-blockquote:not-italic prose-blockquote:text-gray-700 prose-blockquote:my-8 prose-img:rounded-xl prose-img:shadow-md prose-img:my-8 prose-hr:border-gray-200 prose-hr:my-10 prose-table:w-full prose-th:text-left prose-th:py-2 prose-th:px-3 prose-th:bg-gray-100 prose-th:font-semibold prose-th:text-gray-900 prose-td:py-2 prose-td:px-3 prose-td:border-b prose-td:border-gray-200 prose-tr:hover:bg-gray-50 print:prose-base print:max-w-none">
|
|
48
50
|
<MarkdownContent
|
|
49
51
|
content={primary.documentation}
|
|
50
52
|
/* TODO: !!!!
|
|
@@ -114,10 +114,7 @@ export function Footer(props: FooterProps) {
|
|
|
114
114
|
</a>
|
|
115
115
|
</li>
|
|
116
116
|
<li>
|
|
117
|
-
<a
|
|
118
|
-
href="https://discord.gg/x3QWNaa89N"
|
|
119
|
-
className="text-gray-500 hover:text-gray-900"
|
|
120
|
-
>
|
|
117
|
+
<a href="https://discord.gg/x3QWNaa89N" className="text-gray-500 hover:text-gray-900">
|
|
121
118
|
Discord
|
|
122
119
|
</a>
|
|
123
120
|
</li>
|
|
@@ -160,8 +157,10 @@ export function Footer(props: FooterProps) {
|
|
|
160
157
|
💜
|
|
161
158
|
</p>
|
|
162
159
|
</div>
|
|
160
|
+
{/*
|
|
161
|
+
TODO: [🧠] Should we show this in the footer?
|
|
163
162
|
<div className="flex flex-col items-center mt-8">
|
|
164
|
-
{/* <Image src={TechnologyIncubation} alt="Our Sponsor" className="h-32 w-auto" />
|
|
163
|
+
{/* <Image src={TechnologyIncubation} alt="Our Sponsor" className="h-32 w-auto" /> * /}
|
|
165
164
|
<p className="text-center text-sm text-gray-500 mt-4 max-w-lg">
|
|
166
165
|
This project was implemented with funding from the national budget
|
|
167
166
|
<br />
|
|
@@ -169,6 +168,7 @@ export function Footer(props: FooterProps) {
|
|
|
169
168
|
Incubation programme.
|
|
170
169
|
</p>
|
|
171
170
|
</div>
|
|
171
|
+
*/}
|
|
172
172
|
</div>
|
|
173
173
|
</footer>
|
|
174
174
|
);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { X } from 'lucide-react';
|
|
4
|
+
import { Portal } from '../Portal/Portal';
|
|
5
|
+
|
|
6
|
+
type ForgottenPasswordDialogProps = {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
adminEmail: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export function ForgottenPasswordDialog(props: ForgottenPasswordDialogProps) {
|
|
13
|
+
const { isOpen, onClose, adminEmail } = props;
|
|
14
|
+
|
|
15
|
+
if (!isOpen) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<Portal>
|
|
21
|
+
<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 backdrop-blur-sm animate-in fade-in duration-200">
|
|
22
|
+
<div className="relative w-full max-w-md bg-white rounded-lg shadow-lg border border-gray-200 p-6 animate-in zoom-in-95 duration-200">
|
|
23
|
+
<button
|
|
24
|
+
onClick={onClose}
|
|
25
|
+
className="absolute top-4 right-4 text-gray-400 hover:text-gray-500 transition-colors"
|
|
26
|
+
>
|
|
27
|
+
<X className="w-5 h-5" />
|
|
28
|
+
<span className="sr-only">Close</span>
|
|
29
|
+
</button>
|
|
30
|
+
|
|
31
|
+
<div className="mb-6">
|
|
32
|
+
<h2 className="text-xl font-semibold text-gray-900">Forgotten Password</h2>
|
|
33
|
+
<p className="text-sm text-gray-500 mt-1">Reset your password</p>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div className="space-y-4">
|
|
37
|
+
<div className="p-4 bg-blue-50 border border-blue-200 rounded-md">
|
|
38
|
+
<p className="text-sm text-blue-800">
|
|
39
|
+
This Promptbook server has no email capability. Please contact the administrator at{' '}
|
|
40
|
+
<a
|
|
41
|
+
href={`mailto:${adminEmail}`}
|
|
42
|
+
className="font-medium text-blue-900 underline hover:text-blue-800"
|
|
43
|
+
>
|
|
44
|
+
{adminEmail}
|
|
45
|
+
</a>{' '}
|
|
46
|
+
to reset your password.
|
|
47
|
+
</p>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<button
|
|
51
|
+
onClick={onClose}
|
|
52
|
+
className="w-full inline-flex items-center justify-center rounded-md text-sm font-medium h-10 px-4 py-2 bg-gray-100 text-gray-900 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 transition-colors"
|
|
53
|
+
>
|
|
54
|
+
Close
|
|
55
|
+
</button>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</Portal>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -9,6 +9,7 @@ import { useRouter } from 'next/navigation';
|
|
|
9
9
|
import { ReactNode, useState } from 'react';
|
|
10
10
|
import { AgentBasicInformation } from '../../../../../src/book-2.0/agent-source/AgentBasicInformation';
|
|
11
11
|
import { HamburgerMenu } from '../../../../../src/book-components/_common/HamburgerMenu/HamburgerMenu';
|
|
12
|
+
import { useMenuHoisting } from '../../../../../src/book-components/_common/MenuHoisting/MenuHoistingContext';
|
|
12
13
|
import { just } from '../../../../../src/utils/organization/just';
|
|
13
14
|
import type { UserInfo } from '../../utils/getCurrentUser';
|
|
14
15
|
import { getVisibleCommitmentDefinitions } from '../../utils/getVisibleCommitmentDefinitions';
|
|
@@ -92,6 +93,7 @@ export function Header(props: HeaderProps) {
|
|
|
92
93
|
const [isCreatingAgent, setIsCreatingAgent] = useState(false);
|
|
93
94
|
const router = useRouter();
|
|
94
95
|
const isHeadless = useIsHeadless();
|
|
96
|
+
const menuHoisting = useMenuHoisting();
|
|
95
97
|
|
|
96
98
|
const { users: adminUsers } = useUsersAdmin();
|
|
97
99
|
|
|
@@ -320,44 +322,46 @@ export function Header(props: HeaderProps) {
|
|
|
320
322
|
|
|
321
323
|
{/* Desktop Navigation */}
|
|
322
324
|
<nav className="hidden lg:flex items-center gap-8">
|
|
323
|
-
{/* Federated servers dropdown */}
|
|
324
|
-
|
|
325
|
-
<
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
325
|
+
{/* Federated servers dropdown - only show if there are federated servers */}
|
|
326
|
+
{federatedServers.length > 0 && (
|
|
327
|
+
<div className="relative">
|
|
328
|
+
<button
|
|
329
|
+
className="flex items-center gap-1 text-sm font-medium text-gray-600 hover:text-gray-900 transition-colors cursor-pointer"
|
|
330
|
+
onClick={() => setIsFederatedOpen(!isFederatedOpen)}
|
|
331
|
+
onBlur={() => setTimeout(() => setIsFederatedOpen(false), 200)}
|
|
332
|
+
>
|
|
333
|
+
<ChevronDown className="w-4 h-4" />
|
|
334
|
+
<span>Switch server</span>
|
|
335
|
+
</button>
|
|
336
|
+
{isFederatedOpen && (
|
|
337
|
+
<div className="absolute top-full left-0 mt-2 w-56 bg-white rounded-md shadow-lg border border-gray-100 py-1 z-50 animate-in fade-in zoom-in-95 duration-200 max-h-[80vh] overflow-y-auto">
|
|
338
|
+
{federatedDropdownItems.map((subItem, subIndex) => {
|
|
339
|
+
const className = `block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-gray-900 ${
|
|
340
|
+
subItem.isBold ? 'font-medium' : ''
|
|
341
|
+
} ${subItem.isBordered ? 'border-b border-gray-100' : ''}`;
|
|
342
|
+
|
|
343
|
+
if (subItem.href) {
|
|
344
|
+
return (
|
|
345
|
+
<HeadlessLink
|
|
346
|
+
key={subIndex}
|
|
347
|
+
href={subItem.href}
|
|
348
|
+
className={className}
|
|
349
|
+
onClick={() => setIsFederatedOpen(false)}
|
|
350
|
+
>
|
|
351
|
+
{subItem.label}
|
|
352
|
+
</HeadlessLink>
|
|
353
|
+
);
|
|
354
|
+
}
|
|
341
355
|
return (
|
|
342
|
-
<
|
|
343
|
-
key={subIndex}
|
|
344
|
-
href={subItem.href}
|
|
345
|
-
className={className}
|
|
346
|
-
onClick={() => setIsFederatedOpen(false)}
|
|
347
|
-
>
|
|
356
|
+
<span key={subIndex} className={className}>
|
|
348
357
|
{subItem.label}
|
|
349
|
-
</
|
|
358
|
+
</span>
|
|
350
359
|
);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
);
|
|
357
|
-
})}
|
|
358
|
-
</div>
|
|
359
|
-
)}
|
|
360
|
-
</div>
|
|
360
|
+
})}
|
|
361
|
+
</div>
|
|
362
|
+
)}
|
|
363
|
+
</div>
|
|
364
|
+
)}
|
|
361
365
|
{menuItems.map((item, index) => {
|
|
362
366
|
if (item.type === 'link') {
|
|
363
367
|
return (
|
|
@@ -433,6 +437,24 @@ export function Header(props: HeaderProps) {
|
|
|
433
437
|
)}
|
|
434
438
|
</nav>
|
|
435
439
|
|
|
440
|
+
{/* Hoisted Menu Items */}
|
|
441
|
+
{menuHoisting && menuHoisting.menu.length > 0 && (
|
|
442
|
+
<div className="hidden lg:flex items-center gap-2 border-r border-gray-200 pr-4 mr-2">
|
|
443
|
+
{menuHoisting.menu.map((item, index) => (
|
|
444
|
+
<button
|
|
445
|
+
key={index}
|
|
446
|
+
onClick={item.onClick}
|
|
447
|
+
className={`p-2 rounded-md hover:bg-gray-100 transition-colors text-gray-600 hover:text-gray-900 ${
|
|
448
|
+
item.isActive ? 'bg-gray-100 text-gray-900' : ''
|
|
449
|
+
}`}
|
|
450
|
+
title={item.name}
|
|
451
|
+
>
|
|
452
|
+
{item.icon}
|
|
453
|
+
</button>
|
|
454
|
+
))}
|
|
455
|
+
</div>
|
|
456
|
+
)}
|
|
457
|
+
|
|
436
458
|
{/* CTA Button & Mobile Menu Toggle */}
|
|
437
459
|
<div className="flex items-center gap-4">
|
|
438
460
|
{just(false /* TODO: [🧠] Figure out what to do with call to action */) && (
|
|
@@ -531,6 +553,28 @@ export function Header(props: HeaderProps) {
|
|
|
531
553
|
}}
|
|
532
554
|
>
|
|
533
555
|
<nav className="container mx-auto flex flex-col gap-4 px-6">
|
|
556
|
+
{/* Hoisted Menu Items for Mobile */}
|
|
557
|
+
{menuHoisting && menuHoisting.menu.length > 0 && (
|
|
558
|
+
<div className="py-2 border-b border-gray-100 mb-2 flex gap-2 overflow-x-auto">
|
|
559
|
+
{menuHoisting.menu.map((item, index) => (
|
|
560
|
+
<button
|
|
561
|
+
key={index}
|
|
562
|
+
onClick={() => {
|
|
563
|
+
item.onClick();
|
|
564
|
+
setIsMenuOpen(false);
|
|
565
|
+
}}
|
|
566
|
+
className={`p-2 rounded-md hover:bg-gray-100 transition-colors text-gray-600 hover:text-gray-900 ${
|
|
567
|
+
item.isActive ? 'bg-gray-100 text-gray-900' : ''
|
|
568
|
+
}`}
|
|
569
|
+
title={item.name}
|
|
570
|
+
>
|
|
571
|
+
{item.icon}
|
|
572
|
+
<span className="sr-only">{item.name}</span>
|
|
573
|
+
</button>
|
|
574
|
+
))}
|
|
575
|
+
</div>
|
|
576
|
+
)}
|
|
577
|
+
|
|
534
578
|
{/* Login Status for Mobile */}
|
|
535
579
|
<div className="py-2 border-b border-gray-100 mb-2">
|
|
536
580
|
{!currentUser && !isAdmin && (
|