8000 Merge branch 'master' of https://github.com/totaljs/examples · javascriptit/examples-1@41435e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 41435e1

Browse files
committed
Merge branch 'master' of https://github.com/totaljs/examples
2 parents 332131e + 1a79c77 commit 41435e1

File tree

120 files changed

+1478
-560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+1478
-560
lines changed

angularjs-2/index.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
require('total.js').http('debug');
1 10000 +
// ===================================================
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
5+
// ===================================================
6+
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

angularjs-bootstrap/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

angularjs-common/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

angularjs-routing/index.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
51
// ===================================================
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
5+
// ===================================================
6+
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
615

7-
require('total.js').http('debug');
16+
require('total.js/debug')(options);

angularjs-websocket/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

angularjs/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

async/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

authorization-roles/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

authorization-www-basic/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

authorization-www-basic/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export.uninstall = function() {
123123
F.removeListener('service', housekeeping);
124124
}
125125
```
126+
126127
### Bonus 2: URI authentication
127128

128129
The `.baa()` method only checks request HTTP headers for credentials, it doesn't check for credentials in the URI like this:

authorization/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

blocks/index.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
require('total.js').http('debug');
1+
// ===================================================
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
5+
// ===================================================
6+
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

bootstrap/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

cache-http/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

cache-partial/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

cache-static-file-refresh/index.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR PRODUCTION
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
// static cache works in release mode
7+
const options = {};
88

9-
require('total.js').http('release');
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
14+
require('total.js').http('release', options);
15+
// require('total.js').cluster.http(5, 'release', options);

changes/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
// ===================================================
2-
// IMPORTANT: only for development
3-
// total.js - web application framework for node.js
4-
// http://www.totaljs.com
2+
// FOR DEVELOPMENT
3+
// Total.js - framework for Node.js platform
4+
// https://www.totaljs.com
55
// ===================================================
66

7-
require('total.js').http('debug');
7+
const options = {};
8+
9+
// options.ip = '127.0.0.1';
10+
// options.port = parseInt(process.argv[2]);
11+
// options.config = { name: 'Total.js' };
12+
// options.sleep = 3000;
13+
// options.inspector = 9229;
14+
// options.debugger = 40894;
15+
16+
require('total.js/debug')(options);

0 commit comments

Comments
 (0)
0