openship 0.1.0 → 0.1.1
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/.env.example +19 -3
- package/CONTRIBUTING.md +69 -19
- package/LICENSE +661 -0
- package/README.md +304 -108
- package/apps/api/Dockerfile +6 -8
- package/apps/api/package.json +25 -21
- package/apps/api/src/app.ts +46 -3
- package/apps/api/src/config/env.ts +81 -7
- package/apps/api/src/lib/auth-mode.ts +42 -0
- package/apps/api/src/lib/auth.ts +105 -0
- package/apps/api/src/lib/cache.ts +128 -0
- package/apps/api/src/lib/cloud-auth-proxy.ts +310 -0
- package/apps/api/src/lib/cloud-client.ts +103 -0
- package/apps/api/src/lib/compose-parser.ts +138 -0
- package/apps/api/src/lib/controller-helpers.ts +90 -0
- package/apps/api/src/lib/email-templates.ts +94 -0
- package/apps/api/src/lib/encryption.ts +102 -0
- package/apps/api/src/lib/local-user.ts +65 -0
- package/apps/api/src/lib/mail.ts +48 -0
- package/apps/api/src/lib/notifications.ts +195 -0
- package/apps/api/src/lib/openship-cloud.ts +101 -0
- package/apps/api/src/lib/resources.ts +96 -0
- package/apps/api/src/lib/screenshots.ts +189 -0
- package/apps/api/src/lib/ssh-manager.ts +369 -0
- package/apps/api/src/lib/ssl-scheduler.ts +109 -0
- package/apps/api/src/lib/stack-detector.ts +708 -0
- package/apps/api/src/lib/system-debug.ts +10 -0
- package/apps/api/src/middleware/auth.ts +49 -13
- package/apps/api/src/middleware/error-handler.ts +23 -3
- package/apps/api/src/middleware/index.ts +2 -0
- package/apps/api/src/middleware/internal-auth.ts +40 -0
- package/apps/api/src/middleware/local-only.ts +20 -0
- package/apps/api/src/middleware/rate-limiter.ts +9 -0
- package/apps/api/src/modules/analytics/analytics.controller.ts +111 -0
- package/apps/api/src/modules/analytics/analytics.routes.ts +29 -0
- package/apps/api/src/modules/analytics/analytics.schema.ts +37 -0
- package/apps/api/src/modules/analytics/analytics.service.ts +264 -0
- package/apps/api/src/modules/auth/auth.routes.ts +233 -6
- package/apps/api/src/modules/billing/billing.routes.ts +8 -0
- package/apps/api/src/modules/cloud/cloud.controller.ts +225 -0
- package/apps/api/src/modules/cloud/cloud.routes.ts +40 -0
- package/apps/api/src/modules/deployments/build.service.ts +791 -0
- package/apps/api/src/modules/deployments/deployment-lifecycle.ts +138 -0
- package/apps/api/src/modules/deployments/deployment.controller.ts +324 -16
- package/apps/api/src/modules/deployments/deployment.routes.ts +33 -7
- package/apps/api/src/modules/deployments/deployment.schema.ts +37 -5
- package/apps/api/src/modules/deployments/deployment.service.ts +178 -11
- package/apps/api/src/modules/deployments/preflight.ts +280 -0
- package/apps/api/src/modules/deployments/prepare.service.ts +252 -0
- package/apps/api/src/modules/deployments/session-manager.ts +283 -0
- package/apps/api/src/modules/deployments/ssl.service.ts +73 -0
- package/apps/api/src/modules/domains/domain.controller.ts +59 -7
- package/apps/api/src/modules/domains/domain.routes.ts +20 -5
- package/apps/api/src/modules/domains/domain.schema.ts +35 -0
- package/apps/api/src/modules/domains/domain.service.ts +375 -9
- package/apps/api/src/modules/github/github.auth.ts +397 -0
- package/apps/api/src/modules/github/github.controller.ts +387 -0
- package/apps/api/src/modules/github/github.local-auth.ts +251 -0
- package/apps/api/src/modules/github/github.routes.ts +50 -0
- package/apps/api/src/modules/github/github.schema.ts +52 -0
- package/apps/api/src/modules/github/github.service.ts +592 -0
- package/apps/api/src/modules/github/github.types.ts +158 -0
- package/apps/api/src/modules/github/github.webhook.ts +186 -0
- package/apps/api/src/modules/github/index.ts +16 -0
- package/apps/api/src/modules/health/health.routes.ts +35 -0
- package/apps/api/src/modules/projects/project.controller.ts +481 -12
- package/apps/api/src/modules/projects/project.routes.ts +63 -6
- package/apps/api/src/modules/projects/project.schema.ts +104 -6
- package/apps/api/src/modules/projects/project.service.ts +502 -11
- package/apps/api/src/modules/settings/settings.controller.ts +55 -0
- package/apps/api/src/modules/settings/settings.routes.ts +25 -0
- package/apps/api/src/modules/settings/settings.service.ts +49 -0
- package/apps/api/src/modules/system/filesystem.controller.ts +66 -0
- package/apps/api/src/modules/system/index.ts +1 -0
- package/apps/api/src/modules/system/server-check.controller.ts +475 -0
- package/apps/api/src/modules/system/setup-session.ts +255 -0
- package/apps/api/src/modules/system/setup.controller.ts +128 -0
- package/apps/api/src/modules/system/system.routes.ts +42 -0
- package/apps/api/src/modules/webhooks/webhook.controller.ts +57 -15
- package/apps/api/src/modules/webhooks/webhook.routes.ts +11 -8
- package/apps/api/src/modules/webhooks/webhook.service.ts +46 -5
- package/apps/api/src/modules/webhooks/webhook.types.ts +35 -0
- package/apps/api/tsconfig.json +3 -1
- package/apps/cli/package.json +8 -10
- package/apps/cli/tsconfig.json +2 -1
- package/apps/dashboard/Dockerfile +4 -6
- package/apps/dashboard/components.json +20 -0
- package/apps/dashboard/next-env.d.ts +6 -0
- package/apps/dashboard/next.config.mjs +11 -1
- package/apps/dashboard/package.json +25 -13
- package/apps/dashboard/postcss.config.mjs +5 -0
- package/apps/dashboard/public/android-chrome-192x192.png +0 -0
- package/apps/dashboard/public/android-chrome-512x512.png +0 -0
- package/apps/dashboard/public/apple-touch-icon.png +0 -0
- package/apps/dashboard/public/favicon-16x16.png +0 -0
- package/apps/dashboard/public/favicon-32x32.png +0 -0
- package/apps/dashboard/public/favicon.ico +0 -0
- package/apps/dashboard/public/site.webmanifest +19 -0
- package/apps/dashboard/src/app/(auth)/forgot-password/page.tsx +114 -0
- package/apps/dashboard/src/app/(auth)/layout.tsx +18 -3
- package/apps/dashboard/src/app/(auth)/login/page.tsx +215 -6
- package/apps/dashboard/src/app/(auth)/providers.tsx +34 -0
- package/apps/dashboard/src/app/(auth)/register/page.tsx +171 -5
- package/apps/dashboard/src/app/(auth)/reset-password/page.tsx +172 -0
- package/apps/dashboard/src/app/(auth)/verify-email/page.tsx +190 -0
- package/apps/dashboard/src/app/(dashboard)/(deployment)/build/[id]/page.tsx +162 -0
- package/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/BuildSummary.tsx +166 -0
- package/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/DnsConfiguration.tsx +119 -0
- package/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/DomainSettings.tsx +291 -0
- package/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/Header.tsx +71 -0
- package/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/Sidebar.tsx +270 -0
- package/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/SkeletonLoader.tsx +87 -0
- package/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/page.tsx +169 -0
- package/apps/dashboard/src/app/(dashboard)/(deployment)/layout.tsx +7 -0
- package/apps/dashboard/src/app/(dashboard)/billing/page.tsx +1 -8
- package/apps/dashboard/src/app/(dashboard)/deployments/components/CommitDetailsModal.tsx +240 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentCard.tsx +121 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentHeader.tsx +89 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentMenu.tsx +182 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentsContent.tsx +324 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentsFilters.tsx +99 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/DeploymentsList.tsx +31 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/EmptyState.tsx +101 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/LoadingSkeleton.tsx +57 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/ProjectFilter.tsx +109 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/components/index.ts +9 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/page.tsx +9 -3
- package/apps/dashboard/src/app/(dashboard)/deployments/types.ts +44 -0
- package/apps/dashboard/src/app/(dashboard)/deployments/utils.ts +176 -0
- package/apps/dashboard/src/app/(dashboard)/domains/page.tsx +1 -6
- package/apps/dashboard/src/app/(dashboard)/integrations/page.tsx +321 -0
- package/apps/dashboard/src/app/(dashboard)/layout.tsx +22 -32
- package/apps/dashboard/src/app/(dashboard)/library/components/ConnectPrompt.tsx +187 -0
- package/apps/dashboard/src/app/(dashboard)/library/components/LibrarySidebar.tsx +147 -0
- package/apps/dashboard/src/app/(dashboard)/library/components/LoadingSkeleton.tsx +39 -0
- package/apps/dashboard/src/app/(dashboard)/library/components/LocalProjects.tsx +548 -0
- package/apps/dashboard/src/app/(dashboard)/library/components/RepositoryList.tsx +292 -0
- package/apps/dashboard/src/app/(dashboard)/library/components/TemplateGrid.tsx +36 -0
- package/apps/dashboard/src/app/(dashboard)/library/components/UrlImport.tsx +74 -0
- package/apps/dashboard/src/app/(dashboard)/library/page.tsx +121 -0
- package/apps/dashboard/src/app/(dashboard)/library/types.ts +26 -0
- package/apps/dashboard/src/app/(dashboard)/monitoring/page.tsx +1 -6
- package/apps/dashboard/src/app/(dashboard)/page.tsx +485 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/[[...slug]]/layout.tsx +22 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/[[...slug]]/page.tsx +286 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/AdvancedSettings.tsx +235 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/BuildSettings.tsx +174 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/DeleteConfirmationDialog.tsx +45 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/DeletionModal.tsx +95 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/Deployments.tsx +11 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/DomainSettings.tsx +523 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/EnvironmentSettings.tsx +246 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/GeneralSettings.tsx +93 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/GitInfo.tsx +261 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/GitSettings.tsx +391 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/LogsSettings.tsx +133 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/ProjectNotFound.tsx +95 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/ProjectsBottomNavigation.tsx +62 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/ResourceSettings.tsx +333 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/SettingSection.tsx +66 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/SettingsNavigation.tsx +27 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/SleepModeSettings.tsx +134 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/general/ProductionUrl.tsx +25 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/general/ProjectIdentity.tsx +159 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/general/ProjectInfo.tsx +58 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/general/SkeletonLoader.tsx +170 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/general/StatsCards.tsx +33 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/general/TopPaths.tsx +56 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/general/TrafficChart.tsx +157 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/general/index.ts +14 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/logs/LogsActions.tsx +52 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/logs/ServerLogs.tsx +249 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/logs/TerminalLogs.tsx +682 -0
- package/apps/dashboard/src/app/(dashboard)/projects/[id]/components/logs/logs.css +127 -0
- package/apps/dashboard/src/app/(dashboard)/projects/components/DeploymentCard.tsx +73 -0
- package/apps/dashboard/src/app/(dashboard)/projects/components/ProjectCard.tsx +330 -0
- package/apps/dashboard/src/app/(dashboard)/projects/page.tsx +326 -4
- package/apps/dashboard/src/app/(dashboard)/providers.tsx +23 -0
- package/apps/dashboard/src/app/(dashboard)/servers/[serverId]/_components/components-tab.tsx +329 -0
- package/apps/dashboard/src/app/(dashboard)/servers/[serverId]/_components/overview-tab.tsx +229 -0
- package/apps/dashboard/src/app/(dashboard)/servers/[serverId]/_components/terminal-tab.tsx +38 -0
- package/apps/dashboard/src/app/(dashboard)/servers/[serverId]/page.tsx +437 -0
- package/apps/dashboard/src/app/(dashboard)/servers/new/_components/checking-state.tsx +15 -0
- package/apps/dashboard/src/app/(dashboard)/servers/new/_components/choose-mode.tsx +54 -0
- package/apps/dashboard/src/app/(dashboard)/servers/new/_components/component-row.tsx +65 -0
- package/apps/dashboard/src/app/(dashboard)/servers/new/_components/error-banner.tsx +13 -0
- package/apps/dashboard/src/app/(dashboard)/servers/new/_components/installing-panel.tsx +227 -0
- package/apps/dashboard/src/app/(dashboard)/servers/new/_components/results-panel.tsx +90 -0
- package/apps/dashboard/src/app/(dashboard)/servers/new/_components/setup-header.tsx +56 -0
- package/apps/dashboard/src/app/(dashboard)/servers/new/_components/types.ts +13 -0
- package/apps/dashboard/src/app/(dashboard)/servers/new/page.tsx +666 -0
- package/apps/dashboard/src/app/(dashboard)/servers/page.tsx +283 -0
- package/apps/dashboard/src/app/(dashboard)/settings/_components/BuildPreferences.tsx +110 -0
- package/apps/dashboard/src/app/(dashboard)/settings/_components/CloudConnection.tsx +147 -0
- package/apps/dashboard/src/app/(dashboard)/settings/_components/InstanceInfo.tsx +54 -0
- package/apps/dashboard/src/app/(dashboard)/settings/_components/ServerConnection.tsx +407 -0
- package/apps/dashboard/src/app/(dashboard)/settings/_components/SettingsSection.tsx +32 -0
- package/apps/dashboard/src/app/(dashboard)/settings/page.tsx +62 -3
- package/apps/dashboard/src/app/auth/callback/close/page.tsx +23 -0
- package/apps/dashboard/src/app/auth/callback/install/page.tsx +40 -0
- package/apps/dashboard/src/app/authorize/page.tsx +137 -0
- package/apps/dashboard/src/app/globals.css +57 -3
- package/apps/dashboard/src/app/layout.tsx +43 -3
- package/apps/dashboard/src/components/auth-shell.tsx +66 -0
- package/apps/dashboard/src/components/deployments/types.ts +44 -0
- package/apps/dashboard/src/components/global-deployments/index.ts +17 -0
- package/apps/dashboard/src/components/i18n-provider.tsx +100 -0
- package/apps/dashboard/src/components/import-project/BuildSettings.tsx +376 -0
- package/apps/dashboard/src/components/import-project/BuildSkeleton.tsx +161 -0
- package/apps/dashboard/src/components/import-project/BuildTerminal.tsx +358 -0
- package/apps/dashboard/src/components/import-project/ComposeServices.tsx +455 -0
- package/apps/dashboard/src/components/import-project/DeploymentProcessing.tsx +510 -0
- package/apps/dashboard/src/components/import-project/DockerSettings.tsx +64 -0
- package/apps/dashboard/src/components/import-project/EnvironmentVariables.tsx +481 -0
- package/apps/dashboard/src/components/import-project/Frameworks.tsx +90 -0
- package/apps/dashboard/src/components/import-project/ProjectSettings.tsx +160 -0
- package/apps/dashboard/src/components/import-project/types.ts +82 -0
- package/apps/dashboard/src/components/integrations/GithubPermissionModal.tsx +173 -0
- package/apps/dashboard/src/components/language-switcher.tsx +36 -0
- package/apps/dashboard/src/components/logo.tsx +13 -0
- package/apps/dashboard/src/components/network-error-handler.tsx +27 -0
- package/apps/dashboard/src/components/oauth-buttons.tsx +81 -0
- package/apps/dashboard/src/components/overview/ActivityChart.tsx +247 -0
- package/apps/dashboard/src/components/overview/ApiRequestsCard.tsx +111 -0
- package/apps/dashboard/src/components/overview/CreditsCard.tsx +137 -0
- package/apps/dashboard/src/components/overview/DeploymentsChart.tsx +195 -0
- package/apps/dashboard/src/components/overview/EmptyState.tsx +126 -0
- package/apps/dashboard/src/components/overview/LoadingSkeleton.tsx +92 -0
- package/apps/dashboard/src/components/overview/OverviewHeader.tsx +74 -0
- package/apps/dashboard/src/components/overview/OverviewHeroChart.tsx +344 -0
- package/apps/dashboard/src/components/overview/ProjectsCard.tsx +134 -0
- package/apps/dashboard/src/components/overview/QuickLinks.tsx +119 -0
- package/apps/dashboard/src/components/overview/SandboxesCard.tsx +150 -0
- package/apps/dashboard/src/components/overview/StatsGrid.tsx +166 -0
- package/apps/dashboard/src/components/overview/TokenUsageChart.tsx +206 -0
- package/apps/dashboard/src/components/overview/UsageStats.tsx +79 -0
- package/apps/dashboard/src/components/overview/index.ts +30 -0
- package/apps/dashboard/src/components/overview/types.ts +116 -0
- package/apps/dashboard/src/components/page-header.tsx +25 -0
- package/apps/dashboard/src/components/project-settings/ServerSideSwitch.jsx +60 -0
- package/apps/dashboard/src/components/shared/AlertBox.tsx +39 -0
- package/apps/dashboard/src/components/shared/CTASection.tsx +45 -0
- package/apps/dashboard/src/components/shared/ErrorState.tsx +176 -0
- package/apps/dashboard/src/components/shared/FeatureCard.tsx +20 -0
- package/apps/dashboard/src/components/shared/MDXComponents.tsx +24 -0
- package/apps/dashboard/src/components/shared/MachineSettingsModal.tsx +286 -0
- package/apps/dashboard/src/components/shared/Modal.tsx +39 -0
- package/apps/dashboard/src/components/shared/OTPInput.tsx +122 -0
- package/apps/dashboard/src/components/shared/PageHero.tsx +21 -0
- package/apps/dashboard/src/components/shared/PlatformFeatureCard.tsx +27 -0
- package/apps/dashboard/src/components/shared/StatCard.tsx +14 -0
- package/apps/dashboard/src/components/shared/ValueCard.tsx +20 -0
- package/apps/dashboard/src/components/shared/index.ts +8 -0
- package/apps/dashboard/src/components/sidebar.tsx +282 -0
- package/apps/dashboard/src/components/theme-provider.tsx +96 -0
- package/apps/dashboard/src/components/toast.tsx +106 -0
- package/apps/dashboard/src/components/ui/CustomCursor.tsx +107 -0
- package/apps/dashboard/src/components/ui/CustomSelect.tsx +126 -0
- package/apps/dashboard/src/components/ui/DropdownMenu.tsx +174 -0
- package/apps/dashboard/src/components/ui/FileIcon.jsx +59 -0
- package/apps/dashboard/src/components/ui/IconPickerModal.tsx +273 -0
- package/apps/dashboard/src/components/ui/InfoBanner.jsx +39 -0
- package/apps/dashboard/src/components/ui/Logo.tsx +14 -0
- package/apps/dashboard/src/components/ui/Modal.tsx +117 -0
- package/apps/dashboard/src/components/ui/PageContainer.tsx +12 -0
- package/apps/dashboard/src/components/ui/SectionContainer.jsx +7 -0
- package/apps/dashboard/src/components/ui/SlidingToggle.tsx +128 -0
- package/apps/dashboard/src/components/ui/Toast.tsx +29 -0
- package/apps/dashboard/src/components/ui/button.tsx +58 -0
- package/apps/dashboard/src/components/ui/card.tsx +60 -0
- package/apps/dashboard/src/components/ui/input.tsx +20 -0
- package/apps/dashboard/src/components/ui/label.tsx +19 -0
- package/apps/dashboard/src/components/ui/select.tsx +10 -0
- package/apps/dashboard/src/components/ui/textarea.tsx +9 -0
- package/apps/dashboard/src/constants/lang-colors.ts +25 -0
- package/apps/dashboard/src/constants/mock.ts +38 -0
- package/apps/dashboard/src/context/AuthContext.tsx +91 -0
- package/apps/dashboard/src/context/CloudContext.tsx +275 -0
- package/apps/dashboard/src/context/DeploymentContext.tsx +71 -0
- package/apps/dashboard/src/context/GitHubContext.tsx +288 -0
- package/apps/dashboard/src/context/ModalContext.tsx +300 -0
- package/apps/dashboard/src/context/NetworkContext.tsx +32 -0
- package/apps/dashboard/src/context/ProjectSettingsContext.tsx +727 -0
- package/apps/dashboard/src/context/ToastContext.tsx +129 -0
- package/apps/dashboard/src/context/deployment/index.ts +3 -0
- package/apps/dashboard/src/context/deployment/types.ts +183 -0
- package/apps/dashboard/src/context/deployment/useDeploymentBuild.ts +547 -0
- package/apps/dashboard/src/context/deployment/useDeploymentConfig.ts +176 -0
- package/apps/dashboard/src/hooks/useBuildConnection.ts +334 -0
- package/apps/dashboard/src/hooks/useMonitorStream.ts +146 -0
- package/apps/dashboard/src/hooks/useProjectData.ts +110 -0
- package/apps/dashboard/src/hooks/useSSEConnection.ts +465 -0
- package/apps/dashboard/src/hooks/useSSEStream.ts +309 -0
- package/apps/dashboard/src/hooks/useSessions.ts +104 -0
- package/apps/dashboard/src/hooks/useSetupStream.ts +223 -0
- package/apps/dashboard/src/i18n/dictionaries/ar.json +218 -0
- package/apps/dashboard/src/i18n/dictionaries/en.json +218 -0
- package/apps/dashboard/src/i18n/index.ts +16 -0
- package/apps/dashboard/src/lib/api/ai.ts +22 -0
- package/apps/dashboard/src/lib/api/auth.ts +13 -0
- package/apps/dashboard/src/lib/api/client.ts +199 -0
- package/apps/dashboard/src/lib/api/cloud.ts +15 -0
- package/apps/dashboard/src/lib/api/deploy.ts +58 -0
- package/apps/dashboard/src/lib/api/domains.ts +13 -0
- package/apps/dashboard/src/lib/api/endpoints.ts +129 -0
- package/apps/dashboard/src/lib/api/github.ts +31 -0
- package/apps/dashboard/src/lib/api/icons.ts +12 -0
- package/apps/dashboard/src/lib/api/index.ts +41 -0
- package/apps/dashboard/src/lib/api/projects.ts +153 -0
- package/apps/dashboard/src/lib/api/sandbox.ts +14 -0
- package/apps/dashboard/src/lib/api/settings.ts +21 -0
- package/apps/dashboard/src/lib/api/system.ts +159 -0
- package/apps/dashboard/src/lib/auth-client.ts +54 -0
- package/apps/dashboard/src/lib/country.ts +25 -0
- package/apps/dashboard/src/lib/server/api.ts +140 -0
- package/apps/dashboard/src/lib/server/session.ts +103 -0
- package/apps/dashboard/src/lib/sseClient.ts +241 -0
- package/apps/dashboard/src/lib/sseMessageProcessors.ts +323 -0
- package/apps/dashboard/src/lib/utils.ts +6 -0
- package/apps/dashboard/src/proxy.ts +46 -0
- package/apps/dashboard/src/styles/Toast.module.css +92 -0
- package/apps/dashboard/src/styles/fonts.css +93 -0
- package/apps/dashboard/src/styles/theme.css +336 -0
- package/apps/dashboard/src/types/research.ts +42 -0
- package/apps/dashboard/src/utils/SSEParser.js +150 -0
- package/apps/dashboard/src/utils/authWindow.ts +143 -0
- package/apps/dashboard/src/utils/codeTheme.ts +127 -0
- package/apps/dashboard/src/utils/colors.json +2810 -0
- package/apps/dashboard/src/utils/date.ts +121 -0
- package/apps/dashboard/src/utils/deployment.ts +128 -0
- package/apps/dashboard/src/utils/deploymentPhaseDetector.ts +232 -0
- package/apps/dashboard/src/utils/extToLang.js +103 -0
- package/apps/dashboard/src/utils/github.ts +62 -0
- package/apps/dashboard/src/utils/icons.js +46 -0
- package/apps/dashboard/src/utils/repoSlug.ts +110 -0
- package/apps/dashboard/src/utils/research-api.ts +163 -0
- package/apps/dashboard/src/utils/suggestions.ts +84 -0
- package/apps/dashboard/src/utils/theme.js +1 -0
- package/apps/dashboard/src/utils/ui-helpers.tsx +30 -0
- package/apps/dashboard/src/utils/upload.js +12 -0
- package/apps/dashboard/tsconfig.json +27 -5
- package/apps/desktop/forge.config.json +36 -0
- package/apps/desktop/package.json +26 -0
- package/apps/desktop/scripts/dev.mjs +58 -0
- package/apps/desktop/src/main/index.ts +675 -0
- package/apps/desktop/src/main/types/desktop.d.ts +33 -0
- package/apps/desktop/src/preload/index.ts +88 -0
- package/apps/desktop/src/renderer/index.html +462 -0
- package/apps/desktop/src/renderer/onboarding.js +511 -0
- package/apps/desktop/src/renderer/styles.css +1139 -0
- package/apps/desktop/tsconfig.json +17 -0
- package/apps/web/.source/browser.ts +13 -0
- package/apps/web/.source/dynamic.ts +8 -0
- package/apps/web/.source/server.ts +22 -0
- package/apps/web/.source/source.config.mjs +20 -0
- package/apps/web/Dockerfile +4 -6
- package/apps/web/content/blog/how-ai-builds-work.mdx +55 -0
- package/apps/web/content/blog/introducing-openship.mdx +46 -0
- package/apps/web/content/blog/self-hosting-cost-breakdown.mdx +59 -0
- package/apps/web/content/docs/_meta.json +14 -0
- package/apps/web/content/docs/api.mdx +98 -0
- package/apps/web/content/docs/cli.mdx +80 -0
- package/apps/web/content/docs/first-deployment.mdx +56 -0
- package/apps/web/content/docs/index.mdx +27 -0
- package/apps/web/content/docs/installation.mdx +65 -0
- package/apps/web/content/docs/quickstart.mdx +45 -0
- package/apps/web/next-env.d.ts +6 -0
- package/apps/web/next.config.mjs +16 -2
- package/apps/web/package.json +19 -12
- package/apps/web/postcss.config.mjs +5 -0
- package/apps/web/public/android-chrome-192x192.png +0 -0
- package/apps/web/public/android-chrome-512x512.png +0 -0
- package/apps/web/public/apple-touch-icon.png +0 -0
- package/apps/web/public/favicon-16x16.png +0 -0
- package/apps/web/public/favicon-32x32.png +0 -0
- package/apps/web/public/favicon.ico +0 -0
- package/apps/web/public/site.webmanifest +1 -0
- package/apps/web/source.config.ts +17 -0
- package/apps/web/src/app/(marketing)/layout.tsx +7 -22
- package/apps/web/src/app/blog/[...slug]/page.tsx +247 -0
- package/apps/web/src/app/blog/blog.css +575 -0
- package/apps/web/src/app/blog/layout.tsx +50 -0
- package/apps/web/src/app/blog/page.tsx +235 -0
- package/apps/web/src/app/docs/[[...slug]]/page.tsx +67 -0
- package/apps/web/src/app/docs/layout.tsx +62 -0
- package/apps/web/src/app/docs/toc-theme.css +71 -0
- package/apps/web/src/app/download/page.tsx +396 -0
- package/apps/web/src/app/globals.css +20 -3
- package/apps/web/src/app/layout.tsx +57 -3
- package/apps/web/src/app/page.tsx +47 -6
- package/apps/web/src/app/robots.ts +15 -0
- package/apps/web/src/app/sitemap.ts +35 -0
- package/apps/web/src/components/blog/share-sidebar.tsx +81 -0
- package/apps/web/src/components/blog/writer-sidebar.tsx +81 -0
- package/apps/web/src/components/landing/ai-native.tsx +169 -0
- package/apps/web/src/components/landing/backups.tsx +139 -0
- package/apps/web/src/components/landing/cdn.tsx +109 -0
- package/apps/web/src/components/landing/coming-soon.tsx +180 -0
- package/apps/web/src/components/landing/dark-section.tsx +166 -0
- package/apps/web/src/components/landing/dashboard.tsx +407 -0
- package/apps/web/src/components/landing/developer-experience.tsx +224 -0
- package/apps/web/src/components/landing/dns-domains.tsx +146 -0
- package/apps/web/src/components/landing/download-button.tsx +151 -0
- package/apps/web/src/components/landing/features/ai-visual.tsx +48 -0
- package/apps/web/src/components/landing/features/cloud-visual.tsx +44 -0
- package/apps/web/src/components/landing/features/git-visual.tsx +61 -0
- package/apps/web/src/components/landing/features/index.tsx +642 -0
- package/apps/web/src/components/landing/features/infra-visual.tsx +69 -0
- package/apps/web/src/components/landing/features/rollback-visual.tsx +42 -0
- package/apps/web/src/components/landing/features/ssl-visual.tsx +41 -0
- package/apps/web/src/components/landing/features/stacks-visual.tsx +54 -0
- package/apps/web/src/components/landing/final-cta.tsx +116 -0
- package/apps/web/src/components/landing/footer.tsx +145 -0
- package/apps/web/src/components/landing/hero.tsx +110 -0
- package/apps/web/src/components/landing/how-it-works.tsx +210 -0
- package/apps/web/src/components/landing/index.ts +21 -0
- package/apps/web/src/components/landing/mail-server.tsx +122 -0
- package/apps/web/src/components/landing/navbar.tsx +199 -0
- package/apps/web/src/components/landing/no-lockin.tsx +185 -0
- package/apps/web/src/components/landing/open-source-cta.tsx +151 -0
- package/apps/web/src/components/landing/portability.tsx +190 -0
- package/apps/web/src/components/landing/pricing.tsx +263 -0
- package/apps/web/src/components/landing/scaling.tsx +209 -0
- package/apps/web/src/components/landing/why-openship.tsx +291 -0
- package/apps/web/src/hooks/use-gsap-scroll.ts +158 -0
- package/apps/web/src/hooks/use-platform.ts +86 -0
- package/apps/web/src/lib/source.ts +12 -0
- package/apps/web/src/styles/fonts.css +84 -0
- package/apps/web/src/styles/landing.css +951 -0
- package/apps/web/src/styles/theme.css +227 -0
- package/apps/web/tsconfig.json +8 -3
- package/bun.lock +3260 -0
- package/docker-compose.yml +3 -0
- package/docs/screenshots/.gitkeep +0 -0
- package/docs/screenshots/screen.png +0 -0
- package/openship.code-workspace +7 -0
- package/package.json +23 -9
- package/packages/adapters/docs/ARCHITECTURE.md +160 -0
- package/packages/adapters/docs/BUILD-PIPELINE.md +171 -0
- package/packages/adapters/docs/CLOUD.md +239 -0
- package/packages/adapters/docs/EXECUTOR.md +174 -0
- package/packages/adapters/docs/LOG-STREAMING.md +175 -0
- package/packages/adapters/docs/SYSTEM.md +191 -0
- package/packages/adapters/package.json +14 -9
- package/packages/adapters/src/index.ts +144 -4
- package/packages/adapters/src/infra/cloud.ts +42 -0
- package/packages/adapters/src/infra/index.ts +9 -0
- package/packages/adapters/src/infra/noop.ts +27 -0
- package/packages/adapters/src/infra/traefik.ts +297 -0
- package/packages/adapters/src/infra/types.ts +36 -0
- package/packages/adapters/src/platform.ts +255 -0
- package/packages/adapters/src/runtime/bare.ts +567 -0
- package/packages/adapters/src/runtime/build-pipeline.ts +237 -0
- package/packages/adapters/src/runtime/cloud.ts +791 -0
- package/packages/adapters/src/runtime/deploy-pipeline.ts +146 -0
- package/packages/adapters/src/runtime/docker.ts +443 -0
- package/packages/adapters/src/runtime/index.ts +69 -0
- package/packages/adapters/src/runtime/local-build.ts +112 -0
- package/packages/adapters/src/runtime/transfer.ts +82 -0
- package/packages/adapters/src/runtime/types.ts +138 -0
- package/packages/adapters/src/system/catalog.ts +188 -0
- package/packages/adapters/src/system/checks.ts +228 -0
- package/packages/adapters/src/system/components.ts +45 -0
- package/packages/adapters/src/system/debug.ts +18 -0
- package/packages/adapters/src/system/environment.ts +168 -0
- package/packages/adapters/src/system/errors.ts +34 -0
- package/packages/adapters/src/system/executor.ts +600 -0
- package/packages/adapters/src/system/index.ts +58 -0
- package/packages/adapters/src/system/installer.ts +310 -0
- package/packages/adapters/src/system/setup.ts +442 -0
- package/packages/adapters/src/system/state.ts +96 -0
- package/packages/adapters/src/system/types.ts +116 -0
- package/packages/adapters/src/toolchain/catalog.ts +439 -0
- package/packages/adapters/src/toolchain/checks.ts +181 -0
- package/packages/adapters/src/toolchain/index.ts +38 -0
- package/packages/adapters/src/toolchain/installer.ts +189 -0
- package/packages/adapters/src/toolchain/types.ts +84 -0
- package/packages/adapters/src/types.ts +277 -0
- package/packages/adapters/tsconfig.json +3 -1
- package/packages/core/package.json +9 -9
- package/packages/core/src/constants.ts +44 -1
- package/packages/core/src/index.ts +2 -0
- package/packages/core/src/stacks.ts +778 -0
- package/packages/core/src/system.ts +111 -0
- package/packages/core/src/types.ts +22 -1
- package/packages/core/src/utils.ts +8 -0
- package/packages/core/tsconfig.json +3 -1
- package/packages/db/drizzle/0000_init.sql +231 -0
- package/packages/db/drizzle/0001_add_server_name.sql +1 -0
- package/packages/db/drizzle/meta/_journal.json +20 -0
- package/packages/db/drizzle.config.ts +10 -0
- package/packages/db/package.json +26 -14
- package/packages/db/src/client.ts +119 -0
- package/packages/db/src/index.ts +57 -8
- package/packages/db/src/repos/account.repo.ts +92 -0
- package/packages/db/src/repos/deployment.repo.ts +168 -0
- package/packages/db/src/repos/domain.repo.ts +102 -0
- package/packages/db/src/repos/git-installation.repo.ts +95 -0
- package/packages/db/src/repos/index.ts +43 -0
- package/packages/db/src/repos/instance-settings.repo.ts +43 -0
- package/packages/db/src/repos/project.repo.ts +159 -0
- package/packages/db/src/repos/session.repo.ts +82 -0
- package/packages/db/src/repos/settings.repo.ts +51 -0
- package/packages/db/src/repos/user.repo.ts +94 -0
- package/packages/db/src/schema/auth.ts +56 -0
- package/packages/db/src/schema/deployment.ts +87 -0
- package/packages/db/src/schema/domain.ts +46 -0
- package/packages/db/src/schema/github.ts +24 -0
- package/packages/db/src/schema/index.ts +6 -0
- package/packages/db/src/schema/project.ts +117 -0
- package/packages/db/src/schema/settings.ts +103 -0
- package/packages/db/tsconfig.json +3 -1
- package/packages/ui/package.json +17 -17
- package/packages/ui/src/components/status-dot.tsx +1 -1
- package/packages/ui/tsconfig.json +7 -2
- package/pnpm-workspace.yaml +0 -1
- package/{tooling/tsconfig/base.json → tsconfig.base.json} +0 -1
- package/turbo.json +4 -0
- package/apps/api/src/modules/auth/auth.controller.ts +0 -26
- package/apps/api/src/modules/auth/auth.schema.ts +0 -12
- package/apps/api/src/modules/auth/auth.service.ts +0 -23
- package/apps/dashboard/src/app/page.tsx +0 -6
- package/apps/web/src/app/(marketing)/docs/page.tsx +0 -10
- package/packages/adapters/src/base-adapter.ts +0 -49
- package/packages/adapters/src/docker-adapter.ts +0 -43
- package/packages/adapters/src/oblien-adapter.ts +0 -46
- package/packages/adapters/src/registry.ts +0 -22
- package/packages/db/prisma/schema.prisma +0 -160
- package/tooling/tsconfig/nextjs.json +0 -10
- package/tooling/tsconfig/node.json +0 -10
- package/tooling/tsconfig/package.json +0 -7
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
const STEPS = [
|
|
2
|
+
{
|
|
3
|
+
step: "1",
|
|
4
|
+
title: "Add your domain",
|
|
5
|
+
desc: "Type it in — apex, subdomain, or full wildcard. app.example.com, *.example.com, you name it.",
|
|
6
|
+
icon: (
|
|
7
|
+
<svg className="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.5}>
|
|
8
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" />
|
|
9
|
+
</svg>
|
|
10
|
+
),
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
step: "2",
|
|
14
|
+
title: "Copy DNS records",
|
|
15
|
+
desc: "One A record, one wildcard CNAME. We show you exactly what to paste — works with every DNS provider.",
|
|
16
|
+
icon: (
|
|
17
|
+
<svg className="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.5}>
|
|
18
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M15.666 3.888A2.25 2.25 0 0013.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 01-.75.75H9.75a.75.75 0 01-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 01-2.25 2.25H6.75A2.25 2.25 0 014.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 011.927-.184" />
|
|
19
|
+
</svg>
|
|
20
|
+
),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
step: "3",
|
|
24
|
+
title: "Wildcard SSL — done",
|
|
25
|
+
desc: "Wildcard certificates are issued and renewed automatically. Every subdomain is covered — *.yoursite.com, all HTTPS, zero config.",
|
|
26
|
+
icon: (
|
|
27
|
+
<svg className="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={1.5}>
|
|
28
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z" />
|
|
29
|
+
</svg>
|
|
30
|
+
),
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
const HIGHLIGHTS = [
|
|
35
|
+
"Wildcard subdomains",
|
|
36
|
+
"Apex domains",
|
|
37
|
+
"Auto-renew SSL",
|
|
38
|
+
"Unlimited domains",
|
|
39
|
+
"No Certbot",
|
|
40
|
+
"No NGINX config",
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
export function DnsDomains() {
|
|
44
|
+
return (
|
|
45
|
+
<section className="relative py-28 sm:py-36">
|
|
46
|
+
<div className="section-divider mx-auto mb-28 max-w-4xl sm:mb-36" />
|
|
47
|
+
|
|
48
|
+
<div className="mx-auto max-w-7xl px-6">
|
|
49
|
+
{/* Header */}
|
|
50
|
+
<div className="mx-auto max-w-3xl text-center">
|
|
51
|
+
<div className="mb-7 inline-flex items-center gap-2 rounded-full border border-[var(--th-on-06)] bg-white/60 px-4 py-1.5 shadow-[0_1px_3px_rgba(0,0,0,.04)] backdrop-blur-sm">
|
|
52
|
+
<span className="text-[12px] font-medium tracking-[0.02em] th-text-secondary">
|
|
53
|
+
DNS & domains
|
|
54
|
+
</span>
|
|
55
|
+
</div>
|
|
56
|
+
<h2>
|
|
57
|
+
<span className="block text-[clamp(2.75rem,6vw,4.75rem)] font-semibold leading-[1.06] tracking-[-0.035em] th-text-heading">
|
|
58
|
+
Domains & wildcards.
|
|
59
|
+
</span>
|
|
60
|
+
<span
|
|
61
|
+
className="block text-[clamp(2.75rem,6vw,4.75rem)] font-semibold leading-[1.06] tracking-[-0.035em]"
|
|
62
|
+
style={{ color: "var(--th-on-40)" }}
|
|
63
|
+
>
|
|
64
|
+
SSL included for all.
|
|
65
|
+
</span>
|
|
66
|
+
</h2>
|
|
67
|
+
<p className="mx-auto mt-6 max-w-xl text-[17px] leading-[1.65] th-text-body">
|
|
68
|
+
Connect any domain — including full <strong className="th-text-heading">wildcard subdomains</strong> like{" "}
|
|
69
|
+
<code className="rounded-md border border-[var(--th-card-bd)] bg-[var(--th-sf-02)] px-1.5 py-0.5 font-mono text-[14px] th-text-heading">*.yoursite.com</code>.
|
|
70
|
+
Certificates auto-provision and auto-renew. Three steps, zero config.
|
|
71
|
+
</p>
|
|
72
|
+
|
|
73
|
+
{/* Highlight pills */}
|
|
74
|
+
<div className="mx-auto mt-5 flex flex-wrap justify-center gap-2">
|
|
75
|
+
{HIGHLIGHTS.map((h) => (
|
|
76
|
+
<span
|
|
77
|
+
key={h}
|
|
78
|
+
className="inline-flex items-center gap-1.5 rounded-full border border-[var(--th-on-06)] bg-white/60 px-3 py-1 text-[12px] font-medium backdrop-blur-sm th-text-secondary"
|
|
79
|
+
>
|
|
80
|
+
<svg className="h-3 w-3" style={{ color: "var(--th-clr-sea)" }} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2.5}>
|
|
81
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M4.5 12.75l6 6 9-13.5" />
|
|
82
|
+
</svg>
|
|
83
|
+
{h}
|
|
84
|
+
</span>
|
|
85
|
+
))}
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
{/* Steps — horizontal on desktop */}
|
|
90
|
+
<div className="mx-auto mt-16 grid max-w-4xl gap-6 md:grid-cols-3">
|
|
91
|
+
{STEPS.map((s) => (
|
|
92
|
+
<div
|
|
93
|
+
key={s.step}
|
|
94
|
+
className="group relative rounded-2xl border border-[var(--th-card-bd)] bg-[var(--th-card-bg)] p-6 shadow-[var(--th-card-shadow)] transition-colors hover:border-[var(--th-card-bd-hover)]"
|
|
95
|
+
>
|
|
96
|
+
{/* Step number */}
|
|
97
|
+
<div className="mb-4 flex h-10 w-10 items-center justify-center rounded-xl" style={{ background: "var(--th-clr-sea-bg)", color: "var(--th-clr-sea)" }}>
|
|
98
|
+
{s.icon}
|
|
99
|
+
</div>
|
|
100
|
+
<p className="mb-1 text-[11px] font-semibold uppercase tracking-[0.1em] th-text-muted">
|
|
101
|
+
Step {s.step}
|
|
102
|
+
</p>
|
|
103
|
+
<h3 className="text-[16px] font-semibold th-text-heading">
|
|
104
|
+
{s.title}
|
|
105
|
+
</h3>
|
|
106
|
+
<p className="mt-1.5 text-[13px] leading-[1.6] th-text-body">
|
|
107
|
+
{s.desc}
|
|
108
|
+
</p>
|
|
109
|
+
</div>
|
|
110
|
+
))}
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
{/* Visual example DNS */}
|
|
114
|
+
<div className="mx-auto mt-10 max-w-4xl overflow-hidden rounded-xl border border-[var(--th-card-bd)] bg-[var(--th-card-bg)] font-mono text-[13px] shadow-[var(--th-card-shadow)]">
|
|
115
|
+
<div className="flex items-center justify-between border-b border-[var(--th-card-bd)] px-5 py-2.5">
|
|
116
|
+
<span className="text-[11px] font-semibold uppercase tracking-[0.1em] th-text-muted">Your DNS provider</span>
|
|
117
|
+
<span className="flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-[10px] font-bold uppercase" style={{ background: "var(--th-clr-sea-wash)", color: "var(--th-clr-sea)" }}>Wildcard ready</span>
|
|
118
|
+
</div>
|
|
119
|
+
<div className="divide-y divide-[var(--th-card-bd)]">
|
|
120
|
+
<div className="grid grid-cols-[56px_1fr_1fr] items-center gap-4 px-5 py-3">
|
|
121
|
+
<span className="font-semibold" style={{ color: "var(--th-clr-sea)" }}>A</span>
|
|
122
|
+
<span className="th-text-heading">@</span>
|
|
123
|
+
<span className="th-text-muted">→ 95.216.xx.xx</span>
|
|
124
|
+
</div>
|
|
125
|
+
<div className="grid grid-cols-[56px_1fr_1fr] items-center gap-4 px-5 py-3" style={{ background: "var(--th-sf-01)" }}>
|
|
126
|
+
<span className="font-semibold" style={{ color: "var(--th-clr-sea)" }}>CNAME</span>
|
|
127
|
+
<span className="th-text-heading">*</span>
|
|
128
|
+
<span className="th-text-muted">→ proxy.openship.app</span>
|
|
129
|
+
</div>
|
|
130
|
+
<div className="grid grid-cols-[56px_1fr_1fr] items-center gap-4 px-5 py-3">
|
|
131
|
+
<span className="font-semibold" style={{ color: "var(--th-clr-plum)" }}>TXT</span>
|
|
132
|
+
<span className="th-text-heading">_acme-challenge</span>
|
|
133
|
+
<span className="th-text-muted">→ auto-managed by Openship</span>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<div className="border-t border-[var(--th-card-bd)] bg-[var(--th-sf-01)] px-5 py-2.5 text-[12px] th-text-muted">
|
|
137
|
+
<svg className="mr-1.5 inline h-3.5 w-3.5" style={{ color: "var(--th-clr-sea)" }} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>
|
|
138
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" />
|
|
139
|
+
</svg>
|
|
140
|
+
Wildcard cert covers <strong className="th-text-heading">*.yoursite.com</strong> — every subdomain is HTTPS automatically
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</section>
|
|
145
|
+
);
|
|
146
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { usePlatform, type Platform } from "@/hooks/use-platform";
|
|
5
|
+
|
|
6
|
+
/* ── Platform icons ── */
|
|
7
|
+
function AppleIcon({ className }: { className?: string }) {
|
|
8
|
+
return (
|
|
9
|
+
<svg className={className} fill="currentColor" viewBox="0 0 24 24">
|
|
10
|
+
<path d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z" />
|
|
11
|
+
</svg>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function WindowsIcon({ className }: { className?: string }) {
|
|
16
|
+
return (
|
|
17
|
+
<svg className={className} fill="currentColor" viewBox="0 0 24 24">
|
|
18
|
+
<path d="M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801" />
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function LinuxIcon({ className }: { className?: string }) {
|
|
24
|
+
return (
|
|
25
|
+
<svg className={className} fill="currentColor" viewBox="0 0 24 24">
|
|
26
|
+
<path d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.368 1.884 1.43.868.07 1.678-.467 1.975-1.484.1-.334.204-.669.305-1.004.2-.668.398-1.335.554-2 .156-.668.297-1.338.378-2.004a2.08 2.08 0 00-.193-1.2c.4-.748.757-1.336.914-2.007.199-.869.099-1.87-.399-3.003-.564-1.332-1.272-2.8-1.743-4.287-.216-.668-.39-1.314-.428-2.008-.05-.87.154-1.868.473-2.865.32-.998.721-2.093.66-3.202C18.108.784 16.985 0 15.595 0h-.003c-.578.002-1.129.2-1.597.468a4.534 4.534 0 00-1.482 1.196c-.012.016-.018.019-.03.019z" />
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function DownloadIcon({ className }: { className?: string }) {
|
|
32
|
+
return (
|
|
33
|
+
<svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>
|
|
34
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
|
|
35
|
+
</svg>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function ChevronIcon({ className }: { className?: string }) {
|
|
40
|
+
return (
|
|
41
|
+
<svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2.5}>
|
|
42
|
+
<path strokeLinecap="round" strokeLinejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
|
|
43
|
+
</svg>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const ICON_MAP: Record<string, React.ComponentType<{ className?: string }>> = {
|
|
48
|
+
apple: AppleIcon,
|
|
49
|
+
windows: WindowsIcon,
|
|
50
|
+
linux: LinuxIcon,
|
|
51
|
+
download: DownloadIcon,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/* ── Dropdown items ── */
|
|
55
|
+
const DROPDOWN_PLATFORMS: { platform: Platform; label: string; icon: string }[] = [
|
|
56
|
+
{ platform: "mac-arm", label: "Mac (Apple Silicon)", icon: "apple" },
|
|
57
|
+
{ platform: "mac-intel", label: "Mac (Intel)", icon: "apple" },
|
|
58
|
+
{ platform: "windows", label: "Windows", icon: "windows" },
|
|
59
|
+
{ platform: "linux", label: "Linux", icon: "linux" },
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
/* ── Props ── */
|
|
63
|
+
interface DownloadButtonProps {
|
|
64
|
+
/** Visual variant */
|
|
65
|
+
variant?: "primary" | "ghost";
|
|
66
|
+
/** Additional classes */
|
|
67
|
+
className?: string;
|
|
68
|
+
/** Size */
|
|
69
|
+
size?: "default" | "large";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DownloadButton({
|
|
73
|
+
variant = "primary",
|
|
74
|
+
className = "",
|
|
75
|
+
size = "default",
|
|
76
|
+
}: DownloadButtonProps) {
|
|
77
|
+
const { downloadUrl, icon, platform, getDownloadUrl } = usePlatform();
|
|
78
|
+
const Icon = ICON_MAP[icon];
|
|
79
|
+
const [open, setOpen] = useState(false);
|
|
80
|
+
const ref = useRef<HTMLDivElement>(null);
|
|
81
|
+
|
|
82
|
+
// Close on outside click
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
if (!open) return;
|
|
85
|
+
const handle = (e: MouseEvent) => {
|
|
86
|
+
if (ref.current && !ref.current.contains(e.target as Node)) setOpen(false);
|
|
87
|
+
};
|
|
88
|
+
document.addEventListener("mousedown", handle);
|
|
89
|
+
return () => document.removeEventListener("mousedown", handle);
|
|
90
|
+
}, [open]);
|
|
91
|
+
|
|
92
|
+
const sizeClasses =
|
|
93
|
+
size === "large" ? "py-3 text-[15px]" : "py-2.5 text-[14px]";
|
|
94
|
+
|
|
95
|
+
const btnBase =
|
|
96
|
+
variant === "primary"
|
|
97
|
+
? `th-btn rounded-full font-medium ${sizeClasses}`
|
|
98
|
+
: `th-btn-ghost rounded-full font-medium ${sizeClasses}`;
|
|
99
|
+
|
|
100
|
+
return (
|
|
101
|
+
<div ref={ref} className={`relative inline-flex ${className}`}>
|
|
102
|
+
{/* Main download link */}
|
|
103
|
+
<a
|
|
104
|
+
href={downloadUrl}
|
|
105
|
+
className={`${btnBase} pl-5 pr-3 flex items-center gap-2 rounded-r-none border-r-0`}
|
|
106
|
+
>
|
|
107
|
+
<Icon className="h-[20px] w-[20px]" />
|
|
108
|
+
<span>Download</span>
|
|
109
|
+
</a>
|
|
110
|
+
|
|
111
|
+
{/* Dropdown toggle */}
|
|
112
|
+
<button
|
|
113
|
+
type="button"
|
|
114
|
+
onClick={() => setOpen((v) => !v)}
|
|
115
|
+
className={`${btnBase} px-2 rounded-l-none border-l border-l-white/20 flex items-center`}
|
|
116
|
+
aria-label="Other platforms"
|
|
117
|
+
>
|
|
118
|
+
<ChevronIcon className={`h-3.5 w-3.5 transition-transform mr-2 ${open ? "rotate-180" : ""}`} />
|
|
119
|
+
</button>
|
|
120
|
+
|
|
121
|
+
{/* Dropdown menu */}
|
|
122
|
+
{open && (
|
|
123
|
+
<div className="absolute left-0 right-0 top-[calc(100%+6px)] z-[9999] min-w-[200px] overflow-hidden rounded-xl border border-[var(--th-card-bd)] bg-[var(--th-card-bg)] shadow-[0_12px_40px_rgba(0,0,0,.12)]">
|
|
124
|
+
<p className="px-3.5 pt-3 pb-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] th-text-muted">
|
|
125
|
+
All platforms
|
|
126
|
+
</p>
|
|
127
|
+
{DROPDOWN_PLATFORMS.map((p) => {
|
|
128
|
+
const PIcon = ICON_MAP[p.icon];
|
|
129
|
+
const isCurrent = p.platform === platform;
|
|
130
|
+
return (
|
|
131
|
+
<a
|
|
132
|
+
key={p.platform}
|
|
133
|
+
href={getDownloadUrl(p.platform)}
|
|
134
|
+
className="flex items-center gap-2.5 px-3.5 py-2.5 text-[13px] font-medium transition-colors hover:bg-[var(--th-sf-02)] th-text-heading"
|
|
135
|
+
onClick={() => setOpen(false)}
|
|
136
|
+
>
|
|
137
|
+
<PIcon className="h-4 w-4 th-text-secondary" />
|
|
138
|
+
{p.label}
|
|
139
|
+
{isCurrent && (
|
|
140
|
+
<span className="ml-auto rounded-full bg-[var(--th-accent-violet)] px-2 py-0.5 text-[10px] font-bold text-white">
|
|
141
|
+
Detected
|
|
142
|
+
</span>
|
|
143
|
+
)}
|
|
144
|
+
</a>
|
|
145
|
+
);
|
|
146
|
+
})}
|
|
147
|
+
</div>
|
|
148
|
+
)}
|
|
149
|
+
</div>
|
|
150
|
+
);
|
|
151
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export function AiVisual() {
|
|
2
|
+
return (
|
|
3
|
+
<svg viewBox="0 0 520 260" fill="none" className="w-full h-auto">
|
|
4
|
+
{/* Terminal window */}
|
|
5
|
+
<rect x="20" y="32" width="210" height="148" rx="12"
|
|
6
|
+
fill="currentColor" fillOpacity={0.05} stroke="currentColor" strokeWidth="1.2" strokeOpacity={0.2} />
|
|
7
|
+
{/* Title bar */}
|
|
8
|
+
<circle cx="38" cy="50" r="3.5" fill="currentColor" fillOpacity={0.2} />
|
|
9
|
+
<circle cx="50" cy="50" r="3.5" fill="currentColor" fillOpacity={0.2} />
|
|
10
|
+
<circle cx="62" cy="50" r="3.5" fill="currentColor" fillOpacity={0.2} />
|
|
11
|
+
<line x1="20" y1="62" x2="230" y2="62" stroke="currentColor" strokeWidth=".5" strokeOpacity={0.12} />
|
|
12
|
+
{/* Terminal lines */}
|
|
13
|
+
<text x="34" y="82" fontSize="11.5" fontFamily="monospace" fill="currentColor" fillOpacity={0.35}>$</text>
|
|
14
|
+
<text x="46" y="82" fontSize="11.5" fontFamily="monospace" fill="currentColor" fillOpacity={0.65}>openship deploy</text>
|
|
15
|
+
<text x="34" y="102" fontSize="11.5" fontFamily="monospace" fill="currentColor" fillOpacity={0.75}>✕ Build failed</text>
|
|
16
|
+
<text x="34" y="120" fontSize="10" fontFamily="monospace" fill="currentColor" fillOpacity={0.35}>Module not found</text>
|
|
17
|
+
<text x="34" y="136" fontSize="10" fontFamily="monospace" fill="currentColor" fillOpacity={0.3}>src/index.ts:14</text>
|
|
18
|
+
<text x="34" y="152" fontSize="10" fontFamily="monospace" fill="currentColor" fillOpacity={0.25}>ERR_MODULE_NOT_FOUND</text>
|
|
19
|
+
|
|
20
|
+
{/* Arrow: terminal → AI */}
|
|
21
|
+
<line x1="236" y1="106" x2="280" y2="106" stroke="currentColor" strokeWidth="1.5" strokeOpacity={0.25} strokeDasharray="4 4" />
|
|
22
|
+
<path d="M277 101 L286 106 L277 111" fill="none" stroke="currentColor" strokeWidth="1.5" strokeOpacity={0.35} />
|
|
23
|
+
|
|
24
|
+
{/* AI Agent block */}
|
|
25
|
+
<rect x="292" y="32" width="195" height="148" rx="12"
|
|
26
|
+
fill="currentColor" fillOpacity={0.04} stroke="currentColor" strokeWidth="1.2" strokeOpacity={0.25} />
|
|
27
|
+
{/* Sparkles */}
|
|
28
|
+
<path d="M390 60 L393 70 L403 73 L393 76 L390 86 L387 76 L377 73 L387 70 Z" fill="currentColor" fillOpacity={0.45} />
|
|
29
|
+
<path d="M340 50 L342 56 L348 58 L342 60 L340 66 L338 60 L332 58 L338 56 Z" fill="currentColor" fillOpacity={0.3} />
|
|
30
|
+
<path d="M440 48 L441.5 52 L446 54 L441.5 56 L440 60 L438.5 56 L434 54 L438.5 52 Z" fill="currentColor" fillOpacity={0.2} />
|
|
31
|
+
<text x="390" y="110" textAnchor="middle" fontSize="15" fontWeight="600" fill="currentColor" fillOpacity={0.85}>AI Agent</text>
|
|
32
|
+
<text x="390" y="128" textAnchor="middle" fontSize="11" fill="currentColor" fillOpacity={0.4}>Analyzing error…</text>
|
|
33
|
+
{/* Fix result */}
|
|
34
|
+
<line x1="310" y1="146" x2="470" y2="146" stroke="currentColor" strokeWidth=".5" strokeOpacity={0.12} />
|
|
35
|
+
<circle cx="320" cy="160" r="3" fill="currentColor" fillOpacity={0.4} />
|
|
36
|
+
<text x="330" y="164" fontSize="10" fontFamily="monospace" fill="currentColor" fillOpacity={0.45}>fix applied ✓</text>
|
|
37
|
+
|
|
38
|
+
{/* Bottom flow: Error → Diagnose → Fixed */}
|
|
39
|
+
<text x="125" y="224" textAnchor="middle" fontSize="12" fontWeight="500" fill="currentColor" fillOpacity={0.5}>Error</text>
|
|
40
|
+
<line x1="162" y1="220" x2="218" y2="220" stroke="currentColor" strokeWidth="1" strokeOpacity={0.2} />
|
|
41
|
+
<path d="M215 216 L223 220 L215 224" fill="none" stroke="currentColor" strokeWidth="1" strokeOpacity={0.3} />
|
|
42
|
+
<text x="260" y="224" textAnchor="middle" fontSize="12" fontWeight="500" fill="currentColor" fillOpacity={0.5}>Diagnose</text>
|
|
43
|
+
<line x1="300" y1="220" x2="356" y2="220" stroke="currentColor" strokeWidth="1" strokeOpacity={0.2} />
|
|
44
|
+
<path d="M353 216 L361 220 L353 224" fill="none" stroke="currentColor" strokeWidth="1" strokeOpacity={0.3} />
|
|
45
|
+
<text x="395" y="224" textAnchor="middle" fontSize="12" fontWeight="600" fill="currentColor" fillOpacity={0.7}>Fixed ✓</text>
|
|
46
|
+
</svg>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export function CloudVisual() {
|
|
2
|
+
return (
|
|
3
|
+
<svg viewBox="0 0 540 260" fill="none" className="w-full h-auto">
|
|
4
|
+
{/* ── Left: Cloud shape ── */}
|
|
5
|
+
<path
|
|
6
|
+
d="M48 158 C46 158 30 100 92 82 C112 34 182 26 204 68 C236 44 280 66 276 112 C310 108 324 140 304 166 L48 166 Z"
|
|
7
|
+
fill="currentColor" fillOpacity=".05" stroke="currentColor" strokeWidth="1.8" strokeOpacity=".4" strokeLinejoin="round"
|
|
8
|
+
/>
|
|
9
|
+
<circle cx="118" cy="108" r="5" fill="currentColor" fillOpacity=".08" stroke="currentColor" strokeWidth="1.2" strokeOpacity=".3" />
|
|
10
|
+
<circle cx="118" cy="108" r="2" fill="currentColor" fillOpacity=".65" />
|
|
11
|
+
<circle cx="176" cy="94" r="5" fill="currentColor" fillOpacity=".08" stroke="currentColor" strokeWidth="1.2" strokeOpacity=".3" />
|
|
12
|
+
<circle cx="176" cy="94" r="2" fill="currentColor" fillOpacity=".65" />
|
|
13
|
+
<circle cx="232" cy="106" r="5" fill="currentColor" fillOpacity=".08" stroke="currentColor" strokeWidth="1.2" strokeOpacity=".3" />
|
|
14
|
+
<circle cx="232" cy="106" r="2" fill="currentColor" fillOpacity=".65" />
|
|
15
|
+
<line x1="123" y1="107" x2="171" y2="96" stroke="currentColor" strokeWidth=".8" strokeOpacity=".2" />
|
|
16
|
+
<line x1="181" y1="96" x2="227" y2="105" stroke="currentColor" strokeWidth=".8" strokeOpacity=".2" />
|
|
17
|
+
<text x="175" y="196" textAnchor="middle" fontSize="14" fontWeight="600" fill="currentColor" fillOpacity=".75">Managed</text>
|
|
18
|
+
<text x="175" y="214" textAnchor="middle" fontSize="11" fill="currentColor" fillOpacity=".4">Auto-scaling · Zero ops</text>
|
|
19
|
+
|
|
20
|
+
{/* ── Center divider ── */}
|
|
21
|
+
<line x1="278" y1="50" x2="278" y2="175" stroke="currentColor" strokeWidth="1" strokeOpacity=".15" strokeDasharray="4 4" />
|
|
22
|
+
<text x="278" y="196" textAnchor="middle" fontSize="11" fontWeight="700" fill="currentColor" fillOpacity=".3" letterSpacing=".12em">OR</text>
|
|
23
|
+
|
|
24
|
+
{/* ── Right: Server rack ── */}
|
|
25
|
+
<rect x="336" y="60" width="154" height="30" rx="6" fill="currentColor" fillOpacity=".04" stroke="currentColor" strokeWidth="1.2" strokeOpacity=".25" />
|
|
26
|
+
<rect x="336" y="96" width="154" height="30" rx="6" fill="currentColor" fillOpacity=".04" stroke="currentColor" strokeWidth="1.2" strokeOpacity=".25" />
|
|
27
|
+
<rect x="336" y="132" width="154" height="30" rx="6" fill="currentColor" fillOpacity=".04" stroke="currentColor" strokeWidth="1.2" strokeOpacity=".25" />
|
|
28
|
+
<circle cx="352" cy="75" r="2.5" fill="currentColor" fillOpacity=".45" />
|
|
29
|
+
<circle cx="362" cy="75" r="2.5" fill="currentColor" fillOpacity=".25" />
|
|
30
|
+
<circle cx="352" cy="111" r="2.5" fill="currentColor" fillOpacity=".45" />
|
|
31
|
+
<circle cx="362" cy="111" r="2.5" fill="currentColor" fillOpacity=".25" />
|
|
32
|
+
<circle cx="352" cy="147" r="2.5" fill="currentColor" fillOpacity=".45" />
|
|
33
|
+
<circle cx="362" cy="147" r="2.5" fill="currentColor" fillOpacity=".25" />
|
|
34
|
+
<line x1="378" y1="68" x2="478" y2="68" stroke="currentColor" strokeWidth=".6" strokeOpacity=".1" />
|
|
35
|
+
<line x1="378" y1="82" x2="478" y2="82" stroke="currentColor" strokeWidth=".6" strokeOpacity=".1" />
|
|
36
|
+
<line x1="378" y1="104" x2="478" y2="104" stroke="currentColor" strokeWidth=".6" strokeOpacity=".1" />
|
|
37
|
+
<line x1="378" y1="118" x2="478" y2="118" stroke="currentColor" strokeWidth=".6" strokeOpacity=".1" />
|
|
38
|
+
<line x1="378" y1="140" x2="478" y2="140" stroke="currentColor" strokeWidth=".6" strokeOpacity=".1" />
|
|
39
|
+
<line x1="378" y1="154" x2="478" y2="154" stroke="currentColor" strokeWidth=".6" strokeOpacity=".1" />
|
|
40
|
+
<text x="413" y="196" textAnchor="middle" fontSize="14" fontWeight="600" fill="currentColor" fillOpacity=".75">Self-Hosted</text>
|
|
41
|
+
<text x="413" y="214" textAnchor="middle" fontSize="11" fill="currentColor" fillOpacity=".4">Your servers · Full control</text>
|
|
42
|
+
</svg>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export function GitVisual() {
|
|
2
|
+
return (
|
|
3
|
+
<svg viewBox="0 0 520 260" fill="none" className="w-full h-auto">
|
|
4
|
+
{/* Main branch line */}
|
|
5
|
+
<line x1="50" y1="100" x2="470" y2="100" stroke="currentColor" strokeWidth="2" strokeOpacity={0.35} strokeLinecap="round" />
|
|
6
|
+
|
|
7
|
+
{/* Feature branch arc */}
|
|
8
|
+
<path d="M140 100 C155 100 162 62 182 56" stroke="currentColor" strokeWidth="1.5" strokeOpacity={0.25} fill="none" />
|
|
9
|
+
<line x1="182" y1="56" x2="308" y2="56" stroke="currentColor" strokeWidth="1.5" strokeOpacity={0.25} strokeLinecap="round" />
|
|
10
|
+
<path d="M308 56 C328 62 335 100 350 100" stroke="currentColor" strokeWidth="1.5" strokeOpacity={0.25} fill="none" />
|
|
11
|
+
|
|
12
|
+
{/* Commits on main */}
|
|
13
|
+
<circle cx="50" cy="100" r="6" fill="currentColor" fillOpacity={0.06} stroke="currentColor" strokeWidth="1.8" strokeOpacity={0.4} />
|
|
14
|
+
<circle cx="50" cy="100" r="2" fill="currentColor" fillOpacity={0.6} />
|
|
15
|
+
<circle cx="140" cy="100" r="6" fill="currentColor" fillOpacity={0.06} stroke="currentColor" strokeWidth="1.8" strokeOpacity={0.4} />
|
|
16
|
+
<circle cx="140" cy="100" r="2" fill="currentColor" fillOpacity={0.6} />
|
|
17
|
+
{/* Merge commit — emphasized */}
|
|
18
|
+
<circle cx="350" cy="100" r="8" fill="currentColor" fillOpacity={0.1} stroke="currentColor" strokeWidth="2" strokeOpacity={0.6} />
|
|
19
|
+
<circle cx="350" cy="100" r="3" fill="currentColor" fillOpacity={0.7} />
|
|
20
|
+
<circle cx="440" cy="100" r="6" fill="currentColor" fillOpacity={0.06} stroke="currentColor" strokeWidth="1.8" strokeOpacity={0.4} />
|
|
21
|
+
<circle cx="440" cy="100" r="2" fill="currentColor" fillOpacity={0.6} />
|
|
22
|
+
|
|
23
|
+
{/* Feature branch commits */}
|
|
24
|
+
<circle cx="222" cy="56" r="5" fill="currentColor" fillOpacity={0.06} stroke="currentColor" strokeWidth="1.5" strokeOpacity={0.3} />
|
|
25
|
+
<circle cx="222" cy="56" r="1.5" fill="currentColor" fillOpacity={0.5} />
|
|
26
|
+
<circle cx="280" cy="56" r="5" fill="currentColor" fillOpacity={0.06} stroke="currentColor" strokeWidth="1.5" strokeOpacity={0.3} />
|
|
27
|
+
<circle cx="280" cy="56" r="1.5" fill="currentColor" fillOpacity={0.5} />
|
|
28
|
+
|
|
29
|
+
{/* Labels — main commits */}
|
|
30
|
+
<text x="50" y="124" textAnchor="middle" fontSize="10" fontFamily="monospace" fill="currentColor" fillOpacity={0.4}>a3f2c</text>
|
|
31
|
+
<text x="140" y="124" textAnchor="middle" fontSize="10" fontFamily="monospace" fill="currentColor" fillOpacity={0.4}>b7e4a</text>
|
|
32
|
+
<text x="350" y="126" textAnchor="middle" fontSize="11" fontFamily="monospace" fontWeight="600" fill="currentColor" fillOpacity={0.7}>merge</text>
|
|
33
|
+
<text x="440" y="124" textAnchor="middle" fontSize="10" fontFamily="monospace" fill="currentColor" fillOpacity={0.4}>deploy</text>
|
|
34
|
+
|
|
35
|
+
{/* Branch labels */}
|
|
36
|
+
<text x="251" y="42" textAnchor="middle" fontSize="11" fontWeight="600" fill="currentColor" fillOpacity={0.55}>feat/dashboard</text>
|
|
37
|
+
<text x="30" y="146" fontSize="11" fontWeight="600" fill="currentColor" fillOpacity={0.55}>main</text>
|
|
38
|
+
|
|
39
|
+
{/* Deploy arrow */}
|
|
40
|
+
<line x1="440" y1="112" x2="440" y2="162" stroke="currentColor" strokeWidth="1.2" strokeOpacity={0.2} strokeDasharray="3 3" />
|
|
41
|
+
<path d="M436 159 L440 168 L444 159" fill="currentColor" fillOpacity={0.25} />
|
|
42
|
+
|
|
43
|
+
{/* Pipeline bar */}
|
|
44
|
+
<rect x="80" y="180" width="360" height="44" rx="10" fill="currentColor" fillOpacity={0.04} stroke="currentColor" strokeWidth="1.2" strokeOpacity={0.2} />
|
|
45
|
+
{/* Build */}
|
|
46
|
+
<circle cx="160" cy="202" r="4" fill="currentColor" fillOpacity={0.08} stroke="currentColor" strokeWidth="1" strokeOpacity={0.35} />
|
|
47
|
+
<path d="M157.5 202 L159.5 204 L163 200" stroke="currentColor" strokeWidth="1" strokeOpacity={0.5} strokeLinecap="round" fill="none" />
|
|
48
|
+
<text x="174" y="206" fontSize="11" fontWeight="500" fill="currentColor" fillOpacity={0.5}>Build</text>
|
|
49
|
+
<line x1="220" y1="190" x2="220" y2="214" stroke="currentColor" strokeOpacity={0.1} strokeWidth=".6" />
|
|
50
|
+
{/* Test */}
|
|
51
|
+
<circle cx="260" cy="202" r="4" fill="currentColor" fillOpacity={0.08} stroke="currentColor" strokeWidth="1" strokeOpacity={0.35} />
|
|
52
|
+
<path d="M257.5 202 L259.5 204 L263 200" stroke="currentColor" strokeWidth="1" strokeOpacity={0.5} strokeLinecap="round" fill="none" />
|
|
53
|
+
<text x="274" y="206" fontSize="11" fontWeight="500" fill="currentColor" fillOpacity={0.5}>Test</text>
|
|
54
|
+
<line x1="320" y1="190" x2="320" y2="214" stroke="currentColor" strokeOpacity={0.1} strokeWidth=".6" />
|
|
55
|
+
{/* Live */}
|
|
56
|
+
<circle cx="360" cy="202" r="4" fill="currentColor" fillOpacity={0.15} stroke="currentColor" strokeWidth="1" strokeOpacity={0.5} />
|
|
57
|
+
<path d="M357.5 202 L359.5 204 L363 200" stroke="currentColor" strokeWidth="1" strokeOpacity={0.6} strokeLinecap="round" fill="none" />
|
|
58
|
+
<text x="374" y="206" fontSize="11" fontWeight="600" fill="currentColor" fillOpacity={0.65}>Live</text>
|
|
59
|
+
</svg>
|
|
60
|
+
);
|
|
61
|
+
}
|