Skip to content

Commit

Permalink
UI 默认采用 grid 方式展示API参数
Browse files Browse the repository at this point in the history
  • Loading branch information
core-lib committed Jun 20, 2019
1 parent cff26b9 commit 0936f88
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 42 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ JDK 1.7 +
<dependency>
<groupId>com.github.core-lib.httpdoc</groupId>
<artifactId>httpdoc-spring-mvc</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>

<!-- 添加JDK的tools.jar依赖用于解析源码注释,采用这种方式部署到Tomcat时需要往Tomcat的lib目录增加该tools.jar -->
Expand Down Expand Up @@ -131,7 +131,7 @@ JDK 1.7 +
<dependency>
<groupId>com.github.core-lib.httpdoc</groupId>
<artifactId>httpdoc-spring-boot</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
```
```java
Expand Down Expand Up @@ -169,6 +169,8 @@ JDK 1.7 +
项目中的httpdoc-sample模块就是一个HttpDoc + SpringMVC的一个标准示例,可checkout后查看源码和编译运行查看效果,也可立即预览:JSON-Editor: [httpdoc-ui](http://47.106.196.10:8090/httpdoc-sample/httpdoc-ui/index.html) TextArea: [httpdoc-ui-v1](http://47.106.196.10:8090/httpdoc-sample/httpdoc-ui-v1/index.html)

## 变更记录
* v1.7.8
* UI 默认采用 grid 方式展示API参数
* v1.7.7
* 升级[LoadKit](https://github.com/core-lib/loadkit)依赖版本解决ANT表达式无法正确匹配**/*通配符的问题
* v1.7.6
Expand Down
2 changes: 1 addition & 1 deletion httpdoc-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions httpdoc-gson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-core</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down
4 changes: 2 additions & 2 deletions httpdoc-jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-core</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
Expand Down
4 changes: 2 additions & 2 deletions httpdoc-jestful-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-core</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
<dependency>
<groupId>com.github.core-lib.httpdoc</groupId>
<artifactId>httpdoc-jestful-client</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.core-lib.httpdoc</groupId>
<artifactId>httpdoc-jackson</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions httpdoc-jestful-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-web</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
<dependency>
<groupId>com.github.core-lib.jestful</groupId>
Expand Down
4 changes: 2 additions & 2 deletions httpdoc-nutz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-web</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
<dependency>
<groupId>org.nutz</groupId>
Expand Down
4 changes: 2 additions & 2 deletions httpdoc-objc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-core</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions httpdoc-retrofit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-core</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
<dependency>
<groupId>com.github.core-lib.httpdoc</groupId>
<artifactId>httpdoc-retrofit</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.core-lib.httpdoc</groupId>
<artifactId>httpdoc-jackson</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions httpdoc-retrofit2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-core</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
<dependency>
<groupId>com.github.core-lib.httpdoc</groupId>
<artifactId>httpdoc-retrofit2</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.core-lib.httpdoc</groupId>
<artifactId>httpdoc-jackson</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions httpdoc-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -17,7 +17,7 @@
<properties>
<spring.version>4.3.9.RELEASE</spring.version>
<jackson.version>2.9.5</jackson.version>
<httpdoc.version>v1.7.7</httpdoc.version>
<httpdoc.version>v1.7.8</httpdoc.version>
</properties>

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions httpdoc-spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -33,7 +33,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-spring-mvc</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions httpdoc-spring-mvc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -26,7 +26,7 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-web</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
Expand Down
2 changes: 1 addition & 1 deletion httpdoc-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="navbar-header">
<a class="navbar-brand" href="https://github.com/core-lib/httpdoc" target="_blank">
HttpDoc UI
<span class="badge">v1.7.7</span>
<span class="badge">v1.7.8</span>
</a>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="navbar-header">
<a class="navbar-brand" href="https://github.com/core-lib/httpdoc" target="_blank">
HttpDoc UI
<span class="badge">v1.7.7</span>
<span class="badge">v1.7.8</span>
</a>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function HttpDoc() {
SETTING.indent = " ";
SETTING.maxDepth = 5;
SETTING.showDescription = true;
SETTING.defaultFormat = "normal";
SETTING.defaultFormat = "grid";
SETTING.username = "";
SETTING.password = "";
SETTING.async = true;
Expand Down Expand Up @@ -1278,7 +1278,7 @@ function HttpDoc() {
SETTING.indent = " ";
SETTING.maxDepth = 5;
SETTING.showDescription = true;
SETTING.defaultFormat = "normal";
SETTING.defaultFormat = "grid";
SETTING.username = "";
SETTING.password = "";
SETTING.async = true;
Expand Down Expand Up @@ -1318,7 +1318,7 @@ function HttpDoc() {
SETTING.indent = indent && indent !== "" ? indent : " ";
SETTING.maxDepth = maxDepth && maxDepth !== "" && /\d+/.test(maxDepth) ? parseInt(maxDepth) : 5;
SETTING.showDescription = showDescription && showDescription !== "" && /(true|false)/g.test(showDescription) ? eval(showDescription) : true;
SETTING.defaultFormat = defaultFormat && defaultFormat !== "" && /(normal|table|grid)/g.test(defaultFormat) ? defaultFormat : "normal";
SETTING.defaultFormat = defaultFormat && defaultFormat !== "" && /(normal|table|grid)/g.test(defaultFormat) ? defaultFormat : "grid";
}
// XMLHttpRequest 设置
{
Expand Down
8 changes: 4 additions & 4 deletions httpdoc-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>httpdoc</artifactId>
<groupId>io.httpdoc</groupId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -34,17 +34,17 @@
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-core</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-ui</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
<dependency>
<groupId>io.httpdoc</groupId>
<artifactId>httpdoc-jackson</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.httpdoc</groupId>
<artifactId>httpdoc</artifactId>
<version>v1.7.7</version>
<version>v1.7.8</version>
<modules>
<module>httpdoc-core</module>
<module>httpdoc-web</module>
Expand Down

0 comments on commit 0936f88

Please sign in to comment.