making quill work
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -118,7 +118,8 @@ class Home extends Shadow {
|
||||
VStack(() => {
|
||||
this.logs.map(log =>
|
||||
div(log)
|
||||
.padding("8px 12px")
|
||||
.paddingHorizontal("8px")
|
||||
.paddingVertical("12px")
|
||||
.backgroundColor("rgba(255,255,255,0.9)")
|
||||
.borderRadius(6, px)
|
||||
.marginBottom(6, px)
|
||||
@@ -130,7 +131,7 @@ class Home extends Shadow {
|
||||
.attr({"id": "logList"})
|
||||
.flex(1)
|
||||
.overflowY("auto")
|
||||
.padding("0 16px")
|
||||
.paddingHorizontal(16, px)
|
||||
})
|
||||
.marginTop(7, em)
|
||||
})
|
||||
@@ -156,26 +157,26 @@ class Home extends Shadow {
|
||||
|
||||
formatCentralTime(date) {
|
||||
return new Intl.DateTimeFormat('en-US', {
|
||||
timeZone: 'America/Chicago',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
year: '2-digit',
|
||||
hour: 'numeric',
|
||||
minute: '2-digit',
|
||||
second: '2-digit',
|
||||
hour12: true
|
||||
})
|
||||
.format(date)
|
||||
.replace(/,/, '') // "04/05/25, 2:30:00 PM" → "04/05/25 2:30:00 PM"
|
||||
.replace(/\//g, '.') // → "04.05.25 2:30:00 PM"
|
||||
.toLowerCase()
|
||||
.replace(' pm', 'pm')
|
||||
.replace(' am', 'am');
|
||||
timeZone: 'America/Chicago',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
year: '2-digit',
|
||||
hour: 'numeric',
|
||||
minute: '2-digit',
|
||||
second: '2-digit',
|
||||
hour12: true
|
||||
})
|
||||
.format(date)
|
||||
.replace(/,/, '') // "04/05/25, 2:30:00 PM" → "04/05/25 2:30:00 PM"
|
||||
.replace(/\//g, '.') // → "04.05.25 2:30:00 PM"
|
||||
.toLowerCase()
|
||||
.replace(' pm', 'pm')
|
||||
.replace(' am', 'am');
|
||||
}
|
||||
|
||||
async sendLocation(lat, lon, timestamp) {
|
||||
try {
|
||||
const resp = await fetch('http://sam.local:3008/api/location', {
|
||||
const resp = await fetch('http://localhost:3008/api/location', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user