diff --git a/app/src/web/routes.py b/app/src/web/routes.py index 3e24f90..7c93647 100644 --- a/app/src/web/routes.py +++ b/app/src/web/routes.py @@ -29,13 +29,16 @@ async def empty(): @web_routes.route('/data-fetch') async def data_fetch(): - return { + data = { "update-time": format_datetime(format="medium"), "server-cnt": f"

{Infos.get_counter('ServerMode_Cnt')}

", "client-cnt": f"

{Infos.get_counter('ClientMode_Cnt')}

", "proxy-cnt": f"

{Infos.get_counter('ProxyMode_Cnt')}

", "emulation-cnt": f"

{Infos.get_counter('EmuMode_Cnt')}

", } + data["conn-table"] = await render_template('conn_table.html.j2') + data["notes-list"] = await render_template('notes_list.html.j2') + return data @web_routes.route('/favicon-96x96.png') diff --git a/app/src/web/templates/conn_table.html.j2 b/app/src/web/templates/conn_table.html.j2 new file mode 100644 index 0000000..1676a48 --- /dev/null +++ b/app/src/web/templates/conn_table.html.j2 @@ -0,0 +1,29 @@ +
Connections
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/web/templates/index.html.j2 b/app/src/web/templates/index.html.j2 index 32d941b..6ef4e46 100644 --- a/app/src/web/templates/index.html.j2 +++ b/app/src/web/templates/index.html.j2 @@ -52,62 +52,6 @@ -
-
Countries
-
United States65%
UK15.7%
Russia5.6%
Spain2.1%
India1.9%
France1.5%
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
United States65%
UK15.7%
Russia5.6%
Spain2.1%
India1.9%
France1.5%

- - -
- -
-
-
-
Demographic
-

Language

-

Country

-

City

-
-
-
System
-

Browser

-

OS

-

More

-
-
-
Target
-

Users

-

Active

-

Geo

-

Interests

-
-
-
+
+
{% endblock content%} diff --git a/app/src/web/templates/notes_list.html.j2 b/app/src/web/templates/notes_list.html.j2 new file mode 100644 index 0000000..e69de29