ibms-dome/Frontend/js/bajascript/bscriptReq.js

70 lines
3.3 KiB
JavaScript
Raw Normal View History

var require = typeof require === 'undefined' ? {} : require;
2022-11-18 21:27:25 +08:00
require.urlArgs=require.urlArgs || 'version=1496767636459';
require.waitSeconds=0;
require.config=require.config || {};
require.config.ord=require.config.ord || {};
require.config.ord.useLocalWbRc=false;
require.config.baja=require.config.baja || {};
require.config.baja.webdev=false;
require.config.baja.offline=false;
require.config.lex=require.config.lex || {};
require.config.lex.webdev=false;
require.hbs=require.hbs || {};
require.hbs.i18n=require.hbs.i18n===undefined?false:require.hbs.i18n;
require.hbs.helpers=require.hbs.helpers===undefined?false:require.hbs.helpers;
2022-11-18 21:27:25 +08:00
require.hbs.fetchText = function (uri, callback) {
function unmodularize(href) {
var res;
if (href) {
res = /^module:\/\/(.+)$/.exec(href);
if (res && res[1]) {
href = '/module/' + res[1];
}
2022-11-18 21:27:25 +08:00
}
return href;
}
require(['baja!', 'jquery'], function (baja, $) {
if (baja.isOffline()) {
uri = /([^?]*)\??.*/.exec(uri)[1];
uri = uri.replace('https://workbench/module/', 'module://');
baja.rpc('type:web:FileRpc', 'readTextFile', uri)
.then(function (text) {
callback(text, uri);
});
}
else {
$.ajax(unmodularize(uri)).then(function (text) {
callback(text, uri);
});
}
});
2022-11-18 21:27:25 +08:00
};
require.config['nmodule/js/rc/lex/lex']={storageId:'1496767636459',lang:'en-US'};
require.paths=require.paths || {};
//require.paths.jquery=require.paths.jquery || '/module/js/rc/jquery/jquery-3.1.1.min'; //add
require.paths.nmodule=require.paths.nmodule || '/module';
require.paths.Promise=require.paths.Promise || '/module/js/rc/bluebird/bluebird.min';
require.paths.bajaScript=require.paths.bajaScript || '/module/bajaScript/rc';
require.paths.bajaux=require.paths.bajaux || '/module/bajaux/rc';
//require.paths.jquery=require.paths.jquery || '/module/js/rc/jquery/jquery-3.1.1.min';
2022-11-18 21:27:25 +08:00
//require.paths.jqueryUI=require.paths.jqueryUI || 'file:^html/js/jquery-ui.min';
require.paths.dialogs=require.paths.dialogs || '/module/js/rc/dialogs/dialogs.built.min';
require.paths.ord=require.paths.ord || '/module/js/com/tridium/js/require/ord';
require.paths.lex=require.paths.lex || '/module/js/rc/lex/lexplugin';
require.paths.css=require.paths.css || '/module/js/com/tridium/js/ext/require/css';
require.paths.baja=require.paths.baja || '/module/bajaScript/rc/plugin/baja';
require.paths.obix=require.paths.obix || '/module/obixjs/rc/obix.built.min';
require.paths.Handlebars=require.paths.Handlebars || '/module/js/rc/handlebars/handlebars.min-v2.0.0';
require.paths.underscore=require.paths.underscore || '/module/js/rc/underscore/underscore.min';
require.paths.hbs=require.paths.hbs || '/module/js/rc/require-handlebars-plugin/hbs.built.min';
require.paths.moment=require.paths.moment || '/module/js/rc/moment/moment.min';
require.paths.d3=require.paths.d3 || '/module/js/rc/d3/d3.min';
require.paths.hx=require.paths.hx || '/module/hx/javax/baja/hx/hx';
require.paths.jqueryContextMenu=require.paths.jqueryContextMenu || '/module/js/rc/jquery/contextMenu/jquery.contextMenu';
require.paths.ace=require.paths.ace || '/module/js/rc/ace';
require.shim=require.shim || {};
require.shim.d3=require.shim.d3 || {};
require.shim.d3.exports=require.shim.d3.exports || 'd3';
//require.shim.jqueryContextMenu=require.shim.jqueryContextMenu || {deps:['jquery'],exports:'jQuery'};