|
|
|
@ -416,6 +416,16 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
|
(h1 (@ (style ((font-size ,($ 'font.size.xxl))))) ,step)
|
|
|
|
(h1 (@ (style ((font-size ,($ 'font.size.xxl))))) ,step)
|
|
|
|
,@contents)))
|
|
|
|
,@contents)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-widget (Main-Container () contents)
|
|
|
|
|
|
|
|
`(VStack
|
|
|
|
|
|
|
|
(@ (style ((background ,($ 'color.primary.background))
|
|
|
|
|
|
|
|
(color ,($ 'color.primary.background-contrast))
|
|
|
|
|
|
|
|
(border-radius ,($ 'radius.large))
|
|
|
|
|
|
|
|
(padding ,($ 'gap.gutter)))))
|
|
|
|
|
|
|
|
;; (header
|
|
|
|
|
|
|
|
;; (Steps (@ (steps ("Services" "Apps" "Machine" "Review")) (current ,step))))
|
|
|
|
|
|
|
|
,@contents))
|
|
|
|
|
|
|
|
|
|
|
|
(define-widget (Fieldset ((title "Title")) contents)
|
|
|
|
(define-widget (Fieldset ((title "Title")) contents)
|
|
|
|
`(VStack
|
|
|
|
`(VStack
|
|
|
|
(@ (element fieldset)
|
|
|
|
(@ (element fieldset)
|
|
|
|
@ -441,6 +451,15 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
|
,(if (equal? type "checkbox") input label)
|
|
|
|
,(if (equal? type "checkbox") input label)
|
|
|
|
,(if (equal? type "checkbox") label input))))
|
|
|
|
,(if (equal? type "checkbox") label input))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-widget (Button ((type "submit")) contents)
|
|
|
|
|
|
|
|
`(button (@ (type ,type)
|
|
|
|
|
|
|
|
(style ((background ,($ 'color.primary))
|
|
|
|
|
|
|
|
(color ,($ 'color.primary.contrast))
|
|
|
|
|
|
|
|
(border-radius ,($ 'radius.medium))
|
|
|
|
|
|
|
|
(border-color ,($ 'color.primary.shade))
|
|
|
|
|
|
|
|
(cursor "pointer"))))
|
|
|
|
|
|
|
|
,@contents))
|
|
|
|
|
|
|
|
|
|
|
|
(define-widget (Form-Nav ((back-to #f) (submit-button "Next")))
|
|
|
|
(define-widget (Form-Nav ((back-to #f) (submit-button "Next")))
|
|
|
|
`(HStack
|
|
|
|
`(HStack
|
|
|
|
(@ (style ((justify-content "space-between"))))
|
|
|
|
(@ (style ((justify-content "space-between"))))
|
|
|
|
@ -458,13 +477,7 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
|
'()
|
|
|
|
'()
|
|
|
|
'((pointer-events "none"))))))
|
|
|
|
'((pointer-events "none"))))))
|
|
|
|
"Back")
|
|
|
|
"Back")
|
|
|
|
(button (@ (type "submit")
|
|
|
|
(Button ,submit-button)))
|
|
|
|
(style ((background ,($ 'color.primary))
|
|
|
|
|
|
|
|
(color ,($ 'color.primary.contrast))
|
|
|
|
|
|
|
|
(border-radius ,($ 'radius.medium))
|
|
|
|
|
|
|
|
(border-color ,($ 'color.primary.shade))
|
|
|
|
|
|
|
|
(cursor "pointer"))))
|
|
|
|
|
|
|
|
,submit-button)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(get
|
|
|
|
(get
|
|
|
|
("/config/wizard/services")
|
|
|
|
("/config/wizard/services")
|
|
|
|
@ -919,5 +932,20 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
|
(pre ,output)
|
|
|
|
(pre ,output)
|
|
|
|
)))
|
|
|
|
)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(get
|
|
|
|
|
|
|
|
("/dashboard")
|
|
|
|
|
|
|
|
`(App
|
|
|
|
|
|
|
|
(Main-Container
|
|
|
|
|
|
|
|
(main
|
|
|
|
|
|
|
|
(h1 (@ (style ((font-size ,($ 'font.size.xxl))))) "Deployments")
|
|
|
|
|
|
|
|
(Button "Setup New Deployment")
|
|
|
|
|
|
|
|
(ul ,@(map (lambda (deployment)
|
|
|
|
|
|
|
|
`(li (a (@ (href ,(string-append "/deployments/" (number->string (alist-ref 'id deployment)))))
|
|
|
|
|
|
|
|
,(alist-ref 'root-domain deployment))
|
|
|
|
|
|
|
|
" - ",(alist-ref 'status deployment)))
|
|
|
|
|
|
|
|
(with-db/transaction
|
|
|
|
|
|
|
|
(lambda (db)
|
|
|
|
|
|
|
|
(get-user-deployments db (session-get "user-id"))))))))))
|
|
|
|
|
|
|
|
|
|
|
|
(schematra:schematra-install)
|
|
|
|
(schematra:schematra-install)
|
|
|
|
(schematra:schematra-start)
|
|
|
|
(schematra:schematra-start)
|
|
|
|
|