From ece523140b880fc9613698c45100ea666054bdb3 Mon Sep 17 00:00:00 2001 From: Sufl0wer Date: Mon, 26 Aug 2019 15:32:06 +0300 Subject: [PATCH 1/5] add subscription button --- .../tabpanel_plot_elements/comments_tab.js | 8 ++- .../subscription_element.js | 61 +++++++++++++++++++ 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 src/javascript/components/main_app/tabpanel_plot_elements/subscription_element.js diff --git a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js index e58932d..827b3be 100644 --- a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js +++ b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js @@ -7,6 +7,7 @@ import CircularProgress from '@material-ui/core/CircularProgress'; import Rating from '@material-ui/lab/Rating'; import Icon from '@material-ui/core/Icon'; import IconButton from '@material-ui/core/IconButton'; +import SubscriptionEl from './subscription_element' function loadPlotStarsCountData(shop_type, data_type) { var xN = []; @@ -336,8 +337,8 @@ export default function CommentsPlotTab() { - - Total number of star-ratings per day + + + + Total number of star-ratings per day + {/* Total number of star-ratings per day */} + + + Subscribe + + + Please enter your email address to let us know were should we send statistics changes. + + + + + + + + + + ); +} From 1c0ed889825b3ea7766580832d3d1bd36a4d204f Mon Sep 17 00:00:00 2001 From: Sufl0wer Date: Tue, 27 Aug 2019 10:13:29 +0300 Subject: [PATCH 2/5] changed color of button --- .../{subscription_element.js => SubscriptionElement.js} | 6 +++--- .../main_app/tabpanel_plot_elements/comments_tab.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/javascript/components/main_app/tabpanel_plot_elements/{subscription_element.js => SubscriptionElement.js} (94%) diff --git a/src/javascript/components/main_app/tabpanel_plot_elements/subscription_element.js b/src/javascript/components/main_app/tabpanel_plot_elements/SubscriptionElement.js similarity index 94% rename from src/javascript/components/main_app/tabpanel_plot_elements/subscription_element.js rename to src/javascript/components/main_app/tabpanel_plot_elements/SubscriptionElement.js index d3bbde5..45d1d3c 100644 --- a/src/javascript/components/main_app/tabpanel_plot_elements/subscription_element.js +++ b/src/javascript/components/main_app/tabpanel_plot_elements/SubscriptionElement.js @@ -23,14 +23,14 @@ export default function FormDialog() {
Subscribe diff --git a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js index 827b3be..05227e7 100644 --- a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js +++ b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js @@ -7,7 +7,7 @@ import CircularProgress from '@material-ui/core/CircularProgress'; import Rating from '@material-ui/lab/Rating'; import Icon from '@material-ui/core/Icon'; import IconButton from '@material-ui/core/IconButton'; -import SubscriptionEl from './subscription_element' +import SubscriptionEl from './SubscriptionElement' function loadPlotStarsCountData(shop_type, data_type) { var xN = []; From 5a1725ce91b8be66a65af4cd7d7e5ad2d15722a0 Mon Sep 17 00:00:00 2001 From: Sufl0wer Date: Tue, 27 Aug 2019 10:32:07 +0300 Subject: [PATCH 3/5] removed from app page --- .../main_app/tabpanel_plot_elements/comments_tab.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js index 05227e7..6bd489f 100644 --- a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js +++ b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js @@ -7,7 +7,6 @@ import CircularProgress from '@material-ui/core/CircularProgress'; import Rating from '@material-ui/lab/Rating'; import Icon from '@material-ui/core/Icon'; import IconButton from '@material-ui/core/IconButton'; -import SubscriptionEl from './SubscriptionElement' function loadPlotStarsCountData(shop_type, data_type) { var xN = []; @@ -337,9 +336,6 @@ export default function CommentsPlotTab() {
- - - Date: Tue, 27 Aug 2019 10:50:31 +0300 Subject: [PATCH 4/5] file fix --- .../tabpanel_plot_elements/comments_tab.js | 740 +++++++++--------- 1 file changed, 370 insertions(+), 370 deletions(-) diff --git a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js index 6bd489f..6951bb3 100644 --- a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js +++ b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js @@ -84,196 +84,196 @@ function loadBarChartStarsCountData(shop_type) { } const newPlotElementWithBotAxis = (width, height, data, color, rating_stars_count) => ( - <> - -
- -
- + <> + +
+ +
+ ); const newBarChartElementWithBotAxis = (width, height, data) => ( - <> - - + <> + + ); function add_plot_with_latency_botAxis(id, shop_type, data_type, color, rating_stars_count) { @@ -283,8 +283,8 @@ function add_plot_with_latency_botAxis(id, shop_type, data_type, color, rating_s // Рендерим основное ReactDOM.render( - newPlotElementWithBotAxis(width, height, loadPlotStarsCountData(shop_type, data_type), color, rating_stars_count), - document.getElementById(id) + newPlotElementWithBotAxis(width, height, loadPlotStarsCountData(shop_type, data_type), color, rating_stars_count), + document.getElementById(id) ); }, 1); } @@ -296,211 +296,211 @@ function add_BarChart_with_latency(id, shop_type) { // Рендерим основное ReactDOM.render( - newBarChartElementWithBotAxis(width, height, loadBarChartStarsCountData(shop_type)), - document.getElementById(id) + newBarChartElementWithBotAxis(width, height, loadBarChartStarsCountData(shop_type)), + document.getElementById(id) ); }, 1); } export default function CommentsPlotTab() { return ( - <> - - -
-
  Google Play
-
-
-
  {window.applicationData.Title}
-
+ <> + + +
+
  Google Play
+
+
+
  {window.applicationData.Title}
+
- - - -
-
- - - - - Total number of star-ratings per day - - - {/* Total number of star-ratings per day */} - - + + + +
- - + + Total number of star-ratings per day - - - - - + + {/* Total number of star-ratings per day */} + + + + + + + + + + + + + + + - - - -
-
  App Store
+ + +
+
  App Store
- - - -
-
- - Total number of star-ratings per day - - - - - - - - - - + + + +
- - + + Total number of star-ratings per day - - + + + + + + + + + + + + + + + + - - + ); } From b8eb4c78f490015d144581d8f7c257774bfd0ba1 Mon Sep 17 00:00:00 2001 From: Sufl0wer Date: Tue, 27 Aug 2019 10:57:23 +0300 Subject: [PATCH 5/5] removed a modified file from pull request --- .../tabpanel_plot_elements/comments_tab.js | 740 +++++++++--------- 1 file changed, 370 insertions(+), 370 deletions(-) diff --git a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js index 6951bb3..e58932d 100644 --- a/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js +++ b/src/javascript/components/main_app/tabpanel_plot_elements/comments_tab.js @@ -84,196 +84,196 @@ function loadBarChartStarsCountData(shop_type) { } const newPlotElementWithBotAxis = (width, height, data, color, rating_stars_count) => ( - <> - -
- -
- + <> + +
+ +
+ ); const newBarChartElementWithBotAxis = (width, height, data) => ( - <> - - + <> + + ); function add_plot_with_latency_botAxis(id, shop_type, data_type, color, rating_stars_count) { @@ -283,8 +283,8 @@ function add_plot_with_latency_botAxis(id, shop_type, data_type, color, rating_s // Рендерим основное ReactDOM.render( - newPlotElementWithBotAxis(width, height, loadPlotStarsCountData(shop_type, data_type), color, rating_stars_count), - document.getElementById(id) + newPlotElementWithBotAxis(width, height, loadPlotStarsCountData(shop_type, data_type), color, rating_stars_count), + document.getElementById(id) ); }, 1); } @@ -296,211 +296,211 @@ function add_BarChart_with_latency(id, shop_type) { // Рендерим основное ReactDOM.render( - newBarChartElementWithBotAxis(width, height, loadBarChartStarsCountData(shop_type)), - document.getElementById(id) + newBarChartElementWithBotAxis(width, height, loadBarChartStarsCountData(shop_type)), + document.getElementById(id) ); }, 1); } export default function CommentsPlotTab() { return ( - <> - - -
-
  Google Play
-
-
-
  {window.applicationData.Title}
-
- - - - + <> + + +
+
  Google Play
+
+
+
  {window.applicationData.Title}
+ + + + +
+
+ + Total number of star-ratings per day + + + + + + {/* Total number of star-ratings per day */} + + - - Total number of star-ratings per day + + - - {/* Total number of star-ratings per day */} - - - - - - - - - - - - - - - + + + + + + - - -
-
  App Store
+ + +
+
  App Store
- - - -
+ + + +
+
+ + Total number of star-ratings per day + + + + + + + + + + - - Total number of star-ratings per day + + - - - - - - - - - - - - - - - - + + - + + ); }