From a4acdd18863456a251dfdef1ef68db713b6c10d5 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 1 Dec 2022 08:56:23 +0100 Subject: [PATCH] :paperclip: Explicitly disable features on code --- frontend/src/app/main.cljs | 1 + frontend/src/app/main/features.cljs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main.cljs b/frontend/src/app/main.cljs index 2eda90ba0..ce313ce90 100644 --- a/frontend/src/app/main.cljs +++ b/frontend/src/app/main.cljs @@ -37,6 +37,7 @@ (when (= :browser @cf/target) (log/info :message "Welcome to penpot" :version (:full @cf/version) + :asserts *assert* :build-date cf/build-date :public-uri (str @cf/public-uri))) diff --git a/frontend/src/app/main/features.cljs b/frontend/src/app/main/features.cljs index 3642edc94..568da4a30 100644 --- a/frontend/src/app/main/features.cljs +++ b/frontend/src/app/main/features.cljs @@ -65,11 +65,15 @@ ;; Read initial enabled features from config, if set (if-let [enabled-features @cfg/features] (doseq [f enabled-features] + (js/console.log "enabled feature" (pr-str f)) (toggle-feature! f)) - (when *assert* + (when false ;; By default, all features disabled, except in development ;; environment, that are enabled except components-v2 + ;; (js/console.log "!!! *assert*" *assert*) + (doseq [f features-list] (when (not= f :components-v2) + ;; (js/console.log "enabled feature" (pr-str f)) (toggle-feature! f)))))