mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-07 02:33:39 +02:00
Squashed commit of the following:
commit d4242bf1a390994606b7bd6e630c55338a14aad4
Author: Arne Schlüter <arne@schlueter.is>
Date: Mon Jul 9 21:12:44 2018 +0200
Add loading spinner, done with reworked app boot flow; fixes #5 and #11
commit e864ae4e578f96b86f3c0239b79f5224f0bb0020
Author: Arne Schlüter <arne@schlueter.is>
Date: Mon Jul 9 19:43:02 2018 +0200
Start restructuring app boot flow
commit a8cdbef80acde9f185a588ab86f8ea6964ebe8ab
Author: Arne Schlüter <arne@schlueter.is>
Date: Mon Jul 9 14:03:43 2018 +0200
Ignore rebel readline artifacts
commit 67eae3bc6aa2938ad6748c78b6259e532e66f865
Author: Arne Schlüter <arne@schlueter.is>
Date: Mon Jul 9 14:03:11 2018 +0200
Update shadow-cljs and run npm audit fix
This commit is contained in:
parent
c34a4c5c83
commit
cd06abff97
12 changed files with 1487 additions and 505 deletions
|
|
@ -6,6 +6,7 @@
|
|||
[airsonic-ui.subs :as subs]
|
||||
|
||||
[airsonic-ui.views.notifications :refer [notification-list]]
|
||||
[airsonic-ui.views.loading-spinner :refer [loading-spinner]]
|
||||
[airsonic-ui.views.breadcrumbs :refer [breadcrumbs]]
|
||||
[airsonic-ui.views.bottom-bar :refer [bottom-bar]]
|
||||
[airsonic-ui.views.login :refer [login-form]]
|
||||
|
|
@ -51,24 +52,26 @@
|
|||
(defn app [route params query]
|
||||
(let [user @(subscribe [::subs/user])
|
||||
content @(subscribe [::subs/current-content])]
|
||||
[:div
|
||||
[:main.columns
|
||||
[:div.column.is-2.sidebar
|
||||
[sidebar user]]
|
||||
[:div.column
|
||||
[:section.section
|
||||
[breadcrumbs content]
|
||||
(case route
|
||||
::routes/main [most-recent content]
|
||||
::routes/artist-view [artist-detail content]
|
||||
::routes/album-view [album-detail content])]]]
|
||||
[bottom-bar]]))
|
||||
(if (= route ::routes/login)
|
||||
[login-form]
|
||||
[:div
|
||||
[:main.columns
|
||||
[:div.column.is-2.sidebar
|
||||
[sidebar user]]
|
||||
[:div.column
|
||||
[:section.section
|
||||
[breadcrumbs content]
|
||||
(case route
|
||||
::routes/main [most-recent content]
|
||||
::routes/artist-view [artist-detail content]
|
||||
::routes/album-view [album-detail content])]]]
|
||||
[bottom-bar]])))
|
||||
|
||||
(defn main-panel []
|
||||
(let [[route params query] @(subscribe [::subs/current-route])
|
||||
notifications @(subscribe [::subs/notifications])]
|
||||
[:div
|
||||
[notification-list notifications]
|
||||
(case route
|
||||
::routes/login [login-form]
|
||||
[app route params query])]))
|
||||
(if route
|
||||
[app route params query]
|
||||
[:div.app-loading>div.loader])]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue