better func names to differentiate between 2 types of graphs

- local file based
- db based (sqlite for now)
This commit is contained in:
rcmerci
2023-06-14 13:03:08 +08:00
parent 41aea60d94
commit d38afc9b71
18 changed files with 40 additions and 40 deletions

View File

@@ -113,14 +113,14 @@
(and create-title?
(not whiteboard?)
(not (config/db-only? (state/get-current-repo))))
(not (config/db-based-graph? (state/get-current-repo))))
(let [properties-block (default-properties-block (build-title page) format page-entity properties)]
[page
properties-block])
(and (seq properties)
(not whiteboard?)
(not (config/db-only? (state/get-current-repo))))
(not (config/db-based-graph? (state/get-current-repo))))
[page (editor-handler/properties-block properties format page-entity)]
:else
@@ -838,8 +838,8 @@
(not (state/loading-files? repo))
(not (state/whiteboard-route?)))
(state/set-today! (date/today))
(when (or (config/db-only? repo)
(config/local-db? repo)
(when (or (config/db-based-graph? repo)
(config/local-file-based-graph? repo)
(and (= "local" repo) (not (mobile-util/native-platform?))))
(let [title (date/today)
today-page (util/page-name-sanity-lc title)
@@ -854,7 +854,7 @@
(ui-handler/re-render-root!)
(plugin-handler/hook-plugin-app :today-journal-created {:title today-page}))]
(when (db/page-empty? repo today-page)
(if (config/db-only? repo)
(if (config/db-based-graph? repo)
(create-f)
(p/let [file-name (date/journal-title->default title)
file-rpath (str (config/get-journals-directory) "/" file-name "."