Fixed volume-total-storage-size error in browser

This commit is contained in:
Clemens Geibel 2022-08-12 11:31:51 +02:00
parent cb94861bd0
commit 0a40b5697f
2 changed files with 6 additions and 7 deletions

View file

@ -4,7 +4,7 @@
"src/test/cljc" "src/test/cljc"
"src/test/cljs" "src/test/cljs"
"src/test/resources"] "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"]] [hickory "0.7.1"]]
:builds {:frontend {:target :browser :builds {:frontend {:target :browser
:modules {:main {:init-fn dda.c4k-gitea.browser/init}} :modules {:main {:init-fn dda.c4k-gitea.browser/init}}

View file

@ -69,11 +69,10 @@
domain-whitelist (br/get-content-from-element "domain-whitelist" :optional true)] domain-whitelist (br/get-content-from-element "domain-whitelist" :optional true)]
(merge (merge
{:fqdn (br/get-content-from-element "fqdn") {:fqdn (br/get-content-from-element "fqdn")
;:mailer-from (br/get-content-from-element "mailer-from") :mailer-from (br/get-content-from-element "mailer-from")
;:mailer-host-port (br/get-content-from-element "mailer-host-port") :mailer-host-port (br/get-content-from-element "mailer-host-port")
;:service-noreply-address (br/get-content-from-element "service-noreply-address") :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! :volume-total-storage-size (br/get-content-from-element "volume-total-storage-size" :deserializer js/parseInt)}
}
(when (not (st/blank? postgres-data-volume-path)) (when (not (st/blank? postgres-data-volume-path))
{:postgres-data-volume-path postgres-data-volume-path}) {:postgres-data-volume-path postgres-data-volume-path})
(when (not (st/blank? issuer)) (when (not (st/blank? issuer))
@ -93,7 +92,7 @@
(br/validate! "app-name" ::gitea/default-app-name :optional true) (br/validate! "app-name" ::gitea/default-app-name :optional true)
(br/validate! "domain-whitelist" ::gitea/service-domain-whitelist :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! "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/validate! "auth" gitea/auth? :deserializer edn/read-string)
(br/set-form-validated!)) (br/set-form-validated!))