code cleanup
parent
f2bbcf0890
commit
5a4de85190
|
|
@ -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 : '');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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<string, unknown>
|
||||
;(() => {
|
||||
const los = exports.los as globalTypes.LOS
|
||||
|
||||
const workOrderNumberCircleElements: NodeListOf<HTMLElement> =
|
||||
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(
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -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<string, unknown>
|
||||
;(() => {
|
||||
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'
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair
|
||||
/* eslint-disable unicorn/prefer-module */
|
||||
;
|
||||
(() => {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair
|
||||
/* eslint-disable unicorn/prefer-module */
|
||||
|
||||
;(() => {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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<string, unknown>
|
||||
;(() => {
|
||||
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'
|
||||
|
|
|
|||
|
|
@ -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:"")})();
|
||||
"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:"")})();
|
||||
|
|
@ -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")})();
|
||||
"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")})();
|
||||
|
|
@ -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)}})();
|
||||
"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)}})();
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue