summaryrefslogtreecommitdiffstats
path: root/src/oca.js
blob: 6bc3601842718ca3a7e300f6a2663a9a2ce0bf5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

// eslint-disable-next-line import/no-unresolved, n/no-missing-import
import 'vite/modulepreload-polyfill'

// Global scss sheets
import './css/contacts.scss'

// Dialogs css
import '@nextcloud/dialogs/style.css'

window.OCA ??= {}
window.OCA.Contacts = {
	/**
	 * @param {HTMLElement} el Html element to mount the component at
	 * @param {string} contactEmailAddress Email address of the contact whose details to display
	 * @return {Promise<object>} Mounted Vue instance (vm)
	 */
	async mountContactDetails(el, contactEmailAddress) {
		const { mountContactDetails } = await import('./oca/mountContactDetails.js')
		return mountContactDetails(el, contactEmailAddress)
	},
}