wip: export refactor

1. Move fns to worker
2. Don't rely on :block/file, use db blocks to build page content
This commit is contained in:
Tienson Qin
2024-01-21 18:15:44 +08:00
parent 760a9f8c25
commit e571c571ec
10 changed files with 254 additions and 431 deletions

View File

@@ -57,13 +57,7 @@
(if (or (nil? modified-at) (zero? modified-at))
(t :file/no-data)
(date/get-date-time-string
(t/to-default-time-zone (tc/to-date-time modified-at))))]])
(when-not mobile?
[:td [:a.text-sm
{:on-click (fn [_e]
(export-handler/download-file! file))}
[:span (t :download)]]])]))]])))
(t/to-default-time-zone (tc/to-date-time modified-at))))]])]))]])))
(rum/defc files
[]