2021-03-31 06:15:40 -04:00
|
|
|
/**
|
2019-05-10 07:38:11 -04:00
|
|
|
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
|
|
|
*
|
2021-03-31 06:15:40 -04:00
|
|
|
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
|
2023-02-09 20:54:59 -05:00
|
|
|
* @author Christopher Ng <chrng8@gmail.com>
|
2019-05-10 07:38:11 -04:00
|
|
|
*
|
2022-01-11 11:18:11 -05:00
|
|
|
* @license AGPL-3.0-or-later
|
2019-05-10 07:38:11 -04:00
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
2021-03-31 06:15:40 -04:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*
|
2019-05-10 07:38:11 -04:00
|
|
|
*/
|
|
|
|
|
|
2023-02-09 20:54:59 -05:00
|
|
|
import Vue from 'vue'
|
2019-05-10 07:38:11 -04:00
|
|
|
|
2023-02-09 20:54:59 -05:00
|
|
|
import UserMenu from '../views/UserMenu.vue'
|
2019-05-10 07:38:11 -04:00
|
|
|
|
|
|
|
|
export const setUp = () => {
|
2023-02-09 20:54:59 -05:00
|
|
|
const mountPoint = document.getElementById('user-menu')
|
|
|
|
|
if (mountPoint) {
|
|
|
|
|
// eslint-disable-next-line no-new
|
|
|
|
|
new Vue({
|
|
|
|
|
el: mountPoint,
|
|
|
|
|
render: h => h(UserMenu),
|
|
|
|
|
})
|
|
|
|
|
}
|
2019-05-10 07:38:11 -04:00
|
|
|
}
|