mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-14 03:09:43 +00:00
Feat: Add config path to website (#4005)
* Feat: Add config path to website * Handel Responsive/Mobile
This commit is contained in:
parent
945a32dfef
commit
cf4a2c8ffe
8 changed files with 89 additions and 2 deletions
|
@ -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({
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue