|
|
@ -1,33 +1,21 @@
|
|
|
|
/* jshint ignore:start */
|
|
|
|
/* jshint ignore:start */
|
|
|
|
importScripts('/bower_components/requirejs/require.js');
|
|
|
|
importScripts('/bower_components/requirejs/require.js');
|
|
|
|
require.config({
|
|
|
|
|
|
|
|
// fix up locations so that relative urls work.
|
|
|
|
|
|
|
|
baseUrl: '/',
|
|
|
|
|
|
|
|
paths: {
|
|
|
|
|
|
|
|
// jquery declares itself as literally "jquery" so it cannot be pulled by path :(
|
|
|
|
|
|
|
|
"jquery": "/bower_components/jquery/dist/jquery.min",
|
|
|
|
|
|
|
|
// json.sortify same
|
|
|
|
|
|
|
|
"json.sortify": "/bower_components/json.sortify/dist/JSON.sortify",
|
|
|
|
|
|
|
|
cm: '/bower_components/codemirror'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
map: {
|
|
|
|
|
|
|
|
'*': {
|
|
|
|
|
|
|
|
'css': '/bower_components/require-css/css.js',
|
|
|
|
|
|
|
|
'less': '/common/RequireLess.js',
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window = self;
|
|
|
|
window = self;
|
|
|
|
localStorage = {
|
|
|
|
localStorage = {
|
|
|
|
setItem: function (k, v) { localStorage[k] = v; },
|
|
|
|
setItem: function (k, v) { localStorage[k] = v; },
|
|
|
|
getItem: function (k) { return localStorage[k]; }
|
|
|
|
getItem: function (k) { return localStorage[k]; }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
require([
|
|
|
|
require([
|
|
|
|
|
|
|
|
'/common/requireconfig.js'
|
|
|
|
|
|
|
|
], function (RequireConfig) {
|
|
|
|
|
|
|
|
require.config(RequireConfig());
|
|
|
|
|
|
|
|
require([
|
|
|
|
'/common/common-util.js',
|
|
|
|
'/common/common-util.js',
|
|
|
|
'/common/outer/worker-channel.js',
|
|
|
|
'/common/outer/worker-channel.js',
|
|
|
|
'/common/outer/store-rpc.js'
|
|
|
|
'/common/outer/store-rpc.js'
|
|
|
|
], function (Util, Channel, Rpc) {
|
|
|
|
], function (Util, Channel, Rpc) {
|
|
|
|
var msgEv = Util.mkEvent();
|
|
|
|
var msgEv = Util.mkEvent();
|
|
|
|
|
|
|
|
|
|
|
|
Channel.create(msgEv, postMessage, function (chan) {
|
|
|
|
Channel.create(msgEv, postMessage, function (chan) {
|
|
|
@ -60,4 +48,5 @@ require([
|
|
|
|
onmessage = function (e) {
|
|
|
|
onmessage = function (e) {
|
|
|
|
msgEv.fire(e);
|
|
|
|
msgEv.fire(e);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|