main.js revision 95f6a8dff82d34449590f9a50ccc70df924d5a8f
0N/A/**
2741N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A *
0N/A * Copyright (c) 2011-2015 ForgeRock AS. All rights reserved.
0N/A *
0N/A * The contents of this file are subject to the terms
2362N/A * of the Common Development and Distribution License
0N/A * (the License). You may not use this file except in
2362N/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
0N/A * If applicable, add the following below the CDDL Header,
0N/A * with the fields enclosed by brackets [] replaced by
2362N/A * your own identifying information:
2362N/A * "Portions Copyrighted [year] [name of copyright owner]"
2362N/A */
0N/A
0N/A/*global require, define, window */
0N/A
0N/A
0N/A/**
0N/A * @author yaromin
0N/A */
0N/A
0N/Arequire.config({
0N/A paths: {
0N/A less: "libs/less-1.5.1-min",
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 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 jqgrid: "libs/jquery.jqGrid-4.5.4-min",
0N/A xdate: "libs/xdate-0.8-min",
0N/A doTimeout: "libs/jquery.ba-dotimeout-1.0-min",
0N/A handlebars: "libs/handlebars-1.3.0-min",
0N/A bootstrapjs: "libs/bootstrap.min",
0N/A placeholder: "libs/jquery.placeholder",
0N/A moment: "libs/moment-2.8.1-min",
0N/A contentflow: "libs/contentflow",
0N/A AuthnDelegate: "org/forgerock/openidm/ui/common/delegates/AuthnDelegate",
0N/A UserDelegate: "org/forgerock/openidm/ui/user/delegates/UserDelegate",
0N/A ThemeManager: "org/forgerock/openidm/ui/common/util/ThemeManager",
0N/A jsonEditor: "libs/jsoneditor-0.7.9-min"
0N/A },
0N/A
0N/A shim: {
0N/A underscore: {
0N/A exports: "_"
0N/A },
0N/A backbone: {
0N/A deps: ["underscore"],
0N/A exports: "Backbone"
0N/A },
0N/A js2form: {
0N/A exports: "js2form"
0N/A },
0N/A form2js: {
0N/A exports: "form2js"
0N/A },
0N/A jsonEditor: {
0N/A exports: "jsonEditor"
0N/A },
0N/A contentflow: {
0N/A exports: "contentflow"
0N/A },
0N/A spin: {
0N/A exports: "spin"
0N/A },
0N/A jqueryui: {
0N/A deps: ["jquery"],
0N/A exports: "jqueryui"
0N/A },
0N/A i18nGrid: {
0N/A deps: ["jquery"]
0N/A },
0N/A jqgrid: {
0N/A deps: ["jqueryui", "i18nGrid"]
0N/A },
0N/A xdate: {
0N/A exports: "xdate"
0N/A },
0N/A doTimeout: {
0N/A deps: ["jquery"],
0N/A exports: "doTimeout"
0N/A },
0N/A handlebars: {
0N/A exports: "handlebars"
0N/A },
0N/A i18next: {
0N/A deps: ["jquery", "handlebars"],
0N/A exports: "i18next"
0N/A },
0N/A moment: {
0N/A exports: "moment"
0N/A },
0N/A bootstrapjs: {
0N/A deps: ["jquery"],
0N/A exports: "bootstrapjs"
0N/A },
0N/A placeholder: {
0N/A deps: ["jquery"]
0N/A }
0N/A }
0N/A});
0N/A
0N/A/**
0N/A * Loads all application on start, so each module will be available to
0N/A * required synchronously
0N/A */
0N/Arequire([
0N/A "jquery",
0N/A "underscore",
0N/A "backbone",
0N/A "less",
0N/A "form2js",
0N/A "js2form",
0N/A "spin",
0N/A "jqgrid",
0N/A "jqueryui",
0N/A "xdate",
0N/A "moment",
0N/A "doTimeout",
0N/A "handlebars",
0N/A "bootstrapjs",
0N/A "placeholder",
0N/A "i18next",
0N/A "jsonEditor",
0N/A "contentflow",
0N/A "org/forgerock/commons/ui/common/main/i18nManager",
0N/A "org/forgerock/commons/ui/common/util/Constants",
0N/A "org/forgerock/commons/ui/common/main/EventManager",
0N/A "org/forgerock/openidm/ui/common/main",
0N/A "org/forgerock/openidm/ui/user/main",
0N/A "org/forgerock/openidm/ui/admin/main",
0N/A "org/forgerock/commons/ui/user/main",
0N/A "org/forgerock/commons/ui/common/main",
0N/A "AuthnDelegate",
0N/A "UserDelegate",
0N/A "ThemeManager",
0N/A "config/main"
0N/A], function(
0N/A $,
0N/A _,
0N/A Backbone,
0N/A less,
0N/A form2js,
0N/A js2form,
2741N/A spin,
2741N/A jqgrid,
2741N/A jqueryui,
2741N/A xdate,
2741N/A moment,
2741N/A doTimeout,
2741N/A handlebars,
2741N/A bootstrapjs,
2741N/A placeholder,
2741N/A i18next,
2741N/A jsonEditor,
2741N/A contentflow,
2741N/A i18n,
2741N/A constants,
2741N/A eventManager) {
2741N/A
2741N/A // Helpers for the code that hasn't been properly migrated to require these as explicit dependencies:
2741N/A window.$ = $;
2741N/A window._ = _;
0N/A window.Backbone = Backbone;
eventManager.sendEvent(constants.EVENT_DEPENDECIES_LOADED);
});