Added: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/query.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/query.css?rev=1707042&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/query.css (added) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/query.css Tue Oct 6 12:48:53 2015 @@ -0,0 +1,162 @@ +/* + +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. + +*/ + +#content #query +{ + background-image: url( ../../img/div.gif ); + background-position: 22% 0; + background-repeat: repeat-y; +} + +#content #query #form +{ + float: left; + width: 21%; +} + +#content #query #form label +{ + cursor: pointer; + display: block; + margin-top: 5px; +} + +#content #query #form input, +#content #query #form select, +#content #query #form textarea +{ + margin-bottom: 2px; + width: 100%; +} + +#content #query #form input, +#content #query #form textarea +{ + width: 98%; +} + +#content #query #form .multiple input +{ + float: left; + width: 80% +} + +#content #query #form .multiple .buttons +{ + float: right; + width: 16%; +} + + +#content #query #form .multiple a +{ + background-position: 50% 50%; + display: block; + height: 25px; + width: 49%; +} + +#content #query #form .multiple a.add +{ + background-image: url( ../../img/ico/plus-button.png ); + float: right; +} + +#content #query #form .multiple a.rem +{ + background-image: url( ../../img/ico/minus-button.png ); + float: left; +} + +#content #query #form #start +{ + float: left; + width: 45%; +} + +#content #query #form #rows +{ + float: right; + width: 45%; +} + +#content #query #form .checkbox input +{ + margin-bottom: 0; + width: auto; +} + +#content #query #form fieldset, +#content #query #form .optional.expanded +{ + border: 1px solid #fff; + border-top: 1px solid #c0c0c0; + margin-bottom: 5px; +} + +#content #query #form fieldset.common +{ + margin-top: 10px; +} + +#content #query #form fieldset legend, +#content #query #form .optional.expanded legend +{ + display: block; + margin-left: 10px; + padding: 0px 5px; +} + +#content #query #form fieldset legend label +{ + margin-top: 0; +} + +#content #query #form fieldset .fieldset +{ + border-bottom: 1px solid #f0f0f0; + margin-bottom: 5px; + padding-bottom: 10px; +} + +#content #query #form .optional +{ + border: 0; +} + +#content #query #form .optional legend +{ + margin-left: 0; + padding-left: 0; +} + +#content #query #form .optional.expanded .fieldset +{ + display: block; +} + +#content #query #result +{ + float: right; + width: 77%; +} + +#content #query #result #response +{ +}
Propchange: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/query.css ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/replication.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/replication.css?rev=1707042&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/replication.css (added) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/replication.css Tue Oct 6 12:48:53 2015 @@ -0,0 +1,500 @@ +/* + +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. + +*/ + +#content #replication +{ + background-image: url( ../../img/div.gif ); + background-position: 21% 0; + background-repeat: repeat-y; +} + +#content #replication #frame +{ + float: right; + width: 78%; +} + +#content #replication #navigation +{ + border-right: 0; + float: left; + width: 20%; +} + +#content #replication #error +{ + background-color: #f00; + background-image: url( ../../img/ico/construction.png ); + background-position: 10px 50%; + color: #fff; + font-weight: bold; + margin-bottom: 20px; + padding: 10px; + padding-left: 35px; +} + +#content #replication .block +{ + border-bottom: 1px solid #c0c0c0; + margin-bottom: 20px; + padding-bottom: 20px; +} + +#content #replication .block.last +{ + border-bottom: 0; +} + +#content #replication .masterOnly, +#content #replication .slaveOnly +{ +} + +#content #replication.master .masterOnly +{ + display: block; +} + +#content #replication.slave .slaveOnly +{ + display: block; +} + +#content #replication .replicating +{ +} + +#content #replication.replicating .replicating +{ + display: block; +} + +#content #replication #progress +{ + padding-bottom: 80px; + position: relative; +} + +#content #replication #progress .info +{ + padding: 5px; +} + +#content #replication #progress #start +{ + margin-left: 100px; + border-left: 1px solid #c0c0c0; +} + +#content #replication #progress #bar +{ + background-color: #f0f0f0; + margin-left: 100px; + margin-right: 100px; + position: relative; +} + +#content #replication #progress #bar #bar-info, +#content #replication #progress #bar #eta +{ + position: absolute; + right: -100px; + width: 100px; +} + +#content #replication #progress #bar #bar-info +{ + border-left: 1px solid #f0f0f0; + margin-top: 30px; +} + +#content #replication #progress #eta .info +{ + color: #c0c0c0; + height: 30px; + line-height: 30px; + padding-top: 0; + padding-bottom: 0; +} + +#content #replication #progress #speed +{ + color: #c0c0c0; + position: absolute; + right: 100px; + top: 0; +} + +#content #replication #progress #bar #done +{ + background-color: #c0c0c0; + box-shadow: 5px 5px 10px #c0c0c0; + -moz-box-shadow: 5px 5px 10px #c0c0c0; + -webkit-box-shadow: 5px 5px 10px #c0c0c0; + height: 30px; + position: relative; +} + +#content #replication #progress #bar #done .percent +{ + font-weight: bold; + height: 30px; + line-height: 30px; + padding-left: 5px; + padding-right: 5px; + position: absolute; + right: 0; + text-align: right; +} + +#content #replication #progress #bar #done #done-info +{ + border-right: 1px solid #c0c0c0; + position: absolute; + right: 0; + margin-top: 30px; + text-align: right; + width: 100px; +} + +#content #replication #progress #bar #done #done-info .percent +{ + font-weight: bold; +} + +#content #replication .block .label, +#content #replication #current-file .file, +#content #replication #current-file .progress, +#content #replication #iterations .iterations +{ + float: left; +} + +#content #replication .block .label +{ + width: 100px; +} + +#content #replication .block .label span +{ + display: block; + padding-left: 21px; +} + +#content #replication #current-file +{ + border-top: 1px solid #f0f0f0; + margin-top: 10px; + padding-top: 10px; +} + +#content #replication #current-file .progress +{ + color: #c0c0c0; + margin-left: 20px; +} + +#content #replication #iterations .label span +{ + background-image: url( ../../img/ico/node-design.png ); +} + +#content #replication #iterations .iterations li +{ + background-position: 100% 50%; + padding-right: 21px; +} + +#content #replication #iterations .iterations.expanded li +{ + display: block; +} + +#content #replication #iterations .iterations .latest +{ + display: block; +} + +#content #replication #iterations .iterations .replicated +{ + color: #80c480; +} + +#content #replication #iterations .iterations ul:hover .replicated, +#content #replication #iterations .iterations .replicated.latest +{ + color: #080; +} + +#content #replication #iterations .iterations .replicated.latest +{ + background-image: url( ../../img/ico/tick.png ); +} + +#content #replication #iterations .iterations .failed +{ + color: #c48080; +} + +#content #replication #iterations .iterations ul:hover .failed, +#content #replication #iterations .iterations .failed.latest +{ + color: #800; +} + +#content #replication #iterations .iterations .failed.latest +{ + background-image: url( ../../img/ico/cross.png ); +} + +#content #replication #iterations .iterations a +{ + border-top: 1px solid #f0f0f0; + margin-top: 2px; + padding-top: 2px; +} + +#content #replication #iterations .iterations a span +{ + background-position: 0 50%; + color: #c0c0c0; + padding-left: 21px; +} + +#content #replication #iterations .iterations a span.expand +{ + background-image: url( ../../img/ico/chevron-small-expand.png ); + display: block; +} + +#content #replication #iterations .iterations a span.collapse +{ + background-image: url( ../../img/ico/chevron-small.png ); + display: block; +} + +#content #replication #details table +{ + margin-left: 20px; + border-collapse: collapse; +} + +#content #replication #details table th +{ + text-align: left; +} + +#content #replication.slave #details table .slaveOnly +{ + display: table-row; +} + +#content #replication #details table thead th +{ + color: #c0c0c0; +} + +#content #replication #details table thead th, +#content #replication #details table tbody td +{ + padding-right: 20px; +} + +#content #replication #details table thead td, +#content #replication #details table thead th, +#content #replication #details table tbody th, +#content #replication #details table tbody td div +{ + padding-top: 3px; + padding-bottom: 3px; +} + +#content #replication #details table tbody td, +#content #replication #details table tbody th +{ + border-top: 1px solid #f0f0f0; +} + +#content #replication #details table thead td +{ + width: 100px; +} + +#content #replication #details table thead td span +{ + background-image: url( ../../img/ico/clipboard-list.png ); + background-position: 0 50%; + display: block; + padding-left: 21px; +} + +#content #replication #details table tbody th +{ + padding-right: 10px; + text-align: right; + white-space: nowrap; +} + +#content #replication #details table tbody .size +{ + text-align: right; + white-space: nowrap; +} + +#content #replication #details table tbody .generation div +{ + text-align: center; +} + +#content #replication #details table tbody .diff div +{ + background-color: #fcfcc9; + padding-left: 1px; + padding-right: 1px; +} + +#content #replication .settings .label span +{ + background-image: url( ../../img/ico/hammer-screwdriver.png ); +} + +#content #replication .settings ul, +#content #replication .settings dl dt, +#content #replication .settings dl dd +{ + float: left; +} + +#content #replication .settings ul li +{ + border-top: 1px solid #f0f0f0; + padding-top: 3px; + padding-top: 3px; +} + +#content #replication .settings ul li:first-child +{ + border-top: 0; + padding-top: 0; +} + +#content #replication .settings dl dt +{ + clear: left; + margin-right: 5px; + width: 120px; +} + +#content #replication .settings dl .ico +{ + background-position: 0 50%; + padding-left: 21px; +} + +#content #replication .settings dl .ico.ico-0 +{ + background-image: url( ../../img/ico/slash.png ); +} + +#content #replication .settings dl .ico.ico-1 +{ + background-image: url( ../../img/ico/tick.png ); +} + +#content #replication .timer +{ + box-shadow: 5px 5px 10px #c0c0c0; + -moz-box-shadow: 5px 5px 10px #c0c0c0; + -webkit-box-shadow: 5px 5px 10px #c0c0c0; + margin-bottom: 20px; + padding: 10px; +} + +#content #replication .timer p, +#content #replication .timer small +{ + padding-left: 21px; +} + +#content #replication .timer p +{ + background-image: url( ../../img/ico/clock-select-remain.png ); + background-position: 0 50%; +} + +#content #replication .timer p .approx +{ + color: #c0c0c0; + margin-right: 1px; +} + +#content #replication .timer p .tick +{ + font-weight: bold; +} + +#content #replication .timer small +{ + color: #c0c0c0; +} + +#content #replication #navigation button +{ + display: block; + margin-bottom: 10px; +} + +#content #replication #navigation button.optional +{ +} + +#content #replication #navigation .replicate-now span +{ + background-image: url( ../../img/ico/document-convert.png ); +} + +#content #replication #navigation .abort-replication span +{ + background-image: url( ../../img/ico/hand.png ); +} + +#content #replication #navigation .disable-polling span +{ + background-image: url( ../../img/ico/cross.png ); +} + +#content #replication #navigation .enable-polling span +{ + background-image: url( ../../img/ico/tick.png ); +} + +#content #replication #navigation .disable-replication span +{ + background-image: url( ../../img/ico/cross.png ); +} + +#content #replication #navigation .enable-replication span +{ + background-image: url( ../../img/ico/tick.png ); +} + +#content #replication #navigation .refresh-status span +{ + background-image: url( ../../img/ico/arrow-circle.png ); +} Propchange: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/replication.css ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/schema-browser.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/schema-browser.css?rev=1707042&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/schema-browser.css (added) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/schema-browser.css Tue Oct 6 12:48:53 2015 @@ -0,0 +1,567 @@ +/* + +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. + +*/ + +#content #schema-browser .loader +{ + background-position: 0 50%; + padding-left: 21px; +} + +#content #schema-browser.loaded +{ + background-image: url( ../../img/div.gif ); + background-position: 21% 0; + background-repeat: repeat-y; +} + +#content #schema-browser #data +{ + float: right; + width: 78%; +} + +#content #schema-browser #related +{ + float: left; + width: 20%; +} + +#content #schema-browser #related select +{ + width: 100%; +} + +#content #schema-browser #related select optgroup +{ + font-style: normal; + padding: 5px; +} + +#content #schema-browser #related select option +{ + padding-left: 10px; +} + +#content #schema-browser #related #f-df-t +{ + border-bottom: 1px solid #f0f0f0; + padding-bottom: 15px; +} + +#content #schema-browser #related .ukf-dsf dt +{ +} + +#content #schema-browser #related dl +{ + margin-top: 15px; +} + +#content #schema-browser #related dl dt, +#content #schema-browser #related dl dd a +{ + color: #c0c0c0; +} + +#content #schema-browser #related dl dt +{ + font-weight: bold; + margin-top: 5px; +} + +#content #schema-browser #related dl dd a +{ + display: block; + padding-left: 10px; +} + +#content #schema-browser #related dl dd a:hover +{ + background-color: #f8f8f8; +} + +#content #schema-browser #related .field .field, +#content #schema-browser #related .field .field a, +#content #schema-browser #related .dynamic-field .dynamic-field, +#content #schema-browser #related .dynamic-field .dynamic-field a, +#content #schema-browser #related .type .type, +#content #schema-browser #related .type .type a, +#content #schema-browser #related .active, +#content #schema-browser #related .active a +{ + color: #333; +} + +#content #schema-browser #related .copyfield, +#content #schema-browser #related .copyfield a +{ + color: #666; +} + +#content #schema-browser #data +{ +} + +#content #schema-browser #data #index dt +{ + float: left; + margin-right: 5px; + width: 150px; +} + +#content #schema-browser #data #field .field-options +{ + margin-bottom: 10px; +} + +#content #schema-browser #data #field .field-options .head h2 +{ + padding-left: 5px; +} + +#content #schema-browser #data #field .partial +{ +} + +#content #schema-browser #data #field .partial p +{ + background-image: url( ../../img/ico/exclamation-button.png ); + background-position: 0 50%; + padding-left: 21px; +} + +#content #schema-browser #data #field .field-options .options dt, +#content #schema-browser #data #field .field-options .options dd +{ + float: left; +} + +#content #schema-browser #data #field .field-options .options dt +{ + clear: left; + margin-right: 5px; + width: 100px; +} + +#content #schema-browser #data #field .field-options .flags +{ + margin-top: 10px; + margin-bottom: 20px; +} + +#content #schema-browser #data #field .field-options .flags thead td +{ + color: #c0c0c0; + padding-right: 5px; + width: 100px; +} + +#content #schema-browser #data #field .field-options .flags tbody td, +#content #schema-browser #data #field .field-options .flags th +{ + padding: 2px 5px; +} + +#content #schema-browser #data #field .field-options .flags thead td, +#content #schema-browser #data #field .field-options .flags tbody th +{ + padding-left: 0; +} + +#content #schema-browser #data #field .field-options .flags thead th, +#content #schema-browser #data #field .field-options .flags tbody td +{ + border-left: 1px solid #f0f0f0; +} + +#content #schema-browser #data #field .field-options .flags tbody th, +#content #schema-browser #data #field .field-options .flags tbody td +{ + border-top: 1px solid #f0f0f0; +} + +#content #schema-browser #data #field .field-options .flags tbody .check +{ + background-color: #fafdfa; + background-image: url( ../../img/ico/tick.png ); + background-position: 50% 50%; + text-align: center; +} + +#content #schema-browser #data #field .field-options .flags tbody .check span +{ +} + +#content #schema-browser #data #field .field-options .flags tbody .text +{ + color: #c0c0c0; +} + +#content #schema-browser #data #field .field-options .analyzer, +#content #schema-browser #data #field .field-options .analyzer li, +#content #schema-browser #data #field .field-options .analyzer ul, +#content #schema-browser #data #field .field-options .analyzer ul li +{ +} + +#content #schema-browser #data #field .field-options .analyzer p, +#content #schema-browser #data #field .field-options .analyzer dl +{ + float: left; +} + +#content #schema-browser #data #field .field-options .analyzer p +{ + margin-right: 5px; + text-align: right; + width: 125px; + white-space: pre; +} + +#content #schema-browser #data #field .field-options .analyzer p a +{ + cursor: auto; +} + +#content #schema-browser #data #field .field-options .analyzer p a.analysis +{ + cursor: pointer; + display: block; +} + +#content #schema-browser #data #field .field-options .analyzer p a.analysis span +{ + background-image: url( ../../img/ico/question-white.png ); + background-position: 0 50%; + padding-left: 21px; +} + +#content #schema-browser #data #field .field-options .analyzer p a.analysis:hover span +{ + background-image: url( ../../img/ico/question.png ); + color: #008; +} + +#content #schema-browser #data #field .field-options .analyzer a +{ + cursor: auto; +} + +#content #schema-browser #data #field .field-options .analyzer .toggle +{ + background-image: url( ../../img/ico/chevron-small-expand.png ); + background-position: 100% 50%; + cursor: pointer; + display: block; + padding-right: 21px; +} + +#content #schema-browser #data #field .field-options .analyzer .open .toggle +{ + background-image: url( ../../img/ico/chevron-small.png ); +} + +#content #schema-browser #data #field .field-options .analyzer li +{ + border-top: 1px solid #f0f0f0; + margin-top: 10px; + padding-top: 10px; +} + +#content #schema-browser #data #field .field-options .analyzer ul +{ + clear: left; + margin-left: 55px; + padding-top: 5px; +} + +#content #schema-browser #data #field .field-options .analyzer .open ul +{ + display: block; +} + +#content #schema-browser #data #field .field-options .analyzer ul li +{ + border-top: 1px solid #f8f8f8; + margin-top: 5px; + padding-top: 5px; +} + +#content #schema-browser #data #field .field-options .analyzer ul p +{ + color: #999; + margin-right: 5px; + text-align: right; + width: 70px; +} + +#content #schema-browser #data #field .field-options .analyzer ul dd +{ + margin-left: 20px; +} + +#content #schema-browser #data #field .field-options .analyzer ul dd +{ + background-image: url( ../../img/ico/document-list.png ); + background-position: 0 50%; + color: #c0c0c0; + padding-left: 21px; +} + +#content #schema-browser #data #field .field-options .analyzer ul dd.ico-0 +{ + background-image: url( ../../img/ico/slash.png ); +} + +#content #schema-browser #data #field .field-options .analyzer ul dd.ico-1 +{ + background-image: url( ../../img/ico/tick.png ); +} + +#content #schema-browser #data #field .head +{ + margin-bottom: 5px; +} + +#content #schema-browser #data #field .terminfo-holder +{ + border-top: 1px solid #c0c0c0; + padding-top: 10px; +} + +#content #schema-browser #data #field .terminfo-holder .trigger +{ + float: left; + width: 140px; +} + +#content #schema-browser #data #field .terminfo-holder .trigger button span +{ + background-image: url( ../../img/ico/information.png ); +} + +#content #schema-browser #data #field .terminfo-holder .status +{ + border-left: 1px solid #f0f0f0; + float: left; + padding-left: 20px; + padding-right: 20px; +} + +#content #schema-browser #data #field .terminfo-holder.disabled .trigger button span +{ + background-image: url( ../../img/ico/prohibition.png ); +} + +#content #schema-browser #data #field .terminfo-holder.disabled .status +{ + display: block; +} + +#content #schema-browser #data #field .terminfo-holder .trigger .autoload +{ +} + +#content #schema-browser #data #field .terminfo-holder.loaded .trigger .autoload +{ + background-image: url( ../../img/ico/ui-check-box-uncheck.png ); + background-position: 0 50%; + color: #c0c0c0; + display: block; + margin-top: 10px; + padding-left: 21px; +} + +#content #schema-browser #data #field .terminfo-holder .trigger .autoload:hover +{ + color: #008; +} + +#content #schema-browser #data #field .terminfo-holder .trigger .autoload.on +{ + background-image: url( ../../img/ico/ui-check-box.png ); + color: #333; +} + +#content #schema-browser #data #field .topterms-holder, +#content #schema-browser #data #field .histogram-holder +{ + border-left: 1px solid #f0f0f0; + float: left; + padding-left: 20px; + padding-right: 20px; +} + +#content #schema-browser #data #field .topterms-holder .head input +{ + height: 18px; + line-height: 16px; + text-align: right; + width: 30px; +} + +#content #schema-browser #data #field .topterms-holder .head .max-holder +{ + color: #c0c0c0; +} + +#content #schema-browser #data #field .topterms-holder .head .max-holder:hover .max +{ + color: #008; +} + +#content #schema-browser #data #field .topterms-holder .head #query_link +{ + background-image: url( ../../img/ico/question-white.png ); + background-position: 0 50%; + color: #c0c0c0; + padding-left: 21px; + margin-left: 5px; +} + +#content #schema-browser #data #field .topterms-holder .head #query_link:hover +{ + background-image: url( ../../img/ico/question.png ); +} + + +#content #schema-browser #data #field .topterms-holder .head #query_link span +{ + visibility: hidden; +} + +#content #schema-browser #data #field .topterms-holder .head #query_link:hover span +{ + visibility: visible; +} + +#content #schema-browser .topterms-holder li +{ + border-top: 1px solid #999; + margin-bottom: 5px; +} + +/* possible overwrite with inline style */ +#content #schema-browser .topterms-holder li p +{ + background-color: #999; + color: #fff; + float: left; +} + +#content #schema-browser .topterms-holder li p span +{ + display: block; + padding-right: 2px; + text-align: right; +} + +/* possible overwrite with inline style */ +#content #schema-browser .topterms-holder li ul +{ + margin-left: 30px; +} + +#content #schema-browser .topterms-holder li li +{ + border-top: 0; + margin-bottom: 0; + white-space: nowrap; +} + +#content #schema-browser .topterms-holder li li.odd +{ + background-color: #f0f0f0; +} + +#content #schema-browser .topterms-holder li li a +{ + display: block; + padding-left: 2px; + padding-right: 2px; +} + +#content #schema-browser .topterms-holder li li a:hover +{ + background-color: #c0c0c0; +} + +#content #schema-browser #data #field .histogram-holder ul +{ + margin-left: 25px; +} + +#content #schema-browser #data #field .histogram-holder li +{ + margin-bottom: 2px; + position: relative; + width: 150px; +} + +#content #schema-browser #data #field .histogram-holder li.odd +{ + background-color: #f0f0f0; +} + +#content #schema-browser #data #field .histogram-holder li dl, +#content #schema-browser #data #field .histogram-holder li dt +{ + padding-top: 1px; + padding-bottom: 1px; +} + +#content #schema-browser #data #field .histogram-holder li dl +{ + background-color: #c0c0c0; + min-width: 1px; +} + +#content #schema-browser #data #field .histogram-holder li dt +{ + color: #a0a0a0; + position: absolute; + overflow: hidden; + left: -25px; + top: 0px; +} + +#content #schema-browser #data #field .histogram-holder li dt span +{ + display: block; + padding-right: 4px; + text-align: right; +} + +#content #schema-browser #data #field .histogram-holder li dd +{ + clear: left; + float: left; + margin-left: 2px; + white-space: nowrap; +} + +#content #schema-browser #data #field .histogram-holder li:hover dl +{ + background-color: #b0b0b0; +} + +#content #schema-browser #data #field .histogram-holder li:hover dt +{ + color: #333; +} Propchange: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/schema-browser.css ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/segments.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/segments.css?rev=1707042&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/segments.css (added) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/segments.css Tue Oct 6 12:48:53 2015 @@ -0,0 +1,173 @@ +/* + +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. + +*/ + +#content #segments .loader +{ + background-position: 0 50%; + padding-left: 21px; +} + +#content #segments .reload +{ + background-image: url( ../../img/ico/arrow-circle.png ); + background-position: 50% 50%; + display: block; + height: 30px; + position: absolute; + right: 10px; + top: 10px; + width: 30px; +} + +#content #segments .reload.loader +{ + padding-left: 0; +} + +#content #segments .reload span +{ + display: none; +} + +#content #segments #result +{ + width: 77%; +} + +#content #segments #result #response +{ + margin-left: 25px; +} + +#content #segments .segments-holder ul { + margin-left: 25px; +} +#content #segments .segments-holder li { + margin-bottom: 2px; + position: relative; + width: 100%; +} + +#content #segments .segments-holder li .tooltip { + display: none; + background: #C8C8C8; + position: absolute; + z-index: 1000; + width:220px; + height:120px; + margin-left: 100%; + opacity: .8; + padding: 5px; + border: 1px solid; + border-radius: 5px; +} + +#content #segments .segments-holder li .tooltip .label { + float: left; + width: 20%; + opacity: 1; +} + +#content #segments .segments-holder li:hover .tooltip { + display:block; +} + +#content #segments .segments-holder li dl, +#content #segments .segments-holder li dt { + padding-bottom: 1px; + padding-top: 1px; +} +#content #segments .segments-holder li dl { + min-width: 1px; +} +#content #segments .segments-holder li dt { + color: #a0a0a0; + left: -45px; + overflow: hidden; + position: absolute; + top: 0; +} +#content #segments .segments-holder li dt div { + display: block; + padding-right: 4px; + text-align: right; +} +#content #segments .segments-holder li dd { + clear: left; + float: left; + margin-left: 2px; + white-space: nowrap; + width: 100%; +} + +#content #segments .segments-holder li dd div.deleted { + background-color: #808080; + padding-left: 5px; +} + +#content #segments .segments-holder li dd div.live { + background-color: #DDDDDD; + float: left; +} + +#content #segments .segments-holder li dd div.start { + float: left; + width: 20%; +} + +#content #segments .segments-holder li dd div.end { + text-align: right; +} + +.merge-candidate { + background-color: #FFC9F9 !important; +} + +#content #segments .segments-holder li dd div.w5 { + width: 20%; + float: left; +} + +#content #segments #auto-refresh { + margin-top: 4px; + background-position: 50% 50%; + display: block; + height: 30px; + position: absolute; + right: 50px; + top: 10px; +} + +#content #segments #auto-refresh a { + background-image: url( ../../img/ico/ui-check-box-uncheck.png ); + background-position: 0 50%; + color: #c0c0c0; + display: block; + padding-left: 21px; +} + +#content #segments #auto-refresh a.on, +#content #segments #auto-refresh a:hover { + color: #333; +} + +#content #segments #auto-refresh a.on { + background-image: url( ../../img/ico/ui-check-box.png ); +} + Propchange: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/segments.css ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/threads.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/threads.css?rev=1707042&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/threads.css (added) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/threads.css Tue Oct 6 12:48:53 2015 @@ -0,0 +1,161 @@ +/* + +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. + +*/ + +#content #threads .loader +{ + background-position: 0 50%; + padding-left: 21px; +} + +#content #threads #thread-dump table +{ + border-collapse: collapse; + width: 100%; +} + +#content #threads #thread-dump table .spacer, +#content #threads #thread-dump tbody .state +{ + background-color: #fff; +} + +#content #threads #thread-dump table th, +#content #threads #thread-dump table td +{ + padding: 5px 3px; + vertical-align: top; +} + +#content #threads #thread-dump thead th +{ + background-color: #c8c8c8; + font-weight: bold; + text-align: left; +} + +#content #threads #thread-dump thead th.name +{ + width: 85%; +} + +#content #threads #thread-dump thead th.time +{ + text-align: right; + width: 15%; +} + +#content #threads #thread-dump tbody .odd +{ + background-color: #f0f0f0; +} + +#content #threads #thread-dump tbody .RUNNABLE a +{ + background-image: url( ../../img/ico/tick-circle.png ); +} + +#content #threads #thread-dump tbody .WAITING a, +#content #threads #thread-dump tbody .TIMED_WAITING a +{ + background-image: url( ../../img/ico/hourglass.png ); +} + +#content #threads #thread-dump tbody .WAITING.lock a, +#content #threads #thread-dump tbody .TIMED_WAITING.lock a +{ + background-image: url( ../../img/ico/hourglass--exclamation.png ); +} + +#content #threads #thread-dump tbody .name a +{ + background-position: 0 50%; + cursor: auto; + display: block; + padding-left: 21px; +} + +#content #threads #thread-dump tbody .stacktrace .name a +{ + cursor: pointer; +} + +#content #threads #thread-dump tbody .stacktrace .name a span +{ + background-image: url( ../../img/ico/chevron-small-expand.png ); + background-position: 100% 50%; + padding-right: 21px; +} + +#content #threads #thread-dump tbody .stacktrace.open .name a span +{ + background-image: url( ../../img/ico/chevron-small.png ); +} + +#content #threads #thread-dump tbody .name p +{ + background-image: url( ../../img/ico/arrow-000-small.png ); + background-position: 0 50%; + color: #c0c0c0; + font-size: 11px; + margin-left: 21px; + padding-left: 21px; +} + +#content #threads #thread-dump tbody .name div +{ + border-top: 1px solid #c0c0c0; + margin-left: 21px; + margin-top: 5px; + padding-top: 5px; +} + +#content #threads #thread-dump tbody .open .name div +{ + display: block; +} + +#content #threads #thread-dump tbody .name ul +{ + list-style-type: disc; + margin-left: 0.7em; + padding-left: 0.7em; +} + +#content #threads #thread-dump tbody .time +{ + text-align: right; +} + +#content #threads .controls +{ + padding-top: 5px; + padding-bottom: 5px; +} + +#content #threads .controls a +{ + background-image: url( ../../img/ico/chevron-small-expand.png ); + padding-left: 21px; +} + +#content #threads.expanded .controls a +{ + background-image: url( ../../img/ico/chevron-small.png ); +} + Propchange: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/angular/threads.css ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/cloud.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/cloud.css?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/cloud.css (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/cloud.css Tue Oct 6 12:48:53 2015 @@ -401,3 +401,10 @@ limitations under the License. { stroke: #fff; } + +#cloudGraphPaging +{ + display: inline-block, + padding-top: 15px, + padding-bottom: 15px +} Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/common.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/common.css?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/common.css (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/common.css Tue Oct 6 12:48:53 2015 @@ -195,9 +195,15 @@ ul z-index: 42; } +.scroll #header +{ + position: absolute; +} + #header #solr { - background-image: url( ../../img/solr.png ); + background-image: url( ../../img/solr.svg ); + background-size: 128px; display: block; height: 78px; width: 150px; Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/dashboard.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/dashboard.css?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/dashboard.css (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/dashboard.css Tue Oct 6 12:48:53 2015 @@ -152,4 +152,4 @@ limitations under the License. #content #dashboard #replication.master h2 { background-image: url( ../../img/ico/node-master.png ); } #content #dashboard #replication.slave h2 { background-image: url( ../../img/ico/node-slave.png ); } #content #dashboard #instance h2 { background-image: url( ../../img/ico/server.png ); } -#content #dashboard #admin-extra h2 { background-image: url( ../../img/ico/plus-button.png ); } \ No newline at end of file +#content #dashboard #admin-extra h2 { background-image: url( ../../img/ico/plus-button.png ); } Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/files.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/files.css?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/files.css (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/files.css Tue Oct 6 12:48:53 2015 @@ -23,6 +23,11 @@ limitations under the License. width: 20%; } +#content #files #tree-holder li +{ + overflow: hidden; +} + #content #files form .buttons button { float: right; @@ -46,4 +51,4 @@ limitations under the License. { border: 1px solid transparent; padding: 2px; -} \ No newline at end of file +} Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/menu.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/menu.css?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/menu.css (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/menu.css Tue Oct 6 12:48:53 2015 @@ -24,6 +24,12 @@ limitations under the License. width: 150px; } +.scroll #menu-wrapper +{ + position: absolute; + top: 90px; +} + .has-environment #menu-wrapper { top: 160px; @@ -281,6 +287,7 @@ limitations under the License. #core-menu .logging a { background-image: url( ../../img/ico/inbox-document-text.png ); } #core-menu .plugins a { background-image: url( ../../img/ico/block.png ); } #core-menu .dataimport a { background-image: url( ../../img/ico/document-import.png ); } +#core-menu .segments a { background-image: url( ../../img/ico/construction.png ); } #content #navigation Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/plugins.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/plugins.css?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/plugins.css (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/plugins.css Tue Oct 6 12:48:53 2015 @@ -28,6 +28,7 @@ limitations under the License. #content #plugins #navigation .highlighting a { background-image: url( ../../img/ico/highlighter-text.png ); } #content #plugins #navigation .updatehandler a{ background-image: url( ../../img/ico/arrow-circle.png ); } #content #plugins #navigation .queryhandler a { background-image: url( ../../img/ico/magnifier.png ); } +#content #plugins #navigation .queryparser a { background-image: url( ../../img/ico/asterisk.png ); } #content #plugins #navigation .PLUGINCHANGES { margin-top: 20px; } #content #plugins #navigation .PLUGINCHANGES a { background-image: url( ../../img/ico/eye.png ); } Added: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/segments.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/segments.css?rev=1707042&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/segments.css (added) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/segments.css Tue Oct 6 12:48:53 2015 @@ -0,0 +1,145 @@ +/* + +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. + +*/ + +#content #segments .loader +{ + background-position: 0 50%; + padding-left: 21px; +} + +#content #segments .reload +{ + background-image: url( ../../img/ico/arrow-circle.png ); + background-position: 50% 50%; + display: block; + height: 30px; + position: absolute; + right: 10px; + top: 10px; + width: 30px; +} + +#content #segments .reload.loader +{ + padding-left: 0; +} + +#content #segments .reload span +{ + display: none; +} + +#content #segments #result +{ + width: 77%; +} + +#content #segments #result #response +{ + margin-left: 25px; +} + +#content #segments .segments-holder ul { + margin-left: 25px; +} +#content #segments .segments-holder li { + margin-bottom: 2px; + position: relative; + width: 100%; +} + +#content #segments .segments-holder li .toolitp { + display: none; + background: #C8C8C8; + position: absolute; + z-index: 1000; + width:220px; + height:120px; + margin-left: 100%; + opacity: .8; + padding: 5px; + border: 1px solid; + border-radius: 5px; +} + +#content #segments .segments-holder li .toolitp .label { + float: left; + width: 20%; + opacity: 1; +} + +#content #segments .segments-holder li:hover .toolitp { + display:block; +} + +#content #segments .segments-holder li dl, +#content #segments .segments-holder li dt { + padding-bottom: 1px; + padding-top: 1px; +} +#content #segments .segments-holder li dl { + min-width: 1px; +} +#content #segments .segments-holder li dt { + color: #a0a0a0; + left: -45px; + overflow: hidden; + position: absolute; + top: 0; +} +#content #segments .segments-holder li dt div { + display: block; + padding-right: 4px; + text-align: right; +} +#content #segments .segments-holder li dd { + clear: left; + float: left; + margin-left: 2px; + white-space: nowrap; + width: 100%; +} + +#content #segments .segments-holder li dd div.deleted { + background-color: #808080; + padding-left: 5px; +} + +#content #segments .segments-holder li dd div.live { + background-color: #DDDDDD; + float: left; +} + +#content #segments .segments-holder li dd div.start { + float: left; + width: 20%; +} + +#content #segments .segments-holder li dd div.end { + text-align: right; +} + +.merge-candidate { + background-color: #FFC9F9 !important; +} + +#content #segments .segments-holder li dd div.w5 { + width: 20%; + float: left; +} Propchange: ofbiz/trunk/specialpurpose/solr/webapp/solr/css/styles/segments.css ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/trunk/specialpurpose/solr/webapp/solr/img/chosen-sprite-2x.png URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/img/chosen-sprite-2x.png?rev=1707042&view=auto ============================================================================== Binary file - no diff available. Propchange: ofbiz/trunk/specialpurpose/solr/webapp/solr/img/chosen-sprite-2x.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/img/favicon.ico URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/img/favicon.ico?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== Binary files - no diff available. Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/img/solr-ico.png URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/img/solr-ico.png?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== Binary files - no diff available. Added: ofbiz/trunk/specialpurpose/solr/webapp/solr/img/solr.svg URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/img/solr.svg?rev=1707042&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/img/solr.svg (added) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/img/solr.svg Tue Oct 6 12:48:53 2015 @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="203.005pt" height="102.654pt" viewBox="0 0 203.005 102.654" version="1.1"> +<defs> +<clipPath id="clip1"> + <path d="M 0 36 L 49 36 L 49 102.652344 L 0 102.652344 Z "/> +</clipPath> +<clipPath id="clip2"> + <path d="M 53 53 L 100 53 L 100 102.652344 L 53 102.652344 Z "/> +</clipPath> +<clipPath id="clip3"> + <path d="M 106 35 L 123 35 L 123 102.652344 L 106 102.652344 Z "/> +</clipPath> +<clipPath id="clip4"> + <path d="M 163 29 L 203.003906 29 L 203.003906 52 L 163 52 Z "/> +</clipPath> +</defs> +<g id="surface1"> +<g clip-path="url(#clip1)" clip-rule="nonzero"> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 40.761719 70.890625 C 38.414062 69.644531 35.765625 68.765625 32.886719 68.277344 C 30.054688 67.800781 27.179688 67.5625 24.332031 67.5625 C 22.003906 67.5625 19.652344 67.359375 17.332031 66.964844 C 15.078125 66.578125 13.035156 65.871094 11.257812 64.859375 C 9.527344 63.875 8.097656 62.5 7.003906 60.765625 C 5.925781 59.058594 5.382812 56.796875 5.382812 54.066406 C 5.433594 51.65625 5.992188 49.597656 7.046875 47.9375 C 8.117188 46.253906 9.511719 44.886719 11.195312 43.871094 C 12.921875 42.832031 14.914062 42.066406 17.117188 41.597656 C 20.867188 40.800781 24.828125 40.652344 28.863281 41.214844 C 30.441406 41.4375 31.996094 41.832031 33.496094 42.382812 C 34.964844 42.929688 36.347656 43.675781 37.601562 44.601562 C 38.835938 45.515625 39.929688 46.664062 40.847656 48.011719 L 41.359375 48.765625 L 45.148438 47.171875 L 44.34375 46.039062 C 43.3125 44.582031 42.1718 75 43.269531 40.949219 42.140625 C 39.703125 40.988281 38.238281 40.007812 36.59375 39.234375 C 34.96875 38.46875 33.113281 37.878906 31.070312 37.480469 C 29.050781 37.089844 26.695312 36.890625 24.070312 36.890625 C 21.550781 36.890625 18.949219 37.179688 16.339844 37.75 C 13.691406 38.328125 11.234375 39.289062 9.039062 40.597656 C 6.796875 41.9375 4.949219 43.722656 3.542969 45.90625 C 2.121094 48.125 1.394531 50.863281 1.394531 54.042969 C 1.394531 57.382812 2.066406 60.226562 3.386719 62.492188 C 4.703125 64.746094 6.464844 66.570312 8.625 67.914062 C 10.742188 69.234375 13.210938 70.183594 15.964844 70.734375 C 18.652344 71.273438 21.46875 71.546875 24.332031 71.546875 C 26.609375 71.546875 29.019531 71.71875 31.496094 72.0625 C 33.90625 72.394531 36.152344 73.066406 38.164062 74.058594 C 40.125 75.027344 41.761719 76.375 43.023438 78.0625 C 44.242188 79.699219 44.859375 81.90625 44.859375 84.625 C 44.859375 87.066406 44.261719 89.148438 43.089844 90.820312 C 41.878906 92.542 969 40.304688 93.964844 38.410156 95.046875 C 36.476562 96.152344 34.289062 96.96875 31.902344 97.464844 C 29.476562 97.972656 27.078125 98.230469 24.769531 98.230469 C 20.898438 98.230469 17.070312 97.492188 13.394531 96.03125 C 9.738281 94.578125 6.492188 92.398438 3.753906 89.550781 L 3.019531 88.785156 L 0 91.402344 L 0.847656 92.25 C 3.550781 94.953125 6.90625 97.308594 10.824219 99.25 C 14.785156 101.21875 19.480469 102.214844 24.769531 102.214844 C 27.285156 102.214844 29.957031 101.929688 32.707031 101.359375 C 35.496094 100.785156 38.117188 99.800781 40.488281 98.429688 C 42.898438 97.039062 44.902344 95.222656 46.449219 93.023438 C 48.039062 90.765625 48.84375 87.941406 48.84375 84.625 C 48.84375 81.265625 48.089844 78.417969 46.597656 76.167969 C 45.128906 73.945312 43.164062 72.171875 40.761719 70.890625 "/> +</g> +<g clip-path="url(#clip2)" clip-rule="nonzero"> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 76.390625 98.667969 C 73.65625 98.667969 71.160156 98.105469 68.964844 96.992188 C 66.738281 95.867188 64.773438 94.335938 63.125 92.4375 C 61.464844 90.53125 60.148438 88.300781 59.207031 85.808594 C 58.261719 83.304688 57.722656 80.679688 57.613281 78.054688 C 57.613281 75.625 58.066406 73.144531 58.949219 70.675781 C 59.835938 68.214844 61.125 65.972656 62.785156 64.007812 C 64.4375 62.050781 66.449219 60.433594 68.769531 59.191406 C 71.046875 57.96875 73.609375 57.351562 76.390625 57.351562 C 79.003906 57.351562 81.472656 57.929688 83.726562 59.070312 C 86.015625 60.226562 88.023438 61.777344 89.707031 63.675781 C 91.390625 65.585938 92.738281 67.816406 93.707031 70.308594 C 94.675781 72.796875 95.164062 75.40625 95.164062 78.054688 C 95.164062 80.480469 94.714844 82.960938 93.828125 85.429688 C 92.941406 87.894531 91.652344 90.136719 89.996094 92.097656 C 88.34375 94.050 781 86.335938 95.65625 84.019531 96.867188 C 81.742188 98.0625 79.175781 98.667969 76.390625 98.667969 M 92.96875 61.292969 C 90.984375 58.976562 88.574219 57.058594 85.804688 55.597656 C 82.996094 54.117188 79.828125 53.367188 76.390625 53.367188 C 73.257812 53.367188 70.265625 54.035156 67.496094 55.359375 C 64.746094 56.671875 62.316406 58.484375 60.273438 60.742188 C 58.234375 62.992188 56.601562 65.640625 55.417969 68.617188 C 54.230469 71.59375 53.628906 74.769531 53.628906 78.054688 C 53.628906 81.15625 54.183594 84.195312 55.28125 87.082031 C 56.371094 89.964844 57.929688 92.582031 59.90625 94.863281 C 61.890625 97.15625 64.304688 99.027344 67.078125 100.429688 C 69.875 101.84375 73.003906 102.59375 76.371094 102.652344 L 76.410156 102.652344 C 79.597656 102.59375 82.613281 101.875 85.378906 100.527344 C 88.121094 99.1875 90.550781 97.359375 92.597656 95.101562 C 94.632812 92.851562 96.25 90.230469 97.40625 87.316406 C 98.5625 84.390625 99.148438 81.273438 99.148438 78.05468 8 C 99.148438 75.136719 98.609375 72.164062 97.550781 69.21875 C 96.488281 66.273438 94.945312 63.605469 92.96875 61.292969 "/> +</g> +<g clip-path="url(#clip3)" clip-rule="nonzero"> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 119.78125 97.5625 C 119.113281 97.730469 118.523438 97.855469 118.03125 97.9375 C 117.511719 98.027344 116.953125 98.113281 116.347656 98.199219 C 115.789062 98.277344 115.238281 98.320312 114.707031 98.320312 C 113.371094 98.320312 112.386719 97.875 111.699219 96.964844 C 110.9375 95.960938 110.566406 94.960938 110.566406 93.914062 L 110.566406 35.578125 L 106.582031 35.578125 L 106.582031 93.914062 C 106.582031 96.101562 107.273438 98.039062 108.636719 99.667969 C 110.050781 101.359375 112.0625 102.214844 114.621094 102.214844 C 115.421875 102.214844 116.21875 102.167969 116.988281 102.078125 C 117.730469 101.988281 118.394531 101.898438 118.992188 101.808594 C 119.601562 101.71875 120.308594 101.578125 121.09375 101.398438 L 122.445312 101.085938 L 120.671875 97.339844 Z "/> +</g> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(14.048767%,12.319946%,16.685486%);fill-opacity:1;" d="M 136.976562 57.378906 C 134.90625 58.835938 133.074219 60.6875 131.507812 62.902344 L 131.507812 54.066406 L 127.523438 54.066406 L 127.523438 101.777344 L 131.507812 101.777344 L 131.507812 72.074219 C 132.058594 70.128906 132.820312 68.300781 133.769531 66.648438 C 134.726562 64.980469 135.914062 63.511719 137.304688 62.285156 C 138.695312 61.058594 140.3125 60.066406 142.117188 59.328125 C 143.914062 58.589844 145.945312 58.160156 148.148438 58.050781 L 149.207031 57.996094 L 149.207031 54.066406 L 148.09375 54.066406 C 143.84375 54.066406 140.105469 55.179688 136.976562 57.378906 "/> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 193.910156 10.613281 L 160.910156 46.289062 L 202.382812 27.15625 C 201.15625 20.824219 198.152344 15.132812 193.910156 10.613281 "/> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 169.425781 0 C 164.855469 0 160.5 0.917969 156.527344 2.574219 L 152.097656 39.886719 L 174.226562 0.347656 C 172.65625 0.121094 171.058594 0 169.425781 0 "/> +<g clip-path="url(#clip4)" clip-rule="nonzero"> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 202.714844 29.210938 L 163.414062 51.203125 L 200.285156 46.828125 C 202.035156 42.761719 203.003906 38.285156 203.003906 33.578125 C 203.003906 32.097656 202.898438 30.640625 202.714844 29.210938 "/> +</g> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 188.226562 61.40625 C 192.617188 58.433594 196.261719 54.449219 198.835938 49.789062 L 164.277344 56.648438 Z "/> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 176.25 0.695312 L 157.011719 42.390625 L 192.695312 9.382812 C 188.222656 5.078125 182.5625 2 176.25 0.695312 "/> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 172.234375 67.03125 C 175.953125 66.722656 179.496094 65.816406 182.773438 64.394531 L 163.414062 62.097656 Z "/> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 138.820312 19.773438 C 137.308594 23.117188 136.328125 26.75 135.988281 30.566406 L 141.203125 39.886719 Z "/> +<path style=" stroke:none;fill-rule:nonzero;fill:rgb(85.639954%,20.640564%,13.365173%);fill-opacity:1;" d="M 153.617188 3.953125 C 148.878906 6.488281 144.824219 10.121094 141.785156 14.519531 L 146.652344 39.023438 Z "/> +</g> +</svg> Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.ajaxfileupload.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.ajaxfileupload.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.ajaxfileupload.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.ajaxfileupload.js Tue Oct 6 12:48:53 2015 @@ -128,7 +128,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOU wrapElement($element); // Call user-supplied (or default) onStart(), setting - // it's this context to the file DOM element + // its this context to the file DOM element var ret = settings.onStart.apply($element, [settings.params]); // let onStart have the option to cancel the upload @@ -181,4 +181,4 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOU }); } -})(jQuery) \ No newline at end of file +})(jQuery) Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.jstree.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.jstree.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.jstree.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.jstree.js Tue Oct 6 12:48:53 2015 @@ -32,8 +32,8 @@ THE SOFTWARE. * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * - * $Date$ - * $Revision$ + * Date: 2010-07-01 10:51:11 +0300 (ÑеÑв, 01 Ñли 2010) $ + * Revision: 191 $ */ /*jslint browser: true, onevar: true, undef: true, bitwise: true, strict: true */ Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.sammy.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.sammy.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.sammy.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/jquery.sammy.js Tue Oct 6 12:48:53 2015 @@ -48,7 +48,7 @@ THE SOFTWARE. // `Sammy` (also aliased as $.sammy) is not only the namespace for a - // number of prototypes, its also a top level method that allows for easy + // number of prototypes, it's also a top level method that allows for easy // creation/management of `Sammy.Application` instances. There are a // number of different forms for `Sammy()` but each returns an instance // of `Sammy.Application`. When a new instance is created using @@ -1446,7 +1446,7 @@ THE SOFTWARE. } if (callback) { this.then(callback); } if (typeof location === 'string') { - // its a path + // it's a path is_json = (location.match(/\.json$/) || options.json); should_cache = ((is_json && options.cache === true) || options.cache !== false); context.next_engine = context.event_context.engineFor(location); @@ -1474,12 +1474,12 @@ THE SOFTWARE. }, options)); return false; } else { - // its a dom/jQuery + // it's a dom/jQuery if (location.nodeType) { return location.innerHTML; } if (location.selector) { - // its a jQuery + // it's a jQuery context.next_engine = location.attr('data-engine'); if (options.clone === false) { return location.remove()[0].innerHTML.toString(); Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/linker.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/linker.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/linker.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/linker.js Tue Oct 6 12:48:53 2015 @@ -45,4 +45,4 @@ THE SOFTWARE. $(this).html(t); }); }; -})( jQuery ); \ No newline at end of file +})( jQuery ); Added: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/naturalSort.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/naturalSort.js?rev=1707042&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/naturalSort.js (added) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/naturalSort.js Tue Oct 6 12:48:53 2015 @@ -0,0 +1,82 @@ +/* +naturalSort.js +- by Jim Palmer and other contributors + +The MIT License (MIT) + +Copyright (c) 2011 Jim Palmer and other contributors + +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. +*/ + +// naturalSort.js 0.7.0 +// https://github.com/jarinudom/naturalSort.js +// (c) 2011 Jim Palmer and other contributors +// naturalSort.js may be freely distributed under the MIT license. +// Generated by CoffeeScript 1.7.1 +(function() { + window.naturalSort = function(a, b) { + var cLoc, dre, hre, i, numS, oFxNcL, oFyNcL, ore, re, sre, x, xD, xN, y, yD, yN; + re = /(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/g; + sre = /(^[ ]*|[ ]*$)/g; + dre = /(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/; + hre = /^0x[0-9a-f]+$/i; + ore = /^0/; + i = function(s) { + return naturalSort.insensitive && ('' + s).toLowerCase() || '' + s; + }; + x = i(a).replace(sre, '') || ''; + y = i(b).replace(sre, '') || ''; + xN = x.replace(re, '\u0000$1\u0000').replace(/\0$/, '').replace(/^\0/, '').split('\u0000'); + yN = y.replace(re, '\u0000$1\u0000').replace(/\0$/, '').replace(/^\0/, '').split('\u0000'); + xD = parseInt(x.match(hre), 16) || (xN.length !== 1 && x.match(dre) && Date.parse(x)); + yD = parseInt(y.match(hre), 16) || xD && y.match(dre) && Date.parse(y) || null; + oFxNcL = void 0; + oFyNcL = void 0; + if (yD) { + if (xD < yD) { + return -1; + } + if (xD > yD) { + return 1; + } + } + cLoc = 0; + numS = Math.max(xN.length, yN.length); + while (cLoc < numS) { + oFxNcL = !(xN[cLoc] || '').match(ore) && parseFloat(xN[cLoc]) || xN[cLoc] || 0; + oFyNcL = !(yN[cLoc] || '').match(ore) && parseFloat(yN[cLoc]) || yN[cLoc] || 0; + if (isNaN(oFxNcL) !== isNaN(oFyNcL)) { + return (isNaN(oFxNcL) ? 1 : -1); + } else if (typeof oFxNcL !== typeof oFyNcL) { + oFxNcL += ''; + oFyNcL += ''; + } + if (oFxNcL < oFyNcL) { + return -1; + } + if (oFxNcL > oFyNcL) { + return 1; + } + cLoc++; + } + return 0; + }; + +}).call(this); Propchange: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/lib/naturalSort.js ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/main.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/main.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/main.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/main.js Tue Oct 6 12:48:53 2015 @@ -32,6 +32,7 @@ require 'lib/order!lib/ZeroClipboard', 'lib/order!lib/d3', 'lib/order!lib/chosen', + 'lib/order!lib/naturalSort', 'lib/order!scripts/app', 'lib/order!scripts/analysis', @@ -49,7 +50,8 @@ require 'lib/order!scripts/query', 'lib/order!scripts/replication', 'lib/order!scripts/schema-browser', - 'lib/order!scripts/threads' + 'lib/order!scripts/threads', + 'lib/order!scripts/segments' ], function( $ ) { Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/require.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/require.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/require.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/require.js Tue Oct 6 12:48:53 2015 @@ -4618,7 +4618,7 @@ jQuery.extend({ jQuery.error( "type property can't be changed" ); } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { // Setting the type on a radio button after the value resets the value in IE6-9 - // Reset value to it's default in case type is set after value + // Reset value to its default in case type is set after value // This is for element creation var val = elem.value; elem.setAttribute( "type", value ); @@ -6277,7 +6277,7 @@ var getText = Sizzle.getText = function( // Replace IE's carriage returns return elem.innerText.replace( rReturn, '' ); } else { - // Traverse it's children + // Traverse its children for ( elem = elem.firstChild; elem; elem = elem.nextSibling) { ret += getText( elem ); } Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/analysis.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/analysis.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/analysis.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/analysis.js Tue Oct 6 12:48:53 2015 @@ -80,7 +80,7 @@ sammy.get { fields.push ( - '<option value="fieldname=' + field_name + '">' + field_name + '</option>' + '<option value="fieldname=' + field_name.esc() + '">' + field_name.esc() + '</option>' ); } if( 0 !== fields.length ) @@ -95,7 +95,7 @@ sammy.get { types.push ( - '<option value="fieldtype=' + type_name + '">' + type_name + '</option>' + '<option value="fieldtype=' + type_name.esc() + '">' + type_name.esc() + '</option>' ); } if( 0 !== types.length ) Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/app.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/app.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/app.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/app.js Tue Oct 6 12:48:53 2015 @@ -144,6 +144,8 @@ var sammy = $.sammy this.active_core = active_element; } + + check_fixed_menu(); } ); } @@ -390,7 +392,8 @@ var solr_admin = function( app_config ) '<li class="plugins"><a href="#/' + core_name + '/plugins"><span>Plugins / Stats</span></a></li>' + "\n" + '<li class="query"><a href="#/' + core_name + '/query"><span>Query</span></a></li>' + "\n" + '<li class="replication"><a href="#/' + core_name + '/replication"><span>Replication</span></a></li>' + "\n" + - '<li class="schema-browser"><a href="#/' + core_name + '/schema-browser"><span>Schema Browser</span></a></li>' + '<li class="schema-browser"><a href="#/' + core_name + '/schema-browser"><span>Schema Browser</span></a></li>' + + '<li class="segments"><a href="#/' + core_name + '/segments"><span>Segments info</span></a></li>' ) .show(); @@ -403,6 +406,9 @@ var solr_admin = function( app_config ) } ); + check_fixed_menu(); + $( window ).resize( check_fixed_menu ); + var system_url = config.solr_path + '/admin/info/system?wt=json'; $.ajax ( @@ -594,6 +600,11 @@ var solr_admin = function( app_config ) ); }; + check_fixed_menu = function check_fixed_menu() + { + $( '#wrapper' ).toggleClass( 'scroll', $( window ).height() < $( '#menu-wrapper' ).height() + $( '#header' ).height() + 40 ); + } + }; var connection_check_delay = 1000; Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/cloud.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/cloud.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/cloud.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/cloud.js Tue Oct 6 12:48:53 2015 @@ -350,6 +350,106 @@ var generate_rgraph = function( graph_el ); }; +var prepare_graph_data = function( response, graph_element, live_nodes, callback ) +{ + var state = null; + eval( 'state = ' + response.znode.data + ';' ); + + var leaf_count = 0; + var graph_data = { + name: null, + children : [] + }; + + for( var c in state ) + { + var shards = []; + for( var s in state[c].shards ) + { + var nodes = []; + for( var n in state[c].shards[s].replicas ) + { + leaf_count++; + var replica = state[c].shards[s].replicas[n] + + var uri = replica.base_url; + var parts = uri.match( /^(\w+:)\/\/(([\w\d\.-]+)(:(\d+))?)(.+)$/ ); + var uri_parts = { + protocol: parts[1], + host: parts[2], + hostname: parts[3], + port: parseInt( parts[5] || 80, 10 ), + pathname: parts[6] + }; + + helper_data.protocol.push( uri_parts.protocol ); + helper_data.host.push( uri_parts.host ); + helper_data.hostname.push( uri_parts.hostname ); + helper_data.port.push( uri_parts.port ); + helper_data.pathname.push( uri_parts.pathname ); + + var status = replica.state; + + if( !live_nodes[replica.node_name] ) + { + status = 'gone'; + } + + var node = { + name: uri, + data: { + type : 'node', + state : status, + leader : 'true' === replica.leader, + uri : uri_parts + } + }; + nodes.push( node ); + } + + var shard = { + name: s, + data: { + type : 'shard' + }, + children: nodes + }; + shards.push( shard ); + } + + var collection = { + name: c, + data: { + type : 'collection' + }, + children: shards + }; + graph_data.children.push( collection ); + } + + helper_data.protocol = $.unique( helper_data.protocol ); + helper_data.host = $.unique( helper_data.host ); + helper_data.hostname = $.unique( helper_data.hostname ); + helper_data.port = $.unique( helper_data.port ); + helper_data.pathname = $.unique( helper_data.pathname ); + + callback( graph_element, graph_data, leaf_count ); +} + +var update_status_filter = function(filterType, filterVal) { + if (filterType == 'status') { + $( '#cloudGraphPagingStatusFilter' ).val(filterVal); + $( '#cloudGraphPagingStatusFilter' ).show(); + $( '#cloudGraphPagingFilter' ).hide(); + $( '#cloudGraphPagingFilter' ).val(''); + } else { + $( '#cloudGraphPagingStatusFilter' ).hide(); + $( '#cloudGraphPagingStatusFilter' ).val(''); + $( '#cloudGraphPagingFilter' ).val(filterVal); + $( '#cloudGraphPagingFilter' ).show(); + } +}; + var prepare_graph = function( graph_element, callback ) { $.ajax @@ -365,101 +465,82 @@ var prepare_graph = function( graph_elem live_nodes[response.tree[0].children[c].data.title] = true; } + var start = $( '#cloudGraphPagingStart' ).val(); + var rows = $( '#cloudGraphPagingRows' ).val(); + var clusterStateUrl = app.config.solr_path + '/zookeeper?wt=json&detail=true&path=%2Fclusterstate.json&view=graph'; + if (start && rows) + clusterStateUrl += ('&start='+start+'&rows='+rows); + + var filterType = $( '#cloudGraphPagingFilterType' ).val(); + if (filterType) { + var filter = (filterType == 'status') + ? $( '#cloudGraphPagingStatusFilter' ).val() + : $( '#cloudGraphPagingFilter' ).val(); + if (filter) + clusterStateUrl += ('&filterType='+filterType+'&filter='+filter); + } + $.ajax ( { - url : app.config.solr_path + '/zookeeper?wt=json&detail=true&path=%2Fclusterstate.json', + url : clusterStateUrl, dataType : 'json', context : graph_element, beforeSend : function( xhr, settings ) { - this - .show(); + this.show(); }, success : function( response, text_status, xhr ) - { - var state = null; - eval( 'state = ' + response.znode.data + ';' ); - - var leaf_count = 0; - var graph_data = { - name: null, - children : [] - }; - - for( var c in state ) - { - var shards = []; - for( var s in state[c].shards ) - { - var nodes = []; - for( var n in state[c].shards[s].replicas ) - { - leaf_count++; - var replica = state[c].shards[s].replicas[n] + { + prepare_graph_data(response, graph_element, live_nodes, callback) - var uri = replica.base_url; - var parts = uri.match( /^(\w+:)\/\/(([\w\d\.-]+)(:(\d+))?)(.+)$/ ); - var uri_parts = { - protocol: parts[1], - host: parts[2], - hostname: parts[3], - port: parseInt( parts[5] || 80, 10 ), - pathname: parts[6] - }; - - helper_data.protocol.push( uri_parts.protocol ); - helper_data.host.push( uri_parts.host ); - helper_data.hostname.push( uri_parts.hostname ); - helper_data.port.push( uri_parts.port ); - helper_data.pathname.push( uri_parts.pathname ); - - var status = replica.state; - - if( !live_nodes[replica.node_name] ) - { - status = 'gone'; - } - - var node = { - name: uri, - data: { - type : 'node', - state : status, - leader : 'true' === replica.leader, - uri : uri_parts - } - }; - nodes.push( node ); - } - - var shard = { - name: s, - data: { - type : 'shard' - }, - children: nodes - }; - shards.push( shard ); + if (response.znode && response.znode.paging) { + var parr = response.znode.paging.split('|'); + if (parr.length < 3) { + $( '#cloudGraphPaging' ).hide(); + return; } - - var collection = { - name: c, - data: { - type : 'collection' - }, - children: shards - }; - graph_data.children.push( collection ); - } - - helper_data.protocol = $.unique( helper_data.protocol ); - helper_data.host = $.unique( helper_data.host ); - helper_data.hostname = $.unique( helper_data.hostname ); - helper_data.port = $.unique( helper_data.port ); - helper_data.pathname = $.unique( helper_data.pathname ); - - callback( graph_element, graph_data, leaf_count ); + + var start = Math.max(parseInt(parr[0]),0); + var prevEnabled = (start > 0); + $('#cloudGraphPagingPrev').prop('disabled', !prevEnabled); + if (prevEnabled) + $('#cloudGraphPagingPrev').show(); + else + $('#cloudGraphPagingPrev').hide(); + + var rows = parseInt(parr[1]) + var total = parseInt(parr[2]) + $( '#cloudGraphPagingStart' ).val(start); + $( '#cloudGraphPagingRows' ).val(rows); + if (rows == -1) + $( '#cloudGraphPaging' ).hide(); + + var filterType = parr.length > 3 ? parr[3] : ''; + if (filterType == '' || filterType == 'none') filterType = 'status'; + + $( '#cloudGraphPagingFilterType' ).val(filterType); + var filter = parr.length > 4 ? parr[4] : ''; + + update_status_filter(filterType, filter); + + var page = Math.floor(start/rows)+1; + var pages = Math.ceil(total/rows); + var last = Math.min(start+rows,total); + var nextEnabled = (last < total); + $('#cloudGraphPagingNext').prop('disabled', !nextEnabled); + if (nextEnabled) + $('#cloudGraphPagingNext').show(); + else + $('#cloudGraphPagingNext').hide(); + + var status = (total > 0) + ? 'Collections '+(start+1)+' - '+last+' of '+total+'. ' + : 'No collections found.'; + $( '#cloudGraphPagingStatus' ).html(status); + } else { + $( '#cloudGraphPaging' ).hide(); + } }, error : function( xhr, text_status, error_thrown) { @@ -662,6 +743,21 @@ var init_tree = function( tree_element ) ); }; +// updates the starting position for paged navigation +// and then rebuilds the graph based on the selected page +var update_start = function(direction, cloud_element) { + var start = $( '#cloudGraphPagingStart' ).val(); + var rows = $( '#cloudGraphPagingRows' ).val(); + var startAt = start ? parseInt(start) : 0; + var numRows = rows ? parseInt(rows) : 20; + var newStart = Math.max(startAt + (rows * direction),0); + $( '#cloudGraphPagingStart' ).val(newStart); + + var graph_element = $( '#graph-content', cloud_element ); + $( '#canvas', graph_element).empty(); + init_graph( graph_element ); +}; + // #/~cloud sammy.get ( @@ -704,6 +800,45 @@ sammy.get { $( this ).addClass( 'active' ); init_graph( $( '#graph-content', cloud_element ) ); + + $('#cloudGraphPagingNext').click(function() { + update_start(1, cloud_element); + }); + + $('#cloudGraphPagingPrev').click(function() { + update_start(-1, cloud_element); + }); + + $('#cloudGraphPagingRows').change(function() { + var rows = $( this ).val(); + if (!rows || rows == '') + $( this ).val("20"); + + // ? restart the start position when rows changes? + $( '#cloudGraphPagingStart' ).val(0); + update_start(-1, cloud_element); + }); + + $('#cloudGraphPagingFilter').change(function() { + var filter = $( this ).val(); + // reset the start position when the filter changes + $( '#cloudGraphPagingStart' ).val(0); + update_start(-1, cloud_element); + }); + + $( '#cloudGraphPagingStatusFilter' ).show(); + $( '#cloudGraphPagingFilter' ).hide(); + + $('#cloudGraphPagingFilterType').change(function() { + update_status_filter($( this ).val(), ''); + }); + + $('#cloudGraphPagingStatusFilter').change(function() { + // just reset the paged navigation controls based on this update + $( '#cloudGraphPagingStart' ).val(0); + update_start(-1, cloud_element); + }); + } ); @@ -714,6 +849,8 @@ sammy.get 'activate', function( event ) { + $( "#cloudGraphPaging" ).hide(); // TODO: paging for rgraph too + $( this ).addClass( 'active' ); init_rgraph( $( '#graph-content', cloud_element ) ); } Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/cores.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/cores.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/cores.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/cores.js Tue Oct 6 12:48:53 2015 @@ -731,4 +731,4 @@ sammy.get } ); } -); \ No newline at end of file +); Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/dashboard.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/dashboard.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/dashboard.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/dashboard.js Tue Oct 6 12:48:53 2015 @@ -111,10 +111,10 @@ sammy.get .show(); var data = { - 'index_num-docs' : response['index']['numDocs'], + 'index_num-doc' : response['index']['numDocs'], 'index_heap-usage-bytes' : response['index']['indexHeapUsageBytes'], 'index_max-doc' : response['index']['maxDoc'], - 'index_deleted-docs' : response['index']['deletedDocs'], + 'index_deleted-doc' : response['index']['deletedDocs'], 'index_version' : response['index']['version'], 'index_segmentCount' : response['index']['segmentCount'], 'index_last-modified' : response['index']['lastModified'] Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/dataimport.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/dataimport.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/dataimport.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/dataimport.js Tue Oct 6 12:48:53 2015 @@ -45,7 +45,7 @@ sammy.bind dataimport_handlers.push( key ); } } - params.callback( dataimport_handlers ); + params.callback( dataimport_handlers.sort(naturalSort) ); }, error : function( xhr, text_status, error_thrown) { @@ -350,7 +350,7 @@ sammy.get { url : handler_url + '?command=abort&wt=json', dataType : 'json', - type: 'POST', + type: 'GET', context: $( this ), beforeSend : function( xhr, settings ) { Modified: ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/documents.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/documents.js?rev=1707042&r1=1707041&r2=1707042&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/documents.js (original) +++ ofbiz/trunk/specialpurpose/solr/webapp/solr/js/scripts/documents.js Tue Oct 6 12:48:53 2015 @@ -367,4 +367,4 @@ sammy.get {"id":"foo","title":"blah"} - */ \ No newline at end of file + */