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 dade4ea..3e46d21 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.SupplierManagement = class { /** * @constructor @@ -45,10 +46,10 @@ omsApp.Modules.SupplierManagement = 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); }; @@ -60,7 +61,7 @@ omsApp.Modules.SupplierManagement = class { return; } - /** global: OpenLayers */ + /* global OpenLayers */ const mapObj = new OpenLayers.Map(map.getAttribute('id'), { controls: [ new OpenLayers.Control.Navigation( @@ -76,12 +77,12 @@ omsApp.Modules.SupplierManagement = class { mapObj.addLayer(new OpenLayers.Layer.OSM()); - const fromProjection = new OpenLayers.Projection("EPSG:4326"); // Transform from WGS 1984 - const toProjection = new OpenLayers.Projection("EPSG:900913"); // to Spherical Mercator Projection + const fromProjection = new OpenLayers.Projection('EPSG:4326'); // Transform from WGS 1984 + const toProjection = new OpenLayers.Projection('EPSG:900913'); // to Spherical Mercator Projection const position = new OpenLayers.LonLat(map.getAttribute('data-lon'), map.getAttribute('data-lat')).transform(fromProjection, toProjection); const zoom = 12; - const markers = new OpenLayers.Layer.Markers("Markers"); + const markers = new OpenLayers.Layer.Markers('Markers'); mapObj.addLayer(markers); markers.addMarker(new OpenLayers.Marker(position));