From 4a818d55c8656594455cd754f1a8cc55ed8d3203 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 2 Oct 2024 14:18:49 +0200 Subject: [PATCH] Rename, fix docstring --- common/src/app/common/types/tokens_lib.cljc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index f202de931d..670baffcee 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -241,7 +241,7 @@ (set-count [_] "get the total number if sets in the library") (get-set-tree [_] "get a nested tree of all sets in the library") (get-sets [_] "get an ordered sequence of all sets in the library") - (get-sets-order [_] "get an ordered sequence of all sets in the library") + (get-ordered-set-names [_] "get an ordered sequence of all sets names in the library") (get-set [_ set-name] "get one set looking for name") (get-set-group [_ set-group-path] "get the attributes of a set group")) @@ -485,7 +485,7 @@ (->> (tree-seq d/ordered-map? vals sets) (filter (partial instance? TokenSet)))) - (get-sets-order [this] + (get-ordered-set-names [this] (map :name (get-sets this))) (set-count [this] @@ -641,7 +641,7 @@ (get-active-themes this))) (get-active-themes-set-tokens [this] - (let [sets-order (get-sets-order this) + (let [sets-order (get-ordered-set-names this) active-themes (get-active-themes this) order-theme-set (fn [theme] (filter #(contains? (set (:sets theme)) %) sets-order))]