linting
parent
cc79209eb9
commit
ab6ee7a9e2
|
|
@ -10,6 +10,7 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success: true,
|
success: true,
|
||||||
|
|
||||||
inactivatedRecordCount: recordCounts.inactivatedRecordCount,
|
inactivatedRecordCount: recordCounts.inactivatedRecordCount,
|
||||||
purgedRecordCount: recordCounts.purgedRecordCount
|
purgedRecordCount: recordCounts.purgedRecordCount
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
|
|
||||||
burialSiteStatuses
|
burialSiteStatuses
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
|
|
||||||
burialSiteTypes
|
burialSiteTypes
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
|
|
||||||
burialSiteTypes
|
burialSiteTypes
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export default async function handler(request, response) {
|
||||||
const allContractTypeFields = await getAllContractTypeFields();
|
const allContractTypeFields = await getAllContractTypeFields();
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
contractTypes,
|
allContractTypeFields,
|
||||||
allContractTypeFields
|
contractTypes
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ export default async function handler(
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const success = await deleteRecord(
|
const success = await deleteRecord(
|
||||||
'ContractTypes',
|
'ContractTypes',
|
||||||
request.body.contractTypeId as string,
|
request.body.contractTypeId,
|
||||||
request.session.user as User
|
request.session.user as User
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -21,7 +21,8 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
contractTypes,
|
|
||||||
allContractTypeFields
|
allContractTypeFields,
|
||||||
|
contractTypes
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export default async function handler(request, response) {
|
||||||
const allContractTypeFields = await getAllContractTypeFields();
|
const allContractTypeFields = await getAllContractTypeFields();
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
contractTypes,
|
allContractTypeFields,
|
||||||
allContractTypeFields
|
contractTypes
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,8 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
contractTypes,
|
|
||||||
allContractTypeFields
|
allContractTypeFields,
|
||||||
|
contractTypes
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export default async function handler(request, response) {
|
||||||
const allContractTypeFields = await getAllContractTypeFields();
|
const allContractTypeFields = await getAllContractTypeFields();
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
contractTypes,
|
allContractTypeFields,
|
||||||
allContractTypeFields
|
contractTypes
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,8 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
contractTypes,
|
|
||||||
allContractTypeFields
|
allContractTypeFields,
|
||||||
|
contractTypes
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
|
|
||||||
feeCategories
|
feeCategories
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
|
|
||||||
feeCategories
|
feeCategories
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
|
|
||||||
workOrderMilestoneTypes
|
workOrderMilestoneTypes
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
|
|
||||||
workOrderTypes
|
workOrderTypes
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ export default async function handler(
|
||||||
|
|
||||||
response.json({
|
response.json({
|
||||||
success,
|
success,
|
||||||
|
|
||||||
burialSiteStatuses
|
burialSiteStatuses
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import type { Request, Response } from 'express';
|
import type { Request, Response } from 'express';
|
||||||
export default function handler(request: Request<unknown, unknown, {
|
export default function handler(request: Request<unknown, unknown, {
|
||||||
workOrderId: string;
|
|
||||||
contractId: string;
|
contractId: string;
|
||||||
|
workOrderId: string;
|
||||||
}>, response: Response): Promise<void>;
|
}>, response: Response): Promise<void>;
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ import addWorkOrderContract from '../../database/addWorkOrderContract.js';
|
||||||
import getContracts from '../../database/getContracts.js';
|
import getContracts from '../../database/getContracts.js';
|
||||||
export default async function handler(request, response) {
|
export default async function handler(request, response) {
|
||||||
const success = await addWorkOrderContract({
|
const success = await addWorkOrderContract({
|
||||||
workOrderId: request.body.workOrderId,
|
contractId: request.body.contractId,
|
||||||
contractId: request.body.contractId
|
workOrderId: request.body.workOrderId
|
||||||
}, request.session.user);
|
}, request.session.user);
|
||||||
const results = await getContracts({
|
const results = await getContracts({
|
||||||
workOrderId: request.body.workOrderId
|
workOrderId: request.body.workOrderId
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,14 @@ export default async function handler(
|
||||||
request: Request<
|
request: Request<
|
||||||
unknown,
|
unknown,
|
||||||
unknown,
|
unknown,
|
||||||
{ workOrderId: string; contractId: string }
|
{ contractId: string; workOrderId: string; }
|
||||||
>,
|
>,
|
||||||
response: Response
|
response: Response
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const success = await addWorkOrderContract(
|
const success = await addWorkOrderContract(
|
||||||
{
|
{
|
||||||
workOrderId: request.body.workOrderId,
|
contractId: request.body.contractId,
|
||||||
contractId: request.body.contractId
|
workOrderId: request.body.workOrderId
|
||||||
},
|
},
|
||||||
request.session.user as User
|
request.session.user as User
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import type { cityssmGlobal } from '@cityssm/bulma-webapp-js/src/types.js'
|
import type { cityssmGlobal } from '@cityssm/bulma-webapp-js/src/types.js'
|
||||||
|
|
||||||
import type { Contract } from '../../types/recordTypes.js'
|
import type { Contract } from '../../types/recordTypes.js'
|
||||||
|
|
||||||
import type { Sunrise } from './types.js'
|
import type { Sunrise } from './types.js'
|
||||||
|
|
||||||
declare const cityssm: cityssmGlobal
|
declare const cityssm: cityssmGlobal
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
? ''
|
? ''
|
||||||
: `${cityssm.escapeHTML(funeralHome.funeralHomeAddress2 ?? '')}<br />`}
|
: `${cityssm.escapeHTML(funeralHome.funeralHomeAddress2 ?? '')}<br />`}
|
||||||
${funeralHome.funeralHomeCity || funeralHome.funeralHomeProvince
|
${funeralHome.funeralHomeCity || funeralHome.funeralHomeProvince
|
||||||
? `${cityssm.escapeHTML(funeralHome.funeralHomeCity ?? '')}, ${cityssm.escapeHTML(funeralHome.funeralHomeProvince ?? '')}<br />`
|
? `${cityssm.escapeHTML(funeralHome.funeralHomeCity ?? '')},
|
||||||
|
${cityssm.escapeHTML(funeralHome.funeralHomeProvince ?? '')}<br />`
|
||||||
: ''}
|
: ''}
|
||||||
${(funeralHome.funeralHomePostalCode ?? '') === ''
|
${(funeralHome.funeralHomePostalCode ?? '') === ''
|
||||||
? ''
|
? ''
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,8 @@ declare const exports: Record<string, unknown>
|
||||||
}
|
}
|
||||||
${
|
${
|
||||||
funeralHome.funeralHomeCity || funeralHome.funeralHomeProvince
|
funeralHome.funeralHomeCity || funeralHome.funeralHomeProvince
|
||||||
? `${cityssm.escapeHTML(funeralHome.funeralHomeCity ?? '')}, ${cityssm.escapeHTML(funeralHome.funeralHomeProvince ?? '')}<br />`
|
? `${cityssm.escapeHTML(funeralHome.funeralHomeCity ?? '')},
|
||||||
|
${cityssm.escapeHTML(funeralHome.funeralHomeProvince ?? '')}<br />`
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
${
|
${
|
||||||
|
|
|
||||||
|
|
@ -73,9 +73,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
currentMarker = L.marker(mapCoordinates).addTo(map);
|
currentMarker = L.marker(mapCoordinates).addTo(map);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const middleLatitude = (Number.parseFloat(options.latitudeElement.min) + Number.parseFloat(options.latitudeElement.max)) / 2;
|
const middleLatitude = (Number.parseFloat(options.latitudeElement.min) +
|
||||||
const middleLongitude = (Number.parseFloat(options.longitudeElement.min) + Number.parseFloat(options.longitudeElement.max)) / 2;
|
Number.parseFloat(options.latitudeElement.max)) /
|
||||||
const mapCoordinates = [middleLatitude, middleLongitude];
|
2;
|
||||||
|
const middleLongitude = (Number.parseFloat(options.longitudeElement.min) +
|
||||||
|
Number.parseFloat(options.longitudeElement.max)) /
|
||||||
|
2;
|
||||||
|
const mapCoordinates = [
|
||||||
|
middleLatitude,
|
||||||
|
middleLongitude
|
||||||
|
];
|
||||||
map.setView(mapCoordinates, 5);
|
map.setView(mapCoordinates, 5);
|
||||||
}
|
}
|
||||||
map.on('click', (clickEvent) => {
|
map.on('click', (clickEvent) => {
|
||||||
|
|
|
||||||
|
|
@ -137,10 +137,19 @@ declare const exports: Record<string, unknown> & {
|
||||||
map.setView(mapCoordinates, sunrise.leafletConstants.defaultZoom)
|
map.setView(mapCoordinates, sunrise.leafletConstants.defaultZoom)
|
||||||
currentMarker = L.marker(mapCoordinates).addTo(map)
|
currentMarker = L.marker(mapCoordinates).addTo(map)
|
||||||
} else {
|
} else {
|
||||||
const middleLatitude = (Number.parseFloat(options.latitudeElement.min) + Number.parseFloat(options.latitudeElement.max)) / 2
|
const middleLatitude =
|
||||||
const middleLongitude = (Number.parseFloat(options.longitudeElement.min) + Number.parseFloat(options.longitudeElement.max)) / 2
|
(Number.parseFloat(options.latitudeElement.min) +
|
||||||
|
Number.parseFloat(options.latitudeElement.max)) /
|
||||||
|
2
|
||||||
|
const middleLongitude =
|
||||||
|
(Number.parseFloat(options.longitudeElement.min) +
|
||||||
|
Number.parseFloat(options.longitudeElement.max)) /
|
||||||
|
2
|
||||||
|
|
||||||
const mapCoordinates: Leaflet.LatLngTuple = [middleLatitude, middleLongitude]
|
const mapCoordinates: Leaflet.LatLngTuple = [
|
||||||
|
middleLatitude,
|
||||||
|
middleLongitude
|
||||||
|
]
|
||||||
map.setView(mapCoordinates, 5)
|
map.setView(mapCoordinates, 5)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue