sk.js 3.1 KB

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