simplify global functions

This commit is contained in:
korelstar 2020-09-01 08:19:07 +02:00
parent fc3829f895
commit 80124cad8b
3 changed files with 1 additions and 11 deletions

View File

@ -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)

View File

@ -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',

View File

@ -1,6 +0,0 @@
export default {
methods: {
t,
n,
},
}