From 71f54f6a5dd58d53388c77ee2b490dd83f921255 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 20 Feb 2019 11:10:18 +0200 Subject: [PATCH] Move some settings to Vue --- client/components/App.vue | 40 +++---- client/components/Windows/Settings.vue | 133 ++++++++++++----------- client/js/lounge.js | 13 +-- client/js/options.js | 34 ++---- client/js/socket-events/configuration.js | 5 +- client/js/vue.js | 3 + client/js/webpush.js | 21 ++-- 7 files changed, 115 insertions(+), 134 deletions(-) diff --git a/client/components/App.vue b/client/components/App.vue index 211b785a..01e3f558 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -19,44 +19,42 @@
-
- {{#unless public}}

@@ -64,13 +64,13 @@

Warning No settings have been synced before. Enabling this will sync all settings of this client as the base for other clients.

+ class="btn" + @click="onForceSyncClick">Force sync settings

This will override any settings already synced to the server.

- {{/unless}} +

Messages

@@ -169,59 +169,62 @@ id="theme-select" name="theme" class="input"> - {{#each themes}} - - {{/each}} - {{#if prefetch}} -
-

Link previews

-
-
- -
-
- -
- {{/if}} - {{#unless public}} -
-

Push Notifications

-
-
- -
- Warning: - Push notifications are only supported over HTTPS connections. + + + + +

Browser Notifications

@@ -233,12 +236,13 @@ name="desktopNotifications"> Enable browser notifications
Warning: Notifications are not supported by your browser.
Warning: @@ -287,9 +291,9 @@
- {{#unless public}} - {{#unless ldapEnabled}} -
+
- {{> ../reveal-password}}
- {{/unless}} - {{/unless}} +
@@ -356,14 +356,16 @@ class="sr-only">Custom stylesheet. You can override any style with CSS here.