mirror of https://github.com/apache/lucene.git
SOLR-14209: Upgrade JQuery to 3.4.1
* JQuery 2.1.3 to 3.4.1 * jstree 1.0-rc1 to v3.3.8 Closes #1209 Signed-off-by: Kevin Risden <krisden@apache.org>
This commit is contained in:
parent
f41eabdc5f
commit
c4a8a77d23
|
@ -299,6 +299,8 @@ Other Changes
|
||||||
|
|
||||||
* SOLR-14248: Improve ClusterStateMockUtil and make its methods public. (shalin)
|
* SOLR-14248: Improve ClusterStateMockUtil and make its methods public. (shalin)
|
||||||
|
|
||||||
|
* SOLR-14209: Upgrade JQuery to 3.4.1 (Kevin Risden)
|
||||||
|
|
||||||
================== 8.4.1 ==================
|
================== 8.4.1 ==================
|
||||||
|
|
||||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
||||||
|
|
|
@ -37,7 +37,7 @@ Copyright (c) 2013-2014 Klaus Hartl, https://github.com/carhartl/jquery-cookie
|
||||||
This product includes jquery.form Javascript library created by Mike Alsup
|
This product includes jquery.form Javascript library created by Mike Alsup
|
||||||
Copyright 2006-2014 (c) M. Alsup, https://github.com/malsup/form/
|
Copyright 2006-2014 (c) M. Alsup, https://github.com/malsup/form/
|
||||||
|
|
||||||
This product includes the jquery.jstree.js Javascript library created by Ivan Bozhanov
|
This product includes the jstree Javascript library created by Ivan Bozhanov
|
||||||
Copyright (c) 2013-2014 Ivan Bozhanov, https://github.com/vakata/jstree
|
Copyright (c) 2013-2014 Ivan Bozhanov, https://github.com/vakata/jstree
|
||||||
|
|
||||||
This product includes jquery.timeago.js Javascript library by Ryan McGeary
|
This product includes jquery.timeago.js Javascript library by Ryan McGeary
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<link rel="icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
<link rel="icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
<link rel="shortcut icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
||||||
|
|
||||||
<script type="text/javascript" src="#{url_root}/libs/jquery-2.1.3.min.js"></script>
|
<script type="text/javascript" src="#{url_root}/libs/jquery-3.4.1.min.js"></script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#admin{
|
#admin{
|
||||||
|
|
|
@ -529,18 +529,13 @@ public final class ZookeeperInfoHandler extends RequestHandlerBase {
|
||||||
label = idx > 0 ? path.substring(idx + 1) : path;
|
label = idx > 0 ? path.substring(idx + 1) : path;
|
||||||
}
|
}
|
||||||
json.startObject();
|
json.startObject();
|
||||||
//writeKeyValue(json, "data", label, true );
|
writeKeyValue(json, "text", label, true);
|
||||||
json.writeString("data");
|
|
||||||
json.writeNameSeparator();
|
|
||||||
|
|
||||||
json.startObject();
|
|
||||||
writeKeyValue(json, "title", label, true);
|
|
||||||
json.writeValueSeparator();
|
json.writeValueSeparator();
|
||||||
json.writeString("attr");
|
json.writeString("a_attr");
|
||||||
json.writeNameSeparator();
|
json.writeNameSeparator();
|
||||||
json.startObject();
|
json.startObject();
|
||||||
writeKeyValue(json, "href", "admin/zookeeper?detail=true&path=" + URLEncoder.encode(path, "UTF-8"), true);
|
String href = "admin/zookeeper?detail=true&path=" + URLEncoder.encode(path, StandardCharsets.UTF_8);
|
||||||
json.endObject();
|
writeKeyValue(json, "href", href, true);
|
||||||
json.endObject();
|
json.endObject();
|
||||||
|
|
||||||
Stat stat = new Stat();
|
Stat stat = new Stat();
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<link rel="icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
<link rel="icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
<link rel="shortcut icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
||||||
|
|
||||||
<script type="text/javascript" src="#{url_root}/libs/jquery-2.1.3.min.js"></script>
|
<script type="text/javascript" src="#{url_root}/libs/jquery-3.4.1.min.js"></script>
|
||||||
<script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/js/jquery.tx3-tag-cloud.js&contentType=text/javascript"></script>
|
<script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/js/jquery.tx3-tag-cloud.js&contentType=text/javascript"></script>
|
||||||
<script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/js/dropit.js&contentType=text/javascript"></script>
|
<script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/js/dropit.js&contentType=text/javascript"></script>
|
||||||
<script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/js/jquery.autocomplete.js&contentType=text/javascript"></script>
|
<script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/js/jquery.autocomplete.js&contentType=text/javascript"></script>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<title>#param('title')</title>
|
<title>#param('title')</title>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||||
|
|
||||||
<script type="text/javascript" src="#{url_root}/libs/jquery-2.1.3.min.js"></script>
|
<script type="text/javascript" src="#{url_root}/libs/jquery-3.4.1.min.js"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="#{url_for_solr}/admin/file?file=/velocity/main.css&contentType=text/css"/>
|
<link rel="stylesheet" type="text/css" href="#{url_for_solr}/admin/file?file=/velocity/main.css&contentType=text/css"/>
|
||||||
<link rel="stylesheet" href="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.css&contentType=text/css" type="text/css" />
|
<link rel="stylesheet" href="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.css&contentType=text/css" type="text/css" />
|
||||||
<link rel="icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
<link rel="icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
|
||||||
|
|
|
@ -591,21 +591,6 @@ pre.syntax .tex .formula
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content .tree li,
|
|
||||||
#content .tree ins
|
|
||||||
{
|
|
||||||
background-color: transparent;
|
|
||||||
background-image: url( ../../img/tree.png );
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content .tree li
|
|
||||||
{
|
|
||||||
background-position: -54px 0;
|
|
||||||
background-repeat: repeat-y;
|
|
||||||
line-height: 22px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content .tree li.jstree-last
|
#content .tree li.jstree-last
|
||||||
{
|
{
|
||||||
background:transparent;
|
background:transparent;
|
||||||
|
@ -626,16 +611,6 @@ pre.syntax .tex .formula
|
||||||
background-position: 0 0;
|
background-position: 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content .tree .jstree-hovered
|
|
||||||
{
|
|
||||||
background:#e7f4f9; border:1px solid #d8f0fa; padding:0 2px 0 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content .tree .jstree-clicked
|
|
||||||
{
|
|
||||||
background:#beebff; border:1px solid #99defd; padding:0 2px 0 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content .tree a.active
|
#content .tree a.active
|
||||||
{
|
{
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
|
@ -645,11 +620,13 @@ pre.syntax .tex .formula
|
||||||
#content .tree a .jstree-icon
|
#content .tree a .jstree-icon
|
||||||
{
|
{
|
||||||
background-image: url( ../../img/ico/folder.png );
|
background-image: url( ../../img/ico/folder.png );
|
||||||
|
background-position: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content .tree .jstree-leaf a .jstree-icon
|
#content .tree .jstree-leaf a .jstree-icon
|
||||||
{
|
{
|
||||||
background-image: url( ../../img/ico/document-text.png );
|
background-image: url( ../../img/ico/document-text.png );
|
||||||
|
background-position: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content .tree .jstree-search
|
#content .tree .jstree-search
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -227,6 +227,7 @@ limitations under the License.
|
||||||
line-height: 17px;
|
line-height: 17px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content #logging .jstree a:hover
|
#content #logging .jstree a:hover
|
||||||
|
@ -282,14 +283,14 @@ limitations under the License.
|
||||||
z-index: 800;
|
z-index: 800;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content #logging .jstree li .selector-holder { left: 440px; }
|
#content #logging .jstree li .selector-holder { left: 475px; }
|
||||||
#content #logging .jstree li li .selector-holder { left: 422px; }
|
#content #logging .jstree li li .selector-holder { left: 450px; }
|
||||||
#content #logging .jstree li li li .selector-holder { left: 404px; }
|
#content #logging .jstree li li li .selector-holder { left: 425px; }
|
||||||
#content #logging .jstree li li li li .selector-holder { left: 386px; }
|
#content #logging .jstree li li li li .selector-holder { left: 400px; }
|
||||||
#content #logging .jstree li li li li li .selector-holder { left: 368px; }
|
#content #logging .jstree li li li li li .selector-holder { left: 375px; }
|
||||||
#content #logging .jstree li li li li li li .selector-holder { left: 350px; }
|
#content #logging .jstree li li li li li li .selector-holder { left: 350px; }
|
||||||
#content #logging .jstree li li li li li li li .selector-holder { left: 332px; }
|
#content #logging .jstree li li li li li li li .selector-holder { left: 325px; }
|
||||||
#content #logging .jstree li li li li li li li li .selector-holder { left: 314px; }
|
#content #logging .jstree li li li li li li li li .selector-holder { left: 300px; }
|
||||||
|
|
||||||
#content #logging .jstree .selector
|
#content #logging .jstree .selector
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
|
@ -50,11 +50,12 @@ limitations under the License.
|
||||||
<link rel="stylesheet" type="text/css" href="css/angular/overview.css?_=${version}">
|
<link rel="stylesheet" type="text/css" href="css/angular/overview.css?_=${version}">
|
||||||
<link rel="stylesheet" type="text/css" href="css/angular/jquery-ui.min.css?_=${version}">
|
<link rel="stylesheet" type="text/css" href="css/angular/jquery-ui.min.css?_=${version}">
|
||||||
<link rel="stylesheet" type="text/css" href="css/angular/jquery-ui.structure.min.css?_=${version}">
|
<link rel="stylesheet" type="text/css" href="css/angular/jquery-ui.structure.min.css?_=${version}">
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/angular/jstree.style.min.css?_=${version}">
|
||||||
|
|
||||||
<meta http-equiv="x-ua-compatible" content="IE=9">
|
<meta http-equiv="x-ua-compatible" content="IE=9">
|
||||||
<script src="libs/jquery-2.1.3.min.js"></script>
|
<script src="libs/jquery-3.4.1.min.js"></script>
|
||||||
<script src="libs/chosen.jquery.min.js"></script>
|
<script src="libs/chosen.jquery.min.js"></script>
|
||||||
<script src="libs/jquery.jstree.js"></script>
|
<script src="libs/jstree.min.js"></script>
|
||||||
<script src="libs/angular.min.js"></script>
|
<script src="libs/angular.min.js"></script>
|
||||||
<script src="libs/angular-chosen.min.js"></script>
|
<script src="libs/angular-chosen.min.js"></script>
|
||||||
<script src="libs/angular-resource.min.js"></script>
|
<script src="libs/angular-resource.min.js"></script>
|
||||||
|
|
|
@ -331,24 +331,21 @@ solrAdminApp.config([
|
||||||
},
|
},
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
scope.$watch("data", function(newValue, oldValue) {
|
scope.$watch("data", function(newValue, oldValue) {
|
||||||
if (newValue) {
|
if (newValue && !jQuery.isEmptyObject(newValue)) {
|
||||||
var treeConfig = {
|
var treeConfig = {
|
||||||
"plugins" : [ "json_data", "ui" ],
|
'core' : {
|
||||||
"json_data" : {
|
'animation' : 0,
|
||||||
"data" : scope.data,
|
'data': scope.data,
|
||||||
"progressive_render" : true
|
'worker': false
|
||||||
},
|
|
||||||
"core" : {
|
|
||||||
"animation" : 0
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var tree = $(element).jstree(treeConfig);
|
var tree = $(element).jstree(treeConfig);
|
||||||
tree.jstree('open_node','li:first');
|
$(element).jstree('open_node','li:first');
|
||||||
if (tree) {
|
if (tree) {
|
||||||
element.bind("select_node.jstree", function (event, data) {
|
element.bind("select_node.jstree", function (event, data) {
|
||||||
scope.$apply(function() {
|
scope.$apply(function() {
|
||||||
scope.onSelect({url: data.args[0].href, data: data});
|
scope.onSelect({url: data.node.a_attr.href, data: data});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -381,7 +381,7 @@ var nodesSubController = function($scope, Collections, System, Metrics) {
|
||||||
nodes[node]['jvmUptime'] = secondsForHumans(jvmUptime);
|
nodes[node]['jvmUptime'] = secondsForHumans(jvmUptime);
|
||||||
nodes[node]['jvmUptimeSec'] = jvmUptime;
|
nodes[node]['jvmUptimeSec'] = jvmUptime;
|
||||||
|
|
||||||
nodes[node]['uptime'] = s.system.uptime.replace(/.*up (.*?,.*?),.*/, "$1");
|
nodes[node]['uptime'] = (s.system.uptime || "unknown").replace(/.*up (.*?,.*?),.*/, "$1");
|
||||||
nodes[node]['loadAvg'] = Math.round(s.system.systemLoadAverage * 100) / 100;
|
nodes[node]['loadAvg'] = Math.round(s.system.systemLoadAverage * 100) / 100;
|
||||||
nodes[node]['cpuPct'] = Math.ceil(s.system.processCpuLoad);
|
nodes[node]['cpuPct'] = Math.ceil(s.system.processCpuLoad);
|
||||||
nodes[node]['cpuPctStyle'] = styleForPct(Math.ceil(s.system.processCpuLoad));
|
nodes[node]['cpuPctStyle'] = styleForPct(Math.ceil(s.system.processCpuLoad));
|
||||||
|
@ -651,7 +651,7 @@ var graphSubController = function ($scope, Zookeeper) {
|
||||||
Zookeeper.liveNodes(function (data) {
|
Zookeeper.liveNodes(function (data) {
|
||||||
var live_nodes = {};
|
var live_nodes = {};
|
||||||
for (var c in data.tree[0].children) {
|
for (var c in data.tree[0].children) {
|
||||||
live_nodes[data.tree[0].children[c].data.title] = true;
|
live_nodes[data.tree[0].children[c].text] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var params = {view: "graph"};
|
var params = {view: "graph"};
|
||||||
|
|
|
@ -79,7 +79,7 @@ solrAdminApp.controller('CollectionsController',
|
||||||
$scope.configs = [];
|
$scope.configs = [];
|
||||||
var items = data.tree[0].children;
|
var items = data.tree[0].children;
|
||||||
for (var i in items) {
|
for (var i in items) {
|
||||||
$scope.configs.push({name: items[i].data.title});
|
$scope.configs.push({name: items[i].text});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -57,16 +57,14 @@ solrAdminApp.controller('FilesController',
|
||||||
process(path + file, children);
|
process(path + file, children);
|
||||||
}
|
}
|
||||||
tree.push({
|
tree.push({
|
||||||
data: {
|
text: file,
|
||||||
title: file,
|
a_attr: { id: path + file},
|
||||||
attr: { id: path + file}
|
|
||||||
},
|
|
||||||
children: children,
|
children: children,
|
||||||
state: state
|
state: state
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
$scope.tree = [];
|
$scope.tree = [];
|
||||||
process("", $scope.tree);
|
process("", $scope.tree);
|
||||||
|
|
||||||
|
@ -92,7 +90,7 @@ solrAdminApp.controller('FilesController',
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.showTreeLink = function(data) {
|
$scope.showTreeLink = function(data) {
|
||||||
var file = data.args[0].id;
|
var file = data.node.a_attr.id;
|
||||||
$location.search({file:file});
|
$location.search({file:file});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -89,10 +89,9 @@ catalyst.filter('timeago', function() {
|
||||||
days < 365 && substitute(strings.months, Math.round(days / 30), strings) ||
|
days < 365 && substitute(strings.months, Math.round(days / 30), strings) ||
|
||||||
years < 1.5 && substitute(strings.year, 1, strings) ||
|
years < 1.5 && substitute(strings.year, 1, strings) ||
|
||||||
substitute(strings.years, Math.round(years), strings);
|
substitute(strings.years, Math.round(years), strings);
|
||||||
console.log(words+" "+prefix+suffix);
|
prefix.replace(/ /g, '');
|
||||||
prefix.replace(/ /g, '')
|
words.replace(/ /g, '');
|
||||||
words.replace(/ /g, '')
|
suffix.replace(/ /g, '');
|
||||||
suffix.replace(/ /g, '')
|
|
||||||
return (prefix+' '+words+' '+suffix+' '+separator);
|
return (prefix+' '+words+' '+suffix+' '+separator);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -15,22 +15,21 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<div id="logging" class="clearfix">
|
<div id="logging" class="clearfix">
|
||||||
|
|
||||||
|
|
||||||
<div id="frame">
|
<div id="frame">
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h2><span>{{watcher}}</span></h2>
|
<h2><span>{{watcher}}</span></h2>
|
||||||
<ul class="tree jstree">
|
<div id="loggingtree">
|
||||||
<li class="jstree-leaf level-{{logger.level.toLowerCase()}}" ng-class="{'jstree-last':$last}" ng-repeat="logger in logging" ng-include="'logger.html'"></li>
|
<ul class="tree jstree jstree-container-ul jstree-children tree ng-isolate-scope jstree-1 jstree-default">
|
||||||
|
<li class="jstree-node jstree-leaf jstree-open level-{{logger.level.toLowerCase()}}" ng-class="{'jstree-last':$last}" ng-repeat="logger in logging" ng-include="'logger.html'"></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/ng-template" id="logger.html">
|
<script type="text/ng-template" id="logger.html">
|
||||||
<ins class="trigger jstree-icon"> </ins>
|
<i class="trigger jstree-icon jstree-ocl"> </i>
|
||||||
<a ng-click="toggleOptions(logger)" class="trigger {{logger.level.toLowerCase() }}" ng-class="{null:!logger.level, set: logger.set}" title="{{ logger.name }}" rel="{{logger.level}}">
|
<a ng-click="toggleOptions(logger)" class="jstree-anchor trigger {{logger.level.toLowerCase() }}" ng-class="{null:!logger.level, set: logger.set}" title="{{ logger.name }}" rel="{{logger.level}}">
|
||||||
<span class="ns">{{logger.name}}</span>
|
<span class="ns">{{logger.name}}</span>
|
||||||
<span class="name" ng-show="logger.short">{{ logger.short }}</span>
|
<span class="name" ng-show="logger.short">{{ logger.short }}</span>
|
||||||
<span class="name" ng-show="!logger.short"><em>empty</em></span>
|
<span class="name" ng-show="!logger.short"><em>empty</em></span>
|
||||||
|
@ -51,6 +50,6 @@ limitations under the License.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
<li class="jstree-leaf level-{{logger.level.toLowerCase()}}" ng-class="{'jstree-last':$last}" ng-repeat="logger in logger.children" ng-include="'logger.html'"></li>
|
<li class="jstree-node jstree-leaf jstree-open level-{{logger.level.toLowerCase()}}" ng-class="{'jstree-last':$last}" ng-repeat="logger in logger.children" ng-include="'logger.html'"></li>
|
||||||
</ul>
|
</ul>
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue