diff --git a/public-typescript/dashboard.js b/public-typescript/dashboard.js index a54132e6..6833d875 100644 --- a/public-typescript/dashboard.js +++ b/public-typescript/dashboard.js @@ -1,10 +1,11 @@ "use strict"; +// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair /* eslint-disable unicorn/prefer-module */ Object.defineProperty(exports, "__esModule", { value: true }); (() => { var _a; const los = exports.los; - const workOrderNumberCircleElements = document.querySelectorAll('.fa-circle[data-work-order-number'); + const workOrderNumberCircleElements = document.querySelectorAll('.fa-circle[data-work-order-number]'); for (const workOrderNumberCircleElement of workOrderNumberCircleElements) { workOrderNumberCircleElement.style.color = los.getRandomColor((_a = workOrderNumberCircleElement.dataset.workOrderNumber) !== null && _a !== void 0 ? _a : ''); } diff --git a/public-typescript/dashboard.ts b/public-typescript/dashboard.ts index eaa2a2fd..256353e8 100644 --- a/public-typescript/dashboard.ts +++ b/public-typescript/dashboard.ts @@ -1,11 +1,14 @@ +// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair /* eslint-disable unicorn/prefer-module */ -import type * as globalTypes from '../types/globalTypes' +import type * as globalTypes from '../types/globalTypes.js' + +declare const exports: Record ;(() => { const los = exports.los as globalTypes.LOS const workOrderNumberCircleElements: NodeListOf = - document.querySelectorAll('.fa-circle[data-work-order-number') + document.querySelectorAll('.fa-circle[data-work-order-number]') for (const workOrderNumberCircleElement of workOrderNumberCircleElements) { workOrderNumberCircleElement.style.color = los.getRandomColor( diff --git a/public-typescript/lotView.js b/public-typescript/lotView.js index b0b4c5aa..309deabc 100644 --- a/public-typescript/lotView.js +++ b/public-typescript/lotView.js @@ -1,10 +1,12 @@ "use strict"; -/* eslint-disable @typescript-eslint/no-non-null-assertion, unicorn/prefer-module */ +// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair +/* eslint-disable unicorn/prefer-module */ Object.defineProperty(exports, "__esModule", { value: true }); (() => { + var _a; const mapContainerElement = document.querySelector('#lot--map'); - if (mapContainerElement) { + if (mapContainerElement !== null) { ; - exports.los.highlightMap(mapContainerElement, mapContainerElement.dataset.mapKey, 'success'); + exports.los.highlightMap(mapContainerElement, (_a = mapContainerElement.dataset.mapKey) !== null && _a !== void 0 ? _a : '', 'success'); } })(); diff --git a/public-typescript/lotView.ts b/public-typescript/lotView.ts index 7beb0e3a..e42b0f27 100644 --- a/public-typescript/lotView.ts +++ b/public-typescript/lotView.ts @@ -1,14 +1,17 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion, unicorn/prefer-module */ +// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair +/* eslint-disable unicorn/prefer-module */ -import type * as globalTypes from '../types/globalTypes' +import type * as globalTypes from '../types/globalTypes.js' + +declare const exports: Record ;(() => { const mapContainerElement: HTMLElement | null = document.querySelector('#lot--map') - if (mapContainerElement) { + if (mapContainerElement !== null) { ;(exports.los as globalTypes.LOS).highlightMap( mapContainerElement, - mapContainerElement.dataset.mapKey!, + mapContainerElement.dataset.mapKey ?? '', 'success' ) } diff --git a/public-typescript/mapView.js b/public-typescript/mapView.js index a0142df9..8cbf3f3a 100644 --- a/public-typescript/mapView.js +++ b/public-typescript/mapView.js @@ -1,11 +1,11 @@ "use strict"; -/* eslint-disable @typescript-eslint/no-non-null-assertion */ Object.defineProperty(exports, "__esModule", { value: true }); (() => { + var _a, _b; const mapContainerElement = document.querySelector('#map--leaflet'); if (mapContainerElement !== null) { - const mapLatitude = Number.parseFloat(mapContainerElement.dataset.mapLatitude); - const mapLongitude = Number.parseFloat(mapContainerElement.dataset.mapLongitude); + const mapLatitude = Number.parseFloat((_a = mapContainerElement.dataset.mapLatitude) !== null && _a !== void 0 ? _a : ''); + const mapLongitude = Number.parseFloat((_b = mapContainerElement.dataset.mapLongitude) !== null && _b !== void 0 ? _b : ''); const mapCoordinates = [mapLatitude, mapLongitude]; // eslint-disable-next-line unicorn/no-array-callback-reference const map = L.map(mapContainerElement); diff --git a/public-typescript/mapView.ts b/public-typescript/mapView.ts index f89d6935..31080947 100644 --- a/public-typescript/mapView.ts +++ b/public-typescript/mapView.ts @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ - import type * as Leaflet from 'leaflet' declare const L @@ -9,10 +7,10 @@ declare const L if (mapContainerElement !== null) { const mapLatitude = Number.parseFloat( - mapContainerElement.dataset.mapLatitude! + mapContainerElement.dataset.mapLatitude ?? '' ) const mapLongitude = Number.parseFloat( - mapContainerElement.dataset.mapLongitude! + mapContainerElement.dataset.mapLongitude ?? '' ) const mapCoordinates: Leaflet.LatLngTuple = [mapLatitude, mapLongitude] diff --git a/public-typescript/reportSearch.js b/public-typescript/reportSearch.js index c8df8dc2..035073a8 100644 --- a/public-typescript/reportSearch.js +++ b/public-typescript/reportSearch.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair /* eslint-disable unicorn/prefer-module */ ; (() => { diff --git a/public-typescript/reportSearch.ts b/public-typescript/reportSearch.ts index 7f252de7..2faed017 100644 --- a/public-typescript/reportSearch.ts +++ b/public-typescript/reportSearch.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair /* eslint-disable unicorn/prefer-module */ ;(() => { diff --git a/public-typescript/workOrderOutlook.js b/public-typescript/workOrderOutlook.js index 3b478e80..dd0b1c0b 100644 --- a/public-typescript/workOrderOutlook.js +++ b/public-typescript/workOrderOutlook.js @@ -1,5 +1,6 @@ "use strict"; -/* eslint-disable @typescript-eslint/no-non-null-assertion, unicorn/prefer-module */ +// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair +/* eslint-disable unicorn/prefer-module */ Object.defineProperty(exports, "__esModule", { value: true }); (() => { const los = exports.los; diff --git a/public-typescript/workOrderOutlook.ts b/public-typescript/workOrderOutlook.ts index 589867da..e5934a5a 100644 --- a/public-typescript/workOrderOutlook.ts +++ b/public-typescript/workOrderOutlook.ts @@ -1,7 +1,9 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion, unicorn/prefer-module */ +// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair +/* eslint-disable unicorn/prefer-module */ -import type * as globalTypes from '../types/globalTypes' +import type * as globalTypes from '../types/globalTypes.js' +declare const exports: Record ;(() => { const los = exports.los as globalTypes.LOS @@ -68,7 +70,6 @@ import type * as globalTypes from '../types/globalTypes' changeEvent.currentTarget as HTMLInputElement ).checked }) - ;( document.querySelector( '#icsFilters--workOrderMilestoneTypeIds-all' diff --git a/public/javascripts/dashboard.min.js b/public/javascripts/dashboard.min.js index 57a6cc8b..3138af00 100644 --- a/public/javascripts/dashboard.min.js +++ b/public/javascripts/dashboard.min.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),(()=>{var e;const o=exports.los,r=document.querySelectorAll(".fa-circle[data-work-order-number");for(const t of r)t.style.color=o.getRandomColor(null!==(e=t.dataset.workOrderNumber)&&void 0!==e?e:"")})(); \ No newline at end of file +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),(()=>{var e;const o=exports.los,r=document.querySelectorAll(".fa-circle[data-work-order-number]");for(const t of r)t.style.color=o.getRandomColor(null!==(e=t.dataset.workOrderNumber)&&void 0!==e?e:"")})(); \ No newline at end of file diff --git a/public/javascripts/lotView.min.js b/public/javascripts/lotView.min.js index dbf9750f..46de10bf 100644 --- a/public/javascripts/lotView.min.js +++ b/public/javascripts/lotView.min.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),(()=>{const e=document.querySelector("#lot--map");e&&exports.los.highlightMap(e,e.dataset.mapKey,"success")})(); \ No newline at end of file +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),(()=>{var e;const t=document.querySelector("#lot--map");null!==t&&exports.los.highlightMap(t,null!==(e=t.dataset.mapKey)&&void 0!==e?e:"","success")})(); \ No newline at end of file diff --git a/public/javascripts/mapView.min.js b/public/javascripts/mapView.min.js index 0e422da6..1c809bc7 100644 --- a/public/javascripts/mapView.min.js +++ b/public/javascripts/mapView.min.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),(()=>{const e=document.querySelector("#map--leaflet");if(null!==e){const t=[Number.parseFloat(e.dataset.mapLatitude),Number.parseFloat(e.dataset.mapLongitude)],a=L.map(e);a.setView(t,15),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:"© OpenStreetMap"}).addTo(a),L.marker(t).addTo(a)}})(); \ No newline at end of file +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),(()=>{var e,t;const a=document.querySelector("#map--leaflet");if(null!==a){const o=[Number.parseFloat(null!==(e=a.dataset.mapLatitude)&&void 0!==e?e:""),Number.parseFloat(null!==(t=a.dataset.mapLongitude)&&void 0!==t?t:"")],r=L.map(a);r.setView(o,15),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:"© OpenStreetMap"}).addTo(r),L.marker(o).addTo(r)}})(); \ No newline at end of file diff --git a/types/applicationTypes.ts b/types/applicationTypes.ts index e984c94a..1f379d70 100644 --- a/types/applicationTypes.ts +++ b/types/applicationTypes.ts @@ -17,6 +17,7 @@ export interface CacheLotIdsWorkerMessage extends WorkerMessage { export interface ClearNextPreviousLotIdsCacheWorkerMessage extends WorkerMessage { + // eslint-disable-next-line no-secrets/no-secrets messageType: 'clearNextPreviousLotIdCache' lotId: number }