Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 90FEE200C80 for ; Thu, 25 May 2017 19:36:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F860160BDF; Thu, 25 May 2017 17:36:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AD7AC160BDC for ; Thu, 25 May 2017 19:36:08 +0200 (CEST) Received: (qmail 46385 invoked by uid 500); 25 May 2017 17:36:06 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 46081 invoked by uid 99); 25 May 2017 17:36:06 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2017 17:36:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 74464E967D; Thu, 25 May 2017 17:36:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cpoerschke@apache.org To: commits@lucene.apache.org Date: Thu, 25 May 2017 17:36:13 -0000 Message-Id: <7b5bb5002fc24d348e7d27eb891d3692@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [08/59] [abbrv] lucene-solr:jira/solr-8668: SOLR-10042: Delete old deprecated Admin UI archived-at: Thu, 25 May 2017 17:36:09 -0000 http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/21384b5b/solr/webapp/web/js/lib/order.js ---------------------------------------------------------------------- diff --git a/solr/webapp/web/js/lib/order.js b/solr/webapp/web/js/lib/order.js deleted file mode 100644 index 169ccfb..0000000 --- a/solr/webapp/web/js/lib/order.js +++ /dev/null @@ -1,216 +0,0 @@ -/* - -MIT License ------------ - -Copyright (c) 2010-2011, The Dojo Foundation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -*/ - -/** - * @license RequireJS order 1.0.5 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. - * Available via the MIT or new BSD license. - * see: http://github.com/jrburke/requirejs for details - */ -/*jslint nomen: false, plusplus: false, strict: false */ -/*global require: false, define: false, window: false, document: false, - setTimeout: false */ - -//Specify that requirejs optimizer should wrap this code in a closure that -//maps the namespaced requirejs API to non-namespaced local variables. -/*requirejs namespace: true */ - -(function () { - - //Sadly necessary browser inference due to differences in the way - //that browsers load and execute dynamically inserted javascript - //and whether the script/cache method works when ordered execution is - //desired. Currently, Gecko and Opera do not load/fire onload for scripts with - //type="script/cache" but they execute injected scripts in order - //unless the 'async' flag is present. - //However, this is all changing in latest browsers implementing HTML5 - //spec. With compliant browsers .async true by default, and - //if false, then it will execute in order. Favor that test first for forward - //compatibility. - var testScript = typeof document !== "undefined" && - typeof window !== "undefined" && - document.createElement("script"), - - supportsInOrderExecution = testScript && (testScript.async || - ((window.opera && - Object.prototype.toString.call(window.opera) === "[object Opera]") || - //If Firefox 2 does not have to be supported, then - //a better check may be: - //('mozIsLocallyAvailable' in window.navigator) - ("MozAppearance" in document.documentElement.style))), - - //This test is true for IE browsers, which will load scripts but only - //execute them once the script is added to the DOM. - supportsLoadSeparateFromExecute = testScript && - testScript.readyState === 'uninitialized', - - readyRegExp = /^(complete|loaded)$/, - cacheWaiting = [], - cached = {}, - scriptNodes = {}, - scriptWaiting = []; - - //Done with the test script. - testScript = null; - - //Callback used by the type="script/cache" callback that indicates a script - //has finished downloading. - function scriptCacheCallback(evt) { - var node = evt.currentTarget || evt.srcElement, i, - moduleName, resource; - - if (evt.type === "load" || readyRegExp.test(node.readyState)) { - //Pull out the name of the module and the context. - moduleName = node.getAttribute("data-requiremodule"); - - //Mark this cache request as loaded - cached[moduleName] = true; - - //Find out how many ordered modules have loaded - for (i = 0; (resource = cacheWaiting[i]); i++) { - if (cached[resource.name]) { - resource.req([resource.name], resource.onLoad); - } else { - //Something in the ordered list is not loaded, - //so wait. - break; - } - } - - //If just loaded some items, remove them from cacheWaiting. - if (i > 0) { - cacheWaiting.splice(0, i); - } - - //Remove this script tag from the DOM - //Use a setTimeout for cleanup because some older IE versions vomit - //if removing a script node while it is being evaluated. - setTimeout(function () { - node.parentNode.removeChild(node); - }, 15); - } - } - - /** - * Used for the IE case, where fetching is done by creating script element - * but not attaching it to the DOM. This function will be called when that - * happens so it can be determined when the node can be attached to the - * DOM to trigger its execution. - */ - function onFetchOnly(node) { - var i, loadedNode, resourceName; - - //Mark this script as loaded. - node.setAttribute('data-orderloaded', 'loaded'); - - //Cycle through waiting scripts. If the matching node for them - //is loaded, and is in the right order, add it to the DOM - //to execute the script. - for (i = 0; (resourceName = scriptWaiting[i]); i++) { - loadedNode = scriptNodes[resourceName]; - if (loadedNode && - loadedNode.getAttribute('data-orderloaded') === 'loaded') { - delete scriptNodes[resourceName]; - require.addScriptToDom(loadedNode); - } else { - break; - } - } - - //If just loaded some items, remove them from waiting. - if (i > 0) { - scriptWaiting.splice(0, i); - } - } - - define({ - version: '1.0.5', - - load: function (name, req, onLoad, config) { - var hasToUrl = !!req.nameToUrl, - url, node, context; - - //If no nameToUrl, then probably a build with a loader that - //does not support it, and all modules are inlined. - if (!hasToUrl) { - req([name], onLoad); - return; - } - - url = req.nameToUrl(name, null); - - //Make sure the async attribute is not set for any pathway involving - //this script. - require.s.skipAsync[url] = true; - if (supportsInOrderExecution || config.isBuild) { - //Just a normal script tag append, but without async attribute - //on the script. - req([name], onLoad); - } else if (supportsLoadSeparateFromExecute) { - //Just fetch the URL, but do not execute it yet. The - //non-standards IE case. Really not so nice because it is - //assuming and touching requrejs internals. OK though since - //ordered execution should go away after a long while. - context = require.s.contexts._; - - if (!context.urlFetched[url] && !context.loaded[name]) { - //Indicate the script is being fetched. - context.urlFetched[url] = true; - - //Stuff from require.load - require.resourcesReady(false); - context.scriptCount += 1; - - //Fetch the script now, remember it. - node = require.attach(url, context, name, null, null, onFetchOnly); - scriptNodes[name] = node; - scriptWaiting.push(name); - } - - //Do a normal require for it, once it loads, use it as return - //value. - req([name], onLoad); - } else { - //Credit to LABjs author Kyle Simpson for finding that scripts - //with type="script/cache" allow scripts to be downloaded into - //browser cache but not executed. Use that - //so that subsequent addition of a real type="text/javascript" - //tag will cause the scripts to be executed immediately in the - //correct order. - if (req.specified(name)) { - req([name], onLoad); - } else { - cacheWaiting.push({ - name: name, - req: req, - onLoad: onLoad - }); - require.attach(url, null, name, scriptCacheCallback, "script/cache"); - } - } - } - }); -}()); http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/21384b5b/solr/webapp/web/js/main.js ---------------------------------------------------------------------- diff --git a/solr/webapp/web/js/main.js b/solr/webapp/web/js/main.js deleted file mode 100644 index 2a7c32a..0000000 --- a/solr/webapp/web/js/main.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - 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. -*/ - -require -( - [ - 'lib/order!lib/console', - 'lib/order!jquery', - 'lib/order!lib/jquery.cookie', - 'lib/order!lib/jquery.form', - 'lib/order!lib/jquery.jstree', - 'lib/order!lib/jquery.sammy', - 'lib/order!lib/jquery.timeago', - 'lib/order!lib/jquery.ajaxfileupload', - 'lib/order!lib/jquery.blockUI', - 'lib/order!lib/highlight', - 'lib/order!lib/linker', - 'lib/order!lib/ZeroClipboard', - 'lib/order!lib/d3', - 'lib/order!lib/chosen', - 'lib/order!lib/naturalSort', - 'lib/order!scripts/app', - - 'lib/order!scripts/analysis', - 'lib/order!scripts/cloud', - 'lib/order!scripts/cores', - 'lib/order!scripts/documents', - 'lib/order!scripts/dataimport', - 'lib/order!scripts/dashboard', - 'lib/order!scripts/files', - 'lib/order!scripts/index', - 'lib/order!scripts/java-properties', - 'lib/order!scripts/logging', - 'lib/order!scripts/ping', - 'lib/order!scripts/plugins', - 'lib/order!scripts/query', - 'lib/order!scripts/replication', - 'lib/order!scripts/schema-browser', - 'lib/order!scripts/threads', - 'lib/order!scripts/segments' - ], - function( $ ) - { - app.run(); - } -);