-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.util.go
104 lines (92 loc) · 2.81 KB
/
module.util.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package main
import (
module "imuslab.com/wdos/mod/modules"
)
/*
MODULE UTIL HANDLER
This is a util module for doing basic registry works and < 20 line server side handling.
DO NOT USE THIS TO WRITE A NEW MODULE
>> Updates v1.112
This util functions will be deprecated before v1.120.
Please migrate all of the modules out as WebApps using agi interface
*/
//Register the utilities here
func util_init() {
/*
ArOZ Video Player - The basic video player
*/
//Open Documents Viewer
moduleHandler.RegisterModule(module.ModuleInfo{
Name: "Video Player",
Desc: "Basic Video Player",
Group: "Utilities",
IconPath: "SystemAO/utilities/img/mediaPlayer.png",
Version: "1.0",
SupportFW: false,
SupportEmb: true,
LaunchEmb: "SystemAO/utilities/mediaPlayer.html",
InitEmbSize: []int{720, 500},
SupportedExt: []string{".mp4", ".webm", ".ogv"},
})
/*
ArOZ Audio Player - Basic Audio File Player
*/
moduleHandler.RegisterModule(module.ModuleInfo{
Name: "Audio Player",
Desc: "Basic Audio Player",
Group: "Utilities",
IconPath: "SystemAO/utilities/img/audio.png",
Version: "1.0",
SupportFW: false,
SupportEmb: true,
LaunchEmb: "SystemAO/utilities/audio.html",
InitEmbSize: []int{533, 164},
SupportedExt: []string{".mp3", ".wav", ".ogg", ".flac"},
})
/*
STL File Viewer - Plotted from ArOZ Online Beta
*/
moduleHandler.RegisterModule(module.ModuleInfo{
Name: "STL Viewer",
Desc: "3D Model Viewer for STL Files",
Group: "Utilities",
IconPath: "SystemAO/utilities/img/stlViewer.png",
Version: "1.0",
SupportFW: false,
SupportEmb: true,
LaunchEmb: "SystemAO/utilities/stlViewer.html",
InitEmbSize: []int{720, 500},
SupportedExt: []string{".stl"},
})
/*
Gcode File Viewer - Plotted from ArOZ Online Beta
*/
moduleHandler.RegisterModule(module.ModuleInfo{
Name: "Gcode Viewer",
Desc: "Gcode Toolpath Viewer",
Group: "Utilities",
IconPath: "SystemAO/utilities/img/gcodeViewer.png",
Version: "1.0",
SupportFW: false,
SupportEmb: true,
LaunchEmb: "SystemAO/utilities/gcodeViewer.html",
InitEmbSize: []int{720, 500},
SupportedExt: []string{".gcode", ".gco"},
})
/*
Gcode File Viewer - Plotted from ArOZ Online Beta
*/
moduleHandler.RegisterModule(module.ModuleInfo{
Name: "Image Paste",
Desc: "Paste image from clipboard to cloud storage",
Group: "Utilities",
IconPath: "SystemAO/utilities/img/ImagePaste.png",
Version: "1.0",
StartDir: "SystemAO/utilities/imgPaste.html",
SupportFW: true,
SupportEmb: false,
LaunchFWDir: "SystemAO/utilities/imgPaste.html",
InitFWSize: []int{720, 500},
SupportedExt: []string{".png", ".jpg", ".jpeg", ".webp"},
})
}