From 97cd2db0cc6b49e95f84d41ed4b60c8545f076f3 Mon Sep 17 00:00:00 2001 From: Michel Hopfner Date: Mon, 13 Nov 2023 11:15:18 +0100 Subject: [PATCH] Fix copy and paste errors --- src/commands/app/create/python.tsx | 14 +++++++------- src/commands/app/create/static.tsx | 4 ++-- src/commands/app/install/drupal.tsx | 4 ++-- src/commands/app/install/nextcloud.tsx | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/commands/app/create/python.tsx b/src/commands/app/create/python.tsx index 5b8981bb..b0316e4f 100644 --- a/src/commands/app/create/python.tsx +++ b/src/commands/app/create/python.tsx @@ -5,21 +5,21 @@ import { AppInstaller, } from "../../../lib/app/Installer.js"; -export const staticInstaller = new AppInstaller( +export const pythonInstaller = new AppInstaller( "be57d166-dae9-4480-bae2-da3f3c6f0a2e", "custom python site", ["document-root", "site-title", "wait"] as const, ); -export default class InstallNode extends ExecRenderBaseCommand< - typeof InstallNode, +export default class InstallPython extends ExecRenderBaseCommand< + typeof InstallPython, AppInstallationResult > { - static description = staticInstaller.description; - static flags = staticInstaller.flags; + static description = pythonInstaller.description; + static flags = pythonInstaller.flags; protected async exec(): Promise<{ appInstallationId: string }> { - return staticInstaller.exec( + return pythonInstaller.exec( this.apiClient, this.args, this.flags, @@ -28,6 +28,6 @@ export default class InstallNode extends ExecRenderBaseCommand< } protected render(result: AppInstallationResult): React.ReactNode { - return staticInstaller.render(result, this.flags); + return pythonInstaller.render(result, this.flags); } } diff --git a/src/commands/app/create/static.tsx b/src/commands/app/create/static.tsx index 5206d9f5..94cab438 100644 --- a/src/commands/app/create/static.tsx +++ b/src/commands/app/create/static.tsx @@ -11,8 +11,8 @@ export const staticInstaller = new AppInstaller( ["document-root", "site-title", "wait"] as const, ); -export default class InstallNode extends ExecRenderBaseCommand< - typeof InstallNode, +export default class InstallStatic extends ExecRenderBaseCommand< + typeof InstallStatic, AppInstallationResult > { static description = staticInstaller.description; diff --git a/src/commands/app/install/drupal.tsx b/src/commands/app/install/drupal.tsx index 1f7cbef6..c022563a 100644 --- a/src/commands/app/install/drupal.tsx +++ b/src/commands/app/install/drupal.tsx @@ -19,8 +19,8 @@ const installer = new AppInstaller( ] as const, ); -export default class InstallShopware6 extends ExecRenderBaseCommand< - typeof InstallShopware6, +export default class InstallDrupal extends ExecRenderBaseCommand< + typeof InstallDrupal, AppInstallationResult > { static description = installer.description; diff --git a/src/commands/app/install/nextcloud.tsx b/src/commands/app/install/nextcloud.tsx index c26a1000..bdbf0471 100644 --- a/src/commands/app/install/nextcloud.tsx +++ b/src/commands/app/install/nextcloud.tsx @@ -19,8 +19,8 @@ const installer = new AppInstaller( ] as const, ); -export default class InstallShopware6 extends ExecRenderBaseCommand< - typeof InstallShopware6, +export default class InstallNextcloud extends ExecRenderBaseCommand< + typeof InstallNextcloud, AppInstallationResult > { static description = installer.description;