mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-18 01:44:33 +02:00
Update:Remove call to server for user settings, user settings stored locally
This commit is contained in:
parent
415dda37a4
commit
7852804a9c
8 changed files with 57 additions and 69 deletions
|
@ -5,8 +5,6 @@ import { formatDistance, format, addDays, isDate } from 'date-fns'
|
|||
|
||||
Vue.directive('click-outside', vClickOutside.directive)
|
||||
|
||||
Vue.prototype.$eventBus = new Vue()
|
||||
|
||||
Vue.prototype.$dateDistanceFromNow = (unixms) => {
|
||||
if (!unixms) return ''
|
||||
return formatDistance(unixms, Date.now(), { addSuffix: true })
|
||||
|
@ -159,6 +157,7 @@ export {
|
|||
export default ({ app, store }, inject) => {
|
||||
app.$decode = decode
|
||||
app.$encode = encode
|
||||
inject('eventBus', new Vue())
|
||||
inject('isDev', process.env.NODE_ENV !== 'production')
|
||||
|
||||
store.commit('setRouterBasePath', app.$config.routerBasePath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue