Skip to content

Commit

Permalink
Фикс бага с server.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Seeroy committed Oct 13, 2024
1 parent 8b97921 commit e4289b4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"dependencies": {
"axios": "^0.27.2",
"colors": "^1.4.0",
"cookie-parser": "^1.4.6",
"cookie-parser": "^1.4.7",
"crypto-js": "^4.2.0",
"decompress": "^4.2.1",
"express": "^4.21.0",
"express": "^4.21.1",
"express-fileupload": "^1.5.1",
"ftpd": "^0.2.16",
"iconv-lite": "^0.6.3",
Expand Down
5 changes: 4 additions & 1 deletion web/pages/server.properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ KubekServerPropertiesUI = class {
for (const [key, value] of Object.entries(result)) {
let keyStr = key;
let valueStr = value;
valueStr === null ? valueStr = "" : valueStr = valueStr;
valueStr === null ? valueStr = "" : valueStr;

let valType = this.getValueType(valueStr);
if(keyStr === "server-ip") valType = "string";

let htmlCode = "";
htmlCode += "<tr><td>" + keyStr + "</td><td>";
switch (valType) {
Expand Down

0 comments on commit e4289b4

Please sign in to comment.