diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 92e8d8d2628..3237fde391b 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -161,6 +161,8 @@ Other Changes * SOLR-10414: RecoveryStrategy is now a Runnable instead of a Thread. (Tomás Fernández Löbbe) +* SOLR-10042: Delete old deprecated Admin UI, leaving the AngularJS UI the only one supported (janhoy) + ================== 6.7.0 ================== Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release. diff --git a/solr/NOTICE.txt b/solr/NOTICE.txt index 54babbb9f23..d1f4e2fa2ed 100644 --- a/solr/NOTICE.txt +++ b/solr/NOTICE.txt @@ -25,15 +25,9 @@ Copyright (c) 2012, Michael Bostock, https://github.com/mbostock/d3 This product includes the highlight.js Javascript library created by Ivan Sagalaev Copyright (c) 2006, Ivan Sagalaev, https://github.com/isagalaev/highlight.js -This product includes the ZeroClipboard.js Javascript library created by Jon Rohan, James M. Greene -Copyright (c) 2012 Jon Rohan, James M. Greene, https://github.com/zeroclipboard/ZeroClipboard - This product includes the Chosen Javascript library created by Patrick Filler Copyright (c) 2011-2014 by Harvest, https://github.com/harvesthq/chosen -This product includes jquery.ajaxfileupload.js Javascript library created by Jordan Feldstein -Copyright (c) 2011 Jordan Feldstein, https://github.com/jfeldstein/jQuery.AjaxFileUpload.js - This product includes jquery.blockUI.js Javascript library created by Mike Alsup Copyright (c) 2007-2014 M. Alsup https://github.com/malsup/blockui/ @@ -43,18 +37,12 @@ Copyright (c) 2013-2014 Klaus Hartl, https://github.com/carhartl/jquery-cookie This product includes jquery.form Javascript library created by Mike Alsup Copyright 2006-2014 (c) M. Alsup, https://github.com/malsup/form/ -This product includes the jstree Javascript library created by Ivan Bozhanov +This product includes the jquery.jstree.js Javascript library created by Ivan Bozhanov Copyright (c) 2013-2014 Ivan Bozhanov, https://github.com/vakata/jstree -This product includes the Sammy.js Javascript library created by Aaron Quint -Copyright (c) 2008 Aaron Quint, Quirkey NYC, LLC, https://github.com/quirkey/sammy - This product includes jquery.timeago.js Javascript library by Ryan McGeary Copyright (c) 2008-2014, Ryan McGeary, https://github.com/rmm5t/jquery-timeago -This product includes linker.js Javascript library created by Michalis Tzikas & Vasilis Lolos -Copyright (C) 2011 by Michalis Tzikas & Vasilis Lolos, https://github.com/lolos/jquery-Linker/ - This product includes require.js Javascript library created by James Burke Copyright (C) 2010-2014 James Burke, https://github.com/jrburke/requirejs diff --git a/solr/contrib/velocity/src/java/org/apache/solr/response/VelocityResponseWriter.java b/solr/contrib/velocity/src/java/org/apache/solr/response/VelocityResponseWriter.java index 133bc63284d..c17412fe860 100644 --- a/solr/contrib/velocity/src/java/org/apache/solr/response/VelocityResponseWriter.java +++ b/solr/contrib/velocity/src/java/org/apache/solr/response/VelocityResponseWriter.java @@ -42,6 +42,7 @@ import org.apache.solr.request.SolrQueryRequest; import org.apache.solr.util.plugin.SolrCoreAware; import org.apache.velocity.Template; import org.apache.velocity.VelocityContext; +import org.apache.velocity.app.Velocity; import org.apache.velocity.app.VelocityEngine; import org.apache.velocity.runtime.RuntimeConstants; import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader; diff --git a/solr/contrib/velocity/src/resources/velocity/head.vm b/solr/contrib/velocity/src/resources/velocity/head.vm index 38e5f0c13cd..40592941d62 100644 --- a/solr/contrib/velocity/src/resources/velocity/head.vm +++ b/solr/contrib/velocity/src/resources/velocity/head.vm @@ -9,7 +9,7 @@ - + ",rE:true,sL:"css"}},{cN:"tag",b:"|$)",e:">",k:{title:"script"},c:[b],starts:{e:"<\/script>",rE:true,sL:"javascript"}},{b:"<%",e:"%>",sL:"vbscript"},{cN:"tag",b:"",c:[{cN:"title",b:"[^ />]+"},b]}]}}(hljs);hljs.LANGUAGES.php=function(a){var e={cN:"variable",b:"\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"};var b=[a.inherit(a.ASM,{i:null}),a.inherit(a.QSM,{i:null}),{cN:"string",b:'b"',e:'"',c:[a.BE]},{cN:"string",b:"b'",e:"'",c:[a.BE]}];var c=[a.BNM,a.CNM];var d={cN:"title",b:a.UIR};return{cI:true,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return implements parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception php_user_filter default die require __FUNCTION__ enddeclare final try this switch continue endfor endif declare unset true false namespace trait goto instanceof insteadof __DIR__ __NAMESPACE__ __halt_compiler",c:[a.CLCM,a.HCM,{cN:"comment",b:"/\\*",e:"\\*/",c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"}]},{cN:"comment",eB:true,b:"__halt_compiler.+?;",eW:true},{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[a.BE]},{cN:"preprocessor",b:"<\\?php",r:10},{cN:"preprocessor",b:"\\?>"},e,{cN:"function",bWK:true,e:"{",k:"function",i:"\\$|\\[|%",c:[d,{cN:"params",b:"\\(",e:"\\)",c:["self",e,a.CBLCLM].concat(b).concat(c)}]},{cN:"class",bWK:true,e:"{",k:"class",i:"[:\\(\\$]",c:[{bWK:true,eW:true,k:"extends",c:[d]},d]},{b:"=>"}].concat(b).concat(c)}}(hljs);hljs.LANGUAGES.python=function(a){var f={cN:"prompt",b:"^(>>>|\\.\\.\\.) "};var c=[{cN:"string",b:"(u|b)?r?'''",e:"'''",c:[f],r:10},{cN:"string",b:'(u|b)?r?"""',e:'"""',c:[f],r:10},{cN:"string",b:"(u|r|ur)'",e:"'",c:[a.BE],r:10},{cN:"string",b:'(u|r|ur)"',e:'"',c:[a.BE],r:10},{cN:"string",b:"(b|br)'",e:"'",c:[a.BE]},{cN:"string",b:'(b|br)"',e:'"',c:[a.BE]}].concat([a.ASM,a.QSM]);var e={cN:"title",b:a.UIR};var d={cN:"params",b:"\\(",e:"\\)",c:["self",a.CNM,f].concat(c)};var b={bWK:true,e:":",i:"[${=;\\n]",c:[e,d],r:10};return{k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10",built_in:"None True False Ellipsis NotImplemented"},i:"(|\\?)",c:c.concat([f,a.HCM,a.inherit(b,{cN:"function",k:"def"}),a.inherit(b,{cN:"class",k:"class"}),a.CNM,{cN:"decorator",b:"@",e:"$"},{b:"\\b(print|exec)\\("}])}}(hljs);hljs.LANGUAGES.json=function(a){var e={literal:"true false null"};var d=[a.QSM,a.CNM];var c={cN:"value",e:",",eW:true,eE:true,c:d,k:e};var b={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:true,eE:true,c:[a.BE],i:"\\n",starts:c}],i:"\\S"};var f={b:"\\[",e:"\\]",c:[a.inherit(c,{cN:null})],i:"\\S"};d.splice(d.length,0,b,f);return{c:d,k:e,i:"\\S"}}(hljs); diff --git a/solr/webapp/web/js/lib/jquery.ajaxfileupload.js b/solr/webapp/web/js/lib/jquery.ajaxfileupload.js deleted file mode 100644 index 272976af86d..00000000000 --- a/solr/webapp/web/js/lib/jquery.ajaxfileupload.js +++ /dev/null @@ -1,184 +0,0 @@ -/* -* Copyright (c) 2011 Jordan Feldstein - -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. - */ - -// Original code from: https://github.com/jfeldstein/jQuery.AjaxFileUpload.js https://github.com/jfeldstein/jQuery.AjaxFileUpload.js/commit/9dd56b4161cbed138287d3ae29a476bb59eb5fc4 -// All modifications are BSD licensed -// GSI: Modifications made to support immediate upload -/* - // - // - Ajaxifies an individual - // - Files are sandboxed. Doesn't matter how many, or where they are, on the page. - // - Allows for extra parameters to be included with the file - // - onStart callback can cancel the upload by returning false - */ - - -(function ($) { - $.fn.ajaxfileupload = function (options) { - var settings = { - params: {}, - action: '', - onStart: function () { - console.log('starting upload'); - console.log(this); - }, - onComplete: function (response) { - console.log('got response: '); - console.log(response); - console.log(this); - }, - onCancel: function () { - console.log('cancelling: '); - console.log(this); - }, - validate_extensions: true, - valid_extensions: ['gif', 'png', 'jpg', 'jpeg'], - submit_button: null, - upload_now: false - }; - - var uploading_file = false; - - if (options) { - $.extend(settings, options); - } - - - // 'this' is a jQuery collection of one or more (hopefully) - // file elements, but doesn't check for this yet - return this.each(function () { - var $element = $(this); - /* - // Internal handler that tries to parse the response - // and clean up after ourselves. - */ - var handleResponse = function (loadedFrame, element) { - var response, responseStr = loadedFrame.contentWindow.document.body.innerHTML; - try { - //response = $.parseJSON($.trim(responseStr)); - response = JSON.parse(responseStr); - } catch (e) { - response = responseStr; - } - - // Tear-down the wrapper form - element.siblings().remove(); - element.unwrap(); - - uploading_file = false; - - // Pass back to the user - settings.onComplete.apply(element, [response, settings.params]); - }; - /* - // Wraps element in a
tag, and inserts hidden inputs for each - // key:value pair in settings.params so they can be sent along with - // the upload. Then, creates an iframe that the whole thing is - // uploaded through. - */ - var wrapElement = function (element) { - // Create an iframe to submit through, using a semi-unique ID - var frame_id = 'ajaxUploader-iframe-' + Math.round(new Date().getTime() / 1000) - $('body').after('') - : $(''); - - var lyr2 = opts.theme - ? $('') - : $(''); - - var lyr3, s; - if (opts.theme && full) { - s = ''; - } - else if (opts.theme) { - s = ''; - } - else if (full) { - s = ''; - } - else { - s = ''; - } - lyr3 = $(s); - - // if we have a message, style it - if (msg) { - if (opts.theme) { - lyr3.css(themedCSS); - lyr3.addClass('ui-widget-content'); - } - else - lyr3.css(css); - } - - // style the overlay - if (!opts.theme && (!opts.applyPlatformOpacityRules || !($.browser.mozilla && /Linux/.test(navigator.platform)))) - lyr2.css(opts.overlayCSS); - lyr2.css('position', full ? 'fixed' : 'absolute'); - - // make iframe layer transparent in IE - if ($.browser.msie || opts.forceIframe) - lyr1.css('opacity',0.0); - - //$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el); - var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el); - $.each(layers, function() { - this.appendTo($par); - }); - - if (opts.theme && opts.draggable && $.fn.draggable) { - lyr3.draggable({ - handle: '.ui-dialog-titlebar', - cancel: 'li' - }); - } - - // ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling) - var expr = setExpr && (!$.boxModel || $('object,embed', full ? null : el).length > 0); - if (ie6 || expr) { - // give body 100% height - if (full && opts.allowBodyStretch && $.boxModel) - $('html,body').css('height','100%'); - - // fix ie6 issue when blocked element has a border width - if ((ie6 || !$.boxModel) && !full) { - var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth'); - var fixT = t ? '(0 - '+t+')' : 0; - var fixL = l ? '(0 - '+l+')' : 0; - } - - // simulate fixed position - $.each([lyr1,lyr2,lyr3], function(i,o) { - var s = o[0].style; - s.position = 'absolute'; - if (i < 2) { - full ? s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"') - : s.setExpression('height','this.parentNode.offsetHeight + "px"'); - full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') - : s.setExpression('width','this.parentNode.offsetWidth + "px"'); - if (fixL) s.setExpression('left', fixL); - if (fixT) s.setExpression('top', fixT); - } - else if (opts.centerY) { - if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'); - s.marginTop = 0; - } - else if (!opts.centerY && full) { - var top = (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0; - var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"'; - s.setExpression('top',expression); - } - }); - } - - // show the message - if (msg) { - if (opts.theme) - lyr3.find('.ui-widget-content').append(msg); - else - lyr3.append(msg); - if (msg.jquery || msg.nodeType) - $(msg).show(); - } - - if (($.browser.msie || opts.forceIframe) && opts.showOverlay) - lyr1.show(); // opacity is zero - if (opts.fadeIn) { - var cb = opts.onBlock ? opts.onBlock : noOp; - var cb1 = (opts.showOverlay && !msg) ? cb : noOp; - var cb2 = msg ? cb : noOp; - if (opts.showOverlay) - lyr2._fadeIn(opts.fadeIn, cb1); - if (msg) - lyr3._fadeIn(opts.fadeIn, cb2); - } - else { - if (opts.showOverlay) - lyr2.show(); - if (msg) - lyr3.show(); - if (opts.onBlock) - opts.onBlock(); - } - - // bind key and mouse events - bind(1, el, opts); - - if (full) { - pageBlock = lyr3[0]; - pageBlockEls = $(':input:enabled:visible',pageBlock); - if (opts.focusInput) - setTimeout(focus, 20); - } - else - center(lyr3[0], opts.centerX, opts.centerY); - - if (opts.timeout) { - // auto-unblock - var to = setTimeout(function() { - full ? $.unblockUI(opts) : $(el).unblock(opts); - }, opts.timeout); - $(el).data('blockUI.timeout', to); - } -}; - -// remove the block -function remove(el, opts) { - var full = (el == window); - var $el = $(el); - var data = $el.data('blockUI.history'); - var to = $el.data('blockUI.timeout'); - if (to) { - clearTimeout(to); - $el.removeData('blockUI.timeout'); - } - opts = $.extend({}, $.blockUI.defaults, opts || {}); - bind(0, el, opts); // unbind events - - if (opts.onUnblock === null) { - opts.onUnblock = $el.data('blockUI.onUnblock'); - $el.removeData('blockUI.onUnblock'); - } - - var els; - if (full) // crazy selector to handle odd field errors in ie6/7 - els = $('body').children().filter('.blockUI').add('body > .blockUI'); - else - els = $('.blockUI', el); - - if (full) - pageBlock = pageBlockEls = null; - - if (opts.fadeOut) { - els.fadeOut(opts.fadeOut); - setTimeout(function() { reset(els,data,opts,el); }, opts.fadeOut); - } - else - reset(els, data, opts, el); -}; - -// move blocking element back into the DOM where it started -function reset(els,data,opts,el) { - els.each(function(i,o) { - // remove via DOM calls so we don't lose event handlers - if (this.parentNode) - this.parentNode.removeChild(this); - }); - - if (data && data.el) { - data.el.style.display = data.display; - data.el.style.position = data.position; - if (data.parent) - data.parent.appendChild(data.el); - $(el).removeData('blockUI.history'); - } - - if (typeof opts.onUnblock == 'function') - opts.onUnblock(el,opts); -}; - -// bind/unbind the handler -function bind(b, el, opts) { - var full = el == window, $el = $(el); - - // don't bother unbinding if there is nothing to unbind - if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked'))) - return; - if (!full) - $el.data('blockUI.isBlocked', b); - - // don't bind events when overlay is not in use or if bindEvents is false - if (!opts.bindEvents || (b && !opts.showOverlay)) - return; - - // bind anchors and inputs for mouse and key events - var events = 'mousedown mouseup keydown keypress'; - b ? $(document).bind(events, opts, handler) : $(document).unbind(events, handler); - -// former impl... -// var $e = $('a,:input'); -// b ? $e.bind(events, opts, handler) : $e.unbind(events, handler); -}; - -// event handler to suppress keyboard/mouse events when blocking -function handler(e) { - // allow tab navigation (conditionally) - if (e.keyCode && e.keyCode == 9) { - if (pageBlock && e.data.constrainTabKey) { - var els = pageBlockEls; - var fwd = !e.shiftKey && e.target === els[els.length-1]; - var back = e.shiftKey && e.target === els[0]; - if (fwd || back) { - setTimeout(function(){focus(back)},10); - return false; - } - } - } - var opts = e.data; - // allow events within the message content - if ($(e.target).parents('div.' + opts.blockMsgClass).length > 0) - return true; - - // allow events for content that is not being blocked - return $(e.target).parents().children().filter('div.blockUI').length == 0; -}; - -function focus(back) { - if (!pageBlockEls) - return; - var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0]; - if (e) - e.focus(); -}; - -function center(el, x, y) { - var p = el.parentNode, s = el.style; - var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth'); - var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth'); - if (x) s.left = l > 0 ? (l+'px') : '0'; - if (y) s.top = t > 0 ? (t+'px') : '0'; -}; - -function sz(el, p) { - return parseInt($.css(el,p))||0; -}; - -})(jQuery); diff --git a/solr/webapp/web/js/lib/jquery.cookie.js b/solr/webapp/web/js/lib/jquery.cookie.js deleted file mode 100644 index 03079a54e6d..00000000000 --- a/solr/webapp/web/js/lib/jquery.cookie.js +++ /dev/null @@ -1,71 +0,0 @@ -/* - -The MIT License (MIT) - -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. - -*/ - -/*! - * jQuery Cookie Plugin - * https://github.com/carhartl/jquery-cookie - * - * Copyright 2011, Klaus Hartl - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://www.opensource.org/licenses/mit-license.php - * http://www.opensource.org/licenses/GPL-2.0 - */ -(function($) { - $.cookie = function(key, value, options) { - - // key and at least value given, set cookie... - if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) { - options = $.extend({}, options); - - if (value === null || value === undefined) { - options.expires = -1; - } - - if (typeof options.expires === 'number') { - var days = options.expires, t = options.expires = new Date(); - t.setDate(t.getDate() + days); - } - - value = String(value); - - return (document.cookie = [ - encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value), - options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE - options.path ? '; path=' + options.path : '', - options.domain ? '; domain=' + options.domain : '', - options.secure ? '; secure' : '' - ].join('')); - } - - // key and possibly options given, get cookie... - options = value || {}; - var decode = options.raw ? function(s) { return s; } : decodeURIComponent; - - var pairs = document.cookie.split('; '); - for (var i = 0, pair; pair = pairs[i] && pairs[i].split('='); i++) { - if (decode(pair[0]) === key) return decode(pair[1] || ''); // IE saves cookies with empty string as "c; ", e.g. without "=" as opposed to EOMB, thus pair[1] may be undefined - } - return null; - }; -})(jQuery); diff --git a/solr/webapp/web/js/lib/jquery.form.js b/solr/webapp/web/js/lib/jquery.form.js deleted file mode 100644 index 114affc67d4..00000000000 --- a/solr/webapp/web/js/lib/jquery.form.js +++ /dev/null @@ -1,806 +0,0 @@ -/* - -The MIT License (MIT) - -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. - -*/ - -/*! - * jQuery Form Plugin - * version: 2.47 (04-SEP-2010) - * @requires jQuery v1.3.2 or later - * - * Examples and documentation at: http://malsup.com/jquery/form/ - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - */ - -;(function($) { - -/* - Usage Note: - ----------- - Do not use both ajaxSubmit and ajaxForm on the same form. These - functions are intended to be exclusive. Use ajaxSubmit if you want - to bind your own submit handler to the form. For example, - - $(document).ready(function() { - $('#myForm').bind('submit', function() { - $(this).ajaxSubmit({ - target: '#output' - }); - return false; // <-- important! - }); - }); - - Use ajaxForm when you want the plugin to manage all the event binding - for you. For example, - - $(document).ready(function() { - $('#myForm').ajaxForm({ - target: '#output' - }); - }); - - When using ajaxForm, the ajaxSubmit function will be invoked for you - at the appropriate time. -*/ - -/** - * ajaxSubmit() provides a mechanism for immediately submitting - * an HTML form using AJAX. - */ -$.fn.ajaxSubmit = function(options) { - // fast fail if nothing selected (http://dev.jquery.com/ticket/2752) - if (!this.length) { - log('ajaxSubmit: skipping submit process - no element selected'); - return this; - } - - if (typeof options == 'function') { - options = { success: options }; - } - - var url = $.trim(this.attr('action')); - if (url) { - // clean url (don't include hash vaue) - url = (url.match(/^([^#]+)/)||[])[1]; - } - url = url || window.location.href || ''; - - options = $.extend(true, { - url: url, - type: this.attr('method') || 'GET', - iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank' - }, options); - - // hook for manipulating the form data before it is extracted; - // convenient for use with rich editors like tinyMCE or FCKEditor - var veto = {}; - this.trigger('form-pre-serialize', [this, options, veto]); - if (veto.veto) { - log('ajaxSubmit: submit vetoed via form-pre-serialize trigger'); - return this; - } - - // provide opportunity to alter form data before it is serialized - if (options.beforeSerialize && options.beforeSerialize(this, options) === false) { - log('ajaxSubmit: submit aborted via beforeSerialize callback'); - return this; - } - - var n,v,a = this.formToArray(options.semantic); - if (options.data) { - options.extraData = options.data; - for (n in options.data) { - if(options.data[n] instanceof Array) { - for (var k in options.data[n]) { - a.push( { name: n, value: options.data[n][k] } ); - } - } - else { - v = options.data[n]; - v = $.isFunction(v) ? v() : v; // if value is fn, invoke it - a.push( { name: n, value: v } ); - } - } - } - - // give pre-submit callback an opportunity to abort the submit - if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) { - log('ajaxSubmit: submit aborted via beforeSubmit callback'); - return this; - } - - // fire vetoable 'validate' event - this.trigger('form-submit-validate', [a, this, options, veto]); - if (veto.veto) { - log('ajaxSubmit: submit vetoed via form-submit-validate trigger'); - return this; - } - - var q = $.param(a); - - if (options.type.toUpperCase() == 'GET') { - options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q; - options.data = null; // data is null for 'get' - } - else { - options.data = q; // data is the query string for 'post' - } - - var $form = this, callbacks = []; - if (options.resetForm) { - callbacks.push(function() { $form.resetForm(); }); - } - if (options.clearForm) { - callbacks.push(function() { $form.clearForm(); }); - } - - // perform a load on the target only if dataType is not provided - if (!options.dataType && options.target) { - var oldSuccess = options.success || function(){}; - callbacks.push(function(data) { - var fn = options.replaceTarget ? 'replaceWith' : 'html'; - $(options.target)[fn](data).each(oldSuccess, arguments); - }); - } - else if (options.success) { - callbacks.push(options.success); - } - - options.success = function(data, status, xhr) { // jQuery 1.4+ passes xhr as 3rd arg - var context = options.context || options; // jQuery 1.4+ supports scope context - for (var i=0, max=callbacks.length; i < max; i++) { - callbacks[i].apply(context, [data, status, xhr || $form, $form]); - } - }; - - // are there files to upload? - var fileInputs = $('input:file', this).length > 0; - var mp = 'multipart/form-data'; - var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp); - - // options.iframe allows user to force iframe mode - // 06-NOV-09: now defaulting to iframe mode if file input is detected - if (options.iframe !== false && (fileInputs || options.iframe || multipart)) { - // hack to fix Safari hang (thanks to Tim Molendijk for this) - // see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d - if (options.closeKeepAlive) { - $.get(options.closeKeepAlive, fileUpload); - } - else { - fileUpload(); - } - } - else { - $.ajax(options); - } - - // fire 'notify' event - this.trigger('form-submit-notify', [this, options]); - return this; - - - // private function for handling file uploads (hat tip to YAHOO!) - function fileUpload() { - var form = $form[0]; - - if ($(':input[name=submit],:input[id=submit]', form).length) { - // if there is an input with a name or id of 'submit' then we won't be - // able to invoke the submit fn on the form (at least not x-browser) - alert('Error: Form elements must not have name or id of "submit".'); - return; - } - - var s = $.extend(true, {}, $.ajaxSettings, options); - s.context = s.context || s; - var id = 'jqFormIO' + (new Date().getTime()), fn = '_'+id; - window[fn] = function() { - var f = $io.data('form-plugin-onload'); - if (f) { - f(); - window[fn] = undefined; - try { delete window[fn]; } catch(e){} - } - } - var $io = $('--> - - - - \ No newline at end of file diff --git a/solr/webapp/web/tpl/files.html b/solr/webapp/web/tpl/files.html deleted file mode 100644 index 0a27f24a95e..00000000000 --- a/solr/webapp/web/tpl/files.html +++ /dev/null @@ -1,44 +0,0 @@ - -
- -
- -
- -
#tree
- -
-
- -
- - - -
- -
- -
Loading …
- -
- -
- -
- -
\ No newline at end of file diff --git a/solr/webapp/web/tpl/index.html b/solr/webapp/web/tpl/index.html deleted file mode 100644 index 18fd71a66a6..00000000000 --- a/solr/webapp/web/tpl/index.html +++ /dev/null @@ -1,250 +0,0 @@ - -
- -
- -
- -
- -

