Преглед изворни кода

enhance: add github deprecation warning

Tienson Qin пре 4 година
родитељ
комит
fc8554a891
2 измењених фајлова са 19 додато и 0 уклоњено
  1. 2 0
      src/main/frontend/components/sidebar.cljs
  2. 17 0
      src/main/frontend/components/widgets.cljs

+ 2 - 0
src/main/frontend/components/sidebar.cljs

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

+ 17 - 0
src/main/frontend/components/widgets.cljs

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