From 4ddb6a484752491dffc032b12ebd708cd52a2ece Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Wed, 18 Dec 2024 14:51:21 +0100 Subject: [PATCH] fix(AdminSettings): add test information Signed-off-by: Maksim Sukharev --- .../AdminSettings/SignalingServer.vue | 62 ++++++++++++++++--- 1 file changed, 52 insertions(+), 10 deletions(-) diff --git a/src/components/AdminSettings/SignalingServer.vue b/src/components/AdminSettings/SignalingServer.vue index 058b0523e7b..c24db26a601 100644 --- a/src/components/AdminSettings/SignalingServer.vue +++ b/src/components/AdminSettings/SignalingServer.vue @@ -36,17 +36,30 @@ {{ connectionState }} + + + + - - - +
    +
  • + + {{ row.caption }} + + + {{ row.description }} + +
  • +
@@ -58,6 +71,7 @@ import IconDelete from 'vue-material-design-icons/Delete.vue' import IconReload from 'vue-material-design-icons/Reload.vue' import { t } from '@nextcloud/l10n' +import { getBaseUrl } from '@nextcloud/router' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' @@ -112,6 +126,7 @@ export default { errorMessage: '', warningMessage: '', versionFound: '', + signalingTestInfo: [], } }, @@ -160,6 +175,7 @@ export default { async checkServerVersion() { this.checked = false + this.signalingTestInfo = [] this.errorMessage = '' this.warningMessage = '' @@ -210,6 +226,12 @@ export default { const settings = response.data.ocs.data const signalingTest = createConnection(settings, url) await signalingTest.connect() + this.signalingTestInfo = [ + { caption: t('spreed', 'Nextcloud base URL'), description: getBaseUrl() }, + { caption: t('spreed', 'Talk Backend URL'), description: signalingTest.getBackendUrl() }, + { caption: t('spreed', 'WebSocket URL'), description: signalingTest.url }, + { caption: t('spreed', 'Available features'), description: signalingTest.features.join(', ') }, + ] } catch (exception) { console.error(exception) this.errorMessage = t('spreed', 'Error: Websocket connection failed. Check browser console') @@ -222,7 +244,10 @@ export default {