-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sofn
committed
Oct 23, 2015
1 parent
1b76a14
commit cbcc7fb
Showing
15 changed files
with
190 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<%@ page contentType="text/html;charset=UTF-8" %> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title><sitemesh:write property='title'/></title> | ||
<sitemesh:write property='head'/> | ||
</head> | ||
<body> | ||
<sitemesh:write property='body'/> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+223 Bytes
deploy/src/main/webapp/static/jquery-validation/1.14.0/images/unchecked.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions
27
deploy/src/main/webapp/static/jquery-validation/1.14.0/messages_bs_zh.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Translated default messages for the jQuery validation plugin. | ||
* Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語) | ||
*/ | ||
jQuery.extend(jQuery.validator.messages, { | ||
required: "必选字段", | ||
remote: "请修正该字段", | ||
email: "请输入正确格式的电子邮件", | ||
url: "请输入合法的网址", | ||
date: "请输入合法的日期", | ||
dateISO: "请输入合法的日期 (ISO).", | ||
number: "请输入合法的数字", | ||
digits: "只能输入整数", | ||
creditcard: "请输入合法的信用卡号", | ||
equalTo: "请再次输入相同的值", | ||
accept: "请输入拥有合法后缀名的字符串", | ||
maxlength: jQuery.validator.format("请输入一个长度最多是 {0} 的字符串"), | ||
minlength: jQuery.validator.format("请输入一个长度最少是 {0} 的字符串"), | ||
rangelength: jQuery.validator.format("请输入一个长度介于 {0} 和 {1} 之间的字符串"), | ||
range: jQuery.validator.format("请输入一个介于 {0} 和 {1} 之间的值"), | ||
max: jQuery.validator.format("请输入一个最大为 {0} 的值"), | ||
min: jQuery.validator.format("请输入一个最小为 {0} 的值") | ||
}); | ||
|
||
jQuery.extend(jQuery.validator.defaults, { | ||
errorElement: "span" | ||
}); |
8 changes: 8 additions & 0 deletions
8
deploy/src/main/webapp/static/jquery-validation/1.14.0/validate.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
span.error { | ||
background:url("images/unchecked.gif") no-repeat 0px 0px; | ||
padding-left: 16px; | ||
margin-left: 1em; | ||
padding-bottom: 2px; | ||
font-weight: bold; | ||
color: #EA5200; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
package com.appengine.task.dao; | ||
|
||
import com.appengine.task.domain.Task; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | ||
import org.springframework.data.jpa.repository.Modifying; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.PagingAndSortingRepository; | ||
|
||
import java.util.List; | ||
|
||
public interface TaskDao extends PagingAndSortingRepository<Task, Long>, JpaSpecificationExecutor<Task> { | ||
|
||
@Modifying | ||
@Query("delete from Task task where task.userId=?1") | ||
void deleteByUserId(Long id); | ||
@Query("delete from Task task where task.uid=?1") | ||
void deleteByUid(Long id); | ||
|
||
List<Task> findAllByUserId(long uid); | ||
Page<Task> findByUid(long uid, Pageable request); | ||
} |
Oops, something went wrong.