fix: lint

This commit is contained in:
Tienson Qin
2025-07-23 20:22:22 +08:00
parent aeeaad3eb0
commit 48ae054ce8
5 changed files with 3 additions and 8 deletions

View File

@@ -61,7 +61,7 @@
(defn- validate-worker-not-in-frontend
[]
(let [res (shell {:out :string :continue true}
"grep -r --exclude-dir=worker" "\\[frontend.worker.*:" "src/main/frontend")
"grep -r --exclude-dir=worker --exclude-dir=inference_worker" "\\[frontend.worker.*:" "src/main/frontend")
;; allow reset-file b/c it's only affects tests
allowed-exceptions #{"src/main/frontend/handler/file_based/file.cljs: [frontend.worker.file.reset :as file-reset]"}
invalid-lines (when (= 0 (:exit res))
@@ -79,4 +79,3 @@
[]
(validate-frontend-not-in-worker)
(validate-worker-not-in-frontend))

View File

@@ -116,8 +116,7 @@
(defn- fail-case-default-handler
[e]
(if (instance? Cancelled e)
(log/warn :run-task*-cancelled e)
(when-not (instance? Cancelled e)
(log/error :run-task*-failed e)))
(defn run-task

View File

@@ -346,7 +346,7 @@
(rum/defc semantic-search-progressing
[repo]
(let [[vec-search-state set-vec-search-state] (hooks/use-state nil)
{:keys [indexing?] :as status} (get-in vec-search-state [:repo->index-info repo])]
{:keys [indexing?]} (get-in vec-search-state [:repo->index-info repo])]
(hooks/use-effect!
(fn []
(c.m/run-task

View File

@@ -1,9 +1,7 @@
(ns frontend.inference-worker.inference-worker
"Worker used for text embedding and vector-db"
(:require ["comlink" :as Comlink]
[frontend.inference-worker.state :as infer-worker.state]
[frontend.inference-worker.text-embedding :as infer-worker.text-embedding]
[lambdaisland.glogi :as log]
[lambdaisland.glogi.console :as glogi-console]
[promesa.core :as p]
[shadow.cljs.modern :refer [defclass]]))

View File

@@ -214,7 +214,6 @@
:context-menu/template-include-parent-block "Including the parent block in the template?"
:context-menu/template-exists-warning "Template already exists!"
:settings-page/ai "AI"
:settings-page/tab-ai "AI"
:settings-page/git-tip "If you have Logseq Sync enabled, you can view a page's edit history directly. This section is for tech-savvy only."
:settings-page/git-desc-1 "To view page's edit history, click the three horizontal dots in the top-right corner and select \"View page history\"."
:settings-page/git-desc-2 "For professional users, Logseq also supports using "