Browse Source

Remove old logout commented out in #3839

Gabriel Horner 3 years ago
parent
commit
b18c225c02

+ 2 - 11
src/main/frontend/components/header.cljs

@@ -178,19 +178,10 @@
         :options {:href "https://discord.gg/KpN4eHY"
                   :title (t :discord-title)
                   :target "_blank"}
-        :icon (ui/icon "brand-discord")}
-       ;; TODO: Enable when logout is ready
-       ;; (when logged?
-       ;;   {:title (t :sign-out)
-       ;;    :options {:on-click user-handler/sign-out!}
-       ;;    :icon svg/logout-sm})
-       ]
+        :icon (ui/icon "brand-discord")}]
       (concat page-menu-and-hr)
       (remove nil?))
-     {}
-     ;; {:links-footer (when (and (util/electron?) (not logged?))
-     ;;                  [:div.px-2.py-2 (login logged?)])}
-     )))
+     {})))
 
 (rum/defc back-and-forward
   []

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

@@ -82,8 +82,6 @@
 (def folder (hero-icon "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"))
 (def settings-sm [:svg {:viewBox "0 0 20 20", :fill "currentColor", :height "20", :width "20"}
                   [:path {:fill-rule "evenodd", :d "M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z", :clip-rule "evenodd"}]])
-;; (def logout-sm [:svg {:viewBox "0 0 20 20", :fill "currentColor", :height "18", :width "18"}
-;;                 [:path {:fill-rule "evenodd", :d "M3 3a1 1 0 00-1 1v12a1 1 0 102 0V4a1 1 0 00-1-1zm10.293 9.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L14.586 9H7a1 1 0 100 2h7.586l-1.293 1.293z", :clip-rule "evenodd"}]])
 (def trash-sm [:svg {:viewBox "0 0 20 20", :fill "currentColor", :height "16", :width "16"}
                [:path {:fill-rule "evenodd", :d "M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z", :clip-rule "evenodd"}]])
 (def external-link

+ 0 - 12
src/main/frontend/dicts.cljc

@@ -341,7 +341,6 @@
         :join-community "Join the community"
         :sponsor-us "Sponsor Us"
         :discord-title "Our discord group!"
-        :sign-out "Sign out"
         :help-shortcut-title "Click to check shortcuts and other tips"
         :loading "Loading"
         :cloning "Cloning"
@@ -615,7 +614,6 @@
         :join-community "Community"
         :sponsor-us "Sponsern"
         :discord-title "Unsere Discord-Gruppe!"
-        :sign-out "Abmelden"
         :help-shortcut-title "Hier klicken, um Tastenkombinationen und weitere Tipps zu sehen"
         :loading "Laden"
         :cloning "Klonen"
@@ -896,7 +894,6 @@
         :import "Importer"
         :join-community "Rejoindre la communauté"
         :discord-title "Notre groupe Discord !"
-        :sign-out "Se déconnecter"
         :loading "Chargement en cours"
         :cloning "Clonage en cours"
         :parsing-files "Analyse des fichiers"
@@ -1229,7 +1226,6 @@
            :join-community "加入社区"
            :sponsor-us "赞助我们!"
            :discord-title "我们的 Discord 社群!"
-           :sign-out "登出"
            :help-shortcut-title "点此查看快捷方式和更多有用帮助"
            :loading "加载中"
            :cloning "Clone 中"
@@ -1538,7 +1534,6 @@
              :import "導入"
              :join-community "加入社區"
              :discord-title "我們的 Discord 社群!"
-             :sign-out "登出"
              :help-shortcut-title "點此查看快捷方式和更多有用幫助"
              :loading "加載中"
              :cloning "Clone 中"
@@ -1773,7 +1768,6 @@
         :settings "Verstellings"
         :import "Invoer"
         :join-community "Sluit by die gemeenskap aan"
-        :sign-out "Teken af"
         :help-shortcut-title "Kliek op die kortpad en ander wenke"
         :loading "Laai tans"
         :cloning "Kloning"
@@ -2047,7 +2041,6 @@
         :join-community "Unirse a la comunidad"
         :sponsor-us "Hazte patrocinador"
         :discord-title "¡Nuestro grupo de Discord!"
-        :sign-out "Cerrar sesión"
         :help-shortcut-title "Clic para ver atajos y otras sugerencias"
         :loading "Cargando"
         :cloning "Clonando"
@@ -2391,7 +2384,6 @@
            :join-community "Bli med i samfunnet"
            :sponsor-us "Spons oss"
            :discord-title "Vår discord gruppe!"
-           :sign-out "Logg ut"
            :help-shortcut-title "Klikk for å sjekke snarveier og andre tips"
            :loading "Laster"
            :cloning "Kloner"
@@ -2762,7 +2754,6 @@
            :join-community "Junte-se à comunidade"
            :sponsor-us "Seja um patrocinador"
            :discord-title "O nosso grupo de discord!"
-           :sign-out "Sair da sessão"
            :help-shortcut-title "Clique para ver atalhos e outras dicas"
            :loading "Carregando"
            :cloning "Clonando"
@@ -3177,7 +3168,6 @@
            :join-community "Junte-se à comunidade"
            :sponsor-us "Seja um patrocinador"
            :discord-title "O nosso grupo de discord!"
-           :sign-out "Terminar sessão"
            :help-shortcut-title "Clique para ver atalhos e outras dicas"
            :loading "A carregar"
            :cloning "A clonar"
@@ -3562,7 +3552,6 @@
         :join-community "Присоединиться к сообществу"
         :sponsor-us "Стать спонсором"
         :discord-title "Наша группа в Дискорде!"
-        :sign-out "Выйти"
         :help-shortcut-title "Нажмите для просмотра горячих клавиш и других полезностей"
         :loading "Загрузка"
         :cloning "Клонирование"
@@ -3941,7 +3930,6 @@
         :join-community "コミュニティへ参加"
         :sponsor-us "スポンサー求む"
         :discord-title "Discord グループ"
-        :sign-out "サインアウト"
         :help-shortcut-title "クリックしてショートカットと他のTipsを確認"
         :loading "ロード中"
         :cloning "クローン中"