main.js revision 9ef3a0e80a4e67fde2d24364ad9a7d5d64654f19
0N/A/**
553N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A *
0N/A * Copyright (c) 2014-2015 ForgeRock AS. All rights reserved.
0N/A *
0N/A * The contents of this file are subject to the terms
0N/A * of the Common Development and Distribution License
0N/A * (the License). You may not use this file except in
0N/A * compliance with the License.
0N/A *
0N/A * You can obtain a copy of the License at
0N/A * http://forgerock.org/license/CDDLv1.0.html
0N/A * See the License for the specific language governing
0N/A * permission and limitations under the License.
0N/A *
0N/A * When distributing Covered Code, include this CDDL
0N/A * Header Notice in each file and include the License file
0N/A * at http://forgerock.org/license/CDDLv1.0.html
553N/A * If applicable, add the following below the CDDL Header,
553N/A * with the fields enclosed by brackets [] replaced by
553N/A * your own identifying information:
0N/A * "Portions Copyrighted [year] [name of copyright owner]"
0N/A */
0N/A
0N/A/*global require, define, window */
0N/A
0N/Arequire.config({
0N/A map: {
0N/A "*" : {
288N/A "UserDelegate": "org/forgerock/openidm/ui/common/util/UserDelegate",
0N/A "ThemeManager": "org/forgerock/openidm/ui/common/util/ThemeManager",
0N/A "AuthnDelegate": "org/forgerock/openidm/ui/common/delegates/AuthnDelegate",
0N/A "LoginView": "org/forgerock/openidm/ui/admin/login/LoginView",
0N/A "LoginDialog": "org/forgerock/commons/ui/common/LoginDialog"
0N/A }
0N/A },
0N/A paths: {
0N/A i18next: "libs/i18next-1.7.3-min",
0N/A i18nGrid: "libs/i18n/grid.locale-en",
0N/A backbone: "libs/backbone-1.1.2-min",
0N/A "backbone.paginator": "libs/backbone.paginator.min-2.0.2-min",
0N/A "backbone-relational": "libs/backbone-relational-0.9.0-min",
0N/A "backgrid": "libs/backgrid.min-0.3.5-min",
0N/A "backgrid-filter": "libs/backgrid-filter.min-0.3.5-min",
0N/A "backgrid-paginator": "libs/backgrid-paginator.min-0.3.5-min",
0N/A "backgrid-selectall": "libs/backgrid-select-all-0.3.5-min",
0N/A underscore: "libs/lodash-2.4.1-min",
0N/A js2form: "libs/js2form-2.0",
0N/A form2js: "libs/form2js-2.0",
0N/A spin: "libs/spin-2.0.1-min",
0N/A jquery: "libs/jquery-2.1.1-min",
0N/A jqueryui: "libs/jquery-ui-1.11.1-min",
0N/A jquerySortable: "libs/jquery-nestingSortable-0.9.12",
0N/A jqgrid: "libs/jquery.jqGrid-4.5.4-min",
0N/A gentleSelect: "libs/jquery-gentleSelect-0.1.3.1-min",
cron: "libs/jquery-cron-r2427",
xdate: "libs/xdate-0.8-min",
doTimeout: "libs/jquery.ba-dotimeout-1.0-min",
handlebars: "libs/handlebars-3.0.3-min",
"bootstrap-tabdrop": "libs/bootstrap-tabdrop-1.0",
bootstrap: "libs/bootstrap-3.3.5-custom",
"bootstrap-dialog": "libs/bootstrap-dialog-1.34.4-min",
placeholder: "libs/jquery.placeholder-2.0.8",
selectize : "libs/selectize-0.12.1-min",
d3 : "libs/d3-3.5.5-min",
moment: "libs/moment-2.8.1-min",
jsonEditor: "libs/jsoneditor-0.7.9-min",
"ldapjs-filter": "libs/ldapjs-filter-2253-min",
faiconpicker: "libs/fontawesome-iconpicker-1.0.0-min",
dimple : "libs/dimple-2.1.2-min"
},
shim: {
underscore: {
exports: "_"
},
backbone: {
deps: ["underscore"],
exports: "Backbone"
},
"backbone.paginator": {
deps: ["backbone"]
},
"backgrid": {
deps: ["jquery", "underscore", "backbone"],
exports: "Backgrid"
},
"backgrid-filter": {
deps: ["backgrid"]
},
"backgrid-paginator": {
deps: ["backgrid", "backbone.paginator"]
},
"backgrid-selectall": {
deps: ["backgrid"]
},
js2form: {
exports: "js2form"
},
form2js: {
exports: "form2js"
},
spin: {
exports: "spin"
},
jsonEditor: {
deps: ["handlebars"],
init: function (Handlebars) {
window.Handlebars = Handlebars;
return this.JSONEditor;
},
exports: "JSONEditor"
},
cron: {
deps: ["jquery"]
},
gentleSelect: {
deps: ["jquery"]
},
jqueryui: {
deps: ["jquery"]
},
jquerySortable: {
deps: ["jquery"]
},
i18nGrid: {
deps: ["jquery"]
},
jqgrid: {
deps: ["jqueryui", "i18nGrid"]
},
xdate: {
exports: "xdate"
},
doTimeout: {
deps: ["jquery"],
exports: "doTimeout"
},
handlebars: {
exports: "handlebars"
},
i18next: {
deps: ["jquery", "handlebars"],
exports: "i18next"
},
moment: {
exports: "moment"
},
selectize: {
deps: ["jquery"]
},
d3: {
exports: "d3"
},
dimple: {
exports: "dimple",
deps: ["d3"]
},
bootstrap: {
deps: ["jquery"]
},
placeholder: {
deps: ["jquery"]
},
'bootstrap-dialog': {
deps: ["jquery", "underscore","backbone", "bootstrap"]
},
'bootstrap-tabdrop': {
deps: ["jquery", "bootstrap"]
}
}
});
require([
"org/forgerock/commons/ui/common/util/Constants",
"org/forgerock/commons/ui/common/main/EventManager",
"jsonEditor",
"org/forgerock/commons/ui/common/main",
"org/forgerock/openidm/ui/common/main",
"org/forgerock/openidm/ui/admin/main",
"config/main",
"jquery",
"underscore",
"backbone",
"handlebars",
"i18next",
"spin",
"placeholder",
"selectize"
], function(
Constants,
EventManager,
JSONEditor) {
EventManager.sendEvent(Constants.EVENT_DEPENDECIES_LOADED);
JSONEditor.defaults.options.theme = 'bootstrap3';
JSONEditor.defaults.options.iconlib = "fontawesome4";
});