do not use OC functions/vars anymore
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
Родитель
05ab35a973
Коммит
f19f955884
|
@ -20,9 +20,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { registerWidget } from '@nextcloud/vue/dist/Components/NcRichText.js'
|
import { registerWidget } from '@nextcloud/vue/dist/Components/NcRichText.js'
|
||||||
|
import { linkTo } from '@nextcloud/router'
|
||||||
|
import { getRequestToken } from '@nextcloud/auth'
|
||||||
|
|
||||||
__webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line
|
__webpack_nonce__ = btoa(getRequestToken()) // eslint-disable-line
|
||||||
__webpack_public_path__ = OC.linkTo('integration_github', 'js/') // eslint-disable-line
|
__webpack_public_path__ = linkTo('integration_github', 'js/') // eslint-disable-line
|
||||||
|
|
||||||
registerWidget('integration_github_issue_pr', async (el, { richObjectType, richObject, accessible }) => {
|
registerWidget('integration_github_issue_pr', async (el, { richObjectType, richObject, accessible }) => {
|
||||||
const { default: Vue } = await import(/* webpackChunkName: "reference-issue-lazy" */'vue')
|
const { default: Vue } = await import(/* webpackChunkName: "reference-issue-lazy" */'vue')
|
||||||
|
|
Загрузка…
Ссылка в новой задаче