Skip to content

Commit

Permalink
Remove more unused state
Browse files Browse the repository at this point in the history
  • Loading branch information
logseq-cldwalker committed Jan 28, 2022
1 parent 54420c9 commit ec60aab
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 195 deletions.
2 changes: 2 additions & 0 deletions .carve/ignore
Expand Up @@ -88,6 +88,8 @@ frontend.page/route-view
frontend.publishing/stop
;; Referenced in comment
frontend.state/set-db-persisted!
;; Future use
frontend.storage/get-transit
;; repl fn
frontend.state/remove-watch-state
;; Future use?
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/handler/export.cljs
Expand Up @@ -78,7 +78,7 @@
(db/filter-only-public-pages-and-blocks db))
db-str (db/db->string db)
state (select-keys @state/state
[:ui/theme :ui/cycle-collapse
[:ui/theme
:ui/sidebar-collapsed-blocks
:ui/show-recent?
:config])
Expand Down
12 changes: 2 additions & 10 deletions src/main/frontend/spec.cljs
Expand Up @@ -37,14 +37,6 @@

(s/def :me/repos (s/* :repos/repo))


;; project

(s/def :projects/name string?)
(s/def :projects/repo string?)
(s/def :projects/project (s/keys :req-un [:projects/name :projects/repo]))
(s/def :me/projects (s/* :projects/project))

;; me

(s/def :me/name string?)
Expand All @@ -57,9 +49,9 @@

;; state

(s/def :state/me (s/keys :req-un [:me/name :me/email :me/avatar :me/repos :me/projects :me/preferred_format
(s/def :state/me (s/keys :req-un [:me/name :me/email :me/avatar :me/repos :me/preferred_format
:me/preferred_workflow :me/cors_proxy]))


(comment
(validate :user/repo 1))
(validate :user/repo 1))

0 comments on commit ec60aab

Please sign in to comment.