aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau/subs.cljs
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-26 22:02:33 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-26 22:02:33 +0100
commitb5404ac06a3a09d83bef66552083254fdff12196 (patch)
tree02785ab11a3dcf328e8d1375a7b76abb2edbf382 /src/frontend/tau/subs.cljs
parentdce9e36b352509665887ea1ca2e6f81904038a11 (diff)
feat(frontend): Modularize components and add pagination
Diffstat (limited to 'src/frontend/tau/subs.cljs')
-rw-r--r--src/frontend/tau/subs.cljs35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/frontend/tau/subs.cljs b/src/frontend/tau/subs.cljs
index 53d6ff9..35c6fad 100644
--- a/src/frontend/tau/subs.cljs
+++ b/src/frontend/tau/subs.cljs
@@ -13,6 +13,11 @@
(:stream db)))
(rf/reg-sub
+ :channel
+ (fn [db _]
+ (:channel db)))
+
+(rf/reg-sub
:global-search
(fn [db _]
(:global-search db)))
@@ -23,16 +28,36 @@
(:service-id db)))
(rf/reg-sub
+ :service-color
+ (fn [db _]
+ (:service-color db)))
+
+(rf/reg-sub
:services
(fn [db _]
(:services db)))
(rf/reg-sub
+ :kiosks
+ (fn [db _]
+ (:kiosks db)))
+
+(rf/reg-sub
+ :kiosk
+ (fn [db _]
+ (:kiosk db)))
+
+(rf/reg-sub
:current-match
(fn [db _]
(:current-match db)))
(rf/reg-sub
+ :page-scroll
+ (fn [db _]
+ (:page-scroll db)))
+
+(rf/reg-sub
:global-stream
(fn [db _]
(:global-stream db)))
@@ -41,3 +66,13 @@
:show-global-player
(fn [db _]
(:show-global-player db)))
+
+(rf/reg-sub
+ :show-page-loading
+ (fn [db _]
+ (:show-page-loading db)))
+
+(rf/reg-sub
+ :show-pagination-loading
+ (fn [db _]
+ (:show-pagination-loading db)))