mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 07:11:32 -05:00
commit
8148151ee5
6 changed files with 24 additions and 20 deletions
|
@ -4,7 +4,7 @@ export PENPOT_HOST=devenv
|
||||||
export PENPOT_TENANT=dev
|
export PENPOT_TENANT=dev
|
||||||
export PENPOT_FLAGS="\
|
export PENPOT_FLAGS="\
|
||||||
$PENPOT_FLAGS \
|
$PENPOT_FLAGS \
|
||||||
enable-registration
|
enable-login-with-ldap \
|
||||||
enable-login-with-password
|
enable-login-with-password
|
||||||
enable-login-with-oidc \
|
enable-login-with-oidc \
|
||||||
enable-login-with-google \
|
enable-login-with-google \
|
||||||
|
@ -28,9 +28,7 @@ export PENPOT_FLAGS="\
|
||||||
enable-access-tokens \
|
enable-access-tokens \
|
||||||
disable-feature-components-v2 \
|
disable-feature-components-v2 \
|
||||||
enable-file-validation \
|
enable-file-validation \
|
||||||
enable-file-schema-validation \
|
enable-file-schema-validation";
|
||||||
disable-soft-file-schema-validation \
|
|
||||||
disable-soft-file-validation";
|
|
||||||
|
|
||||||
|
|
||||||
# Setup default upload media file size to 100MiB
|
# Setup default upload media file size to 100MiB
|
||||||
|
|
|
@ -15,13 +15,12 @@ export PENPOT_FLAGS="\
|
||||||
enable-feature-fdata-pointer-map \
|
enable-feature-fdata-pointer-map \
|
||||||
enable-feature-fdata-objects-map \
|
enable-feature-fdata-objects-map \
|
||||||
disable-secure-session-cookies \
|
disable-secure-session-cookies \
|
||||||
|
enable-rpc-climit \
|
||||||
enable-smtp \
|
enable-smtp \
|
||||||
enable-access-tokens \
|
enable-access-tokens \
|
||||||
disable-feature-components-v2 \
|
disable-feature-components-v2 \
|
||||||
enable-file-validation \
|
enable-file-validation \
|
||||||
enable-file-schema-validation \
|
enable-file-schema-validation";
|
||||||
disable-soft-file-schema-validation \
|
|
||||||
disable-soft-file-validation";
|
|
||||||
|
|
||||||
export OPTIONS="
|
export OPTIONS="
|
||||||
-A:jmx-remote -A:dev \
|
-A:jmx-remote -A:dev \
|
||||||
|
|
|
@ -215,10 +215,15 @@
|
||||||
(update :pages-index update-vals fix-container)
|
(update :pages-index update-vals fix-container)
|
||||||
(d/update-when :components update-vals fix-container))))
|
(d/update-when :components update-vals fix-container))))
|
||||||
|
|
||||||
fix-page-invalid-options
|
fix-invalid-page
|
||||||
(fn [file-data]
|
(fn [file-data]
|
||||||
(letfn [(update-page [page]
|
(letfn [(update-page [page]
|
||||||
(update page :options fix-options))
|
(-> page
|
||||||
|
(update :name (fn [name]
|
||||||
|
(if (nil? name)
|
||||||
|
"Page"
|
||||||
|
name)))
|
||||||
|
(update :options fix-options)))
|
||||||
|
|
||||||
(fix-background [options]
|
(fix-background [options]
|
||||||
(if (and (contains? options :background)
|
(if (and (contains? options :background)
|
||||||
|
@ -433,7 +438,8 @@
|
||||||
(letfn [(fix-component [components id component]
|
(letfn [(fix-component [components id component]
|
||||||
(let [root-shape (ctst/get-shape component (:id component))]
|
(let [root-shape (ctst/get-shape component (:id component))]
|
||||||
(if (or (empty? (:objects component))
|
(if (or (empty? (:objects component))
|
||||||
(nil? root-shape))
|
(nil? root-shape)
|
||||||
|
(nil? (:type root-shape)))
|
||||||
(dissoc components id)
|
(dissoc components id)
|
||||||
components)))]
|
components)))]
|
||||||
|
|
||||||
|
@ -992,7 +998,7 @@
|
||||||
|
|
||||||
(-> file-data
|
(-> file-data
|
||||||
(fix-file-data)
|
(fix-file-data)
|
||||||
(fix-page-invalid-options)
|
(fix-invalid-page)
|
||||||
(fix-misc-shape-issues)
|
(fix-misc-shape-issues)
|
||||||
(fix-recent-colors)
|
(fix-recent-colors)
|
||||||
(fix-missing-image-metadata)
|
(fix-missing-image-metadata)
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
[app.worker :as-alias wrk]
|
[app.worker :as-alias wrk]
|
||||||
[clojure.edn :as edn]
|
[clojure.edn :as edn]
|
||||||
[clojure.spec.alpha :as s]
|
[clojure.spec.alpha :as s]
|
||||||
[cuerdas.core :as str]
|
|
||||||
[datoteka.fs :as fs]
|
[datoteka.fs :as fs]
|
||||||
[integrant.core :as ig]
|
[integrant.core :as ig]
|
||||||
[promesa.exec :as px]
|
[promesa.exec :as px]
|
||||||
|
@ -241,16 +240,15 @@
|
||||||
[{:keys [::label ::profile-id ::rpc/climit ::mtx/metrics] :as cfg} f]
|
[{:keys [::label ::profile-id ::rpc/climit ::mtx/metrics] :as cfg} f]
|
||||||
(let [config (get climit ::config)
|
(let [config (get climit ::config)
|
||||||
cache (get climit ::cache)]
|
cache (get climit ::cache)]
|
||||||
|
|
||||||
(reduce (fn [handler [limit-id limit-key :as ckey]]
|
(reduce (fn [handler [limit-id limit-key :as ckey]]
|
||||||
(let [config (get config limit-id)]
|
(if-let [config (get config limit-id)]
|
||||||
(when-not config
|
|
||||||
(throw (IllegalArgumentException.
|
|
||||||
(str/ffmt "config not found for: %" limit-id))))
|
|
||||||
|
|
||||||
(fn [& params]
|
(fn [& params]
|
||||||
(let [limiter (cache/get cache ckey (partial create-limiter config))]
|
(let [limiter (cache/get cache ckey (partial create-limiter config))]
|
||||||
(invoke limiter metrics limit-id limit-key label profile-id handler params)))))
|
(invoke limiter metrics limit-id limit-key label profile-id handler params)))
|
||||||
|
|
||||||
|
(do
|
||||||
|
(l/wrn :hint "config not found" :label label :id limit-id)
|
||||||
|
f)))
|
||||||
f
|
f
|
||||||
(get-limits cfg))))
|
(get-limits cfg))))
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
[{:keys [version] :as file}]
|
[{:keys [version] :as file}]
|
||||||
(if (int? version)
|
(if (int? version)
|
||||||
file
|
file
|
||||||
(let [version (or version (-> file :data :version))]
|
(let [version (or (-> file :data :version) 0)]
|
||||||
(-> file
|
(-> file
|
||||||
(assoc :version version)
|
(assoc :version version)
|
||||||
(update :data dissoc :version)))))
|
(update :data dissoc :version)))))
|
||||||
|
|
|
@ -995,6 +995,9 @@
|
||||||
(= key :style)
|
(= key :style)
|
||||||
attrs
|
attrs
|
||||||
|
|
||||||
|
(= key :unicode)
|
||||||
|
attrs
|
||||||
|
|
||||||
(str/starts-with? (d/name key) "data-")
|
(str/starts-with? (d/name key) "data-")
|
||||||
attrs
|
attrs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue