pull/1/head
tanghc 5 years ago
parent 63ebdce4a8
commit b6c60f48a2
  1. 0
      sop-website/.gitignore
  2. 93
      sop-website/pom.xml
  3. 11
      sop-website/readme.md
  4. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/WebsiteServerApplication.java
  5. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/DocInfo.java
  6. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/DocItem.java
  7. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/DocModule.java
  8. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/DocParameter.java
  9. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/DocParserContext.java
  10. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/EurekaApplication.java
  11. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/EurekaApplications.java
  12. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/EurekaApps.java
  13. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/EurekaInstance.java
  14. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/EurekaUri.java
  15. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/bean/HttpTool.java
  16. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/config/CorsConfig.java
  17. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/config/WebsiteConfig.java
  18. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/controller/DocController.java
  19. 17
      sop-website/src/main/java/com/gitee/sop/websiteserver/controller/IndexController.java
  20. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/controller/SandboxController.java
  21. 1
      sop-website/src/main/java/com/gitee/sop/websiteserver/manager/DocDiscovery.java
  22. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/manager/DocManager.java
  23. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/manager/DocManagerImpl.java
  24. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/manager/DocParser.java
  25. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/manager/EasyopenDocParser.java
  26. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/manager/SwaggerDocParser.java
  27. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/sign/AlipayApiException.java
  28. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/sign/AlipayConstants.java
  29. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/sign/AlipaySignature.java
  30. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/sign/StreamUtil.java
  31. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/sign/StringUtils.java
  32. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/util/UploadUtil.java
  33. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/vo/DocBaseInfoVO.java
  34. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/vo/DocInfoVO.java
  35. 0
      sop-website/src/main/java/com/gitee/sop/websiteserver/vo/ServiceInfoVO.java
  36. 0
      sop-website/src/main/resources/api.json
  37. 0
      sop-website/src/main/resources/application-dev.properties
  38. 0
      sop-website/src/main/resources/application.properties
  39. 0
      sop-website/src/main/resources/public/assets/css/global.css
  40. 0
      sop-website/src/main/resources/public/assets/image/auth.png
  41. 0
      sop-website/src/main/resources/public/assets/js/format.js
  42. 0
      sop-website/src/main/resources/public/assets/js/inputcache.js
  43. 0
      sop-website/src/main/resources/public/assets/lib/jquery/3.2.1/jquery.min.js
  44. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/layui.css
  45. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/layui.mobile.css
  46. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/modules/code.css
  47. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/modules/laydate/default/laydate.css
  48. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/modules/layer/default/icon-ext.png
  49. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/modules/layer/default/icon.png
  50. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/modules/layer/default/layer.css
  51. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/modules/layer/default/loading-0.gif
  52. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/modules/layer/default/loading-1.gif
  53. 0
      sop-website/src/main/resources/public/assets/lib/layui/css/modules/layer/default/loading-2.gif
  54. 0
      sop-website/src/main/resources/public/assets/lib/layui/font/iconfont.eot
  55. 0
      sop-website/src/main/resources/public/assets/lib/layui/font/iconfont.svg
  56. 0
      sop-website/src/main/resources/public/assets/lib/layui/font/iconfont.ttf
  57. 0
      sop-website/src/main/resources/public/assets/lib/layui/font/iconfont.woff
  58. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/0.gif
  59. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/1.gif
  60. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/10.gif
  61. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/11.gif
  62. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/12.gif
  63. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/13.gif
  64. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/14.gif
  65. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/15.gif
  66. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/16.gif
  67. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/17.gif
  68. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/18.gif
  69. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/19.gif
  70. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/2.gif
  71. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/20.gif
  72. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/21.gif
  73. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/22.gif
  74. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/23.gif
  75. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/24.gif
  76. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/25.gif
  77. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/26.gif
  78. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/27.gif
  79. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/28.gif
  80. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/29.gif
  81. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/3.gif
  82. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/30.gif
  83. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/31.gif
  84. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/32.gif
  85. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/33.gif
  86. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/34.gif
  87. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/35.gif
  88. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/36.gif
  89. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/37.gif
  90. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/38.gif
  91. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/39.gif
  92. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/4.gif
  93. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/40.gif
  94. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/41.gif
  95. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/42.gif
  96. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/43.gif
  97. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/44.gif
  98. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/45.gif
  99. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/46.gif
  100. 0
      sop-website/src/main/resources/public/assets/lib/layui/images/face/47.gif
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,14 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.gitee.sop</groupId>
<artifactId>sop-website</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>website-server</module>
</modules>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.gitee.sop</groupId>
<artifactId>sop-website</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>sop-website</name>
<description>sop-website</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-nacos-discovery</artifactId>
<version>0.9.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.14.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.58</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.6</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

@ -1,14 +1,9 @@
# 开放平台网站
包括文档功能,用户注册等,具体业务需要自己实现。
前后端分离
- website-front: 前端页面
- website-server: 后台接口
包括文档功能、沙箱环境。
## 使用方式
- 确保注册中心、网关、微服务正常启动
- 启动website-server(运行WebsiteServerApplication.java)
- 找到sop-website/website-front/pages/doc/doc.html,IDEA下右键--Debug
- 运行WebsiteServerApplication.java
- 访问http://localhost:8083

@ -0,0 +1,17 @@
package com.gitee.sop.websiteserver.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author tanghc
*/
@Controller
public class IndexController {
@RequestMapping("/")
public String index() {
return "redirect:index.html";
}
}

@ -67,7 +67,6 @@ public class DocDiscovery {
try {
List<Instance> allInstances = namingService.getAllInstances(serviceName);
if (CollectionUtils.isEmpty(allInstances)) {
log.info("{}服务下线,删除文档信息", serviceName);
// 如果没有服务列表,则删除所有路由信息
docManager.remove(serviceName);
} else {

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save