2022-07-11 11:16:39 +02:00
|
|
|
;; This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
;;
|
2022-09-20 23:23:22 +02:00
|
|
|
;; Copyright (c) KALEIDOS INC
|
2022-07-11 11:16:39 +02:00
|
|
|
|
|
|
|
;; This namespace is only to export the functions for toggle features
|
|
|
|
(ns features
|
|
|
|
(:require
|
2022-07-12 13:52:48 +02:00
|
|
|
[app.main.features :as features]))
|
2022-07-11 11:16:39 +02:00
|
|
|
|
2022-07-12 13:52:48 +02:00
|
|
|
(defn ^:export components-v2 []
|
2023-04-12 16:14:36 +02:00
|
|
|
(features/toggle-feature! :components-v2)
|
|
|
|
nil)
|
2022-07-12 13:52:48 +02:00
|
|
|
|
2023-04-12 16:14:36 +02:00
|
|
|
(defn ^:export is-components-v2 []
|
|
|
|
(let [active? (features/active-feature :components-v2)]
|
|
|
|
@active?))
|
2023-03-15 18:02:57 +01:00
|
|
|
|
|
|
|
(defn ^:export new-css-system []
|
|
|
|
(features/toggle-feature! :new-css-system))
|
2023-07-10 11:27:43 +02:00
|
|
|
|
|
|
|
(defn ^:export grid []
|
|
|
|
(features/toggle-feature! :grid-layout))
|