-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·91 lines (81 loc) · 4.3 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Shell Plugin</title>
<script type="text/javascript" src="js/jso.js"></script>
<script src="js/plugin.js"></script>
<script src="js/Deferred.js"></script>
<script src="js/messages.js"></script>
<script src="js/stringTable.js"></script>
<script src="js/keys.js"></script>
<script src="js/requests.js"></script>
<script src="js/pFacesRequests.js"></script>
<script src="js/pFacesCliUtils.js"></script>
<script src="js/axios.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src ="node_modules/clientside-require/dist/bundle.js"></script>
<script src="commands/pFacesListHWCs.js"></script>
<script src="commands/mainCommand.js"></script>
<script src="commands/zipCommand.js"></script>
<script src="commands/loginCommand.js"></script>
<script src="commands/helpCommand.js"></script>
<script src="commands/updateCommand.js"></script>
<script src="commands/compileCommand.js"></script>
<script src="commands/runCommand.js"></script>
<script src="commands/listDevicesCommand.js"></script>
<script src="commands/listJobsCommand.js"></script>
<script src="commands/uploadCommand.js"></script>
<script src="commands/statusCommand.js"></script>
<script src="commands/killCommand.js"></script>
<script src="commands/pFacesVersionCommand.js"></script>
<script src="commands/infoCommand.js"></script>
<script src="commands/agentVersionCommand.js"></script>
<script src="commands/listProjectsCommand.js"></script>
<script src="commands/jobDetailsCommand.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://unpkg.com/github-api/dist/GitHub.bundle.min.js"></script>
<script src="https://rawgithub.com/Stuk/jszip/v1.0.0/jszip.js"></script>
<script src="https://rawgithub.com/Stuk/jszip/v1.0.0/jszip-load.js"></script>
<script>
var userID="";
var headers = { name: "pFaces Orion Plugin", version: "1.0", description: "pFaces Orion Plugin" };
var provider = new orion.PluginProvider(headers);
provider.registerService("orion.core.setting",{}, getLoginPage());
var urls=[];
provider.registerService(["orion.cm.managedservice"],
{ updated: function(properties) {
if (properties === null) {
console.log("We have no properties :(");
} else {
console.log("We got properties!");
var urlsStr=properties.hwcs;
urls=urlsStr.split(";");
userID=properties.login;
}
}
},
{ pid: "example.pod"
});
provider.registerServiceProvider("orion.shell.command", null, mainProperties);
provider.registerServiceProvider("orion.shell.command", zipImpl, zipProperties);
provider.registerServiceProvider("orion.shell.command", pFacesLoginImpl, pFacesLoginProperties);
provider.registerServiceProvider("orion.shell.command", helpImpl, helpProperties);
provider.registerServiceProvider("orion.shell.command", pFacesListHWCsImpl, pFacesListHWCsProperties);
provider.registerServiceProvider("orion.shell.command", updateImpl, updateProperties);
provider.registerServiceProvider("orion.shell.command", compileImpl, compileProperties);
provider.registerServiceProvider("orion.shell.command", runImpl, runProperties);
provider.registerServiceProvider("orion.shell.command", listDevicesImpl, listDevicesProperties);
provider.registerServiceProvider("orion.shell.command", listJobsImpl, listJobsProperties);
provider.registerServiceProvider("orion.shell.command", uploadImpl, uploadProperties);
provider.registerServiceProvider("orion.shell.command", statusImpl, statusProperties);
provider.registerServiceProvider("orion.shell.command", killImpl, killProperties);
provider.registerServiceProvider("orion.shell.command", pFacesVersionImpl, pFacesVersionProperties);
provider.registerServiceProvider("orion.shell.command", infoImpl, infoProperties);
provider.registerServiceProvider("orion.shell.command", agentVersionImpl, agentVersionProperties);
provider.registerServiceProvider("orion.shell.command", pFacesProjectsCommandImpl, pFacesProjectsCommandProperties);
provider.registerServiceProvider("orion.shell.command", jobDetailsImpl, jobDetailsProperties);
provider.connect();
</script>
</head>
</html>