module.util.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package main
  2. import (
  3. module "imuslab.com/arozos/mod/modules"
  4. )
  5. /*
  6. MODULE UTIL HANDLER
  7. This is a util module for doing basic registry works and < 20 line server side handling.
  8. DO NOT USE THIS TO WRITE A NEW MODULE
  9. >> Updates v1.112
  10. This util functions will be deprecated before v1.120.
  11. Please migrate all of the modules out as WebApps using agi interface
  12. */
  13. //Register the utilities here
  14. func util_init() {
  15. /*
  16. ArOZ Video Player - The basic video player
  17. */
  18. //Open Documents Viewer
  19. moduleHandler.RegisterModule(module.ModuleInfo{
  20. Name: "Video Player",
  21. Desc: "Basic Video Player",
  22. Group: "Utilities",
  23. IconPath: "SystemAO/utilities/img/mediaPlayer.png",
  24. Version: "1.0",
  25. SupportFW: false,
  26. SupportEmb: true,
  27. LaunchEmb: "SystemAO/utilities/mediaPlayer.html",
  28. InitEmbSize: []int{720, 500},
  29. SupportedExt: []string{".mp4", ".webm", ".ogv"},
  30. })
  31. /*
  32. ArOZ Audio Player - Basic Audio File Player
  33. */
  34. moduleHandler.RegisterModule(module.ModuleInfo{
  35. Name: "Audio Player",
  36. Desc: "Basic Audio Player",
  37. Group: "Utilities",
  38. IconPath: "SystemAO/utilities/img/audio.png",
  39. Version: "1.0",
  40. SupportFW: false,
  41. SupportEmb: true,
  42. LaunchEmb: "SystemAO/utilities/audio.html",
  43. InitEmbSize: []int{533, 164},
  44. SupportedExt: []string{".mp3", ".wav", ".ogg", ".flac"},
  45. })
  46. /*
  47. 3D Model Viewer and Gcode Viewer
  48. Both superseded by the "3D Viewer" WebApp in ./web/3D Viewer/, which
  49. registers itself from its own init.agi and additionally supports
  50. GLB/glTF, PLY, 3MF, FBX, DAE, STEP/IGES/BREP and sliced G-code.
  51. */
  52. /*
  53. Image Paste
  54. */
  55. moduleHandler.RegisterModule(module.ModuleInfo{
  56. Name: "Image Paste",
  57. Desc: "Paste image from clipboard to cloud storage",
  58. Group: "Utilities",
  59. IconPath: "SystemAO/utilities/img/ImagePaste.png",
  60. Version: "1.0",
  61. StartDir: "SystemAO/utilities/imgPaste.html",
  62. SupportFW: true,
  63. SupportEmb: false,
  64. LaunchFWDir: "SystemAO/utilities/imgPaste.html",
  65. InitFWSize: []int{720, 500},
  66. SupportedExt: []string{".png", ".jpg", ".jpeg", ".webp"},
  67. })
  68. }