chore: DB version for browser support (#10016)

- impl storage
- still not working: refreshing, init code
This commit is contained in:
Andelf
2023-08-15 21:07:31 +08:00
committed by GitHub
parent 4e95339c11
commit 7cf2d5d387
22 changed files with 1381 additions and 9 deletions

View File

@@ -1056,7 +1056,9 @@
(plugin-handler/hook-plugin-app :today-journal-created {:title today-page}))]
(when (db/page-empty? repo today-page)
(if (config/db-based-graph? repo)
(create-f)
(let [page-exists (db/get-page today-page)]
(when-not page-exists
(create-f)))
(p/let [file-name (date/journal-title->default title)
file-rpath (str (config/get-journals-directory) "/" file-name "."
(config/get-file-extension format))