/ Check-in [8c1c2dd67c]
DEMO | DOWNLOAD | DEPLOY | SEARCH
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:More jsiweb -> jsig changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:8c1c2dd67c723131a6d72c0d6f219e8ed89beab5
User & Date: pmacdona 2019-06-01 14:17:18
Context
2019-06-03
23:51
Release "2.8.35". Add null support to puts. check-in: e46317169a user: pmacdona tags: trunk
2019-06-01
14:17
More jsiweb -> jsig changes. check-in: 8c1c2dd67c user: pmacdona tags: trunk
03:41
Release "2.8.34" UTF null fixes. Introduce jsig. check-in: 5128793be7 user: pmacdona tags: trunk
Changes

Changes to lib/Jsi_GenDeep.jsi.

87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

    function main() {
        if (self.create) {
            File.copy('/zvfs/lib/web/markdeep/include.shtml', 'include.shtml');
            File.copy('/zvfs/lib/web/markdeep/nginx_deepdoc.conf', 'nginx_deepdoc.conf');
            File.copy('/zvfs/lib/web/markdeep/jsistyle.css', 'jsistyle.css');
            File.copy('/zvfs/lib/web/dumpdeep.js', 'dumpdeep.js');
            File.copy('/zvfs/lib/web/jsiweb.js', 'jsiweb.js');
            File.copy('/zvfs/lib/web/markdeep.min.js', 'markdeep.min.js');
            File.mkdir('md');
            File.copy('/zvfs/lib/web/markdeep/DeepDoc.md', 'md/DeepDoc.md');
            puts("DeepDoc created. View with 'jsish -W -url Deepdoc'");
            return;
        }
        var fl = [];







|







87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

    function main() {
        if (self.create) {
            File.copy('/zvfs/lib/web/markdeep/include.shtml', 'include.shtml');
            File.copy('/zvfs/lib/web/markdeep/nginx_deepdoc.conf', 'nginx_deepdoc.conf');
            File.copy('/zvfs/lib/web/markdeep/jsistyle.css', 'jsistyle.css');
            File.copy('/zvfs/lib/web/dumpdeep.js', 'dumpdeep.js');
            File.copy('/zvfs/lib/web/jsig.js', 'jsig.js');
            File.copy('/zvfs/lib/web/markdeep.min.js', 'markdeep.min.js');
            File.mkdir('md');
            File.copy('/zvfs/lib/web/markdeep/DeepDoc.md', 'md/DeepDoc.md');
            puts("DeepDoc created. View with 'jsish -W -url Deepdoc'");
            return;
        }
        var fl = [];

Changes to lib/Jsi_Htmlpp.jsi.

122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
                        continue;
                    }
                    pre += "<script>"+begin;
                    if (!ispp) 
                        pre += File.read(fn);
                    else {
                        if (self.jsifiles.length==1 && self.noCheck) {
                            pre += File.read(self.dir+'/web/jsiweb.js');
                            if (self.noCheck)
                                pre += 'Jsi.conf({enable:false});\n';
                        }
                        pre += Jsi_Jspp([fn]);
                    }
                    pre += end + "</script>\n";
                    echo(pre);







|







122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
                        continue;
                    }
                    pre += "<script>"+begin;
                    if (!ispp) 
                        pre += File.read(fn);
                    else {
                        if (self.jsifiles.length==1 && self.noCheck) {
                            pre += File.read(self.dir+'/web/jsig.js');
                            if (self.noCheck)
                                pre += 'Jsi.conf({enable:false});\n';
                        }
                        pre += Jsi_Jspp([fn]);
                    }
                    pre += end + "</script>\n";
                    echo(pre);

Changes to lib/Jsi_Jspp.jsi.

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 * 
 *    function foo(s:string='', n:number=1):string {
 * 
 * becomes
 * 
 *    function foo(s, n) { s=Jsi.ArgCheck(...
 * 
 * Code to perform type checking/default values is provided by "web/jsiweb.js".
 * 
 * Limitation: Comments within function signatures are not supported.
 */

function Jsi_Jspp(files:array|string=null, conf:object=undefined):string|object
{
    var options = { // A JS preprocessor to convert "typed" functions out to web-browser compatible form







|







6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 * 
 *    function foo(s:string='', n:number=1):string {
 * 
 * becomes
 * 
 *    function foo(s, n) { s=Jsi.ArgCheck(...
 * 
 * Code to perform type checking/default values is provided by "web/jsig.js".
 * 
 * Limitation: Comments within function signatures are not supported.
 */

function Jsi_Jspp(files:array|string=null, conf:object=undefined):string|object
{
    var options = { // A JS preprocessor to convert "typed" functions out to web-browser compatible form

Changes to lib/web/jspp.js.

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 * 
 *    function foo(s:string='', n:number=1):string {
 * 
 * becomes
 * 
 *    function foo(s, n) { s=Jsi.ArgCheck(...
 * 
 * Code to perform type checking/default values is provided by "web/jsiweb.js".
 * 
 * Limitation: Comments within function signatures are not supported.
 */

function Jspp(data, conf)
{
    var options = { // A JS preprocessor to convert "typed" functions out to web-browser compatible form







|







3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 * 
 *    function foo(s:string='', n:number=1):string {
 * 
 * becomes
 * 
 *    function foo(s, n) { s=Jsi.ArgCheck(...
 * 
 * Code to perform type checking/default values is provided by "web/jsig.js".
 * 
 * Limitation: Comments within function signatures are not supported.
 */

function Jspp(data, conf)
{
    var options = { // A JS preprocessor to convert "typed" functions out to web-browser compatible form

Changes to www/web.wiki.

131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147


This provides runtime type-checking of function calls.

To debug, we set a breakpoint on warnings which are output
to the console.

The Jsi support functions are included from: <b>/jsi/lib/jsiweb.js</b>

<hr>
<h2 id=utilities>Utilities</h2>

The following resources are available to include from <b>/jsi/lib/</b>:

  *  [../lib/web/jsiweb.js|jsiweb.js]: Support code for type-checking.
  *  [https://github.com/remy/bind.js|bind.js]: Two way binding between data and elements.
  *  [http://zeptojs.com/|zepto.js]: Lite subset of JQuery.







|






|


131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147


This provides runtime type-checking of function calls.

To debug, we set a breakpoint on warnings which are output
to the console.

The Jsi support functions are included from: <b>/jsi/lib/jsig.js</b>

<hr>
<h2 id=utilities>Utilities</h2>

The following resources are available to include from <b>/jsi/lib/</b>:

  *  [../lib/web/jsig.js|jsig.js]: Support code for type-checking.
  *  [https://github.com/remy/bind.js|bind.js]: Two way binding between data and elements.
  *  [http://zeptojs.com/|zepto.js]: Lite subset of JQuery.