devices.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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: "Device Testing",
  18. Desc: "Audio, display, keyboard, mouse and touch testing",
  19. IconPath: "SystemAO/info/img/small_icon.png",
  20. Group: "Device",
  21. StartDir: "SystemAO/info/deviceTesting.html",
  22. })
  23. /*
  24. Locale / Display Language
  25. This method allows users to change their own language
  26. */
  27. registerSetting(settingModule{
  28. Name: "Language",
  29. Desc: "Set the display language of the system",
  30. IconPath: "SystemAO/info/img/small_icon.png",
  31. Group: "Device",
  32. StartDir: "SystemAO/info/locale.html",
  33. RequireAdmin: false,
  34. })
  35. }