Instance

- -
- -
    - -
  • -
    Start
    -
    -
  • - -
  • -
    Host
    -
    -
  • - -
  • -
    CWD
    -
    -
  • - -
  • -
    Instance
    -
    -
  • - -
  • -
    Data
    -
    -
  • - -
  • -
    Index
    -
    -
  • - -
- -
- -
- -
- -

Versions

- -
- -
    - -
  • -
    solr-spec
    -
    -
  • - -
  • -
    solr-impl
    -
    -
  • - -
  • -
    lucene-spec
    -
    -
  • - -
  • -
    lucene-impl
    -
    -
  • - -
- -
- -
- -
- -
- -
- -

System

- reload - -
- -
- -

Physical Memory

-
- -
- - -
- - -
- -
- -
- -
- -
- -

Swap Space

-
- -
- - -
- - -
- -
- -
- -
- -
- -

File Descriptor Count

-
- -
- - -
- - -
- -
- -
- -
- -

Sorry, no information available

- -
- -
- -
- -
- -
- -
- -
- -

JVM

- -
- -
    - -
  • -
    Runtime
    -
    -
  • - -
  • -
    Processors
    -
    -
  • - -
  • -
    Args
    -
    -
  • - -
- -
- -
- -
-
- -
- -

JVM-Memory

