@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,287 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
View,
|
|
4
|
-
Text,
|
|
5
|
-
TextInput,
|
|
6
|
-
Pressable,
|
|
7
|
-
FlatList,
|
|
8
|
-
ActivityIndicator,
|
|
9
|
-
StyleSheet,
|
|
10
|
-
Platform,
|
|
11
|
-
Alert,
|
|
12
|
-
} from "react-native";
|
|
13
|
-
import { StatusBar } from "expo-status-bar";
|
|
14
|
-
import { init, db, callFn } from "@pylonsync/react-native";
|
|
15
|
-
|
|
16
|
-
const PYLON_BASE_URL =
|
|
17
|
-
process.env.EXPO_PUBLIC_PYLON_BASE_URL ??
|
|
18
|
-
(Platform.OS === "android" ? "http://10.0.2.2:4321" : "http://localhost:4321");
|
|
19
|
-
|
|
20
|
-
type Todo = {
|
|
21
|
-
id: string;
|
|
22
|
-
title: string;
|
|
23
|
-
done: boolean;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
position?: number;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
let initPromise: Promise<void> | null = null;
|
|
29
|
-
function ensureInit() {
|
|
30
|
-
if (!initPromise) {
|
|
31
|
-
initPromise = init({
|
|
32
|
-
baseUrl: PYLON_BASE_URL,
|
|
33
|
-
appName: "__APP_NAME_SNAKE__",
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return initPromise;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export default function App() {
|
|
40
|
-
const [ready, setReady] = useState(false);
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
ensureInit().then(() => setReady(true));
|
|
43
|
-
}, []);
|
|
44
|
-
|
|
45
|
-
if (!ready) {
|
|
46
|
-
return (
|
|
47
|
-
<View style={[styles.screen, styles.center]}>
|
|
48
|
-
<ActivityIndicator />
|
|
49
|
-
</View>
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
return <TodoApp />;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function TodoApp() {
|
|
56
|
-
const { data: todos, loading } = db.useQuery<Todo>("Todo", {});
|
|
57
|
-
const [draft, setDraft] = useState("");
|
|
58
|
-
const [busy, setBusy] = useState(false);
|
|
59
|
-
const [editingId, setEditingId] = useState<string | null>(null);
|
|
60
|
-
const [editingDraft, setEditingDraft] = useState("");
|
|
61
|
-
|
|
62
|
-
async function add() {
|
|
63
|
-
const trimmed = draft.trim();
|
|
64
|
-
if (!trimmed) return;
|
|
65
|
-
setBusy(true);
|
|
66
|
-
try {
|
|
67
|
-
await callFn("addTodo", { title: trimmed });
|
|
68
|
-
setDraft("");
|
|
69
|
-
} catch (e) {
|
|
70
|
-
Alert.alert("Add failed", String(e));
|
|
71
|
-
} finally {
|
|
72
|
-
setBusy(false);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
async function toggle(t: Todo) {
|
|
77
|
-
try {
|
|
78
|
-
await callFn("toggleTodo", { id: t.id, done: !t.done });
|
|
79
|
-
} catch (e) {
|
|
80
|
-
Alert.alert("Toggle failed", String(e));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
async function remove(t: Todo) {
|
|
85
|
-
try {
|
|
86
|
-
await callFn("deleteTodo", { id: t.id });
|
|
87
|
-
} catch (e) {
|
|
88
|
-
Alert.alert("Delete failed", String(e));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
async function commitEdit(t: Todo) {
|
|
93
|
-
const trimmed = editingDraft.trim();
|
|
94
|
-
if (!trimmed || trimmed === t.title) {
|
|
95
|
-
setEditingId(null);
|
|
96
|
-
setEditingDraft("");
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
try {
|
|
100
|
-
await callFn("editTodo", { id: t.id, title: trimmed });
|
|
101
|
-
} catch (e) {
|
|
102
|
-
Alert.alert("Rename failed", String(e));
|
|
103
|
-
} finally {
|
|
104
|
-
setEditingId(null);
|
|
105
|
-
setEditingDraft("");
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const sorted = (todos ?? [])
|
|
110
|
-
.slice()
|
|
111
|
-
.sort((a, b) => {
|
|
112
|
-
const ap = typeof a.position === "number" ? a.position : Date.parse(a.createdAt) || 0;
|
|
113
|
-
const bp = typeof b.position === "number" ? b.position : Date.parse(b.createdAt) || 0;
|
|
114
|
-
return ap - bp;
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
return (
|
|
118
|
-
<View style={styles.screen}>
|
|
119
|
-
<StatusBar style="auto" />
|
|
120
|
-
<Text style={styles.title}>__APP_NAME__</Text>
|
|
121
|
-
<Text style={styles.subtitle}>
|
|
122
|
-
Tap to toggle. Long-press to edit. Swipe-style buttons for delete.
|
|
123
|
-
</Text>
|
|
124
|
-
|
|
125
|
-
<View style={styles.row}>
|
|
126
|
-
<TextInput
|
|
127
|
-
style={styles.input}
|
|
128
|
-
placeholder="What needs doing?"
|
|
129
|
-
value={draft}
|
|
130
|
-
onChangeText={setDraft}
|
|
131
|
-
onSubmitEditing={add}
|
|
132
|
-
editable={!busy}
|
|
133
|
-
autoCorrect={false}
|
|
134
|
-
/>
|
|
135
|
-
<Pressable
|
|
136
|
-
onPress={add}
|
|
137
|
-
disabled={busy || !draft.trim()}
|
|
138
|
-
style={({ pressed }) => [
|
|
139
|
-
styles.button,
|
|
140
|
-
(busy || !draft.trim()) && styles.buttonDisabled,
|
|
141
|
-
pressed && styles.buttonPressed,
|
|
142
|
-
]}
|
|
143
|
-
>
|
|
144
|
-
<Text style={styles.buttonLabel}>Add</Text>
|
|
145
|
-
</Pressable>
|
|
146
|
-
</View>
|
|
147
|
-
|
|
148
|
-
{loading ? (
|
|
149
|
-
<ActivityIndicator style={{ marginTop: 24 }} />
|
|
150
|
-
) : sorted.length === 0 ? (
|
|
151
|
-
<Text style={styles.empty}>No todos yet.</Text>
|
|
152
|
-
) : (
|
|
153
|
-
<FlatList
|
|
154
|
-
data={sorted}
|
|
155
|
-
keyExtractor={(t) => t.id}
|
|
156
|
-
contentContainerStyle={{ paddingTop: 16 }}
|
|
157
|
-
ItemSeparatorComponent={() => <View style={styles.separator} />}
|
|
158
|
-
renderItem={({ item }) => (
|
|
159
|
-
<Row
|
|
160
|
-
todo={item}
|
|
161
|
-
editing={editingId === item.id}
|
|
162
|
-
editingDraft={editingDraft}
|
|
163
|
-
onEditingDraftChange={setEditingDraft}
|
|
164
|
-
onStartEdit={() => {
|
|
165
|
-
setEditingId(item.id);
|
|
166
|
-
setEditingDraft(item.title);
|
|
167
|
-
}}
|
|
168
|
-
onCommitEdit={() => commitEdit(item)}
|
|
169
|
-
onCancelEdit={() => {
|
|
170
|
-
setEditingId(null);
|
|
171
|
-
setEditingDraft("");
|
|
172
|
-
}}
|
|
173
|
-
onToggle={() => toggle(item)}
|
|
174
|
-
onDelete={() => remove(item)}
|
|
175
|
-
/>
|
|
176
|
-
)}
|
|
177
|
-
/>
|
|
178
|
-
)}
|
|
179
|
-
</View>
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
function Row({
|
|
184
|
-
todo,
|
|
185
|
-
editing,
|
|
186
|
-
editingDraft,
|
|
187
|
-
onEditingDraftChange,
|
|
188
|
-
onStartEdit,
|
|
189
|
-
onCommitEdit,
|
|
190
|
-
onCancelEdit,
|
|
191
|
-
onToggle,
|
|
192
|
-
onDelete,
|
|
193
|
-
}: {
|
|
194
|
-
todo: Todo;
|
|
195
|
-
editing: boolean;
|
|
196
|
-
editingDraft: string;
|
|
197
|
-
onEditingDraftChange: (v: string) => void;
|
|
198
|
-
onStartEdit: () => void;
|
|
199
|
-
onCommitEdit: () => void;
|
|
200
|
-
onCancelEdit: () => void;
|
|
201
|
-
onToggle: () => void;
|
|
202
|
-
onDelete: () => void;
|
|
203
|
-
}) {
|
|
204
|
-
return (
|
|
205
|
-
<View style={styles.item}>
|
|
206
|
-
<Pressable onPress={onToggle} hitSlop={8}>
|
|
207
|
-
<Text style={[styles.checkbox, todo.done && styles.checkboxDone]}>
|
|
208
|
-
{todo.done ? "☑" : "☐"}
|
|
209
|
-
</Text>
|
|
210
|
-
</Pressable>
|
|
211
|
-
{editing ? (
|
|
212
|
-
<TextInput
|
|
213
|
-
style={[styles.itemText, styles.itemEditInput]}
|
|
214
|
-
value={editingDraft}
|
|
215
|
-
onChangeText={onEditingDraftChange}
|
|
216
|
-
onSubmitEditing={onCommitEdit}
|
|
217
|
-
onBlur={onCommitEdit}
|
|
218
|
-
autoFocus
|
|
219
|
-
blurOnSubmit
|
|
220
|
-
/>
|
|
221
|
-
) : (
|
|
222
|
-
<Pressable onLongPress={onStartEdit} style={{ flex: 1 }}>
|
|
223
|
-
<Text
|
|
224
|
-
style={[styles.itemText, todo.done && styles.itemTextDone]}
|
|
225
|
-
numberOfLines={1}
|
|
226
|
-
>
|
|
227
|
-
{todo.title}
|
|
228
|
-
</Text>
|
|
229
|
-
</Pressable>
|
|
230
|
-
)}
|
|
231
|
-
{editing ? (
|
|
232
|
-
<Pressable onPress={onCancelEdit} hitSlop={8}>
|
|
233
|
-
<Text style={styles.actionLabel}>Cancel</Text>
|
|
234
|
-
</Pressable>
|
|
235
|
-
) : (
|
|
236
|
-
<Pressable onPress={onDelete} hitSlop={8}>
|
|
237
|
-
<Text style={[styles.actionLabel, styles.actionDelete]}>Delete</Text>
|
|
238
|
-
</Pressable>
|
|
239
|
-
)}
|
|
240
|
-
</View>
|
|
241
|
-
);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
const styles = StyleSheet.create({
|
|
245
|
-
screen: { flex: 1, paddingTop: 64, paddingHorizontal: 20, backgroundColor: "#fff" },
|
|
246
|
-
center: { alignItems: "center", justifyContent: "center" },
|
|
247
|
-
title: { fontSize: 28, fontWeight: "600" },
|
|
248
|
-
subtitle: { color: "#666", marginTop: 4, marginBottom: 20 },
|
|
249
|
-
row: { flexDirection: "row", gap: 8 },
|
|
250
|
-
input: {
|
|
251
|
-
flex: 1,
|
|
252
|
-
borderWidth: 1,
|
|
253
|
-
borderColor: "#d4d4d8",
|
|
254
|
-
borderRadius: 6,
|
|
255
|
-
paddingHorizontal: 12,
|
|
256
|
-
paddingVertical: 8,
|
|
257
|
-
fontSize: 14,
|
|
258
|
-
},
|
|
259
|
-
button: {
|
|
260
|
-
backgroundColor: "#171717",
|
|
261
|
-
borderRadius: 6,
|
|
262
|
-
paddingHorizontal: 16,
|
|
263
|
-
justifyContent: "center",
|
|
264
|
-
},
|
|
265
|
-
buttonDisabled: { opacity: 0.5 },
|
|
266
|
-
buttonPressed: { opacity: 0.8 },
|
|
267
|
-
buttonLabel: { color: "#fff", fontWeight: "600" },
|
|
268
|
-
empty: { textAlign: "center", color: "#999", marginTop: 32 },
|
|
269
|
-
item: {
|
|
270
|
-
flexDirection: "row",
|
|
271
|
-
alignItems: "center",
|
|
272
|
-
gap: 12,
|
|
273
|
-
paddingVertical: 12,
|
|
274
|
-
},
|
|
275
|
-
checkbox: { fontSize: 22, color: "#9ca3af" },
|
|
276
|
-
checkboxDone: { color: "#16a34a" },
|
|
277
|
-
itemText: { flex: 1, fontSize: 15 },
|
|
278
|
-
itemTextDone: { color: "#9ca3af", textDecorationLine: "line-through" },
|
|
279
|
-
itemEditInput: {
|
|
280
|
-
borderBottomWidth: 1,
|
|
281
|
-
borderColor: "#d4d4d8",
|
|
282
|
-
paddingVertical: 4,
|
|
283
|
-
},
|
|
284
|
-
actionLabel: { fontSize: 13, color: "#6b7280" },
|
|
285
|
-
actionDelete: { color: "#ef4444" },
|
|
286
|
-
separator: { height: 1, backgroundColor: "#e5e5e5" },
|
|
287
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"expo": {
|
|
3
|
-
"name": "__APP_NAME__",
|
|
4
|
-
"slug": "__APP_NAME_KEBAB__",
|
|
5
|
-
"version": "0.0.1",
|
|
6
|
-
"orientation": "portrait",
|
|
7
|
-
"userInterfaceStyle": "automatic",
|
|
8
|
-
"ios": {
|
|
9
|
-
"supportsTablet": true,
|
|
10
|
-
"bundleIdentifier": "com.example.__APP_NAME_SNAKE__",
|
|
11
|
-
"infoPlist": {
|
|
12
|
-
"NSAppTransportSecurity": {
|
|
13
|
-
"NSAllowsLocalNetworking": true
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"android": {
|
|
18
|
-
"package": "com.example.__APP_NAME_SNAKE__",
|
|
19
|
-
"usesCleartextTraffic": true
|
|
20
|
-
},
|
|
21
|
-
"web": {
|
|
22
|
-
"bundler": "metro"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@__APP_NAME_KEBAB__/expo",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "node_modules/expo/AppEntry.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "expo start",
|
|
8
|
-
"dev": "expo start",
|
|
9
|
-
"android": "expo start --android",
|
|
10
|
-
"ios": "expo start --ios",
|
|
11
|
-
"web": "expo start --web"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@pylonsync/sdk": "^__PYLON_VERSION__",
|
|
15
|
-
"@pylonsync/react": "^__PYLON_VERSION__",
|
|
16
|
-
"@pylonsync/react-native": "^__PYLON_VERSION__",
|
|
17
|
-
"@pylonsync/sync": "^__PYLON_VERSION__",
|
|
18
|
-
"@react-native-async-storage/async-storage": "2.2.0",
|
|
19
|
-
"@react-native-community/netinfo": "~12.0.0",
|
|
20
|
-
"expo": "~56.0.0",
|
|
21
|
-
"expo-status-bar": "~56.0.0",
|
|
22
|
-
"react": "19.2.0",
|
|
23
|
-
"react-dom": "19.2.0",
|
|
24
|
-
"react-native": "0.85.3"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@babel/core": "^7.25.0",
|
|
28
|
-
"@types/react": "~19.2.0",
|
|
29
|
-
"typescript": "~5.9.0"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"lib": ["esnext", "dom"],
|
|
7
|
-
"jsx": "react-native",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"noEmit": true
|
|
14
|
-
},
|
|
15
|
-
"include": ["App.tsx", "src/**/*.ts", "src/**/*.tsx"]
|
|
16
|
-
}
|
|
@@ -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,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,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,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,34 +0,0 @@
|
|
|
1
|
-
// swift-tools-version:5.9
|
|
2
|
-
import PackageDescription
|
|
3
|
-
|
|
4
|
-
// SwiftPM package for the __APP_NAME__ mobile app.
|
|
5
|
-
//
|
|
6
|
-
// The executable target runs on macOS via `swift run`. For an iOS
|
|
7
|
-
// build, generate an Xcode project from `project.yml`:
|
|
8
|
-
//
|
|
9
|
-
// brew install xcodegen
|
|
10
|
-
// xcodegen generate
|
|
11
|
-
// open __APP_NAME_PASCAL__.xcodeproj
|
|
12
|
-
//
|
|
13
|
-
// The Xcode project pulls the same Sources/__APP_NAME_PASCAL__/ tree
|
|
14
|
-
// as `swift build`, so iOS + macOS share one source set.
|
|
15
|
-
let package = Package(
|
|
16
|
-
name: "__APP_NAME_PASCAL__",
|
|
17
|
-
platforms: [
|
|
18
|
-
.iOS(.v16),
|
|
19
|
-
.macOS(.v13),
|
|
20
|
-
],
|
|
21
|
-
dependencies: [
|
|
22
|
-
.package(url: "https://github.com/pylonsync/pylon-swift.git", from: "0.3.0"),
|
|
23
|
-
],
|
|
24
|
-
targets: [
|
|
25
|
-
.executableTarget(
|
|
26
|
-
name: "__APP_NAME_PASCAL__",
|
|
27
|
-
dependencies: [
|
|
28
|
-
.product(name: "PylonClient", package: "pylon-swift"),
|
|
29
|
-
.product(name: "PylonSwiftUI", package: "pylon-swift"),
|
|
30
|
-
],
|
|
31
|
-
path: "Sources/__APP_NAME_PASCAL__"
|
|
32
|
-
),
|
|
33
|
-
]
|
|
34
|
-
)
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import SwiftUI
|
|
2
|
-
import PylonClient
|
|
3
|
-
|
|
4
|
-
/// Lists every Widget and lets the user create a new one. Uses
|
|
5
|
-
/// PylonClient's HTTP API directly — no offline mirror, no realtime
|
|
6
|
-
/// subscription. Plenty for a barebones starter; upgrade to
|
|
7
|
-
/// `PylonQuery` from `PylonSwiftUI` when you need live updates.
|
|
8
|
-
struct ContentView: View {
|
|
9
|
-
@EnvironmentObject var session: AppSession
|
|
10
|
-
|
|
11
|
-
@State private var widgets: [Widget] = []
|
|
12
|
-
@State private var newName: String = ""
|
|
13
|
-
@State private var loading = true
|
|
14
|
-
@State private var creating = false
|
|
15
|
-
@State private var errorMessage: String?
|
|
16
|
-
|
|
17
|
-
var body: some View {
|
|
18
|
-
NavigationStack {
|
|
19
|
-
List {
|
|
20
|
-
Section("Create") {
|
|
21
|
-
HStack {
|
|
22
|
-
TextField("Name a widget…", text: $newName)
|
|
23
|
-
.textFieldStyle(.roundedBorder)
|
|
24
|
-
.autocorrectionDisabled()
|
|
25
|
-
Button("Add") { Task { await create() } }
|
|
26
|
-
.buttonStyle(.borderedProminent)
|
|
27
|
-
.disabled(newName.trimmingCharacters(in: .whitespaces).isEmpty || creating)
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
Section("Widgets") {
|
|
32
|
-
if loading {
|
|
33
|
-
ProgressView()
|
|
34
|
-
} else if widgets.isEmpty {
|
|
35
|
-
Text("No widgets yet.")
|
|
36
|
-
.foregroundStyle(.secondary)
|
|
37
|
-
} else {
|
|
38
|
-
ForEach(widgets) { w in
|
|
39
|
-
HStack {
|
|
40
|
-
Text(w.name).font(.body)
|
|
41
|
-
Spacer()
|
|
42
|
-
Text("count: \(w.count)")
|
|
43
|
-
.font(.system(.caption, design: .monospaced))
|
|
44
|
-
.foregroundStyle(.secondary)
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if let errorMessage {
|
|
51
|
-
Section {
|
|
52
|
-
Text(errorMessage)
|
|
53
|
-
.foregroundStyle(.red)
|
|
54
|
-
.font(.caption)
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.navigationTitle("__APP_NAME__")
|
|
59
|
-
.task { await load() }
|
|
60
|
-
.refreshable { await load() }
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
private func load() async {
|
|
65
|
-
loading = true
|
|
66
|
-
defer { loading = false }
|
|
67
|
-
do {
|
|
68
|
-
let rows: [Widget] = try await session.pylon.callFn(
|
|
69
|
-
"listWidgets",
|
|
70
|
-
args: EmptyArgs(),
|
|
71
|
-
)
|
|
72
|
-
widgets = rows
|
|
73
|
-
errorMessage = nil
|
|
74
|
-
} catch {
|
|
75
|
-
errorMessage = "Load failed: \(error.localizedDescription)"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
private func create() async {
|
|
80
|
-
let trimmed = newName.trimmingCharacters(in: .whitespaces)
|
|
81
|
-
guard !trimmed.isEmpty else { return }
|
|
82
|
-
creating = true
|
|
83
|
-
defer { creating = false }
|
|
84
|
-
do {
|
|
85
|
-
let widget: Widget = try await session.pylon.callFn(
|
|
86
|
-
"createWidget",
|
|
87
|
-
args: CreateWidgetArgs(name: trimmed),
|
|
88
|
-
)
|
|
89
|
-
widgets.insert(widget, at: 0)
|
|
90
|
-
newName = ""
|
|
91
|
-
errorMessage = nil
|
|
92
|
-
} catch {
|
|
93
|
-
errorMessage = "Create failed: \(error.localizedDescription)"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private struct EmptyArgs: Encodable {}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Foundation
|
|
2
|
-
|
|
3
|
-
/// Mirrors `Widget` from `apps/api/schema.ts`. Kept hand-written here
|
|
4
|
-
/// for clarity in the scaffold; for production, run
|
|
5
|
-
/// `pylon codegen client schema.ts --target swift --out Models.swift`
|
|
6
|
-
/// from `apps/api/` to regenerate this file from the schema.
|
|
7
|
-
struct Widget: Codable, Identifiable, Hashable {
|
|
8
|
-
let id: String
|
|
9
|
-
let name: String
|
|
10
|
-
let count: Int
|
|
11
|
-
let createdAt: String
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/// Argument shape for `createWidget`.
|
|
15
|
-
struct CreateWidgetArgs: Encodable {
|
|
16
|
-
let name: String
|
|
17
|
-
}
|
package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import SwiftUI
|
|
2
|
-
import PylonClient
|
|
3
|
-
|
|
4
|
-
/// SwiftUI entry point. Bootstraps a single shared PylonClient pointed
|
|
5
|
-
/// at the local Pylon control plane (`pylon dev`'s default port). For
|
|
6
|
-
/// production, override `PYLON_BASE_URL` via the build environment or
|
|
7
|
-
/// edit the URL inline.
|
|
8
|
-
@main
|
|
9
|
-
struct __APP_NAME_PASCAL__App: App {
|
|
10
|
-
@StateObject private var session = AppSession()
|
|
11
|
-
|
|
12
|
-
var body: some Scene {
|
|
13
|
-
WindowGroup {
|
|
14
|
-
ContentView()
|
|
15
|
-
.environmentObject(session)
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/// Shared app state. The PylonClient is held here so every view in
|
|
21
|
-
/// the tree gets the same instance via `@EnvironmentObject`.
|
|
22
|
-
@MainActor
|
|
23
|
-
final class AppSession: ObservableObject {
|
|
24
|
-
let pylon: PylonClient
|
|
25
|
-
|
|
26
|
-
init() {
|
|
27
|
-
let baseURLString = ProcessInfo.processInfo.environment["PYLON_BASE_URL"]
|
|
28
|
-
?? "http://localhost:4321"
|
|
29
|
-
guard let url = URL(string: baseURLString) else {
|
|
30
|
-
fatalError("Invalid PYLON_BASE_URL: \(baseURLString)")
|
|
31
|
-
}
|
|
32
|
-
self.pylon = PylonClient(baseURL: url, appName: "__APP_NAME_SNAKE__")
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# xcodegen spec for the iOS build of __APP_NAME__.
|
|
2
|
-
#
|
|
3
|
-
# Materialize the Xcode project once with:
|
|
4
|
-
# brew install xcodegen
|
|
5
|
-
# xcodegen generate
|
|
6
|
-
# Then open __APP_NAME_PASCAL__.xcodeproj.
|
|
7
|
-
|
|
8
|
-
name: __APP_NAME_PASCAL__
|
|
9
|
-
options:
|
|
10
|
-
bundleIdPrefix: com.example
|
|
11
|
-
deploymentTarget:
|
|
12
|
-
iOS: "16.0"
|
|
13
|
-
|
|
14
|
-
packages:
|
|
15
|
-
pylon:
|
|
16
|
-
url: https://github.com/pylonsync/pylon-swift.git
|
|
17
|
-
from: "0.3.0"
|
|
18
|
-
|
|
19
|
-
targets:
|
|
20
|
-
__APP_NAME_PASCAL__:
|
|
21
|
-
type: application
|
|
22
|
-
platform: iOS
|
|
23
|
-
sources:
|
|
24
|
-
- path: Sources/__APP_NAME_PASCAL__
|
|
25
|
-
settings:
|
|
26
|
-
base:
|
|
27
|
-
GENERATE_INFOPLIST_FILE: YES
|
|
28
|
-
INFOPLIST_KEY_UIApplicationSceneManifest_Generation: YES
|
|
29
|
-
INFOPLIST_KEY_UILaunchScreen_Generation: YES
|
|
30
|
-
INFOPLIST_KEY_UISupportedInterfaceOrientations: "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
|
|
31
|
-
TARGETED_DEVICE_FAMILY: "1,2"
|
|
32
|
-
SWIFT_VERSION: "5.9"
|
|
33
|
-
ENABLE_PREVIEWS: YES
|
|
34
|
-
# __APP_NAME__ talks to a Pylon backend on localhost during dev.
|
|
35
|
-
# The simulator can reach localhost directly; on a physical device
|
|
36
|
-
# set PYLON_BASE_URL to your machine's LAN IP.
|
|
37
|
-
INFOPLIST_KEY_NSAppTransportSecurity: "{NSAllowsLocalNetworking = YES;}"
|
|
38
|
-
dependencies:
|
|
39
|
-
- package: pylon
|
|
40
|
-
product: PylonClient
|
|
41
|
-
- package: pylon
|
|
42
|
-
product: PylonSwiftUI
|