Spaces:
Paused
Paused
Update static/index.html
Browse files- static/index.html +63 -4
static/index.html
CHANGED
|
@@ -38,22 +38,81 @@
|
|
| 38 |
</li>
|
| 39 |
</ul>
|
| 40 |
<div class="tab-content">
|
|
|
|
| 41 |
<div class="tab-pane fade show active" id="config" role="tabpanel">
|
| 42 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
</div>
|
|
|
|
|
|
|
| 44 |
<div class="tab-pane fade" id="projects" role="tabpanel">
|
| 45 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
</div>
|
|
|
|
|
|
|
| 47 |
<div class="tab-pane fade" id="spark" role="tabpanel">
|
| 48 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
</div>
|
|
|
|
|
|
|
| 50 |
<div class="tab-pane fade" id="test" role="tabpanel">
|
| 51 |
-
<
|
|
|
|
| 52 |
</div>
|
| 53 |
</div>
|
| 54 |
</div>
|
| 55 |
</div>
|
| 56 |
|
|
|
|
| 57 |
<script src="js/common.js"></script>
|
| 58 |
<script src="js/auth.js"></script>
|
| 59 |
<script src="js/config.js"></script>
|
|
|
|
| 38 |
</li>
|
| 39 |
</ul>
|
| 40 |
<div class="tab-content">
|
| 41 |
+
<!-- Config Tab -->
|
| 42 |
<div class="tab-pane fade show active" id="config" role="tabpanel">
|
| 43 |
+
<form>
|
| 44 |
+
<div class="form-group">
|
| 45 |
+
<label for="work-mode">Work Mode</label>
|
| 46 |
+
<select id="work-mode" class="form-control" onchange="toggleCloudToken()">
|
| 47 |
+
<option value="hfcloud">hfcloud</option>
|
| 48 |
+
<option value="cloud">cloud</option>
|
| 49 |
+
<option value="on-premise">on-premise</option>
|
| 50 |
+
</select>
|
| 51 |
+
</div>
|
| 52 |
+
<div class="form-group">
|
| 53 |
+
<label for="cloud-token">Cloud Token</label>
|
| 54 |
+
<input type="text" id="cloud-token" class="form-control">
|
| 55 |
+
</div>
|
| 56 |
+
<button type="button" class="btn btn-info mb-2" onclick="getConfig()">Load Config</button>
|
| 57 |
+
<button type="button" class="btn btn-success mb-2" onclick="updateConfig()">Update Config</button>
|
| 58 |
+
<div id="config-result" class="mt-2"></div>
|
| 59 |
+
</form>
|
| 60 |
</div>
|
| 61 |
+
|
| 62 |
+
<!-- Projects Tab -->
|
| 63 |
<div class="tab-pane fade" id="projects" role="tabpanel">
|
| 64 |
+
<button class="btn btn-info mb-2" onclick="listProjects()">List Projects</button>
|
| 65 |
+
<div id="projects-table" class="table-responsive">
|
| 66 |
+
<table class="table table-bordered">
|
| 67 |
+
<thead>
|
| 68 |
+
<tr>
|
| 69 |
+
<th onclick="sortTable(0)">Project Name</th>
|
| 70 |
+
<th>Version</th>
|
| 71 |
+
<th>Enabled</th>
|
| 72 |
+
<th>Status</th>
|
| 73 |
+
<th>Last Accessed</th>
|
| 74 |
+
</tr>
|
| 75 |
+
</thead>
|
| 76 |
+
<tbody id="projects-body">
|
| 77 |
+
<!-- Dynamic rows here -->
|
| 78 |
+
</tbody>
|
| 79 |
+
</table>
|
| 80 |
+
</div>
|
| 81 |
+
<div id="project-result" class="mt-2"></div>
|
| 82 |
</div>
|
| 83 |
+
|
| 84 |
+
<!-- Spark Tab -->
|
| 85 |
<div class="tab-pane fade" id="spark" role="tabpanel">
|
| 86 |
+
<button class="btn btn-info mb-2" onclick="sparkProjectList()">Get Spark Project List</button>
|
| 87 |
+
<div id="spark-table" class="table-responsive">
|
| 88 |
+
<table class="table table-bordered">
|
| 89 |
+
<thead>
|
| 90 |
+
<tr>
|
| 91 |
+
<th>Project</th>
|
| 92 |
+
<th>Version</th>
|
| 93 |
+
<th>Enabled</th>
|
| 94 |
+
<th>Status</th>
|
| 95 |
+
<th>Last Accessed</th>
|
| 96 |
+
</tr>
|
| 97 |
+
</thead>
|
| 98 |
+
<tbody id="spark-body">
|
| 99 |
+
<!-- Spark rows here -->
|
| 100 |
+
</tbody>
|
| 101 |
+
</table>
|
| 102 |
+
</div>
|
| 103 |
+
<div id="spark-result" class="mt-2"></div>
|
| 104 |
</div>
|
| 105 |
+
|
| 106 |
+
<!-- Test Tab -->
|
| 107 |
<div class="tab-pane fade" id="test" role="tabpanel">
|
| 108 |
+
<button class="btn btn-warning mb-2" onclick="runTests()">Run All Tests</button>
|
| 109 |
+
<div id="test-result" class="mt-2"></div>
|
| 110 |
</div>
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
</div>
|
| 114 |
|
| 115 |
+
<!-- JS Files -->
|
| 116 |
<script src="js/common.js"></script>
|
| 117 |
<script src="js/auth.js"></script>
|
| 118 |
<script src="js/config.js"></script>
|