|
|
@ -12,6 +12,7 @@ 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'
|
|
|
@ -60,7 +61,8 @@ const store = new Vuex.Store({
|
|
|
|
config: configModule
|
|
|
|
config: configModule
|
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [createPersistedState(persistedStateOptions)],
|
|
|
|
plugins: [createPersistedState(persistedStateOptions)],
|
|
|
|
strict: process.env.NODE_ENV !== 'production'
|
|
|
|
strict: false // Socket modifies itself, let's ignore this for now.
|
|
|
|
|
|
|
|
// strict: process.env.NODE_ENV !== 'production'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const i18n = new VueI18n({
|
|
|
|
const i18n = new VueI18n({
|
|
|
@ -90,7 +92,8 @@ 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({
|
|
|
|