diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/github.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/github.png deleted file mode 100644 index 3a8257ff..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/github.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/github128.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/github128.png deleted file mode 100644 index e4b9f687..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/github128.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/qq.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/qq.png deleted file mode 100644 index 184fb156..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/qq.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/qq128.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/qq128.png deleted file mode 100644 index e9bd4ead..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/qq128.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/weibo.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/weibo.png deleted file mode 100644 index 63d9f719..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/weibo.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/weibo128.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/weibo128.png deleted file mode 100644 index ff21ced9..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/assets/weibo128.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/AccessToken.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/AccessToken.class deleted file mode 100644 index 63437f67..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/AccessToken.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/exception/ThirdlyException.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/exception/ThirdlyException.class deleted file mode 100644 index b9492eed..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/exception/ThirdlyException.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/Email.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/Email.class deleted file mode 100644 index cf86ab6e..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/Email.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/Github$1.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/Github$1.class deleted file mode 100644 index c95a24fa..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/Github$1.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/Github.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/Github.class deleted file mode 100644 index 982f695d..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/Github.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/GithubException.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/GithubException.class deleted file mode 100644 index 257f01a5..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/GithubException.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/GithubLoginPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/GithubLoginPlugin.class deleted file mode 100644 index b6f46f48..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/GithubLoginPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/User.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/User.class deleted file mode 100644 index 68876b3a..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/github/User.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/AccessToken.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/AccessToken.class deleted file mode 100644 index a2ac947a..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/AccessToken.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/QQ.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/QQ.class deleted file mode 100644 index 4ed9d577..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/QQ.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/QQException.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/QQException.class deleted file mode 100644 index 142a7f18..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/QQException.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/QQLoginPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/QQLoginPlugin.class deleted file mode 100644 index 81e2858b..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/QQLoginPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/UserInfo.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/UserInfo.class deleted file mode 100644 index 4d92ef2e..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/qq/UserInfo.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/AccessToken.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/AccessToken.class deleted file mode 100644 index d44f2749..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/AccessToken.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/User.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/User.class deleted file mode 100644 index e39a5781..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/User.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/Weibo.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/Weibo.class deleted file mode 100644 index d6bd248d..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/Weibo.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/WeiboException.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/WeiboException.class deleted file mode 100644 index e2419b7e..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/WeiboException.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/WeiboLoginPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/WeiboLoginPlugin.class deleted file mode 100644 index e3722abc..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/classes/cn/xiaoyaoji/plugin/login/weibo/WeiboLoginPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/hamcrest-core-1.3.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/hamcrest-core-1.3.jar deleted file mode 100644 index 9d5fe16e..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/hamcrest-core-1.3.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/junit-4.12.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/junit-4.12.jar deleted file mode 100644 index 3a7fc266..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/junit-4.12.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/log4j-1.2.17.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/log4j-1.2.17.jar deleted file mode 100644 index 1d425cf7..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/log4j-1.2.17.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/slf4j-api-1.7.13.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/slf4j-api-1.7.13.jar deleted file mode 100644 index f07884ee..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/slf4j-api-1.7.13.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/slf4j-log4j12-1.7.13.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/slf4j-log4j12-1.7.13.jar deleted file mode 100644 index a8dd5c5a..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/libs/slf4j-log4j12-1.7.13.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/plugin.json b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/plugin.json deleted file mode 100644 index 9538b8f0..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/plugin.json +++ /dev/null @@ -1,68 +0,0 @@ -[ - { - "id": "cn.xiaoyaoji.login.qq", - "name": "QQ", - "clazz": "cn.xiaoyaoji.plugin.login.qq.QQLoginPlugin", - "description": "QQ登录", - "author": "zhoujingjie", - "createTime": "2017/07/24", - "version": "2.1.3", - "event": "login", - "icon": { - "icon32x32": "/assets/qq.png", - "icon128x128": "/assets/qq128.png" - }, - "config":{ - "clientId":"", - "secret":"", - "redirectUri":"http://www.xiaoyaoji.cn/login/callback/cn.xiaoyaoji.login.qq/login" - }, - "dependency":{ - "min":"2.1.3" - } - }, - { - "id": "cn.xiaoyaoji.login.weibo", - "name": "微博", - "clazz": "cn.xiaoyaoji.plugin.login.weibo.WeiboLoginPlugin", - "description": "微博登录", - "author": "zhoujingjie", - "createTime": "2017/07/24", - "version": "2.1.3", - "event": "login", - "icon": { - "icon32x32": "/assets/weibo.png", - "icon128x128": "/assets/weibo128.png" - }, - "config":{ - "clientId":"", - "secret":"", - "redirectUri":"http://www.xiaoyaoji.cn/login/callback/cn.xiaoyaoji.login.weibo/login" - }, - "dependency":{ - "min":"2.1.3" - } - }, - { - "id": "cn.xiaoyaoji.login.github", - "name": "Github", - "clazz": "cn.xiaoyaoji.plugin.login.github.GithubLoginPlugin", - "description": "Github登录", - "author": "zhoujingjie", - "createTime": "2017/07/24", - "version": "2.1.3", - "event": "login", - "icon": { - "icon32x32": "/assets/github.png", - "icon128x128": "/assets/github128.png" - }, - "config":{ - "clientId":"", - "secret":"", - "redirectUri":"http://www.xiaoyaoji.cn/login/callback/cn.xiaoyaoji.login.github/login" - }, - "dependency":{ - "min":"2.1.3" - } - } -] \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/web/third-party.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/web/third-party.jsp deleted file mode 100644 index 96160eb7..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.login/web/third-party.jsp +++ /dev/null @@ -1,23 +0,0 @@ -<%-- - User: zhoujingjie - Date: 16/9/2 - Time: 19:54 ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - - - - - - - \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/assets/pdf.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/assets/pdf.png deleted file mode 100644 index 16a98940..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/assets/pdf.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/FZLTCXHJW.TTF b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/FZLTCXHJW.TTF deleted file mode 100644 index 3efeb440..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/FZLTCXHJW.TTF and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/NotoSansCJKsc-Regular.otf b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/NotoSansCJKsc-Regular.otf deleted file mode 100644 index dc74de64..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/NotoSansCJKsc-Regular.otf and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/doc/HttpDoc.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/doc/HttpDoc.class deleted file mode 100644 index b56aaae0..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/doc/HttpDoc.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/doc/HttpDocEntity.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/doc/HttpDocEntity.class deleted file mode 100644 index 66e1c676..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/doc/HttpDocEntity.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/doc/WebsocketDoc.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/doc/WebsocketDoc.class deleted file mode 100644 index 8f6e837b..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/doc/WebsocketDoc.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/AsianFontProvider.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/AsianFontProvider.class deleted file mode 100644 index 3858f09c..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/AsianFontProvider.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/BaseInfo.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/BaseInfo.class deleted file mode 100644 index 6c726c44..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/BaseInfo.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/HtmlBean.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/HtmlBean.class deleted file mode 100644 index 46cdc136..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/HtmlBean.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/NormalContent.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/NormalContent.class deleted file mode 100644 index b59ca59c..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/NormalContent.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/NormalSubTitle.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/NormalSubTitle.class deleted file mode 100644 index 662dbca2..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/NormalSubTitle.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/NormalTitle.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/NormalTitle.class deleted file mode 100644 index 72e23aee..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/NormalTitle.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/RootTitle.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/RootTitle.class deleted file mode 100644 index 9f89fcb1..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/docformatter/paragraph2/RootTitle.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/plugin/PdfExportPlugin$1.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/plugin/PdfExportPlugin$1.class deleted file mode 100644 index c5694085..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/plugin/PdfExportPlugin$1.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/plugin/PdfExportPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/plugin/PdfExportPlugin.class deleted file mode 100644 index ce72215a..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/classes/cn/com/xiaoyaoji/plugin/PdfExportPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-5.0.3.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-5.0.3.jar deleted file mode 100644 index 573535b1..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-5.0.3.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-analysis-5.0.3.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-analysis-5.0.3.jar deleted file mode 100644 index 8b73cf09..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-analysis-5.0.3.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-tree-5.0.3.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-tree-5.0.3.jar deleted file mode 100644 index e7eae535..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-tree-5.0.3.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-util-5.0.3.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-util-5.0.3.jar deleted file mode 100644 index e89f1b7b..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/asm-util-5.0.3.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/hamcrest-core-1.3.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/hamcrest-core-1.3.jar deleted file mode 100644 index 9d5fe16e..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/hamcrest-core-1.3.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/itextpdf-5.5.11.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/itextpdf-5.5.11.jar deleted file mode 100644 index 625601ea..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/itextpdf-5.5.11.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/junit-4.12.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/junit-4.12.jar deleted file mode 100644 index 3a7fc266..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/junit-4.12.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/log4j-1.2.17.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/log4j-1.2.17.jar deleted file mode 100644 index 1d425cf7..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/log4j-1.2.17.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/parboiled-core-1.1.7.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/parboiled-core-1.1.7.jar deleted file mode 100644 index ee49777a..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/parboiled-core-1.1.7.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/parboiled-java-1.1.7.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/parboiled-java-1.1.7.jar deleted file mode 100644 index e3289cd7..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/parboiled-java-1.1.7.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/pegdown-1.6.0.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/pegdown-1.6.0.jar deleted file mode 100644 index 9eb06e62..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/pegdown-1.6.0.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/slf4j-api-1.7.13.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/slf4j-api-1.7.13.jar deleted file mode 100644 index f07884ee..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/slf4j-api-1.7.13.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/slf4j-log4j12-1.7.13.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/slf4j-log4j12-1.7.13.jar deleted file mode 100644 index a8dd5c5a..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/slf4j-log4j12-1.7.13.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/xmlworker-5.5.11.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/xmlworker-5.5.11.jar deleted file mode 100644 index 28120549..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/libs/xmlworker-5.5.11.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/plugin.json b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/plugin.json deleted file mode 100644 index e160293d..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.pdf/plugin.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "id":"cn.xiaoyaoji.export.pdf", - "name": "导出PDF", - "clazz": "cn.com.xiaoyaoji.plugin.PdfExportPlugin", - "description": "导出PDF文档 ", - "author": "luofei", - "createTime": "2017/06/21", - "version": "2.1.5", - "event":"doc.export", - "icon":{ - "icon32x32":"/assets/pdf.png" - }, - "dependency":{ - "min":"2.1.4" - } - } -] \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin.zip b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin.zip index 38d68693..c45f1064 100644 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin.zip and b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin.zip differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/css/http.css b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/css/http.css deleted file mode 100644 index 5e5c90a4..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/css/http.css +++ /dev/null @@ -1,108 +0,0 @@ -.doc-content .doc-update-time{ - position: absolute; - right: 10px; - top:10px; - line-height: 50px; -} -.doc .doc-item-section-title{ - font-size: 14px; - font-weight: bold; - margin:15px 0 5px 0; -} -.doc .doc-item-section{ - line-height: 25px; -} -.doc .doc-attach{ - float: left; - width: 140px; - height: 100px; - overflow: hidden; - text-align: center; - margin-right: 10px; - background-color: #f0f0f0; - position: relative; -} -.doc .doc-attach i{ - position: absolute; - right: 0; - top: 0; - z-index: 2; - font-size: 16px; -} -.doc .doc-attach img{ - max-width: 140px; - max-height: 100px; -} -.doc .doc-attach.file{ - line-height: 30px; - text-align: center; - cursor: pointer; -} -.doc .doc-attach.file a{ - text-decoration: underline; - color: #00c4ff; -} -.doc .http-environment{ - width: 100%; -} -.doc .doc-http-attach{ - position: relative; - width: 100%; - text-align: center; - line-height: 100px; - color: #482121; - border: 1px dashed #ccc; -} -.doc .doc-http-attach input[type='file']{ - position: absolute; - left: 0; - top: 0; - width: 100%; - height: 100%; - z-index: 2; - opacity: 0; -} -.api-details-xml{ - font-family: 'Consolas'; -} -.api-result-tabs{ - background: #F3F3F3; - border: 1px solid #E5E5E5; - border-top-right-radius: 4px; - border-top-left-radius: 4px; -} -.api-result-tabs .tab{ - color: #666; - padding: 10px; -} -.api-result-tabs .tab.active{ - border-bottom: 2px solid orangered; - color: #000; -} -.api-result-tabs .tab:hover{ - color: #000; -} -.api-result-headers-list{ - line-height: 25px; - padding: 20px; -} -.api-result-box{ - position: relative; -} -.api-result-box .iconfont{ - position: absolute; - right: 10px; - top:0; -} -.api-result-box .icon-openwindow{ - right: 30px; -} -#api-result{ - background: #fff; - border: 1px solid #E5E5E5; - max-height: 600px; - overflow-y: auto; -} -#api-result pre{ - border: none; -} diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/folder.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/folder.png deleted file mode 100644 index baff52d4..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/folder.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/html5sortable/html.sortable.min.js b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/html5sortable/html.sortable.min.js deleted file mode 100644 index a31427cd..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/html5sortable/html.sortable.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.sortable=t()}(this,function(){"use strict";var e,t,n,r=[],a=[],o=function(e,t,n){return void 0===n?e&&e.h5s&&e.h5s.data&&e.h5s.data[t]:(e.h5s=e.h5s||{},e.h5s.data=e.h5s.data||{},e.h5s.data[t]=n,void 0)},i=function(e){e.h5s&&delete e.h5s.data};switch(!0){case"matches"in window.Element.prototype:n="matches";break;case"mozMatchesSelector"in window.Element.prototype:n="mozMatchesSelector";break;case"msMatchesSelector"in window.Element.prototype:n="msMatchesSelector";break;case"webkitMatchesSelector"in window.Element.prototype:n="webkitMatchesSelector"}var s=function(e,t){if(!t)return Array.prototype.slice.call(e);for(var r=[],a=0;at){var c=o-t,f=p(this).top;if(ld&&a.pageY>f+o-c)return}void 0===e.oldDisplay&&(e.oldDisplay=e.style.display),e.style.display="none",l 0) { - var name = value[0].constructor.name; - if (name === 'Array') { - type = 'array[array]'; - } else if (name === 'Object') { - type = 'array[object]'; - } else if (name === 'String') { - type = 'array[string]' - } else if (name === 'Number') { - type = 'array[number]' - } else if (name === 'Boolean') { - type = 'array[boolean]' - } - } - return type; - } - - function parseImportData(data, temp) { - if (data.constructor.name === 'Array') { - var fullObj = {}; - data.forEach(function (d) { - if (d.constructor.name === 'Object') { - for (var key in d) { - fullObj[key] = d[key]; - } - } else if (d.constructor.name === 'Array') { - parseImportData(d, temp); - } - }); - parseImportData(fullObj, temp); - } else if (data.constructor.name === 'Object') { - for (var key in data) { - var v = data[key]; - var t = {children: []}; - t.name = key; - if (v !== undefined && v!== null) { - if (v.constructor.name === 'Object') { - t.type = 'object'; - parseImportData(v, t.children); - } else if (v.constructor.name === 'Array') { - t.type = getArrayValueType(v); - if (t.type === 'array[object]') { - parseImportData(v, t.children); - } else if (t.type === 'array[array]') { - parseImportData(v[0], t.children); - } - } else if (v.constructor.name === 'String') { - t.type = 'string' - } else if (v.constructor.name === 'Number') { - t.type = 'number' - } else if (v.constructor.name === 'Boolean') { - t.type = 'boolean' - } - } else { - t.type = 'string'; - } - t.require = 'true'; - temp.push(t); - } - } - } - - function checkId(arr){ - if(arr && arr.length>0){ - arr.forEach(function(item){ - if(!item.id){ - item.id = utils.generateUID(); - } - if(item.children && item.children.length>0){ - checkId(item.children); - } - }); - } - } - - return { - _initsort_:_initsort_, - parseImportData:parseImportData, - checkId:checkId, - headers:["User-Agent", "Accept", "Accept-Charset", "Accept-Encoding", "Accept-Language", "Accept-Datetime", "Authorization", "Cache-Control", "Connection", "Cookie", "Content-Length", "Content-MD5", "Content-Type"], - requests: ["name", "id", "password", "email", "createtime", "datetime", "createTime", "dateTime", "user", "code", "status", "type", "msg", "message", "time", "image", "file", "token", "accesstoken", "access_token", "province", "city", "area", "description", "remark", "logo"], - responses: ["name", "id", "password", "email", "createtime", "datetime", "createTime", "dateTime", "user", "code", "status", "type", "msg", "message", "error", "errorMsg", "test", "fileAccess", "image", "require", "token", "accesstoken", "accessToken", "access_token", "province", "city", "area", "remark", "description", "logo"] - }; - - - - }); -})(); \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/js/table.js b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/js/table.js deleted file mode 100644 index e0207b73..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/js/table.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * User: zhoujingjie - * Date: 17/5/30 - * Time: 16:20 - */ - -(function(){ - define(['utils'],function(utils){ - return { - //template:document.getElementById('response-headers-template').innerHTML, - //props:['responseHeaders','editing','name'], - mounted:function(){ - this.$on('sortUpdate',function(o){ - function findParent(arr){ - for(var i=0;i0){ - return findParent(arr[i].children); - } - } - } - var parent = findParent(this[this.name]); - if(parent){ - parent.move(o.oldIndex,o.index); - } - }); - }, - data:function(){ - return {parent:null} - }, - methods: { - removeRow: function (item, data) { - var index = data.indexOf(item); - data.splice(index,1) - }, - dragstart:function(parent){ - this.parent=parent; - console.log(this) - }, - insertRow:function(item){ - if(!this.name || this.name.indexOf('Args')){ - item.children.push({id:utils.generateUID(),require: 'true',type:'string', children: []}); - }else{ - item.children.push({id:utils.generateUID(),require: 'true', children: []}); - } - _initsort_(this.$root); - }, - apiArgsColumnFold:function(e){ - var $dom = $(e.target); - var $next =$(e.target).parent().parent().parent().next(); - if($dom.hasClass('open')){ - $dom.removeClass('open'); - $next.slideUp(); - }else{ - $dom.addClass('open'); - $next.slideDown(); - } - } - } - } - }); -})(); \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/json.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/json.png deleted file mode 100644 index e0155bbb..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/json.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/markdown.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/markdown.png deleted file mode 100644 index 2014d9b9..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/markdown.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/richtext.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/richtext.png deleted file mode 100644 index 6cea12b0..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/richtext.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/thirdparty.png b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/thirdparty.png deleted file mode 100644 index a77387fe..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/assets/thirdparty.png and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/FolderDocPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/FolderDocPlugin.class deleted file mode 100644 index de9687e6..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/FolderDocPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/HttpDocPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/HttpDocPlugin.class deleted file mode 100644 index cfe3527a..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/HttpDocPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/MarkdownDocPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/MarkdownDocPlugin.class deleted file mode 100644 index 464009d9..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/MarkdownDocPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/RichtextDocPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/RichtextDocPlugin.class deleted file mode 100644 index bba92c46..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/RichtextDocPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/ThirdpartyDocPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/ThirdpartyDocPlugin.class deleted file mode 100644 index 9c8ef9dd..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/ThirdpartyDocPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/WebsocketDocPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/WebsocketDocPlugin.class deleted file mode 100644 index fc6d6ab6..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/doc/WebsocketDocPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/export/JsonExportPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/export/JsonExportPlugin.class deleted file mode 100644 index db7d43ad..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/export/JsonExportPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/imports/JsonImportPlugin.class b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/imports/JsonImportPlugin.class deleted file mode 100644 index 6da9acdc..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/classes/cn/xiaoyaoji/plugin/imports/JsonImportPlugin.class and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/hamcrest-core-1.3.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/hamcrest-core-1.3.jar deleted file mode 100644 index 9d5fe16e..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/hamcrest-core-1.3.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/junit-4.12.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/junit-4.12.jar deleted file mode 100644 index 3a7fc266..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/junit-4.12.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/log4j-1.2.17.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/log4j-1.2.17.jar deleted file mode 100644 index 1d425cf7..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/log4j-1.2.17.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/slf4j-api-1.7.13.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/slf4j-api-1.7.13.jar deleted file mode 100644 index f07884ee..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/slf4j-api-1.7.13.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/slf4j-log4j12-1.7.13.jar b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/slf4j-log4j12-1.7.13.jar deleted file mode 100644 index a8dd5c5a..00000000 Binary files a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/libs/slf4j-log4j12-1.7.13.jar and /dev/null differ diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/plugin.json b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/plugin.json deleted file mode 100644 index a434fd60..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/plugin.json +++ /dev/null @@ -1,127 +0,0 @@ -[ - { - "id":"sys.http", - "name": "http文档", - "clazz": "cn.xiaoyaoji.plugin.doc.HttpDocPlugin", - "description": "http 文档", - "author": "zhoujingjie", - "createTime": "2017/06/21", - "version": "2.1.4", - "event":"doc.ev", - "icon":{ - "icon32x32":"/assets/http.png" - }, - "dependency":{ - "min":"2.1.4" - } - }, - { - "id":"sys.websocket", - "name": "websocket文档", - "clazz": "cn.xiaoyaoji.plugin.doc.WebsocketDocPlugin", - "description": "websocket 文档", - "author": "zhoujingjie", - "createTime": "2017/06/21", - "version": "2.1.4", - "event":"doc.ev", - "icon":{ - "icon32x32":"/assets/websocket.png" - }, - "dependency":{ - "min":"2.1.4" - } - }, - { - "id": "sys.doc.richtext", - "name": "富文本", - "clazz": "cn.xiaoyaoji.plugin.doc.RichtextDocPlugin", - "description": "富文本文档", - "author": "zhoujingjie", - "createTime": "2017/06/21", - "version": "2.1.4", - "event":"doc.ev", - "icon":{ - "icon32x32":"/assets/richtext.png" - }, - "dependency":{ - "min":"2.1.4" - } - }, - { - "id": "sys.doc.md", - "name": "markdown", - "clazz": "cn.xiaoyaoji.plugin.doc.MarkdownDocPlugin", - "description": "markdown文档", - "author": "zhoujingjie", - "createTime": "2017/06/21", - "version": "2.1.4", - "event":"doc.ev", - "icon":{ - "icon32x32":"/assets/markdown.png" - }, - "dependency":{ - "min":"2.1.4" - } - }, - { - "id": "sys.folder", - "name": "文件夹", - "clazz": "cn.xiaoyaoji.plugin.doc.FolderDocPlugin", - "description": "文件夹", - "author": "zhoujingjie", - "createTime": "2017/06/21", - "version": "2.1.4", - "event":"doc.ev", - "icon":{ - "icon32x32":"/assets/folder.png" - }, - "dependency":{ - "min":"2.1.3" - } - }, - { - "id":"sys.thirdparty", - "name": "第三方链接", - "clazz": "cn.xiaoyaoji.plugin.doc.ThirdpartyDocPlugin", - "description": "第三方链接", - "author": "zhoujingjie", - "createTime": "2017/06/21", - "version": "2.1.4", - "event":"doc.ev", - "icon":{ - "icon32x32":"/assets/thirdparty.png" - }, - "dependency":{ - "min":"2.1.3" - } - }, - { - "id":"cn.xiaoyaoji.export.mjson", - "name": "导出mJSON", - "clazz": "cn.xiaoyaoji.plugin.export.JsonExportPlugin", - "description": "导出mJSON", - "author": "zhoujingjie", - "createTime": "2017/06/21", - "version": "2.1.4", - "event":"doc.export", - "icon":{ - "icon32x32":"/assets/json.png" - }, - "dependency":{ - "min":"2.1.4" - } - }, - { - "id":"cn.xiaoyaoji.import.mjson", - "name": "导入mJSON", - "clazz": "cn.xiaoyaoji.plugin.imports.JsonImportPlugin", - "description": "导入mJSON", - "author": "zhoujingjie", - "createTime": "2017/06/21", - "version": "2.1.4", - "event":"doc.import", - "icon":{ - "icon32x32":"/assets/json.png" - } - } -] \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/readme.md b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/readme.md deleted file mode 100644 index a5953321..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/readme.md +++ /dev/null @@ -1 +0,0 @@ -官方默认插件 \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/folder/edit.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/folder/edit.jsp deleted file mode 100644 index ba4f03c1..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/folder/edit.jsp +++ /dev/null @@ -1,21 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ page import="cn.com.xiaoyaoji.service.DocService" %> -<%@ page import="cn.com.xiaoyaoji.data.bean.Doc" %> -<%@ page import="java.util.List" %> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<% - Doc doc = (Doc) request.getAttribute("doc"); - List docs = DocService.instance().getDocsByParentId(doc.getProjectId(),doc.getId()); - request.setAttribute("docs",docs); -%> -
-
- - - -
-
diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/folder/view.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/folder/view.jsp deleted file mode 100644 index 62d3204c..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/folder/view.jsp +++ /dev/null @@ -1,25 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ page import="cn.com.xiaoyaoji.service.DocService" %> -<%@ page import="cn.com.xiaoyaoji.data.bean.Doc" %> -<%@ page import="java.util.List" %><%-- - User: zhoujingjie - Date: 17/5/7 - Time: 21:40 ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<% - Doc doc = (Doc) request.getAttribute("doc"); - List docs = DocService.instance().getDocsByParentId(doc.getProjectId(),doc.getId()); - request.setAttribute("docs",docs); -%> -
-
- - - -
-
\ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/http/edit.js b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/http/edit.js deleted file mode 100644 index 9abc6199..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/http/edit.js +++ /dev/null @@ -1,228 +0,0 @@ - - -(function(){ - var thirds = [ - 'vue', - 'utils', - ctx+'/proxy/'+pluginId+'/assets/js/doc.commons.js' - ]; - requirejs(thirds,function(Vue,utils,commons){ - - var docApp = new Vue({ - el:'#doc', - data:{ - editing:true, - doc:doc, - responseArgs:[], - import:null, - importValue:null, - importModal:false, - currentEnv:null, - urlArgs:[], - flag:{ - resp:'body', - tab:'body', - headers:commons.headers, - requests: commons.requests, - responses: commons.responses - }, - content:null, - fileAccess:null, - attachs:null, - global:null - }, - created:function(){ - if(!this.doc.content){ - this.doc.content={}; - } - - var content = utils.toJSON(this.doc.content); - - if(!content.requestMethod){ - content.requestMethod = 'GET'; - } - if(!content.dataType){ - content.dataType = 'X-WWW-FORM-URLENCODED'; - } - if(!content.contentType){ - content.contentType = 'JSON'; - } - if(!content.requestArgs){ - content.requestArgs=[]; - } - if(!content.requestHeaders){ - content.requestHeaders=[]; - } - if(!content.responseHeaders){ - content.responseHeaders=[]; - } - if(!content.responseArgs){ - content.responseArgs=[]; - } - if(!content.url){ - content.url=''; - } - - commons.checkId(content.requestArgs); - commons.checkId(content.requestHeaders); - commons.checkId(content.responseHeaders); - commons.checkId(content.responseArgs); - - this.content = content; - this.loadAttach(); - - var g= projectGlobal; - if(!g.status){ - g.status=[]; - }else{ - g.status = utils.toJSON(g.status); - } - if(!g.environment){ - g.environment = []; - }else{ - g.environment = utils.toJSON(g.environment); - } - - if(!content.status){ - var status = ''; - if(g.status[0]){ - status = g.status[0].name; - } - content.status = status; - } - this.global = g; - - _initsort_(this); - - this.currentEnv = g.environment[0] || {}; - var urlArgs=[]; - var match = this.content.url.match(/(\{[a-zA-Z0-9_]+\})/g); - if (match !== null && match.length > 0) { - urlArgs = match; - urlArgs = urlArgs.map(function (d) { - return {name: d.substring(1, d.length - 1), value: null}; - }); - } - this.urlArgs= urlArgs; - }, - computed:{ - requestURL: function () { - var temp = this.content.url; - if (!temp) { - temp = '' - }else{ - if (this.currentEnv && this.currentEnv.vars) { - this.currentEnv.vars.forEach(function (item) { - var reg = new RegExp('\\$' + item.name + '\\$', 'g'); - temp = temp.replace(reg, item.value); - }); - if (this.urlArgs && this.urlArgs.length > 0) { - this.urlArgs.forEach(function (item) { - var name = '{' + item.name + '}'; - var reg = new RegExp(name, 'g'); - temp = temp.replace(reg, item.value || name) - }); - } - } - } - $('#requestURL').val(temp); - return temp; - } - }, - methods:{ - newRow:function(type){ - if(type ==='requestHeader'){ - this.content.requestHeaders.push({require:'true',children:[]}); - }else if(type ==='requestArg'){ - this.content.requestArgs.push({require:'true',children:[],type:'string'}); - }else if(type ==='responseHeader'){ - this.content.responseHeaders.push({require:'true',children:[]}); - }else if(type ==='responseArg'){ - this.content.responseArgs.push({require:'true',children:[],type:'string'}); - } - commons._initsort_(this); - }, - importJSON:function(type){ - this.importModal = true; - this.import = type; - }, - importOk:function(){ - if (!this.importValue) { - toastr.error('导入内容为空'); - return false; - } - - var data = null; - try { - data = utils.toJSON(this.importValue) - } catch (e) { - alert('JSON格式有误'); - return; - } - var temp = []; - commons.parseImportData(data, temp); - var self = this; - temp.forEach(function (d) { - if(self.import ==='requestHeader'){ - self.content.requestHeaders.push(d); - }else if(self.import ==='requestArg'){ - self.content.requestArgs.push(d); - }else if(self.import ==='responseHeader'){ - self.content.responseHeaders.push(d); - }else if(self.import ==='responseArg'){ - self.content.responseArgs.push(d); - } - }); - this.importModal = false; - commons._initsort_(this); - }, - loadAttach:function(){ - var self = this; - utils.get('/attach/'+this.doc.id,{projectId:_projectId_},function (rs) { - self.attachs = rs.data.attachs || []; - self.fileAccess = rs.data.fileAccess || ''; - }); - }, - apiVarsClick:function(name){ - this.content.url += '$'+name+'$'; - }, - deleteFile:function(item){ - if(!confirm('是否确认删除')){ - return; - } - var self=this; - utils.delete('/attach/'+item.id+"?projectId="+_projectId_,function(rs){ - self.attachs.splice(self.attachs.indexOf(item)); - }) - }, - fileUpload:function(e){ - var files = e.target.files; - if(files.length === 0) - return false; - var fd = new FormData(); - fd.append('relateId',this.doc.id); - for(var i=0;i - -
-
- - - - - - - -
-
- -
-
请求方法
-
- -
-
请求数据类型
-
- -
-
响应类型
-
- -
- -
状态
-
- -
- -
- -
-
接口名称
-
- -
-
-
-
请求地址
-
- -
-

实际请求地址:{{requestURL}}

-

- 变量:{{item.name}} -

-
-
-
-
-
接口描述
-
-
-
-
-
- -
- -
- -
- -
- -
- -
- -
- -
- -
- - -
- - -
-
-
    -
  • 操作
  • -
  • 参数名称
  • -
  • 是否必须
  • -
  • 默认值
  • -
  • 描述
  • -
-
-
- -
-
- - -
-
- -
-
-
    -
  • 操作
  • -
  • 参数名称
  • -
  • 是否必须
  • -
  • 类型
  • -
  • 默认值
  • -
  • 描述
  • -
-
-
- -
-
- - -
-
- - - - - - -
-
-
    -
  • 操作
  • -
  • 参数名称
  • -
  • 是否必须
  • -
  • 描述
  • -
-
-
- -
-
- - -
-
- -
-
-
    -
  • 操作
  • -
  • 参数名称
  • -
  • 是否必须
  • -
  • 类型
  • -
  • 描述
  • -
-
-
- -
-
- - -
-
- - - -
- -

点击、拖拽可上传文件。单文件不能超过1M

-
-
-
- -
-
-
-
-
- -<%-- -
-
    -
  • 增加请求参数
  • -
  • 增加请求参数
  • -
  • 增加请求参数
  • -
-
--%> - -
- - - - - - diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/http/view.js b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/http/view.js deleted file mode 100644 index dda9d50b..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/http/view.js +++ /dev/null @@ -1,600 +0,0 @@ -requirejs(['utils', 'vue', - x.cdn + '/assets/jsonformat/jsonFormater.js', - x.cdn + '/assets/clipboard/clipboard.min.js', - ctx+'/proxy/'+pluginId + '/assets/js/chrome-extension.js', - x.cdn + '/assets/ace/src-min/ace.js', - x.cdn + '/assets/xml2json/2json.js', - x.cdn + '/assets/xml2json/2xml.js' -], function (utils, Vue, xxx, Clipboard, Plugin) { - var xml = new XML.ObjTree(); - //请求头 - function getRequestHeaders() { - var headers = {}; - var arr = $("#header-form").serializeArray(); - for (var i = 0; i < arr.length; i++) { - var o = arr[i]; - headers[o.name] = o.value; - } - return headers; - } - - Vue.filter('text', function (value) { - if (value) { - return value.replace(/\/g, '>') - } - return ''; - }); - - //请求参数 - function getRequestArgs() { - var args = {}; - $("#args-form input").each(function () { - if (!(this.hasAttribute('data-ignore'))) { - var type = this.type; - var name = this.name; - if (args[name]) { - var temp = args[name]; - if (temp.constructor.name !== 'Array') { - args[name] = []; - args[name].push(temp); - } - if (type === 'file') { - args[name].push(this.files[0] || null) - } else { - args[name].push(this.value); - } - } else { - if (type === 'file') { - args[name] = this.files[0] || null; - } else { - args[name] = this.value; - } - } - } - }); - return args; - } - - - //结果处理 - function Result() { - var jf = new JsonFormater({ - dom: '#api-result', - imgCollapsed: x.cdn+'/assets/jsonformat/images/Collapsed.gif', - imgExpanded: x.cdn+'/assets/jsonformat/images/Expanded.gif' - }); - var fn = { - JSON: function (data) { - try { - return jf.doFormat(data); - } catch (e) { - return utils.escape(data); - } - }, - JSONP: function (data) { - return jf.doFormat(data); - }, - TEXT: function (data) { - return data; - }, - XML: function (data) { - if (!window.XMLDocument) { - toastr.error('该浏览器不支持XMLDocument'); - return; - } - if (data instanceof XMLDocument) { - data = new XMLSerializer().serializeToString(data) - } - return utils.escape(data); - }, - HTML: function (data) { - return utils.escape(data); - } - }; - - return { - resolve: function (data, type) { - return fn[type](data); - } - } - } - - //发送请求 - function apiSubmit(runType) { - var self = this; - //var url = this.requestURL; - var url = $('#requestURL').val(); - // 请求参数 - var args = getRequestArgs(); - for (var name in args) { - var key = self.doc.id + ':args:' + name; - var value = args[name]; - if (typeof value === 'string') { - localStorage.setItem(key, value); - } - } - //如果是图片或二进制 - if (this.content.contentType === "IMAGE" || this.content.contentType === 'BINARY') { - window.open(url + '?' + utils.args2Params(args)); - params = undefined; - return true; - } - //请求头 - var headers = getRequestHeaders(); - if (runType === 'proxy') { - headers['url'] = url; - url = location.path + '/http/proxy'; - } - for (var name in headers) { - var key = self.doc.id + ':headers:' + name; - var value = headers[name]; - if (typeof value === 'string') { - localStorage.setItem(key, value); - } - } - if(!(url.indexOf('http://') || url.indexOf('https://'))){ - url = 'http://'+url; - } - - var params = { - url: url, - headers: headers, - type: this.content.requestMethod, - data: args, - beforeSend: function (xhr) { - xhr.beginTime = Date.now(); - }, - dataType: this.content.contentType, - crossDomain: true, - xhrFields: { - withCredentials: true - }, - jsonpCallback: this.content.contentType === 'JSONP' ? 'callback' : undefined, - complete: function (xhr, status) { - self.apiLoading = false; - var useTime = Date.now() - xhr.beginTime, body = ''; - if (status === "success" || status === 'OK') { - var resp = xhr.responseText; - body = new Result().resolve(resp, self.content.contentType); - } else { - console.error(xhr.statusText); - } - - self.result.resultHeaders = xhr.getAllResponseHeaders() || ''; - self.result.resultStatusCode = xhr.status || 0; - self.result.resultRunTime = useTime; - self.result.content = body; - - - if (status !== 'success' && status !== 'OK') { - var msg = (xhr.responseText || xhr.statusText); - if (status === 'error') { - msg = ('status:' + xhr.status + ' readyState:' + xhr.readyState + ' errorText:' + msg); - } - var error = utils.escape(msg); - if (status === 'parsererror') { - self.result.content = new Result().resolve(error, self.content.contentType); - return true; - } - if (!xhr.status || xhr.status === 0) { - if (xhr.statusText === 'error') { - error = '请求地址错误,服务器无响应或JavaScript跨域错误,详情错误请查看控制台'; - } - } - self.result.content = '
' + error + '
'; - } - - - } - }; - - switch (this.content.dataType) { - case "FORM-DATA": - params.contentType = false; - params.processData = false; - var data = params.data; - //插件时用 - params.tempdata=data; - var fd = new FormData(); - for (var key in data) { - var value = data[key]; - if (value && value.constructor.name === 'Array') { - value.forEach(function (item) { - fd.append(key, item); - }); - } else { - fd.append(key, value); - } - } - params.data = fd; - break; - case "RAW": - params.data = $('#rawBody').val() || ''; - params.processData = false; - params.contentType = 'text/plain'; - break; - case "XML": - params.data = window.aceeditor.getValue(); - params.processData = false; - params.contentType = 'text/xml'; - break; - case "JSON": - params.data = window.aceeditor.getValue(); - params.processData = false; - params.contentType = 'application/json'; - break; - case "BINARY": - params.processData = false; - params.contentType = 'application/octet-stream'; - if (runType == 'plugin') { - params.data = '#binaryBody'; - } else { - var fileE = $('#binaryBody')[0]; - if (fileE) { - var reader = new FileReader(); - reader.onload = function () { - var arrayBuffer = this.result, - array = new Uint8Array(arrayBuffer) - //binaryString = String.fromCharCode.apply(null, array); - params.data = array; - $.ajax(params); - }; - reader.readAsArrayBuffer(fileE.files[0]); - return true; - } - } - break; - default: - var data = params.data; - for (var key in data) { - var value = data[key]; - if (value && value.constructor.name === 'Array') { - var temp = ''; - value.forEach(function (item) { - temp += 'item,'; - }); - temp = temp.substr(0, temp.length - 1); - data[key] = temp; - } - } - params.data = data; - break; - } - this.apiLoading = true; - // chrome 插件中jsonp 会出问题 - - if (runType === 'plugin' && this.content.contentType !== 'JSONP') { - Plugin.complete = params['complete']; - Plugin.success = params['success']; - Plugin.error = params['error']; - if(params.tempdata){ - params.data=params.tempdata; - delete params['tempdata']; - } - delete params['complete']; - delete params['success']; - delete params['error']; - delete params['beforeSend']; - Plugin.run(); - var ce = new CustomEvent('request', { - detail: params - }); - document.dispatchEvent(ce); - } else { - $.ajax(params); - } - } - - //初始化参数 - function initFormArgs() { - //ignoreGlobalHttp 关闭全局请求参数 - var args = this.content.ignoreGHttpReqArgs ? this.content.requestArgs : this.global.http.requestArgs.mergeArray(this.content.requestArgs); - for (var key in args) { - var temp = this.doc.id + ':args:' + args[key].name; - var value = localStorage.getItem(temp); - if (value) { - args[key].tempValue = value; - } else { - if (args[key].defaultValue) { - args[key].tempValue = args[key].defaultValue; - } - } - args[key].id = utils.generateUID(); - } - this.formArgs = args; - } - - //初始化请求头 - function initFormHeaders() { - var headers = this.content.ignoreGHttpReqHeaders?this.content.requestHeaders:this.global.http.requestHeaders.mergeArray(this.content.requestHeaders); - for (var key in headers) { - var temp = this.doc.id + ':headers:' + headers[key].name; - var value = localStorage.getItem(temp); - if (value) { - headers[key].tempValue = value; - } else { - if (headers[key].defaultValue) { - headers[key].tempValue = headers[key].defaultValue; - } - } - headers[key].id = utils.generateUID(); - } - this.formHeaders = headers; - } - - function initUrlArgs() { - var urlArgs = []; - var match = this.content.url.match(/(\{[a-zA-Z0-9_]+\})/g); - if (match !== null && match.length > 0) { - urlArgs = match; - urlArgs = urlArgs.map(function (d) { - return {name: d.substring(1, d.length - 1), tempValue: null, id: utils.generateUID()}; - }); - } - this.urlArgs = urlArgs; - } - - new Vue({ - el: '#docApp', - data: { - hasXyjPlugin: false, - editing: false, - doc: doc, - fileAccess: null, - attachs: null, - content: {}, - global: null, - apiLoading: false, - resultActive: 'content', - currentEnv: null, - formHeaders: [], - formArgs: [], - urlArgs: [], - result: { - content: '', - resultHeaders: '', - resultRunTime: '', - resultStatusCode: '' - }, - algorithms: [ - { - name: 'BASE64', fn: function (value) { - return window.btoa(value); - } - } - ] - }, - mounted: function () { - initAceEditor(this.content.dataType, this); - var self = this; - window.setTimeout(function () { - var attr = $('body').attr('data-ext-version'); - if (attr && attr.localeCompare && attr.localeCompare('1.4.2') >= 0) { - self.hasXyjPlugin = true; - } - }); - }, - created: function () { - this.content = utils.toJSON(doc.content); - if (!this.content) { - this.content = {}; - } - this.loadAttach(); - var g = projectGlobal; - if (!g.environment) { - g.environment = []; - } else { - g.environment = utils.toJSON(g.environment); - } - if (!g.http) { - g.http = {}; - } else { - g.http = utils.toJSON(g.http); - } - - if (!g.http.requestHeaders) { - g.http.requestHeaders = []; - } else { - g.http.requestHeaders = utils.toJSON(g.http.requestHeaders); - } - if (!g.http.responseHeaders) { - g.http.responseHeaders = []; - } else { - g.http.responseHeaders = utils.toJSON(g.http.responseHeaders); - } - if (!g.http.requestArgs) { - g.http.requestArgs = []; - } else { - g.http.requestArgs = utils.toJSON(g.http.requestArgs); - } - if (!g.http.responseArgs) { - g.http.responseArgs = []; - } else { - g.http.responseArgs = utils.toJSON(g.http.responseArgs); - } - if (!this.content.url) { - this.content.url = ''; - } - - this.global = g; - new Clipboard('.content-copy'); - - var temp = localStorage.getItem(_projectId_+"_currentEnv"); - if(temp){ - this.currentEnv = JSON.parse(temp); - }else{ - this.currentEnv = g.environment[0] || {}; - } - - initUrlArgs.call(this); - window.content =this.content; - window.urlArgs =this.urlArgs; - - initFormHeaders.call(this); - initFormArgs.call(this); - - }, - computed: { - requestURL: { - get: function () { - console.log('requestURL'); - var urlArgs= this.urlArgs; - var temp = this.content.url; - if (!temp) { - temp = '' - } else { - if (this.currentEnv && this.currentEnv.vars) { - this.currentEnv.vars.forEach(function (item) { - var reg = new RegExp('\\$' + item.name + '\\$', 'g'); - temp = temp.replace(reg, item.value); - }); - } - if (urlArgs && urlArgs.length > 0) { - urlArgs.forEach(function (item) { - var name = '{' + item.name + '}'; - var reg = new RegExp(name, 'g'); - temp = temp.replace(reg, item.tempValue || name) - }); - } - } - /*setTimeout(function(){ - - },500);*/ - //$('#requestURL').val(temp); - - return temp; - }, - set:function(v){ - console.log(v) - } - }, - requestArgsPreview: function () { - var type = this.content.dataType; - var obj = getRequestArgsObject(this.formArgs); - if (type === 'XML') { - obj = {xml: obj}; - return formatXml(xml.writeXML(obj)); - } else if (type === 'JSON') { - if (obj) { - return JSON.stringify(obj, null, '\t'); - } - return '{}'; - } - return 'data not support'; - } - }, - methods: { - loadAttach: function () { - var self = this; - utils.get('/attach/' + this.doc.id, {projectId:_projectId_}, function (rs) { - self.attachs = rs.data.attachs || []; - self.fileAccess = rs.data.fileAccess || ''; - }); - }, - proxySubmit: function () { - apiSubmit.call(this, 'proxy'); - }, - localSubmit: function () { - apiSubmit.call(this); - }, - pluginSubmit: function () { - apiSubmit.call(this, 'plugin'); - }, - algorithmClick: function (index, fn, data) { - var temp = data[index]; - temp.tempValue = fn(temp.tempValue); - data.splice(index, 1, temp) - }, - openNewWindow: function () { - var win = window.open('', 'new'); - win.document.documentElement.innerHTML = ''; - win.document.write(utils.unescape(this.result.content)); - win.document.close(); - }, - changeEnv:function(item){ - this.currentEnv=item; - localStorage.setItem(_projectId_+"_currentEnv",JSON.stringify(item)) - } - } - }); - - - //初始化ace编辑器 - function initAceEditor(type, self) { - var mode; - if (type === 'JSON') { - mode = 'ace/mode/json'; - } else if (type === 'XML') { - mode = 'ace/mode/xml'; - } - setTimeout(function () { - try { - var aceeditor = ace.edit("ace-editor-box"); - window.aceeditor = aceeditor; - } catch (e) { - aceeditor = { - getValue: function () { - return ''; - }, - setTheme: function () { - }, - session: { - setMode: function () { - } - }, - setValue: function () { - } - }; - } - aceeditor.setTheme("ace/theme/chrome"); - aceeditor.session.setMode(mode); - aceeditor.setValue(self.requestArgsPreview); - }, 300); - } - - function getRequestArgsObject(data) { - if(!(data && data.forEach)){ - return ''; - } - var obj = {}; - data.forEach(function (d) { - var name = d.name; - switch (d.type) { - case 'string': - obj[name] = d.testValue || d.defaultValue || ''; - break; - case 'number': - obj[name] = d.testValue || d.defaultValue || 0; - break; - case 'boolean': - obj[name] = d.testValue || d.defaultValue || true; - break; - case 'object': - obj[name] = getRequestArgsObject(d.children); - break; - case 'array': - obj[name] = []; - break; - case 'array[number]': - obj[name] = [0, 1]; - break; - case 'array[boolean]': - obj[name] = [true]; - break; - case 'array[string]': - obj[name] = ['']; - break; - case 'array[object]': - obj[name] = [getRequestArgsObject(d.children)]; - break; - case 'array[array]': - obj[name] = [[]]; - break; - default: - obj[name] = ''; - break; - } - }); - return obj; - } -}); \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/http/view.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/http/view.jsp deleted file mode 100644 index 3d85750f..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/http/view.jsp +++ /dev/null @@ -1,376 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -
- -更新时间: {{doc.lastUpdateTime}} -
-

基本信息

-
-
-
接口名称: ${doc.name}
-
接口地址: {{requestURL}}
-
-
-
请求方法: {{content.requestMethod}}
-
数据类型: {{content.dataType}}
-
响应类型: {{content.contentType}}
-
接口状态: {{content.status}}
-
-
-
-

接口描述

-
-
- <%----%> -
-

附件

-
- -
-
- <%--
--%> -
-

全局请求头

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 默认值
  • -
  • 描述
  • -
- -
-
-
-

全局请求参数

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 类型
  • -
  • 默认值
  • -
  • 描述
  • -
- -
-
-
-

全局响应头

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 默认值
  • -
  • 描述
  • -
- -
-
- -
-

全局响应参数

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 数据类型
  • -
  • 描述
  • -
- -
-
- - - -
-

请求头

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 默认值
  • -
  • 描述
  • -
- -
-
- -
-

请求参数

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 类型
  • -
  • 默认值
  • -
  • 描述
  • -
- -
-
- - -
-

响应头

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 默认值
  • -
  • 描述
  • -
- -
-
-
-

响应数据

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 数据类型
  • -
  • 描述
  • -
- -
-
- - -
-

例子

-
-

-            
-
-

演示

-
-
-
-
请求地址
-
- -
-
-
- -
- -
- -
-
-
-
-
-
-
-
-

地址参数

-
-
{{item.name}}
-
- -
-
-
- -
- -
-
-
-
-
-
- -
-
-

请求头

-
-
{{item.name}}
-
- -
-
-
- -
- -
-
-
-
-
-
- - -
-
-
-
-
-
-
Body
-
-

-                                    
-
-
-
-

请求参数

-
-
{{item.name}}
-
- - - -
-
-
- -
- -
-
-
-
-
-
-
-
- -
-

请求数据

-
-
body
-
- -
-
-
-
-

请求数据

-
-
BINARY
-
- -
-
-
- -
-
-
-
-
- - -
-
- -
- <%----%> - -
-
-
-
- - -
- - - -
-

-                    
-
{{result.resultHeaders}}
-
-
- No header for you -
-
-
-
-
- <%--
-
-

由于浏览器有跨域限制,如果您的服务器不支持CORS协议,需要安装我们开发的Chrome插件“小幺鸡”

-

安装的时候请注意勾选,安装后请刷新页面。

-

- Chrome应用商店 -

-
-
-
-
-

您安装的『小幺鸡』插件版本有更新,为了避免使用出现bug,请下载升级

-

安装的时候请注意勾选,安装后请刷新页面。

-

- Chrome应用商店 - 本地下载 - 本地下载安装教程 -

-
-
--%> -
-
-
- - - - - - - \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/request-args.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/request-args.jsp deleted file mode 100644 index 82955589..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/request-args.jsp +++ /dev/null @@ -1,75 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/request-headers.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/request-headers.jsp deleted file mode 100644 index 708f5b48..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/request-headers.jsp +++ /dev/null @@ -1,54 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/response-args.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/response-args.jsp deleted file mode 100644 index 4125fbdb..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/response-args.jsp +++ /dev/null @@ -1,67 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/response-headers.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/response-headers.jsp deleted file mode 100644 index faa10416..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/includes/response-headers.jsp +++ /dev/null @@ -1,49 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/markdown/edit.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/markdown/edit.jsp deleted file mode 100644 index f0eda369..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/markdown/edit.jsp +++ /dev/null @@ -1,23 +0,0 @@ -<%-- - User: zhoujingjie - Date: 2017/8/30 - Time: 15:16 ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - - - \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/markdown/view.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/markdown/view.jsp deleted file mode 100644 index 31237089..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/markdown/view.jsp +++ /dev/null @@ -1,16 +0,0 @@ -<%-- - User: zhoujingjie - Date: 2017/8/30 - Time: 15:16 ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -
- \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/richtext/edit.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/richtext/edit.jsp deleted file mode 100644 index 98fbbde3..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/richtext/edit.jsp +++ /dev/null @@ -1,52 +0,0 @@ -<%-- - User: zhoujingjie - Date: 17/4/15 - Time: 22:43 ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -
-
${doc.content}
-
- diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/richtext/view.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/richtext/view.jsp deleted file mode 100644 index a0c475c3..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/richtext/view.jsp +++ /dev/null @@ -1,9 +0,0 @@ -<%-- - User: zhoujingjie - Date: 17/4/15 - Time: 22:43 ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -
-
${doc.content}
-
\ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/thirdparty/edit.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/thirdparty/edit.jsp deleted file mode 100644 index 4536ffbd..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/thirdparty/edit.jsp +++ /dev/null @@ -1,21 +0,0 @@ -<%-- - User: zhoujingjie - Date: 17/5/7 - Time: 21:40 ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -
- -
- \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/thirdparty/view.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/thirdparty/view.jsp deleted file mode 100644 index d1a89d69..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/thirdparty/view.jsp +++ /dev/null @@ -1,15 +0,0 @@ -<%-- - User: zhoujingjie - Date: 17/5/7 - Time: 21:40 ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -
- - -
\ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/websocket/edit.js b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/websocket/edit.js deleted file mode 100644 index 491588e5..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/websocket/edit.js +++ /dev/null @@ -1,214 +0,0 @@ -(function(){ - var thirds = [ - 'vue', - 'utils', - ctx+'/proxy/'+pluginId+'/assets/js/doc.commons.js' - ]; - requirejs(thirds,function(Vue,utils,commons){ - var docApp = new Vue({ - el:'#doc', - data:{ - editing:true, - doc:doc, - responseArgs:[], - import:null, - importValue:null, - importModal:false, - currentEnv:null, - urlArgs:[], - flag:{ - resp:'body', - tab:'body', - headers:commons.headers, - requests: commons.requests, - responses: commons.responses - }, - content:null, - fileAccess:null, - attachs:null, - global:null - }, - computed:{ - requestURL: function () { - var temp = this.content.url; - if (!temp) { - temp = '' - }else{ - if (this.currentEnv && this.currentEnv.vars) { - this.currentEnv.vars.forEach(function (item) { - var reg = new RegExp('\\$' + item.name + '\\$', 'g'); - temp = temp.replace(reg, item.value); - }); - if (this.urlArgs && this.urlArgs.length > 0) { - this.urlArgs.forEach(function (item) { - var name = '{' + item.name + '}'; - var reg = new RegExp(name, 'g'); - temp = temp.replace(reg, item.value || name) - }); - } - } - } - $('#requestURL').val(temp); - return temp; - } - }, - created:function(){ - if(!this.doc.content){ - this.doc.content={}; - } - var content = utils.toJSON(this.doc.content); - if(!content.requestArgs){ - content.requestArgs=[]; - } - if(!content.requestHeaders){ - content.requestHeaders=[]; - } - if(!content.responseHeaders){ - content.responseHeaders=[]; - } - if(!content.responseArgs){ - content.responseArgs=[]; - } - if(!content.url){ - content.url=''; - } - commons.checkId(content.requestArgs); - commons.checkId(content.requestHeaders); - commons.checkId(content.responseHeaders); - commons.checkId(content.responseArgs); - - this.content = content; - this.loadAttach(); - - var g= projectGlobal; - if(!g.status){ - g.status=[]; - }else{ - g.status = utils.toJSON(g.status); - } - if(!g.environment){ - g.environment = []; - }else{ - g.environment = utils.toJSON(g.environment); - } - if(!content.status){ - var status = ''; - if(g.status[0]){ - status = g.status[0].name; - } - content.status = status; - } - - this.global = g; - - this.currentEnv = g.environment[0] || {}; - var urlArgs=[]; - var match = this.content.url.match(/(\{[a-zA-Z0-9_]+\})/g); - if (match != null && match.length > 0) { - urlArgs = match; - urlArgs = urlArgs.map(function (d) { - return {name: d.substring(1, d.length - 1), value: null}; - }); - } - this.urlArgs= urlArgs; - - _initsort_(this); - - }, - methods:{ - newRow:function(type){ - if(type ==='requestHeader'){ - this.content.requestHeaders.push({id:utils.generateUID(),require:'true',children:[]}); - }else if(type ==='requestArg'){ - this.content.requestArgs.push({id:utils.generateUID(),require:'true',children:[],type:'string'}); - }else if(type ==='responseHeader'){ - this.content.responseHeaders.push({id:utils.generateUID(),require:'true',children:[]}); - }else if(type ==='responseArg'){ - this.content.responseArgs.push({id:utils.generateUID(),require:'true',children:[],type:'string'}); - } - commons._initsort_(this); - }, - importJSON:function(type){ - this.importModal = true; - this.import = type; - }, - importOk:function(){ - if (!this.importValue) { - toastr.error('导入内容为空'); - return false; - } - - var data = null; - try { - data = utils.toJSON(this.importValue) - } catch (e) { - alert('JSON格式有误'); - return; - } - var temp = []; - commons.parseImportData(data, temp); - var self = this; - temp.forEach(function (d) { - if(self.import ==='requestHeader'){ - self.content.requestHeaders.push(d); - }else if(self.import ==='requestArg'){ - self.content.requestArgs.push(d); - }else if(self.import ==='responseHeader'){ - self.content.responseHeaders.push(d); - }else if(self.import ==='responseArg'){ - self.content.responseArgs.push(d); - } - }); - this.importModal = false; - commons._initsort_(); - }, - loadAttach:function(){ - var self = this; - utils.get('/attach/'+this.doc.id,{projectId:_projectId_},function (rs) { - self.attachs = rs.data.attachs || []; - self.fileAccess = rs.data.fileAccess || ''; - }); - }, - apiVarsClick:function(name){ - this.content.url += '$'+name+'$'; - }, - deleteFile:function(item){ - if(!confirm('是否确认删除')){ - return; - } - var self=this; - utils.delete('/attach/'+item.id+'?projectId='+_projectId_,function(rs){ - self.attachs.splice(self.attachs.indexOf(item)); - }) - }, - fileUpload:function(e){ - var files = e.target.files; - if(files.length === 0) - return false; - var fd = new FormData(); - fd.append('relateId',this.doc.id); - for(var i=0;i -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -
-
- - - - - -
-
- -
-
接口名称
-
- -
-
-
-
状态
-
- -
-
- -
-
请求地址
-
- -
-

实际请求地址:{{requestURL}}

-

- 变量:{{item.name}} -

-
-
-
-
-
接口描述
-
-
-
-
-
-
- - -
-
-
    -
  • 操作
  • -
  • 参数名称
  • -
  • 是否必须
  • -
  • 类型
  • -
  • 默认值
  • -
  • 描述
  • -
-
-
- -
-
- - -
-
- - - - -
-
-
    -
  • 操作
  • -
  • 参数名称
  • -
  • 是否必须
  • -
  • 类型
  • -
  • 描述
  • -
-
-
- -
-
- - -
-
- - - - -
- -

点击、拖拽可上传文件。单文件不能超过1M

-
-
-
- -
-
-
-
-
- -
- - - - - \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/websocket/view.js b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/websocket/view.js deleted file mode 100644 index 2a69d66e..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/websocket/view.js +++ /dev/null @@ -1,389 +0,0 @@ -requirejs(['utils','vue'],function(utils,Vue){ - - Vue.filter('html', function (value) { - if (value) { - return value.replace(/\n/g, '
') - } - return ''; - }); - Vue.filter('text', function (value) { - if (value) { - return value.replace(/\/g,'>') - } - return ''; - }); - function apiSubmit(proxy){ - var self = this; - //var url = this.requestURL; - var url = $('#requestURL').val(); - // 请求参数 - var args = getRequestArgs(); - for (var name in args) { - var key = self.doc.id + ':args:' + name; - var value = args[name]; - if (typeof value === 'string') { - localStorage.setItem(key, value); - } - } - //如果是图片或二进制 - if (this.content.contentType === "IMAGE" || this.content.contentType === 'BINARY') { - window.open(url + '?' + utils.args2Params(args)); - params = undefined; - return true; - } - //请求头 - var headers = getRequestHeaders(); - if(proxy){ - headers['url']=url; - url = ctx+'/plugin/http/proxy'; - } - for (var name in headers) { - var key = self.doc.id + ':headers:' + name; - var value = headers[name]; - if (typeof value === 'string') { - localStorage.setItem(key, value); - } - } - - - var params = { - url: url, - cache: false, - headers: headers, - type: this.content.requestMethod, - data: args, - beforeSend: function (xhr) { - xhr.beginTime = Date.now(); - }, - dataType: this.content.contentType, - crossDomain: true, - xhrFields: { - withCredentials: true - }, - jsonpCallback: this.content.contentType == 'JSONP' ? 'callback' : undefined, - complete:function(xhr, status){ - self.apiLoading = false; - var useTime= Date.now() - xhr.beginTime,body=''; - if(status === "success"){ - var resp = xhr.responseText; - body = new Result().resolve(resp,self.content.contentType); - }else{ - console.error(xhr.statusText); - } - - self.result.resultHeaders = xhr.getAllResponseHeaders() || ''; - self.result.resultStatusCode = xhr.status || 0; - self.result.resultRunTime = useTime; - self.result.content = body; - - - if (status !== 'success') { - var msg = (xhr.responseText || xhr.statusText); - if (status === 'error') { - msg = ('status:' + xhr.status + ' readyState:' + xhr.readyState + ' errorText:' + msg); - } - var error = utils.escape(msg); - if (status === 'parsererror') { - self.result.content = new Result().resolve(error, self.content.contentType); - return true; - } - if (!xhr.status || xhr.status=== 0) { - if(xhr.statusText === 'error'){ - error ='请求地址错误,服务器无响应或JavaScript跨域错误,详情错误请查看控制台'; - } - } - self.result.content = '
' + error + '
'; - } - - - } - }; - - switch (this.content.dataType) { - case "FORM-DATA": - params.contentType = false; - params.processData = false; - var data =params.data; - var fd = new FormData(); - for(var key in data){ - var value = data[key]; - if(value && value.constructor.name==='Array'){ - value.forEach(function (item) { - fd.append(key,item); - }); - }else{ - fd.append(key,value); - } - } - params.data=fd; - break; - case "RAW": - params.data = $('#rawBody').val() || ''; - params.processData = false; - params.contentType = 'text/plain'; - break; - case "XML": - params.data = window.aceeditor.getValue(); - params.processData = false; - params.contentType = 'text/xml'; - break; - case "JSON": - params.data = window.aceeditor.getValue(); - params.processData = false; - params.contentType = 'application/json'; - break; - case "BINARY": - params.processData = false; - params.contentType = 'application/octet-stream'; - var fileE=$('#binaryBody')[0]; - if(fileE){ - var reader = new FileReader(); - reader.onload = function() { - var arrayBuffer = this.result, - array = new Uint8Array(arrayBuffer) - //binaryString = String.fromCharCode.apply(null, array); - params.data = array; - $.ajax(params); - }; - reader.readAsArrayBuffer(fileE.files[0]); - return true; - } - break; - default: - var data =params.data; - for(var key in data){ - var value = data[key]; - if(value && value.constructor.name==='Array'){ - var temp = ''; - value.forEach(function (item) { - temp += 'item,'; - }); - temp= temp.substr(0,temp.length-1); - data[key]=temp; - } - } - params.data=data; - break; - } - this.apiLoading = true; - // chrome 插件中jsonp 会出问题 - $.ajax(params); - } - - Array.prototype.mergeArray = function(source){ - var target = this; - if(source && source.length>0){ - var targetKey={}; - target.forEach(function(item){ - targetKey[item.name]=item; - }); - source.forEach(function(item){ - var temp = targetKey[item.name]; - if(!temp){ - temp = item; - targetKey[item.name]=temp; - target.push(temp); - } - if(!temp.children){ - temp.children=[]; - } - if(item.children && item.children.length>0){ - item.children = temp.children.mergeArray(item.children); - } - - }); - } - return target; - }; - - new Vue({ - el:'#docApp', - data:{ - editing:false, - doc:doc, - fileAccess:null, - attachs:null, - content:null, - global:null, - apiLoading:false, - ws:{ - instance: null, - connected: false, - message: '', - log: '', - url: '', - }, - currentEnv:null, - urlArgs:[], - result:{ - content:'', - resultHeaders:'', - resultRunTime:'', - resultStatusCode:'' - } - }, - mounted:function(){ - - }, - created:function(){ - this.content = utils.toJSON(doc.content); - if(!this.content){ - this.content={}; - } - if(!this.content.url){ - this.content.url=''; - } - this.loadAttach(); - var g = projectGlobal; - if(!g.environment){ - g.environment = []; - }else{ - g.environment = utils.toJSON(g.environment); - } - if(!g.http){ - g.http={}; - }else{ - g.http = utils.toJSON(g.http); - } - - if(!g.http.requestHeaders){ - g.http.requestHeaders = []; - }else{ - g.http.requestHeaders = utils.toJSON(g.http.requestHeaders); - } - if(!g.http.responseHeaders){ - g.http.responseHeaders = []; - }else{ - g.http.responseHeaders = utils.toJSON(g.http.responseHeaders); - } - if(!g.http.requestArgs){ - g.http.requestArgs = []; - }else{ - g.http.requestArgs = utils.toJSON(g.http.requestArgs); - } - if(!g.http.responseArgs){ - g.http.responseArgs = []; - }else{ - g.http.responseArgs = utils.toJSON(g.http.responseArgs); - } - - this.global = g; - - var temp = localStorage.getItem(_projectId_+"_currentEnv"); - if(temp){ - this.currentEnv = JSON.parse(temp); - }else{ - this.currentEnv = g.environment[0] || {}; - } - var urlArgs=[]; - var match = this.content.url.match(/(\{[a-zA-Z0-9_]+\})/g); - if (match !== null && match.length > 0) { - urlArgs = match; - urlArgs = urlArgs.map(function (d) { - return {name: d.substring(1, d.length - 1), value: null}; - }); - } - this.urlArgs= urlArgs; - }, - computed: { - requestURL: function () { - var temp = this.content.url; - if (!temp) { - temp = '' - }else{ - if (this.currentEnv && this.currentEnv.vars) { - this.currentEnv.vars.forEach(function (item) { - var reg = new RegExp('\\$' + item.name + '\\$', 'g'); - temp = temp.replace(reg, item.value); - }); - if (this.urlArgs && this.urlArgs.length > 0) { - this.urlArgs.forEach(function (item) { - var name = '{' + item.name + '}'; - var reg = new RegExp(name, 'g'); - temp = temp.replace(reg, item.value || name) - }); - } - } - } - //bug - setTimeout(function(){ - $('#requestURL').val(temp); - },300); - - return temp; - }, - formArgs:function(){ - var args = this.global.http.requestArgs.mergeArray(this.content.requestArgs); - for(var key in args){ - var temp = self.doc.id + ':args:' + args[key].name; - args[key].testValue = localStorage.getItem(temp); - } - return args; - } - }, - methods:{ - loadAttach:function(){ - var self = this; - utils.get('/attach/'+this.doc.id,{projectId:_projectId_},function (rs) { - self.attachs = rs.data.attachs || []; - self.fileAccess = rs.data.fileAccess || ''; - }); - }, - proxySubmit:function(){ - apiSubmit.call(this,true); - }, - localSubmit:function(){ - apiSubmit.call(this); - }, - wsDestroy:function () { - if (this.ws.instance) { - this.ws.instance.close(); - this.ws.connected = false; - this.ws.log = ''; - this.ws.url = ''; - this.ws.message = ''; - } - }, - wsConnect:function(){ - //var url = this.ws.url; - var url =$('#requestURL').val() - var ws = new WebSocket(url); - this.ws.instance = ws; - var self = this; - ws.onopen = function (evt) { - self.ws.log = 'connected'; - self.ws.connected = true; - }; - ws.onclose = function (evt) { - self.ws.log += '\nonClose!'; - self.ws.connected = false; - }; - ws.onmessage = function (evt) { - self.ws.log += '\nonMessage:' + evt.data; - }; - ws.onerror = function (evt) { - self.ws.log += '\nonError:' + (evt.data || ''); - }; - }, - wsDisconnect:function(){ - this.ws.instance.close() - }, - wsSendMessage:function(){ - this.ws.instance.send(this.ws.message); - this.ws.log += '\n sent message:' + this.ws.message; - this.ws.message=''; - }, - openNewWindow:function(){ - var win = window.open('', 'new'); - win.document.documentElement.innerHTML = ''; - win.document.write(utils.unescape(this.result.content)); - win.document.close(); - }, - changeEnv:function(item){ - this.currentEnv=item; - localStorage.setItem(_projectId_+"_currentEnv",JSON.stringify(item)) - } - } - }); - -}); \ No newline at end of file diff --git a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/websocket/view.jsp b/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/websocket/view.jsp deleted file mode 100644 index 7fc3a7a7..00000000 --- a/xiaoyaoji-web/src/main/webapp/WEB-INF/plugins/cn.xiaoyaoji.plugin/web/websocket/view.jsp +++ /dev/null @@ -1,140 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -
- -更新时间: {{doc.lastUpdateTime}} -
-

基本信息

-
-
-
接口名称: ${doc.name}
-
接口地址: {{requestURL}}
-
接口状态: {{content.status}}
-
-
-
-

接口描述

-
-
- <%----%> -
-

附件

-
- -
-
- -
-

请求参数

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 类型
  • -
  • 默认值
  • -
  • 描述
  • -
- -
-
-
-

响应数据

-
-
    -
  • 参数名称
  • -
  • 是否必须
  • -
  • 数据类型
  • -
  • 描述
  • -
- -
-
- - -
-

例子

-
-
{{content.example}}
-
-
-

演示

-
-
-
-
请求地址
-
- - -
-
-
- -
- -
- -
-
-
-
-
-
-
-
-

地址参数

-
-
{{item.name}}
-
- -
-
-
-
- -
-
-
日志
-
-
-
-
-
发送消息
-
-
-
- -
-
 
-
- - -
-
-
- -
-
-
- - - - \ No newline at end of file