mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-07 02:33:39 +02:00
Merge feature/search
Squashed commit of the following:
commit 8a19df91f8daa1b791d40cc910947c94355a8d0d
Author: Arne Schlüter <arne@schlueter.is>
Date: Tue Aug 28 16:06:35 2018 +0200
Implement search UI (closes #19)
commit bf661dd25ec9f1d5569df88a8a87f94c1bc1b317
Author: Arne Schlüter <arne@schlueter.is>
Date: Tue Aug 28 11:09:46 2018 +0200
Re-add subscription for single endpoint and move helpers to a different location
This commit is contained in:
parent
d26decb2ff
commit
7653af5dd1
22 changed files with 236 additions and 49 deletions
|
|
@ -1,6 +1,6 @@
|
|||
(ns airsonic-ui.views.audio-player
|
||||
(:require [re-frame.core :refer [subscribe]]
|
||||
[airsonic-ui.utils.helpers :refer [dispatch]]
|
||||
[airsonic-ui.helpers :refer [add-classes dispatch]]
|
||||
[airsonic-ui.events :as events]
|
||||
[airsonic-ui.views.cover :refer [cover]]
|
||||
[airsonic-ui.views.icon :refer [icon]]))
|
||||
|
|
@ -25,12 +25,6 @@
|
|||
[icon icon-glyph]])
|
||||
buttons))])
|
||||
|
||||
(defn- add-classes
|
||||
"Adds one or more classes to a hiccup keyword"
|
||||
[elem & classes]
|
||||
(keyword (apply str (name elem) (->> (filter identity classes)
|
||||
(map #(str "." (name %)))))))
|
||||
|
||||
(defn- toggle-shuffle [playback-mode]
|
||||
(dispatch [::events/set-playback-mode (if (= playback-mode :shuffled)
|
||||
:linear :shuffled)]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue