Browse Source

Use OPFS storage for file based graphs too

Tienson Qin 2 years ago
parent
commit
d38bba76bf

+ 0 - 1
resources/package.json

@@ -13,7 +13,6 @@
     "electron:make": "electron-forge make",
     "electron:make-macos-arm64": "electron-forge make --platform=darwin --arch=arm64",
     "electron:publish:github": "electron-forge publish",
-    "rebuild:all": "electron-rebuild -v 25.9.3 -f",
     "postinstall": "install-app-deps"
   },
   "config": {

+ 7 - 15
src/main/electron/listener.cljs

@@ -10,13 +10,11 @@
             [frontend.handler.editor :as editor-handler]
             [frontend.handler.file-sync :as file-sync-handler]
             [frontend.handler.notification :as notification]
-            [frontend.handler.repo :as repo-handler]
             [frontend.handler.route :as route-handler]
             [frontend.handler.ui :as ui-handler]
             [frontend.handler.user :as user]
             [frontend.handler.search :as search-handler]
             [frontend.state :as state]
-            [frontend.config :as config]
             [frontend.ui :as ui]
             [logseq.common.path :as path]
             [logseq.graph-parser.util :as gp-util]
@@ -33,19 +31,13 @@
 (defn persist-dbs!
   []
   (when-let [repo (state/get-current-repo)]
-    (let [error-handler (fn [error]
-                          (prn :debug :persist-db-failed :repo repo)
-                          (js/console.error error)
-                          (notification/show! error :error))]
-      (if (config/db-based-graph? repo)
-        (->
-         (p/let [_ (persistent-db/<export-db repo {})]
-           (ipc/ipc "persistent-dbs-saved"))
-         (p/catch error-handler))
-        ;; TODO: Move all file based graphs to use the above persist approach
-        (repo-handler/persist-db! {:before     ui/notify-graph-persist!
-                                   :on-success #(ipc/ipc "persistent-dbs-saved")
-                                   :on-error   error-handler})))))
+    (->
+     (p/let [_ (persistent-db/<export-db repo {})]
+       (ipc/ipc "persistent-dbs-saved"))
+     (p/catch (fn [error]
+                (prn :debug :persist-db-failed :repo repo)
+                (js/console.error error)
+                (notification/show! error :error))))))
 
 
 (defn listen-persistent-dbs!

+ 1 - 47
src/main/frontend/db/listener.cljs

@@ -1,51 +1,9 @@
 (ns frontend.db.listener
   "DB listeners"
   (:require [datascript.core :as d]
-            [frontend.config :as config]
             [frontend.db.conn :as conn]
-            [frontend.db.persist :as db-persist]
             [frontend.db.rtc.db-listener :as rtc-db-listener]
-            [frontend.db.rtc.op-mem-layer :as op-mem-layer]
-            [frontend.db.utils :as db-utils]
-            [frontend.state :as state]
-            [frontend.util :as util]
-            [promesa.core :as p]))
-
-;; persisting DBs between page reloads
-(defn persist! [repo]
-  (when-not (config/db-based-graph? repo)
-    (let [key (conn/datascript-db repo)
-          db (conn/get-db repo)]
-      (when db
-        (let [db-str (if db (db-utils/db->string db) "")]
-          (p/let [_ (db-persist/save-graph! key db-str)]))))))
-
-(defonce persistent-jobs (atom {}))
-
-(defn clear-repo-persistent-job!
-  [repo]
-  (when-let [old-job (get @persistent-jobs repo)]
-    (js/clearTimeout old-job)))
-
-(defn persist-if-idle!
-  [repo]
-  (clear-repo-persistent-job! repo)
-  (when-not (config/db-based-graph? repo)
-    (let [job (js/setTimeout
-              (fn []
-                (if (and (state/input-idle? repo)
-                         (state/db-idle? repo)
-                        ;; It's ok to not persist here since new changes
-                        ;; will be notified when restarting the app.
-                         (not (state/whiteboard-route?)))
-                  (persist! repo)
-                 ;; (state/set-db-persisted! repo true)
-
-                  (persist-if-idle! repo)))
-              3000)]
-     (swap! persistent-jobs assoc repo job))))
-
-;; only save when user's idle
+            [frontend.db.rtc.op-mem-layer :as op-mem-layer]))
 
 (defonce *db-listener (atom nil))
 
@@ -54,10 +12,6 @@
   (d/listen! conn :persistence
              (fn [tx-report]
                (when (not (:new-graph? (:tx-meta tx-report))) ; skip initial txs
-                 (when-not (util/electron?)
-                   (state/set-last-transact-time! repo (util/time-ms))
-                   (persist-if-idle! repo))
-
                  (when-let [db-listener @*db-listener]
                    (db-listener repo tx-report))))))
 

+ 0 - 9
src/main/frontend/db/persist.cljs

@@ -26,15 +26,6 @@
       result)
     (idb/get-item graph-name)))
 
-(defn save-graph!
-  [key value]
-  (if (util/electron?)
-    (do
-      (ipc/ipc "saveGraph" key value)
-      ;; remove cache before 0.5.5
-      (idb/remove-item! key))
-    (idb/set-batch! [{:key key :value value}])))
-
 (defn delete-graph!
   [graph]
   (let [key (db-conn/datascript-db graph)

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

@@ -13,7 +13,6 @@
    [goog.dom :as gdom]
    [logseq.graph-parser.block :as gp-block]
    [frontend.config :as config]
-   [frontend.db.listener :as db-listener]
    [frontend.util.drawer :as drawer]
    [frontend.handler.file-based.property.util :as property-util]
    [frontend.handler.property.util :as pu]
@@ -322,8 +321,7 @@
 (defn mark-last-input-time!
   [repo]
   (when repo
-    (state/set-editor-last-input-time! repo (util/time-ms))
-    (db-listener/clear-repo-persistent-job! repo)))
+    (state/set-editor-last-input-time! repo (util/time-ms))))
 
 (defn- edit-block-aux
   [repo block content block-node text-range {:keys [direction retry-times max-retry-times]

+ 20 - 31
src/main/frontend/handler/events.cljs

@@ -134,7 +134,6 @@
 (defmethod handle :graph/added [[_ repo {:keys [empty-graph?]}]]
   (db/set-key-value repo :ast/version db-schema/ast-version)
   (search-handler/rebuild-indices!)
-  (db-listener/persist! repo)
   (plugin-handler/hook-plugin-app :graph-after-indexed {:repo repo :empty-graph? empty-graph?})
   (when (state/setups-picker?)
     (if empty-graph?
@@ -157,30 +156,26 @@
   ([graph]
    (graph-switch graph false))
   ([graph skip-ios-check?]
-   (if (and (mobile-util/native-ios?) (not skip-ios-check?))
-     (state/pub-event! [:validate-appId graph-switch graph])
-     (do
-       (state/set-current-repo! graph)
-       (page-handler/init-commands!)
+   (let [db-based? (config/db-based-graph? graph)]
+     (if (and (mobile-util/native-ios?) (not skip-ios-check?))
+       (state/pub-event! [:validate-appId graph-switch graph])
+       (do
+         (state/set-current-repo! graph)
+         (page-handler/init-commands!)
        ;; load config
-       (repo-config-handler/restore-repo-config! graph)
-       (when-not (= :draw (state/get-current-route))
-         (route-handler/redirect-to-home!))
-       (srs/update-cards-due-count!)
-       (state/pub-event! [:graph/ready graph])
-       (file-sync-restart!)
-       (when-let [dir-name (and (not (config/db-based-graph? graph)) (config/get-repo-dir graph))]
-         (fs/watch-dir! dir-name))))))
+         (repo-config-handler/restore-repo-config! graph)
+         (when-not (= :draw (state/get-current-route))
+           (route-handler/redirect-to-home!))
+         (srs/update-cards-due-count!)
+         (state/pub-event! [:graph/ready graph])
+         (when-not db-based?
+           (file-sync-restart!))
+         (when-let [dir-name (and (not db-based?) (config/get-repo-dir graph))]
+           (fs/watch-dir! dir-name)))))))
 
 ;; Parameters for the `persist-db` function, to show the notification messages
-(def persist-db-noti-m
-  {:before     #(ui/notify-graph-persist!)
-   :on-error   #(ui/notify-graph-persist-error!)})
-
 (defn- graph-switch-on-persisted
-  "Logic for keeping db sync when switching graphs
-   Only works for electron
-   graph: the target graph to switch to"
+  "graph: the target graph to switch to"
   [graph {:keys [persist?]
           :or {persist? true}}]
   (let [current-repo (state/get-current-repo)]
@@ -188,15 +183,10 @@
      (when persist?
        (when (util/electron?)
          (p/do!
-          (cond
-            (config/db-based-graph? current-repo)
-            (persist-db/<export-db current-repo {})
-
-            (config/local-file-based-graph? current-repo)
-            (repo-handler/persist-db! current-repo persist-db-noti-m)
-
-            :else
-            nil))))
+          (when (or
+                 (config/db-based-graph? current-repo)
+                 (config/local-file-based-graph? current-repo))
+            (persist-db/<export-db current-repo {})))))
      (repo-handler/restore-and-setup-repo! graph)
      (graph-switch graph)
      state/set-state! :sync-graph/init? false)))
@@ -556,7 +546,6 @@
                   (js/console.error e)))
               (state/set-current-repo! current-repo)
               (db-listener/listen-and-persist! current-repo)
-              (db-listener/persist-if-idle! current-repo)
               (repo-config-handler/restore-repo-config! current-repo)
               (when graph-switch-f (graph-switch-f current-repo true))
               (.watch mobile-util/fs-watcher #js {:path current-repo-dir})

+ 0 - 15
src/main/frontend/handler/file_based/events.cljs

@@ -3,7 +3,6 @@
   (:require [clojure.core.async :as async]
             [frontend.context.i18n :refer [t]]
             [frontend.handler.events :as events]
-            [frontend.handler.notification :as notification]
             [frontend.handler.page :as page-handler]
             [frontend.handler.repo :as repo-handler]
             [frontend.handler.web.nfs :as nfs-handler]
@@ -42,17 +41,3 @@
      nfs-handler/rebuild-index!
      #(do (page-handler/create-today-journal!)
           (events/file-sync-restart!)))))
-
-(defmethod events/handle :graph/save [_]
-  (repo-handler/persist-db! (state/get-current-repo)
-                            {:before     #(notification/show!
-                                           (ui/loading (t :graph/save))
-                                           :warning)
-                             :on-success #(do
-                                            (notification/clear-all!)
-                                            (notification/show!
-                                             (t :graph/save-success)
-                                             :success))
-                             :on-error   #(notification/show!
-                                           (t :graph/save-error)
-                                           :error)}))

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

@@ -442,27 +442,6 @@
           (route-handler/redirect-to-home!)
           500))))))
 
-(defn persist-db!
-  ([]
-   (persist-db! {}))
-  ([handlers]
-   (persist-db! (state/get-current-repo) handlers))
-  ([repo {:keys [before on-success on-error]}]
-   (->
-    (p/do!
-     (when before
-       (before))
-     (db-listener/persist! repo)
-     (when on-success
-       (on-success)))
-    (p/catch (fn [error]
-               (js/console.error error)
-               (state/pub-event! [:capture-error
-                                  {:error error
-                                   :payload {:type :db/persist-failed}}])
-               (when on-error
-                 (on-error error)))))))
-
 (defn get-repos
   []
   (p/let [nfs-dbs (db-persist/get-all-graphs)

+ 5 - 4
src/main/frontend/handler/web/nfs.cljs

@@ -21,7 +21,8 @@
             [lambdaisland.glogi :as log]
             [logseq.graph-parser.util :as gp-util]
             [promesa.core :as p]
-            [frontend.db.listener :as db-listener]))
+            [frontend.db.listener :as db-listener]
+            [frontend.persist-db :as persist-db]))
 
 (defn remove-ignore-files
   [files dir-name nfs?]
@@ -148,7 +149,8 @@
                                [:notification/show
                                 {:content (str "This graph already exists in \"" (:root exists-graph) "\"")
                                  :status :warning}])
