enhance: add github deprecation warning

pull/3250/head
Tienson Qin 2021-11-23 17:53:53 +08:00
parent a80b3d1c68
commit fc8554a891
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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 "."]])])))