Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 2e3554a

Browse files
tomas-langerGerrit Code Review
authored andcommitted
Merge "Up version of jQuery, Angular & Bootstrap Fixed vulnerability in Bootstrap 3.3.7 (twbs/bootstrap#20184)"
2 parents 334afa6 + 629d9eb commit 2e3554a

40 files changed

+5503
-321
lines changed

etc/config/copyright-exclude

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,4 @@ build.readme
7272
/core-server/src/main/java/org/glassfish/jersey/server/internal/monitoring/UniformTimeValuesSnapshot.java
7373
/core-server/src/main/java/jersey/repackaged
7474
/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/jackson
75+
/examples/bean-validation-webapp/src/main/webapp/fonts

examples/bean-validation-webapp/README.MD

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,5 @@ This examples is using following (3-rd party) front-end frameworks:
128128
- [Developer guide](http://docs.angularjs.org/guide)
129129

130130
**Bootstrap** by Twitter - front-end HTML/CSS/JS framework
131-
- [Homepage](http://twitter.github.com/bootstrap)
132-
- [Getting
133-
started](http://twitter.github.com/bootstrap/getting-started.html)
131+
- [Homepage](https://getbootstrap.com/)
132+
- [Getting started](https://getbootstrap.com/docs/4.0/getting-started/introduction/)

examples/bean-validation-webapp/pom.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,23 @@
7878
<!-- Run the application using "mvn jetty:run" -->
7979
<plugin>
8080
<groupId>org.mortbay.jetty</groupId>
81-
<artifactId>maven-jetty-plugin</artifactId>
81+
<artifactId>jetty-maven-plugin</artifactId>
82+
<configuration>
83+
<scanIntervalSeconds>5</scanIntervalSeconds>
84+
<stopPort>9999</stopPort>
85+
<stopKey>STOP</stopKey>
86+
<webApp>
87+
<contextPath>/bean-validation-webapp</contextPath>
88+
<webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
89+
</webApp>
90+
<war>${project.build.directory}/${project.build.finalName}.war</war>
91+
<connectors>
92+
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
93+
<port>8080</port>
94+
<maxIdleTime>60000</maxIdleTime>
95+
</connector>
96+
</connectors>
97+
</configuration>
8298
</plugin>
8399
</plugins>
84100
</build>

examples/bean-validation-webapp/src/main/webapp/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242

4343
/* App Module */
4444

45-
var contact = angular.module('contact', ['contactServices', 'ngResource']).
45+
var contact = angular.module('contact', ['contactServices', 'ngRoute']).
4646
config(
47-
['$routeProvider', function($routeProvider) {
47+
function($routeProvider) {
4848
$routeProvider.
4949
when('/contact', {templateUrl: 'contact.html', controller: ContactController}).
5050
/*when('/contact/:contactId', {templateUrl: 'contact-detail.html', controller: ContactController}).*/
5151

5252
otherwise({redirectTo: '/contact'});
53-
}]
53+
}
5454
);

examples/bean-validation-webapp/src/main/webapp/contact.html

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,38 +46,38 @@
4646
<div class="page-header">
4747
<h1>Contact List <small>Bean Validation Example</small></h1>
4848
</div>
49-
<div class="span3">
49+
<div class="col-md-3">
5050
<form>
5151
<fieldset>
5252
<legend>Search</legend>
53-
<div class="input-prepend input-append">
54-
<div class="btn-group" ng-class="{open: !searchCollapse}">
55-
<button class="btn dropdown-toggle" ng-click="searchCollapse=!searchCollapse"><i class="icon-{{searchIcon}}"></i> <span class="caret"></span></button>
53+
<div class="btn-group btn-group btn-group-sm" role="group">
54+
<div class="btn-group btn-group-sm" ng-class="{open: !searchCollapse}">
55+
<button class="btn dropdown-toggle" ng-click="searchCollapse=!searchCollapse"><i class="glyphicon glyphicon-{{searchIcon}}"></i> <span class="caret"></span></button>
5656
<ul class="dropdown-menu">
57-
<li><a ng-click="changeSearchType('name')"><i class="icon-user"></i> Name</a></li>
58-
<li><a ng-click="changeSearchType('email')"><i class="icon-envelope"></i> Email</a></li>
59-
<li><a ng-click="changeSearchType('phone')"><i class="icon-home"></i> Phone</a></li>
60-
<li><a ng-click="changeSearchType('unknown')"><i class="icon-question-sign"></i> Invalid</a></li>
57+
<li><a ng-click="changeSearchType('name')"><i class="glyphicon glyphicon-user"></i> Name</a></li>
58+
<li><a ng-click="changeSearchType('email')"><i class="glyphicon glyphicon-envelope"></i> Email</a></li>
59+
<li><a ng-click="changeSearchType('phone')"><i class="glyphicon glyphicon-home"></i> Phone</a></li>
60+
<li><a ng-click="changeSearchType('unknown')"><i class="glyphicon glyphicon-question-sign"></i> Invalid</a></li>
6161
</ul>
6262
</div>
63-
<input class="span2" type="text" ng-model="searchValue" />
64-
<button class="btn" type="button" ng-click="search()"><i class="icon-search"></i></button>
63+
<input class="col-md-7" type="text" ng-model="searchValue" />
64+
<button class="btn" type="button" ng-click="search()"><i class="glyphicon glyphicon-search"></i></button>
6565
</div>
6666
</fieldset>
6767
</form>
6868
<form>
6969
<fieldset>
7070
<legend>Add Contact</legend>
71-
<div class="input-prepend">
72-
<span class="add-on"><i class="icon-user"></i></span>
71+
<div class="input-group">
72+
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
7373
<input type="text" placeholder="Name" ng-model="contact.fullName" null-if-empty />
7474
</div>
75-
<div class="input-prepend">
76-
<span class="add-on"><i class="icon-envelope"></i></span>
75+
<div class="input-group">
76+
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
7777
<input type="text" placeholder="Email" ng-model="contact.email" null-if-empty />
7878
</div>
79-
<div class="input-prepend">
80-
<span class="add-on"><i class="icon-home"></i></span>
79+
<div class="input-group">
80+
<span class="input-group-addon"><i class="glyphicon glyphicon-home"></i></span>
8181
<input type="text" placeholder="Phone" ng-model="contact.phone" null-if-empty />
8282
</div>
8383
<button class="btn" type="submit" ng-click="addContact()">Add</button>
@@ -86,16 +86,16 @@ <h1>Contact List <small>Bean Validation Example</small></h1>
8686
<form>
8787
<fieldset>
8888
<legend>Refresh</legend>
89-
<button class="btn" type="submit" ng-click="refresh()"><i class="icon-refresh"></i> Refresh</button>
89+
<button class="btn" type="submit" ng-click="refresh()"><i class="glyphicon glyphicon-refresh"></i> Refresh</button>
9090
</fieldset>
9191
</form>
9292
</div>
93-
<div class="span9">
94-
<div ng-show="errors[0]" class="alert alert-error">
93+
<div class="col-md-9">
94+
<div ng-show="errors[0]" class="alert alert-danger">
9595
<button type="button" class="close" ng-click="clearErrors()">&times;</button>
9696
<h4>Errors! (HTTP {{httpStatus}})</h4>
9797
<br/>
98-
<ul class="unstyled">
98+
<ul class="list-unstyled">
9999
<li ng-repeat="error in errors">{{error.path}} - {{error.message}}</li>
100100
</ul>
101101
</div>
@@ -118,7 +118,7 @@ <h4>Errors! (HTTP {{httpStatus}})</h4>
118118
<td>{{contact.fullName}}</td>
119119
<td>{{contact.email}}</td>
120120
<td>{{contact.phone}}</td>
121-
<td><a ng-click="removeContact(contact.id)"><i class="icon-trash"></i></a></td>
121+
<td><a ng-click="removeContact(contact.id)"><i class="glyphicon glyphicon-trash"></i></a></td>
122122
</tr>
123123
</tbody>
124124
</table>

examples/bean-validation-webapp/src/main/webapp/css/bootstrap-responsive.min.css

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/bean-validation-webapp/src/main/webapp/css/bootstrap.min.css

Lines changed: 5 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)