1
0
Tienson Qin 6 сар өмнө
parent
commit
5923f24f56

+ 6 - 0
deps/db/.carve/ignore

@@ -24,3 +24,9 @@ logseq.db.sqlite.build/create-blocks
 logseq.db.sqlite.export/build-export
 ;; API
 logseq.db.sqlite.export/build-import
+;; API
+logseq.db.frontend.graph/build-graph
+;; API
+logseq.db.frontend.view/get-property-values
+;; API
+logseq.db.frontend.view/get-view-data

+ 1 - 1
deps/db/src/logseq/db/file_based/rules.cljc

@@ -89,5 +89,5 @@
 
    :page-ref
    '[(page-ref ?b ?page-name)
-     [?b :block/refs ?br]
+     [?b :block/path-refs ?br]
      [?br :block/name ?page-name]]})

+ 6 - 5
deps/db/src/logseq/db/frontend/graph.cljs

@@ -19,7 +19,7 @@
 
 (defn- build-nodes
   [dark? current-page page-links tags nodes namespaces]
-  (let [parents (set (map last namespaces))
+  (let [page-parents (set (map last namespaces))
         current-page (or current-page "")
         pages (common-util/distinct-by :db/id nodes)]
     (->>
@@ -45,7 +45,7 @@
                  :size size
                  :color color
                  :block/created-at (:block/created-at p)}
-                 (contains? parents (:db/id p))
+                 (contains? page-parents (:db/id p))
                  (assoc :parent true))))))))
 
                   ;; slow
@@ -93,8 +93,9 @@
           (remove ldb/journal?)
           (not excluded-pages?)
           (remove (fn [p] (true?
-                           (or (:logseq.property/exclude-from-graph-view p)
-                               (get-in p [:block/properties :exclude-from-graph-view]))))))
+                           (if db-based?
+                             (:logseq.property/exclude-from-graph-view p)
+                             (get-in p [:block/properties :exclude-from-graph-view]))))))
         links (concat relation tagged-pages namespaces)
         linked (set (mapcat identity links))
         build-in-pages (->> (if db-based? sqlite-create-graph/built-in-pages-names file-builtins/built-in-pages-names)
@@ -229,7 +230,7 @@
        {:nodes nodes
         :links links}))))
 
-(defn build-graph
+(defn ^:api build-graph
   [db opts]
   (case (:type opts)
     :global (build-global-graph db opts)

+ 2 - 2
deps/db/src/logseq/db/frontend/view.cljs

@@ -378,7 +378,7 @@
                      nil)]
     (get-entities db view feat-type index-attr view-for-id)))
 
-(defn get-property-values
+(defn ^:api get-property-values
   [db property-ident {:keys [view-id query-entity-ids]}]
   (let [property (d/entity db property-ident)
         default-value (:logseq.property/default-value property)
@@ -427,7 +427,7 @@
             values)
       values)))
 
-(defn get-view-data
+(defn ^:api get-view-data
   [db view-id {:keys [journals? _view-for-id view-feature-type input query-entity-ids]
                :as opts}]
   ;; TODO: create a view for journals maybe?

+ 7 - 11
deps/db/test/logseq/db/common/sqlite_test.cljs

@@ -1,12 +1,12 @@
 (ns logseq.db.common.sqlite-test
-  (:require [cljs.test :refer [deftest async use-fixtures is testing]]
-            ["fs" :as fs]
+  (:require ["fs" :as fs]
             ["path" :as node-path]
+            [cljs.test :refer [deftest async use-fixtures is testing]]
+            [clojure.string :as string]
             [datascript.core :as d]
-            [logseq.db.common.sqlite :as sqlite-common-db]
             [logseq.common.util.date-time :as date-time-util]
-            [logseq.db.sqlite.cli :as sqlite-cli]
-            [clojure.string :as string]))
+            [logseq.db.common.sqlite :as sqlite-common-db]
+            [logseq.db.sqlite.cli :as sqlite-cli]))
 
 (use-fixtures
   :each
@@ -66,9 +66,5 @@
           ;; Simulate getting data from sqlite and restoring it for frontend
           {:keys [schema initial-data]} (sqlite-common-db/get-initial-data @conn*)
           conn (sqlite-common-db/restore-initial-data initial-data schema)]
-      (is (= (take 1 blocks)
-             (->> (d/q '[:find (pull ?b [*])
-                         :where [?b :block/created-at]]
-                       @conn)
-                  (map first)))
-          "Journal page is included in initial restore while its block is not"))))
+      (is (nil? (d/entity @conn 100001))
+          "Journal page is not included in initial restore"))))

+ 0 - 1
src/main/frontend/components/objects.cljs

@@ -4,7 +4,6 @@
             [frontend.components.views :as views]
             [frontend.db :as db]
             [frontend.db-mixins :as db-mixins]
-            [frontend.db.model :as db-model]
             [frontend.handler.editor :as editor-handler]
             [frontend.mixins :as mixins]
             [frontend.state :as state]

+ 5 - 5
src/main/frontend/components/page.cljs

@@ -1091,10 +1091,10 @@
   (let [[graph set-graph!] (hooks/use-state nil)]
     (hooks/use-effect!
      (fn []
-       (p/let [result (state/state/<invoke-db-worker :thread-api/build-graph (state/get-current-repo)
-                                      (assoc settings
-                                                                    :type :global
-                                                                    :theme theme))]
+       (p/let [result (state/<invoke-db-worker :thread-api/build-graph (state/get-current-repo)
+                                               (assoc settings
+                                                      :type :global
+                                                      :theme theme))]
          (set-graph! result)))
      [theme settings])
     (when graph
@@ -1149,7 +1149,7 @@
         dark? (= (:theme opts) "dark")]
     (hooks/use-effect!
      (fn []
-       (p/let [result (state/state/<invoke-db-worker :thread-api/build-graph (state/get-current-repo) opts)]
+       (p/let [result (state/<invoke-db-worker :thread-api/build-graph (state/get-current-repo) opts)]
          (set-graph! result)))
      [opts])
     (when (seq (:nodes graph))

+ 0 - 1
src/main/frontend/components/query/builder.cljs

@@ -20,7 +20,6 @@
             [logseq.common.util.page-ref :as page-ref]
             [logseq.db :as ldb]
             [logseq.db.frontend.property :as db-property]
-            [logseq.db.frontend.property.type :as db-property-type]
             [logseq.db.sqlite.util :as sqlite-util]
             [logseq.graph-parser.db :as gp-db]
             [logseq.shui.ui :as shui]

+ 1 - 1
src/main/frontend/components/views.cljs

@@ -891,7 +891,7 @@
                      (set-filters! new-filters))))
      :class "w-24 !h-6 !py-0 border-none focus-visible:ring-0 focus-visible:ring-offset-0"})])
 
