mirror of
https://github.com/penpot/penpot.git
synced 2026-05-06 00:28:43 +00:00
✨ Expose flags for common submodule
This commit is contained in:
parent
af99bd620c
commit
16fba49937
@ -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
|
||||
|
||||
@ -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)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user