| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- const icons = {
- tempIcon: () => `
- <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0" />
- </svg>
- `,
- pressureIcon: () => `
- <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m12 14l4-4M3.34 19a10 10 0 1 1 17.32 0" />
- </svg>
- `,
- humidityIcon: () => `
- <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5S5 13 5 15a7 7 0 0 0 7 7" />
- </svg>
- `,
- altitudeIcon: () => `
- <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
- <circle cx="12" cy="12" r="10" />
- <path d="m16 12l-4-4l-4 4m4 4V8" />
- </g>
- </svg>
- `,
- bluetoothConnectionIcon: () => `
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
- <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m7 7l10 10l-5 5V2l5 5L7 17m11-5h3M3 12h3" />
- </svg>
- `
- }
- export default {
- settings: {
- errors: {
- noCloudURL: () => `you need to provide a cloud url.`
- }
- },
- history: {
- properties: {
- indoorTemp: () => `${icons.tempIcon()} indoor temperature`,
- indoorPressure: () => `${icons.pressureIcon()} indoor pressure`,
- indoorHumidity: () => `${icons.humidityIcon()} indoor humidity`,
- indoorAltitude: () => `${icons.altitudeIcon()} indoor altitude`,
- outdoorConnected: () => `${icons.bluetoothConnectionIcon()} external unit connection`,
- outdoorTemp: () => `${icons.tempIcon()} outdoor temperature`,
- outdoorPressure: () => `${icons.pressureIcon()} outdoor pressure`,
- outdoorHumidity: () => `${icons.humidityIcon()} outdoor humidity`,
- outdoorAltitude: () => `${icons.altitudeIcon()} outdoor altitude`,
- },
- dateFormats: {
- months: {
- [`01`]: () => `January`,
- [`02`]: () => `February`,
- [`03`]: () => `March`,
- [`04`]: () => `April`,
- [`05`]: () => `May`,
- [`06`]: () => `June`,
- [`07`]: () => `July`,
- [`08`]: () => `August`,
- [`09`]: () => `September`,
- [`10`]: () => `October`,
- [`11`]: () => `November`,
- [`12`]: () => `December`,
- }
- }
- }
- }
|