Merge remote-tracking branch 'origin/master' into refactor/common.css

# Conflicts:
#	resources/css/common.css
This commit is contained in:
charlie
2020-12-15 12:03:50 +08:00
4 changed files with 10 additions and 15 deletions

View File

@@ -429,7 +429,7 @@
(svg/logo false)]
(files)
(when loading?
[:span.lds-dual-ring.ml-3])]]
svg/loading)]]
(ui/notification)
(when current-repo
@@ -486,8 +486,7 @@
"draw-with-no-file"))
"draw-with-no-file")]
(rum/with-key (draw-inner option) key)))
[:div.center
[:span.lds-dual-ring.ml-3]])))
[:div.center svg/loading])))
(rum/defc draw < rum/reactive
[option]

View File

@@ -345,10 +345,9 @@
(when-let [uploading? (util/react editor-handler/*image-uploading?)]
(let [processing (util/react editor-handler/*image-uploading-process)]
(transition-cp
[:div.flex.flex-row.align-center.rounded-md.shadow-sm.bg-base-2.pl-1.pr-1
[:span.lds-dual-ring.mr-2]
[:span {:style {:margin-top 2}}
(util/format "Uploading %s%" (util/format "%2d" processing))]]
[:div.flex.flex-row.align-center.rounded-md.shadow-sm.bg-base-2.px-1.py-1
(ui/loading
(util/format "Uploading %s%" (util/format "%2d" processing)))]
false
*slash-caret-pos)))])

View File

@@ -107,8 +107,7 @@
;; db-persisted? (state/sub [:db/persisted? repo])
editing? (seq (state/sub :editor/editing?))]
[:div.flex-row.flex.items-center.cp__repo-indicator
(when pushing?
[:span.lds-dual-ring.mt-1])
(when pushing? svg/loading)
(ui/dropdown
(fn [{:keys [toggle-fn]}]
[:div.cursor.w-2.h-2.sync-status.mr-2
@@ -139,7 +138,7 @@
[:p (t :git/push-failed)]
(and should-push? (seq changed-files))
[:div.changes
[:ul.overflow-y-scroll {:style {:max-height 250}}
[:ul.overflow-y-auto {:style {:max-height 250}}
(for [file changed-files]
[:li {:key (str "sync-" file)}
[:div.flex.flex-row.justify-between.align-items
@@ -155,8 +154,7 @@
[:div.flex.flex-row.justify-between.align-items.mt-2
(ui/button (t :git/push)
:on-click (fn [] (state/set-modal! commit/add-commit-message)))
(if pushing?
[:span.lds-dual-ring.mt-1])]]
(if pushing? svg/loading)]]
[:hr]
[:div
(when-not (string/blank? last-pulled-at)
@@ -165,8 +163,7 @@
[:div.flex.flex-row.justify-between.align-items
(ui/button (t :git/pull)
:on-click (fn [] (repo-handler/pull-current-repo)))
(if pulling?
[:span.lds-dual-ring.mt-1])]
(if pulling? svg/loading)]
[:a.mt-5.text-sm.opacity-50.block
{:on-click (fn []
(export-handler/export-repo-as-zip! repo))}

View File

@@ -82,7 +82,7 @@
(let [handles (map (fn [[path handle]]
(let [handle-path (str config/local-handle-prefix path)]
[handle-path handle]))
handles)]
handles)]
(doseq [[path handle] handles]
(fs/add-nfs-file-handle! path handle))
(set-files-aux! handles)))