mirror of https://github.com/logseq/logseq
enhance: add github deprecation warning
parent
a80b3d1c68
commit
fc8554a891
|
@ -339,6 +339,8 @@
|
|||
(contains? #{:all-files :all-pages :my-publishing} route-name))}
|
||||
(widgets/demo-graph-alert)
|
||||
|
||||
(widgets/github-integration-soon-deprecated-alert)
|
||||
|
||||
(cond
|
||||
(not indexeddb-support?)
|
||||
nil
|
||||
|
|
|
@ -141,3 +141,20 @@
|
|||
(ui/admonition
|
||||
:warning
|
||||
[:p "This is a demo graph, changes will not be saved until you open a local folder."])))
|
||||
|
||||
(rum/defc github-integration-soon-deprecated-alert
|
||||
[]
|
||||
(when-let [repo (state/get-current-repo)]
|
||||
(when (string/starts-with? repo "https://github.com")
|
||||
[:div.github-alert
|
||||
(ui/admonition
|
||||
:warning
|
||||
[:p "We're going to deprecate the GitHub integration when the mobile app is out, you can switch to the latest "
|
||||
[:a {:href "https://github.com/logseq/logseq/releases"
|
||||
:target "_blank"}
|
||||
"desktop app"]
|
||||
[:span ", see more details at "]
|
||||
[:a {:href "https://discord.com/channels/725182569297215569/735735090784632913/861656585578086400"
|
||||
:target "_blank"}
|
||||
"here"]
|
||||
[:span "."]])])))
|
||||
|
|
Loading…
Reference in New Issue