mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-07 02:33:39 +02:00
Save login credentials in local storage
Squashed commit of the following: commitb480676cefAuthor: Arne Schlüter <arne@schlueter.is> Date: Wed May 30 18:38:40 2018 +0200 Remember login credentials commited060e55b6Author: Arne Schlüter <arne@schlueter.is> Date: Wed May 30 14:45:11 2018 +0200 Add tests for auth process commitca8972f8c3Author: Arne Schlüter <arne@schlueter.is> Date: Wed May 30 13:34:38 2018 +0200 Make sure to always run tests in development
This commit is contained in:
parent
5929bc7581
commit
3376e01930
8 changed files with 111 additions and 46 deletions
|
|
@ -1,8 +1,11 @@
|
|||
(ns airsonic-ui.core
|
||||
(:require [reagent.core :as reagent]
|
||||
[re-frame.core :as re-frame]
|
||||
;; 3rd party effects / coeffects
|
||||
[day8.re-frame.http-fx]
|
||||
[airsonic-ui.audio] ; <- just registers effects
|
||||
[akiroz.re-frame.storage :as storage]
|
||||
;; our app
|
||||
[airsonic-ui.audio] ; <- just registers effects here
|
||||
[airsonic-ui.routes :as routes]
|
||||
[airsonic-ui.events :as events]
|
||||
[airsonic-ui.views :as views]
|
||||
|
|
@ -19,6 +22,9 @@
|
|||
|
||||
(defn ^:export init []
|
||||
(routes/start-routing!)
|
||||
(storage/reg-co-fx! :airsonic-ui {:fx :store
|
||||
:cofx :store})
|
||||
(re-frame/dispatch-sync [::events/initialize-db])
|
||||
(re-frame/dispatch [::events/try-remember-user])
|
||||
(dev-setup)
|
||||
(mount-root))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue