summaryrefslogtreecommitdiffstats
path: root/src/oca.js
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2024-10-30 13:39:09 +0100
committerRichard Steinmetz <richard@steinmetz.cloud>2024-10-30 13:53:48 +0100
commita09618304d1f648da5d6b6b2f474b1be6442a856 (patch)
tree444b9a031e1517b6f6fea4130e86f6559e3d37f3 /src/oca.js
parentcd74ebc1b838dc63ff528693c8212c4192211916 (diff)
fixup! feat: create a readonly contactdetailsfeat/RecipientDetails
Diffstat (limited to 'src/oca.js')
-rw-r--r--src/oca.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/oca.js b/src/oca.js
new file mode 100644
index 00000000..6bc36018
--- /dev/null
+++ b/src/oca.js
@@ -0,0 +1,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)
+ },
+}