From d1dd04526c850a4462b0ab21f67c19d3124df7b3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 24 Apr 2024 03:20:46 +0000 Subject: [PATCH] more tests and some fixes --- .github/workflows/main.yml | 9 +++++++-- Controller.js | 12 ++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e1e05f8..278096d 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,10 +13,15 @@ on: - cron: '0 0 1,15 * *' jobs: - general_module_workflow: + general_module_workflow_php: uses: Karaka-Management/Karaka/.github/workflows/php_template.yml@develop secrets: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_PAT: ${{ secrets.GH_PAT }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - + general_module_workflow_js: + uses: Karaka-Management/Karaka/.github/workflows/js_template.yml@develop + secrets: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_PAT: ${{ secrets.GH_PAT }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/Controller.js b/Controller.js index 235ff55..d6a9310 100755 --- a/Controller.js +++ b/Controller.js @@ -3,6 +3,7 @@ import { Autoloader } from '../../jsOMS/Autoloader.js'; Autoloader.defineNamespace('omsApp.Modules'); +/* global omsApp */ omsApp.Modules.ItemManagement = class { /** * @constructor @@ -16,8 +17,11 @@ omsApp.Modules.ItemManagement = class { bind (id) { - const e = typeof id === 'undefined' ? document.getElementsByTagName('canvas') : [document.getElementById(id)], - length = e.length; + const e = typeof id === 'undefined' + ? document.getElementsByTagName('canvas') + : [document.getElementById(id)]; + + const length = e.length; for (let i = 0; i < length; ++i) { if (e[i].getAttribute('data-chart') === null @@ -38,10 +42,10 @@ omsApp.Modules.ItemManagement = class { return; } - const self = this; const data = JSON.parse(chart.getAttribute('data-chart')); - /** global: Chart */ + /* global Chart */ + // eslint-disable-next-line no-unused-vars const myChart = new Chart(chart.getContext('2d'), data); }; };