From e6399e972989b0e3d7c004da1aa69272bf4f9551 Mon Sep 17 00:00:00 2001 From: RubenPX Date: Wed, 18 May 2022 11:15:41 +0200 Subject: [PATCH 1/2] pre commit build js babel --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 63a0458c..e6bc1402 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,3 +15,9 @@ repos: rev: 0.0.9 hooks: - id: check_pdb_hook + - repo: local + hooks: + - id: build-js + name: build-js + entry: npm run babel + language: node From 79ce3dfc59f2a9d1fed9354032172032f0c205c2 Mon Sep 17 00:00:00 2001 From: RubenPX Date: Wed, 18 May 2022 11:16:22 +0200 Subject: [PATCH 2/2] Load dev build on device_list --- ereuse_devicehub/templates/inventory/device_list.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/templates/inventory/device_list.html b/ereuse_devicehub/templates/inventory/device_list.html index 59050e5a..93458469 100644 --- a/ereuse_devicehub/templates/inventory/device_list.html +++ b/ereuse_devicehub/templates/inventory/device_list.html @@ -455,5 +455,11 @@ perPage: 20 }) - +{% if config['DEBUG'] %} + +{% else %} + +{% endif %} + + {% endblock main %}