- -
- -
-
- -
- - -
- - -
- - -
- -
- -
- -
-
- -
- -
- -
- -
- -
\ No newline at end of file diff --git a/solr/webapp/web/tpl/logging.html b/solr/webapp/web/tpl/logging.html deleted file mode 100644 index 80671e5280d..00000000000 --- a/solr/webapp/web/tpl/logging.html +++ /dev/null @@ -1,23 +0,0 @@ - -
- -
- -
- -
diff --git a/solr/webapp/web/tpl/plugins.html b/solr/webapp/web/tpl/plugins.html deleted file mode 100644 index 2d4a1a82bb0..00000000000 --- a/solr/webapp/web/tpl/plugins.html +++ /dev/null @@ -1,39 +0,0 @@ - -
- -
- -
- - - -
-
- -

Watching for Changes

- - -
-
- -
diff --git a/solr/webapp/web/tpl/query.html b/solr/webapp/web/tpl/query.html deleted file mode 100644 index bd0cdb06981..00000000000 --- a/solr/webapp/web/tpl/query.html +++ /dev/null @@ -1,361 +0,0 @@ - -
- -
- - - - - - -
- common -
- - - - - -
-
- -
- [-] - [+] -
-
-
- - - - - -
- - -
- - - - - - - - - - - - - - - - - -
-
- -
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- - - -
- - - - - - - - - - - - - - - - -
-
- -
- - - -
- - - - - - - - - - -
-
- -
- - - -
- - - - - - - - - - -
-
- -
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
- -
- - - -
- - - -
- -
- -
\ No newline at end of file diff --git a/solr/webapp/web/tpl/replication.html b/solr/webapp/web/tpl/replication.html deleted file mode 100644 index 2bfdfbdbd8c..00000000000 --- a/solr/webapp/web/tpl/replication.html +++ /dev/null @@ -1,216 +0,0 @@ - -
- -
- -
- -
- -
- -
- - Wed May 11 19:41:48 UTC 2011 - -
- -
- - 5.1 MB/s - -
- -
- -
- -
24 Files
-
226.85 MB
- -
- -
- - ETA: 25s - -
- -
- -
- - 20% - -
- -
- -
2 Files
-
91.76 MB
- -
- -
- -
- -
- -
- -
Current File:
-
_a.fdt
-
- 84 MB / 102.98 MB [81%] -
- -
- -
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IndexVersionGenSize
Master (Searching)
Master (Replicable)
Slave (Searching)
- -
- -
- -
Settings:
-
    -
  • -
    master url:
    -
    -
  • -
  • -
    polling enable:
    -
     
    -
  • -
