From 78a5be5e287a89df621e86a5dd2f95199c1b6de6 Mon Sep 17 00:00:00 2001 From: Erick Erickson Date: Tue, 14 Feb 2012 14:07:22 +0000 Subject: [PATCH] Added Apache license information to the new UI pages files. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1243925 13f79535-47bb-0310-9956-ffa450edef68 --- solr/webapp/web/js/0_console.js | 17 +++++++++++++++++ solr/webapp/web/js/1_jquery.js | 17 +++++++++++++++++ solr/webapp/web/js/highlight.js | 16 ++++++++++++++++ solr/webapp/web/js/jquery.form.js | 17 +++++++++++++++++ solr/webapp/web/js/jquery.jstree.js | 16 ++++++++++++++++ solr/webapp/web/js/jquery.sammy.js | 16 ++++++++++++++++ solr/webapp/web/js/jquery.sparkline.js | 16 ++++++++++++++++ solr/webapp/web/js/jquery.timeago.js | 17 +++++++++++++++++ solr/webapp/web/js/script.js | 16 ++++++++++++++++ solr/webapp/web/tpl/analysis.html | 17 +++++++++++++++++ solr/webapp/web/tpl/cloud.html | 16 ++++++++++++++++ solr/webapp/web/tpl/cores.html | 16 ++++++++++++++++ solr/webapp/web/tpl/dashboard.html | 16 ++++++++++++++++ solr/webapp/web/tpl/dataimport.html | 16 ++++++++++++++++ solr/webapp/web/tpl/index.html | 16 ++++++++++++++++ solr/webapp/web/tpl/plugins.html | 16 ++++++++++++++++ solr/webapp/web/tpl/query.html | 16 ++++++++++++++++ solr/webapp/web/tpl/replication.html | 16 ++++++++++++++++ solr/webapp/web/tpl/schema-browser.html | 16 ++++++++++++++++ .../web/tpl/schema-browser_dynamic-field.html | 16 ++++++++++++++++ solr/webapp/web/tpl/schema-browser_type.html | 16 ++++++++++++++++ solr/webapp/web/tpl/threads.html | 16 ++++++++++++++++ 22 files changed, 357 insertions(+) diff --git a/solr/webapp/web/js/0_console.js b/solr/webapp/web/js/0_console.js index 8b2dd7382eb..ac540c621ce 100644 --- a/solr/webapp/web/js/0_console.js +++ b/solr/webapp/web/js/0_console.js @@ -1,3 +1,20 @@ +/* + 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. +*/ + if( 'undefined' === typeof( console ) ) { var console = { diff --git a/solr/webapp/web/js/1_jquery.js b/solr/webapp/web/js/1_jquery.js index 5d5a1d58ee5..bdf1643f14b 100644 --- a/solr/webapp/web/js/1_jquery.js +++ b/solr/webapp/web/js/1_jquery.js @@ -13,6 +13,23 @@ * * Date: Thu May 12 15:04:36 2011 -0400 */ + /* + 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. + */ + (function( window, undefined ) { // Use the correct document accordingly with window argument (sandbox) diff --git a/solr/webapp/web/js/highlight.js b/solr/webapp/web/js/highlight.js index 6ee2b84ddd8..50e02537a45 100644 --- a/solr/webapp/web/js/highlight.js +++ b/solr/webapp/web/js/highlight.js @@ -1 +1,17 @@ +/* + 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. +*/ var hljs=new function(){var p={};var a={};function n(c){return c.replace(/&/gm,"&").replace(//gm,">")}function k(s,r){if(!s){return false}for(var c=0;c"}function B(C){return""}while(z.length||A.length){var w=v().splice(0,1)[0];x+=n(y.substr(s,w.offset-s));s=w.offset;if(w.event=="start"){x+=t(w.node);u.push(w.node)}else{if(w.event=="stop"){var r=u.length;do{r--;var c=u[r];x+=B(c)}while(c!=w.node);u.splice(r,1);while(r'+n(M[0])+""}else{O+=n(M[0])}R=Q.lR.lastIndex;M=Q.lR.exec(N)}O+=n(N.substr(R,N.length-R));return O}function L(r,N){if(N.subLanguage&&a[N.subLanguage]){var M=g(N.subLanguage,r);u+=M.keyword_count;C+=M.r;return M.value}else{return G(r,N)}}function J(N,r){var M=N.nM?"":'';if(N.rB){s+=M;N.buffer=""}else{if(N.eB){s+=n(r)+M;N.buffer=""}else{s+=M;N.buffer=r}}D[D.length]=N}function F(M,O,R){var P=D[D.length-1];if(R){s+=L(P.buffer+M,P);return false}var S=A(O,P);if(S){s+=L(P.buffer+M,P);J(S,O);C+=S.r;return S.rB}var r=x(D.length-1,O);if(r){var T=P.nM?"":"";if(P.rE){s+=L(P.buffer+M,P)+T}else{if(P.eE){s+=L(P.buffer+M,P)+T+n(O)}else{s+=L(P.buffer+M+O,P)+T}}while(r>1){T=D[D.length-2].nM?"":"";s+=T;r--;D.length--}var Q=D[D.length-1];D.length--;D[D.length-1].buffer="";if(Q.starts){for(var N=0;N1){throw"Illegal"}return{language:K,r:C,keyword_count:u,value:s}}catch(H){if(H=="Illegal"){return{language:null,r:0,keyword_count:0,value:n(E)}}else{throw H}}}function i(){function r(y,x){if(y.compiled){return}if(y.b){y.bR=e(x,"^"+y.b)}if(y.e){y.eR=e(x,"^"+y.e)}if(y.i){y.iR=e(x,"^(?:"+y.i+")")}if(y.r==undefined){y.r=1}if(!y.displayClassName){y.displayClassName=y.cN}if(!y.cN){y.nM=true}for(var w in y.k){if(!y.k.hasOwnProperty(w)){continue}if(y.k[w] instanceof Object){y.keywordGroups=y.k}else{y.keywordGroups={keyword:y.k}}break}y.sm=[];if(y.c){for(var v=0;vz.keyword_count+z.r){z=w}if(w.keyword_count+w.r>y.keyword_count+y.r){z=y;y=w}}}var u=v.className;if(!u.match(y.language)){u=u?(u+" "+y.language):y.language}var c=d(v);if(c.length){var s=document.createElement("pre");s.innerHTML=y.value;y.value=m(c,d(s),C)}if(A){y.value=y.value.replace(/^((<[^>]+>|\t)+)/gm,function(D,G,F,E){return G.replace(/\t/g,A)})}if(r){y.value=y.value.replace(/\n/g,"
")}if(/MSIE [678]/.test(navigator.userAgent)&&v.tagName=="CODE"&&v.parentNode.tagName=="PRE"){var s=v.parentNode;var x=document.createElement("div");x.innerHTML="
"+y.value+"
";v=x.firstChild.firstChild;x.firstChild.cN=s.cN;s.parentNode.replaceChild(x.firstChild,s)}else{v.innerHTML=y.value}v.className=u;v.dataset={};v.dataset.result={language:y.language,kw:y.keyword_count,re:y.r};if(z&&z.language){v.dataset.second_best={language:z.language,kw:z.keyword_count,re:z.r}}}function l(){if(l.called){return}l.called=true;f();if(arguments.length){for(var c=0;c|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:["escape"],r:0};this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:["escape"],r:0};this.BE={cN:"escape",b:"\\\\.",e:this.IMR,nM:true,r:0};this.CLCM={cN:"comment",b:"//",e:"$",r:0};this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"};this.HCM={cN:"comment",b:"#",e:"$"};this.NUMBER_MODE={cN:"number",b:this.NR,e:this.IMR,r:0};this.CNM={cN:"number",b:this.CNR,e:this.IMR,r:0};this.inherit=function(c,t){var s={};for(var r in c){s[r]=c[r]}if(t){for(var r in t){s[r]=t[r]}}return s}}();var initHighlightingOnLoad=hljs.initHighlightingOnLoad;(function(){var d="[A-Za-z0-9\\._:-]+";var k={cN:"pi",b:"<\\?",e:"\\?>",r:10};var i={cN:"doctype",b:"",r:10};var j={cN:"comment",b:""};var g={cN:"tag",b:"",c:["title","tag_internal"]};var e={cN:"title",b:d,e:hljs.IMR};var b={cN:"tag_internal",b:hljs.IMR,eW:true,nM:true,c:["attribute","value_container"],r:0};var f={cN:"attribute",b:d,e:hljs.IMR,r:0};var a={cN:"value_container",b:'="',rB:true,e:'"',nM:true,c:[{cN:"value",b:'"',eW:true}]};var c={cN:"value_container",b:"='",rB:true,e:"'",nM:true,c:[{cN:"value",b:"'",eW:true}]};hljs.LANGUAGES.xml={dM:{c:["pi","doctype","comment","cdata","tag"]},cI:true,m:[{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},k,i,j,g,hljs.inherit(e,{r:1.75}),b,f,a,c]};var h={code:1,kbd:1,font:1,noscript:1,style:1,img:1,title:1,menu:1,tt:1,tr:1,param:1,li:1,tfoot:1,th:1,input:1,td:1,dl:1,blockquote:1,fieldset:1,big:1,dd:1,abbr:1,optgroup:1,dt:1,button:1,isindex:1,p:1,small:1,div:1,dir:1,em:1,frame:1,meta:1,sub:1,bdo:1,label:1,acronym:1,sup:1,body:1,basefont:1,base:1,br:1,address:1,strong:1,legend:1,ol:1,script:1,caption:1,s:1,col:1,h2:1,h3:1,h1:1,h6:1,h4:1,h5:1,table:1,select:1,noframes:1,span:1,area:1,dfn:1,strike:1,cite:1,thead:1,head:1,option:1,form:1,hr:1,"var":1,link:1,b:1,colgroup:1,ul:1,applet:1,del:1,iframe:1,pre:1,frameset:1,ins:1,tbody:1,html:1,samp:1,map:1,object:1,a:1,xmlns:1,center:1,textarea:1,i:1,q:1,u:1,section:1,nav:1,article:1,aside:1,hgroup:1,header:1,footer:1,figure:1,figurecaption:1,time:1,mark:1,wbr:1,embed:1,video:1,audio:1,source:1,canvas:1,datalist:1,keygen:1,output:1,progress:1,meter:1,details:1,summary:1,command:1};hljs.LANGUAGES.html={dM:{c:["comment","pi","doctype","vbscript","tag"]},cI:true,m:[{cN:"tag",b:"",l:[hljs.IR],k:{style:1},c:["tag_internal"],starts:"css"},{cN:"tag",b:"",l:[hljs.IR],k:{script:1},c:["tag_internal"],starts:"javascript"},{cN:"css",e:"",rE:true,subLanguage:"css"},{cN:"javascript",e:"<\/script>",rE:true,subLanguage:"javascript"},{cN:"vbscript",b:"<%",e:"%>",subLanguage:"vbscript"},j,k,i,hljs.inherit(g),hljs.inherit(e,{l:[hljs.IR],k:h}),hljs.inherit(b),f,a,c,{cN:"value_container",b:"=",e:hljs.IMR,c:[{cN:"unquoted_value",displayClassName:"value",b:"[^\\s/>]+",e:hljs.IMR}]}]}})(); \ No newline at end of file diff --git a/solr/webapp/web/js/jquery.form.js b/solr/webapp/web/js/jquery.form.js index 2f165464d52..e924bb61270 100644 --- a/solr/webapp/web/js/jquery.form.js +++ b/solr/webapp/web/js/jquery.form.js @@ -8,6 +8,23 @@ * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ + /* + 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. + */ + ;(function($) { /* diff --git a/solr/webapp/web/js/jquery.jstree.js b/solr/webapp/web/js/jquery.jstree.js index 0eea2f662f0..4af3bb274cd 100644 --- a/solr/webapp/web/js/jquery.jstree.js +++ b/solr/webapp/web/js/jquery.jstree.js @@ -11,6 +11,22 @@ * $Date: 2010-07-01 10:51:11 +0300 (четв, 01 юли 2010) $ * $Revision: 191 $ */ +/* + 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. +*/ /*jslint browser: true, onevar: true, undef: true, bitwise: true, strict: true */ /*global window : false, clearInterval: false, clearTimeout: false, document: false, setInterval: false, setTimeout: false, jQuery: false, navigator: false, XSLTProcessor: false, DOMParser: false, XMLSerializer: false*/ diff --git a/solr/webapp/web/js/jquery.sammy.js b/solr/webapp/web/js/jquery.sammy.js index 14fa5658b4d..d655c8d3aa4 100644 --- a/solr/webapp/web/js/jquery.sammy.js +++ b/solr/webapp/web/js/jquery.sammy.js @@ -1,5 +1,21 @@ // name: sammy // version: 0.6.2 +/* + 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. +*/ (function($, window) { diff --git a/solr/webapp/web/js/jquery.sparkline.js b/solr/webapp/web/js/jquery.sparkline.js index 1b0fea3d26a..d677188f195 100644 --- a/solr/webapp/web/js/jquery.sparkline.js +++ b/solr/webapp/web/js/jquery.sparkline.js @@ -167,6 +167,22 @@ * $('#pie').sparkline([1,1,2], { type:'pie' }); */ +/* + 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. +*/ (function($) { diff --git a/solr/webapp/web/js/jquery.timeago.js b/solr/webapp/web/js/jquery.timeago.js index 315629b4bdd..f16dd59d7c7 100644 --- a/solr/webapp/web/js/jquery.timeago.js +++ b/solr/webapp/web/js/jquery.timeago.js @@ -13,6 +13,23 @@ * * Copyright (c) 2008-2011, Ryan McGeary (ryanonjavascript -[at]- mcgeary [*dot*] org) */ +/* + 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. +*/ + (function($) { $.timeago = function(timestamp) { if (timestamp instanceof Date) { diff --git a/solr/webapp/web/js/script.js b/solr/webapp/web/js/script.js index 519ccecdf9f..5c4fa82cb02 100644 --- a/solr/webapp/web/js/script.js +++ b/solr/webapp/web/js/script.js @@ -1,3 +1,19 @@ +/* + 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. +*/ var loader = { show : function( element ) diff --git a/solr/webapp/web/tpl/analysis.html b/solr/webapp/web/tpl/analysis.html index 0c5e18cf0e0..738d1cbf309 100644 --- a/solr/webapp/web/tpl/analysis.html +++ b/solr/webapp/web/tpl/analysis.html @@ -1,3 +1,20 @@ + +
diff --git a/solr/webapp/web/tpl/cloud.html b/solr/webapp/web/tpl/cloud.html index 5a9eda86f4f..ab707a9c993 100644 --- a/solr/webapp/web/tpl/cloud.html +++ b/solr/webapp/web/tpl/cloud.html @@ -1,3 +1,19 @@ +
diff --git a/solr/webapp/web/tpl/cores.html b/solr/webapp/web/tpl/cores.html index c5e02a92e07..c1a2bc6434a 100644 --- a/solr/webapp/web/tpl/cores.html +++ b/solr/webapp/web/tpl/cores.html @@ -1,3 +1,19 @@ +
diff --git a/solr/webapp/web/tpl/dashboard.html b/solr/webapp/web/tpl/dashboard.html index 5668ea933c2..430114b12b1 100644 --- a/solr/webapp/web/tpl/dashboard.html +++ b/solr/webapp/web/tpl/dashboard.html @@ -1,3 +1,19 @@ +
diff --git a/solr/webapp/web/tpl/dataimport.html b/solr/webapp/web/tpl/dataimport.html index 9a245da782d..e0dbec78146 100644 --- a/solr/webapp/web/tpl/dataimport.html +++ b/solr/webapp/web/tpl/dataimport.html @@ -1,3 +1,19 @@ +
diff --git a/solr/webapp/web/tpl/index.html b/solr/webapp/web/tpl/index.html index 6ea34f745c7..19186aa5829 100644 --- a/solr/webapp/web/tpl/index.html +++ b/solr/webapp/web/tpl/index.html @@ -1,3 +1,19 @@ +
diff --git a/solr/webapp/web/tpl/plugins.html b/solr/webapp/web/tpl/plugins.html index abae378b35b..6afac23788a 100644 --- a/solr/webapp/web/tpl/plugins.html +++ b/solr/webapp/web/tpl/plugins.html @@ -1,3 +1,19 @@ +
diff --git a/solr/webapp/web/tpl/query.html b/solr/webapp/web/tpl/query.html index 7e036148777..9d0160956d3 100644 --- a/solr/webapp/web/tpl/query.html +++ b/solr/webapp/web/tpl/query.html @@ -1,3 +1,19 @@ +
diff --git a/solr/webapp/web/tpl/replication.html b/solr/webapp/web/tpl/replication.html index 85c2151d3f2..9968a688cf6 100644 --- a/solr/webapp/web/tpl/replication.html +++ b/solr/webapp/web/tpl/replication.html @@ -1,3 +1,19 @@ +
diff --git a/solr/webapp/web/tpl/schema-browser.html b/solr/webapp/web/tpl/schema-browser.html index 779070d4570..ff6e2b4f427 100644 --- a/solr/webapp/web/tpl/schema-browser.html +++ b/solr/webapp/web/tpl/schema-browser.html @@ -1,3 +1,19 @@ +
diff --git a/solr/webapp/web/tpl/schema-browser_dynamic-field.html b/solr/webapp/web/tpl/schema-browser_dynamic-field.html index e69de29bb2d..449e8a88cfe 100644 --- a/solr/webapp/web/tpl/schema-browser_dynamic-field.html +++ b/solr/webapp/web/tpl/schema-browser_dynamic-field.html @@ -0,0 +1,16 @@ + diff --git a/solr/webapp/web/tpl/schema-browser_type.html b/solr/webapp/web/tpl/schema-browser_type.html index e69de29bb2d..449e8a88cfe 100644 --- a/solr/webapp/web/tpl/schema-browser_type.html +++ b/solr/webapp/web/tpl/schema-browser_type.html @@ -0,0 +1,16 @@ + diff --git a/solr/webapp/web/tpl/threads.html b/solr/webapp/web/tpl/threads.html index c3a197e6c2b..2d4c2f762a5 100644 --- a/solr/webapp/web/tpl/threads.html +++ b/solr/webapp/web/tpl/threads.html @@ -1,3 +1,19 @@ +