From 256355c356b75f948cbd421abad0b4cdd2a5cb5f Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 1 Feb 2026 16:39:02 +0800 Subject: [PATCH] fix: lint --- src/main/frontend/components/progress.cljs | 22 ------------------- .../frontend/handler/db_based/import.cljs | 2 +- 2 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 src/main/frontend/components/progress.cljs diff --git a/src/main/frontend/components/progress.cljs b/src/main/frontend/components/progress.cljs deleted file mode 100644 index 788ada22e3..0000000000 --- a/src/main/frontend/components/progress.cljs +++ /dev/null @@ -1,22 +0,0 @@ -(ns frontend.components.progress - (:require [frontend.state :as state] - [rum.core :as rum])) - -(defn- progress-bar - [width] - [:div.w-full.rounded-full.h-2\.5.animate-pulse.bg-gray-06-alpha - [:div.bg-gray-09-alpha.h-2\.5.rounded-full {:style {:width (str width "%")} - :transition "width 1s"}]]) - -(rum/defc progress-indicator < rum/reactive - [] - (let [{:keys [total current-idx current-page label]} (state/sub :graph/importing-state) - label (or label "Processing") - width (js/Math.round (* (.toFixed (/ (or current-idx 0) (max 1 total)) 2) 100))] - [:div.p-5 - [:div.flex.justify-between.mb-1 - [:span.text-base label] - [:span.text-sm.font-medium (when (and total current-idx) - (str current-idx "/" total))]] - [:div.text-xs.opacity-70.mb-2 current-page] - (progress-bar width)])) diff --git a/src/main/frontend/handler/db_based/import.cljs b/src/main/frontend/handler/db_based/import.cljs index 078c49708d..4c38d7a5a7 100644 --- a/src/main/frontend/handler/db_based/import.cljs +++ b/src/main/frontend/handler/db_based/import.cljs @@ -38,7 +38,7 @@ [entries] (let [candidates (filter (fn [{:keys [name dir?]}] (let [name (-> name - (string/replace #"\\+" "/") + (string/replace #"\+" "/") string/lower-case)] (and (not dir?) (string/ends-with? name "db.sqlite"))))