simplify global functions
This commit is contained in:
parent
fc3829f895
commit
80124cad8b
|
@ -2,11 +2,8 @@ import axios from '@nextcloud/axios'
|
|||
import { generateUrl } from '@nextcloud/router'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
|
||||
import AppGlobal from './mixins/AppGlobal'
|
||||
import store from './store'
|
||||
|
||||
const t = AppGlobal.methods.t
|
||||
|
||||
function url(url) {
|
||||
url = `apps/notes${url}`
|
||||
return generateUrl(url)
|
||||
|
|
|
@ -2,9 +2,8 @@ import Vue from 'vue'
|
|||
import App from './App'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
import AppGlobal from './mixins/AppGlobal'
|
||||
|
||||
Vue.mixin(AppGlobal)
|
||||
Vue.mixin({ methods: { t, n } })
|
||||
|
||||
export default new Vue({
|
||||
el: '#content',
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
export default {
|
||||
methods: {
|
||||
t,
|
||||
n,
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue