Feat: Add config path to website (#4005)

* Feat: Add config path to website

* Handel Responsive/Mobile
This commit is contained in:
Michel Roegl-Brunner 2025-04-24 11:52:26 +02:00 committed by GitHub
parent 945a32dfef
commit cf4a2c8ffe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 89 additions and 2 deletions

View file

@ -33,6 +33,7 @@ export const ScriptSchema = z.object({
documentation: z.string().nullable(),
website: z.string().url().nullable(),
logo: z.string().url().nullable(),
config_path: z.string(),
description: z.string().min(1, "Description is required"),
install_methods: z.array(InstallMethodSchema).min(1, "At least one install method is required"),
default_credentials: z.object({

View file

@ -32,6 +32,7 @@ const initialScript: Script = {
privileged: false,
interface_port: null,
documentation: null,
config_path: "",
website: null,
logo: null,
description: "",
@ -174,6 +175,14 @@ export default function JSONGenerator() {
onChange={(e) => updateScript("logo", e.target.value || null)}
/>
</div>
<div>
<Label>Config Path</Label>
<Input
placeholder="Path to config file"
value={script.config_path || ""}
onChange={(e) => updateScript("config_path", e.target.value || null)}
/>
</div>
<div>
<Label>
Description <span className="text-red-500">*</span>