|
|
@ -12,7 +12,6 @@ import UserProfile from './components/user_profile/user_profile.vue'
|
|
|
|
import Settings from './components/settings/settings.vue'
|
|
|
|
import Settings from './components/settings/settings.vue'
|
|
|
|
import Registration from './components/registration/registration.vue'
|
|
|
|
import Registration from './components/registration/registration.vue'
|
|
|
|
import UserSettings from './components/user_settings/user_settings.vue'
|
|
|
|
import UserSettings from './components/user_settings/user_settings.vue'
|
|
|
|
import Chat from './components/chat/chat.vue'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import statusesModule from './modules/statuses.js'
|
|
|
|
import statusesModule from './modules/statuses.js'
|
|
|
|
import usersModule from './modules/users.js'
|
|
|
|
import usersModule from './modules/users.js'
|
|
|
@ -27,6 +26,8 @@ import createPersistedState from './lib/persisted_state.js'
|
|
|
|
|
|
|
|
|
|
|
|
import messages from './i18n/messages.js'
|
|
|
|
import messages from './i18n/messages.js'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import VueChatScroll from 'vue-chat-scroll'
|
|
|
|
|
|
|
|
|
|
|
|
const currentLocale = (window.navigator.language || 'en').split('-')[0]
|
|
|
|
const currentLocale = (window.navigator.language || 'en').split('-')[0]
|
|
|
|
|
|
|
|
|
|
|
|
Vue.use(Vuex)
|
|
|
|
Vue.use(Vuex)
|
|
|
@ -39,6 +40,7 @@ Vue.use(VueTimeago, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
Vue.use(VueI18n)
|
|
|
|
Vue.use(VueI18n)
|
|
|
|
|
|
|
|
Vue.use(VueChatScroll)
|
|
|
|
|
|
|
|
|
|
|
|
const persistedStateOptions = {
|
|
|
|
const persistedStateOptions = {
|
|
|
|
paths: [
|
|
|
|
paths: [
|
|
|
@ -97,8 +99,7 @@ window.fetch('/static/config.json')
|
|
|
|
{ name: 'mentions', path: '/:username/mentions', component: Mentions },
|
|
|
|
{ name: 'mentions', path: '/:username/mentions', component: Mentions },
|
|
|
|
{ name: 'settings', path: '/settings', component: Settings },
|
|
|
|
{ name: 'settings', path: '/settings', component: Settings },
|
|
|
|
{ name: 'registration', path: '/registration', component: Registration },
|
|
|
|
{ name: 'registration', path: '/registration', component: Registration },
|
|
|
|
{ name: 'user-settings', path: '/user-settings', component: UserSettings },
|
|
|
|
{ name: 'user-settings', path: '/user-settings', component: UserSettings }
|
|
|
|
{ name: 'chat', path: '/chat', component: Chat }
|
|
|
|
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
const router = new VueRouter({
|
|
|
|