From 53442413b3c5e10fbdfed729716f9abe3148543d Mon Sep 17 00:00:00 2001 From: Aaron Imming Date: Tue, 5 Feb 2019 11:24:25 +0800 Subject: [PATCH 01/32] Explicitly set page_url --- src/common/elevio.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/elevio.js b/src/common/elevio.js index c1a6ad9f31..ceb81c9fd1 100644 --- a/src/common/elevio.js +++ b/src/common/elevio.js @@ -13,6 +13,9 @@ const Elevio = (() => { // if (availableElevLanguages.indexOf(currentLanguage) !== -1) { // window._elev.setLanguage(currentLanguage); // eslint-disable-line no-underscore-dangle // } + window._elev.setSettings({ + page_url: document.location.hostname, + }); setUserInfo(elev); setTranslations(elev); }); From 549705dcb6c0cd61c13fba22cef5a2897e88515e Mon Sep 17 00:00:00 2001 From: Aaron Imming Date: Tue, 5 Feb 2019 11:53:29 +0800 Subject: [PATCH 02/32] Add path to page_url, add eslint exception --- src/common/elevio.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/elevio.js b/src/common/elevio.js index ceb81c9fd1..d87a04b2a0 100644 --- a/src/common/elevio.js +++ b/src/common/elevio.js @@ -13,8 +13,9 @@ const Elevio = (() => { // if (availableElevLanguages.indexOf(currentLanguage) !== -1) { // window._elev.setLanguage(currentLanguage); // eslint-disable-line no-underscore-dangle // } + // eslint-disable-next-line no-underscore-dangle window._elev.setSettings({ - page_url: document.location.hostname, + page_url: document.location.hostname + document.location.pathname, }); setUserInfo(elev); setTranslations(elev); From d0c1c7c5397e53dc4e2918883f800d42173ae898 Mon Sep 17 00:00:00 2001 From: Aaron Imming Date: Tue, 5 Feb 2019 15:57:20 +0800 Subject: [PATCH 03/32] Add show/hide header svgs --- static/image/expand_less.svg | 1 + static/image/expand_more.svg | 1 + 2 files changed, 2 insertions(+) create mode 100644 static/image/expand_less.svg create mode 100644 static/image/expand_more.svg diff --git a/static/image/expand_less.svg b/static/image/expand_less.svg new file mode 100644 index 0000000000..99491c6370 --- /dev/null +++ b/static/image/expand_less.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/image/expand_more.svg b/static/image/expand_more.svg new file mode 100644 index 0000000000..690a0a1d57 --- /dev/null +++ b/static/image/expand_more.svg @@ -0,0 +1 @@ + \ No newline at end of file From 7a19ba825aad475b39bd38c145a37d3f86e529b0 Mon Sep 17 00:00:00 2001 From: Aaron Imming Date: Tue, 5 Feb 2019 16:02:30 +0800 Subject: [PATCH 04/32] Add Login + Account List in toolbox when header hidden --- templates/bot.mustache | 271 +++++++++++++++++++++++------------------ 1 file changed, 152 insertions(+), 119 deletions(-) diff --git a/templates/bot.mustache b/templates/bot.mustache index 46e9fb39c2..2bba4dc039 100644 --- a/templates/bot.mustache +++ b/templates/bot.mustache @@ -1,162 +1,195 @@ - + {{> ../templates/partials/security }} {{> ../templates/partials/head }} Binary Bot {{> bundle_css }} {{> bot_css }} - + - +
- - - - - -
-
- - - -

-
- +
+
+
+
+
+
+
+
+
+
+

+
+

- - +
+

- - +
+

- +
-
- {{> ../templates/partials/loading }}
-
- {{> ../templates/partials/language }} -
-
- -
+
+ {{> ../templates/partials/language }} +
+
+ +
-