1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-07 02:33:39 +02:00

Move all source files to src folder

This commit is contained in:
Arne Schlüter 2018-05-28 13:24:15 +02:00
commit 47c37e198c
20 changed files with 24 additions and 9 deletions

View file

@ -0,0 +1,37 @@
(ns airsonic-ui.subs
(:require [re-frame.core :as re-frame]))
;; can be used to query the user's credentials
;; TODO: Organize login credentials and server location differently (i.e. together)
(re-frame/reg-sub
::login
(fn [db]
(:login db)))
(re-frame/reg-sub
::server
(fn [db]
(:server db)))
;; current hashbang
(re-frame/reg-sub
::current-route
(fn [db]
(:current-route db)))
;; ---
;; TODO: Make this nice and clean
(re-frame/reg-sub
::current-content
(fn [db]
(-> db :response)))
(re-frame/reg-sub
; returns info on the current song as is (basically the metadata you can read from the file system)
::currently-playing
(fn [db]
(-> db :currently-playing)))