-                              (p/do! (repo-handler/start-repo-db-if-not-exists! repo)
+                              (p/do! (persist-db/<new repo)
+                                     (repo-handler/start-repo-db-if-not-exists! repo)
                                      (when (config/global-config-enabled?)
                                        (global-config-handler/restore-global-config!))
                                      (repo-handler/load-new-repo-to-db! repo
@@ -157,8 +159,7 @@
                                                                          :file-objs    files})
                                      (state/add-repo! {:url repo :nfs? true})
                                      (state/set-loading-files! repo false)
-                                     (when ok-handler (ok-handler {:url repo}))
-                                     (db-listener/persist-if-idle! repo))))))
+                                     (when ok-handler (ok-handler {:url repo})))))))
                 (p/catch (fn [error]
                            (log/error :nfs/load-files-error repo)
                            (log/error :exception error)))))))

+ 5 - 4
src/main/frontend/idb.cljs

@@ -47,10 +47,11 @@
         (idb-keyval/set new-key value @store)
         (idb-keyval/del old-key @store)))))
 
-(defn set-batch!
-  [items]
-  (when (and (seq items) @store)
-    (idb-keyval/setBatch (clj->js items) @store)))
+(comment
+  (defn set-batch!
+    [items]
+    (when (and (seq items) @store)
+      (idb-keyval/setBatch (clj->js items) @store))))
 
 (defn get-item
   [key]

+ 2 - 4
src/main/frontend/mobile/core.cljs

@@ -12,8 +12,7 @@
             [frontend.state :as state]
             [frontend.util :as util]
             [cljs-bean.core :as bean]
-            [frontend.config :as config]
-            [frontend.handler.repo :as repo-handler]))
+            [frontend.config :as config]))
 
 (def *init-url (atom nil))
 ;; FIXME: `appUrlOpen` are fired twice when receiving a same intent.
@@ -113,8 +112,7 @@
   (when (state/get-current-repo)
     (let [is-active? (.-isActive state)]
       (when-not is-active?
-        (editor-handler/save-current-block!)
-        (repo-handler/persist-db!))
+        (editor-handler/save-current-block!))
       (state/set-mobile-app-state-change is-active?))))
 
 (defn- general-init

+ 1 - 1
src/main/frontend/modules/outliner/pipeline.cljs

@@ -117,7 +117,7 @@
                      (not (:update-tx-ids? tx-meta)))
             (db/transact! repo update-tx-ids {:replace? true
                                               :update-tx-ids? true}))
-          (when (and (config/db-based-graph? repo) (not config/publishing?))
+          (when (not config/publishing?)
             (persist-db/<transact-data repo (:tx-data tx-report) (:tx-meta tx-report))))
 
         (when-not importing?

+ 0 - 5
src/main/frontend/modules/shortcut/config.cljs

@@ -427,9 +427,6 @@
                                              :inactive (not config/db-graph-enabled?)
                                              :binding false}
 
