- update version to 2.1.2

- fixed server type list
- bump gamedig to 4.0.6
This commit is contained in:
2023-02-23 23:06:48 -07:00
parent e2e8119d7f
commit 9d200b60a1
4 changed files with 430 additions and 541 deletions

View File

@@ -30,12 +30,13 @@
oneditprepare: function() {
$.getJSON('/gamedig/types', function(data) {
let html = '<table>' +
'<thead id="query-game-server-types-table"><tr><td><strong>Type</strong></td><td><strong>Name</strong></td></tr></thead>' +
'<thead id="query-game-server-types-table"><tr><td><strong>Type</strong></td><td><strong>Name</strong></td><td><strong>Protocol</strong></td></tr></thead>' +
'<tbody id="query-game-server-type-rows">';
for(var type in data) {
for(let game of data) {
html += "<tr class=\"query-game-server-type-row\">" +
"<td>"+type+"</td>" +
"<td>"+data[type]+"</td>" +
"<td>"+game['type']+"</td>" +
"<td>"+game['name']+"</td>" +
"<td>"+game['protocol']+"</td>" +
"</tr>";
}
html += '</tbody>' +