From 0e0fb2e2b8e2815f9b922a5009eae684816cbe0d Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 13 Oct 2018 18:07:26 -0700 Subject: [PATCH] Save graph config to local storage instead of server --- data/interfaces/default/graphs.html | 261 ++++++++++++--------------- data/interfaces/default/js/script.js | 10 +- plexpy/config.py | 4 - plexpy/webserve.py | 18 -- 4 files changed, 128 insertions(+), 165 deletions(-) diff --git a/data/interfaces/default/graphs.html b/data/interfaces/default/graphs.html index 18f5bcbb..bade13bb 100644 --- a/data/interfaces/default/graphs.html +++ b/data/interfaces/default/graphs.html @@ -21,137 +21,109 @@
- % if config['graph_type'] == 'duration': - - % else: - - % endif
Last - + days
Last - + months
- % if config['graph_tab'] != 'tabs-2' and config['graph_tab'] != 'tabs-3': -
- % else:
- % endif -
-
-

Daily Play count Last 30 days

-

- The total play count or duration of tv, movies, and music played per day. Click a graph point to open up a list of items played for that specific date. -

-
-
-
Loading chart...
-
-
-
-
-
-
-
-

Play count by day of week Last 30 days

-

- The combined total of tv, movies, and music played per day of the week. -

-
-
-
- Loading chart... -
-
-
-
-
-
-

Play count by hour of day Last 30 days

-

- The combined total of tv, movies, and music played per hour of the day. -

-
-
-
- Loading chart... -
-
-
-
-
-
-
-
-

Play count by top 10 platforms Last 30 days

-

- The combined total of tv, movies, and music played by top 10 most active platforms. -

-
-
-
- Loading chart... -
-
-
-
-
-
-

Play count by top 10 users Last 30 days

-

- The combined total of tv, movies, and music played by top 10 most active users. -

-
-
-
- Loading chart... -
-
-
+
+
+

Daily Play count Last 30 days

+

+ The total play count or duration of tv, movies, and music played per day. Click a graph point to open up a list of items played for that specific date. +

+
+
+
Loading chart...
+
- - % if config['graph_tab'] == 'tabs-2': -
- % else: +
+
+

Play count by day of week Last 30 days

+

+ The combined total of tv, movies, and music played per day of the week. +

+
+
+
+ Loading chart... +
+
+
+
+
+
+

Play count by hour of day Last 30 days

+

+ The combined total of tv, movies, and music played per hour of the day. +

+
+
+
+ Loading chart... +
+
+
+
+
+
+
+
+

Play count by top 10 platforms Last 30 days

+

+ The combined total of tv, movies, and music played by top 10 most active platforms. +

+
+
+
+ Loading chart... +
+
+
+
+
+
+

Play count by top 10 users Last 30 days

+

+ The combined total of tv, movies, and music played by top 10 most active users. +

+
+
+
+ Loading chart... +
+
+
+
+
+
+
- % endif

Daily Stream type breakdown Last 30 days

@@ -223,12 +195,7 @@
- - % if config['graph_tab'] == 'tabs-3': -
- % else:
- % endif

Plays by month Last 12 months

@@ -266,7 +233,7 @@