aboutsummaryrefslogtreecommitdiffstats
path: root/src/foschema
Commit message (Expand)AuthorAgeFilesLines
* Improved fop.xconf validationPeter Hancock2013-06-041-136/+249
* Jira FOP-2203: Fix xml syntax in XSDPascal Sancho2013-01-301-6/+6
* apply complex scripts patchGlenn Adams2012-02-261-0/+5
* Added support for forcing single-byte encodings for TrueType fonts without cr...Jeremias Maerki2009-01-041-0/+9
* Bugzilla #44737:Jeremias Maerki2008-04-031-0/+1
* Added support for an optional two-pass production for PostScript output to mi...Jeremias Maerki2007-03-021-7/+22
* Stricter user config file validation.Vincent Hennebert2007-02-141-0/+1
* Added support for CCITT compression in the TIFFRenderer by switching to the I...Jeremias Maerki2006-09-181-2/+8
* Configuration option in the Java2D-based renderers that allows to disable the...Jeremias Maerki2006-09-101-0/+7
* Documentation update for the "output-profile" value necessary for PDF/X-3:2003. Jeremias Maerki2006-08-031-76/+109
* Changed license headers and updated NOTICE file according to: http://www.apac...Jeremias Maerki2006-07-284-20/+24
* A W3C schema for FOP user configuration filesSimon Pepping2006-07-161-0/+184
* Bug #33321Jeremias Maerki2005-02-021-6/+6
* Applied Apache License Version 2.0 by following the instructions at http://ww...Jeremias Maerki2004-02-273-0/+46
* Move over from docs/foschemaJeremias Maerki2003-01-293-0/+4812
> 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

appendArchivaVersion=function(){
  return "_archivaVersion="+window.archivaRuntimeInfo.version;
};

timestampNoCache=function(){
  if (window.archivaRuntimeInfo.version.match("SNAPSHOT$")){
    return "&archivaTimestamp="+window.archivaRuntimeInfo.timestamp+(window.archivaRuntimeInfo.devMode?"&_="+jQuery.now():"");
  }
  return "";
};

appendTemplateUrl=function(){
  return appendArchivaVersion()+timestampNoCache();
};

appendJsNoCacheUrl=function(){
  return appendArchivaVersion()+timestampNoCache();
};

$.ajax({
    url: "restServices/archivaUiServices/runtimeInfoService/archivaRuntimeInfo/en",
    dataType: 'json',
    cache: false,
    success:function(data){

        window.archivaDevMode=data.devMode;
        window.archivaJavascriptLog=data.javascriptLog;
        window.archivaRuntimeInfo=data;

            requirejs.config({
                baseUrl: "js/",
                urlArgs: ""+appendJsNoCacheUrl(),
                shim: {
                      'sammy':['jquery','jquery.tmpl'],
                      'archiva.main':['jquery','jquery.ui','sammy','jquery.tmpl','utils','i18n'],
                      'utils':['jquery','jquery.tmpl','i18n'],
                      'archiva.templates': ['jquery','jquery.tmpl','utils'],
                      'redback.templates': ['jquery','jquery.tmpl','utils']
                      },
                paths: {
                    "i18n":"jquery.i18n.properties-1.0.9",
                    "jquery": "jquery-1.8.3.min",
                    "jquery.tmpl": "jquery.tmpl",
                    "utils": "archiva/utils",
                    "startup": "archiva/startup",
                    "jquery.ui": "jquery-ui-1.9.2.custom.min",
                    "jquery.ui.widget": "jquery.ui.widget-1.9.2",
                    "jquery.cookie": "jquery.cookie.1.0.0",
                    "bootstrap": "bootstrap.2.2.1",
                    "jquery.validate": "jquery.validate-1.9.0",
                    "jquery.json": "jquery.json-2.3.min",
                    "knockout": "knockout-2.2.0.debug",
                    "knockout.simpleGrid": "knockout.simpleGrid",
                    "knockout.sortable": "knockout-sortable",
                    "jquery.iframe.transport": "jquery.iframe-transport-1.4",
                    "jquery.fileupload": "jquery.fileupload-5.10.0",
                    "jquery.fileupload.ip":"jquery.fileupload-ip-1.0.6",
                    "jquery.fileupload.ui":"jquery.fileupload-ui-6.6.3",
                    "tmpl": "tmpl.min",
                    "purl": "purl-2.2.1",
                    "prettify": "prettify",
                    "sammy": "sammy.0.7.1",
                    "select2": "select2.min-3.2",
                    "jqueryFileTree": "jqueryFileTree-1.0.1",
                    "redback": "redback/redback",
                    "redback.roles": "redback/roles",
                    "redback.user": "redback/user",
                    "redback.users": "redback/users",
                    "redback.templates": "redback/redback-tmpl",
                    "archiva.general-admin":"archiva/general-admin",
                    "archiva.templates": "archiva/main-tmpl",
                    "archiva.repositories": "archiva/repositories",
                    "archiva.network-proxies": "archiva/network-proxies",
                    "archiva.proxy-connectors": "archiva/proxy-connectors",
                    "archiva.repository-groups": "archiva/repository-groups",
                    "archiva.artifacts-management": "archiva/artifacts-management",
                    "archiva.search": "archiva/search",
                    "archiva.proxy-connectors-rules": "archiva/proxy-connectors-rules",
                    "archiva.docs": "archiva/docs",
                    "archiva.main": "archiva/main"
                }
            });

                requirejs(['jquery','jquery.tmpl','jquery.ui','i18n','sammy','startup','utils','domReady!','archiva.main','archiva.general-admin'], function () {
                  loadi18n(function () {
                    $.ajax({
                      url: "restServices/archivaUiServices/runtimeInfoService/archivaRuntimeInfo/"+usedLang(),
                      dataType: 'json',
                      success:function(data){
                        window.archivaDevMode=data.devMode;
                        window.archivaJavascriptLog=data.javascriptLog;
                        window.archivaRuntimeInfo=data;

                        window.redbackRuntimeConfiguration=mapRedbackRuntimeConfiguration(data.redbackRuntimeConfiguration);

                        $.log("security.rememberme.enabled key value:"+ window.redbackRuntimeConfiguration.findPropertyValue('security.rememberme.enabled'));

                        require(['sammy','jquery','i18n','jquery.tmpl','archiva.main','utils','domReady!'],function () {
                            startArchivaApplication();
                            $("#loadingDiv").hide();
                            drawQuickSearchAutocomplete();
                        })
                      }
                    })
                  });
                })
    }
});