From e1cd6d04d9d62b609e2c18390b39dea94a29e924 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Fri, 19 Apr 2024 11:58:27 +0200 Subject: [PATCH] :recycle: Move common libraries_helpers to libraries_common_helpers --- backend/src/app/features/components_v2.clj | 4 ++-- .../{libraries_helpers.cljc => libraries_common_helpers.cljc} | 2 +- frontend/src/app/main/data/workspace/libraries.cljs | 4 ++-- frontend/src/app/main/data/workspace/selection.cljs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename common/src/app/common/files/{libraries_helpers.cljc => libraries_common_helpers.cljc} (98%) diff --git a/backend/src/app/features/components_v2.clj b/backend/src/app/features/components_v2.clj index 05cd1a084a..34fb01f88c 100644 --- a/backend/src/app/features/components_v2.clj +++ b/backend/src/app/features/components_v2.clj @@ -12,7 +12,7 @@ [app.common.files.changes :as cp] [app.common.files.changes-builder :as fcb] [app.common.files.helpers :as cfh] - [app.common.files.libraries-helpers :as cflh] + [app.common.files.libraries-common-helpers :as cflch] [app.common.files.migrations :as fmg] [app.common.files.shapes-helpers :as cfsh] [app.common.files.validate :as cfv] @@ -1451,7 +1451,7 @@ (cons shape children)) [_ _ changes2] - (cflh/generate-add-component nil + (cflch/generate-add-component nil [shape] (:objects page) (:id page) diff --git a/common/src/app/common/files/libraries_helpers.cljc b/common/src/app/common/files/libraries_common_helpers.cljc similarity index 98% rename from common/src/app/common/files/libraries_helpers.cljc rename to common/src/app/common/files/libraries_common_helpers.cljc index 8b7f34acae..e7df2d8f3d 100644 --- a/common/src/app/common/files/libraries_helpers.cljc +++ b/common/src/app/common/files/libraries_common_helpers.cljc @@ -4,7 +4,7 @@ ;; ;; Copyright (c) KALEIDOS INC -(ns app.common.files.libraries-helpers +(ns app.common.files.libraries-common-helpers (:require [app.common.data :as d] [app.common.files.changes-builder :as pcb] diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index e055ea16e2..75d662313b 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -11,7 +11,7 @@ [app.common.files.changes :as ch] [app.common.files.changes-builder :as pcb] [app.common.files.helpers :as cfh] - [app.common.files.libraries-helpers :as cflh] + [app.common.files.libraries-common-helpers :as cflch] [app.common.files.shapes-helpers :as cfsh] [app.common.geom.point :as gpt] [app.common.logging :as log] @@ -345,7 +345,7 @@ parents (into #{} (map :parent-id) shapes)] (when-not (empty? shapes) (let [[root _ changes] - (cflh/generate-add-component it shapes objects page-id file-id components-v2 + (cflch/generate-add-component it shapes objects page-id file-id components-v2 dwg/prepare-create-group cfsh/prepare-create-artboard-from-selection)] (when-not (empty? (:redo-changes changes)) diff --git a/frontend/src/app/main/data/workspace/selection.cljs b/frontend/src/app/main/data/workspace/selection.cljs index 8ce2cfe1fa..b5b3d3a0df 100644 --- a/frontend/src/app/main/data/workspace/selection.cljs +++ b/frontend/src/app/main/data/workspace/selection.cljs @@ -11,7 +11,7 @@ [app.common.files.changes-builder :as pcb] [app.common.files.focus :as cpf] [app.common.files.helpers :as cfh] - [app.common.files.libraries-helpers :as cflh] + [app.common.files.libraries-common-helpers :as cflch] [app.common.geom.point :as gpt] [app.common.geom.rect :as grc] [app.common.geom.shapes :as gsh] @@ -498,7 +498,7 @@ regenerate-component (fn [changes shape] (let [components-v2 (dm/get-in library-data [:options :components-v2]) - [_ changes] (cflh/generate-add-component-changes changes shape objects file-id (:id page) components-v2)] + [_ changes] (cflch/generate-add-component-changes changes shape objects file-id (:id page) components-v2)] changes)) new-obj