aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/tubo/bg_player/events.cljs10
-rw-r--r--src/frontend/tubo/bg_player/subs.cljs8
-rw-r--r--src/frontend/tubo/bg_player/views.cljs4
-rw-r--r--src/frontend/tubo/bookmarks/events.cljs4
-rw-r--r--src/frontend/tubo/bookmarks/subs.cljs2
-rw-r--r--src/frontend/tubo/channel/views.cljs2
-rw-r--r--src/frontend/tubo/events.cljs4
-rw-r--r--src/frontend/tubo/kiosks/subs.cljs4
-rw-r--r--src/frontend/tubo/kiosks/views.cljs2
-rw-r--r--src/frontend/tubo/layout/views.cljs2
-rw-r--r--src/frontend/tubo/main_player/events.cljs2
-rw-r--r--src/frontend/tubo/main_player/subs.cljs6
-rw-r--r--src/frontend/tubo/modals/subs.cljs2
-rw-r--r--src/frontend/tubo/navigation/subs.cljs4
-rw-r--r--src/frontend/tubo/notifications/events.cljs2
-rw-r--r--src/frontend/tubo/notifications/subs.cljs2
-rw-r--r--src/frontend/tubo/player/subs.cljs12
-rw-r--r--src/frontend/tubo/player/views.cljs2
-rw-r--r--src/frontend/tubo/playlist/subs.cljs2
-rw-r--r--src/frontend/tubo/playlist/views.cljs2
-rw-r--r--src/frontend/tubo/queue/subs.cljs12
-rw-r--r--src/frontend/tubo/search/subs.cljs6
-rw-r--r--src/frontend/tubo/search/views.cljs2
-rw-r--r--src/frontend/tubo/services/subs.cljs12
-rw-r--r--src/frontend/tubo/settings/subs.cljs2
-rw-r--r--src/frontend/tubo/stream/subs.cljs2
-rw-r--r--src/frontend/tubo/subs.cljs8
27 files changed, 61 insertions, 61 deletions
diff --git a/src/frontend/tubo/bg_player/events.cljs b/src/frontend/tubo/bg_player/events.cljs
index 39b12d9..044c687 100644
--- a/src/frontend/tubo/bg_player/events.cljs
+++ b/src/frontend/tubo/bg_player/events.cljs
@@ -25,7 +25,7 @@
:bg-player/start
[(rf/inject-cofx ::inject/sub [:bg-player])
(rf/inject-cofx ::inject/sub [:elapsed-time])]
- (fn [{:keys [db bg-player elapsed-time]} _]
+ (fn [{:keys [db bg-player elapsed-time]}]
{:fx [[:dispatch [:bg-player/set-paused true]]
[:dispatch [:bg-player/seek @elapsed-time]]
[:dispatch [:bg-player/pause false]]
@@ -44,14 +44,14 @@
(rf/reg-event-fx
:bg-player/hide
[(rf/inject-cofx :store)]
- (fn [{:keys [db store]} _]
+ (fn [{:keys [db store]}]
{:db (assoc db :bg-player/show false)
:store (assoc store :bg-player/show false)}))
(rf/reg-event-fx
:bg-player/dispose
[(rf/inject-cofx :store)]
- (fn [{:keys [db store]} _]
+ (fn [{:keys [db store]}]
(let [remove-entries
(fn [elem]
(-> elem
@@ -107,14 +107,14 @@
(rf/reg-event-fx
:bg-player/switch-to-main
[(rf/inject-cofx :store)]
- (fn [{:keys [db]} _]
+ (fn [{:keys [db]}]
{:fx [[:dispatch [:main-player/show true]]]
:db (assoc db :bg-player/show false)
:scroll-to-top nil}))
(rf/reg-event-fx
:bg-player/switch-from-main
- (fn [{:keys [db]} _]
+ (fn [{:keys [db]}]
{:db (assoc db :bg-player/show true)
:fx [[:dispatch [:main-player/show false]]
[:dispatch [:main-player/pause true]]]}))
diff --git a/src/frontend/tubo/bg_player/subs.cljs b/src/frontend/tubo/bg_player/subs.cljs
index 3216391..3ba3262 100644
--- a/src/frontend/tubo/bg_player/subs.cljs
+++ b/src/frontend/tubo/bg_player/subs.cljs
@@ -6,20 +6,20 @@
(rf/reg-sub
:bg-player/ready
- (fn [db _]
+ (fn [db]
(:bg-player/ready db)))
(rf/reg-sub
:bg-player/show
- (fn [db _]
+ (fn [db]
(:bg-player/show db)))
(rf/reg-sub
:bg-player/loading
- (fn [db _]
+ (fn [db]
(:bg-player/loading db)))
(rf/reg-sub
:bg-player
- (fn [_ _]
+ (fn []
!player))
diff --git a/src/frontend/tubo/bg_player/views.cljs b/src/frontend/tubo/bg_player/views.cljs
index 1c5d28a..60cecd3 100644
--- a/src/frontend/tubo/bg_player/views.cljs
+++ b/src/frontend/tubo/bg_player/views.cljs
@@ -111,7 +111,7 @@
:value @!elapsed-time}]))
(defn volume-slider
- [_ _ _ _]
+ []
(let [show-slider? (r/atom nil)]
(fn [player volume-level muted? service-color]
(let [styles (concat ["rotate-[270deg]"]
@@ -265,7 +265,7 @@
[popover stream]]))
(defn audio-player
- [_]
+ []
(let [!elapsed-time @(rf/subscribe [:elapsed-time])
queue-pos @(rf/subscribe [:queue/position])
stream @(rf/subscribe [:queue/current])]
diff --git a/src/frontend/tubo/bookmarks/events.cljs b/src/frontend/tubo/bookmarks/events.cljs
index ba45226..987a744 100644
--- a/src/frontend/tubo/bookmarks/events.cljs
+++ b/src/frontend/tubo/bookmarks/events.cljs
@@ -54,7 +54,7 @@
(rf/reg-event-fx
:bookmarks/clear
- (fn [{:keys [db]} _]
+ (fn [{:keys [db]}]
{:fx (conj (into
(map (fn [bookmark]
[:dispatch [:bookmarks/remove (:id bookmark)]])
@@ -262,7 +262,7 @@
(rf/reg-event-fx
:bookmarks/export
- (fn [{:keys [db]} [_]]
+ (fn [{:keys [db]}]
{:file-download
{:name "playlists.json"
:mime-type "application/json"
diff --git a/src/frontend/tubo/bookmarks/subs.cljs b/src/frontend/tubo/bookmarks/subs.cljs
index be40e5b..6f1215d 100644
--- a/src/frontend/tubo/bookmarks/subs.cljs
+++ b/src/frontend/tubo/bookmarks/subs.cljs
@@ -4,7 +4,7 @@
(rf/reg-sub
:bookmarks
- (fn [db _]
+ (fn [db]
(:bookmarks db)))
(rf/reg-sub
diff --git a/src/frontend/tubo/channel/views.cljs b/src/frontend/tubo/channel/views.cljs
index 58d5f50..0e720ab 100644
--- a/src/frontend/tubo/channel/views.cljs
+++ b/src/frontend/tubo/channel/views.cljs
@@ -38,7 +38,7 @@
[metadata-popover channel]]])
(defn channel
- [_]
+ []
(let [!show-description? (r/atom false)
!layout (r/atom (:items-layout @(rf/subscribe [:settings])))
!active-tab-id (r/atom nil)]
diff --git a/src/frontend/tubo/events.cljs b/src/frontend/tubo/events.cljs
index ca3d864..6365a9b 100644
--- a/src/frontend/tubo/events.cljs
+++ b/src/frontend/tubo/events.cljs
@@ -61,7 +61,7 @@
(rf/reg-fx
:scroll-to-top
- (fn [_]
+ (fn []
(.scrollTo js/window #js {"top" 0 "behavior" "smooth"})))
(rf/reg-fx
@@ -132,7 +132,7 @@
(rf/reg-event-fx
:fetch-homepage
- (fn [_ _]
+ (fn []
{:fx [[:dispatch [:services/fetch-all [:load-homepage] [:bad-response]]]]}))
(rf/reg-event-fx
diff --git a/src/frontend/tubo/kiosks/subs.cljs b/src/frontend/tubo/kiosks/subs.cljs
index 715ab1e..9f93d65 100644
--- a/src/frontend/tubo/kiosks/subs.cljs
+++ b/src/frontend/tubo/kiosks/subs.cljs
@@ -4,10 +4,10 @@
(rf/reg-sub
:kiosks
- (fn [db _]
+ (fn [db]
(:kiosks db)))
(rf/reg-sub
:kiosk
- (fn [db _]
+ (fn [db]
(:kiosk db)))
diff --git a/src/frontend/tubo/kiosks/views.cljs b/src/frontend/tubo/kiosks/views.cljs
index 49497c3..6d8b8f3 100644
--- a/src/frontend/tubo/kiosks/views.cljs
+++ b/src/frontend/tubo/kiosks/views.cljs
@@ -33,7 +33,7 @@
kiosk]])])
(defn kiosk
- [_]
+ []
(let [!layout (r/atom (:items-layout @(rf/subscribe [:settings])))]
(fn [{{:keys [serviceId]} :query-params}]
(let [{:keys [id related-streams next-page]}
diff --git a/src/frontend/tubo/layout/views.cljs b/src/frontend/tubo/layout/views.cljs
index 72988c7..901d9be 100644
--- a/src/frontend/tubo/layout/views.cljs
+++ b/src/frontend/tubo/layout/views.cljs
@@ -224,7 +224,7 @@
(map-indexed #(with-meta %2 {:key %1}) content))])
(defn show-more-container
- [_open? _text _on-open]
+ []
(let [!text-container (atom nil)
!resize-observer (atom nil)
text-clamped? (r/atom nil)]
diff --git a/src/frontend/tubo/main_player/events.cljs b/src/frontend/tubo/main_player/events.cljs
index 8c3c693..19fb83b 100644
--- a/src/frontend/tubo/main_player/events.cljs
+++ b/src/frontend/tubo/main_player/events.cljs
@@ -27,7 +27,7 @@
(rf/reg-event-fx
:main-player/start
[(rf/inject-cofx ::inject/sub [:elapsed-time])]
- (fn [{:keys [db elapsed-time]} _]
+ (fn [{:keys [db elapsed-time]}]
{:fx [[:dispatch [:main-player/pause false]]
(when (and (:main-player/show db) (not (:bg-player/ready db)))
[:dispatch [:main-player/seek @elapsed-time]])]}))
diff --git a/src/frontend/tubo/main_player/subs.cljs b/src/frontend/tubo/main_player/subs.cljs
index eca94db..6aaf814 100644
--- a/src/frontend/tubo/main_player/subs.cljs
+++ b/src/frontend/tubo/main_player/subs.cljs
@@ -6,15 +6,15 @@
(rf/reg-sub
:main-player/ready
- (fn [db _]
+ (fn [db]
(:main-player/ready db)))
(rf/reg-sub
:main-player/show
- (fn [db _]
+ (fn [db]
(:main-player/show db)))
(rf/reg-sub
:main-player
- (fn [_ _]
+ (fn []
!player))
diff --git a/src/frontend/tubo/modals/subs.cljs b/src/frontend/tubo/modals/subs.cljs
index ea43f63..f0947cc 100644
--- a/src/frontend/tubo/modals/subs.cljs
+++ b/src/frontend/tubo/modals/subs.cljs
@@ -4,5 +4,5 @@
(rf/reg-sub
:modals
- (fn [db _]
+ (fn [db]
(:modals db)))
diff --git a/src/frontend/tubo/navigation/subs.cljs b/src/frontend/tubo/navigation/subs.cljs
index fc696fc..fc18823 100644
--- a/src/frontend/tubo/navigation/subs.cljs
+++ b/src/frontend/tubo/navigation/subs.cljs
@@ -4,10 +4,10 @@
(rf/reg-sub
:navigation/show-mobile-menu
- (fn [db _]
+ (fn [db]
(:navigation/show-mobile-menu db)))
(rf/reg-sub
:navigation/current-match
- (fn [db _]
+ (fn [db]
(:navigation/current-match db)))
diff --git a/src/frontend/tubo/notifications/events.cljs b/src/frontend/tubo/notifications/events.cljs
index 120e896..ef3043b 100644
--- a/src/frontend/tubo/notifications/events.cljs
+++ b/src/frontend/tubo/notifications/events.cljs
@@ -30,5 +30,5 @@
(rf/reg-event-db
:notifications/clear
- (fn [db _]
+ (fn [db]
(dissoc db :notifications)))
diff --git a/src/frontend/tubo/notifications/subs.cljs b/src/frontend/tubo/notifications/subs.cljs
index f7c9460..e97a182 100644
--- a/src/frontend/tubo/notifications/subs.cljs
+++ b/src/frontend/tubo/notifications/subs.cljs
@@ -4,5 +4,5 @@
(rf/reg-sub
:notifications
- (fn [db _]
+ (fn [db]
(:notifications db)))
diff --git a/src/frontend/tubo/player/subs.cljs b/src/frontend/tubo/player/subs.cljs
index a4f726d..e193734 100644
--- a/src/frontend/tubo/player/subs.cljs
+++ b/src/frontend/tubo/player/subs.cljs
@@ -7,30 +7,30 @@
(rf/reg-sub
:player/loop
- (fn [db _]
+ (fn [db]
(:player/loop db)))
(rf/reg-sub
:player/shuffled
- (fn [db _]
+ (fn [db]
(:player/shuffled db)))
(rf/reg-sub
:player/paused
- (fn [db _]
+ (fn [db]
(:player/paused db)))
(rf/reg-sub
:player/volume
- (fn [db _]
+ (fn [db]
(:player/volume db)))
(rf/reg-sub
:player/muted
- (fn [db _]
+ (fn [db]
(:player/muted db)))
(rf/reg-sub
:elapsed-time
- (fn [_ _]
+ (fn []
!elapsed-time))
diff --git a/src/frontend/tubo/player/views.cljs b/src/frontend/tubo/player/views.cljs
index 47f6721..2947a0d 100644
--- a/src/frontend/tubo/player/views.cljs
+++ b/src/frontend/tubo/player/views.cljs
@@ -15,7 +15,7 @@
MediaMuteButton)]))
(defn video-player
- [_stream _!player]
+ []
(let [!elapsed-time @(rf/subscribe [:elapsed-time])
!main-player-first? (r/atom true)]
(r/create-class
diff --git a/src/frontend/tubo/playlist/subs.cljs b/src/frontend/tubo/playlist/subs.cljs
index 495e86d..62f9225 100644
--- a/src/frontend/tubo/playlist/subs.cljs
+++ b/src/frontend/tubo/playlist/subs.cljs
@@ -4,5 +4,5 @@
(rf/reg-sub
:playlist
- (fn [db _]
+ (fn [db]
(:playlist db)))
diff --git a/src/frontend/tubo/playlist/views.cljs b/src/frontend/tubo/playlist/views.cljs
index 34bbd03..d5edc7f 100644
--- a/src/frontend/tubo/playlist/views.cljs
+++ b/src/frontend/tubo/playlist/views.cljs
@@ -22,7 +22,7 @@
:tooltip-classes ["right-7" "top-0"]]))
(defn playlist
- [_]
+ []
(let [!layout (r/atom (:items-layout @(rf/subscribe [:settings])))]
(fn [{{:keys [url]} :query-params}]
(let [{:keys [name next-page uploader-name uploader-url related-streams
diff --git a/src/frontend/tubo/queue/subs.cljs b/src/frontend/tubo/queue/subs.cljs
index 5b37de5..4ff83e9 100644
--- a/src/frontend/tubo/queue/subs.cljs
+++ b/src/frontend/tubo/queue/subs.cljs
@@ -4,27 +4,27 @@
(rf/reg-sub
:queue
- (fn [db _]
+ (fn [db]
(:queue db)))
(rf/reg-sub
:queue/unshuffled
- (fn [db _]
+ (fn [db]
(:queue/unshuffled db)))
(rf/reg-sub
:queue/position
- (fn [db _]
+ (fn [db]
(:queue/position db)))
(rf/reg-sub
:queue/show
- (fn [db _]
+ (fn [db]
(:queue/show db)))
(rf/reg-sub
:queue/current
- (fn [_]
+ (fn []
[(rf/subscribe [:queue]) (rf/subscribe [:queue/position])])
- (fn [[queue pos] _]
+ (fn [[queue pos]]
(and (not-empty queue) (< pos (count queue)) (nth queue pos))))
diff --git a/src/frontend/tubo/search/subs.cljs b/src/frontend/tubo/search/subs.cljs
index c64f09e..dd09785 100644
--- a/src/frontend/tubo/search/subs.cljs
+++ b/src/frontend/tubo/search/subs.cljs
@@ -4,15 +4,15 @@
(rf/reg-sub
:search/results
- (fn [db _]
+ (fn [db]
(:search/results db)))
(rf/reg-sub
:search/query
- (fn [db _]
+ (fn [db]
(:search/query db)))
(rf/reg-sub
:search/show-form
- (fn [db _]
+ (fn [db]
(:search/show-form db)))
diff --git a/src/frontend/tubo/search/views.cljs b/src/frontend/tubo/search/views.cljs
index 6abe362..51f5ab6 100644
--- a/src/frontend/tubo/search/views.cljs
+++ b/src/frontend/tubo/search/views.cljs
@@ -6,7 +6,7 @@
[tubo.layout.views :as layout]))
(defn search
- [_]
+ []
(let [!layout (r/atom (:items-layout @(rf/subscribe [:settings])))]
(fn [{{:keys [q serviceId]} :query-params}]
(let [{:keys [items next-page]} @(rf/subscribe [:search/results])
diff --git a/src/frontend/tubo/services/subs.cljs b/src/frontend/tubo/services/subs.cljs
index 84363d0..94738e0 100644
--- a/src/frontend/tubo/services/subs.cljs
+++ b/src/frontend/tubo/services/subs.cljs
@@ -5,24 +5,24 @@
(rf/reg-sub
:service-id
- (fn [db _]
+ (fn [db]
(:service-id db)))
(rf/reg-sub
:service-color
- (fn [_]
+ (fn []
(rf/subscribe [:service-id]))
- (fn [id _]
+ (fn [id]
(and id (utils/get-service-color id))))
(rf/reg-sub
:service-name
- (fn [_]
+ (fn []
(rf/subscribe [:service-id]))
- (fn [id _]
+ (fn [id]
(and id (utils/get-service-name id))))
(rf/reg-sub
:services
- (fn [db _]
+ (fn [db]
(:services db)))
diff --git a/src/frontend/tubo/settings/subs.cljs b/src/frontend/tubo/settings/subs.cljs
index d6aaadf..214d726 100644
--- a/src/frontend/tubo/settings/subs.cljs
+++ b/src/frontend/tubo/settings/subs.cljs
@@ -4,5 +4,5 @@
(rf/reg-sub
:settings
- (fn [db _]
+ (fn [db]
(:settings db)))
diff --git a/src/frontend/tubo/stream/subs.cljs b/src/frontend/tubo/stream/subs.cljs
index d7d549b..c34dc8c 100644
--- a/src/frontend/tubo/stream/subs.cljs
+++ b/src/frontend/tubo/stream/subs.cljs
@@ -4,5 +4,5 @@
(rf/reg-sub
:stream
- (fn [db _]
+ (fn [db]
(:stream db)))
diff --git a/src/frontend/tubo/subs.cljs b/src/frontend/tubo/subs.cljs
index 1a11893..bbd218c 100644
--- a/src/frontend/tubo/subs.cljs
+++ b/src/frontend/tubo/subs.cljs
@@ -32,22 +32,22 @@
(rf/reg-sub
:dark-theme
- (fn [_]
+ (fn []
(rf/subscribe [:settings]))
(fn [{:keys [theme]} _]
(or (and (= theme "auto") (= @!auto-theme "dark")) (= theme "dark"))))
(rf/reg-sub
:page-scroll
- (fn [db _]
+ (fn [db]
(:page-scroll db)))
(rf/reg-sub
:show-page-loading
- (fn [db _]
+ (fn [db]
(:show-page-loading db)))
(rf/reg-sub
:show-pagination-loading
- (fn [db _]
+ (fn [db]
(:show-pagination-loading db)))