module.util.go 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. STL File Viewer - Plotted from ArOZ Online Beta
  48. */
  49. moduleHandler.RegisterModule(module.ModuleInfo{
  50. Name: "STL Viewer",
  51. Desc: "3D Model Viewer for STL Files",
  52. Group: "Utilities",
  53. IconPath: "SystemAO/utilities/img/stlViewer.png",
  54. Version: "1.0",
  55. SupportFW: false,
  56. SupportEmb: true,
  57. LaunchEmb: "SystemAO/utilities/stlViewer.html",
  58. InitEmbSize: []int{720, 500},
  59. SupportedExt: []string{".stl"},
  60. })
  61. /*
  62. Gcode File Viewer - Plotted from ArOZ Online Beta
  63. */
  64. moduleHandler.RegisterModule(module.ModuleInfo{
  65. Name: "Gcode Viewer",
  66. Desc: "Gcode Toolpath Viewer",
  67. Group: "Utilities",
  68. IconPath: "SystemAO/utilities/img/gcodeViewer.png",
  69. Version: "1.0",
  70. SupportFW: false,
  71. SupportEmb: true,
  72. LaunchEmb: "SystemAO/utilities/gcodeViewer.html",
  73. InitEmbSize: []int{720, 500},
  74. SupportedExt: []string{".gcode", ".gco"},
  75. })
  76. /*
  77. Gcode File Viewer - Plotted from ArOZ Online Beta
  78. */
  79. moduleHandler.RegisterModule(module.ModuleInfo{
  80. Name: "Image Paste",
  81. Desc: "Paste image from clipboard to cloud storage",
  82. Group: "Utilities",
  83. IconPath: "SystemAO/utilities/img/ImagePaste.png",
  84. Version: "1.0",
  85. StartDir: "SystemAO/utilities/imgPaste.html",
  86. SupportFW: true,
  87. SupportEmb: false,
  88. LaunchFWDir: "SystemAO/utilities/imgPaste.html",
  89. InitFWSize: []int{720, 500},
  90. SupportedExt: []string{".png", ".jpg", ".jpeg", ".webp"},
  91. })
  92. }