From 09e12affe8d5bb5218e70eeea6faa5e004c39a1d Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 18 Feb 2019 11:18:32 +0200 Subject: [PATCH] Begin moving windows to Vue --- client/components/App.vue | 14 +- client/components/RevealPassword.vue | 33 ++ client/components/Windows/Changelog.vue | 42 ++ client/components/Windows/Help.vue | 655 ++++++++++++++++++++++ client/components/Windows/NetworkEdit.vue | 243 ++++++++ client/components/Windows/Settings.vue | 415 ++++++++++++++ client/components/Windows/SignIn.vue | 104 ++++ client/css/style.css | 11 +- client/js/lounge.js | 3 +- client/js/socket-events/auth.js | 42 +- client/js/socket-events/configuration.js | 4 - client/js/socket-events/init.js | 1 - client/js/socket-events/network.js | 2 - client/js/utils.js | 20 - client/js/vue.js | 7 + client/views/reveal-password.tpl | 3 - client/views/windows/changelog.tpl | 20 - client/views/windows/connect.tpl | 114 ---- client/views/windows/help.tpl | 608 -------------------- client/views/windows/settings.tpl | 239 -------- client/views/windows/sign_in.tpl | 17 - 21 files changed, 1516 insertions(+), 1081 deletions(-) create mode 100644 client/components/RevealPassword.vue create mode 100644 client/components/Windows/Changelog.vue create mode 100644 client/components/Windows/Help.vue create mode 100644 client/components/Windows/NetworkEdit.vue create mode 100644 client/components/Windows/Settings.vue create mode 100644 client/components/Windows/SignIn.vue delete mode 100644 client/views/reveal-password.tpl delete mode 100644 client/views/windows/changelog.tpl delete mode 100644 client/views/windows/connect.tpl delete mode 100644 client/views/windows/help.tpl delete mode 100644 client/views/windows/settings.tpl delete mode 100644 client/views/windows/sign_in.tpl diff --git a/client/components/App.vue b/client/components/App.vue index 76820e4d..211b785a 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -64,13 +64,10 @@ -
-
-
-
-
+ :channel="activeChannel.channel" /> +
@@ -80,14 +77,17 @@ const throttle = require("lodash/throttle"); import NetworkList from "./NetworkList.vue"; import Chat from "./Chat.vue"; +import SignIn from "./Windows/SignIn.vue"; export default { name: "App", components: { NetworkList, Chat, + SignIn, }, props: { + activeWindow: String, activeChannel: Object, networks: Array, }, diff --git a/client/components/RevealPassword.vue b/client/components/RevealPassword.vue new file mode 100644 index 00000000..1c629077 --- /dev/null +++ b/client/components/RevealPassword.vue @@ -0,0 +1,33 @@ + + + diff --git a/client/components/Windows/Changelog.vue b/client/components/Windows/Changelog.vue new file mode 100644 index 00000000..448bb969 --- /dev/null +++ b/client/components/Windows/Changelog.vue @@ -0,0 +1,42 @@ + + + diff --git a/client/components/Windows/Help.vue b/client/components/Windows/Help.vue new file mode 100644 index 00000000..a4dfb02f --- /dev/null +++ b/client/components/Windows/Help.vue @@ -0,0 +1,655 @@ + + + diff --git a/client/components/Windows/NetworkEdit.vue b/client/components/Windows/NetworkEdit.vue new file mode 100644 index 00000000..e6cf4a37 --- /dev/null +++ b/client/components/Windows/NetworkEdit.vue @@ -0,0 +1,243 @@ + + + diff --git a/client/components/Windows/Settings.vue b/client/components/Windows/Settings.vue new file mode 100644 index 00000000..5448cf64 --- /dev/null +++ b/client/components/Windows/Settings.vue @@ -0,0 +1,415 @@ +