Refactor - Separate core into namespaces: changes, token_types

This commit is contained in:
Florian Schroedl
2024-07-24 15:29:40 +02:00
parent 03370c267d
commit 56e72b5247
10 changed files with 288 additions and 254 deletions

View File

@@ -1,7 +1,13 @@
(ns app.main.ui.workspace.tokens.token
(:require
[cuerdas.core :as str]
[clojure.set :as set]))
[app.common.data :as d]
[clojure.set :as set]
[cuerdas.core :as str]))
(defn resolve-token-value [{:keys [value resolved-value] :as token}]
(or
resolved-value
(d/parse-double value)))
(defn attributes-map
"Creats an attributes map using collection of `attributes` for `id`."