Skip to content

Commit ada7343

Browse files
/version command add, test on Win7/Win8/UNIX (2014.1/2014.2)
1 parent 0bbea67 commit ada7343

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

csp/webTerminal/js/application.js.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
*/
77
var application = new function() {
88
9-
var version = "0.9.9.9 beta"; // @link copy to language.js
9+
var version = "1.0 beta"; // @link copy to language.js
1010
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
1212
1313
this.browser = "gc";
1414
this.authorizationKey = "";
1515
1616
/**
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:
1818
*
1919
* 1. Add theme name to the list below;
2020
* 2. Make CSS theme file like theme-default.css;
@@ -31,7 +31,7 @@ var application = new function() {
3131
"monokai": 0
3232
};
3333
34-
this.version = function() { return version };
34+
this.version = function() { return "Caché WEB Terminal v" + version };
3535
3636
this.HELPBOX = lang.get(49);
3737

csp/webTerminal/js/language.js.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var lang = new function() {
2929
0: parser.highlightHTML("/help"),
3030
1: parser.highlightHTML("/tip"),
3131
2: parser.highlightHTML("/connect"),
32-
3: "0.9.9.9 beta",
32+
3: "1.0 beta", // @link copy to application.js
3333
4: 1,
3434
5: parser.highlightHTML("set test = 12"),
3535
6: parser.highlightHTML("write test"),

csp/webTerminal/js/terminal.js.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@ var terminal = new function() {
367367
false
368368
);
369369
},
370+
371+
version: function() {
372+
terminal.output.write(application.version());
373+
},
370374
371375
clear: function() {
372376
dom.clearLogs();
@@ -410,10 +414,10 @@ var terminal = new function() {
410414
411415
about: function() {
412416
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) {' +
414418
' w "'+lang.get(18)+' InterSystems Cache" } elseif (i=1.8) { w "by ZitRo" } elseif (i=4.4) { w "' +
415419
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}');
417421
},
418422
419423
siege: function(iterations,serverDelay) {
@@ -1676,6 +1680,7 @@ var terminal = new function() {
16761680
"/reset": 0,
16771681
"/reconnect": 0,
16781682
"/autocomplete": 0,
1683+
"/version": 0,
16791684
"/save": 0,
16801685
"/load": 0,
16811686
"/settings": 0,
@@ -1685,7 +1690,8 @@ var terminal = new function() {
16851690
"/favorite": 0,
16861691
"/watch": 0,
16871692
"/tip": 1,
1688-
"/echo": 0
1693+
"/echo": 0,
1694+
"/about": 0
16891695
},
16901696
"commands": {
16911697
"!autocomplete": {

csp/webTerminal/js/unit.js.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<CSP name="WebTerminal/js/unit.js" application="/csp/sys/" default="1"><![CDATA[
44
/**
55
* Provides unit tests for terminal application. Use unit.run() to run unit tests.
6+
*
7+
* Coverage: 1%
68
*/
79
var unit = new function() {
810

0 commit comments

Comments
 (0)