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:
parent
cdf3785f82
commit
47c37e198c
20 changed files with 24 additions and 9 deletions
|
|
@ -1,37 +0,0 @@
|
|||
(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)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue