File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
var application = new function() {
8
8
9
- var version = "0.9.9.9 beta"; // @link copy to language.js
9
+ var version = "1.0 beta"; // @link copy to language.js
10
10
this.debug = false; // remove for release
11
- this.debugUrlPart = "172.27.25.133 :57772"; // in-debug mode
11
+ this.debugUrlPart = "127.0.0.1 :57772"; // ip address to forward connection to
12
12
13
13
this.browser = "gc";
14
14
this.authorizationKey = "";
15
15
16
16
/**
17
- * How to make your own theme for this terminal application? Easier then ever!
17
+ * How to make your own theme for this terminal application? Just follow the next:
18
18
*
19
19
* 1. Add theme name to the list below;
20
20
* 2. Make CSS theme file like theme-default.css;
@@ -31,7 +31,7 @@ var application = new function() {
31
31
"monokai": 0
32
32
};
33
33
34
- this.version = function() { return version };
34
+ this.version = function() { return "Caché WEB Terminal v" + version };
35
35
36
36
this.HELPBOX = lang.get(49);
37
37
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ var lang = new function() {
29
29
0: parser.highlightHTML("/help"),
30
30
1: parser.highlightHTML("/tip"),
31
31
2: parser.highlightHTML("/connect"),
32
- 3: "0.9.9.9 beta",
32
+ 3: "1.0 beta", // @link copy to application.js
33
33
4: 1,
34
34
5: parser.highlightHTML("set test = 12"),
35
35
6: parser.highlightHTML("write test"),
Original file line number Diff line number Diff line change @@ -367,6 +367,10 @@ var terminal = new function() {
367
367
false
368
368
);
369
369
},
370
+
371
+ version: function() {
372
+ terminal.output.write(application.version());
373
+ },
370
374
371
375
clear: function() {
372
376
dom.clearLogs();
@@ -410,10 +414,10 @@ var terminal = new function() {
410
414
411
415
about: function() {
412
416
server.submit(terminal.serverActions.EXECUTE, 'for i=0:0.2:$zpi*2 { for u=1:1:($zsin(i)*15 + 15) { w ' +
413
- '" " } w "# " if (i=1.4) { w "CacheWebTerminal v ' + application.version() + '" } elseif (i=1.6) {' +
417
+ '" " } w "# " if (i=1.4) { w "' + application.version() + '" } elseif (i=1.6) {' +
414
418
' w "'+lang.get(18)+' InterSystems Cache" } elseif (i=1.8) { w "by ZitRo" } elseif (i=4.4) { w "' +
415
419
lang.get(19) + '" } elseif (i=4.6) { w "'+lang.get(20)+': http://intersystems-ru.github.io/webterm' +
416
- 'inal" } elseif (i=4.8) { w "'+lang.get(21)+'" } elseif (i=5) { w "'+lang.get(22)+'..." } w ! h 0.04}');
420
+ 'inal" } elseif (i=4.8) { w "'+lang.get(21)+'" } w ! h 0.04}');
417
421
},
418
422
419
423
siege: function(iterations,serverDelay) {
@@ -1676,6 +1680,7 @@ var terminal = new function() {
1676
1680
"/reset": 0,
1677
1681
"/reconnect": 0,
1678
1682
"/autocomplete": 0,
1683
+ "/version": 0,
1679
1684
"/save": 0,
1680
1685
"/load": 0,
1681
1686
"/settings": 0,
@@ -1685,7 +1690,8 @@ var terminal = new function() {
1685
1690
"/favorite": 0,
1686
1691
"/watch": 0,
1687
1692
"/tip": 1,
1688
- "/echo": 0
1693
+ "/echo": 0,
1694
+ "/about": 0
1689
1695
},
1690
1696
"commands": {
1691
1697
"!autocomplete": {
Original file line number Diff line number Diff line change 3
3
<CSP name =" WebTerminal/js/unit.js" application =" /csp/sys/" default =" 1" ><![CDATA[
4
4
/**
5
5
* Provides unit tests for terminal application. Use unit.run() to run unit tests.
6
+ *
7
+ * Coverage: 1%
6
8
*/
7
9
var unit = new function() {
8
10
You can’t perform that action at this time.
0 commit comments