|
@@ -10,7 +10,7 @@
|
|
|
<script src="../script/ao_module.js"></script>
|
|
|
<script src="../script/semantic/semantic.min.js"></script>
|
|
|
<script type="application/javascript" src="../script/clipboard.min.js"></script>
|
|
|
- <title>ARZ Serverless</title>
|
|
|
+ <title>Serverless</title>
|
|
|
<style>
|
|
|
body{
|
|
|
background-color:white;
|
|
@@ -55,43 +55,48 @@
|
|
|
border-style: solid;
|
|
|
border-color: #555 transparent transparent transparent;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ .tooltitle{
|
|
|
+ height: 5em;
|
|
|
+ background-color: #5d6f77;
|
|
|
+ color: white;
|
|
|
+ }
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
- <br>
|
|
|
- <div class="ui container" style="height: 100% !important;">
|
|
|
- <div>
|
|
|
- <h2 class="ui header">
|
|
|
- <img src="img/desktop_icon.png">
|
|
|
- <div class="content">
|
|
|
- ARZ Serverless
|
|
|
- <div class="sub header">Allow external services to run AGI scripts</div>
|
|
|
+ <div class="tooltitle">
|
|
|
+ <br>
|
|
|
+ <div class="ui container">
|
|
|
+ <h4 class="ui header">
|
|
|
+ <div class="content" style="color: white;">
|
|
|
+ Serverless Control Panel
|
|
|
+ <div class="sub header" style="color: rgb(233, 233, 233);">Allow external services to run AGI scripts</div>
|
|
|
</div>
|
|
|
- </h2>
|
|
|
+ </h4>
|
|
|
</div>
|
|
|
- <div class="ui divider"></div>
|
|
|
- <div id="deleteSuceed" style="display:none;" class="ui green inverted segment"><i class="checkmark icon"></i>Deleted</div>
|
|
|
- <div>
|
|
|
- <table class="ui celled table">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>UUID (access token)</th>
|
|
|
- <th>AGI Path</th>
|
|
|
- <th>Action</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="records">
|
|
|
-
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <div style="width: 100%" align="center">
|
|
|
- <div class="ui breadcrumb" id="pageIndexs">
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div id="deleteSuceed" style="display:none;" class="ui green inverted segment"><i class="checkmark icon"></i>Service Deleted</div>
|
|
|
+ <div>
|
|
|
+ <table class="ui celled unstackable table">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>UUID (access token)</th>
|
|
|
+ <th>AGI Path</th>
|
|
|
+ <th>Action</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="records">
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <div style="width: 100%" align="center">
|
|
|
+ <div class="ui breadcrumb" id="pageIndexs">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="ui divider"></div>
|
|
|
- <div id="updateSuceed" style="display:none;" class="ui green inverted segment"><i class="checkmark icon"></i>Added</div>
|
|
|
+ </div>
|
|
|
+ <div class="ui divider"></div>
|
|
|
+ <div id="updateSuceed" style="display:none;" class="ui green inverted segment"><i class="checkmark icon"></i>Service Added</div>
|
|
|
+ <div class="ui container">
|
|
|
<h4>Select AGI Script</h4>
|
|
|
<p>Select a script to be executed by 3rd party application via RESTFUL request. <br>
|
|
|
Note that the AGI script will be executed with <b>your user scope</b></p>
|
|
@@ -99,10 +104,12 @@
|
|
|
<input id="agiPath" type="text" placeholder="Select Location" readonly="true">
|
|
|
<button class="ui black button" onclick="openfileselector();"><i class="folder open icon"></i> Open</button>
|
|
|
</div>
|
|
|
- <br>
|
|
|
- <button class="ui positive button" onclick="add();"><i class="ui checkmark icon"></i> Add</button>
|
|
|
+ <button class="ui positive right floated button" onclick="add();" style="margin-top: 0.4em;"><i class="ui checkmark icon"></i> Add</button>
|
|
|
<br><br>
|
|
|
+ <div class="ui divider"></div>
|
|
|
+ <p><small>Misuse of serverless function might affect your account safty or causes data loss. Please use this function with caution and do not copy and paste code from unknown sources.</small></p>
|
|
|
</div>
|
|
|
+ <br><br>
|
|
|
<script>
|
|
|
$.getJSON( "/api/ajgi/listExt", function( data ) {
|
|
|
$.each( data, function( key, val ) {
|
|
@@ -192,7 +199,7 @@
|
|
|
<td>` + generateClipboardText(uuid) +`</td>
|
|
|
<td>` + path + `</td>
|
|
|
<td>
|
|
|
- <button class="ui icon negative button" uuid="` + uuid + `" onclick="delRecord(this)">
|
|
|
+ <button class="ui icon basic circular negative button" uuid="` + uuid + `" onclick="delRecord(this)">
|
|
|
<i class="close icon"></i>
|
|
|
</button>
|
|
|
</td>
|