-(rum/defc filter-value-select < rum/static
+(rum/defc ^:large-vars/cleanup-todo filter-value-select < rum/static
   [view-entity {:keys [data-fns] :as table} property value operator idx opts]
   (let [type (:logseq.property/type property)
         property-ident (:db/ident property)

+ 1 - 25
src/main/frontend/db/model.cljs

@@ -61,13 +61,6 @@
 
 (def hidden-page? ldb/hidden?)
 
-(defn get-all-tagged-pages
-  [repo]
-  (d/q '[:find ?page ?tag
-         :where
-         [?page :block/tags ?tag]]
-       (conn/get-db repo)))
-
 (defn get-all-pages
   [repo]
   (when-let [db (conn/get-db repo)]
@@ -808,26 +801,9 @@ independent of format as format specific heading characters are stripped"
        (:block/_tags class))
      (remove ldb/hidden?))))
 
-(defn get-property-related-objects
-  [repo property-id]
-  (when-let [property (db-utils/entity repo property-id)]
-    (->> (d/q '[:find [?b ...]
-                :in $ % ?prop
-                :where
-                (has-property-or-default-value? ?b ?prop)]
-              (conn/get-db repo)
-              (rules/extract-rules rules/db-query-dsl-rules [:has-property-or-default-value]
-                                   {:deps rules/rules-dependencies})
-              (:db/ident property))
-         (map #(db-utils/entity repo %))
-         (remove ldb/hidden?))))
-
 (defn get-all-namespace-relation
   [repo]
-  (d/q '[:find ?page ?parent
-         :where
-         [?page :block/namespace ?parent]]
-       (conn/get-db repo)))
+  (ldb/get-all-namespace-relation (conn/get-db repo)))
 
 (defn get-all-namespace-parents
   [repo]

+ 24 - 69
src/main/frontend/handler/block.cljs

@@ -1,30 +1,28 @@
 (ns ^:no-doc frontend.handler.block
-  (:require
-   [clojure.set :as set]
-   [clojure.string :as string]
-   [clojure.walk :as walk]
-   [datascript.impl.entity :as de]
-   [dommy.core :as dom]
-   [frontend.config :as config]
-   [frontend.db :as db]
-   [frontend.db.async :as db-async]
-   [frontend.db.model :as db-model]
-   [frontend.handler.file-based.property.util :as property-util]
-   [frontend.handler.property.util :as pu]
-   [frontend.mobile.haptics :as haptics]
-   [frontend.modules.outliner.op :as outliner-op]
-   [frontend.modules.outliner.ui :as ui-outliner-tx]
-   [frontend.state :as state]
-   [frontend.util :as util]
-   [frontend.util.file-based.drawer :as drawer]
-   [goog.dom :as gdom]
-   [goog.object :as gobj]
-   [logseq.db :as ldb]
-   [logseq.db.sqlite.util :as sqlite-util]
-   [logseq.graph-parser.block :as gp-block]
-   [logseq.outliner.core :as outliner-core]
-   [logseq.outliner.op]
-   [promesa.core :as p]))
+  (:require [clojure.string :as string]
+            [clojure.walk :as walk]
+            [datascript.impl.entity :as de]
+            [dommy.core :as dom]
+            [frontend.config :as config]
+            [frontend.db :as db]
+            [frontend.db.async :as db-async]
+            [frontend.db.model :as db-model]
+            [frontend.handler.file-based.property.util :as property-util]
+            [frontend.handler.property.util :as pu]
+            [frontend.mobile.haptics :as haptics]
+            [frontend.modules.outliner.op :as outliner-op]
+            [frontend.modules.outliner.ui :as ui-outliner-tx]
+            [frontend.state :as state]
+            [frontend.util :as util]
+            [frontend.util.file-based.drawer :as drawer]
+            [goog.dom :as gdom]
+            [goog.object :as gobj]
+            [logseq.db :as ldb]
+            [logseq.db.sqlite.util :as sqlite-util]
+            [logseq.graph-parser.block :as gp-block]
+            [logseq.outliner.core :as outliner-core]
+            [logseq.outliner.op]
+            [promesa.core :as p]))
 
 ;;  Fns
 
@@ -72,49 +70,6 @@
     (when (seq blocks)
       (state/exit-editing-and-set-selected-blocks! blocks))))
 
-(defn get-blocks-refed-pages
-  [aliases [block & children]]
-  (let [children-refs (mapcat :block/refs children)
-        refs (->>
-              (:block/path-refs block)
-              (concat children-refs)
-              (remove #(aliases (:db/id %))))]
-    (keep (fn [ref]
-            (when (:block/name ref)
-              {:db/id (:db/id ref)
-               :block/name (:block/name ref)
-               :block/title (:block/title ref)})) refs)))
-
-(defn filter-blocks
-  [ref-blocks filters]
-  (if (empty? filters)
-    ref-blocks
-    (let [exclude-ids (set (map :db/id (:excluded filters)))
-          include-ids (set (map :db/id (:included filters)))]
-      (cond->> ref-blocks
-        (seq exclude-ids)
-        (remove (fn [block]
-                  (let [ids (set (map :db/id (:block/path-refs block)))]
-                    (seq (set/intersection exclude-ids ids)))))
-
-        (seq include-ids)
-        (filter (fn [block]
-                  (let [ids (set (map :db/id (:block/path-refs block)))]
-                    (set/subset? include-ids ids))))))))
-
-(defn get-filtered-ref-blocks-with-parents
-  [all-ref-blocks filtered-ref-blocks]
-  (when (seq filtered-ref-blocks)
-    (let [id->block (zipmap (map :db/id all-ref-blocks) all-ref-blocks)
-          get-parents (fn [block]
-                        (loop [block block
-                               result [block]]
-                          (let [parent (id->block (:db/id (:block/parent block)))]
-                            (if (and parent (not= (:db/id parent) (:db/id block)))
-                              (recur parent (conj result parent))
-                              result))))]
-      (distinct (mapcat get-parents filtered-ref-blocks)))))
-
 (defn get-idx-of-order-list-block
   [block order-list-type]
   (let [order-block-fn? (fn [block]

+ 0 - 21
src/main/frontend/handler/common.cljs

@@ -3,7 +3,6 @@
   (:require ["ignore" :as Ignore]
             [cljs-bean.core :as bean]
             [cljs.reader :as reader]
-            [frontend.date :as date]
             [frontend.db :as db]
             [frontend.handler.property :as property-handler]
             [frontend.state :as state]
@@ -43,26 +42,6 @@
         (println error-message-or-handler))
       {})))
 
-(defn fix-pages-timestamps
-  [pages]
-  (map (fn [{:block/keys [created-at updated-at journal-day] :as p}]
-         (cond->
-          p
-
-           (nil? created-at)
-           (assoc :block/created-at
-                  (if journal-day
-                    (date/journal-day->utc-ms journal-day)
-                    (util/time-ms)))
-
-           (nil? updated-at)
-           (assoc :block/updated-at
-                  ;; Not exact true
-                  (if journal-day
-                    (date/journal-day->utc-ms journal-day)
-                    (util/time-ms)))))
-       pages))
-
 (defn listen-to-scroll!
   [element]
   (let [*scroll-timer (atom nil)

+ 1 - 3
src/main/frontend/handler/page.cljs

@@ -1,7 +1,6 @@
 (ns frontend.handler.page
   "Provides util handler fns for pages"
-  (:require [cljs.reader :as reader]
-            [clojure.string :as string]
+  (:require [clojure.string :as string]
             [datascript.core :as d]
             [datascript.impl.entity :as de]
             [electron.ipc :as ipc]
@@ -35,7 +34,6 @@
             [frontend.util.url :as url-util]
             [goog.functions :refer [debounce]]
             [goog.object :as gobj]
-            [lambdaisland.glogi :as log]
             [logseq.common.config :as common-config]
             [logseq.common.path :as path]
             [logseq.common.util :as common-util]

+ 0 - 2
src/main/frontend/modules/outliner/tree.cljs

@@ -11,8 +11,6 @@
    (let [db (db/get-db repo)]
      (otree/blocks->vec-tree repo db blocks root-id))))
 
-(def block-entity->map otree/block-entity->map)
-
 (def filter-top-level-blocks otree/filter-top-level-blocks)
 
 (def non-consecutive-blocks->vec-tree otree/non-consecutive-blocks->vec-tree)

+ 0 - 24
src/main/frontend/search.cljs

@@ -2,13 +2,10 @@
   "Provides search functionality for a number of features including Cmd-K
   search. Most of these fns depend on the search protocol"
   (:require [clojure.string :as string]
-            [datascript.core :as d]
             [frontend.common.search-fuzzy :as fuzzy]
             [frontend.config :as config]
             [frontend.db :as db]
             [frontend.db.async :as db-async]
-            [frontend.db.model :as db-model]
-            [frontend.db.utils :as db-utils]
             [frontend.search.agency :as search-agency]
             [frontend.search.protocol :as protocol]
             [frontend.state :as state]
@@ -110,24 +107,3 @@
   [repo]
   (when-let [engine (get-engine repo)]
     (protocol/remove-db! engine)))
-
-(defn get-unlinked-refs
-  "Get matched result from search first, and then filter by worker db"
-  [eid]
-  (when-let [repo (state/get-current-repo)]
-    (p/let [entity (db/entity eid)
-            alias-names (conj (set (map util/safe-page-name-sanity-lc
-                                        (db/get-page-alias-names repo eid)))
-                              (:block/title entity))
-            q (string/join " " alias-names)
-            result (block-search repo q {:limit 100})
-            eids (->> result
-                      (remove :page?)
-                      (remove (fn [b] (= (:block/uuid b) (:block/uuid entity))))
-                      (map (fn [b] [:block/uuid (:block/uuid b)])))
-            result (when (seq eids)
-                     (state/<invoke-db-worker :thread-api/get-page-unlinked-refs repo (:db/id entity) eids))]
-      (when result (d/transact! (db/get-db repo false) result))
-      (some->> result
-               db-model/sort-by-order-recursive
-               db-utils/group-by-page))))

+ 8 - 7
src/main/frontend/state.cljs

@@ -649,13 +649,14 @@ should be done through this fn in order to get global config and config defaults
        value))
    2))
 
-(defn get-linked-references-collapsed-threshold
-  []
-  (or
-   (when-let [value (:ref/linked-references-collapsed-threshold (get-config))]
-     (when (integer? value)
-       value))
-   100))
+(comment
+  (defn get-linked-references-collapsed-threshold
+    []
+    (or
+     (when-let [value (:ref/linked-references-collapsed-threshold (get-config))]
+       (when (integer? value)
+         value))
+     100)))
 
 (defn get-export-bullet-indentation
   []

+ 0 - 8
src/main/frontend/util.cljc

@@ -529,14 +529,6 @@
                            #js {:behavior (if animate? "smooth" "auto")
                                 :block    "center"}))))))
 
