Add live journal camera photos and harden OWM button.
Capture photos via getUserMedia in live log, share encrypted save logic with the editor, and disable weather fetch while other quick actions run. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -38,6 +38,17 @@ export function liveWaterRemark(liters: string): string {
|
||||
return `__live:water:${liters}`
|
||||
}
|
||||
|
||||
export function livePhotoRemark(caption?: string): string {
|
||||
const text = caption?.trim()
|
||||
return text ? `__live:photo:${text}` : '__live:photo'
|
||||
}
|
||||
|
||||
export function parseLivePhotoRemark(remarks: string): string | null {
|
||||
if (remarks === '__live:photo') return ''
|
||||
const prefix = '__live:photo:'
|
||||
return remarks.startsWith(prefix) ? remarks.slice(prefix.length) : null
|
||||
}
|
||||
|
||||
export function liveSogRemark(speedKn: string): string {
|
||||
return `__live:sog:${speedKn}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user