mirror of
https://github.com/Karaka-Management/oms-SupplierManagement.git
synced 2026-01-10 00:48:41 +00:00
more tests and some fixes
This commit is contained in:
parent
5846a9c330
commit
afdb32e1c3
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
|
@ -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 }}
|
||||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user