chore: disable raw file editing mode temporally

pull/1735/head
Tienson Qin 2021-04-30 20:37:59 +08:00
parent 7de23f1397
commit 736129eb33
3 changed files with 15 additions and 15 deletions

View File

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

View File

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

View File

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