Expose flags for common submodule

This commit is contained in:
Andrey Antukh 2025-07-09 17:00:51 +02:00
parent af99bd620c
commit 16fba49937
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,8 @@
[clojure.set :as set]
[cuerdas.core :as str]))
(def ^:dynamic *current* #{})
(def login
"Flags related to login features"
#{;; Allows registration with login / password

View File

@ -104,6 +104,12 @@
(def plugins-whitelist (into #{} (obj/get global "penpotPluginsWhitelist" [])))
(def templates-uri (obj/get global "penpotTemplatesUri" "https://penpot.github.io/penpot-files/"))
;; We set the current parsed flags under common for make
;; it available for common code without the need to pass
;; the flags all arround on parameters.
(set! app.common.flags/*current* flags)
(defn- normalize-uri
[uri-str]
(let [uri (u/uri uri-str)]