2020-04-22 09:27:55 +02:00
|
|
|
import 'regenerator-runtime/runtime'
|
2020-04-21 15:24:27 +02:00
|
|
|
import SettingsApp from './components/SettingsApp.vue'
|
|
|
|
|
import store from './store'
|
2021-03-25 17:24:06 +01:00
|
|
|
import translations from './../l10n/translations.json'
|
2020-04-21 15:24:27 +02:00
|
|
|
|
2020-04-24 07:43:59 +02:00
|
|
|
// just a dummy function to trick gettext tools
|
2022-02-14 17:56:50 +01:00
|
|
|
function $gettext(msg) {
|
2020-04-24 07:43:59 +02:00
|
|
|
return msg
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-21 15:24:27 +02:00
|
|
|
const appInfo = {
|
2020-04-24 07:43:59 +02:00
|
|
|
name: $gettext('Settings'),
|
2020-04-21 15:24:27 +02:00
|
|
|
id: 'settings',
|
2022-02-11 16:53:39 +01:00
|
|
|
icon: 'settings-4',
|
2022-02-14 17:56:50 +01:00
|
|
|
isFileEditor: false
|
2020-04-21 15:24:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{
|
|
|
|
|
name: 'settings',
|
2020-04-24 07:43:59 +02:00
|
|
|
path: '/:extension?',
|
2022-02-11 16:53:39 +01:00
|
|
|
component: SettingsApp
|
2020-04-21 15:24:27 +02:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const navItems = [
|
|
|
|
|
{
|
2020-04-24 07:43:59 +02:00
|
|
|
name: $gettext('Settings'),
|
2022-02-14 17:56:50 +01:00
|
|
|
icon: appInfo.icon,
|
2020-04-21 15:24:27 +02:00
|
|
|
route: {
|
|
|
|
|
name: 'settings',
|
|
|
|
|
path: `/${appInfo.id}/`
|
2020-10-06 16:15:20 +02:00
|
|
|
},
|
|
|
|
|
menu: 'user'
|
2020-04-21 15:24:27 +02:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
appInfo,
|
|
|
|
|
store,
|
|
|
|
|
routes,
|
2021-03-25 17:24:06 +01:00
|
|
|
navItems,
|
|
|
|
|
translations
|
2020-04-21 15:24:27 +02:00
|
|
|
}
|