mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
style: remove unused :require (#193)
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
This commit is contained in:
@@ -15,9 +15,6 @@
|
||||
[frontend.components.draw :as draw]
|
||||
[frontend.components.datetime :as datetime-comp]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.components.widgets :as widgets]
|
||||
[frontend.handler.ui :as ui-handler]
|
||||
[frontend.handler.image :as image-handler]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[frontend.handler.dnd :as dnd]
|
||||
[frontend.handler.repeated :as repeated]
|
||||
@@ -25,7 +22,6 @@
|
||||
[medley.core :as medley]
|
||||
[cljs.reader :as reader]
|
||||
[frontend.util :as util :refer-macros [profile]]
|
||||
[frontend.mixins :as mixins]
|
||||
[frontend.db-mixins :as db-mixins]
|
||||
[frontend.extensions.latex :as latex]
|
||||
[frontend.components.lazy-editor :as lazy-editor]
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
(ns frontend.components.commit
|
||||
(:require [rum.core :as rum]
|
||||
[frontend.util :as util :refer-macros [profile]]
|
||||
[frontend.handler.git :as git-handler]
|
||||
[frontend.handler.repo :as repo-handler]
|
||||
[frontend.state :as state]
|
||||
[clojure.string :as string]
|
||||
[frontend.db :as db]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.mixins :as mixins]
|
||||
[goog.dom :as gdom]
|
||||
[goog.object :as gobj]))
|
||||
|
||||
@@ -18,10 +18,8 @@
|
||||
[cljs.pprint :as pprint]
|
||||
[frontend.handler.notification :as notification]
|
||||
[frontend.components.editor :as editor]
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.context.i18n :as i18n]
|
||||
[frontend.text :as text]
|
||||
[frontend.security :as security]))
|
||||
[frontend.text :as text]))
|
||||
|
||||
(defn- set-format-js-loading!
|
||||
[format value]
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.date :as date]
|
||||
[frontend.state :as state]
|
||||
[frontend.mixins :as mixins]
|
||||
[frontend.handler.repeated :as repeated]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[cljs-time.core :as t]
|
||||
|
||||
@@ -3,14 +3,12 @@
|
||||
[goog.object :as gobj]
|
||||
[frontend.rum :as r]
|
||||
[frontend.util :as util :refer-macros [profile]]
|
||||
[frontend.fs :as fs]
|
||||
[frontend.mixins :as mixins]
|
||||
[frontend.storage :as storage]
|
||||
[frontend.components.svg :as svg]
|
||||
[cljs-bean.core :as bean]
|
||||
[dommy.core :as d]
|
||||
[clojure.string :as string]
|
||||
[frontend.date :as date]
|
||||
[frontend.handler.notification :as notification]
|
||||
[frontend.handler.draw :as draw :refer
|
||||
[*files
|
||||
|
||||
@@ -3,20 +3,16 @@
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.config :as config]
|
||||
[frontend.handler.editor :as editor-handler :refer [get-state]]
|
||||
[frontend.handler.image :as image-handler]
|
||||
[frontend.util :as util :refer-macros [profile]]
|
||||
[frontend.handler.file :as file]
|
||||
[frontend.handler.page :as page-handler]
|
||||
[frontend.components.datetime :as datetime-comp]
|
||||
[promesa.core :as p]
|
||||
[frontend.date :as date]
|
||||
[frontend.state :as state]
|
||||
[frontend.mixins :as mixins]
|
||||
[frontend.image :as image]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.db :as db]
|
||||
[frontend.config :as config]
|
||||
[frontend.utf8 :as utf8]
|
||||
[dommy.core :as d]
|
||||
[goog.object :as gobj]
|
||||
[goog.dom :as gdom]
|
||||
@@ -29,12 +25,8 @@
|
||||
*angle-bracket-caret-pos
|
||||
*matched-block-commands
|
||||
*show-block-commands]]
|
||||
[frontend.format.block :as block]
|
||||
[medley.core :as medley]
|
||||
[cljs-time.core :as t]
|
||||
[cljs-time.coerce :as tc]
|
||||
[cljs-drag-n-drop.core :as dnd]
|
||||
[frontend.search :as search]
|
||||
[frontend.text :as text]
|
||||
["/frontend/utils" :as utils]))
|
||||
|
||||
|
||||
@@ -2,23 +2,15 @@
|
||||
(:require [rum.core :as rum]
|
||||
[frontend.util :as util]
|
||||
[frontend.handler.project :as project]
|
||||
[frontend.handler.ui :as ui-handler]
|
||||
[frontend.handler.image :as image-handler]
|
||||
[frontend.handler.file :as file]
|
||||
[frontend.handler.export :as export-handler]
|
||||
[frontend.handler.page :as page-handler]
|
||||
[frontend.config :as config]
|
||||
[frontend.state :as state]
|
||||
[clojure.string :as string]
|
||||
[frontend.db :as db]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.format :as format]
|
||||
[frontend.format.mldoc :as mldoc]
|
||||
[frontend.components.content :as content]
|
||||
[frontend.components.lazy-editor :as lazy-editor]
|
||||
[frontend.config :as config]
|
||||
[frontend.utf8 :as utf8]
|
||||
[goog.dom :as gdom]
|
||||
[goog.object :as gobj]
|
||||
[frontend.date :as date]
|
||||
[cljs-time.coerce :as tc]
|
||||
|
||||
@@ -4,22 +4,18 @@
|
||||
[frontend.date :as date]
|
||||
[frontend.db-mixins :as db-mixins]
|
||||
[frontend.handler.notification :as notification]
|
||||
[frontend.handler.repo :as repo-handler]
|
||||
[frontend.handler.page :as page-handler]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[frontend.handler.ui :as ui-handler]
|
||||
[frontend.db :as db]
|
||||
[frontend.state :as state]
|
||||
[clojure.string :as string]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.format :as format]
|
||||
[frontend.components.content :as content]
|
||||
[frontend.components.block :as block]
|
||||
[frontend.components.editor :as editor]
|
||||
[frontend.components.reference :as reference]
|
||||
[frontend.components.page :as page]
|
||||
[frontend.components.onboarding :as onboarding]
|
||||
[frontend.utf8 :as utf8]
|
||||
[goog.object :as gobj]
|
||||
[clojure.string :as string]))
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
(ns frontend.components.page
|
||||
(:require [rum.core :as rum]
|
||||
[medley.core :as medley]
|
||||
[frontend.util :as util :refer-macros [profile]]
|
||||
[frontend.handler.file :as file]
|
||||
[frontend.handler.page :as page-handler]
|
||||
@@ -8,7 +7,6 @@
|
||||
[frontend.handler.route :as route-handler]
|
||||
[frontend.handler.notification :as notification]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[frontend.handler.export :as export-handler]
|
||||
[frontend.state :as state]
|
||||
[clojure.string :as string]
|
||||
[frontend.db :as db]
|
||||
@@ -19,7 +17,6 @@
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.extensions.graph-2d :as graph-2d]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.format :as format]
|
||||
[frontend.components.content :as content]
|
||||
[frontend.components.project :as project]
|
||||
[frontend.config :as config]
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
(ns frontend.components.project
|
||||
(:require [rum.core :as rum]
|
||||
[frontend.util :as util :refer-macros [profile]]
|
||||
[frontend.handler.project :as project-handler]
|
||||
[frontend.state :as state]
|
||||
[clojure.string :as string]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.mixins :as mixins]
|
||||
[goog.dom :as gdom]
|
||||
[goog.object :as gobj]))
|
||||
[frontend.handler.project :as project-handler]))
|
||||
|
||||
(rum/defcs add-project <
|
||||
(rum/local "" ::project)
|
||||
|
||||
@@ -6,15 +6,10 @@
|
||||
[frontend.db :as db]
|
||||
[frontend.components.block :as block]
|
||||
[frontend.ui :as ui]
|
||||
[frontend.format :as format]
|
||||
[frontend.components.content :as content]
|
||||
[frontend.config :as config]
|
||||
[frontend.date :as date]
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.components.editor :as editor]
|
||||
[frontend.handler.page :as page-handler]
|
||||
[frontend.db-mixins :as db-mixins]
|
||||
[clojure.set :as set]
|
||||
[clojure.string :as string]))
|
||||
|
||||
(rum/defc references < rum/reactive db-mixins/query
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
[frontend.extensions.graph-2d :as graph-2d]
|
||||
[frontend.components.onboarding :as onboarding]
|
||||
[frontend.handler.route :as route-handler]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[frontend.handler.page :as page-handler]
|
||||
[frontend.state :as state]
|
||||
[frontend.db :as db]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
(:require [rum.core :as rum]
|
||||
[frontend.util :as util]
|
||||
[frontend.handler.route :as route]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[frontend.handler.page :as page-handler]
|
||||
[frontend.db :as db]
|
||||
[frontend.handler.search :as search-handler]
|
||||
@@ -12,8 +11,6 @@
|
||||
[frontend.config :as config]
|
||||
[frontend.search :as search]
|
||||
[clojure.string :as string]
|
||||
[goog.crypt.base64 :as b64]
|
||||
[goog.object :as gobj]
|
||||
[goog.dom :as gdom]
|
||||
[frontend.context.i18n :as i18n]))
|
||||
|
||||
|
||||
@@ -10,19 +10,14 @@
|
||||
[frontend.components.page :as page]
|
||||
[frontend.components.settings :as settings]
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.components.project :as project]
|
||||
[frontend.components.repo :as repo]
|
||||
[frontend.components.commit :as commit]
|
||||
[frontend.components.right-sidebar :as right-sidebar]
|
||||
[frontend.storage :as storage]
|
||||
[goog.crypt.base64 :as b64]
|
||||
[frontend.util :as util]
|
||||
[frontend.state :as state]
|
||||
[frontend.handler.notification :as notification]
|
||||
[frontend.handler.ui :as ui-handler]
|
||||
[frontend.handler.user :as user-handler]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[frontend.handler.repo :as repo-handler]
|
||||
[frontend.handler.route :as route-handler]
|
||||
[frontend.handler.export :as export]
|
||||
[frontend.config :as config]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
(:require [rum.core :as rum]
|
||||
[frontend.util :as util]
|
||||
[frontend.handler.user :as user-handler]
|
||||
[frontend.handler.git :as git-handler]
|
||||
[frontend.handler.repo :as repo-handler]
|
||||
[frontend.handler.route :as route-handler]
|
||||
[frontend.handler.export :as export-handler]
|
||||
@@ -13,9 +12,7 @@
|
||||
[frontend.ui :as ui]
|
||||
[frontend.db :as db]
|
||||
[frontend.version :as version]
|
||||
[frontend.components.svg :as svg]
|
||||
[frontend.components.commit :as commit]
|
||||
[clojure.set :as set]
|
||||
[frontend.context.i18n :as i18n]
|
||||
[reitit.frontend.easy :as rfe]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user