From f3ac3f18150c153884d29a32342c01b210fec740 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 18 Oct 2025 23:08:04 -0500 Subject: [PATCH] Remove now unnecessary deployServer configuration --- src/App.tsx | 1 - src/components/AppProvider.tsx | 1 - src/contexts/AppContext.ts | 2 -- src/hooks/useAIProjectId.test.ts | 1 - src/hooks/useGit.test.ts | 1 - src/lib/i18n.ts | 12 ------------ src/pages/SystemSettings.tsx | 31 ------------------------------- src/test/TestApp.tsx | 1 - 8 files changed, 50 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 4fe4f617..b5b4ae4a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -44,7 +44,6 @@ const defaultConfig: AppConfig = { theme: "system", relayUrl: "wss://relay.ditto.pub", projectTemplate: "https://gitlab.com/soapbox-pub/mkstack.git", - deployServer: "shakespeare.wtf", esmUrl: "https://esm.shakespeare.diy", corsProxy: "https://proxy.shakespeare.diy/?url={href}", previewDomain: "local-shakespeare.dev", diff --git a/src/components/AppProvider.tsx b/src/components/AppProvider.tsx index cb048ea4..c5db5659 100644 --- a/src/components/AppProvider.tsx +++ b/src/components/AppProvider.tsx @@ -19,7 +19,6 @@ const AppConfigSchema = z.object({ theme: z.enum(['dark', 'light', 'system']), relayUrl: z.string().url(), projectTemplate: z.string().url(), - deployServer: z.string().min(1), esmUrl: z.string().url(), corsProxy: z.string().url(), previewDomain: z.string().min(1), diff --git a/src/contexts/AppContext.ts b/src/contexts/AppContext.ts index 160afd03..af69b188 100644 --- a/src/contexts/AppContext.ts +++ b/src/contexts/AppContext.ts @@ -9,8 +9,6 @@ export interface AppConfig { relayUrl: string; /** Git repository URL to use as project template */ projectTemplate: string; - /** Deploy server domain (e.g., "shakespeare.wtf") */ - deployServer: string; /** ESM CDN URL for package imports */ esmUrl: string; /** HTTP proxy used to bypass CORS for AI and Git operations */ diff --git a/src/hooks/useAIProjectId.test.ts b/src/hooks/useAIProjectId.test.ts index 7f82a42c..f4adad88 100644 --- a/src/hooks/useAIProjectId.test.ts +++ b/src/hooks/useAIProjectId.test.ts @@ -43,7 +43,6 @@ describe('useAIProjectId', () => { theme: 'dark', relayUrl: 'wss://relay.damus.io', projectTemplate: 'https://github.com/example/template', - deployServer: 'shakespeare.wtf', esmUrl: 'https://esm.sh', corsProxy: 'https://proxy.example.com/{href}', previewDomain: 'local-shakespeare.dev', diff --git a/src/hooks/useGit.test.ts b/src/hooks/useGit.test.ts index 5337030f..185a8c25 100644 --- a/src/hooks/useGit.test.ts +++ b/src/hooks/useGit.test.ts @@ -35,7 +35,6 @@ function createWrapper(corsProxy: string) { theme: 'light', relayUrl: 'wss://relay.test', projectTemplate: 'https://gitlab.com/soapbox-pub/mkstack.git', - deployServer: 'test.com', esmUrl: 'https://esm.test', corsProxy, previewDomain: 'local-test.dev', diff --git a/src/lib/i18n.ts b/src/lib/i18n.ts index baa1a650..21b558fa 100644 --- a/src/lib/i18n.ts +++ b/src/lib/i18n.ts @@ -38,8 +38,6 @@ const resources = { previewDomainDescription: 'Domain used for iframe preview sandboxing.', corsProxy: 'CORS Proxy', corsProxyDescription: 'HTTP proxy URL for bypassing CORS restrictions.', - deployServer: 'Deploy Server', - deployServerDescription: 'Server domain where projects will be deployed.', // Language Options english: 'English', @@ -562,8 +560,6 @@ const resources = { projectTemplateDescription: 'URL do repositório Git a ser usado como modelo inicial para novos projetos.', corsProxy: 'Proxy CORS', corsProxyDescription: 'Proxy usado para contornar CORS para operações de IA e Git.', - deployServer: 'Servidor de Deploy', - deployServerDescription: 'Domínio do servidor onde os projetos serão implantados.', // Data Settings dataSettingsDescriptionLong: 'Exporte arquivos e gerencie dados locais.', @@ -900,8 +896,6 @@ const resources = { projectTemplateDescription: '用作新项目起始模板的Git仓库URL。', corsProxy: 'CORS代理', corsProxyDescription: '用于绕过CORS的代理,适用于AI和Git操作。', - deployServer: '部署服务器', - deployServerDescription: '项目将部署到的服务器域名。', // Data Settings dataSettingsDescriptionLong: '导出文件和管理本地数据。', @@ -1235,8 +1229,6 @@ const resources = { projectTemplateDescription: 'URL ɗin ma\'ajin Git da za a yi amfani da shi azaman samfurin farawa don sababbin ayyuka.', corsProxy: 'CORS Proxy', corsProxyDescription: 'Proxy da ake amfani da shi don ketare CORS don ayyukan AI da Git.', - deployServer: 'Sabar Turawa', - deployServerDescription: 'Wurin sabar da za a tura ayyuka zuwa.', // Data Settings dataSettingsDescriptionLong: 'Fitar da fayiloli da sarrafa bayanan gida.', @@ -1570,8 +1562,6 @@ const resources = { projectTemplateDescription: 'URL ibi ipamọ Git lati lo bi awoṣe ibẹrẹ fun awọn iṣẹ akanṣe tuntun.', corsProxy: 'CORS Proxy', corsProxyDescription: 'Olupin proxy ti a lo lati kọja CORS fun awọn iṣẹ AI ati Git.', - deployServer: 'Olupin Ifilọlẹ', - deployServerDescription: 'Aaye olupin nibiti a o fi awọn iṣẹ akanṣe ranṣẹ si.', // Data Settings dataSettingsDescriptionLong: 'Gbe awọn faili jade ati ṣakoso data agbegbe.', @@ -1900,8 +1890,6 @@ const resources = { projectTemplateDescription: 'URL nchekwa Git iji mee ka ụdịdị mmalite maka ọrụ ọhụrụ.', corsProxy: 'CORS Proxy', corsProxyDescription: 'Sava proxy ejiri gafere CORS maka ọrụ AI na Git.', - deployServer: 'Sava Nnyefe', - deployServerDescription: 'Ngalaba sava ebe a ga-eziga ọrụ.', // Data Settings dataSettingsDescriptionLong: 'Bupụta faịlụ ma jikwaa data mpaghara.', diff --git a/src/pages/SystemSettings.tsx b/src/pages/SystemSettings.tsx index a3c2a061..56bd8fcf 100644 --- a/src/pages/SystemSettings.tsx +++ b/src/pages/SystemSettings.tsx @@ -19,7 +19,6 @@ export function SystemSettings() { const [esmUrlInput, setEsmUrlInput] = useState(config.esmUrl); const [corsProxyInput, setCorsProxyInput] = useState(config.corsProxy); const [previewDomainInput, setPreviewDomainInput] = useState(config.previewDomain); - const [deployServerInput, setDeployServerInput] = useState(config.deployServer); const [showcaseModeratorInput, setShowcaseModeratorInput] = useState(config.showcaseModerator); return ( @@ -181,36 +180,6 @@ export function SystemSettings() { - {/* Deploy Server Configuration */} - - - -

{t('deployServer')}

-
- -
- { - const value = e.target.value; - setDeployServerInput(value); - updateConfig((current) => ({ - ...current, - deployServer: value, - })); - }} - /> -

- {t('deployServerDescription')} -

-
-
-
-
- {/* Showcase Configuration */} diff --git a/src/test/TestApp.tsx b/src/test/TestApp.tsx index 3b329d77..83e3920f 100644 --- a/src/test/TestApp.tsx +++ b/src/test/TestApp.tsx @@ -31,7 +31,6 @@ export function TestApp({ children }: TestAppProps) { theme: 'light', relayUrl: 'wss://relay.nostr.band', projectTemplate: 'https://gitlab.com/soapbox-pub/mkstack.git', - deployServer: 'shakespeare.wtf', esmUrl: 'https://esm.shakespeare.diy', corsProxy: 'https://proxy.shakespeare.diy/?url={href}', previewDomain: 'local-shakespeare.dev',