create-einja-app 0.2.15 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/templates/default/.claude/hooks/einja/biome-format.sh +2 -2
- package/templates/default/.claude/hooks/einja/playwright-resize.sh +12 -2
- package/templates/default/.claude/settings.json +15 -0
- package/templates/default/.cursor/commands/task-vibe-kanban-loop.md +107 -42
- package/templates/default/.env.develop +0 -4
- package/templates/default/.env.example +1 -0
- package/templates/default/.env.preview +0 -4
- package/templates/default/.env.staging +19 -0
- package/templates/default/.github/actions/ci/action.yml +39 -0
- package/templates/default/.github/actions/migrate/action.yml +39 -0
- package/templates/default/.github/actions/neon-export-env/action.yml +28 -0
- package/templates/default/.github/actions/setup/action.yml +20 -0
- package/templates/default/.github/workflows/claude.yml +1 -0
- package/templates/default/.github/workflows/{cleanup-neon-branches.yml → cleanup-pr-preview-db.yml} +28 -24
- package/templates/default/.github/workflows/cleanup-pr-preview-on-close.yml +50 -0
- package/templates/default/.github/workflows/deploy-pr-preview.yml +398 -0
- package/templates/default/.github/workflows/deploy-stable-branches.yml +259 -0
- package/templates/default/.github/workflows/release-create-einja-app.yml +95 -0
- package/templates/default/.mcp.json +6 -9
- package/templates/default/.serena/project.yml +22 -1
- package/templates/default/CLAUDE.md +52 -10
- package/templates/default/README.md +5 -14
- package/templates/default/apps/admin/next.config.ts +11 -0
- package/templates/default/apps/admin/package.json +55 -0
- package/templates/default/apps/admin/postcss.config.cjs +5 -0
- package/templates/default/apps/admin/src/app/(auth)/forgot-password/page.tsx +97 -0
- package/templates/default/apps/admin/src/app/(auth)/layout.tsx +18 -0
- package/templates/default/apps/admin/src/app/(auth)/otp/page.tsx +121 -0
- package/templates/default/apps/admin/src/app/(auth)/sign-in/page.tsx +145 -0
- package/templates/default/apps/admin/src/app/(auth)/sign-up/page.tsx +199 -0
- package/templates/default/apps/admin/src/app/(errors)/401/page.tsx +27 -0
- package/templates/default/apps/admin/src/app/(errors)/403/page.tsx +28 -0
- package/templates/default/apps/admin/src/app/(errors)/500/page.tsx +29 -0
- package/templates/default/apps/admin/src/app/(errors)/layout.tsx +7 -0
- package/templates/default/apps/admin/src/app/(errors)/maintenance/page.tsx +25 -0
- package/templates/default/apps/admin/src/app/dashboard/_components/analytics-chart.tsx +68 -0
- package/templates/default/apps/admin/src/app/dashboard/_components/analytics.tsx +182 -0
- package/templates/default/apps/admin/src/app/dashboard/_components/dashboard-page.tsx +74 -0
- package/templates/default/apps/admin/src/app/dashboard/_components/metric-cards.tsx +49 -0
- package/templates/default/apps/admin/src/app/dashboard/_components/overview-chart.tsx +73 -0
- package/templates/default/apps/admin/src/app/dashboard/_components/recent-sales.tsx +75 -0
- package/templates/default/apps/admin/src/app/dashboard/apps/_components/apps-page.tsx +135 -0
- package/templates/default/apps/admin/src/app/dashboard/apps/page.tsx +10 -0
- package/templates/default/apps/admin/src/app/dashboard/chats/_components/chat-list.tsx +82 -0
- package/templates/default/apps/admin/src/app/dashboard/chats/_components/chat-messages.tsx +194 -0
- package/templates/default/apps/admin/src/app/dashboard/chats/_components/chats-page.tsx +99 -0
- package/templates/default/apps/admin/src/app/dashboard/chats/_components/new-chat.tsx +118 -0
- package/templates/default/apps/admin/src/app/dashboard/chats/page.tsx +10 -0
- package/templates/default/apps/admin/src/app/dashboard/layout.tsx +9 -0
- package/templates/default/apps/admin/src/app/dashboard/not-found.tsx +14 -0
- package/templates/default/apps/admin/src/app/dashboard/page.tsx +10 -0
- package/templates/default/apps/admin/src/app/dashboard/settings/_components/content-section.tsx +20 -0
- package/templates/default/apps/admin/src/app/dashboard/settings/_components/sidebar-nav.tsx +66 -0
- package/templates/default/apps/admin/src/app/dashboard/settings/account/page.tsx +173 -0
- package/templates/default/apps/admin/src/app/dashboard/settings/appearance/page.tsx +156 -0
- package/templates/default/apps/admin/src/app/dashboard/settings/display/page.tsx +125 -0
- package/templates/default/apps/admin/src/app/dashboard/settings/layout.tsx +30 -0
- package/templates/default/apps/admin/src/app/dashboard/settings/notifications/page.tsx +196 -0
- package/templates/default/apps/admin/src/app/dashboard/settings/page.tsx +5 -0
- package/templates/default/apps/admin/src/app/dashboard/settings/profile/page.tsx +176 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/data-table-bulk-actions.tsx +183 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/data-table-row-actions.tsx +79 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/tasks-columns.tsx +107 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/tasks-dialogs.tsx +71 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/tasks-import-dialog.tsx +106 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/tasks-multi-delete-dialog.tsx +90 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/tasks-mutate-drawer.tsx +207 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/tasks-page.tsx +31 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/tasks-primary-buttons.tsx +19 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/tasks-provider.tsx +37 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/_components/tasks-table.tsx +155 -0
- package/templates/default/apps/admin/src/app/dashboard/tasks/page.tsx +14 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/data-table-bulk-actions.tsx +136 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/data-table-row-actions.tsx +62 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-action-dialog.tsx +297 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-columns.tsx +121 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-delete-dialog.tsx +72 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-dialogs.tsx +49 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-invite-dialog.tsx +139 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-multi-delete-dialog.tsx +89 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-page.tsx +30 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-primary-buttons.tsx +19 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-provider.tsx +35 -0
- package/templates/default/apps/admin/src/app/dashboard/users/_components/users-table.tsx +157 -0
- package/templates/default/apps/admin/src/app/dashboard/users/page.tsx +10 -0
- package/templates/default/apps/admin/src/app/globals.css +109 -0
- package/templates/default/apps/admin/src/app/layout.tsx +32 -0
- package/templates/default/apps/admin/src/app/not-found.tsx +14 -0
- package/templates/default/apps/admin/src/app/page.tsx +5 -0
- package/templates/default/apps/admin/src/components/layout/admin-layout.tsx +16 -0
- package/templates/default/apps/admin/src/components/layout/app-sidebar.tsx +52 -0
- package/templates/default/apps/admin/src/components/layout/nav-config.ts +131 -0
- package/templates/default/apps/admin/src/components/providers/theme-provider.tsx +10 -0
- package/templates/default/apps/admin/src/components/shared/long-text.tsx +78 -0
- package/templates/default/apps/admin/src/components/shared/search-input.tsx +16 -0
- package/templates/default/apps/admin/src/components/shared/select-dropdown.tsx +64 -0
- package/templates/default/apps/admin/src/data/apps.tsx +116 -0
- package/templates/default/apps/admin/src/data/chats.ts +114 -0
- package/templates/default/apps/admin/src/data/tasks.ts +114 -0
- package/templates/default/apps/admin/src/data/users.ts +90 -0
- package/templates/default/apps/admin/src/hooks/use-dialog-state.ts +17 -0
- package/templates/default/apps/admin/src/hooks/use-table-url-state.ts +243 -0
- package/templates/default/apps/admin/src/lib/show-submitted-data.tsx +12 -0
- package/templates/default/apps/admin/src/types/table.d.ts +9 -0
- package/templates/default/apps/admin/tsconfig.json +32 -0
- package/templates/default/apps/web/next.config.ts +1 -0
- package/templates/default/apps/web/package.json +1 -22
- package/templates/default/apps/web/postcss.config.cjs +0 -1
- package/templates/default/apps/web/src/app/(authenticated)/dashboard/page.tsx +4 -20
- package/templates/default/apps/web/src/app/(authenticated)/data/_components/UserTable.tsx +4 -4
- package/templates/default/apps/web/src/app/(authenticated)/data/page.tsx +1 -1
- package/templates/default/apps/web/src/app/(authenticated)/profile/page.tsx +1 -1
- package/templates/default/apps/web/src/app/error.tsx +8 -70
- package/templates/default/apps/web/src/app/global-error.tsx +8 -70
- package/templates/default/apps/web/src/app/globals.css +20 -0
- package/templates/default/apps/web/src/app/not-found.tsx +5 -39
- package/templates/default/apps/web/src/app/page.tsx +27 -203
- package/templates/default/apps/web/src/app/signin/page.tsx +27 -191
- package/templates/default/apps/web/src/app/signup/page.tsx +33 -240
- package/templates/default/apps/web/src/components/dashboard/dashboard-stats.tsx +11 -75
- package/templates/default/apps/web/src/components/shared/Sidebar.tsx +3 -3
- package/templates/default/apps/web/src/components/shared/header.tsx +17 -112
- package/templates/default/apps/web/tsconfig.json +0 -6
- package/templates/default/biome.json +30 -2
- package/templates/default/components.json +2 -2
- package/templates/default/docker-compose.yml +1 -1
- package/templates/default/gitignore +4 -0
- package/templates/default/package.json +2 -0
- package/templates/default/packages/admin-ui/catalog/catalog.css +54 -0
- package/templates/default/packages/admin-ui/catalog/catalog.tsx +401 -0
- package/templates/default/packages/admin-ui/catalog/index.html +12 -0
- package/templates/default/packages/admin-ui/catalog/main.tsx +9 -0
- package/templates/default/packages/admin-ui/components.json +21 -0
- package/templates/default/packages/admin-ui/package.json +105 -0
- package/templates/default/packages/admin-ui/src/command-menu/index.tsx +174 -0
- package/templates/default/packages/admin-ui/src/data-table/bulk-actions.tsx +215 -0
- package/templates/default/packages/admin-ui/src/data-table/column-header.tsx +73 -0
- package/templates/default/packages/admin-ui/src/data-table/data-table.tsx +127 -0
- package/templates/default/packages/admin-ui/src/data-table/faceted-filter.tsx +148 -0
- package/templates/default/packages/admin-ui/src/data-table/index.tsx +9 -0
- package/templates/default/packages/admin-ui/src/data-table/pagination.tsx +101 -0
- package/templates/default/packages/admin-ui/src/data-table/toolbar.tsx +87 -0
- package/templates/default/packages/admin-ui/src/data-table/view-options.tsx +57 -0
- package/templates/default/packages/admin-ui/src/hooks/use-mobile.tsx +23 -0
- package/templates/default/packages/admin-ui/src/layout/header.tsx +55 -0
- package/templates/default/packages/admin-ui/src/layout/index.ts +10 -0
- package/templates/default/packages/admin-ui/src/layout/main.tsx +23 -0
- package/templates/default/packages/admin-ui/src/layout/nav-group.tsx +111 -0
- package/templates/default/packages/admin-ui/src/layout/nav-user.tsx +114 -0
- package/templates/default/packages/admin-ui/src/layout/theme-switch.tsx +40 -0
- package/templates/default/packages/admin-ui/src/layout/types.ts +21 -0
- package/templates/default/packages/admin-ui/src/lib/utils.ts +6 -0
- package/templates/default/packages/admin-ui/src/styles/base.css +65 -0
- package/templates/default/packages/admin-ui/src/styles/tokens.css +91 -0
- package/templates/default/packages/admin-ui/src/tanstack-table.d.ts +10 -0
- package/templates/default/packages/admin-ui/src/ui/alert-dialog.tsx +157 -0
- package/templates/default/packages/admin-ui/src/ui/alert.tsx +66 -0
- package/templates/default/packages/admin-ui/src/ui/avatar.tsx +53 -0
- package/templates/default/packages/admin-ui/src/ui/badge.tsx +46 -0
- package/templates/default/packages/admin-ui/src/ui/breadcrumb.tsx +108 -0
- package/templates/default/packages/admin-ui/src/ui/button.tsx +59 -0
- package/templates/default/packages/admin-ui/src/ui/calendar.tsx +69 -0
- package/templates/default/packages/admin-ui/src/ui/card.tsx +92 -0
- package/templates/default/packages/admin-ui/src/ui/chart.tsx +345 -0
- package/templates/default/packages/admin-ui/src/ui/checkbox.tsx +32 -0
- package/templates/default/packages/admin-ui/src/ui/collapsible.tsx +27 -0
- package/templates/default/packages/admin-ui/src/ui/command.tsx +161 -0
- package/templates/default/packages/admin-ui/src/ui/confirm-dialog.tsx +72 -0
- package/templates/default/packages/admin-ui/src/ui/date-picker.tsx +53 -0
- package/templates/default/packages/admin-ui/src/ui/dialog.tsx +143 -0
- package/templates/default/packages/admin-ui/src/ui/dropdown-menu.tsx +257 -0
- package/templates/default/packages/admin-ui/src/ui/form.tsx +168 -0
- package/templates/default/packages/admin-ui/src/ui/input-otp.tsx +84 -0
- package/templates/default/packages/admin-ui/src/ui/input.tsx +21 -0
- package/templates/default/packages/admin-ui/src/ui/label.tsx +24 -0
- package/templates/default/packages/admin-ui/src/ui/pagination.tsx +126 -0
- package/templates/default/packages/admin-ui/src/ui/password-input.tsx +46 -0
- package/templates/default/packages/admin-ui/src/ui/popover.tsx +48 -0
- package/templates/default/packages/admin-ui/src/ui/progress.tsx +31 -0
- package/templates/default/packages/admin-ui/src/ui/radio-group.tsx +45 -0
- package/templates/default/packages/admin-ui/src/ui/scroll-area.tsx +52 -0
- package/templates/default/packages/admin-ui/src/ui/select.tsx +185 -0
- package/templates/default/packages/admin-ui/src/ui/separator.tsx +28 -0
- package/templates/default/packages/admin-ui/src/ui/sheet.tsx +149 -0
- package/templates/default/packages/admin-ui/src/ui/sidebar.tsx +728 -0
- package/templates/default/packages/admin-ui/src/ui/skeleton.tsx +13 -0
- package/templates/default/packages/admin-ui/src/ui/sonner.tsx +25 -0
- package/templates/default/packages/admin-ui/src/ui/switch.tsx +31 -0
- package/templates/default/packages/admin-ui/src/ui/table.tsx +116 -0
- package/templates/default/packages/admin-ui/src/ui/tabs.tsx +66 -0
- package/templates/default/packages/admin-ui/src/ui/textarea.tsx +18 -0
- package/templates/default/packages/admin-ui/src/ui/toggle-group.tsx +60 -0
- package/templates/default/packages/admin-ui/src/ui/toggle.tsx +44 -0
- package/templates/default/packages/admin-ui/src/ui/tooltip.tsx +61 -0
- package/templates/default/packages/admin-ui/tsconfig.json +8 -0
- package/templates/default/packages/admin-ui/vite.config.ts +11 -0
- package/templates/default/packages/config/package.json +0 -2
- package/templates/default/packages/server-core/package.json +2 -0
- package/templates/default/packages/ui/components.json +21 -0
- package/templates/default/packages/ui/package.json +42 -5
- package/templates/default/packages/ui/src/accordion.tsx +1 -1
- package/templates/default/packages/ui/src/alert-dialog.tsx +4 -4
- package/templates/default/packages/ui/src/alert.tsx +1 -1
- package/templates/default/packages/ui/src/avatar.tsx +1 -1
- package/templates/default/packages/ui/src/badge.tsx +1 -1
- package/templates/default/packages/ui/src/breadcrumb.tsx +1 -1
- package/templates/default/packages/ui/src/button.tsx +1 -1
- package/templates/default/packages/ui/src/card.tsx +1 -1
- package/templates/default/packages/ui/src/checkbox.tsx +1 -1
- package/templates/default/packages/ui/src/dialog.tsx +3 -3
- package/templates/default/packages/ui/src/drawer.tsx +3 -3
- package/templates/default/packages/ui/src/dropdown-menu.tsx +3 -3
- package/templates/default/packages/ui/src/form.tsx +2 -2
- package/templates/default/packages/ui/src/hover-card.tsx +2 -2
- package/templates/default/packages/ui/src/input.tsx +1 -1
- package/templates/default/packages/ui/src/label.tsx +1 -1
- package/templates/default/packages/ui/src/pagination.tsx +2 -2
- package/templates/default/packages/ui/src/popover.tsx +2 -2
- package/templates/default/packages/ui/src/progress.tsx +1 -1
- package/templates/default/packages/ui/src/select.tsx +2 -2
- package/templates/default/packages/ui/src/separator.tsx +1 -1
- package/templates/default/packages/ui/src/skeleton.tsx +1 -1
- package/templates/default/packages/ui/src/table.tsx +1 -1
- package/templates/default/packages/ui/src/tabs.tsx +1 -1
- package/templates/default/packages/ui/src/textarea.tsx +1 -1
- package/templates/default/packages/ui/src/tooltip.tsx +3 -3
- package/templates/default/packages/ui/src/typography.tsx +1 -1
- package/templates/default/packages/ui/tsconfig.json +1 -6
- package/templates/default/pnpm-lock.yaml +1319 -936
- package/templates/default/postcss.config.cjs +0 -1
- package/templates/default/turbo.json +17 -8
- package/templates/default/worktree.config.json +5 -0
- package/templates/default/.env.ci +0 -32
- package/templates/default/.github/workflows/ci.yml +0 -99
- package/templates/default/.github/workflows/preview-db.yml +0 -134
- package/templates/default/.playwright-mcp/dashboard.png +0 -0
- package/templates/default/.playwright-mcp/web-home.png +0 -0
- package/templates/default/apps/web/panda.config.ts +0 -114
- package/templates/default/apps/web/src/components/ui/accordion.tsx +0 -64
- package/templates/default/apps/web/src/components/ui/alert-dialog.tsx +0 -135
- package/templates/default/apps/web/src/components/ui/alert.tsx +0 -60
- package/templates/default/apps/web/src/components/ui/aspect-ratio.tsx +0 -9
- package/templates/default/apps/web/src/components/ui/avatar.tsx +0 -41
- package/templates/default/apps/web/src/components/ui/badge.tsx +0 -39
- package/templates/default/apps/web/src/components/ui/breadcrumb.tsx +0 -101
- package/templates/default/apps/web/src/components/ui/button.tsx +0 -56
- package/templates/default/apps/web/src/components/ui/card.tsx +0 -75
- package/templates/default/apps/web/src/components/ui/checkbox.tsx +0 -29
- package/templates/default/apps/web/src/components/ui/data-table.tsx +0 -189
- package/templates/default/apps/web/src/components/ui/dialog-hook.tsx +0 -210
- package/templates/default/apps/web/src/components/ui/dialog.tsx +0 -129
- package/templates/default/apps/web/src/components/ui/drawer.tsx +0 -124
- package/templates/default/apps/web/src/components/ui/dropdown-menu.tsx +0 -228
- package/templates/default/apps/web/src/components/ui/form.tsx +0 -152
- package/templates/default/apps/web/src/components/ui/hover-card.tsx +0 -38
- package/templates/default/apps/web/src/components/ui/input.tsx +0 -21
- package/templates/default/apps/web/src/components/ui/label.tsx +0 -21
- package/templates/default/apps/web/src/components/ui/pagination.tsx +0 -105
- package/templates/default/apps/web/src/components/ui/popover.tsx +0 -42
- package/templates/default/apps/web/src/components/ui/progress.tsx +0 -28
- package/templates/default/apps/web/src/components/ui/select.tsx +0 -170
- package/templates/default/apps/web/src/components/ui/separator.tsx +0 -28
- package/templates/default/apps/web/src/components/ui/skeleton.tsx +0 -13
- package/templates/default/apps/web/src/components/ui/sonner.tsx +0 -25
- package/templates/default/apps/web/src/components/ui/table.tsx +0 -92
- package/templates/default/apps/web/src/components/ui/tabs.tsx +0 -54
- package/templates/default/apps/web/src/components/ui/textarea.tsx +0 -18
- package/templates/default/apps/web/src/components/ui/tooltip.tsx +0 -57
- package/templates/default/apps/web/src/components/ui/typography.tsx +0 -158
- package/templates/default/packages/config/panda.config.ts +0 -114
- package/templates/default/panda.config.ts +0 -114
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { CommandMenu } from "{{packageName}}/admin-ui/command-menu";
|
|
4
|
+
import { SidebarInset, SidebarProvider } from "{{packageName}}/admin-ui/ui/sidebar";
|
|
5
|
+
import { AppSidebar } from "./app-sidebar";
|
|
6
|
+
import { navGroups } from "./nav-config";
|
|
7
|
+
|
|
8
|
+
export function AdminLayout({ children }: { children: React.ReactNode }) {
|
|
9
|
+
return (
|
|
10
|
+
<SidebarProvider>
|
|
11
|
+
<AppSidebar />
|
|
12
|
+
<SidebarInset>{children}</SidebarInset>
|
|
13
|
+
<CommandMenu navGroups={navGroups} />
|
|
14
|
+
</SidebarProvider>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { NavGroup, NavUser, ThemeSwitch } from "{{packageName}}/admin-ui/layout";
|
|
4
|
+
import {
|
|
5
|
+
Sidebar,
|
|
6
|
+
SidebarContent,
|
|
7
|
+
SidebarFooter,
|
|
8
|
+
SidebarHeader,
|
|
9
|
+
SidebarMenu,
|
|
10
|
+
SidebarMenuButton,
|
|
11
|
+
SidebarMenuItem,
|
|
12
|
+
} from "{{packageName}}/admin-ui/ui/sidebar";
|
|
13
|
+
import { navGroups } from "./nav-config";
|
|
14
|
+
|
|
15
|
+
export function AppSidebar() {
|
|
16
|
+
return (
|
|
17
|
+
<Sidebar>
|
|
18
|
+
<SidebarHeader>
|
|
19
|
+
<SidebarMenu>
|
|
20
|
+
<SidebarMenuItem>
|
|
21
|
+
<SidebarMenuButton size="lg" asChild>
|
|
22
|
+
<a href="/dashboard">
|
|
23
|
+
<div className="flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground">
|
|
24
|
+
A
|
|
25
|
+
</div>
|
|
26
|
+
<div className="grid flex-1 text-left text-sm leading-tight">
|
|
27
|
+
<span className="truncate font-semibold">Admin</span>
|
|
28
|
+
<span className="truncate text-xs">管理画面</span>
|
|
29
|
+
</div>
|
|
30
|
+
</a>
|
|
31
|
+
</SidebarMenuButton>
|
|
32
|
+
</SidebarMenuItem>
|
|
33
|
+
</SidebarMenu>
|
|
34
|
+
</SidebarHeader>
|
|
35
|
+
<SidebarContent>
|
|
36
|
+
{navGroups.map((group) => (
|
|
37
|
+
<NavGroup key={group.title} group={group} />
|
|
38
|
+
))}
|
|
39
|
+
</SidebarContent>
|
|
40
|
+
<SidebarFooter>
|
|
41
|
+
<ThemeSwitch />
|
|
42
|
+
<NavUser
|
|
43
|
+
user={{
|
|
44
|
+
name: "Admin User",
|
|
45
|
+
email: "admin@example.com",
|
|
46
|
+
avatar: "",
|
|
47
|
+
}}
|
|
48
|
+
/>
|
|
49
|
+
</SidebarFooter>
|
|
50
|
+
</Sidebar>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { NavGroupType } from "{{packageName}}/admin-ui/layout";
|
|
2
|
+
import {
|
|
3
|
+
AlertTriangle,
|
|
4
|
+
HelpCircle,
|
|
5
|
+
LayoutDashboard,
|
|
6
|
+
ListChecks,
|
|
7
|
+
MessageSquare,
|
|
8
|
+
Package,
|
|
9
|
+
Settings,
|
|
10
|
+
Shield,
|
|
11
|
+
Users,
|
|
12
|
+
} from "lucide-react";
|
|
13
|
+
|
|
14
|
+
export const navGroups: NavGroupType[] = [
|
|
15
|
+
{
|
|
16
|
+
title: "General",
|
|
17
|
+
items: [
|
|
18
|
+
{
|
|
19
|
+
title: "Dashboard",
|
|
20
|
+
url: "/dashboard",
|
|
21
|
+
icon: LayoutDashboard,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: "Tasks",
|
|
25
|
+
url: "/dashboard/tasks",
|
|
26
|
+
icon: ListChecks,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: "Apps",
|
|
30
|
+
url: "/dashboard/apps",
|
|
31
|
+
icon: Package,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: "Chats",
|
|
35
|
+
url: "/dashboard/chats",
|
|
36
|
+
icon: MessageSquare,
|
|
37
|
+
badge: "5",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "Users",
|
|
41
|
+
url: "/dashboard/users",
|
|
42
|
+
icon: Users,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
title: "Other",
|
|
48
|
+
items: [
|
|
49
|
+
{
|
|
50
|
+
title: "Settings",
|
|
51
|
+
icon: Settings,
|
|
52
|
+
items: [
|
|
53
|
+
{
|
|
54
|
+
title: "Profile",
|
|
55
|
+
url: "/dashboard/settings/profile",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
title: "Account",
|
|
59
|
+
url: "/dashboard/settings/account",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title: "Appearance",
|
|
63
|
+
url: "/dashboard/settings/appearance",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: "Notifications",
|
|
67
|
+
url: "/dashboard/settings/notifications",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: "Display",
|
|
71
|
+
url: "/dashboard/settings/display",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
title: "Help Center",
|
|
77
|
+
url: "/dashboard/help-center",
|
|
78
|
+
icon: HelpCircle,
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: "Pages",
|
|
84
|
+
items: [
|
|
85
|
+
{
|
|
86
|
+
title: "Auth",
|
|
87
|
+
icon: Shield,
|
|
88
|
+
items: [
|
|
89
|
+
{
|
|
90
|
+
title: "Sign In",
|
|
91
|
+
url: "/sign-in",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
title: "Sign Up",
|
|
95
|
+
url: "/sign-up",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
title: "Forgot Password",
|
|
99
|
+
url: "/forgot-password",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
title: "OTP",
|
|
103
|
+
url: "/otp",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
title: "Errors",
|
|
109
|
+
icon: AlertTriangle,
|
|
110
|
+
items: [
|
|
111
|
+
{
|
|
112
|
+
title: "401",
|
|
113
|
+
url: "/401",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
title: "403",
|
|
117
|
+
url: "/403",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
title: "500",
|
|
121
|
+
url: "/500",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
title: "Maintenance",
|
|
125
|
+
url: "/maintenance",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
4
|
+
|
|
5
|
+
export function ThemeProvider({
|
|
6
|
+
children,
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof NextThemesProvider>) {
|
|
9
|
+
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cn } from "{{packageName}}/admin-ui/lib/utils";
|
|
4
|
+
import { Popover, PopoverContent, PopoverTrigger } from "{{packageName}}/admin-ui/ui/popover";
|
|
5
|
+
import {
|
|
6
|
+
Tooltip,
|
|
7
|
+
TooltipContent,
|
|
8
|
+
TooltipProvider,
|
|
9
|
+
TooltipTrigger,
|
|
10
|
+
} from "{{packageName}}/admin-ui/ui/tooltip";
|
|
11
|
+
import { useRef, useState } from "react";
|
|
12
|
+
|
|
13
|
+
type LongTextProps = {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
contentClassName?: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export function LongText({ children, className = "", contentClassName = "" }: LongTextProps) {
|
|
20
|
+
const ref = useRef<HTMLDivElement>(null);
|
|
21
|
+
const [isOverflown, setIsOverflown] = useState(false);
|
|
22
|
+
|
|
23
|
+
// Use ref callback to check overflow when element is mounted
|
|
24
|
+
const refCallback = (node: HTMLDivElement | null) => {
|
|
25
|
+
ref.current = node;
|
|
26
|
+
if (node && checkOverflow(node)) {
|
|
27
|
+
queueMicrotask(() => setIsOverflown(true));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
if (!isOverflown)
|
|
32
|
+
return (
|
|
33
|
+
<div ref={refCallback} className={cn("truncate", className)}>
|
|
34
|
+
{children}
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<>
|
|
40
|
+
<div className="hidden sm:block">
|
|
41
|
+
<TooltipProvider delayDuration={0}>
|
|
42
|
+
<Tooltip>
|
|
43
|
+
<TooltipTrigger asChild>
|
|
44
|
+
<div ref={refCallback} className={cn("truncate", className)}>
|
|
45
|
+
{children}
|
|
46
|
+
</div>
|
|
47
|
+
</TooltipTrigger>
|
|
48
|
+
<TooltipContent>
|
|
49
|
+
<p className={contentClassName}>{children}</p>
|
|
50
|
+
</TooltipContent>
|
|
51
|
+
</Tooltip>
|
|
52
|
+
</TooltipProvider>
|
|
53
|
+
</div>
|
|
54
|
+
<div className="sm:hidden">
|
|
55
|
+
<Popover>
|
|
56
|
+
<PopoverTrigger asChild>
|
|
57
|
+
<div ref={refCallback} className={cn("truncate", className)}>
|
|
58
|
+
{children}
|
|
59
|
+
</div>
|
|
60
|
+
</PopoverTrigger>
|
|
61
|
+
<PopoverContent className={cn("w-fit", contentClassName)}>
|
|
62
|
+
<p>{children}</p>
|
|
63
|
+
</PopoverContent>
|
|
64
|
+
</Popover>
|
|
65
|
+
</div>
|
|
66
|
+
</>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const checkOverflow = (textContainer: HTMLDivElement | null) => {
|
|
71
|
+
if (textContainer) {
|
|
72
|
+
return (
|
|
73
|
+
textContainer.offsetHeight < textContainer.scrollHeight ||
|
|
74
|
+
textContainer.offsetWidth < textContainer.scrollWidth
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
return false;
|
|
78
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cn } from "{{packageName}}/admin-ui/lib/utils";
|
|
4
|
+
import { Input } from "{{packageName}}/admin-ui/ui/input";
|
|
5
|
+
import { Search } from "lucide-react";
|
|
6
|
+
|
|
7
|
+
interface SearchInputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
|
|
8
|
+
|
|
9
|
+
export function SearchInput({ className, ...props }: SearchInputProps) {
|
|
10
|
+
return (
|
|
11
|
+
<div className={cn("relative", className)}>
|
|
12
|
+
<Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />
|
|
13
|
+
<Input type="search" className="pl-8" {...props} />
|
|
14
|
+
</div>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cn } from "{{packageName}}/admin-ui/lib/utils";
|
|
4
|
+
import { FormControl } from "{{packageName}}/admin-ui/ui/form";
|
|
5
|
+
import {
|
|
6
|
+
Select,
|
|
7
|
+
SelectContent,
|
|
8
|
+
SelectItem,
|
|
9
|
+
SelectTrigger,
|
|
10
|
+
SelectValue,
|
|
11
|
+
} from "{{packageName}}/admin-ui/ui/select";
|
|
12
|
+
import { Loader } from "lucide-react";
|
|
13
|
+
|
|
14
|
+
type SelectDropdownProps = {
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
defaultValue: string | undefined;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
isPending?: boolean;
|
|
19
|
+
items: { label: string; value: string }[] | undefined;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
isControlled?: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export function SelectDropdown({
|
|
26
|
+
defaultValue,
|
|
27
|
+
onValueChange,
|
|
28
|
+
isPending,
|
|
29
|
+
items,
|
|
30
|
+
placeholder,
|
|
31
|
+
disabled,
|
|
32
|
+
className = "",
|
|
33
|
+
isControlled = false,
|
|
34
|
+
}: SelectDropdownProps) {
|
|
35
|
+
const defaultState = isControlled
|
|
36
|
+
? { value: defaultValue, onValueChange }
|
|
37
|
+
: { defaultValue, onValueChange };
|
|
38
|
+
return (
|
|
39
|
+
<Select {...defaultState}>
|
|
40
|
+
<FormControl>
|
|
41
|
+
<SelectTrigger disabled={disabled} className={cn(className)}>
|
|
42
|
+
<SelectValue placeholder={placeholder ?? "Select"} />
|
|
43
|
+
</SelectTrigger>
|
|
44
|
+
</FormControl>
|
|
45
|
+
<SelectContent>
|
|
46
|
+
{isPending ? (
|
|
47
|
+
<SelectItem disabled value="loading" className="h-14">
|
|
48
|
+
<div className="flex items-center justify-center gap-2">
|
|
49
|
+
<Loader className="h-5 w-5 animate-spin" />
|
|
50
|
+
{" "}
|
|
51
|
+
Loading...
|
|
52
|
+
</div>
|
|
53
|
+
</SelectItem>
|
|
54
|
+
) : (
|
|
55
|
+
items?.map(({ label, value }) => (
|
|
56
|
+
<SelectItem key={value} value={value}>
|
|
57
|
+
{label}
|
|
58
|
+
</SelectItem>
|
|
59
|
+
))
|
|
60
|
+
)}
|
|
61
|
+
</SelectContent>
|
|
62
|
+
</Select>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BookOpen,
|
|
3
|
+
CreditCard,
|
|
4
|
+
Figma,
|
|
5
|
+
FileText,
|
|
6
|
+
GitBranch,
|
|
7
|
+
Github,
|
|
8
|
+
Mail,
|
|
9
|
+
MessageCircle,
|
|
10
|
+
MessageSquare,
|
|
11
|
+
Package,
|
|
12
|
+
Phone,
|
|
13
|
+
Trello,
|
|
14
|
+
Users,
|
|
15
|
+
Video,
|
|
16
|
+
} from "lucide-react";
|
|
17
|
+
|
|
18
|
+
export type App = {
|
|
19
|
+
name: string;
|
|
20
|
+
logo: React.ReactElement;
|
|
21
|
+
connected: boolean;
|
|
22
|
+
desc: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const apps: App[] = [
|
|
26
|
+
{
|
|
27
|
+
name: "Telegram",
|
|
28
|
+
logo: <MessageCircle className="h-8 w-8" />,
|
|
29
|
+
connected: false,
|
|
30
|
+
desc: "Connect with Telegram for real-time communication.",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "Notion",
|
|
34
|
+
logo: <FileText className="h-8 w-8" />,
|
|
35
|
+
connected: true,
|
|
36
|
+
desc: "Effortlessly sync Notion pages for seamless collaboration.",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "Figma",
|
|
40
|
+
logo: <Figma className="h-8 w-8" />,
|
|
41
|
+
connected: true,
|
|
42
|
+
desc: "View and collaborate on Figma designs in one place.",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "Trello",
|
|
46
|
+
logo: <Trello className="h-8 w-8" />,
|
|
47
|
+
connected: false,
|
|
48
|
+
desc: "Sync Trello cards for streamlined project management.",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "Slack",
|
|
52
|
+
logo: <MessageSquare className="h-8 w-8" />,
|
|
53
|
+
connected: false,
|
|
54
|
+
desc: "Integrate Slack for efficient team communication",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "Zoom",
|
|
58
|
+
logo: <Video className="h-8 w-8" />,
|
|
59
|
+
connected: true,
|
|
60
|
+
desc: "Host Zoom meetings directly from the dashboard.",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "Stripe",
|
|
64
|
+
logo: <CreditCard className="h-8 w-8" />,
|
|
65
|
+
connected: false,
|
|
66
|
+
desc: "Easily manage Stripe transactions and payments.",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "Gmail",
|
|
70
|
+
logo: <Mail className="h-8 w-8" />,
|
|
71
|
+
connected: true,
|
|
72
|
+
desc: "Access and manage Gmail messages effortlessly.",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "Medium",
|
|
76
|
+
logo: <BookOpen className="h-8 w-8" />,
|
|
77
|
+
connected: false,
|
|
78
|
+
desc: "Explore and share Medium stories on your dashboard.",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "Skype",
|
|
82
|
+
logo: <Phone className="h-8 w-8" />,
|
|
83
|
+
connected: false,
|
|
84
|
+
desc: "Connect with Skype contacts seamlessly.",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "Docker",
|
|
88
|
+
logo: <Package className="h-8 w-8" />,
|
|
89
|
+
connected: false,
|
|
90
|
+
desc: "Effortlessly manage Docker containers on your dashboard.",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "GitHub",
|
|
94
|
+
logo: <Github className="h-8 w-8" />,
|
|
95
|
+
connected: false,
|
|
96
|
+
desc: "Streamline code management with GitHub integration.",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "GitLab",
|
|
100
|
+
logo: <GitBranch className="h-8 w-8" />,
|
|
101
|
+
connected: false,
|
|
102
|
+
desc: "Efficiently manage code projects with GitLab integration.",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "Discord",
|
|
106
|
+
logo: <Users className="h-8 w-8" />,
|
|
107
|
+
connected: false,
|
|
108
|
+
desc: "Connect with Discord for seamless team communication.",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "WhatsApp",
|
|
112
|
+
logo: <MessageCircle className="h-8 w-8" />,
|
|
113
|
+
connected: false,
|
|
114
|
+
desc: "Easily integrate WhatsApp for direct messaging.",
|
|
115
|
+
},
|
|
116
|
+
];
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export type Convo = {
|
|
2
|
+
sender: string;
|
|
3
|
+
message: string;
|
|
4
|
+
timestamp: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type ChatUser = {
|
|
8
|
+
id: string;
|
|
9
|
+
profile: string;
|
|
10
|
+
username: string;
|
|
11
|
+
fullName: string;
|
|
12
|
+
title: string;
|
|
13
|
+
messages: Convo[];
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const conversations: ChatUser[] = [
|
|
17
|
+
{
|
|
18
|
+
id: "conv1",
|
|
19
|
+
profile: "https://randomuser.me/api/portraits/men/32.jpg",
|
|
20
|
+
username: "alex_dev",
|
|
21
|
+
fullName: "Alex John",
|
|
22
|
+
title: "Senior Backend Dev",
|
|
23
|
+
messages: [
|
|
24
|
+
{
|
|
25
|
+
sender: "You",
|
|
26
|
+
message: "See you later, Alex!",
|
|
27
|
+
timestamp: "2024-08-24T11:15:15",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
sender: "Alex",
|
|
31
|
+
message: "Alright, talk to you later!",
|
|
32
|
+
timestamp: "2024-08-24T11:11:30",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
sender: "You",
|
|
36
|
+
message: "For sure. Anyway, I should get back to reviewing the project.",
|
|
37
|
+
timestamp: "2024-08-23T09:26:50",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
sender: "Alex",
|
|
41
|
+
message: "Yeah, let me know what you think.",
|
|
42
|
+
timestamp: "2024-08-23T09:25:15",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
sender: "You",
|
|
46
|
+
message: "Oh, nice! I've been waiting for that. I'll check it out later.",
|
|
47
|
+
timestamp: "2024-08-23T09:24:30",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
sender: "Alex",
|
|
51
|
+
message: "They've added a dark mode option! It looks really sleek.",
|
|
52
|
+
timestamp: "2024-08-23T09:23:10",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
sender: "You",
|
|
56
|
+
message: "No, not yet. What's new?",
|
|
57
|
+
timestamp: "2024-08-23T09:22:00",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
sender: "Alex",
|
|
61
|
+
message: "By the way, have you seen the new feature update?",
|
|
62
|
+
timestamp: "2024-08-23T09:21:05",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "conv2",
|
|
68
|
+
profile: "https://randomuser.me/api/portraits/women/44.jpg",
|
|
69
|
+
username: "sarah_designer",
|
|
70
|
+
fullName: "Sarah Miller",
|
|
71
|
+
title: "Lead Designer",
|
|
72
|
+
messages: [
|
|
73
|
+
{
|
|
74
|
+
sender: "You",
|
|
75
|
+
message: "Thanks! Looking forward to it.",
|
|
76
|
+
timestamp: "2024-08-23T14:30:00",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
sender: "Sarah",
|
|
80
|
+
message: "I'll send you the final mockups by tomorrow.",
|
|
81
|
+
timestamp: "2024-08-23T14:28:00",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
sender: "You",
|
|
85
|
+
message: "That sounds great!",
|
|
86
|
+
timestamp: "2024-08-23T14:25:00",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: "conv3",
|
|
92
|
+
profile: "https://randomuser.me/api/portraits/men/45.jpg",
|
|
93
|
+
username: "mike_pm",
|
|
94
|
+
fullName: "Mike Johnson",
|
|
95
|
+
title: "Project Manager",
|
|
96
|
+
messages: [
|
|
97
|
+
{
|
|
98
|
+
sender: "Mike",
|
|
99
|
+
message: "Can we schedule a meeting for tomorrow?",
|
|
100
|
+
timestamp: "2024-08-22T10:00:00",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
sender: "You",
|
|
104
|
+
message: "Sure, what time works for you?",
|
|
105
|
+
timestamp: "2024-08-22T10:05:00",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
sender: "Mike",
|
|
109
|
+
message: "How about 2 PM?",
|
|
110
|
+
timestamp: "2024-08-22T10:10:00",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
];
|