-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from mittwald/add-Prestashop-neos-moodle
Add PrestaShop, NEOS, Moodle
- Loading branch information
Showing
5 changed files
with
372 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js"; | ||
import React from "react"; | ||
import { | ||
AppInstallationResult, | ||
AppInstaller, | ||
} from "../../../lib/app/Installer.js"; | ||
|
||
export const moodleInstaller = new AppInstaller( | ||
"5ba3b4ea-9f79-460a-bbef-d901beca4cf1", | ||
"Moodle", | ||
[ | ||
"version", | ||
"host", | ||
"admin-user", | ||
"admin-email", | ||
"admin-pass", | ||
"site-title", | ||
"wait", | ||
] as const, | ||
); | ||
|
||
export default class InstallMoodle extends ExecRenderBaseCommand< | ||
typeof InstallMoodle, | ||
AppInstallationResult | ||
> { | ||
static description = moodleInstaller.description; | ||
static flags = moodleInstaller.flags; | ||
|
||
protected async exec(): Promise<{ appInstallationId: string }> { | ||
return moodleInstaller.exec( | ||
this.apiClient, | ||
this.args, | ||
this.flags, | ||
this.config, | ||
); | ||
} | ||
|
||
protected render(result: AppInstallationResult): React.ReactNode { | ||
return moodleInstaller.render(result, this.flags); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { ExecRenderBaseCommand } from "../../../rendering/react/ExecRenderBaseCommand.js"; | ||
import React from "react"; | ||
import { | ||
AppInstallationResult, | ||
AppInstaller, | ||
} from "../../../lib/app/Installer.js"; | ||
|
||
export const neosInstaller = new AppInstaller( | ||
"1f55f9fa-1902-409c-b305-7e428c5ed64d", | ||
"NEOS", | ||
[ | ||
"version", | ||
"admin-user", | ||
"admin-pass", | ||
"admin-firstname", | ||
"admin-lastname", | ||
"site-title", | ||
"wait", | ||
] as const, | ||
); | ||
|
||
export default class InstallNeos extends ExecRenderBaseCommand< | ||
typeof InstallNeos, | ||
AppInstallationResult | ||
> { | ||
static description = neosInstaller.description; | ||
static flags = neosInstaller.flags; | ||
|
||
protected async exec(): Promise<{ appInstallationId: string }> { | ||
return neosInstaller.exec( | ||
this.apiClient, | ||
this.args, | ||
this.flags, | ||
this.config, | ||
); | ||
} | ||
|
||
protected render(result: AppInstallationResult): React.ReactNode { | ||
return neosInstaller.render(result, this.flags); | ||
} | ||
} |
Oops, something went wrong.