sk.js 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. const general = {
  2. dateFormats: {
  3. months: {
  4. [`01`]: () => `január`,
  5. [`02`]: () => `február`,
  6. [`03`]: () => `marec`,
  7. [`04`]: () => `apríl`,
  8. [`05`]: () => `máj`,
  9. [`06`]: () => `jún`,
  10. [`07`]: () => `júl`,
  11. [`08`]: () => `august`,
  12. [`09`]: () => `september`,
  13. [`10`]: () => `október`,
  14. [`11`]: () => `november`,
  15. [`12`]: () => `december`,
  16. }
  17. },
  18. }
  19. const icons = {
  20. tempIcon: () => `
  21. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  22. <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" />
  23. </svg>
  24. `,
  25. pressureIcon: () => `
  26. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  27. <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" />
  28. </svg>
  29. `,
  30. humidityIcon: () => `
  31. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  32. <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" />
  33. </svg>
  34. `,
  35. altitudeIcon: () => `
  36. <svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  37. <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  38. <circle cx="12" cy="12" r="10" />
  39. <path d="m16 12l-4-4l-4 4m4 4V8" />
  40. </g>
  41. </svg>
  42. `,
  43. bluetoothConnectionIcon: () => `
  44. <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  45. <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m7 7l10 10l-5 5V2l5 5L7 17m11-5h3M3 12h3" />
  46. </svg>
  47. `
  48. }
  49. export default {
  50. general,
  51. icons,
  52. settings: {
  53. errors: {
  54. noCloudURL: () => `musíte zadať cloud url.`,
  55. noWebsocketKey: () => `musíte zadať websocket kľúč.`
  56. }
  57. },
  58. history: {
  59. properties: {
  60. indoorTemp: () => `${icons.tempIcon()} vnutorná teplota`,
  61. indoorPressure: () => `${icons.pressureIcon()} vnutorný tlak`,
  62. indoorHumidity: () => `${icons.humidityIcon()} vnutorná vlhkosť`,
  63. indoorAltitude: () => `${icons.altitudeIcon()} vnutorná nadmorská výška`,
  64. outdoorConnected: () => `${icons.bluetoothConnectionIcon()} pripojenie externej jednotky`,
  65. outdoorTemp: () => `${icons.tempIcon()} vonkajšia teplota`,
  66. outdoorPressure: () => `${icons.pressureIcon()} vonkajší tlak`,
  67. outdoorHumidity: () => `${icons.humidityIcon()} vonkajšia vlhkosť`,
  68. outdoorAltitude: () => `${icons.altitudeIcon()} vonkajšia nadmorská výška`,
  69. },
  70. }
  71. }