8000 new changes · nCodefresh/examples@5a2536e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a2536e

Browse files
committed
new changes
1 parent eeb72bd commit 5a2536e

File tree

13 files changed

+21
-32
lines changed

13 files changed

+21
-32
lines changed

framework-install-business-logic-source/controllers/default.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
exports.install = function(framework) {
2-
framework.route('/', plain_homepage);
2+
framework.route('/', plain_index);
33
};
44

5-
function plain_homepage() {
5+
function plain_index() {
66
var self = this;
77

8-
var layer = SOURCe('test');
8+
var layer = SOURCE('test');
99
// or INCLUDE('test')
1010

1111
self.plain(layer.hello());
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
framework.on('load', function() {
2-
framework.install('source', 'test', 'http://www.totaljs.com/inject-source.js');
2+
framework.install('source', 'test', 'https://www.totaljs.com/examples/inject-source.js');
33
});
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
exports.install = function(framework) {
2-
3-
framework.route('/', plain_homepage);
4-
2+
framework.route('/', plan_index);
53
};
64

7-
function plain_homepage() {
5+
function plan_index() {
86
var self = this;
97
self.plain('name : {0}\nversion : {1}\nauthor : {2}'.format(self.config.name, self.config.version, self.config.author));
108
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
framework.on('load', function() {
2-
framework.install('config', 'http://www.totaljs.com/inject-config.txt');
2+
framework.install('config', 'https://www.totaljs.com/examples/inject-config.txt');
33
});

framework-install-controller/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
var framework = require('total.js').http('debug');
88

99
framework.on('load', function() {
10-
framework.install('controller', 'http://www.totaljs.com/inject-controller.js');
10+
framework.install('controller', 'https://www.totaljs.com/examples/inject-controller.js');
1111
});
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
exports.install = function(framework) {
2-
3-
framework.route('/', plain_homepage);
4-
2+
framework.route('/', plain_index);
53
};
6-
7-
function plain_homepage() {
4+
function plain_index() {
85
var self = this;
9-
self.plain('Homepage');
6+
self.empty();
107
}

framework-install-definition/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
var framework = require('total.js').http('debug');
88

99
framework.on('load', function() {
10-
framework.install('definition', 'http://www.totaljs.com/inject-definition.js');
10+
framework.install('definition', 'https://www.totaljs.com/examples/inject-definition.js');
1111
});
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
exports.install = function(framework) {
2-
3-
framework.route('/', plain_homepage);
4-
2+
framework.route('/', plain_index);
53
};
64

7-
function plain_homepage() {
5+
function plain_index() {
86
var self = this;
97
self.plain(MODEL('user').user());
108
}

framework-install-model/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
var framework = require('total.js').http('debug');
88

99
framework.on('load', function() {
10-
framework.install('model', 'http://www.totaljs.com/inject-model.js');
10+
framework.install('model', 'https://www.totaljs.com/examples/inject-model.js');
1111
});

framework-install-module/controllers/default.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
exports.install = function(framework) {
2-
32
framework.route('/', plain_homepage);
4-
53
};
64

75
function plain_homepage() {

0 commit comments

Comments
 (0)
0