-#?(:cljs
-   (defn bottom-reached?
-     [node threshold]
-     (let [full-height (gobj/get node "scrollHeight")
-           scroll-top' (gobj/get node "scrollTop")
-           client-height (gobj/get node "clientHeight")]
-       (<= (- full-height scroll-top' client-height) threshold))))
-
 #?(:cljs
    (defn link?
      [node]

+ 1 - 3
src/resources/dicts/ca.edn

@@ -377,7 +377,6 @@
  :linked-references/filter-heading                  "Filtre"
  :linked-references/filter-includes                 "Incloure: "
  :linked-references/filter-search                   "Cercar a les pàgines vinculades"
- :linked-references/reference-count (fn [filtered-count total] (str (when filtered-count (str filtered-count " de ")) total (if (= total 1) " Referència vinculada" " Referencies vinculades")))
  :notification/clear-all                            "Netejar tot"
  :on-boarding/command-palette-quick-tour            "Tour ràpid per acostumar-se"
  :on-boarding/importing-desc                        "Si estan en format JSON, EDN o Markdown Logseq pot treballar amb ells."
@@ -415,7 +414,7 @@
  :on-boarding/welcome-whiteboard-modal-description  "Les pissarres son una gran eina per fer pluja de idees i organització. Ara pots col·locar qualsevol pensament de la base de coneixement o nou un al costat de l'altre en un llenç especial per connectar-los, associar-los i entendre'ls de noves maneres."
  :on-boarding/welcome-whiteboard-modal-skip         "Ometre"
  :on-boarding/welcome-whiteboard-modal-start        "Començar a utilitzar la pissarra"
- :on-boarding/welcome-whiteboard-modal-title        "Un nou llenç pels teus pensaments." 
+ :on-boarding/welcome-whiteboard-modal-title        "Un nou llenç pels teus pensaments."
  :page/add-to-favorites                             "Afegir a Preferits"
  :page/backlinks                                    "Enllaços per retrocedir"
  :page/copy-page-url                                "Copiar URL de la pàgina"
@@ -620,7 +619,6 @@
  :shortcut.category/whiteboard                      "Pissarra"
  :text/image                                        "Imatge"
  :tips/all-done                                     "¡Tot fet!"
- :unlinked-references/reference-count (fn [total] (str total (if (= total 1) " Referència desvinculada" " Referències desvinculades")))
  :updater/new-version-install                       "S'ha descarregat una nova versió."
  :updater/quit-and-install                          "Reiniciar per instal·lar"
  :whiteboard/add-block-or-page                      "Afegir bloc o pàgina"

+ 0 - 2
src/resources/dicts/cs.edn

@@ -728,8 +728,6 @@
 :linked-references/filter-excludes "Nezahrnuje: "
 :linked-references/filter-heading "Filtruje"
 :linked-references/filter-includes "Zahrnuje: "
-:linked-references/reference-count (fn [filtered-count total] (str (when filtered-count (str filtered-count " z ")) total (if (= total 1) " Propojený odkaz" " Propojené odkazy")))
 :settings-page/git-commit-on-close "Git commit při zavření okna"
 :settings-page/tab-editor "Editor"
-:unlinked-references/reference-count (fn [total] (str total (if (= total 1) " Nepropojený odkaz" " Nepropojené odkazy")))
 :whiteboard/text "Text"}

+ 0 - 14
src/resources/dicts/en.edn

@@ -170,20 +170,6 @@
  :linked-references/filter-directions "Click to include and shift-click to exclude. Click again to remove."
  :linked-references/filter-includes "Includes: "
  :linked-references/filter-excludes "Excludes: "
- :linked-references/reference-count (fn [filtered-count total]
-                                      ;; 1 Linked Reference
-                                      ;; 1 of 1 Linked Reference
-                                      ;; 2 of 5 Linked References
-                                      (str
-                                       (when filtered-count
-                                         (str filtered-count " of "))
-                                       total
-                                       (if (= total 1) " Linked Reference" " Linked References")))
- :unlinked-references/reference-count (fn [total]
-                                        ;; 1 Unlinked Reference
-                                        ;; 5 Unlinked References
-                                        (str total
-                                             (if (= total 1) " Unlinked Reference" " Unlinked References")))
  :editor/block-search "Search for a block"
  :text/image "Image"
  :asset/show-in-folder "Show image in folder"

+ 0 - 2
src/resources/dicts/es.edn

@@ -376,7 +376,6 @@
  :linked-references/filter-heading                  "Filtro"
  :linked-references/filter-includes                 "Incluye: "
  :linked-references/filter-search                   "Buscar en las páginas vinculadas"
- :linked-references/reference-count (fn [filtered-count total] (str (when filtered-count (str filtered-count " de ")) total (if (= total 1) " Referencia vinculada" " Referencias vinculadas")))
  :notification/clear-all                            "Limpiar todo"
  :on-boarding/command-palette-quick-tour            "Tour rápido para acostumbrarse"
  :on-boarding/importing-desc                        "Si están en formato JSON, EDN o Markdown Logseq puede trabajar con ellos."
@@ -619,7 +618,6 @@
  :shortcut.category/whiteboard                      "Pizarra"
  :text/image                                        "Imagen"
  :tips/all-done                                     "¡Todo hecho!"
- :unlinked-references/reference-count (fn [total] (str total (if (= total 1) " Referencia desvinculada" " Referencias desvinculadas")))
  :updater/new-version-install                       "Se descargó una nueva versión."
  :updater/quit-and-install                          "Reiniciar para instalar"
  :whiteboard/add-block-or-page                      "Añadir bloque o página"

+ 0 - 14
src/resources/dicts/fa.edn

@@ -135,20 +135,6 @@
  :linked-references/filter-directions "برای شمول کلیک و برای استثناء کردن، شیفت کلیک کنید. دوباره کلیک کنید تا پاک شود."
  :linked-references/filter-includes "شامل شده‌ها: "
  :linked-references/filter-excludes "استثناء شده‌ها: "
- :linked-references/reference-count (fn [filtered-count total]
-                                      ;; 1 Linked Reference
-                                      ;; 1 of 1 Linked Reference
-                                      ;; 2 of 5 Linked References
-                                      (str
-                                       (when filtered-count
-                                         (str filtered-count " از "))
-                                       total
-                                       (if (= total 1) " ارجاع پیوندی" " ارجاع پیوندی")))
- :unlinked-references/reference-count (fn [total]
-                                        ;; 1 Unlinked Reference
-                                        ;; 5 Unlinked References
-                                        (str total
-                                         (if (= total 1) " ارجاع غیر پیوندی" " ارجاع غیر پیوندی")))
  :editor/block-search "جستجو برای بلوک"
  :text/image "تصویر"
  :asset/show-in-folder "نمایش تصویر در پوشه"

+ 2 - 3
src/resources/dicts/fr.edn

@@ -132,9 +132,8 @@
     :linked-references/filter-excludes "Exclut : "
     :linked-references/filter-heading "Filtrer"
     :linked-references/filter-includes "Inclut : "
-    :linked-references/reference-count (fn [filtered-count total] (str filtered-count (when filtered-count (if (= filtered-count 1) " référence liée" " références liées")) " parmi " total))
     :linked-references/filter-search "Rechercher dans les pages liées"
- :page/add-to-favorites "Ajouter aux Favoris"
+    :page/add-to-favorites "Ajouter aux Favoris"
     :page/backlinks "Rétro-lien"
     :page/copy-page-url "Copier l'URL de la page"
     :page/created-at "Créée le"
@@ -714,4 +713,4 @@
     :settings-page/auto-chmod "Automatiquement changer les permissions du fichier"
     :settings-page/auto-chmod-desc "Désactiver pour permettre l'édition par plusieurs utilisateurs avec les permissions données par l'appartenance au groupe."
     :settings-page/tab-keymap "Raccourcis"
-    :unlinked-references/reference-count  (fn [total] (str total (if (= total 1) " référence non liée" " références non liées")))}
+ }

+ 1 - 2
src/resources/dicts/it.edn

@@ -714,6 +714,5 @@
  :linked-references/filter-excludes "Esclude: "
  :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")))
  :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")))}
+ }

+ 0 - 14
src/resources/dicts/ja.edn

@@ -164,20 +164,6 @@
  :linked-references/filter-directions "クリックすると含むもの、Shiftを押しながらクリックすると含まないものを検索します。もう一度クリックすると取り消します。"
  :linked-references/filter-includes "含む: "
  :linked-references/filter-excludes "含まない: "
- :linked-references/reference-count (fn [filtered-count total]
-                                      ;; 1 Linked Reference
-                                      ;; 1 of 1 Linked Reference
-                                      ;; 2 of 5 Linked References
-                                      (str
-                                       total
-                                       (when filtered-count
-                                         (str "個中" filtered-count))
-                                       "個のリンクによる参照"))
- :unlinked-references/reference-count (fn [total]
-                                        ;; 1 Unlinked Reference
-                                        ;; 5 Unlinked References
-                                        (str total
-                                             "個のリンクでない参照"))
  :editor/block-search "ブロックを検索"
  :text/image "画像"
  :asset/show-in-folder "画像のフォルダを開く"

+ 1 - 2
src/resources/dicts/nb-no.edn

@@ -722,6 +722,5 @@
  :linked-references/filter-excludes "Ekskluderer: "
  :linked-references/filter-heading "Filter"
  :linked-references/filter-includes "Inkluderer: "
- :linked-references/reference-count (fn [filtered-count total] (str (when filtered-count (str filtered-count " av ")) total (if (= total 1) " Lenket Referanse" " Lenkede Referanser")))
  :pdf/auto-open-context-menu "Auto-åpne kontekstmeny for valg"
- :unlinked-references/reference-count (fn [total] (str total (if (= total 1) " Ulenket Referanse" " Ulenkede Referanser")))}
+ }

