From 6c519e1720f43f9c7324c7a39cda7c18e4418a33 Mon Sep 17 00:00:00 2001 From: codewithvk Date: Tue, 3 Dec 2024 11:24:21 +0530 Subject: [PATCH 01/35] 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 18b8167167..a3a7f741f5 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.') }}

@@ -427,6 +436,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 @@ -456,6 +466,7 @@ export default { GlobalTemplates, NcModal, NcNoteCard, + CoolFrame, }, props: { initial: { @@ -512,6 +523,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 @@ + +