mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
refactor: toolchain upgrade (#12517)
* chore(deps): upgrade Clojure version to 1.12.4 across multiple dependency files * chore: bump shadow-cljs to 3.3.6 * chore: bump org.clojure/clojurescript to 1.12.134 * chore(deps): upgrade Clojure version to 1.12.4 in workflow files * chore(deps): upgrade Java version to 21 in workflow files * chore(deps): upgrade Node.js version to 24 in workflow files * chore(deps): upgrade Node.js version to 24 in Dockerfile * feat(updater): migrate electron-forge to electron-builder * fix wrong android app version * fix workflow * feat(dependency-upgrade): add max-update-interval option for dependency audits * chore(deps): upgrade electron-builder and electron-updater * fix: update manual verification instructions for Electron shim cache * chore: update shadow-cljs version to 3.4.4 across all dependencies * chore: upgrade electron version to 41.2.1 * chore: update metosin/malli dependency to latest * chore: upgrade cider-nrepl version to 0.59.0 in dependencies * chore: upgrade clj-kondo version to 2026.04.15 and fix warning * chore: move Electron windows build configuration from yml to ci * chore: update Electron signing configuration to extend from base config * fix: replace icon file for NSIS compatibility * chore: resolve metosin/malli version conflicts * chore: upgrade jdk to 21 in e2e workflow --------- Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
This commit is contained in:
@@ -2137,8 +2137,6 @@
|
||||
item-content (.. target -nextSibling -data)]
|
||||
(editor-handler/toggle-list-checkbox block item-content)))}))
|
||||
|
||||
(declare block-content)
|
||||
|
||||
(declare src-cp)
|
||||
|
||||
(rum/defc ^:large-vars/cleanup-todo text-block-title
|
||||
@@ -3789,8 +3787,6 @@
|
||||
(gp-mldoc/inline->edn title
|
||||
(mldoc/get-default-config :markdown))))
|
||||
|
||||
(declare ->hiccup)
|
||||
|
||||
(defn- get-code-mode-by-lang
|
||||
[lang]
|
||||
(some (fn [m] (when (= (.-name m) lang) (.-mode m))) js/window.CodeMirror.modeInfo))
|
||||
|
||||
@@ -220,7 +220,6 @@
|
||||
|
||||
(rum/defc help-menu-popup
|
||||
[]
|
||||
|
||||
(hooks/use-effect!
|
||||
(fn []
|
||||
(state/set-state! :ui/handbooks-open? false))
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
[cljs-time.core :as t]
|
||||
[clojure.string :as string]
|
||||
[dommy.core :as d]
|
||||
[electron.ipc :as ipc]
|
||||
[frontend.common.missionary :as c.m]
|
||||
[frontend.components.block :as component-block]
|
||||
[frontend.components.export :as export]
|
||||
@@ -35,6 +36,7 @@
|
||||
[logseq.shui.ui :as shui]
|
||||
[logseq.shui.util :as shui-util]
|
||||
[missionary.core :as m]
|
||||
[promesa.core :as p]
|
||||
[reitit.frontend.easy :as rfe]
|
||||
[rum.core :as rum]))
|
||||
|
||||
@@ -244,8 +246,17 @@
|
||||
(let [[downloaded, set-downloaded] (rum/use-state nil)
|
||||
_ (hooks/use-effect!
|
||||
(fn []
|
||||
(when-let [channel (and (util/electron?) "auto-updater-downloaded")]
|
||||
(let [callback (fn [_ args]
|
||||
(when (util/electron?)
|
||||
(-> (ipc/invoke "get-downloaded-update")
|
||||
(p/then
|
||||
(fn [args]
|
||||
(when args
|
||||
(let [args (bean/->clj args)]
|
||||
(set-downloaded args)
|
||||
(state/set-state! :electron/auto-updater-downloaded args)))))
|
||||
(p/catch (fn [_] nil)))
|
||||
(let [channel "auto-updater-downloaded"
|
||||
callback (fn [_ args]
|
||||
(js/console.debug "[new-version downloaded] args:" args)
|
||||
(let [args (bean/->clj args)]
|
||||
(set-downloaded args)
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
(if update-pending? (t :settings-page/checking) (t :settings-page/check-for-updates))
|
||||
:class "text-sm mr-1"
|
||||
:disabled update-pending?
|
||||
:on-click #(js/window.apis.checkForUpdates false))
|
||||
:on-click #(js/window.apis.checkForUpdates true))
|
||||
|
||||
:else
|
||||
nil)]
|
||||
@@ -101,6 +101,9 @@
|
||||
(string/blank? type))
|
||||
[:div.update-state.text-sm
|
||||
(case type
|
||||
"checking-for-update"
|
||||
[:p (t :settings-page/checking)]
|
||||
|
||||
"update-not-available"
|
||||
[:p (t :settings-page/app-updated)]
|
||||
|
||||
@@ -114,6 +117,21 @@
|
||||
(util/stop e))}
|
||||
svg/external-link name " 🎉"]])
|
||||
|
||||
"download-progress"
|
||||
(let [percent (some-> payload :percent js/Math.round)]
|
||||
[:p (str "Downloading update"
|
||||
(when (number? percent)
|
||||
(str " " percent "%"))
|
||||
"...")])
|
||||
|
||||
"update-downloaded"
|
||||
[:div.flex.items-center.gap-2.flex-wrap
|
||||
[:p (t :updater/new-version-install)]
|
||||
(ui/button
|
||||
(t :updater/quit-and-install)
|
||||
:class "text-sm"
|
||||
:on-click #(ipc/ipc :quitAndInstall))]
|
||||
|
||||
"error"
|
||||
[:p (t :settings-page/update-error-1) [:br] (t :settings-page/update-error-2)
|
||||
[:a.link
|
||||
@@ -121,7 +139,9 @@
|
||||
(fn [e]
|
||||
(js/window.apis.openExternal "https://github.com/logseq/logseq/releases")
|
||||
(util/stop e))}
|
||||
svg/external-link " release channel"]])])]))
|
||||
svg/external-link " release channel"]]
|
||||
|
||||
nil)])]))
|
||||
|
||||
(rum/defc outdenting-hint
|
||||
[]
|
||||
|
||||
@@ -1083,8 +1083,6 @@
|
||||
(:db/id page)
|
||||
:page))))))
|
||||
|
||||
(declare save-current-block!)
|
||||
|
||||
;; FIXME: shortcut `mod+.` doesn't work on Web (Chrome)
|
||||
(defn zoom-in! []
|
||||
(if (state/editing?)
|
||||
|
||||
@@ -298,8 +298,6 @@
|
||||
(notification/clear! uid))
|
||||
:icon "x"})]]]]]])))
|
||||
|
||||
(declare button)
|
||||
|
||||
(rum/defc notification-clear-all
|
||||
[]
|
||||
[:div.ui__notifications-content
|
||||
|
||||
@@ -284,8 +284,7 @@
|
||||
[repo]
|
||||
(mark-pending-txs-false! repo (mapv :tx-id (pending-txs repo))))
|
||||
|
||||
(declare replay-canonical-outliner-op!
|
||||
history-action-error-reason)
|
||||
(declare history-action-error-reason)
|
||||
|
||||
(defn- inline-history-action
|
||||
[tx-meta]
|
||||
|
||||
Reference in New Issue
Block a user