+ 1 - 15
src/resources/dicts/pl.edn

@@ -494,15 +494,6 @@
  :linked-references/filter-excludes               "Wyklucza: "
  :linked-references/filter-heading                "Filtruj"
  :linked-references/filter-includes               "Uwzględnia: "
- :linked-references/reference-count                (fn [filtered-count total]
-                                                    ;; 1 Linked Reference
-                                                    ;; 1 of 1 Linked Reference
-                                                    ;; 2 of 5 Linked References
-                                                    (str
-                                                        (when filtered-count
-                                                            (str filtered-count " z "))
-                                                        total
-                                                        (if (= total 1) " Powiązana referencja" " Powiązane referencje")))
  :notification/clear-all                          "Wyczyść wszystkie"
  :on-boarding/command-palette-quick-tour          "Szybka prezentacja wprowadzająca"
  :on-boarding/importing-desc                      "Logseq może z nimi pracować jeśli są w formacie JSON, EDN lub Markdown."
@@ -640,11 +631,6 @@
  :shortcut.category/plugins                       "Pluginy"
  :shortcut.category/whiteboard                    "Tablice"
  :tips/all-done                                   "Wszystko zrobione!"
- :unlinked-references/reference-count             (fn [total]
-                                        ;; 1 Unlinked Reference
-                                        ;; 5 Unlinked References
-                                        (str total
-                                         (if (= total 1) " Niepowiązana referencja" " Niepowiązane referencje")))
  :whiteboard/add-block-or-page                    "Dodaj blok lb stronę"
  :whiteboard/align-bottom                         "Wyrównaj do dołu"
  :whiteboard/align-center-horizontally            "Wycentruj w poziomie"
