From c0fe494643ef76f8d6365324951a707a0809d412 Mon Sep 17 00:00:00 2001 From: codewithvk Date: Tue, 3 Dec 2024 11:24:21 +0530 Subject: [PATCH 01/12] Initial cool admin setting iframe setup Signed-off-by: codewithvk --- src/components/AdminSettings.vue | 13 ++++++ src/components/CoolFrame.vue | 78 ++++++++++++++++++++++++++++++++ src/helpers/url.js | 10 ++++ 3 files changed, 101 insertions(+) create mode 100644 src/components/CoolFrame.vue diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index 059e6c4992..7a80413627 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -14,6 +14,15 @@ {{ t('richdocuments', 'Collabora Online is a powerful LibreOffice-based online office suite with collaborative editing, which supports all major documents, spreadsheet and presentation file formats and works together with all modern browsers.') }}

+ +
+

{{ t('richdocuments', 'Collabora Admin Settings') }}

+ +
+

{{ t('richdocuments', 'Could not establish connection to the Collabora Online server.') }}

@@ -413,6 +422,7 @@ import GlobalTemplates from './AdminSettings/GlobalTemplates.vue' import '@nextcloud/dialogs/style.css' import { getCallbackBaseUrl } from '../helpers/url.js' import { getCapabilities } from '../services/capabilities.ts' +import CoolFrame from './CoolFrame.vue' const SERVER_STATE_OK = 0 const SERVER_STATE_LOADING = 1 @@ -441,6 +451,7 @@ export default { GlobalTemplates, NcModal, NcNoteCard, + CoolFrame, }, props: { initial: { @@ -497,6 +508,8 @@ export default { }, fonts: [], }, + accessToken: '', + accessTokenTTL: '', } }, computed: { diff --git a/src/components/CoolFrame.vue b/src/components/CoolFrame.vue new file mode 100644 index 0000000000..456521b23f --- /dev/null +++ b/src/components/CoolFrame.vue @@ -0,0 +1,78 @@ + +