sk.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. noWebsocketKey: () => `musíte zadať websocket kľúč.`
  36. }
  37. },
  38. history: {
  39. properties: {
  40. indoorTemp: () => `${icons.tempIcon()} vnutorná teplota`,
  41. indoorPressure: () => `${icons.pressureIcon()} vnutorný tlak`,
  42. indoorHumidity: () => `${icons.humidityIcon()} vnutorná vlhkosť`,
  43. indoorAltitude: () => `${icons.altitudeIcon()} vnutorná nadmorská výška`,
  44. outdoorConnected: () => `${icons.bluetoothConnectionIcon()} pripojenie externej jednotky`,
  45. outdoorTemp: () => `${icons.tempIcon()} vonkajšia teplota`,
  46. outdoorPressure: () => `${icons.pressureIcon()} vonkajší tlak`,
  47. outdoorHumidity: () => `${icons.humidityIcon()} vonkajšia vlhkosť`,
  48. outdoorAltitude: () => `${icons.altitudeIcon()} vonkajšia nadmorská výška`,
  49. },
  50. dateFormats: {
  51. months: {
  52. [`01`]: () => `január`,
  53. [`02`]: () => `február`,
  54. [`03`]: () => `marec`,
  55. [`04`]: () => `apríl`,
  56. [`05`]: () => `máj`,
  57. [`06`]: () => `jún`,
  58. [`07`]: () => `júl`,
  59. [`08`]: () => `august`,
  60. [`09`]: () => `september`,
  61. [`10`]: () => `október`,
  62. [`11`]: () => `november`,
  63. [`12`]: () => `december`,
  64. }
  65. }
  66. }
  67. }