mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:25:49 +00:00
Merge c40e80e796
into 8929d373ec
This commit is contained in:
commit
12317a9749
12 changed files with 137 additions and 42 deletions
23
pom.xml
23
pom.xml
|
@ -60,8 +60,9 @@
|
|||
|
||||
<!-- Web dependencies -->
|
||||
<webjars-bootstrap.version>2.3.0</webjars-bootstrap.version>
|
||||
<webjars-jquery-ui.version>1.10.3</webjars-jquery-ui.version>
|
||||
<webjars-jquery.version>2.0.3-1</webjars-jquery.version>
|
||||
<webjars-jquery-ui.version>1.11.1</webjars-jquery-ui.version>
|
||||
<webjars-jquery.version>2.1.1</webjars-jquery.version>
|
||||
<webjars-datatables.version>1.9.4-2</webjars-datatables.version>
|
||||
<dandelion.version>0.10.1</dandelion.version>
|
||||
|
||||
<mysql.version>5.1.22</mysql.version>
|
||||
|
@ -264,7 +265,12 @@
|
|||
<artifactId>jquery</artifactId>
|
||||
<version>${webjars-jquery.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>datatables</artifactId>
|
||||
<version>${webjars-datatables.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Test Artifacts -->
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
|
@ -310,6 +316,17 @@
|
|||
<artifactId>datatables-export-itext</artifactId>
|
||||
<version>${dandelion.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--
|
||||
webjars in Dandelion bundles
|
||||
http://dandelion.github.io/dandelion/features/asset-bundles/introducing-asset-bundles.html
|
||||
-->
|
||||
<dependency>
|
||||
<groupId>com.github.dandelion</groupId>
|
||||
<artifactId>dandelion-webjars</artifactId>
|
||||
<version>${dandelion.version}</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
|
|
12
src/main/resources/dandelion/dandelion.properties
Normal file
12
src/main/resources/dandelion/dandelion.properties
Normal file
|
@ -0,0 +1,12 @@
|
|||
############################################
|
||||
# Dandelion configuration
|
||||
############################################
|
||||
|
||||
# The 'petclinic' bundle will be included in all requests
|
||||
|
||||
bundle.includes=petclinic
|
||||
|
||||
# Use for production:
|
||||
# http://dandelion.github.io/dandelion/features/development-mode/
|
||||
# http://dandelion.github.io/dandelion/features/production-mode/
|
||||
#dandelion.mode=production
|
|
@ -1,6 +0,0 @@
|
|||
# ==================================
|
||||
# Dandelion-Datatables configuration
|
||||
# ==================================
|
||||
|
||||
# Disable the asset management of Dandelion-Core for all non-DataTable-related assets
|
||||
main.standalone=true
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"bundle" : "ddl-dt-theme-bootstrap2",
|
||||
"dependencies": [ "bootstrap2", "datatables" ]
|
||||
}
|
12
src/main/resources/dandelion/petclinic.json
Normal file
12
src/main/resources/dandelion/petclinic.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"bundle" : "petclinic",
|
||||
"dependencies" : [ "bootstrap2", "jqueryui" ],
|
||||
"assets": [{
|
||||
"name": "petclinic",
|
||||
"version": "1.0.0",
|
||||
"type": "css",
|
||||
"locations": {
|
||||
"webapp": "/resources/css/petclinic.css"
|
||||
}
|
||||
}]
|
||||
}
|
22
src/main/resources/dandelion/vendor/bootstrap2.json
vendored
Normal file
22
src/main/resources/dandelion/vendor/bootstrap2.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"bundle": "bootstrap2",
|
||||
"dependencies": [],
|
||||
"assets": [
|
||||
{
|
||||
"name": "bootstrap2",
|
||||
"version": "2.3.0",
|
||||
"type": "js",
|
||||
"locations": {
|
||||
"webjar": "bootstrap.min.js"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "bootstrap2",
|
||||
"version": "2.3.0",
|
||||
"type": "css",
|
||||
"locations": {
|
||||
"webjar": "bootstrap.min.css"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
22
src/main/resources/dandelion/vendor/datatables.json
vendored
Normal file
22
src/main/resources/dandelion/vendor/datatables.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"bundle" : "datatables",
|
||||
"dependencies": [ "jquery" ],
|
||||
"assets": [
|
||||
{
|
||||
"name": "datatables",
|
||||
"version": "1.10.2",
|
||||
"type": "js",
|
||||
"locations": {
|
||||
"webjar": "jquery.dataTables.min.js"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "datatables",
|
||||
"version": "1.10.2",
|
||||
"type": "css",
|
||||
"locations": {
|
||||
"webjar": "jquery.dataTables.css"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
src/main/resources/dandelion/vendor/jquery.json
vendored
Normal file
13
src/main/resources/dandelion/vendor/jquery.json
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"bundle": "jquery",
|
||||
"assets": [
|
||||
{
|
||||
"name": "jquery",
|
||||
"version": "2.1.1",
|
||||
"type": "js",
|
||||
"locations": {
|
||||
"webjar": "jquery.min.js"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
22
src/main/resources/dandelion/vendor/jqueryui.json
vendored
Normal file
22
src/main/resources/dandelion/vendor/jqueryui.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"bundle": "jqueryui",
|
||||
"dependencies": [ "jquery" ],
|
||||
"assets": [
|
||||
{
|
||||
"name": "jqueryui",
|
||||
"version": "1.11.1",
|
||||
"type": "js",
|
||||
"locations": {
|
||||
"webjar": "jquery-ui.min.js"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "jqueryui",
|
||||
"version": "1.11.1",
|
||||
"type": "css",
|
||||
"locations": {
|
||||
"webjar": "jquery-ui.min.css"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -7,27 +7,6 @@ PetClinic :: a Spring Framework demonstration
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>PetClinic :: a Spring Framework demonstration</title>
|
||||
|
||||
|
||||
<spring:url value="/webjars/bootstrap/2.3.0/css/bootstrap.min.css" var="bootstrapCss"/>
|
||||
<link href="${bootstrapCss}" rel="stylesheet"/>
|
||||
|
||||
<spring:url value="/resources/css/petclinic.css" var="petclinicCss"/>
|
||||
<link href="${petclinicCss}" rel="stylesheet"/>
|
||||
|
||||
<spring:url value="/webjars/jquery/2.0.3/jquery.js" var="jQuery"/>
|
||||
<script src="${jQuery}"></script>
|
||||
|
||||
<!-- jquery-ui.js file is really big so we only load what we need instead of loading everything -->
|
||||
<spring:url value="/webjars/jquery-ui/1.10.3/ui/jquery.ui.core.js" var="jQueryUiCore"/>
|
||||
<script src="${jQueryUiCore}"></script>
|
||||
|
||||
<spring:url value="/webjars/jquery-ui/1.10.3/ui/jquery.ui.datepicker.js" var="jQueryUiDatePicker"/>
|
||||
<script src="${jQueryUiDatePicker}"></script>
|
||||
|
||||
<!-- jquery-ui.css file is not that big so we can afford to load it -->
|
||||
<spring:url value="/webjars/jquery-ui/1.10.3/themes/base/jquery-ui.css" var="jQueryUiCss"/>
|
||||
<link href="${jQueryUiCss}" rel="stylesheet"></link>
|
||||
</head>
|
||||
|
||||
|
||||
|
|
|
@ -11,11 +11,6 @@
|
|||
<jsp:include page="../fragments/headTag.jsp"/>
|
||||
<body>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$("#birthDate").datepicker({ dateFormat: 'yy/mm/dd'});
|
||||
});
|
||||
</script>
|
||||
<div class="container">
|
||||
<jsp:include page="../fragments/bodyHeader.jsp"/>
|
||||
<c:choose>
|
||||
|
@ -60,5 +55,9 @@
|
|||
<jsp:include page="../fragments/footer.jsp"/>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$("#birthDate").datepicker({ dateFormat: 'yy/mm/dd'});
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
|
|
|
@ -12,11 +12,6 @@
|
|||
|
||||
|
||||
<body>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#date").datepicker({ dateFormat: 'yy/mm/dd'});
|
||||
});
|
||||
</script>
|
||||
<div class="container">
|
||||
<jsp:include page="../fragments/bodyHeader.jsp"/>
|
||||
<h2><c:if test="${visit['new']}">New </c:if>Visit</h2>
|
||||
|
@ -82,5 +77,9 @@
|
|||
</div>
|
||||
<jsp:include page="../fragments/footer.jsp"/>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$("#date").datepicker({ dateFormat: 'yy/mm/dd'});
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue