@pylonsync/create-pylon 0.22.74 → 0.22.76
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/bin/create-pylon.js +24 -74
- package/package.json +1 -1
- package/skill/SKILL.md +8 -11
- package/templates/_root/README.md +2 -8
- package/templates/agency/AGENTS.md +17 -0
- package/templates/agency/app/globals.css +5 -1
- package/templates/agency/app/internal/components/page.tsx +248 -0
- package/templates/agency/app/internal/design/page.tsx +169 -0
- package/templates/agency/app/internal/layout.tsx +89 -0
- package/templates/agency/app/internal/sections.ts +26 -0
- package/templates/agency/app/internal/showcase.tsx +43 -0
- package/templates/agency/app/robots.ts +1 -1
- package/templates/agency/components/ui/button.tsx +22 -20
- package/templates/agency/components/ui/dialog.tsx +77 -64
- package/templates/agency/components/ui/input.tsx +5 -5
- package/templates/agency/components/ui/label.tsx +5 -3
- package/templates/agency/components/ui/select.tsx +81 -19
- package/templates/agency/components/ui/textarea.tsx +5 -3
- package/templates/agency/lib/utils.ts +4 -4
- package/templates/agency/package.json +3 -3
- package/templates/ai-chat/AGENTS.md +17 -0
- package/templates/ai-chat/app/globals.css +5 -1
- package/templates/ai-chat/app/internal/components/page.tsx +248 -0
- package/templates/ai-chat/app/internal/design/page.tsx +173 -0
- package/templates/ai-chat/app/internal/layout.tsx +89 -0
- package/templates/ai-chat/app/internal/sections.ts +26 -0
- package/templates/ai-chat/app/internal/showcase.tsx +43 -0
- package/templates/ai-chat/app/robots.ts +1 -1
- package/templates/ai-chat/components/ui/button.tsx +22 -20
- package/templates/ai-chat/components/ui/dialog.tsx +77 -64
- package/templates/ai-chat/components/ui/input.tsx +5 -5
- package/templates/ai-chat/components/ui/label.tsx +5 -3
- package/templates/ai-chat/components/ui/select.tsx +81 -19
- package/templates/ai-chat/components/ui/textarea.tsx +5 -3
- package/templates/ai-chat/lib/utils.ts +4 -4
- package/templates/ai-chat/package.json +4 -4
- package/templates/ai-studio/AGENTS.md +17 -0
- package/templates/ai-studio/app/globals.css +5 -1
- package/templates/ai-studio/app/internal/components/page.tsx +248 -0
- package/templates/ai-studio/app/internal/design/page.tsx +168 -0
- package/templates/ai-studio/app/internal/layout.tsx +89 -0
- package/templates/ai-studio/app/internal/sections.ts +26 -0
- package/templates/ai-studio/app/internal/showcase.tsx +43 -0
- package/templates/ai-studio/app/robots.ts +1 -1
- package/templates/ai-studio/components/ui/button.tsx +22 -20
- package/templates/ai-studio/components/ui/dialog.tsx +77 -64
- package/templates/ai-studio/components/ui/input.tsx +5 -5
- package/templates/ai-studio/components/ui/label.tsx +5 -3
- package/templates/ai-studio/components/ui/select.tsx +81 -19
- package/templates/ai-studio/components/ui/textarea.tsx +5 -3
- package/templates/ai-studio/lib/utils.ts +4 -4
- package/templates/ai-studio/package.json +4 -4
- package/templates/barebones/AGENTS.md +17 -0
- package/templates/barebones/README.md +6 -3
- package/templates/barebones/app/(app)/layout.tsx +16 -0
- package/templates/barebones/app/{page.tsx → (app)/page.tsx} +2 -2
- package/templates/barebones/app/error.tsx +1 -1
- package/templates/barebones/app/globals.css +9 -7
- package/templates/barebones/app/internal/components/page.tsx +248 -0
- package/templates/barebones/app/internal/design/page.tsx +165 -0
- package/templates/barebones/app/internal/layout.tsx +89 -0
- package/templates/barebones/app/internal/sections.ts +26 -0
- package/templates/barebones/app/internal/showcase.tsx +43 -0
- package/templates/barebones/app/layout.tsx +4 -6
- package/templates/barebones/app/not-found.tsx +2 -4
- package/templates/barebones/app/robots.ts +1 -1
- package/templates/barebones/components/ui/button.tsx +22 -20
- package/templates/barebones/components/ui/dialog.tsx +77 -64
- package/templates/barebones/components/ui/input.tsx +5 -5
- package/templates/barebones/components/ui/label.tsx +5 -3
- package/templates/barebones/components/ui/select.tsx +81 -19
- package/templates/barebones/components/ui/textarea.tsx +5 -3
- package/templates/barebones/lib/utils.ts +4 -4
- package/templates/barebones/package.json +3 -3
- package/templates/chat/AGENTS.md +17 -0
- package/templates/chat/app/globals.css +7 -5
- package/templates/chat/app/internal/components/page.tsx +248 -0
- package/templates/chat/app/internal/design/page.tsx +170 -0
- package/templates/chat/app/internal/layout.tsx +89 -0
- package/templates/chat/app/internal/sections.ts +26 -0
- package/templates/chat/app/internal/showcase.tsx +43 -0
- package/templates/chat/app/not-found.tsx +1 -3
- package/templates/chat/app/robots.ts +1 -1
- package/templates/chat/components/ui/button.tsx +22 -20
- package/templates/chat/components/ui/dialog.tsx +77 -64
- package/templates/chat/components/ui/input.tsx +5 -5
- package/templates/chat/components/ui/label.tsx +5 -3
- package/templates/chat/components/ui/select.tsx +81 -19
- package/templates/chat/components/ui/textarea.tsx +5 -3
- package/templates/chat/lib/utils.ts +4 -4
- package/templates/chat/package.json +4 -4
- package/templates/consumer/AGENTS.md +17 -0
- package/templates/consumer/app/globals.css +9 -7
- package/templates/consumer/app/internal/components/page.tsx +248 -0
- package/templates/consumer/app/internal/design/page.tsx +167 -0
- package/templates/consumer/app/internal/layout.tsx +89 -0
- package/templates/consumer/app/internal/sections.ts +26 -0
- package/templates/consumer/app/internal/showcase.tsx +43 -0
- package/templates/consumer/app/robots.ts +1 -1
- package/templates/consumer/components/ui/button.tsx +22 -20
- package/templates/consumer/components/ui/dialog.tsx +77 -64
- package/templates/consumer/components/ui/input.tsx +5 -5
- package/templates/consumer/components/ui/label.tsx +5 -3
- package/templates/consumer/components/ui/select.tsx +81 -19
- package/templates/consumer/components/ui/textarea.tsx +5 -3
- package/templates/consumer/lib/utils.ts +4 -4
- package/templates/consumer/package.json +4 -4
- package/templates/creator/AGENTS.md +17 -0
- package/templates/creator/app/globals.css +5 -1
- package/templates/creator/app/internal/components/page.tsx +248 -0
- package/templates/creator/app/internal/design/page.tsx +171 -0
- package/templates/creator/app/internal/layout.tsx +89 -0
- package/templates/creator/app/internal/sections.ts +26 -0
- package/templates/creator/app/internal/showcase.tsx +43 -0
- package/templates/creator/app/robots.ts +1 -1
- package/templates/creator/components/ui/button.tsx +22 -20
- package/templates/creator/components/ui/dialog.tsx +77 -64
- package/templates/creator/components/ui/input.tsx +5 -5
- package/templates/creator/components/ui/label.tsx +5 -3
- package/templates/creator/components/ui/select.tsx +81 -19
- package/templates/creator/components/ui/textarea.tsx +5 -3
- package/templates/creator/lib/utils.ts +4 -4
- package/templates/creator/package.json +4 -4
- package/templates/crm/AGENTS.md +17 -0
- package/templates/crm/README.md +3 -4
- package/templates/crm/app/deals/[id]/deal-view.tsx +9 -14
- package/templates/crm/app/globals.css +5 -2
- package/templates/crm/app/internal/components/page.tsx +282 -0
- package/templates/crm/app/internal/design/page.tsx +163 -0
- package/templates/crm/app/internal/layout.tsx +89 -0
- package/templates/crm/app/internal/sections.ts +27 -0
- package/templates/crm/app/internal/showcase.tsx +43 -0
- package/templates/crm/app/not-found.tsx +1 -3
- package/templates/crm/app/robots.ts +1 -1
- package/templates/crm/components/activity-timeline.tsx +6 -8
- package/templates/crm/components/app-shell.tsx +25 -26
- package/templates/crm/components/deal-dialog.tsx +15 -17
- package/templates/crm/components/record-dialog.tsx +10 -11
- package/templates/crm/components/ui/button.tsx +22 -20
- package/templates/crm/components/ui/dialog.tsx +77 -64
- package/templates/crm/components/ui/input.tsx +5 -5
- package/templates/crm/components/ui/label.tsx +5 -3
- package/templates/crm/components/ui/select.tsx +81 -19
- package/templates/crm/components/ui/sheet.tsx +64 -0
- package/templates/crm/components/ui/textarea.tsx +5 -3
- package/templates/crm/lib/utils.ts +4 -4
- package/templates/crm/package.json +4 -4
- package/templates/directory/AGENTS.md +17 -0
- package/templates/directory/app/globals.css +5 -1
- package/templates/directory/app/internal/components/page.tsx +248 -0
- package/templates/directory/app/internal/design/page.tsx +168 -0
- package/templates/directory/app/internal/layout.tsx +89 -0
- package/templates/directory/app/internal/sections.ts +26 -0
- package/templates/directory/app/internal/showcase.tsx +43 -0
- package/templates/directory/app/robots.ts +1 -1
- package/templates/directory/components/ui/button.tsx +22 -20
- package/templates/directory/components/ui/dialog.tsx +77 -64
- package/templates/directory/components/ui/input.tsx +5 -5
- package/templates/directory/components/ui/label.tsx +5 -3
- package/templates/directory/components/ui/select.tsx +81 -19
- package/templates/directory/components/ui/textarea.tsx +5 -3
- package/templates/directory/lib/utils.ts +4 -4
- package/templates/directory/package.json +4 -4
- package/templates/helpdesk/AGENTS.md +17 -0
- package/templates/helpdesk/README.md +1 -1
- package/templates/helpdesk/app/globals.css +5 -2
- package/templates/helpdesk/app/internal/components/page.tsx +282 -0
- package/templates/helpdesk/app/internal/design/page.tsx +163 -0
- package/templates/helpdesk/app/internal/layout.tsx +89 -0
- package/templates/helpdesk/app/internal/sections.ts +27 -0
- package/templates/helpdesk/app/internal/showcase.tsx +43 -0
- package/templates/helpdesk/app/not-found.tsx +1 -3
- package/templates/helpdesk/app/robots.ts +1 -1
- package/templates/helpdesk/app/tickets/[id]/ticket-view.tsx +22 -29
- package/templates/helpdesk/components/app-shell.tsx +25 -26
- package/templates/helpdesk/components/new-ticket-dialog.tsx +15 -17
- package/templates/helpdesk/components/record-dialog.tsx +10 -11
- package/templates/helpdesk/components/ui/button.tsx +22 -20
- package/templates/helpdesk/components/ui/dialog.tsx +77 -64
- package/templates/helpdesk/components/ui/input.tsx +5 -5
- package/templates/helpdesk/components/ui/label.tsx +5 -3
- package/templates/helpdesk/components/ui/select.tsx +81 -19
- package/templates/helpdesk/components/ui/sheet.tsx +64 -0
- package/templates/helpdesk/components/ui/textarea.tsx +5 -3
- package/templates/helpdesk/lib/utils.ts +4 -4
- package/templates/helpdesk/package.json +4 -4
- package/templates/imessage/AGENTS.md +17 -0
- package/templates/imessage/app/globals.css +4 -0
- package/templates/imessage/app/internal/components/page.tsx +248 -0
- package/templates/imessage/app/internal/design/page.tsx +163 -0
- package/templates/imessage/app/internal/layout.tsx +89 -0
- package/templates/imessage/app/internal/sections.ts +26 -0
- package/templates/imessage/app/internal/showcase.tsx +43 -0
- package/templates/imessage/components/ui/button.tsx +22 -20
- package/templates/imessage/components/ui/dialog.tsx +77 -64
- package/templates/imessage/components/ui/input.tsx +5 -5
- package/templates/imessage/components/ui/label.tsx +5 -3
- package/templates/imessage/components/ui/select.tsx +81 -19
- package/templates/imessage/components/ui/textarea.tsx +5 -3
- package/templates/imessage/lib/utils.ts +4 -4
- package/templates/imessage/package.json +4 -4
- package/templates/inventory/AGENTS.md +17 -0
- package/templates/inventory/README.md +1 -1
- package/templates/inventory/app/globals.css +5 -2
- package/templates/inventory/app/internal/components/page.tsx +282 -0
- package/templates/inventory/app/internal/design/page.tsx +163 -0
- package/templates/inventory/app/internal/layout.tsx +89 -0
- package/templates/inventory/app/internal/sections.ts +27 -0
- package/templates/inventory/app/internal/showcase.tsx +43 -0
- package/templates/inventory/app/not-found.tsx +1 -3
- package/templates/inventory/app/products/[id]/product-view.tsx +1 -3
- package/templates/inventory/app/robots.ts +1 -1
- package/templates/inventory/components/app-shell.tsx +25 -26
- package/templates/inventory/components/movement-dialog.tsx +15 -17
- package/templates/inventory/components/record-dialog.tsx +10 -11
- package/templates/inventory/components/ui/button.tsx +22 -20
- package/templates/inventory/components/ui/dialog.tsx +77 -64
- package/templates/inventory/components/ui/input.tsx +5 -5
- package/templates/inventory/components/ui/label.tsx +5 -3
- package/templates/inventory/components/ui/select.tsx +81 -19
- package/templates/inventory/components/ui/sheet.tsx +64 -0
- package/templates/inventory/components/ui/textarea.tsx +5 -3
- package/templates/inventory/lib/utils.ts +4 -4
- package/templates/inventory/package.json +4 -4
- package/templates/inventory/tests/components.test.tsx +27 -14
- package/templates/invoices/AGENTS.md +17 -0
- package/templates/invoices/README.md +1 -1
- package/templates/invoices/app/globals.css +5 -2
- package/templates/invoices/app/internal/components/page.tsx +282 -0
- package/templates/invoices/app/internal/design/page.tsx +163 -0
- package/templates/invoices/app/internal/layout.tsx +89 -0
- package/templates/invoices/app/internal/sections.ts +27 -0
- package/templates/invoices/app/internal/showcase.tsx +43 -0
- package/templates/invoices/app/invoices/[id]/invoice-view.tsx +20 -26
- package/templates/invoices/app/not-found.tsx +1 -3
- package/templates/invoices/app/robots.ts +1 -1
- package/templates/invoices/components/app-shell.tsx +25 -26
- package/templates/invoices/components/payment-dialog.tsx +6 -8
- package/templates/invoices/components/record-dialog.tsx +10 -11
- package/templates/invoices/components/ui/button.tsx +22 -20
- package/templates/invoices/components/ui/dialog.tsx +77 -64
- package/templates/invoices/components/ui/input.tsx +5 -5
- package/templates/invoices/components/ui/label.tsx +5 -3
- package/templates/invoices/components/ui/select.tsx +81 -19
- package/templates/invoices/components/ui/sheet.tsx +64 -0
- package/templates/invoices/components/ui/textarea.tsx +5 -3
- package/templates/invoices/lib/utils.ts +4 -4
- package/templates/invoices/package.json +4 -4
- package/templates/local-service/AGENTS.md +17 -0
- package/templates/local-service/app/globals.css +5 -1
- package/templates/local-service/app/internal/components/page.tsx +248 -0
- package/templates/local-service/app/internal/design/page.tsx +170 -0
- package/templates/local-service/app/internal/layout.tsx +89 -0
- package/templates/local-service/app/internal/sections.ts +26 -0
- package/templates/local-service/app/internal/showcase.tsx +43 -0
- package/templates/local-service/app/robots.ts +1 -1
- package/templates/local-service/components/ui/button.tsx +22 -20
- package/templates/local-service/components/ui/dialog.tsx +77 -64
- package/templates/local-service/components/ui/input.tsx +5 -5
- package/templates/local-service/components/ui/label.tsx +5 -3
- package/templates/local-service/components/ui/select.tsx +81 -19
- package/templates/local-service/components/ui/textarea.tsx +5 -3
- package/templates/local-service/lib/utils.ts +4 -4
- package/templates/local-service/package.json +4 -4
- package/templates/marketplace/AGENTS.md +17 -0
- package/templates/marketplace/README.md +8 -5
- package/templates/marketplace/app/(market)/layout.tsx +113 -0
- package/templates/marketplace/app/{listing → (market)/listing}/[id]/page.tsx +7 -7
- package/templates/marketplace/app/{me → (market)/me}/page.tsx +1 -1
- package/templates/marketplace/app/{not-found.tsx → (market)/not-found.tsx} +1 -3
- package/templates/marketplace/app/{page.tsx → (market)/page.tsx} +5 -5
- package/templates/marketplace/app/{sell → (market)/sell}/page.tsx +1 -1
- package/templates/marketplace/app/error.tsx +1 -3
- package/templates/marketplace/app/globals.css +4 -0
- package/templates/marketplace/app/internal/components/page.tsx +335 -0
- package/templates/marketplace/app/internal/design/page.tsx +158 -0
- package/templates/marketplace/app/internal/layout.tsx +89 -0
- package/templates/marketplace/app/internal/sections.ts +30 -0
- package/templates/marketplace/app/internal/showcase.tsx +43 -0
- package/templates/marketplace/app/layout.tsx +4 -100
- package/templates/marketplace/app/robots.ts +1 -1
- package/templates/marketplace/client/ListingCard.tsx +1 -1
- package/templates/marketplace/components/ui/button.tsx +22 -21
- package/templates/marketplace/components/ui/dialog.tsx +77 -64
- package/templates/marketplace/components/ui/input.tsx +5 -5
- package/templates/marketplace/components/ui/label.tsx +5 -4
- package/templates/marketplace/components/ui/select.tsx +101 -0
- package/templates/marketplace/components/ui/separator.tsx +5 -8
- package/templates/marketplace/components/ui/textarea.tsx +5 -3
- package/templates/marketplace/lib/utils.ts +4 -4
- package/templates/marketplace/package.json +3 -5
- package/templates/projects/AGENTS.md +17 -0
- package/templates/projects/README.md +1 -1
- package/templates/projects/app/globals.css +5 -2
- package/templates/projects/app/internal/components/page.tsx +282 -0
- package/templates/projects/app/internal/design/page.tsx +163 -0
- package/templates/projects/app/internal/layout.tsx +89 -0
- package/templates/projects/app/internal/sections.ts +27 -0
- package/templates/projects/app/internal/showcase.tsx +43 -0
- package/templates/projects/app/not-found.tsx +1 -3
- package/templates/projects/app/projects/[id]/project-view.tsx +9 -14
- package/templates/projects/app/robots.ts +1 -1
- package/templates/projects/components/app-shell.tsx +25 -26
- package/templates/projects/components/record-dialog.tsx +10 -11
- package/templates/projects/components/time-dialog.tsx +6 -8
- package/templates/projects/components/ui/button.tsx +22 -20
- package/templates/projects/components/ui/dialog.tsx +77 -64
- package/templates/projects/components/ui/input.tsx +5 -5
- package/templates/projects/components/ui/label.tsx +5 -3
- package/templates/projects/components/ui/select.tsx +81 -19
- package/templates/projects/components/ui/sheet.tsx +64 -0
- package/templates/projects/components/ui/textarea.tsx +5 -3
- package/templates/projects/lib/utils.ts +4 -4
- package/templates/projects/package.json +4 -4
- package/templates/restaurant/AGENTS.md +17 -0
- package/templates/restaurant/app/globals.css +5 -1
- package/templates/restaurant/app/internal/components/page.tsx +248 -0
- package/templates/restaurant/app/internal/design/page.tsx +168 -0
- package/templates/restaurant/app/internal/layout.tsx +89 -0
- package/templates/restaurant/app/internal/sections.ts +26 -0
- package/templates/restaurant/app/internal/showcase.tsx +43 -0
- package/templates/restaurant/app/robots.ts +1 -1
- package/templates/restaurant/components/ui/button.tsx +22 -20
- package/templates/restaurant/components/ui/dialog.tsx +77 -64
- package/templates/restaurant/components/ui/input.tsx +5 -5
- package/templates/restaurant/components/ui/label.tsx +5 -3
- package/templates/restaurant/components/ui/select.tsx +81 -19
- package/templates/restaurant/components/ui/textarea.tsx +5 -3
- package/templates/restaurant/lib/utils.ts +4 -4
- package/templates/restaurant/package.json +4 -4
- package/templates/saas/AGENTS.md +17 -0
- package/templates/saas/README.md +1 -1
- package/templates/saas/app/(marketing)/not-found.tsx +1 -3
- package/templates/saas/app/dashboard/board-client.tsx +32 -42
- package/templates/saas/app/globals.css +9 -7
- package/templates/saas/app/internal/components/page.tsx +282 -0
- package/templates/saas/app/internal/design/page.tsx +168 -0
- package/templates/saas/app/internal/layout.tsx +89 -0
- package/templates/saas/app/internal/sections.ts +27 -0
- package/templates/saas/app/internal/showcase.tsx +43 -0
- package/templates/saas/app/robots.ts +1 -1
- package/templates/saas/components/dashboard-shell.tsx +28 -21
- package/templates/saas/components/ui/button.tsx +22 -20
- package/templates/saas/components/ui/dialog.tsx +77 -64
- package/templates/saas/components/ui/input.tsx +5 -5
- package/templates/saas/components/ui/label.tsx +5 -3
- package/templates/saas/components/ui/select.tsx +81 -19
- package/templates/saas/components/ui/sheet.tsx +64 -0
- package/templates/saas/components/ui/textarea.tsx +5 -3
- package/templates/saas/lib/utils.ts +4 -4
- package/templates/saas/package.json +4 -4
- package/templates/shop/AGENTS.md +17 -0
- package/templates/shop/app/globals.css +5 -1
- package/templates/shop/app/internal/components/page.tsx +248 -0
- package/templates/shop/app/internal/design/page.tsx +173 -0
- package/templates/shop/app/internal/layout.tsx +89 -0
- package/templates/shop/app/internal/sections.ts +26 -0
- package/templates/shop/app/internal/showcase.tsx +43 -0
- package/templates/shop/app/robots.ts +1 -1
- package/templates/shop/components/ui/button.tsx +22 -20
- package/templates/shop/components/ui/dialog.tsx +77 -64
- package/templates/shop/components/ui/input.tsx +5 -5
- package/templates/shop/components/ui/label.tsx +5 -3
- package/templates/shop/components/ui/select.tsx +81 -19
- package/templates/shop/components/ui/textarea.tsx +5 -3
- package/templates/shop/functions/checkout.ts +9 -8
- package/templates/shop/lib/utils.ts +4 -4
- package/templates/shop/package.json +4 -4
- package/templates/todo/AGENTS.md +17 -0
- package/templates/todo/README.md +7 -4
- package/templates/todo/app/(app)/layout.tsx +16 -0
- package/templates/todo/app/{page.tsx → (app)/page.tsx} +2 -2
- package/templates/todo/app/error.tsx +1 -1
- package/templates/todo/app/globals.css +9 -7
- package/templates/todo/app/internal/components/page.tsx +248 -0
- package/templates/todo/app/internal/design/page.tsx +165 -0
- package/templates/todo/app/internal/layout.tsx +89 -0
- package/templates/todo/app/internal/sections.ts +26 -0
- package/templates/todo/app/internal/showcase.tsx +43 -0
- package/templates/todo/app/layout.tsx +5 -7
- package/templates/todo/app/not-found.tsx +2 -4
- package/templates/todo/app/robots.ts +1 -1
- package/templates/todo/components/ui/button.tsx +22 -20
- package/templates/todo/components/ui/dialog.tsx +77 -64
- package/templates/todo/components/ui/input.tsx +5 -5
- package/templates/todo/components/ui/label.tsx +5 -3
- package/templates/todo/components/ui/select.tsx +81 -19
- package/templates/todo/components/ui/textarea.tsx +5 -3
- package/templates/todo/lib/utils.ts +4 -4
- package/templates/todo/package.json +4 -4
- package/templates/waitlist/AGENTS.md +17 -0
- package/templates/waitlist/app/globals.css +5 -1
- package/templates/waitlist/app/internal/components/page.tsx +248 -0
- package/templates/waitlist/app/internal/design/page.tsx +173 -0
- package/templates/waitlist/app/internal/layout.tsx +89 -0
- package/templates/waitlist/app/internal/sections.ts +26 -0
- package/templates/waitlist/app/internal/showcase.tsx +43 -0
- package/templates/waitlist/app/robots.ts +1 -1
- package/templates/waitlist/components/ui/button.tsx +22 -20
- package/templates/waitlist/components/ui/dialog.tsx +77 -64
- package/templates/waitlist/components/ui/input.tsx +5 -5
- package/templates/waitlist/components/ui/label.tsx +5 -3
- package/templates/waitlist/components/ui/select.tsx +81 -19
- package/templates/waitlist/components/ui/textarea.tsx +5 -3
- package/templates/waitlist/lib/utils.ts +4 -4
- package/templates/waitlist/package.json +4 -4
- package/templates/agency/components.json +0 -20
- package/templates/ai-chat/components.json +0 -20
- package/templates/ai-studio/components.json +0 -20
- package/templates/backend/b2b/apps/api/functions/archiveProject.ts +0 -13
- package/templates/backend/b2b/apps/api/functions/createOrg.ts +0 -44
- package/templates/backend/b2b/apps/api/functions/createProject.ts +0 -22
- package/templates/backend/b2b/apps/api/functions/inviteMember.ts +0 -41
- package/templates/backend/b2b/apps/api/functions/myOrgs.ts +0 -37
- package/templates/backend/b2b/apps/api/functions/orgMembers.ts +0 -13
- package/templates/backend/b2b/apps/api/functions/orgProjects.ts +0 -15
- package/templates/backend/b2b/apps/api/functions/removeMember.ts +0 -25
- package/templates/backend/b2b/apps/api/functions/setMemberRole.ts +0 -33
- package/templates/backend/b2b/apps/api/package.json +0 -20
- package/templates/backend/b2b/apps/api/schema.ts +0 -182
- package/templates/backend/b2b/apps/api/tsconfig.json +0 -13
- package/templates/backend/barebones/apps/api/functions/createWidget.ts +0 -26
- package/templates/backend/barebones/apps/api/functions/listWidgets.ts +0 -19
- package/templates/backend/barebones/apps/api/package.json +0 -20
- package/templates/backend/barebones/apps/api/schema.ts +0 -64
- package/templates/backend/barebones/apps/api/tsconfig.json +0 -13
- package/templates/backend/chat/apps/api/functions/createRoom.ts +0 -32
- package/templates/backend/chat/apps/api/functions/listRooms.ts +0 -15
- package/templates/backend/chat/apps/api/functions/roomMessages.ts +0 -20
- package/templates/backend/chat/apps/api/functions/sendMessage.ts +0 -37
- package/templates/backend/chat/apps/api/package.json +0 -20
- package/templates/backend/chat/apps/api/schema.ts +0 -99
- package/templates/backend/chat/apps/api/tsconfig.json +0 -13
- package/templates/backend/todo/apps/api/functions/addTodo.ts +0 -31
- package/templates/backend/todo/apps/api/functions/deleteTodo.ts +0 -15
- package/templates/backend/todo/apps/api/functions/editTodo.ts +0 -17
- package/templates/backend/todo/apps/api/functions/listTodos.ts +0 -25
- package/templates/backend/todo/apps/api/functions/reorderTodo.ts +0 -15
- package/templates/backend/todo/apps/api/functions/toggleTodo.ts +0 -14
- package/templates/backend/todo/apps/api/package.json +0 -20
- package/templates/backend/todo/apps/api/schema.ts +0 -88
- package/templates/backend/todo/apps/api/tsconfig.json +0 -13
- package/templates/barebones/components.json +0 -20
- package/templates/chat/components.json +0 -20
- package/templates/consumer/components.json +0 -20
- package/templates/creator/components.json +0 -20
- package/templates/crm/components.json +0 -20
- package/templates/directory/components.json +0 -20
- package/templates/expo/barebones/apps/expo/App.tsx +0 -166
- package/templates/expo/barebones/apps/expo/app.json +0 -31
- package/templates/expo/barebones/apps/expo/babel.config.js +0 -6
- package/templates/expo/barebones/apps/expo/package.json +0 -31
- package/templates/expo/barebones/apps/expo/tsconfig.json +0 -16
- package/templates/expo/chat/apps/expo/App.tsx +0 -391
- package/templates/expo/chat/apps/expo/app.json +0 -25
- package/templates/expo/chat/apps/expo/babel.config.js +0 -6
- package/templates/expo/chat/apps/expo/package.json +0 -32
- package/templates/expo/chat/apps/expo/tsconfig.json +0 -16
- package/templates/expo/todo/apps/expo/App.tsx +0 -287
- package/templates/expo/todo/apps/expo/app.json +0 -25
- package/templates/expo/todo/apps/expo/babel.config.js +0 -6
- package/templates/expo/todo/apps/expo/package.json +0 -31
- package/templates/expo/todo/apps/expo/tsconfig.json +0 -16
- package/templates/helpdesk/components.json +0 -20
- package/templates/imessage/components.json +0 -20
- package/templates/inventory/components.json +0 -20
- package/templates/invoices/components.json +0 -20
- package/templates/ios/barebones/apps/ios/Package.swift +0 -34
- package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/ContentView.swift +0 -98
- package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/Models.swift +0 -17
- package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -34
- package/templates/ios/barebones/apps/ios/project.yml +0 -42
- package/templates/ios/chat/apps/ios/Package.swift +0 -24
- package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/ChatRootView.swift +0 -116
- package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/Models.swift +0 -26
- package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/RoomView.swift +0 -136
- package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -58
- package/templates/ios/chat/apps/ios/project.yml +0 -44
- package/templates/ios/todo/apps/ios/Package.swift +0 -23
- package/templates/ios/todo/apps/ios/Sources/__APP_NAME_PASCAL__/Models.swift +0 -18
- package/templates/ios/todo/apps/ios/Sources/__APP_NAME_PASCAL__/TodoListView.swift +0 -230
- package/templates/ios/todo/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -28
- package/templates/ios/todo/apps/ios/project.yml +0 -32
- package/templates/local-service/components.json +0 -20
- package/templates/mac/b2b/apps/mac/Package.swift +0 -22
- package/templates/mac/b2b/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -15
- package/templates/mac/b2b/apps/mac/Sources/__APP_NAME_PASCAL__/OrgPickerView.swift +0 -178
- package/templates/mac/b2b/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -30
- package/templates/mac/b2b/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/b2b/apps/mac/project.yml +0 -34
- package/templates/mac/barebones/apps/mac/Package.swift +0 -33
- package/templates/mac/barebones/apps/mac/Sources/__APP_NAME_PASCAL__/ContentView.swift +0 -104
- package/templates/mac/barebones/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -17
- package/templates/mac/barebones/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -30
- package/templates/mac/barebones/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/barebones/apps/mac/project.yml +0 -34
- package/templates/mac/chat/apps/mac/Package.swift +0 -34
- package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/ChatRootView.swift +0 -143
- package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -26
- package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/RoomView.swift +0 -136
- package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -58
- package/templates/mac/chat/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/chat/apps/mac/project.yml +0 -36
- package/templates/mac/consumer/apps/mac/Package.swift +0 -34
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/FeedView.swift +0 -199
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -34
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/ProfileSetupView.swift +0 -68
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/RootView.swift +0 -40
- package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -59
- package/templates/mac/consumer/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/consumer/apps/mac/project.yml +0 -36
- package/templates/mac/todo/apps/mac/Package.swift +0 -33
- package/templates/mac/todo/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -19
- package/templates/mac/todo/apps/mac/Sources/__APP_NAME_PASCAL__/TodoListView.swift +0 -244
- package/templates/mac/todo/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -30
- package/templates/mac/todo/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
- package/templates/mac/todo/apps/mac/project.yml +0 -34
- package/templates/marketplace/components/ui/native-select.tsx +0 -62
- package/templates/marketplace/components.json +0 -20
- package/templates/projects/components.json +0 -20
- package/templates/restaurant/components.json +0 -20
- package/templates/saas/components.json +0 -20
- package/templates/shop/components.json +0 -20
- package/templates/todo/components.json +0 -20
- package/templates/ui/packages/ui/package.json +0 -26
- package/templates/ui/packages/ui/src/button.tsx +0 -44
- package/templates/ui/packages/ui/src/card.tsx +0 -39
- package/templates/ui/packages/ui/src/cn.ts +0 -12
- package/templates/ui/packages/ui/src/index.ts +0 -4
- package/templates/ui/packages/ui/src/input.tsx +0 -19
- package/templates/ui/packages/ui/tsconfig.json +0 -15
- package/templates/vite/todo/apps/web/index.html +0 -12
- package/templates/vite/todo/apps/web/package.json +0 -31
- package/templates/vite/todo/apps/web/src/App.tsx +0 -16
- package/templates/vite/todo/apps/web/src/components/TodoList.tsx +0 -281
- package/templates/vite/todo/apps/web/src/index.css +0 -14
- package/templates/vite/todo/apps/web/src/main.tsx +0 -20
- package/templates/vite/todo/apps/web/tsconfig.json +0 -24
- package/templates/vite/todo/apps/web/vite.config.ts +0 -41
- package/templates/waitlist/components.json +0 -20
- package/templates/web/b2b/apps/web/next-env.d.ts +0 -2
- package/templates/web/b2b/apps/web/next.config.ts +0 -24
- package/templates/web/b2b/apps/web/package.json +0 -27
- package/templates/web/b2b/apps/web/postcss.config.mjs +0 -3
- package/templates/web/b2b/apps/web/src/app/components/OrgPicker.tsx +0 -171
- package/templates/web/b2b/apps/web/src/app/globals.css +0 -6
- package/templates/web/b2b/apps/web/src/app/layout.tsx +0 -21
- package/templates/web/b2b/apps/web/src/app/page.tsx +0 -39
- package/templates/web/b2b/apps/web/src/lib/pylon.ts +0 -5
- package/templates/web/b2b/apps/web/tsconfig.json +0 -26
- package/templates/web/barebones/apps/web/next-env.d.ts +0 -2
- package/templates/web/barebones/apps/web/next.config.ts +0 -40
- package/templates/web/barebones/apps/web/package.json +0 -27
- package/templates/web/barebones/apps/web/postcss.config.mjs +0 -3
- package/templates/web/barebones/apps/web/src/app/components/WidgetList.tsx +0 -81
- package/templates/web/barebones/apps/web/src/app/globals.css +0 -6
- package/templates/web/barebones/apps/web/src/app/layout.tsx +0 -21
- package/templates/web/barebones/apps/web/src/app/page.tsx +0 -43
- package/templates/web/barebones/apps/web/src/lib/pylon.ts +0 -14
- package/templates/web/barebones/apps/web/tsconfig.json +0 -26
- package/templates/web/chat/apps/web/next-env.d.ts +0 -2
- package/templates/web/chat/apps/web/next.config.ts +0 -24
- package/templates/web/chat/apps/web/package.json +0 -27
- package/templates/web/chat/apps/web/postcss.config.mjs +0 -3
- package/templates/web/chat/apps/web/src/app/components/ChatRoom.tsx +0 -231
- package/templates/web/chat/apps/web/src/app/globals.css +0 -6
- package/templates/web/chat/apps/web/src/app/layout.tsx +0 -22
- package/templates/web/chat/apps/web/src/app/page.tsx +0 -12
- package/templates/web/chat/apps/web/src/app/providers.tsx +0 -25
- package/templates/web/chat/apps/web/src/lib/pylon.ts +0 -5
- package/templates/web/chat/apps/web/tsconfig.json +0 -26
- package/templates/web/consumer/apps/web/next-env.d.ts +0 -2
- package/templates/web/consumer/apps/web/next.config.ts +0 -24
- package/templates/web/consumer/apps/web/package.json +0 -27
- package/templates/web/consumer/apps/web/postcss.config.mjs +0 -3
- package/templates/web/consumer/apps/web/src/app/components/Feed.tsx +0 -315
- package/templates/web/consumer/apps/web/src/app/globals.css +0 -6
- package/templates/web/consumer/apps/web/src/app/layout.tsx +0 -22
- package/templates/web/consumer/apps/web/src/app/page.tsx +0 -21
- package/templates/web/consumer/apps/web/src/app/providers.tsx +0 -25
- package/templates/web/consumer/apps/web/src/lib/pylon.ts +0 -5
- package/templates/web/consumer/apps/web/tsconfig.json +0 -26
- package/templates/web/todo/apps/web/next-env.d.ts +0 -2
- package/templates/web/todo/apps/web/next.config.ts +0 -26
- package/templates/web/todo/apps/web/package.json +0 -30
- package/templates/web/todo/apps/web/postcss.config.mjs +0 -3
- package/templates/web/todo/apps/web/src/app/components/TodoList.tsx +0 -310
- package/templates/web/todo/apps/web/src/app/globals.css +0 -6
- package/templates/web/todo/apps/web/src/app/layout.tsx +0 -21
- package/templates/web/todo/apps/web/src/app/page.tsx +0 -36
- package/templates/web/todo/apps/web/src/lib/pylon.ts +0 -5
- package/templates/web/todo/apps/web/tsconfig.json +0 -26
- /package/templates/barebones/app/{items-client.tsx → (app)/items-client.tsx} +0 -0
- /package/templates/marketplace/{app/_components → components}/CategoryIcon.tsx +0 -0
- /package/templates/todo/app/{todo-app.tsx → (app)/todo-app.tsx} +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineConfig, type ProxyOptions } from "vite";
|
|
2
|
-
import react from "@vitejs/plugin-react";
|
|
3
|
-
import tailwindcss from "@tailwindcss/vite";
|
|
4
|
-
|
|
5
|
-
// Pylon dev exposes TWO ports:
|
|
6
|
-
// :4321 → HTTP (functions, entity CRUD, /api/sync/pull, /api/auth/*)
|
|
7
|
-
// :4322 → dedicated WebSocket listener that pushes broadcasts with
|
|
8
|
-
// lower latency than the HTTP-multiplexed path.
|
|
9
|
-
//
|
|
10
|
-
// We route the WS upgrade to :4322 and everything else to :4321. The
|
|
11
|
-
// HTTP-multiplexed `/api/sync/ws` on :4321 also works and is the
|
|
12
|
-
// production fallback for proxies that can't forward to a secondary
|
|
13
|
-
// port, but its broadcasts are latency-bounded by the client SDK's
|
|
14
|
-
// 200ms keepalive ping.
|
|
15
|
-
const PYLON_HTTP_TARGET = process.env.PYLON_TARGET ?? "http://localhost:4321";
|
|
16
|
-
const PYLON_WS_TARGET = process.env.PYLON_WS_TARGET ?? "ws://localhost:4322";
|
|
17
|
-
|
|
18
|
-
const proxyConfig: Record<string, string | ProxyOptions> = {
|
|
19
|
-
// WebSocket sync: forward upgrade to the dedicated :4322 listener.
|
|
20
|
-
// Must come BEFORE the catch-all /api entry so this more-specific
|
|
21
|
-
// path wins for WS connections. The dedicated listener handshakes
|
|
22
|
-
// on any path so we don't bother rewriting.
|
|
23
|
-
"/api/sync/ws": {
|
|
24
|
-
target: PYLON_WS_TARGET,
|
|
25
|
-
ws: true,
|
|
26
|
-
changeOrigin: true,
|
|
27
|
-
},
|
|
28
|
-
// HTTP — /api/auth/*, /api/fn/*, /api/sync/pull, /api/entities/*, etc.
|
|
29
|
-
"/api": {
|
|
30
|
-
target: PYLON_HTTP_TARGET,
|
|
31
|
-
changeOrigin: true,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default defineConfig({
|
|
36
|
-
plugins: [react(), tailwindcss()],
|
|
37
|
-
server: {
|
|
38
|
-
port: 3000,
|
|
39
|
-
proxy: proxyConfig,
|
|
40
|
-
},
|
|
41
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
-
"style": "new-york",
|
|
4
|
-
"rsc": false,
|
|
5
|
-
"tsx": true,
|
|
6
|
-
"tailwind": {
|
|
7
|
-
"config": "",
|
|
8
|
-
"css": "app/globals.css",
|
|
9
|
-
"baseColor": "zinc",
|
|
10
|
-
"cssVariables": true
|
|
11
|
-
},
|
|
12
|
-
"aliases": {
|
|
13
|
-
"components": "@/components",
|
|
14
|
-
"utils": "@/lib/utils",
|
|
15
|
-
"ui": "@/components/ui",
|
|
16
|
-
"lib": "@/lib",
|
|
17
|
-
"hooks": "@/hooks"
|
|
18
|
-
},
|
|
19
|
-
"iconLibrary": "lucide"
|
|
20
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { NextConfig } from "next";
|
|
2
|
-
|
|
3
|
-
const PYLON_TARGET = process.env.PYLON_TARGET ?? "http://localhost:4321";
|
|
4
|
-
|
|
5
|
-
const config: NextConfig = {
|
|
6
|
-
transpilePackages: [
|
|
7
|
-
"@__APP_NAME_KEBAB__/ui",
|
|
8
|
-
"@pylonsync/sdk",
|
|
9
|
-
"@pylonsync/react",
|
|
10
|
-
"@pylonsync/next",
|
|
11
|
-
"@pylonsync/functions",
|
|
12
|
-
"@pylonsync/sync",
|
|
13
|
-
],
|
|
14
|
-
async rewrites() {
|
|
15
|
-
return [
|
|
16
|
-
{ source: "/api/fn/:path*", destination: `${PYLON_TARGET}/api/fn/:path*` },
|
|
17
|
-
{ source: "/api/auth/:path*", destination: `${PYLON_TARGET}/api/auth/:path*` },
|
|
18
|
-
{ source: "/api/sync/:path*", destination: `${PYLON_TARGET}/api/sync/:path*` },
|
|
19
|
-
{ source: "/api/:path*", destination: `${PYLON_TARGET}/api/:path*` },
|
|
20
|
-
];
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default config;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@__APP_NAME_KEBAB__/web",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "next dev --port 3000",
|
|
8
|
-
"build": "next build",
|
|
9
|
-
"start": "next start",
|
|
10
|
-
"lint": "next lint"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@__APP_NAME_KEBAB__/ui": "__WORKSPACE_DEP__",
|
|
14
|
-
"@pylonsync/next": "^__PYLON_VERSION__",
|
|
15
|
-
"next": "^16.0.0",
|
|
16
|
-
"react": "^19.0.0",
|
|
17
|
-
"react-dom": "^19.0.0"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@types/node": "^20.0.0",
|
|
21
|
-
"@types/react": "^19.0.0",
|
|
22
|
-
"@types/react-dom": "^19.0.0",
|
|
23
|
-
"@tailwindcss/postcss": "^4.0.0",
|
|
24
|
-
"tailwindcss": "^4.0.0",
|
|
25
|
-
"typescript": "^5.5.0"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useState, useTransition } from "react";
|
|
4
|
-
import { Button, Input, Card, CardHeader, CardContent } from "@__APP_NAME_KEBAB__/ui";
|
|
5
|
-
|
|
6
|
-
type Org = {
|
|
7
|
-
id: string;
|
|
8
|
-
slug: string;
|
|
9
|
-
name: string;
|
|
10
|
-
role: string;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export function OrgPicker({ initialOrgs }: { initialOrgs: Org[] }) {
|
|
15
|
-
const [orgs, setOrgs] = useState(initialOrgs);
|
|
16
|
-
const [activeId, setActiveId] = useState<string | null>(
|
|
17
|
-
initialOrgs[0]?.id ?? null,
|
|
18
|
-
);
|
|
19
|
-
const [creating, setCreating] = useState(false);
|
|
20
|
-
const [name, setName] = useState("");
|
|
21
|
-
const [slug, setSlug] = useState("");
|
|
22
|
-
const [pending, startTransition] = useTransition();
|
|
23
|
-
const [error, setError] = useState<string | null>(null);
|
|
24
|
-
|
|
25
|
-
async function create(e: React.FormEvent) {
|
|
26
|
-
e.preventDefault();
|
|
27
|
-
setError(null);
|
|
28
|
-
startTransition(async () => {
|
|
29
|
-
const res = await fetch("/api/fn/createOrg", {
|
|
30
|
-
method: "POST",
|
|
31
|
-
headers: { "Content-Type": "application/json" },
|
|
32
|
-
body: JSON.stringify({ slug, name }),
|
|
33
|
-
});
|
|
34
|
-
if (res.ok) {
|
|
35
|
-
const org = (await res.json()) as Org;
|
|
36
|
-
setOrgs((prev) => [
|
|
37
|
-
{ ...org, role: "owner" },
|
|
38
|
-
...prev,
|
|
39
|
-
]);
|
|
40
|
-
setActiveId(org.id);
|
|
41
|
-
setName("");
|
|
42
|
-
setSlug("");
|
|
43
|
-
setCreating(false);
|
|
44
|
-
} else {
|
|
45
|
-
const body = await res.json().catch(() => ({}));
|
|
46
|
-
setError(body?.message ?? "create failed");
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const active = orgs.find((o) => o.id === activeId) ?? null;
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<div className="space-y-6">
|
|
55
|
-
<Card>
|
|
56
|
-
<CardHeader>
|
|
57
|
-
<div className="flex items-center justify-between">
|
|
58
|
-
<h2 className="text-sm font-medium">Your organizations</h2>
|
|
59
|
-
<Button
|
|
60
|
-
size="sm"
|
|
61
|
-
variant={creating ? "ghost" : "default"}
|
|
62
|
-
onClick={() => setCreating((v) => !v)}
|
|
63
|
-
>
|
|
64
|
-
{creating ? "Cancel" : "New org"}
|
|
65
|
-
</Button>
|
|
66
|
-
</div>
|
|
67
|
-
</CardHeader>
|
|
68
|
-
<CardContent>
|
|
69
|
-
{creating && (
|
|
70
|
-
<form onSubmit={create} className="grid grid-cols-2 gap-2 mb-4">
|
|
71
|
-
<Input
|
|
72
|
-
placeholder="Org name"
|
|
73
|
-
value={name}
|
|
74
|
-
onChange={(e) => setName(e.target.value)}
|
|
75
|
-
disabled={pending}
|
|
76
|
-
required
|
|
77
|
-
/>
|
|
78
|
-
<Input
|
|
79
|
-
placeholder="acme-corp"
|
|
80
|
-
value={slug}
|
|
81
|
-
onChange={(e) => setSlug(e.target.value.toLowerCase())}
|
|
82
|
-
disabled={pending}
|
|
83
|
-
pattern="[a-z0-9][a-z0-9-]{1,30}[a-z0-9]"
|
|
84
|
-
required
|
|
85
|
-
/>
|
|
86
|
-
<Button
|
|
87
|
-
type="submit"
|
|
88
|
-
variant="primary"
|
|
89
|
-
disabled={pending || !name.trim() || !slug.trim()}
|
|
90
|
-
className="col-span-2"
|
|
91
|
-
>
|
|
92
|
-
{pending ? "Creating…" : "Create org"}
|
|
93
|
-
</Button>
|
|
94
|
-
{error && (
|
|
95
|
-
<p className="text-xs text-red-500 col-span-2">{error}</p>
|
|
96
|
-
)}
|
|
97
|
-
</form>
|
|
98
|
-
)}
|
|
99
|
-
|
|
100
|
-
{orgs.length === 0 ? (
|
|
101
|
-
<p className="text-sm text-neutral-500 py-2">
|
|
102
|
-
You're not in any orgs yet. Create one above to get started.
|
|
103
|
-
</p>
|
|
104
|
-
) : (
|
|
105
|
-
<ul className="divide-y divide-neutral-200 dark:divide-neutral-800 -mx-5">
|
|
106
|
-
{orgs.map((o) => (
|
|
107
|
-
<li
|
|
108
|
-
key={o.id}
|
|
109
|
-
className="flex items-center justify-between px-5 py-2.5 cursor-pointer hover:bg-neutral-50 dark:hover:bg-neutral-900"
|
|
110
|
-
data-active={o.id === activeId || undefined}
|
|
111
|
-
onClick={() => setActiveId(o.id)}
|
|
112
|
-
>
|
|
113
|
-
<div>
|
|
114
|
-
<div className="text-sm font-medium">{o.name}</div>
|
|
115
|
-
<div className="text-xs text-neutral-400 font-mono">
|
|
116
|
-
{o.slug}
|
|
117
|
-
</div>
|
|
118
|
-
</div>
|
|
119
|
-
<span
|
|
120
|
-
className={`text-xs font-mono uppercase tracking-wide px-2 py-0.5 rounded ${
|
|
121
|
-
o.role === "owner"
|
|
122
|
-
? "bg-blue-100 text-blue-700 dark:bg-blue-950 dark:text-blue-300"
|
|
123
|
-
: o.role === "admin"
|
|
124
|
-
? "bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-300"
|
|
125
|
-
: "bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400"
|
|
126
|
-
}`}
|
|
127
|
-
>
|
|
128
|
-
{o.role}
|
|
129
|
-
</span>
|
|
130
|
-
</li>
|
|
131
|
-
))}
|
|
132
|
-
</ul>
|
|
133
|
-
)}
|
|
134
|
-
</CardContent>
|
|
135
|
-
</Card>
|
|
136
|
-
|
|
137
|
-
{active && <OrgDetail org={active} />}
|
|
138
|
-
</div>
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function OrgDetail({ org }: { org: Org }) {
|
|
143
|
-
return (
|
|
144
|
-
<Card>
|
|
145
|
-
<CardHeader>
|
|
146
|
-
<div className="flex items-baseline justify-between">
|
|
147
|
-
<h2 className="text-sm font-medium">
|
|
148
|
-
{org.name}{" "}
|
|
149
|
-
<span className="text-xs text-neutral-400 font-mono ml-1">
|
|
150
|
-
/{org.slug}
|
|
151
|
-
</span>
|
|
152
|
-
</h2>
|
|
153
|
-
<span className="text-xs text-neutral-500">your role: {org.role}</span>
|
|
154
|
-
</div>
|
|
155
|
-
</CardHeader>
|
|
156
|
-
<CardContent className="space-y-4">
|
|
157
|
-
<p className="text-sm text-neutral-500">
|
|
158
|
-
Wire member management and project lists into this panel by calling
|
|
159
|
-
<code className="font-mono text-xs mx-1">/api/fn/orgMembers</code>
|
|
160
|
-
and
|
|
161
|
-
<code className="font-mono text-xs mx-1">/api/fn/orgProjects</code>
|
|
162
|
-
with this org's id. Both queries enforce membership; you only
|
|
163
|
-
see what your role allows.
|
|
164
|
-
</p>
|
|
165
|
-
<div className="text-xs font-mono text-neutral-400">
|
|
166
|
-
orgId: {org.id}
|
|
167
|
-
</div>
|
|
168
|
-
</CardContent>
|
|
169
|
-
</Card>
|
|
170
|
-
);
|
|
171
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import "./globals.css";
|
|
3
|
-
|
|
4
|
-
export const metadata: Metadata = {
|
|
5
|
-
title: "__APP_NAME__",
|
|
6
|
-
description: "Multi-tenant SaaS scaffold powered by Pylon",
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function RootLayout({
|
|
10
|
-
children,
|
|
11
|
-
}: {
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}) {
|
|
14
|
-
return (
|
|
15
|
-
<html lang="en">
|
|
16
|
-
<body className="antialiased min-h-screen bg-white dark:bg-neutral-950 text-neutral-900 dark:text-neutral-100">
|
|
17
|
-
{children}
|
|
18
|
-
</body>
|
|
19
|
-
</html>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { pylon } from "@/lib/pylon";
|
|
2
|
-
import { OrgPicker } from "./components/OrgPicker";
|
|
3
|
-
|
|
4
|
-
export const dynamic = "force-dynamic";
|
|
5
|
-
|
|
6
|
-
type Org = {
|
|
7
|
-
id: string;
|
|
8
|
-
slug: string;
|
|
9
|
-
name: string;
|
|
10
|
-
role: string;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default async function HomePage() {
|
|
15
|
-
const orgs = await pylon
|
|
16
|
-
.json<Org[]>("/api/fn/myOrgs", {
|
|
17
|
-
method: "POST",
|
|
18
|
-
body: "{}",
|
|
19
|
-
headers: { "Content-Type": "application/json" },
|
|
20
|
-
})
|
|
21
|
-
.catch(() => [] as Org[]);
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<main className="mx-auto max-w-3xl px-6 py-12 space-y-8">
|
|
25
|
-
<header className="space-y-2">
|
|
26
|
-
<h1 className="text-3xl font-semibold tracking-tight">__APP_NAME__</h1>
|
|
27
|
-
<p className="text-sm text-neutral-500 dark:text-neutral-400">
|
|
28
|
-
Multi-tenant SaaS scaffold. Pick an org to manage its members and
|
|
29
|
-
projects, or create a new one. Tenant isolation is enforced
|
|
30
|
-
server-side by Pylon row-level policies — clients can't leak
|
|
31
|
-
data across orgs even if they fabricate <code className="font-mono text-xs">orgId</code>{" "}
|
|
32
|
-
in a request.
|
|
33
|
-
</p>
|
|
34
|
-
</header>
|
|
35
|
-
|
|
36
|
-
<OrgPicker initialOrgs={orgs} />
|
|
37
|
-
</main>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"jsx": "preserve",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"plugins": [{ "name": "next" }],
|
|
17
|
-
"paths": { "@/*": ["./src/*"] }
|
|
18
|
-
},
|
|
19
|
-
"include": [
|
|
20
|
-
"next-env.d.ts",
|
|
21
|
-
"src/**/*.ts",
|
|
22
|
-
"src/**/*.tsx",
|
|
23
|
-
".next/types/**/*.ts"
|
|
24
|
-
],
|
|
25
|
-
"exclude": ["node_modules"]
|
|
26
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { NextConfig } from "next";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Pylon's typed client + functions packages re-export across the
|
|
5
|
-
* server/client boundary AND the workspace UI package ships TSX.
|
|
6
|
-
* `transpilePackages` makes Next bundle them cleanly.
|
|
7
|
-
*
|
|
8
|
-
* `rewrites` proxies every Pylon-owned path (`/api/fn/*`,
|
|
9
|
-
* `/api/auth/*`, `/api/sync/*`, …) to the Pylon binary running on
|
|
10
|
-
* `PYLON_TARGET` (default http://localhost:4321). Without this,
|
|
11
|
-
* Next.js sees `/api/fn/createWidget` as a missing route and 404s
|
|
12
|
-
* before the request reaches Pylon.
|
|
13
|
-
*
|
|
14
|
-
* In production set `PYLON_TARGET` to wherever you've deployed the
|
|
15
|
-
* Pylon binary (Fly, Render, Railway, your own box). The browser
|
|
16
|
-
* still hits same-origin paths under your Next deployment, and Next
|
|
17
|
-
* forwards them server-side — no CORS, no extra DNS.
|
|
18
|
-
*/
|
|
19
|
-
const PYLON_TARGET = process.env.PYLON_TARGET ?? "http://localhost:4321";
|
|
20
|
-
|
|
21
|
-
const config: NextConfig = {
|
|
22
|
-
transpilePackages: [
|
|
23
|
-
"@__APP_NAME_KEBAB__/ui",
|
|
24
|
-
"@pylonsync/sdk",
|
|
25
|
-
"@pylonsync/react",
|
|
26
|
-
"@pylonsync/next",
|
|
27
|
-
"@pylonsync/functions",
|
|
28
|
-
"@pylonsync/sync",
|
|
29
|
-
],
|
|
30
|
-
async rewrites() {
|
|
31
|
-
return [
|
|
32
|
-
{ source: "/api/fn/:path*", destination: `${PYLON_TARGET}/api/fn/:path*` },
|
|
33
|
-
{ source: "/api/auth/:path*", destination: `${PYLON_TARGET}/api/auth/:path*` },
|
|
34
|
-
{ source: "/api/sync/:path*", destination: `${PYLON_TARGET}/api/sync/:path*` },
|
|
35
|
-
{ source: "/api/:path*", destination: `${PYLON_TARGET}/api/:path*` },
|
|
36
|
-
];
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default config;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@__APP_NAME_KEBAB__/web",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "next dev --port 3000",
|
|
8
|
-
"build": "next build",
|
|
9
|
-
"start": "next start",
|
|
10
|
-
"lint": "next lint"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@__APP_NAME_KEBAB__/ui": "__WORKSPACE_DEP__",
|
|
14
|
-
"@pylonsync/next": "^__PYLON_VERSION__",
|
|
15
|
-
"next": "^16.0.0",
|
|
16
|
-
"react": "^19.0.0",
|
|
17
|
-
"react-dom": "^19.0.0"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@types/node": "^20.0.0",
|
|
21
|
-
"@types/react": "^19.0.0",
|
|
22
|
-
"@types/react-dom": "^19.0.0",
|
|
23
|
-
"@tailwindcss/postcss": "^4.0.0",
|
|
24
|
-
"tailwindcss": "^4.0.0",
|
|
25
|
-
"typescript": "^5.5.0"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useState, useTransition } from "react";
|
|
4
|
-
import { Button, Input } from "@__APP_NAME_KEBAB__/ui";
|
|
5
|
-
|
|
6
|
-
type Widget = {
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
count: number;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export function WidgetList({ initialWidgets }: { initialWidgets: Widget[] }) {
|
|
14
|
-
const [widgets, setWidgets] = useState(initialWidgets);
|
|
15
|
-
const [name, setName] = useState("");
|
|
16
|
-
const [pending, startTransition] = useTransition();
|
|
17
|
-
|
|
18
|
-
async function add() {
|
|
19
|
-
const trimmed = name.trim();
|
|
20
|
-
if (!trimmed) return;
|
|
21
|
-
setName("");
|
|
22
|
-
startTransition(async () => {
|
|
23
|
-
const res = await fetch("/api/fn/createWidget", {
|
|
24
|
-
method: "POST",
|
|
25
|
-
headers: { "Content-Type": "application/json" },
|
|
26
|
-
body: JSON.stringify({ name: trimmed }),
|
|
27
|
-
});
|
|
28
|
-
if (res.ok) {
|
|
29
|
-
const widget = (await res.json()) as Widget;
|
|
30
|
-
setWidgets((prev) => [widget, ...prev]);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<div className="space-y-4">
|
|
37
|
-
<form
|
|
38
|
-
onSubmit={(e) => {
|
|
39
|
-
e.preventDefault();
|
|
40
|
-
add();
|
|
41
|
-
}}
|
|
42
|
-
className="flex gap-2"
|
|
43
|
-
>
|
|
44
|
-
<Input
|
|
45
|
-
value={name}
|
|
46
|
-
onChange={(e) => setName(e.target.value)}
|
|
47
|
-
placeholder="Name a widget…"
|
|
48
|
-
disabled={pending}
|
|
49
|
-
className="flex-1"
|
|
50
|
-
/>
|
|
51
|
-
<Button
|
|
52
|
-
type="submit"
|
|
53
|
-
variant="primary"
|
|
54
|
-
disabled={pending || !name.trim()}
|
|
55
|
-
>
|
|
56
|
-
Create
|
|
57
|
-
</Button>
|
|
58
|
-
</form>
|
|
59
|
-
|
|
60
|
-
{widgets.length === 0 ? (
|
|
61
|
-
<p className="text-sm text-neutral-500 dark:text-neutral-400 text-center py-8">
|
|
62
|
-
No widgets yet. Create one above.
|
|
63
|
-
</p>
|
|
64
|
-
) : (
|
|
65
|
-
<ul className="divide-y divide-neutral-200 dark:divide-neutral-800 rounded-md border border-neutral-200 dark:border-neutral-800">
|
|
66
|
-
{widgets.map((w) => (
|
|
67
|
-
<li
|
|
68
|
-
key={w.id}
|
|
69
|
-
className="flex items-center justify-between gap-3 px-4 py-3 text-sm bg-white dark:bg-neutral-950"
|
|
70
|
-
>
|
|
71
|
-
<span className="font-medium">{w.name}</span>
|
|
72
|
-
<span className="font-mono text-xs text-neutral-400">
|
|
73
|
-
count: {w.count}
|
|
74
|
-
</span>
|
|
75
|
-
</li>
|
|
76
|
-
))}
|
|
77
|
-
</ul>
|
|
78
|
-
)}
|
|
79
|
-
</div>
|
|
80
|
-
);
|
|
81
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import "./globals.css";
|
|
3
|
-
|
|
4
|
-
export const metadata: Metadata = {
|
|
5
|
-
title: "__APP_NAME__",
|
|
6
|
-
description: "Realtime app powered by Pylon",
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default function RootLayout({
|
|
10
|
-
children,
|
|
11
|
-
}: {
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}) {
|
|
14
|
-
return (
|
|
15
|
-
<html lang="en">
|
|
16
|
-
<body className="antialiased min-h-screen bg-white dark:bg-neutral-950 text-neutral-900 dark:text-neutral-100">
|
|
17
|
-
{children}
|
|
18
|
-
</body>
|
|
19
|
-
</html>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { pylon } from "@/lib/pylon";
|
|
2
|
-
import { WidgetList } from "./components/WidgetList";
|
|
3
|
-
|
|
4
|
-
// Force dynamic — every render reads the live widget list from Pylon.
|
|
5
|
-
export const dynamic = "force-dynamic";
|
|
6
|
-
|
|
7
|
-
type Widget = {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
count: number;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default async function HomePage() {
|
|
15
|
-
const widgets = await pylon
|
|
16
|
-
.json<Widget[]>("/api/fn/listWidgets", {
|
|
17
|
-
method: "POST",
|
|
18
|
-
body: "{}",
|
|
19
|
-
headers: { "Content-Type": "application/json" },
|
|
20
|
-
})
|
|
21
|
-
.catch(() => [] as Widget[]);
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<main className="mx-auto max-w-2xl px-6 py-12 space-y-8">
|
|
25
|
-
<header className="space-y-2">
|
|
26
|
-
<h1 className="text-3xl font-semibold tracking-tight">__APP_NAME__</h1>
|
|
27
|
-
<p className="text-sm text-neutral-500 dark:text-neutral-400">
|
|
28
|
-
A bare-bones Pylon app. Edit{" "}
|
|
29
|
-
<code className="font-mono text-xs">apps/api/schema.ts</code> to
|
|
30
|
-
change the data model,{" "}
|
|
31
|
-
<code className="font-mono text-xs">apps/api/functions/</code> to
|
|
32
|
-
add handlers, or{" "}
|
|
33
|
-
<code className="font-mono text-xs">
|
|
34
|
-
apps/web/src/app/components/WidgetList.tsx
|
|
35
|
-
</code>{" "}
|
|
36
|
-
for the UI.
|
|
37
|
-
</p>
|
|
38
|
-
</header>
|
|
39
|
-
|
|
40
|
-
<WidgetList initialWidgets={widgets} />
|
|
41
|
-
</main>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createPylonServer } from "@pylonsync/next/server";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Single server-helper instance. Imported by every Server Component
|
|
5
|
-
* and Server Action that needs to talk to the Pylon control plane.
|
|
6
|
-
*
|
|
7
|
-
* `cookieName` MUST match the backend's emitted cookie. Pylon uses
|
|
8
|
-
* `${app_name}_session` from the manifest — for this app that's
|
|
9
|
-
* `__APP_NAME_SNAKE___session`. Pin it in code (NOT env) so a bad
|
|
10
|
-
* deployment env can't silently break auth.
|
|
11
|
-
*/
|
|
12
|
-
export const pylon = createPylonServer({
|
|
13
|
-
cookieName: "__APP_NAME_SNAKE___session",
|
|
14
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"jsx": "preserve",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"plugins": [{ "name": "next" }],
|
|
17
|
-
"paths": { "@/*": ["./src/*"] }
|
|
18
|
-
},
|
|
19
|
-
"include": [
|
|
20
|
-
"next-env.d.ts",
|
|
21
|
-
"src/**/*.ts",
|
|
22
|
-
"src/**/*.tsx",
|
|
23
|
-
".next/types/**/*.ts"
|
|
24
|
-
],
|
|
25
|
-
"exclude": ["node_modules"]
|
|
26
|
-
}
|