-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathfastboot-test.js
More file actions
359 lines (293 loc) · 12.1 KB
/
fastboot-test.js
File metadata and controls
359 lines (293 loc) · 12.1 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
"use strict";
/* jshint ignore:start */
/* jshint ignore:end */
define('fastboot-test/app', ['exports', 'ember', 'fastboot-test/resolver', 'ember-load-initializers', 'fastboot-test/config/environment'], function (exports, _ember, _fastbootTestResolver, _emberLoadInitializers, _fastbootTestConfigEnvironment) {
var App = undefined;
_ember['default'].MODEL_FACTORY_INJECTIONS = true;
App = _ember['default'].Application.extend({
modulePrefix: _fastbootTestConfigEnvironment['default'].modulePrefix,
podModulePrefix: _fastbootTestConfigEnvironment['default'].podModulePrefix,
Resolver: _fastbootTestResolver['default']
});
(0, _emberLoadInitializers['default'])(App, _fastbootTestConfigEnvironment['default'].modulePrefix);
exports['default'] = App;
});
define('fastboot-test/components/app-version', ['exports', 'ember-cli-app-version/components/app-version', 'fastboot-test/config/environment'], function (exports, _emberCliAppVersionComponentsAppVersion, _fastbootTestConfigEnvironment) {
var name = _fastbootTestConfigEnvironment['default'].APP.name;
var version = _fastbootTestConfigEnvironment['default'].APP.version;
exports['default'] = _emberCliAppVersionComponentsAppVersion['default'].extend({
version: version,
name: name
});
});
define('fastboot-test/controllers/array', ['exports', 'ember'], function (exports, _ember) {
exports['default'] = _ember['default'].Controller;
});
define('fastboot-test/controllers/object', ['exports', 'ember'], function (exports, _ember) {
exports['default'] = _ember['default'].Controller;
});
define('fastboot-test/helpers/pluralize', ['exports', 'ember-inflector/lib/helpers/pluralize'], function (exports, _emberInflectorLibHelpersPluralize) {
exports['default'] = _emberInflectorLibHelpersPluralize['default'];
});
define('fastboot-test/helpers/singularize', ['exports', 'ember-inflector/lib/helpers/singularize'], function (exports, _emberInflectorLibHelpersSingularize) {
exports['default'] = _emberInflectorLibHelpersSingularize['default'];
});
define('fastboot-test/initializers/app-version', ['exports', 'ember-cli-app-version/initializer-factory', 'fastboot-test/config/environment'], function (exports, _emberCliAppVersionInitializerFactory, _fastbootTestConfigEnvironment) {
exports['default'] = {
name: 'App Version',
initialize: (0, _emberCliAppVersionInitializerFactory['default'])(_fastbootTestConfigEnvironment['default'].APP.name, _fastbootTestConfigEnvironment['default'].APP.version)
};
});
define('fastboot-test/initializers/container-debug-adapter', ['exports', 'ember-resolver/container-debug-adapter'], function (exports, _emberResolverContainerDebugAdapter) {
exports['default'] = {
name: 'container-debug-adapter',
initialize: function initialize() {
var app = arguments[1] || arguments[0];
app.register('container-debug-adapter:main', _emberResolverContainerDebugAdapter['default']);
app.inject('container-debug-adapter:main', 'namespace', 'application:main');
}
};
});
define('fastboot-test/initializers/data-adapter', ['exports', 'ember'], function (exports, _ember) {
/*
This initializer is here to keep backwards compatibility with code depending
on the `data-adapter` initializer (before Ember Data was an addon).
Should be removed for Ember Data 3.x
*/
exports['default'] = {
name: 'data-adapter',
before: 'store',
initialize: _ember['default'].K
};
});
define('fastboot-test/initializers/ember-data', ['exports', 'ember-data/setup-container', 'ember-data/-private/core'], function (exports, _emberDataSetupContainer, _emberDataPrivateCore) {
/*
This code initializes Ember-Data onto an Ember application.
If an Ember.js developer defines a subclass of DS.Store on their application,
as `App.StoreService` (or via a module system that resolves to `service:store`)
this code will automatically instantiate it and make it available on the
router.
Additionally, after an application's controllers have been injected, they will
each have the store made available to them.
For example, imagine an Ember.js application with the following classes:
App.StoreService = DS.Store.extend({
adapter: 'custom'
});
App.PostsController = Ember.ArrayController.extend({
// ...
});
When the application is initialized, `App.ApplicationStore` will automatically be
instantiated, and the instance of `App.PostsController` will have its `store`
property set to that instance.
Note that this code will only be run if the `ember-application` package is
loaded. If Ember Data is being used in an environment other than a
typical application (e.g., node.js where only `ember-runtime` is available),
this code will be ignored.
*/
exports['default'] = {
name: 'ember-data',
initialize: _emberDataSetupContainer['default']
};
});
define('fastboot-test/initializers/export-application-global', ['exports', 'ember', 'fastboot-test/config/environment'], function (exports, _ember, _fastbootTestConfigEnvironment) {
exports.initialize = initialize;
function initialize() {
var application = arguments[1] || arguments[0];
if (_fastbootTestConfigEnvironment['default'].exportApplicationGlobal !== false) {
var value = _fastbootTestConfigEnvironment['default'].exportApplicationGlobal;
var globalName;
if (typeof value === 'string') {
globalName = value;
} else {
globalName = _ember['default'].String.classify(_fastbootTestConfigEnvironment['default'].modulePrefix);
}
if (!window[globalName]) {
window[globalName] = application;
application.reopen({
willDestroy: function willDestroy() {
this._super.apply(this, arguments);
delete window[globalName];
}
});
}
}
}
exports['default'] = {
name: 'export-application-global',
initialize: initialize
};
});
define('fastboot-test/initializers/fastboot/ajax', ['exports'], function (exports) {
/* globals najax */
var nodeAjax = function nodeAjax(options) {
najax(options);
};
exports['default'] = {
name: 'ajax-service',
initialize: function initialize(application) {
application.register('ajax:node', nodeAjax, { instantiate: false });
application.inject('adapter', '_ajaxRequest', 'ajax:node');
}
};
});
define("fastboot-test/initializers/fastboot/dom-helper-patches", ["exports"], function (exports) {
/*globals Ember, URL*/
exports["default"] = {
name: "dom-helper-patches",
initialize: function initialize(App) {
// TODO: remove me
Ember.HTMLBars.DOMHelper.prototype.protocolForURL = function (url) {
var protocol = URL.parse(url).protocol;
return protocol == null ? ':' : protocol;
};
// TODO: remove me https://github.com/tildeio/htmlbars/pull/425
Ember.HTMLBars.DOMHelper.prototype.parseHTML = function (html) {
return this.document.createRawHTMLSection(html);
};
}
};
});
define('fastboot-test/initializers/injectStore', ['exports', 'ember'], function (exports, _ember) {
/*
This initializer is here to keep backwards compatibility with code depending
on the `injectStore` initializer (before Ember Data was an addon).
Should be removed for Ember Data 3.x
*/
exports['default'] = {
name: 'injectStore',
before: 'store',
initialize: _ember['default'].K
};
});
define('fastboot-test/initializers/store', ['exports', 'ember'], function (exports, _ember) {
/*
This initializer is here to keep backwards compatibility with code depending
on the `store` initializer (before Ember Data was an addon).
Should be removed for Ember Data 3.x
*/
exports['default'] = {
name: 'store',
after: 'ember-data',
initialize: _ember['default'].K
};
});
define('fastboot-test/initializers/transforms', ['exports', 'ember'], function (exports, _ember) {
/*
This initializer is here to keep backwards compatibility with code depending
on the `transforms` initializer (before Ember Data was an addon).
Should be removed for Ember Data 3.x
*/
exports['default'] = {
name: 'transforms',
before: 'store',
initialize: _ember['default'].K
};
});
define("fastboot-test/instance-initializers/ember-data", ["exports", "ember-data/-private/instance-initializers/initialize-store-service"], function (exports, _emberDataPrivateInstanceInitializersInitializeStoreService) {
exports["default"] = {
name: "ember-data",
initialize: _emberDataPrivateInstanceInitializersInitializeStoreService["default"]
};
});
define('fastboot-test/resolver', ['exports', 'ember-resolver'], function (exports, _emberResolver) {
exports['default'] = _emberResolver['default'];
});
define('fastboot-test/router', ['exports', 'ember', 'fastboot-test/config/environment'], function (exports, _ember, _fastbootTestConfigEnvironment) {
var Router = _ember['default'].Router.extend({
location: _fastbootTestConfigEnvironment['default'].locationType
});
Router.map(function () {});
exports['default'] = Router;
});
define('fastboot-test/services/ajax', ['exports', 'ember-ajax/services/ajax'], function (exports, _emberAjaxServicesAjax) {
Object.defineProperty(exports, 'default', {
enumerable: true,
get: function get() {
return _emberAjaxServicesAjax['default'];
}
});
});
define("fastboot-test/services/fastboot", ["exports", "ember"], function (exports, _ember) {
var alias = _ember["default"].computed.alias;
exports["default"] = _ember["default"].Service.extend({
cookies: alias('_fastbootInfo.cookies')
});
});
define("fastboot-test/routes/application", ["exports", "ember"], function (exports, _ember) {
exports["default"] = _ember["default"].Route.extend({
model: function() {
throw new Error('intentional');
}
});
});
define("fastboot-test/templates/application", ["exports"], function (exports) {
exports["default"] = Ember.HTMLBars.template((function () {
return {
meta: {
"fragmentReason": {
"name": "missing-wrapper",
"problems": ["multiple-nodes", "wrong-type"]
},
"revision": "[email protected]",
"loc": {
"source": null,
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 0
}
},
"moduleName": "fastboot-test/templates/application.hbs"
},
isEmpty: false,
arity: 0,
cachedFragment: null,
hasRendered: false,
buildFragment: function buildFragment(dom) {
var el0 = dom.createDocumentFragment();
var el1 = dom.createElement("h2");
dom.setAttribute(el1, "id", "title");
var el2 = dom.createTextNode("Welcome to Ember");
dom.appendChild(el1, el2);
dom.appendChild(el0, el1);
var el1 = dom.createTextNode("\n\n");
dom.appendChild(el0, el1);
var el1 = dom.createComment("");
dom.appendChild(el0, el1);
var el1 = dom.createTextNode("\n");
dom.appendChild(el0, el1);
return el0;
},
buildRenderNodes: function buildRenderNodes(dom, fragment, contextualElement) {
var morphs = new Array(1);
morphs[0] = dom.createMorphAt(fragment, 2, 2, contextualElement);
return morphs;
},
statements: [["content", "outlet", ["loc", [null, [3, 0], [3, 10]]]]],
locals: [],
templates: []
};
})());
});
/* jshint ignore:start */
/* jshint ignore:end */
/* jshint ignore:start */
define('fastboot-test/config/environment', ['ember'], function(Ember) {
return { 'default': {"modulePrefix":"fastboot-test","environment":"development","baseURL":"/","locationType":"auto","EmberENV":{"FEATURES":{}},"APP":{"name":"fastboot-test","version":"0.0.0+3e9fe92d","autoboot":false},"exportApplicationGlobal":true}};
});
/* jshint ignore:end */
/* jshint ignore:start */
define('~fastboot/app-factory', ['fastboot-test/app', 'fastboot-test/config/environment'], function(App, config) {
App = App['default'];
config = config['default'];
return {
'default': function() {
return App.create(config.APP);
}
};
});
/* jshint ignore:end */
//# sourceMappingURL=fastboot-test.map