- -
- -
- -
Settings (Master):
-
    -
  • -
    replication enable:
    -
     
    -
  • -
  • -
    replicateAfter:
    -
    -
  • -
  • -
    confFiles:
    -
    -
  • -
- -
- -
- - - -
diff --git a/solr/webapp/web/tpl/schema-browser.html b/solr/webapp/web/tpl/schema-browser.html deleted file mode 100644 index 43386680fa7..00000000000 --- a/solr/webapp/web/tpl/schema-browser.html +++ /dev/null @@ -1,192 +0,0 @@ - -
- -
- -
- -
- -
- -
-

- : - -

-
- -
- -

Because your Index is empty, we have not enough Information about this Field

- -
- -
- -
Field-Type:
- -
Similarity:
- -
PI Gap:
- -
Docs:
- -
Distinct:
- -
- - - - - - - - - - - - - - - - - -
Flags:
- -
    -
  • - -

    Index Analyzer:

    -
    -
    -
    - -
      -
    • -

      Char Filters:

      -
      -
      -
    • -
    • -

      Tokenizer:

      -
      -
      -
    • -
    • -

      Token Filters:

      -
      -
      -
    • -
    - -
  • -
  • - -

    Query Analyzer:

    -
    -
    -
    - -
      -
    • -

      Char Filters:

      -
      -
      -
    • -
    • -

      Tokenizer:

      -
      -
      -
    • -
    • -

      Token Filters:

      -
      -
      -
    • -
    - -
  • -
- -
- -
- -
- - - - Autoload - -
- -

Sorry, no Term Info available :(

- -
- -
-

- - / Top-Terms: - Query  -

-
- -
    - -
- -
- -
- -

Histogram:

- -
    - -
    - -
    - -
    - -
    - - - -
    - -
    diff --git a/solr/webapp/web/tpl/segments.html b/solr/webapp/web/tpl/segments.html deleted file mode 100644 index ffc21770468..00000000000 --- a/solr/webapp/web/tpl/segments.html +++ /dev/null @@ -1,49 +0,0 @@ - -
    -
    - -
    - -

    Segments

    - reload - -
    -
    -
    - -
    - -
    - -
    - -
    - -
      - -
      - -
      - -
      -
      -
      - -
      - -
      \ No newline at end of file diff --git a/solr/webapp/web/tpl/threads.html b/solr/webapp/web/tpl/threads.html deleted file mode 100644 index 87153ba7486..00000000000 --- a/solr/webapp/web/tpl/threads.html +++ /dev/null @@ -1,56 +0,0 @@ - - \ No newline at end of file