@@ -680,7 +666,7 @@
  :whiteboard/flip-horizontally                    "Odwróć w poziomie"
  :whiteboard/flip-vertically                      "Odwróć w pionie"
  :whiteboard/group                                "Grupuj"
- :whiteboard/highlight                            "Wyróżnij"                            
+ :whiteboard/highlight                            "Wyróżnij"
  :whiteboard/huge                                 "Ogromne"
  :whiteboard/italic                               "Kursywa"
  :whiteboard/large                                "Duże"

+ 0 - 2
src/resources/dicts/pt-br.edn

@@ -722,9 +722,7 @@
  :linked-references/filter-excludes "Excluir: "
  :linked-references/filter-heading "Filtrar"
  :linked-references/filter-includes "Incluir: "
- :linked-references/reference-count (fn [filtered-count total] (str (when filtered-count (str filtered-count " de ")) total (if (= total 1) " Referência Vinculada" " Referências Vinculadas")))
  :settings-page/git-commit-on-close "Commitar mudanças no Git ao fechar a janela"
- :unlinked-references/reference-count (fn [total] (str total (if (= total 1) " Referência Não-Vinculada" " Referências Não-Vinculadas")))
 
  ;; Allowed duplicates - start
  :settings-of-plugins "Plugins"

+ 0 - 14
src/resources/dicts/tr.edn

@@ -164,20 +164,6 @@
  :linked-references/filter-directions "Dahil etmek için tıklayın, hariç tutmak için Shift tuşunu basılı tutarak tıklayın. Kaldırmak için tekrar tıklayın."
  :linked-references/filter-includes "Dahil et: "
  :linked-references/filter-excludes "Hariç tut: "
- :linked-references/reference-count (fn [filtered-count total]
-                                      ;; 1 Linked Reference
-                                      ;; 1 of 1 Linked Reference
-                                      ;; 2 of 5 Linked References
-                                      (str
-                                       (when filtered-count
-                                         (str filtered-count " / "))
-                                       total
-                                       (if (= total 1) " Bağlantılı Referans" " Bağlantılı Referans")))
- :unlinked-references/reference-count (fn [total]
-                                        ;; 1 Unlinked Reference
-                                        ;; 5 Unlinked References
-                                        (str total
-                                         (if (= total 1) " Bağlantısız Referans" " Bağlantısız Referans")))
  :editor/block-search "Blok ara"
  :text/image "Resim"
  :asset/show-in-folder "Resmi klasörde göster"