Fixed volume-total-storage-size error in browser
This commit is contained in:
parent
cb94861bd0
commit
0a40b5697f
2 changed files with 6 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
|||
"src/test/cljc"
|
||||
"src/test/cljs"
|
||||
"src/test/resources"]
|
||||
:dependencies [[org.domaindrivenarchitecture/c4k-common-cljs "3.0.0"]
|
||||
:dependencies [[org.domaindrivenarchitecture/c4k-common-cljs "3.0.1"]
|
||||
[hickory "0.7.1"]]
|
||||
:builds {:frontend {:target :browser
|
||||
:modules {:main {:init-fn dda.c4k-gitea.browser/init}}
|
||||
|
|
|
@ -69,11 +69,10 @@
|
|||
domain-whitelist (br/get-content-from-element "domain-whitelist" :optional true)]
|
||||
(merge
|
||||
{:fqdn (br/get-content-from-element "fqdn")
|
||||
;:mailer-from (br/get-content-from-element "mailer-from")
|
||||
;:mailer-host-port (br/get-content-from-element "mailer-host-port")
|
||||
;:service-noreply-address (br/get-content-from-element "service-noreply-address")
|
||||
;:volume-total-storage-size (br/get-content-from-element "volume-total-storage-size" :deserializer #(read-string %))} ; TODO: Do not use read-string!
|
||||
}
|
||||
:mailer-from (br/get-content-from-element "mailer-from")
|
||||
:mailer-host-port (br/get-content-from-element "mailer-host-port")
|
||||
:service-noreply-address (br/get-content-from-element "service-noreply-address")
|
||||
:volume-total-storage-size (br/get-content-from-element "volume-total-storage-size" :deserializer js/parseInt)}
|
||||
(when (not (st/blank? postgres-data-volume-path))
|
||||
{:postgres-data-volume-path postgres-data-volume-path})
|
||||
(when (not (st/blank? issuer))
|
||||
|
@ -93,7 +92,7 @@
|
|||
(br/validate! "app-name" ::gitea/default-app-name :optional true)
|
||||
(br/validate! "domain-whitelist" ::gitea/service-domain-whitelist :optional true)
|
||||
(br/validate! "postgres-data-volume-path" ::pgc/postgres-data-volume-path :optional true)
|
||||
(br/validate! "volume-total-storage-size" ::gitea/volume-total-storage-size)
|
||||
(br/validate! "volume-total-storage-size" ::gitea/volume-total-storage-size :deserializer js/parseInt)
|
||||
(br/validate! "auth" gitea/auth? :deserializer edn/read-string)
|
||||
(br/set-form-validated!))
|
||||
|
||||
|
|
Loading…
Reference in a new issue