-   :graph/save                              {:fn      #(state/pub-event! [:graph/save])
-                                             :file-graph? true
-                                             :binding []}
 
    :graph/re-index                          {:fn      (fn []
                                                         (p/let [multiple-windows? (ipc/ipc "graphHasMultipleWindows" (state/get-current-repo))]
@@ -674,7 +671,6 @@
           :graph/remove
           :graph/add
           :graph/db-add
-          :graph/save
           :graph/re-index
           :editor/cycle-todo
           :editor/up
@@ -919,7 +915,6 @@
      :graph/open
      :graph/remove
      :graph/add
-     :graph/save
      :graph/re-index
      :sidebar/close-top
      :sidebar/clear

+ 0 - 22
src/main/frontend/state.cljs

@@ -161,9 +161,6 @@
       :editor/create-page?                   (atom false)
 
       :db/properties-changed-pages           {}
-      :db/last-transact-time                 (atom {})
-      ;; whether database is persisted
-      :db/persisted?                         {}
       :editor/cursor-range                   (atom nil)
 
       :selection/mode                        (atom false)
@@ -1772,25 +1769,6 @@ Similar to re-frame subscriptions"
   [repo time]
   (set-state! :editor/last-input-time time :path-in-sub-atom repo))
 
-
-(defn set-last-transact-time!
-  [repo time]
-  (set-state! :db/last-transact-time time :path-in-sub-atom repo)
-
-  ;; THINK: new block, indent/outdent, drag && drop, etc.
-  (set-editor-last-input-time! repo time))
-
-(defn set-db-persisted!
-  [repo value]
-  (set-state! [:db/persisted? repo] value))
-
-(defn db-idle?
-  [repo]
-  (when repo
-    (when-let [last-time (get (:db/last-transact-time @state) repo)]
-      (let [now (util/time-ms)]
-        (>= (- now last-time) 3000)))))
-
 (defn input-idle?
   [repo & {:keys [diff]
            :or {diff 1000}}]

+ 0 - 12
src/main/frontend/ui.cljs

@@ -764,18 +764,6 @@
      (when-not (string/blank? content)
        [:span.text.pl-2 content])]]))
 
