From 1af967371062ddeab29ea961df8ffd6fe324da03 Mon Sep 17 00:00:00 2001 From: Lars van Rhijn <38525109+KiOui@users.noreply.github.com> Date: Thu, 7 Sep 2023 13:51:37 +0200 Subject: [PATCH] Rewrite VueJS to use script module type (#497) * Rewrite VueJS to use script module type * Use window property for global variables --- .../templates/orders/order_admin_list.html | 70 ++++++++++--------- .../templates/orders/order_admin_order.html | 8 +-- .../orders/templates/orders/order_list.html | 42 +++++------ .../templates/orders/shift_admin_footer.html | 18 ++--- .../templates/orders/shift_admin_scanner.html | 26 ++++--- .../orders/templates/orders/shift_header.html | 20 +++--- .../thaliedje/templates/thaliedje/player.html | 68 +++++++++--------- .../thaliedje/templates/thaliedje/queue.html | 26 +++---- .../templates/thaliedje/requests.html | 26 +++---- .../thaliedje/templates/thaliedje/search.html | 36 +++++----- website/tosti/templates/tosti/base.html | 11 ++- 11 files changed, 188 insertions(+), 163 deletions(-) diff --git a/website/orders/templates/orders/order_admin_list.html b/website/orders/templates/orders/order_admin_list.html index 9057d3cf..82f9dc51 100644 --- a/website/orders/templates/orders/order_admin_list.html +++ b/website/orders/templates/orders/order_admin_list.html @@ -37,9 +37,9 @@
  • -

    <% index + 1 %>.

    -

    <% order.product.name %> (€<% (Math.round(order.order_price * 100) / - 100).toFixed(2) %>)

    +

    ${ index + 1 }$.

    +

    ${ order.product.name }$ (€${ (Math.round(order.order_price * 100) / + 100).toFixed(2) }$)

    @@ -64,7 +64,7 @@ {% include 'orders/order_admin_order.html' %}
  • -
    No finished orders yet... @@ -76,8 +76,8 @@

    Orders to make