| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- const general = {
- dateFormats: {
- months: {
- [`01`]: () => `január`,
- [`02`]: () => `február`,
- [`03`]: () => `marec`,
- [`04`]: () => `apríl`,
- [`05`]: () => `máj`,
- [`06`]: () => `jún`,
- [`07`]: () => `júl`,
- [`08`]: () => `august`,
- [`09`]: () => `september`,
- [`10`]: () => `október`,
- [`11`]: () => `november`,
- [`12`]: () => `december`,
- }
- },
- }
- 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>
- `,
- 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 {
- general,
- icons,
- settings: {
- errors: {
- noCloudURL: () => `musíte zadať cloud url.`,
- noWebsocketKey: () => `musíte zadať websocket kľúč.`
- }
- },
- history: {
- properties: {
- indoorTemp: () => `${icons.tempIcon()} vnutorná teplota`,
- indoorPressure: () => `${icons.pressureIcon()} vnutorný tlak`,
- indoorHumidity: () => `${icons.humidityIcon()} vnutorná vlhkosť`,
- outdoorConnected: () => `${icons.bluetoothConnectionIcon()} pripojenie externej jednotky`,
- outdoorTemp: () => `${icons.tempIcon()} vonkajšia teplota`,
- outdoorPressure: () => `${icons.pressureIcon()} vonkajší tlak`,
- outdoorHumidity: () => `${icons.humidityIcon()} vonkajšia vlhkosť`,
- },
- }
- }
|