Skip to content

Commit 3874301

Browse files
committed
Updated for release 2.9.0
1 parent 8c7f028 commit 3874301

11 files changed

Lines changed: 273 additions & 9 deletions

File tree

html/about.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<img src="../images/about.png" alt="about box">
1313
</div>
1414
<div class="buttonArea">
15+
<button id="system">System Information</button>
1516
<button class="right" id="licenses">Licenses</button>
1617
</div>
1718
<script src="../js/about.js"></script>

html/systemInfo.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<title >System Information</title>
6+
<link id="theme" rel="stylesheet" type="text/css" href="../css/light.css">
7+
<link rel="stylesheet" type="text/css" href="../css/fonts.css">
8+
</head>
9+
10+
<body id="body">
11+
12+
<table>
13+
<tr>
14+
<td>TMXEditor</td>
15+
<td id="tmxeditor"></td>
16+
</tr>
17+
<tr>
18+
<td>OpenXLIFF</td>
19+
<td id="openxliff"></td>
20+
</tr>
21+
<tr>
22+
<td>Java</td>
23+
<td id="java"></td>
24+
</tr>
25+
<tr>
26+
<td>Electron</td>
27+
<td id="electron"></td>
28+
</tr>
29+
</table>
30+
<script src="../js/keyboardHandler.js"></script>
31+
<script src="../js/systemInfo.js"></script>
32+
</body>
33+
34+
</html>

jars/openxliff.jar

478 Bytes
Binary file not shown.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tmxeditor",
33
"productName": "TMXEditor",
4-
"version": "2.8.0",
4+
"version": "2.9.0",
55
"description": "TMX Editor",
66
"main": "js/app.js",
77
"scripts": {
@@ -19,7 +19,7 @@
1919
"url": "https://github.com/rmraya/TMXEditor.git"
2020
},
2121
"devDependencies": {
22-
"electron": "^16.0.1",
22+
"electron": "^16.0.3",
2323
"typescript": "^4.5.2"
2424
}
2525
}

src/com/maxprograms/tmxserver/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ private Constants() {
1919
}
2020

2121
public static final String APPNAME = "TMXEditor";
22-
public static final String VERSION = "2.8.0";
23-
public static final String BUILD = "20211122_1037";
22+
public static final String VERSION = "2.9.0";
23+
public static final String BUILD = "20211201_0811";
2424

2525
public static final String REASON = "reason";
2626
public static final String STATUS = "status";

src/com/maxprograms/tmxserver/TMXServer.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ public void handle(HttpExchange t) throws IOException {
264264
case "processTasks":
265265
response = processTasks(json);
266266
break;
267+
case "systemInfo":
268+
response = getSystemInformation();
269+
break;
267270
default:
268271
JSONObject unknown = new JSONObject();
269272
unknown.put(Constants.STATUS, Constants.ERROR);
@@ -721,4 +724,12 @@ private String getTuData(String id) {
721724
private String getTuvData(String id, String lang) {
722725
return service.getTuvData(id, lang).toString();
723726
}
727+
728+
private static String getSystemInformation() {
729+
JSONObject result = new JSONObject();
730+
result.put("tmxeditor", Constants.VERSION + " Build: " + Constants.BUILD);
731+
result.put("openxliff", com.maxprograms.converters.Constants.VERSION + " Build: " + com.maxprograms.converters.Constants.BUILD);
732+
result.put("java", System.getProperty("java.version") + " Vendor: " + System.getProperty("java.vendor"));
733+
return result.toString();
734+
}
724735
}

tmxeditor.pdf

532 Bytes
Binary file not shown.

ts/about.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ class About {
2323
this.electron.ipcRenderer.on('set-version', (event: Electron.IpcRendererEvent, arg: any) => {
2424
document.getElementById('version').innerHTML = arg;
2525
});
26+
document.getElementById('system').addEventListener('click', () => {
27+
this.electron.ipcRenderer.send('system-info-clicked');
28+
document.getElementById('system').blur();
29+
});
2630
document.getElementById('licenses').addEventListener('click', () => {
2731
this.electron.ipcRenderer.send('licenses-clicked');
32+
document.getElementById('licenses').blur();
2833
});
2934
document.addEventListener('keydown', (event: KeyboardEvent) => {
30-
if (event.code === 'Enter' || event.code === 'NumpadEnter') {
31-
this.electron.ipcRenderer.send('licenses-clicked');
32-
}
3335
if (event.code === 'Escape') {
3436
this.electron.ipcRenderer.send('close-about');
3537
}

0 commit comments

Comments
 (0)