devices.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package main
  2. /*
  3. Device Handler
  4. This script mainly handle the external devices like client devices reflect information
  5. or IoT devices. If you want to handle storage devices mounting, use system.storage.go instead.
  6. */
  7. func DeviceServiceInit() {
  8. //Register Device related settings. Compatible to ArOZ Online Beta
  9. registerSetting(settingModule{
  10. Name: "Client Device",
  11. Desc: "Detail about the browser you are using",
  12. IconPath: "SystemAO/info/img/small_icon.png",
  13. Group: "Device",
  14. StartDir: "SystemAO/info/clientInfo.html",
  15. })
  16. registerSetting(settingModule{
  17. Name: "Audio Testing",
  18. Desc: "Speaker and volume testing",
  19. IconPath: "SystemAO/info/img/small_icon.png",
  20. Group: "Device",
  21. StartDir: "SystemAO/info/audio.html",
  22. })
  23. registerSetting(settingModule{
  24. Name: "Display Testing",
  25. Desc: "Display testing tools",
  26. IconPath: "SystemAO/info/img/small_icon.png",
  27. Group: "Device",
  28. StartDir: "SystemAO/info/display.html",
  29. })
  30. /*
  31. Locale / Display Language
  32. This method allows users to change their own language
  33. */
  34. registerSetting(settingModule{
  35. Name: "Language",
  36. Desc: "Set the display language of the system",
  37. IconPath: "SystemAO/info/img/small_icon.png",
  38. Group: "Device",
  39. StartDir: "SystemAO/info/locale.html",
  40. RequireAdmin: false,
  41. })
  42. }