sk.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. bluetoothConnectionIcon: () => `
  36. <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
  37. <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m7 7l10 10l-5 5V2l5 5L7 17m11-5h3M3 12h3" />
  38. </svg>
  39. `
  40. }
  41. export default {
  42. general,
  43. icons,
  44. settings: {
  45. errors: {
  46. noCloudURL: () => `musíte zadať cloud url.`,
  47. noWebsocketKey: () => `musíte zadať websocket kľúč.`
  48. }
  49. },
  50. history: {
  51. properties: {
  52. indoorTemp: () => `${icons.tempIcon()} vnutorná teplota`,
  53. indoorPressure: () => `${icons.pressureIcon()} vnutorný tlak`,
  54. indoorHumidity: () => `${icons.humidityIcon()} vnutorná vlhkosť`,
  55. outdoorConnected: () => `${icons.bluetoothConnectionIcon()} pripojenie externej jednotky`,
  56. outdoorTemp: () => `${icons.tempIcon()} vonkajšia teplota`,
  57. outdoorPressure: () => `${icons.pressureIcon()} vonkajší tlak`,
  58. outdoorHumidity: () => `${icons.humidityIcon()} vonkajšia vlhkosť`,
  59. },
  60. }
  61. }