Plugins base (#613)

* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
This commit is contained in:
Saeed Vaziry
2025-06-14 14:35:18 +02:00
committed by GitHub
parent adc0653d15
commit 131b828807
311 changed files with 3976 additions and 2660 deletions

View File

@ -27,12 +27,14 @@ export default function WorkerForm({ serverId, site, worker, children }: { serve
const page = usePage<SharedData & { server: Server }>();
const [open, setOpen] = useState(false);
const form = useForm<{
name: string;
command: string;
user: string;
auto_start: boolean;
auto_restart: boolean;
numprocs: string;
}>({
name: worker?.name || '',
command: worker?.command || '',
user: worker?.user || '',
auto_start: worker?.auto_start || true,
@ -69,6 +71,13 @@ export default function WorkerForm({ serverId, site, worker, children }: { serve
</DialogHeader>
<Form id="worker-form" onSubmit={submit} className="p-4">
<FormFields>
{/*name*/}
<FormField>
<Label htmlFor="name">Name</Label>
<Input type="text" id="name" value={form.data.name} onChange={(e) => form.setData('name', e.target.value)} />
<InputError message={form.errors.name} />
</FormField>
{/*command*/}
<FormField>
<Label htmlFor="command">Command</Label>