mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-01-11 11:48:41 +00:00
more tests and some fixes
This commit is contained in:
parent
f29e93b349
commit
d1dd04526c
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
|
@ -13,10 +13,15 @@ on:
|
||||||
- cron: '0 0 1,15 * *'
|
- cron: '0 0 1,15 * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
general_module_workflow:
|
general_module_workflow_php:
|
||||||
uses: Karaka-Management/Karaka/.github/workflows/php_template.yml@develop
|
uses: Karaka-Management/Karaka/.github/workflows/php_template.yml@develop
|
||||||
secrets:
|
secrets:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GH_PAT: ${{ secrets.GH_PAT }}
|
GH_PAT: ${{ secrets.GH_PAT }}
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
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 }}
|
||||||
|
|
@ -3,6 +3,7 @@ import { Autoloader } from '../../jsOMS/Autoloader.js';
|
||||||
|
|
||||||
Autoloader.defineNamespace('omsApp.Modules');
|
Autoloader.defineNamespace('omsApp.Modules');
|
||||||
|
|
||||||
|
/* global omsApp */
|
||||||
omsApp.Modules.ItemManagement = class {
|
omsApp.Modules.ItemManagement = class {
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
|
|
@ -16,8 +17,11 @@ omsApp.Modules.ItemManagement = class {
|
||||||
|
|
||||||
bind (id)
|
bind (id)
|
||||||
{
|
{
|
||||||
const e = typeof id === 'undefined' ? document.getElementsByTagName('canvas') : [document.getElementById(id)],
|
const e = typeof id === 'undefined'
|
||||||
length = e.length;
|
? document.getElementsByTagName('canvas')
|
||||||
|
: [document.getElementById(id)];
|
||||||
|
|
||||||
|
const length = e.length;
|
||||||
|
|
||||||
for (let i = 0; i < length; ++i) {
|
for (let i = 0; i < length; ++i) {
|
||||||
if (e[i].getAttribute('data-chart') === null
|
if (e[i].getAttribute('data-chart') === null
|
||||||
|
|
@ -38,10 +42,10 @@ omsApp.Modules.ItemManagement = class {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const self = this;
|
|
||||||
const data = JSON.parse(chart.getAttribute('data-chart'));
|
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);
|
const myChart = new Chart(chart.getContext('2d'), data);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user