Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-04-24 19:59:48 +0300
committerJulius Härtl <jus@bitgrid.net>2020-05-11 13:27:20 +0300
commit2b6b93787e7194e75f8713096569696c6faa8601 (patch)
treee5cf47c9a8c9751cdcf848fbf2e14fff34819019
parent62ee19a3631ad14cd5acee318cb7c6aaef2d02ad (diff)
Add modal with details about the demo server
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--src/components/AdminSettings.vue44
1 files changed, 42 insertions, 2 deletions
diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue
index a93b0f4c..9ca13721 100644
--- a/src/components/AdminSettings.vue
+++ b/src/components/AdminSettings.vue
@@ -102,6 +102,23 @@
</fieldset>
</div>
+ <modal v-if="serverMode === 'demo' && !approvedDemoModal" @close="serverMode = 'custom'">
+ <div class="modal__content">
+ <p>{{ t('richdocuments', 'Please make sure you understand that the following will happen if you set up the Collabora Online demo.') }}</p>
+ <ul>
+ <li>{{ t('richdocuments', 'The service will send users documents to Collabora and/or third party demo servers.') }}</li>
+ <li>{{ t('richdocuments', 'This service is not intended for production use, hence the documents will show tile watermarks.') }}</li>
+ <li>{{ t('richdocuments', 'The demo service may be under heavy load, and its performance is not representative in any way of the performance of an on-premise installation.') }}</li>
+ <li>{{ t('richdocuments', 'These servers are used for testing and development, and may run test versions of the software. As such they may crash, burn, and re-start without warning.') }}</li>
+ <li>{{ t('richdocuments', 'The users documents will not be retained by a third party after their session completes except in exceptional circumstances. By using the service, the user gives permission for Collabora engineers to exceptionally use such document data, solely for the purpose of providing, optimizing and improving Collabora Online. Such document data will remain confidential to Collabora and/or any third party providing a demo server.') }}</li>
+ </ul>
+ <p>{{ t('richdocuments', 'At the first use and after an update, each user will get the warning, explaining all the above.') }}</p>
+ <input type="button" class="primary" :value="t('richdocuments', 'Use the demo server')"
+ @click="approvedDemoModal=true">
+ <input type="button" :value="t('richdocuments', 'Setup your own server')" @click="serverMode = 'custom'">
+ </div>
+ </modal>
+
<div v-if="isSetup" id="advanced-settings" class="section">
<h2>{{ t('richdocuments', 'Advanced settings') }}</h2>
<settings-checkbox :value="isOoxml" :label="t('richdocuments', 'Use Office Open XML (OOXML) instead of OpenDocument Format (ODF) by default for new files')" hint=""
@@ -181,7 +198,7 @@
<script>
import Vue from 'vue'
-import { Multiselect } from 'nextcloud-vue'
+import { Multiselect, Modal } from 'nextcloud-vue'
import axios from 'nextcloud-axios'
import SettingsCheckbox from './SettingsCheckbox'
import SettingsInputText from './SettingsInputText'
@@ -202,7 +219,8 @@ export default {
SettingsSelectTag,
SettingsSelectGroup,
Multiselect,
- SettingsExternalApps
+ SettingsExternalApps,
+ Modal
},
props: {
initial: {
@@ -215,6 +233,7 @@ export default {
serverMode: '',
serverError: SERVER_STATE_OK,
demoServers: null,
+ approvedDemoModal: false,
updating: false,
groups: [],
tags: [],
@@ -380,6 +399,7 @@ export default {
}
if (this.settings.demoUrl) {
this.serverMode = 'demo'
+ this.approvedDemoModal = true
}
},
demoServerLabel(server) {
@@ -435,4 +455,24 @@ export default {
margin-top: 10px;
}
}
+
+ .modal__content {
+ margin: 20px;
+ overflow: scroll;
+ max-width: 600px;
+
+ ul {
+ margin-bottom: 15px;
+ }
+
+ li {
+ list-style: disc;
+ padding: 3px;
+ margin-left: 20px;
+ }
+
+ button {
+ float: right;
+ }
+ }
</style>