From: Max Value Date: Mon, 7 Apr 2025 22:43:23 +0000 (+0100) Subject: Started implementing twitch extension X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=530b40c5fe2cbd84ad0dbb108553b7823cedb9de;p=shopping-channel Started implementing twitch extension --- diff --git a/extensions/config.html b/extensions/config.html new file mode 100644 index 0000000..738b093 --- /dev/null +++ b/extensions/config.html @@ -0,0 +1,13 @@ + + + + + XMDV + + + + +

. Admin panel

+ + diff --git a/extensions/pricing.html b/extensions/pricing.html new file mode 100644 index 0000000..8404bfd --- /dev/null +++ b/extensions/pricing.html @@ -0,0 +1,14 @@ + + + + + XMDV + + + + +

This is some text

+

You are accesing the pricing version of this document.

+ + diff --git a/extensions/product.html b/extensions/product.html new file mode 100644 index 0000000..75eebae --- /dev/null +++ b/extensions/product.html @@ -0,0 +1,156 @@ + + + + + XMDV + + + + + +
+
+ +
+
+

Product Name!

+
+
+ + + + diff --git a/media/products/0.png b/media/products/0.png new file mode 100644 index 0000000..06e2a05 Binary files /dev/null and b/media/products/0.png differ diff --git a/media/products/1.png b/media/products/1.png new file mode 100644 index 0000000..3c4e251 Binary files /dev/null and b/media/products/1.png differ diff --git a/media/products/hold.png b/media/products/hold.png new file mode 100644 index 0000000..06e2a05 Binary files /dev/null and b/media/products/hold.png differ diff --git a/teleshopping.py b/teleshopping.py index cd4b51f..04574ef 100755 --- a/teleshopping.py +++ b/teleshopping.py @@ -73,6 +73,13 @@ def sounds_page(): +@app.route("/extensions/") +def interface_page(filename): + return send_from_directory("extensions", filename) + + + + @app.route("/docs") @auth.login_required def web_docs(): @@ -196,6 +203,10 @@ def api_clock(): else: return "", 404 +@app.route("/api/img/") +def product_image(item_id): + return send_from_directory(path.join("media", "products"), f"{item_id}.png") + @app.route("/api/generate") @auth.login_required def generate_docs():