-(defn notify-graph-persist!
-  []
-  (notification/show!
-   (loading (t :graph/persist))
-   :warning))
-
-(defn notify-graph-persist-error!
-  []
-  (notification/show!
-   (t :graph/persist-error)
-   :error))
-
 (rum/defc rotating-arrow
   [collapsed?]
   [:span

+ 1 - 7
src/main/logseq/api.cljs

@@ -887,13 +887,7 @@
 (defn ^:export download_graph_db
   []
   (when-let [repo (state/get-current-repo)]
-    (when-let [db (db/get-db repo)]
-      (let [db-str   (if db (db/db->string db) "")
-            data-str (str "data:text/edn;charset=utf-8," (js/encodeURIComponent db-str))]
-        (when-let [anchor (gdom/getElement "download")]
-          (.setAttribute anchor "href" data-str)
-          (.setAttribute anchor "download" (str (string/replace repo "/" " ") ".transit"))
-          (.click anchor))))))
+    (export-handler/export-repo-as-sqlite-db! repo)))
 
 (defn ^:export download_graph_pages
   []

+ 0 - 6
src/resources/dicts/de.edn

@@ -178,12 +178,6 @@
 
  :graph/all-graphs "Alle Graphen"
  :graph/local-graphs "Lokale Graphen:"
- :graph/persist "Logseq synchronisiert gerade den internen Status, bitte warten Sie einige Sekunden."
- :graph/persist-error "Synchronisation des internen Status fehlgeschlagen."
- :graph/remote-graphs "Remote-Graphen:"
- :graph/save "Speichern..."
- :graph/save-error "Speichern fehlgeschlagen"
- :graph/save-success "Erfolgreich gespeichert"
 
  :header/go-back "Zurück"
  :header/go-forward "Vorwärts"

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

@@ -489,11 +489,6 @@
  :whiteboards "Whiteboards"
  :new-graph "Add new graph"
  :graph "Graph"
- :graph/persist "Logseq is syncing internal status, please wait for several seconds."
- :graph/persist-error "Internal status sync failed."
- :graph/save "Saving..."
- :graph/save-success "Saved successfully"
- :graph/save-error "Save failed"
  :graph/all-graphs "All graphs"
  :graph/local-graphs "Local graphs:"
  :graph/remote-graphs "Remote graphs:"
@@ -785,7 +780,6 @@
   :graph/remove                   "Remove a graph"
   :graph/add                      "Add a graph"
   :graph/db-add                   "Add a DB graph"
-  :graph/save                     "Save current graph to disk"
   :graph/re-index                 "Re-index current graph"
   :command/run                    "Run git command"
   :go/home                        "Go to home"

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

@@ -345,12 +345,7 @@
  :flashcards/modal-welcome-title                    "¡Hora de crear una tarjeta!"
  :graph/all-graphs                                  "Todos los grafos"
  :graph/local-graphs                                "Grafos locales:"
- :graph/persist                                     "Logseq está sincronizando su estado interno, por favor espere unos segundos."
- :graph/persist-error                               "Falló la sincronización del estado interno."
  :graph/remote-graphs                               "Grafos remotos:"
- :graph/save                                        "Guardando..."
- :graph/save-error                                  "Falló el guardado"
- :graph/save-success                                "Guardado satisfactoriamente"
  :handbook/close                                    "Cerrar"
  :handbook/help-categories                          "Categorías de ayuda"
  :handbook/home                                     "Inicio"

+ 0 - 5
src/resources/dicts/fr.edn

@@ -153,11 +153,6 @@
     :file-rn/suggest-rename "Action requise : "
     :file-rn/unreachable-title "Attention ! La page deviendra {1} sous le format actuel, à moins que vous n'ayez modifié la propriété `title::`"
     :graph/all-graphs "Tous les graphes"
-    :graph/persist "Logseq synchronise son statut local, veuillez patienter quelques secondes."
-    :graph/persist-error "La synchronisation interne a échoué."
-    :graph/save "Enregistrement…"
-    :graph/save-error "Enregistrement échoué"
-    :graph/save-success "Enregistrement réussi"
     :help/forum-community "Forum communautaire"
     :help/shortcut-page-title "Raccourcis clavier"
     :help/start "Démarrage"

+ 0 - 5
src/resources/dicts/id.edn

@@ -474,11 +474,6 @@
  :whiteboards "Papan tulis"
  :new-graph "Tambahkan grafik baru"
  :graph "Grafik"
- :graph/persist "Logseq sedang menyinkronkan status internal, harap tunggu beberapa detik."
- :graph/persist-error "Sinkronisasi status internal gagal."
- :graph/save "Menyimpan..."
- :graph/save-success "Tersimpan dengan sukses"
- :graph/save-error "Gagal menyimpan"
  :graph/all-graphs "Semua grafik"
  :graph/local-graphs "Grafik lokal:"
  :graph/remote-graphs "Grafik jarak jauh:"

+ 0 - 5
src/resources/dicts/it.edn

@@ -125,11 +125,6 @@
  :sync-from-local-changes-detected "Il ricaricamento rileva ed elabora i file modificati sul disco e divergenti dal contenuto effettivo della pagina Logseq. Continuare?"
  :new-graph "Aggiungi nuovo grafo"
  :graph "Grafo"
- :graph/persist "Logseq sta sincronizzando lo stato interno, per favore attendi alcuni secondi."
- :graph/persist-error "Sincronizzazione dello stato interno fallita."
- :graph/save "Salvataggio..."
- :graph/save-success "Salvato con successo"
- :graph/save-error "Salvataggio fallito"
  :export "Esporta"
  :export-graph "Esporta grafo"
  :export-page "Esporta pagina"

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

@@ -485,11 +485,6 @@
  :whiteboards "ホワイトボード"
  :new-graph "新規グラフを追加"
  :graph "グラフ"
- :graph/persist "Logseq の内部状態を同期中です。少々お待ちください。"
- :graph/persist-error "内部状態の同期に失敗しました。"
- :graph/save "保存中..."
- :graph/save-success "保存に成功しました"
- :graph/save-error "保存に失敗しました"
  :graph/all-graphs "全グラフ"
  :graph/local-graphs "ローカルグラフ:"
  :graph/remote-graphs "リモートグラフ:"

+ 0 - 5
src/resources/dicts/ko.edn

@@ -131,11 +131,6 @@
 
  :new-graph "새 그래프"
  :graph "그래프"
- :graph/persist "Logseq가 내부 상태를 동기화 중입니다. 잠시만 기다려주십시오."
- :graph/persist-error "내부 상태 동기화에 실패했습니다."
- :graph/save "저장 중..."
- :graph/save-success "저장 완료"
- :graph/save-error "저장 실패"
  :export "내보내기"
  :export-graph "그래프 내보내기"
  :export-page "페이지 내보내기"

+ 0 - 5
src/resources/dicts/nb-no.edn

@@ -207,11 +207,6 @@
  :save "Lagrer..."
  :settings-of-plugins "Innstillinger for utvidelser"
  :sync-from-local-changes-detected "Oppfrisk oppdager og prosesserer filer på disk som er modifiserte og avviker fra sideinnholdet som vises i Logseq. Fortsett?"
- :graph/persist "Logeq synkroniserer intern status, vennligst vent i flere sekunder."
- :graph/persist-error "Intern status synk feilet"
- :graph/save "Lagrer..."
- :graph/save-error "Lagring feilet"
- :graph/save-success "Lagring vellykket"
  :graph/all-graphs "Alle grafer"
  :page/copy-page-url "Kopier side URL"
  :page/open-backup-directory "Åpne mappe med sidens sikkerhetskopier"

+ 0 - 6
src/resources/dicts/nl.edn

@@ -72,12 +72,6 @@
  :file-sync/graph-deleted "Het huidige remote grafiek is verwijderd"
  :file-sync/other-user-graph "De huidige lokale grafiek is gebonden aan de remote grafiek van de andere gebruiker. Dus kan de synchronisatie niet starten."
 
- :graph/persist "Logseq is de interne status aan het synchroniseren, wacht alstublieft enkele seconden."
- :graph/persist-error "Interne status sync mislukt."
- :graph/save "Opslaan..."
- :graph/save-error "Opslaan mislukt"
- :graph/save-success "Opslaan succesvol"
-
  :help/about "Over Logseq"
  :help/block-reference "Blok referentie"
  :help/bug "Rapporteer een fout"

+ 0 - 5
src/resources/dicts/pl.edn

@@ -133,11 +133,6 @@
 
  :new-graph "Dodaj nowy graf"
  :graph "Graf"
- :graph/persist "Logseq synchronizuje lokalny stan. Proszę poczekać kilka sekund."
- :graph/persist-error "Nieudana synchronizacja lokalnego stanu"
- :graph/save "Zapisuję..."
- :graph/save-success "Zmiany zostały zapisane"
- :graph/save-error "Zapisywanie zakończone niepowodzeniem"
  :port "Port"
  :import "Importuj"
  :export "Eksport"

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

@@ -476,11 +476,6 @@
   :new-page "Nova página:"
   :new-graph "Adicionar novo grafo"
   :graph "Grafo"
-  :graph/persist "O Logseq está sincronizando o status interno, aguarde alguns segundos."
-  :graph/persist-error "Falha na sincronização do status interno."
-  :graph/save "Salvando..."
-  :graph/save-success "Salvo com sucesso"
-  :graph/save-error "Falha ao salvar"
   :graph/all-graphs "Todos os grafos"
   :graph/local-graphs "Grafos locais:"
   :graph/remote-graphs "Grafos remotos:"

+ 0 - 5
src/resources/dicts/pt-pt.edn

@@ -207,11 +207,6 @@
 
  :new-graph "Adicionar novo grafo"
  :graph "Grafo"
- :graph/persist "O Logseq está a sincronizar o seu estado interno, por favor aguarde alguns segundos."
- :graph/persist-error "A sincronização do estado interno falhou."
- :graph/save "A guardar..."
- :graph/save-success "Guardado com sucesso"
- :graph/save-error "Falha ao guardar"
  :graph/all-graphs "Todos os grafos"
  :export "Exportar"
  :export-graph "Exportar grafo"

+ 0 - 5
src/resources/dicts/ru.edn

@@ -342,11 +342,6 @@
  :whiteboards                                          "Интерактивные доски"
  :new-graph                                            "Добавить новый граф"
  :graph                                                "Граф"
- :graph/persist                                        "Logseq синхронизирует внутреннее состояние, пожалуйста, подождите несколько секунд."
- :graph/persist-error                                  "Не удалось выполнить внутреннюю синхронизацию состояния."
- :graph/save                                           "Сохранение..."
- :graph/save-success                                   "Успешно сохранено"
- :graph/save-error                                     "Сохранить не удалось"
  :graph/all-graphs                                     "Все графы"
  :graph/local-graphs                                   "Локальные графы:"
  :graph/remote-graphs                                  "Удаленные(remote) графы:"

+ 0 - 5
src/resources/dicts/sk.edn

@@ -197,11 +197,6 @@
 
  :new-graph                                        "Pridať nový graf"
  :graph                                            "Graf"
- :graph/persist                                    "Logseq synchronizuje interný stav, počkajte prosím niekoľko sekúnd."
- :graph/persist-error                              "Synchronizácia interného stavu zlyhala."
- :graph/save                                       "Ukladá sa..."
- :graph/save-success                               "Úspešne uložené"
- :graph/save-error                                 "Uloženie zlyhalo"
  :graph/all-graphs                                 "Všetky grafy"
  :export-graph                                     "Exportovať graf"
  :export-page                                      "Exportovať stránku"

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

@@ -484,11 +484,6 @@
  :whiteboards "Beyaz tahtalar"
  :new-graph "Yeni graf ekle"
  :graph "Graf"
- :graph/persist "Logseq dahili durumu eşitlenemiyor, lütfen birkaç saniye bekleyin."
- :graph/persist-error "Dahili durum eşitlenemedi."
- :graph/save "Kaydediliyor..."
- :graph/save-success "Başarıyla Kaydedildi"
- :graph/save-error "Kaydedilemedi"
  :graph/all-graphs "Tüm graflar"
  :graph/local-graphs "Yerel graflar:"
  :graph/remote-graphs "Uzak graflar:"

+ 0 - 5
src/resources/dicts/uk.edn

@@ -233,11 +233,6 @@
 
  :new-graph "Додати новий графік"
  :graph "Графік"
- :graph/persist "Logseq синхронізує внутрішінй стан, будь ласка, почекайте кілька секунд."
- :graph/persist-error "Невдала синхронізація внутрішнього стану."
- :graph/save "Збереження..."
- :graph/save-success "Успішно збережено"
- :graph/save-error "Збереження невдале"
  :graph/all-graphs "Всі графіки"
  :export "Експортувати"
  :export-graph "Експортувати графік"

+ 0 - 5
src/resources/dicts/zh-cn.edn

@@ -256,11 +256,6 @@
  :export-markdown "以 Markdown 格式导出"
  :export-opml "以 OPML 格式导出"
  :graph "图谱"
- :graph/persist "打开新窗口前,Logseq正在同步内部状态,请等待片刻。"
- :graph/persist-error "内部状态同步失败。无法打开新窗口。"
- :graph/save "保存中……"
- :graph/save-success "保存成功"
- :graph/save-error "保存失败"
  :graph/all-graphs "所有图谱"
  :all-journals "日记"
  :export "导出"

+ 0 - 5
src/resources/dicts/zh-hant.edn

@@ -206,11 +206,6 @@
 
  :new-graph "新圖表"
  :graph "圖表"
- :graph/persist "Logseq 正在同步網路資料,請稍候。"
- :graph/persist-error "網路同步狀態異常。"
- :graph/save "正在儲存..."
- :graph/save-success "儲存成功。"
- :graph/save-error "儲存失敗。"
  :graph/all-graphs "所有圖表"
  :export "匯出"
  :export-graph "匯出圖表"