瀏覽代碼

Hide new dialog component

Ben Yorke 2 年之前
父節點
當前提交
f0736c8629
共有 1 個文件被更改,包括 70 次插入70 次删除
  1. 70 70
      src/main/frontend/components/header.cljs

+ 70 - 70
src/main/frontend/components/header.cljs

@@ -85,76 +85,76 @@
         page-menu-and-hr (when (seq page-menu)
                            (concat page-menu [{:hr true}]))]
     [:<>
-     (shui/dialog-v1 {:trigger (fn [{:keys [toggle-dialog! dialog]}] 
-                                 [:div.relative
-                                  [:button.button.icon.toolbar-dots-btn
-                                   {:on-click toggle-dialog!
-                                    :title (t :header/more)}
-                                   (ui/icon "dots" {:size ui/icon-size})]
-                                  (dialog)])
-                      :groups [[:<> [:div.pl-3.pb-1.text-xxs.font-semibold.text-gray-11-alpha {:class "pt-0.5"} "General"]
-                                    (shui/list-item-v1 {:text (t :settings) 
-                                                        :compact true
-                                                        :icon "settings" 
-                                                        :icon-theme :gray
-                                                        ; :info "Open settings"
-                                                        :shortcut "cmd+s"
-                                                        :on-click state/open-settings!}
-                                                       (make-shui-context nil nil))
-                                    (shui/list-item-v1 {:text (t :plugins) 
-                                                        :compact true
-                                                        :icon "apps" 
-                                                        :icon-theme :gray
-                                                        :shortcut "g a"
-                                                        :on-click #(plugin-handler/goto-plugins-dashboard!)}
-                                                       (make-shui-context nil nil))
-                                    (shui/list-item-v1 {:text (t :themes) 
-                                                        :compact true
-                                                        :icon "palette" 
-                                                        :icon-theme :gray
-                                                        :shortcut "g p"
-                                                        :on-click #(plugins/open-select-theme!)}
-                                                       (make-shui-context nil nil))]
-                               [:<> [:div.pl-3.pb-1.pt-2.text-xxs.font-semibold.text-gray-11-alpha "Publishing"]
-                                    (shui/list-item-v1 {:text "Publishing settings"
-                                                        :compact true
-                                                        :icon-theme :gray 
-                                                        :icon "bulb"}
-                                                       (make-shui-context nil nil))
-                                    (shui/list-item-v1 {:text "Copy page URL"
-                                                        :compact true
-                                                        :icon-theme :gray 
-                                                        :icon "bulb"}
-                                                       (make-shui-context nil nil))
-                                    (shui/list-item-v1 {:text "Publish"
-                                                        :compact true
-                                                        :header "Last published: 2 days ago"
-                                                        :icon-theme :gray 
-                                                        :icon "bulb"}
-                                                       (make-shui-context nil nil))]
-                               [:<> [:div.pl-3.pb-1.pt-2.text-xxs.font-semibold.text-gray-11-alpha "Graph management"]
-                                    (shui/list-item-v1 {:text (t :export-graph) 
-                                                        :compact true
-                                                        :icon "database-export" 
-                                                        :icon-theme :color
-                                                        :on-click #(state/set-modal! export/export)}
-                                                       (make-shui-context nil nil))
-                                    (shui/list-item-v1 {:text (t :import) 
-                                                        :compact true
-                                                        :icon "file-upload" 
-                                                        :icon-theme :color
-                                                        :on-click #(js/alert "set href")}
-                                                       (make-shui-context nil nil))]
-                               [:<> [:div.pl-3.pb-1.pt-2.text-xxs.font-semibold.text-gray-11-alpha "Account"]
-                                    (shui/list-item-v1 {:text "Logout"
-                                                        :compact true
-                                                        :icon "logout" 
-                                                        ; :shortcut "shift+cmd+x"
-                                                        :icon-theme :gradient
-                                                        :value "[email protected]"
-                                                        :on-click #(user-handler/logout)}
-                                                       (make-shui-context nil nil))]]}
-       (make-shui-context nil nil))
+     #_(shui/dialog-v1 {:trigger (fn [{:keys [toggle-dialog! dialog]}] 
+                                   [:div.relative
+                                    [:button.button.icon.toolbar-dots-btn
+                                     {:on-click toggle-dialog!
+                                      :title (t :header/more)}
+                                     (ui/icon "dots" {:size ui/icon-size})]
+                                    (dialog)])
+                        :groups [[:<> [:div.pl-3.pb-1.text-xxs.font-semibold.text-gray-11-alpha {:class "pt-0.5"} "General"]
+                                      (shui/list-item-v1 {:text (t :settings) 
+                                                          :compact true
+                                                          :icon "settings" 
+                                                          :icon-theme :gray
+                                                          ; :info "Open settings"
+                                                          :shortcut "cmd+s"
+                                                          :on-click state/open-settings!}
+                                                         (make-shui-context nil nil))
+                                      (shui/list-item-v1 {:text (t :plugins) 
+                                                          :compact true
+                                                          :icon "apps" 
+                                                          :icon-theme :gray
+                                                          :shortcut "g a"
+                                                          :on-click #(plugin-handler/goto-plugins-dashboard!)}
+                                                         (make-shui-context nil nil))
+                                      (shui/list-item-v1 {:text (t :themes) 
+                                                          :compact true
+                                                          :icon "palette" 
+                                                          :icon-theme :gray
+                                                          :shortcut "g p"
+                                                          :on-click #(plugins/open-select-theme!)}
+                                                         (make-shui-context nil nil))]
+                                 [:<> [:div.pl-3.pb-1.pt-2.text-xxs.font-semibold.text-gray-11-alpha "Publishing"]
+                                      (shui/list-item-v1 {:text "Publishing settings"
+                                                          :compact true
+                                                          :icon-theme :gray 
+                                                          :icon "bulb"}
+                                                         (make-shui-context nil nil))
+                                      (shui/list-item-v1 {:text "Copy page URL"
+                                                          :compact true
+                                                          :icon-theme :gray 
+                                                          :icon "bulb"}
+                                                         (make-shui-context nil nil))
+                                      (shui/list-item-v1 {:text "Publish"
+                                                          :compact true
+                                                          :header "Last published: 2 days ago"
+                                                          :icon-theme :gray 
+                                                          :icon "bulb"}
+                                                         (make-shui-context nil nil))]
+                                 [:<> [:div.pl-3.pb-1.pt-2.text-xxs.font-semibold.text-gray-11-alpha "Graph management"]
+                                      (shui/list-item-v1 {:text (t :export-graph) 
+                                                          :compact true
+                                                          :icon "database-export" 
+                                                          :icon-theme :color
+                                                          :on-click #(state/set-modal! export/export)}
+                                                         (make-shui-context nil nil))
+                                      (shui/list-item-v1 {:text (t :import) 
+                                                          :compact true
+                                                          :icon "file-upload" 
+                                                          :icon-theme :color
+                                                          :on-click #(js/alert "set href")}
+                                                         (make-shui-context nil nil))]
+                                 [:<> [:div.pl-3.pb-1.pt-2.text-xxs.font-semibold.text-gray-11-alpha "Account"]
+                                      (shui/list-item-v1 {:text "Logout"
+                                                          :compact true
+                                                          :icon "logout" 
+                                                          ; :shortcut "shift+cmd+x"
+                                                          :icon-theme :gradient
+                                                          :value "[email protected]"
+                                                          :on-click #(user-handler/logout)}
+                                                         (make-shui-context nil nil))]]}
+         (make-shui-context nil nil))
      (ui/dropdown-with-links
       (fn [{:keys [toggle-fn]}]
         [:button.button.icon.toolbar-dots-btn