adminInit.js revision d2040550b00d89787d5a088429a643e8f0ad90a5
0N/A/**
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3261N/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
2362N/A * (the License). You may not use this file except in
0N/A * compliance with the License.
2362N/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
0N/A * your own identifying information:
2362N/A * "Portions Copyrighted [year] [name of copyright owner]"
2362N/A */
2362N/A
0N/A/*global require, define*/
0N/Adefine([
0N/A
0N/A "text!css/config/adminConfig.less",
0N/A "text!css/config/adminStyle.less",
0N/A "text!css/config/resourcesView.less",
0N/A
0N/A "text!css/fontawesome/less/variables.less",
0N/A "text!css/fontawesome/less/mixins.less",
0N/A "text!css/fontawesome/less/path.less",
0N/A "text!css/fontawesome/less/core.less",
0N/A "text!css/fontawesome/less/larger.less",
0N/A "text!css/fontawesome/less/fixed-width.less",
0N/A "text!css/fontawesome/less/list.less",
0N/A "text!css/fontawesome/less/bordered-pulled.less",
0N/A "text!css/fontawesome/less/spinning.less",
0N/A "text!css/fontawesome/less/rotated-flipped.less",
0N/A "text!css/fontawesome/less/stacked.less",
0N/A "text!css/fontawesome/less/icons.less"
0N/A], function () {
0N/A
0N/A /* an unfortunate need to duplicate the file names here, but I haven't
0N/A yet found a way to fool requirejs into doing dynamic dependencies */
0N/A var staticFiles = [
0N/A
0N/A "css/config/adminConfig.less",
0N/A "css/config/adminStyle.less",
0N/A "css/config/resourcesView.less",
0N/A
0N/A "css/fontawesome/less/variables.less",
0N/A "css/fontawesome/less/mixins.less",
0N/A "css/fontawesome/less/path.less",
0N/A "css/fontawesome/less/core.less",
0N/A "css/fontawesome/less/larger.less",
0N/A "css/fontawesome/less/fixed-width.less",
0N/A "css/fontawesome/less/list.less",
0N/A "css/fontawesome/less/bordered-pulled.less",
0N/A "css/fontawesome/less/spinning.less",
0N/A "css/fontawesome/less/rotated-flipped.less",
0N/A "css/fontawesome/less/stacked.less",
0N/A "css/fontawesome/less/icons.less"
0N/A ],
0N/A deps = arguments;
0N/A
0N/A return function (server) {
0N/A
0N/A _.each(staticFiles, function (file, i) {
0N/A server.respondWith(
0N/A "GET",
0N/A new RegExp(file.replace(/([\/\.\-])/g, "\\$1") + "$"),
0N/A [
0N/A 200,
0N/A { },
0N/A deps[i]
0N/A ]
0N/A );
0N/A });
0N/A
0N/A };
0N/A});