1
0
Эх сурвалжийг харах

chore: disable raw file editing mode temporally

Tienson Qin 4 жил өмнө
parent
commit
736129eb33

+ 13 - 13
src/main/frontend/components/page.cljs

@@ -385,19 +385,19 @@
                    page-name
                    path-page-name))]])
             [:div
-             [:div.content
-              (when (and file-path
-                         (not sidebar?)
-                         (not block?)
-                         (not (state/hide-file?))
-                         (not config/publishing?))
-                [:div.text-sm.ml-1.mb-4.flex-1.inline-flex
-                 {:key "page-file"}
-                 [:span.opacity-50 {:style {:margin-top 2}} (t :file/file)]
-                 [:a.bg-base-2.px-1.ml-1.mr-3 {:style {:border-radius 4
-                                                       :word-break    "break-word"}
-                                               :href  (rfe/href :file {:path file-path})}
-                  file-path]])]
+             ;; [:div.content
+             ;;  (when (and file-path
+             ;;             (not sidebar?)
+             ;;             (not block?)
+             ;;             (not (state/hide-file?))
+             ;;             (not config/publishing?))
+             ;;    [:div.text-sm.ml-1.mb-4.flex-1.inline-flex
+             ;;     {:key "page-file"}
+             ;;     [:span.opacity-50 {:style {:margin-top 2}} (t :file/file)]
+             ;;     [:a.bg-base-2.px-1.ml-1.mr-3 {:style {:border-radius 4
+             ;;                                           :word-break    "break-word"}
+             ;;                                   :href  (rfe/href :file {:path file-path})}
+             ;;      file-path]])]
 
              (when (and repo (not block?))
                (let [alias (db/get-page-alias-names repo page-name)]

+ 1 - 1
src/main/frontend/modules/shortcut/binding.cljc

@@ -61,7 +61,7 @@
    :ui/toggle-new-block "t e"
    :ui/show-contents "t c"
    :ui/toggle-wide-mode "t w"
-   :ui/toggle-between-page-and-file "s"
+   ;; :ui/toggle-between-page-and-file "s"
    :ui/fold "tab"
    :ui/un-fold "shift+tab"
    :ui/toggle-brackets "mod+c mod+b"

+ 1 - 1
src/main/frontend/modules/shortcut/handler.cljs

@@ -72,7 +72,7 @@
      :ui/toggle-new-block state/toggle-new-block-shortcut!
      :ui/show-contents ui-handler/toggle-contents!
      :ui/toggle-wide-mode ui-handler/toggle-wide-mode!
-     :ui/toggle-between-page-and-file route-handler/toggle-between-page-and-file!
+     ;; :ui/toggle-between-page-and-file route-handler/toggle-between-page-and-file!
      :ui/fold (editor-handler/on-tab :right)
      :ui/un-fold (editor-handler/on-tab :left)