-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-backend.js
142 lines (107 loc) · 4.08 KB
/
test-backend.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
(function(___scope___) { var $isBackend = ___scope___.isNode; var realm = ___scope___.realm;
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
realm.module("$custom", [], function () {
var $_exports;
$_exports = function Pukka() {
_classCallCheck(this, Pukka);
};
return $_exports;
});
realm.module("test.MySuperClass", ["myapp.myModule", "myapp.utils.lodash"], function (myModule, _) {
var $_exports;
var MySuperClass = function MySuperClass() {
_classCallCheck(this, MySuperClass);
};
$_exports = MySuperClass;
return $_exports;
});
realm.module("test.route.MainRoute", ["realm.router.path", "realm.router.inject", "realm.router.assert", "realm.router.cors", "test.route.Permissions"], function (path, inject, assert, cors, Permissions) {
var _dec, _dec2, _dec3, _class;
var $_exports;
var MainRoute = (_dec = cors(), _dec2 = path("/"), _dec3 = inject(Permissions, '$permission'), _dec(_class = _dec2(_class = _dec3(_class = function () {
function MainRoute() {
_classCallCheck(this, MainRoute);
}
_createClass(MainRoute, null, [{
key: "get",
value: function get($query, $permission) {
return {
a: $permission
};
}
}, {
key: "post",
value: function post() {}
}]);
return MainRoute;
}()) || _class) || _class) || _class);
;
$_exports = MainRoute;
return $_exports;
});
realm.module("test.route.Permissions", ["realm.router.inject", "test.route.SomeStuff"], function (inject, SomeStuff) {
var _dec4, _class2;
var $_exports;
var Permission = (_dec4 = inject(SomeStuff), _dec4(_class2 = function () {
function Permission() {
_classCallCheck(this, Permission);
}
_createClass(Permission, null, [{
key: "inject",
value: function inject($req, $attrs, SomeStuff) {
return { "permission yee": "hello world", something: SomeStuff, attrs: $attrs };
}
}]);
return Permission;
}()) || _class2);
$_exports = Permission;
return $_exports;
});
realm.module("test.route.SomeStuff", [], function () {
var $_exports;
var SomeStuff = function () {
function SomeStuff() {
_classCallCheck(this, SomeStuff);
}
_createClass(SomeStuff, null, [{
key: "inject",
value: function inject($req) {
return "some stuff from SomeStuff";
}
}]);
return SomeStuff;
}();
$_exports = SomeStuff;
return $_exports;
});
realm.module("test.app.components.FirstComponent", ["test.app.helpers.SuperUtils"], function (utils) {
var $_exports;
$_exports = function $_exports() {
_classCallCheck(this, $_exports);
};
return $_exports;
});
realm.module("test.app.components.SecondComponent", ["test.app.helpers.UserInteractionUtils", "test.app.helpers.SuperUtils"], function (myUtls, utils) {
var $_exports;
$_exports = function $_exports() {
_classCallCheck(this, $_exports);
};
return $_exports;
});
realm.module("test.app.helpers.SuperUtils", [], function () {
var $_exports;
$_exports = function $_exports() {
_classCallCheck(this, $_exports);
};
return $_exports;
});
realm.module("test.app.helpers.UserInteractionUtils", [], function () {
var $_exports;
$_exports = function $_exports() {
_classCallCheck(this, $_exports);
};
return $_exports;
});
})(function(self){ var isNode = typeof exports !== 'undefined'; return { isNode : isNode, realm : isNode ? require('./index.js') : self.realm}}(this));