From b5404ac06a3a09d83bef66552083254fdff12196 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 26 Dec 2022 22:02:33 +0100 Subject: feat(frontend): Modularize components and add pagination --- src/frontend/tau/subs.cljs | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src/frontend/tau/subs.cljs') 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 @@ -12,6 +12,11 @@ (fn [db _] (:stream db))) +(rf/reg-sub + :channel + (fn [db _] + (:channel db))) + (rf/reg-sub :global-search (fn [db _] @@ -22,16 +27,36 @@ (fn [db _] (: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 _] @@ -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))) -- cgit v1.2.3