fix: frontend lints

@RCmerci There's a fixme for you
pull/11311/head
Gabriel Horner 2024-05-07 08:33:44 -04:00
parent 308c3bcd17
commit 039d0ed287
5 changed files with 3 additions and 17 deletions

View File

@ -6,6 +6,6 @@
;; Used for debugging
frontend.db.debug
frontend.worker.debug
;; FIXME: Should remove its unused fns
frontend.worker.rtc.core]
;; FIXME: Are these unused fns?
frontend.worker.rtc.op-mem-layer]
:report {:format :ignore}}

View File

@ -2,7 +2,6 @@
(:require [cljs-time.coerce :as tc]
[cljs.pprint :as pp]
[clojure.string :as string]
[cognitect.transit :as transit]
[dommy.core :as d]
[frontend.commands :as commands]
[frontend.components.editor :as editor]
@ -33,8 +32,6 @@
[rum.core :as rum]
[logseq.db :as ldb]))
(defonce transit-r (transit/reader :json))
;; TODO i18n support
(rum/defc custom-context-menu-content

View File

@ -18,8 +18,7 @@
[frontend.state :as state]
[promesa.core :as p]
[logseq.db.frontend.property :as db-property]
[logseq.db.frontend.property.type :as db-property-type]
[logseq.db :as ldb]))
[logseq.db.frontend.property.type :as db-property-type]))
(defn- <upsert-closed-value!
"Create new closed value and returns its block UUID."

View File

@ -4,15 +4,6 @@
#?(:cljs (:require [promesa.core :as p]
[clojure.core.async :as async])))
(defmacro go-try
[& body]
`(cljs.core.async/go
(try
~@body
(catch :default e#
e#))))
#?(:cljs
(defn throw-err
[v]

View File

@ -754,7 +754,6 @@
:linked-references/filter-heading "Filtro"
:linked-references/filter-includes "Include: "
:linked-references/reference-count (fn [filtered-count total] (str (when filtered-count (str filtered-count " di ")) total (if (= total 1) " Riferimento Collegato" " Riferimenti Collegati")))
:linked-references/unexpected-error "Riferimenti Collegati: Errore inatteso. Per favore, re-indicizza prima il grafo."
:settings-page/git-commit-on-close "Esegui commit Git alla chiusura della finestra"
:unlinked-references/reference-count (fn [total] (str total (if (= total 1) " Riferimento Scollegato" " Riferimenti Scollegati")))
:whiteboard/reference-count (fn [refs-count] (if (= refs-count 1) "Riferimento" "Riferimenti"))}