refactor: make journal-day page's uuid like this

00000001-2024-0620-0000-000000000000
This commit is contained in:
rcmerci
2024-06-20 16:55:09 +08:00
parent 62a2564f4d
commit dc785a92a7
5 changed files with 51 additions and 32 deletions

View File

@@ -2,13 +2,13 @@
(:require [cljs-time.coerce :as tc]
[cljs-time.core :as t]
[clojure.string :as string]
[datascript.core :as d]
[frontend.components.lazy-editor :as lazy-editor]
[frontend.components.svg :as svg]
[frontend.config :as config]
[frontend.context.i18n :refer [t]]
[frontend.date :as date]
[frontend.db :as db]
[frontend.db.async :as db-async]
[frontend.fs :as fs]
[frontend.state :as state]
[frontend.ui :as ui]
@@ -16,12 +16,12 @@
[goog.object :as gobj]
[goog.string :as gstring]
[logseq.common.config :as common-config]
[logseq.common.path :as path]
[logseq.common.util :as common-util]
[logseq.common.uuid :as common-uuid]
[promesa.core :as p]
[reitit.frontend.easy :as rfe]
[rum.core :as rum]
[logseq.common.path :as path]
[frontend.db.async :as db-async]))
[rum.core :as rum]))
(defn- get-path
[state]
@@ -115,7 +115,7 @@
:else
path)
random-id (str (d/squuid))
random-id (str (common-uuid/gen-uuid))
content (rum/react (::file-content state))]
[:div.file {:id (str "file-edit-wrapper-" random-id)
:key path}