Provide better explanations for system parameters
This commit is contained in:
parent
2459cc005f
commit
53200d01a6
15 changed files with 88 additions and 41 deletions
|
|
@ -125,6 +125,10 @@ time {
|
|||
font-size: 125%;
|
||||
}
|
||||
|
||||
.pure-select {
|
||||
min-width: 24ch; /* to match <input type="text"> */
|
||||
}
|
||||
|
||||
.error-message {
|
||||
background-color: pink;
|
||||
border: 1px solid red;
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ import '../Admin/index.css'
|
|||
|
||||
import { Provision } from '~/src/lib/remote/api'
|
||||
|
||||
const provision = document.getElementById('provision') as HTMLFormElement
|
||||
const system = document.getElementById('system') as HTMLFormElement
|
||||
const slug = document.getElementById('slug') as HTMLInputElement
|
||||
const php = document.getElementById('php') as HTMLSelectElement
|
||||
const opcacheDevelopment = document.getElementById('opcacheDevelopment') as HTMLInputElement
|
||||
const contentSecurityPolicy = document.getElementById('contentsecuritypolicy') as HTMLInputElement
|
||||
|
||||
// add an event handler to open the modal form!
|
||||
provision.addEventListener('submit', (evt) => {
|
||||
system.addEventListener('submit', (evt) => {
|
||||
evt.preventDefault()
|
||||
|
||||
Provision({ Slug: slug.value, System: { PHP: php.value, OpCacheDevelopment: opcacheDevelopment.checked, ContentSecurityPolicy: contentSecurityPolicy.value } })
|
||||
|
|
@ -21,4 +21,4 @@ provision.addEventListener('submit', (evt) => {
|
|||
})
|
||||
|
||||
// enable the form!
|
||||
provision.querySelector('fieldset')?.removeAttribute('disabled')
|
||||
system.querySelector('fieldset')?.removeAttribute('disabled')
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ import '../Admin/index.css'
|
|||
|
||||
import { Rebuild } from '~/src/lib/remote/api'
|
||||
|
||||
const rebuild = document.getElementById('rebuild') as HTMLFormElement
|
||||
const system = document.getElementById('system') as HTMLFormElement
|
||||
const slug = document.getElementById('slug') as HTMLInputElement
|
||||
const php = document.getElementById('php') as HTMLSelectElement
|
||||
const opcacheDevelopment = document.getElementById('opcacheDevelopment') as HTMLInputElement
|
||||
const contentSecurityPolicy = document.getElementById('contentsecuritypolicy') as HTMLInputElement
|
||||
|
||||
// add an event handler to open the modal form!
|
||||
rebuild.addEventListener('submit', (evt) => {
|
||||
system.addEventListener('submit', (evt) => {
|
||||
evt.preventDefault()
|
||||
|
||||
Rebuild(slug.value, { PHP: php.value, OpCacheDevelopment: opcacheDevelopment.checked, ContentSecurityPolicy: contentSecurityPolicy.value })
|
||||
|
|
@ -21,4 +21,4 @@ rebuild.addEventListener('submit', (evt) => {
|
|||
})
|
||||
|
||||
// enable the form!
|
||||
rebuild.querySelector('fieldset')?.removeAttribute('disabled')
|
||||
system.querySelector('fieldset')?.removeAttribute('disabled')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue