Commit Graph

7 Commits

Author SHA1 Message Date
MrTimscampi
3f15681af0 fix(auth): fix user data disappearing on refresh
Nuxt Auth expects a normal API to poll the user data on refresh, like "/user/me". Due to Jellyfin
needing the user's ID to fetch their information, this commit registers a new Auth plugin and a
persistent Vuex store, saved to localStorage, to perform the request manually when Nuxt starts up.
It then sets all the required information before the client properly starts, meaning the information
is always fresh when the user refreshes the page.
2020-09-04 23:55:21 +02:00
MrTimscampi
2d4995621a style(all): fix linting issues related to new TypeScript rules 2020-09-04 21:09:36 +02:00
Thibault Nocchi
a081ac92ed fix(snackbar.ts): fixed bool logic for snackbar color 2020-09-04 19:48:59 +02:00
Cameron
1b71788a32 fix(fix linting): fix linting 2020-09-04 18:29:38 +01:00
Thibault Nocchi
71f1c495a9 feat: snackbar plugin with global call
a snackbar plugin can be called from anywhere (vue instances, vue stores and contexts) with the
$snackbar(msg:string, color:string|undefined|null) signature

implements #18
2020-09-04 16:55:13 +02:00
MrTimscampi
735756fec0 feat(auth): add login page and user authentication 2020-09-03 13:04:32 +02:00
MrTimscampi
9170d2f935 feat: add initial Nuxt template 2020-09-02 20:48:53 +02:00