mirror of
https://github.com/nextcloud/server.git
synced 2026-02-26 03:11:28 -05:00
This improves the debugging experience in the vue dev tool. Signed-off-by: Louis Chemineau <louis@chmn.me>
20 lines
447 B
JavaScript
20 lines
447 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import Vue from 'vue'
|
|
|
|
import AccountMenu from '../views/AccountMenu.vue'
|
|
|
|
export const setUp = () => {
|
|
const mountPoint = document.getElementById('user-menu')
|
|
if (mountPoint) {
|
|
// eslint-disable-next-line no-new
|
|
new Vue({
|
|
name: 'AccountMenuRoot',
|
|
el: mountPoint,
|
|
render: h => h(AccountMenu),
|
|
})
|
|
}
|
|
}
|