diff --git a/.gitattributes b/.gitattributes index 2ea54b52..f375a402 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1 @@ -*.js linguist-language=java -*.css linguist-language=java -*.html linguist-language=java \ No newline at end of file +# *.js linguist-language=java diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..36de67a3 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: houko +patreon: #hupeng +open_collective: SpringBootUnity +ko_fi: #hupeng +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: #houko/SpringBootUnity +otechie: # Replace with a single Otechie username +custom: #https:blog.xiaomo.info diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..132d17c5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 00000000..1620e2e5 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,72 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ "master" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "master" ] + schedule: + - cron: '24 7 * * 0' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'java' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..34d145f8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: java +jdk: + - oraclejdk11 +dist: trusty \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..2d703922 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Peng Hu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index e0f68977..00000000 --- a/README.md +++ /dev/null @@ -1,35 +0,0 @@ -![blog](https://image.xiaomo.info/blog/blog.png) - -# 一、我的博客 -虽然不知道为什么,但是还是要先给自己的博客打一波广告吧。上面记载着我在项目开发的过程中积累的点滴,如果有什么建议也可以在上面给我[留言](https://xiaomo.info/about/) - - -# 三、本项目相关 -这个项目既然定位是个人站点,那么内容肯定是偏向于个人信息展示,以及服务自我和他人为目的。所以平时遇到好的技术大牛的博客、好的技术、正在研究的东西 -等等我都会收集起来。 - -# 四、其他说明 -本人是一个热爱开源精神、追求新潮的开发者。习惯以github的issue驱动方式来组织我的项目,也希望感兴趣的朋友和我联系一起进步,共同开发感兴趣的开源项目。 -当然我会将本项目的angular一直维护在最新的稳定状态。 - -# 五、鸣谢 -1. @Alice([AlicePrincess](https://github.com/AlicePrincess)) -一个很聪明伶俐、多才多艺的萌妹子,在项目过程中遇到的很多问题都是她帮我解决掉的。 -2. @龙猫 [龙猫](http://zxcool.cn) -大长腿欧巴,P得一手好图,做得UI叼炸天。一个好的网站没有一个好的UI真是个灾难,没有他的帮忙我的网站就进行不下去。 -3. @[stackoverflow](http://stackoverflow.com/) -最优秀的技术问答社区,没有之一!善用此工具,事半功倍。 -4. @其他所有对我有帮助的人和事情。 -要感谢的人很多,一一列举相信各位看官也没什么兴趣。总之很感谢,能够在大家的帮助下不断进步。 - -# 六、关于我 - @[小莫](http://xiaomo.info):一个普通的技术开发者,技术过得去,还算勤勉!人在杭州,希望进网易和阿里让自己能够更快的进步,为公司贡献自己的力量。 - -# 八、问题反馈 -1. 欢迎提[issue](https://github.com/syoubaku/xiaomo-info-java/issues) -2. QQ: 83387856 -4. 个人主站: https://xiaomo.info - -# 七. gitignore不生效的原因和解决办法 -无效的原因是:对应的目录或者文件已经被git跟踪,此时再加入.gitignore后就无效了 -解决办法: 执行 git rm -r --cached .idea 删掉git己经管理的idea文件 diff --git a/Readme.md b/Readme.md new file mode 100644 index 00000000..6f137c59 --- /dev/null +++ b/Readme.md @@ -0,0 +1,149 @@ +[![Build Status](https://travis-ci.org/houko/SpringBootUnity.svg?branch=master)](https://travis-ci.org/houko/SpringBootUnity) +[![Backers on Open Collective](https://opencollective.com/SpringBootUnity/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/SpringBootUnity/sponsors/badge.svg)](#sponsors) [![GitHub issues](https://img.shields.io/github/issues/houko/SpringBootUnity.svg)](https://github.com/houko/SpringBootUnity/issues) +[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/houko/SpringBootUnity/master/LICENSE) +[![Maven Central](https://img.shields.io/maven-central/v/org.apache.maven/apache-maven.svg)]() + +### 项目简介 +![mark](screenshot/SpringBootUnity.png) + +### 环境 +- `maven` latest +- `jdk11` +- `spring boot 2.x release` +- 个人推荐`idea`来代替eclipse +- git: 版本管理 +- nginx: 反向代理服务器 + + +### 注意事项 +- 本项目代码托管在[github](https://github.com/houko/SpringBootUnity)和[码云](http://git.oschina.net/hupeng_admin/SpringBootUnity)两个地方,最新代码会先推送在github上,码云上会在github上更新完之后进行同步。 +- 本项目多数数据库都用到了`hibernate`,如果没有提供`sql`文件。则启动时会根据代码映射自动生成数据库表,请在启动前修改`application.properties`中的数据库连接信息 + + +### 启动方式 + +- 本地运行 +本repo是一个多模块组成,每一个模块都可以单独打包运行。如果想运行哪个模块可以找到对应的Main文件右键运行。 +![run](screenshot/run.png) + + +- 在linux服务器运行 + `spring boot`内置了tomcat做为web容器,默认打成jar包直接放在服务器上执行就可以了 +> `java -Xms64m -Xmx2048m -jar project.jar 5 >> ./project.log &` + + + +### 打包 +- 如果需要定制化打成war包,那么也很简单。在`maven`中做下设置就ok了,然后把war包扔到tomcat下面就可以运行了 + +``` + 4.0.0 + api + war +``` + + +### 更新日志 +- 2017-09-02 api模块: 添加swagger-bootstrap-ui,和原有ui并行存在。 +http://localhost:8080 默认UI +http://localhost:808/doc.html bootstrap-ui + +- 2017-09-02 spring boot版本从1.4.3更新到1.5.8 +- 2017-09-02 修复不配置数据库信息无法启动的bug +- 2017-09-02 版本号更新到2017.1 +- 2017-09-02 api模块(swagger)添加开源库swagger-bootstrap-ui,和swagger默认UI同时存在。 +- 2017-09-02 web模块添加数据库sql文件,导入后一键启动可直接访问到web界面。 +- 2017-09-06 mybatis模块:添加USER.sql,启动后访问:http://localhost:8080 即可看到接口数据 +- 2017-09-06 所有模块: 添加 characterEncoding=utf8&useSSL=true 解决高版本mysql的sll警告 +- 2017-09-06 添加代码贡献者列表和支持者,赞助商链接。 +- 2017-09-08 crawler模块(网络爬虫):修复本地文件目录不存在会报错的bug。处理方式为:不存在则自动创建 +- 2017-11-02 开源协议从apache更换到MIT +- 2017-11-02 添加本地运行方式的说明 +- 2017-11-02 版本更新到2020.1 +- 2017-11-02 spring boot版本更新到1.5.8 +- 2017-11-03 添加kotlin环境配置 +- 2017-11-03 按照阿里巴巴编程规范插件P3C优化代码 +- 2017-11-03 合并`api`和`website`模块,访问`localhost:8080`会显示网站主页,访问`localhost:8080/api`会显示api管理界面 +- 2018-04-09 将整个项目升级到spring boot2.0 release版本,api有较大变动 +- 2019-08-06 travis-ci指定jdk版本 +- 2020-10-09 升级版本到2020.2 +- 2020-10-09 升级jdk版本到11 +- 2020-10-09 升级mysql connector到8 +- 2020-10-09 升级spring boot到2.3.0 +- 2020-10-09 修复了升级后API的破坏性变动,修复了一些了编辑器警告 + + + + +## 贡献者 + +感谢所有为本项目做出贡献的开发者们. + + + +## 支持者 + +感谢您的支持! 🙏 [[成为支持者](https://opencollective.com/SpringBootUnity#backer)] + + + + +## 赞助商 + +[[成为赞助商](https://opencollective.com/SpringBootUnity#sponsor)]支持本项目并成为赞助商. 您的LOGO和网站链接将会被展示在这里. + + + + + + + + + + + + +### 项目说明 +需求是多变的,本项目是以spring boot为基础,在使用spring boot的过程中对应不同的需求选用不同的技术和spring boot进行搭配,因此本项目是个偏于使用示例的定位。同时如果您在使用spring boot的过程中有什么好用的技术期待您对本项目的PR。 + +### 关于我 + @[小莫](https://xiaomo.info):本人是一个热爱开源精神、追求新潮的开发者,技术过得去,还算勤勉!习惯以github的issue驱动方式来组织我的项目,也希望感兴趣的朋友和我联系,一起进步,共同开发感兴趣的开源项目。目前任rpg服务端主程,熟悉游戏开发和web开发。同时也是个喜欢二次元的死宅,爱动漫,略懂日语。 + +### 在线小工具 + +- [在线Cron表达式生成器](http://cron.qqe2.com/ "在线Cron表达式生成器") + +- [在线工具 - 程序员的工具箱](http://tool.lu/ "在线工具 - 程序员的工具箱") +- [spring boot官方脚手架](https://start.spring.io/ "spring boot官方脚手架") + + +### 问题反馈 +1. 欢迎提[issue](https://github.com/houko/SpringBootUnity/issues)一起完善这个项目。 +2. QQ: 83387856 +4. 个人主站: https://xiaomo.info + + +## [License](LICENSE "MIT") + + MIT License + + Copyright (c) 2022 Peng Hu + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..034e8480 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :white_check_mark: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc. diff --git a/_config.yml b/_config.yml new file mode 100644 index 00000000..c4192631 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-cayman \ No newline at end of file diff --git a/api/.gitattributes b/api/.gitattributes deleted file mode 100644 index 2ea54b52..00000000 --- a/api/.gitattributes +++ /dev/null @@ -1,3 +0,0 @@ -*.js linguist-language=java -*.css linguist-language=java -*.html linguist-language=java \ No newline at end of file diff --git a/api/README.md b/api/README.md deleted file mode 100644 index 9c7badfd..00000000 --- a/api/README.md +++ /dev/null @@ -1 +0,0 @@ -API接口 \ No newline at end of file diff --git a/api/src/main/java/info/xiaomo/api/ApiMain.java b/api/src/main/java/info/xiaomo/api/ApiMain.java deleted file mode 100644 index 69d92055..00000000 --- a/api/src/main/java/info/xiaomo/api/ApiMain.java +++ /dev/null @@ -1,92 +0,0 @@ -package info.xiaomo.api; - -import io.swagger.annotations.ApiOperation; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.EnableAutoConfiguration; -import org.springframework.boot.autoconfigure.domain.EntityScan; -import org.springframework.cache.annotation.EnableCaching; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ComponentScan; -import org.springframework.context.annotation.Configuration; -import org.springframework.data.jpa.repository.config.EnableJpaRepositories; -import org.springframework.scheduling.annotation.EnableAsync; -import org.springframework.scheduling.annotation.EnableScheduling; -import org.springframework.stereotype.Controller; -import org.springframework.transaction.annotation.EnableTransactionManagement; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.servlet.ModelAndView; -import springfox.documentation.annotations.ApiIgnore; -import springfox.documentation.builders.ApiInfoBuilder; -import springfox.documentation.builders.PathSelectors; -import springfox.documentation.builders.RequestHandlerSelectors; -import springfox.documentation.service.ApiInfo; -import springfox.documentation.spi.DocumentationType; -import springfox.documentation.spring.web.plugins.Docket; -import springfox.documentation.swagger2.annotations.EnableSwagger2; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1 15:38 - * @Description: 后台管理启动器 - * @Copyright(©) 2015 by xiaomo. - **/ -@Configuration -@EnableAutoConfiguration -@ComponentScan("info.xiaomo") -@EntityScan("info.xiaomo.*.model") -@EnableTransactionManagement -@EnableJpaRepositories("info.xiaomo.*.dao") -@EnableScheduling -@EnableAsync -@EnableCaching -@Controller -@EnableSwagger2 -public class ApiMain { - - public static void main(String[] args) throws Exception { - SpringApplication.run(ApiMain.class, args); - } - - - /** - * 接口 - * - * @return 接口 - */ - @RequestMapping(value = "/", method = RequestMethod.GET) - @ApiIgnore() - @ApiOperation(value = "重定向到api首页") - public ModelAndView index() { - return new ModelAndView("redirect:/swagger-ui.html"); - } - - @Bean - public Docket createRestApi() { - return new Docket(DocumentationType.SWAGGER_2) - .apiInfo(apiInfo()) - .select() - .apis(RequestHandlerSelectors.basePackage("info.xiaomo.api")) - .paths(PathSelectors.any()) - .build(); - } - - private ApiInfo apiInfo() { - return new ApiInfoBuilder() - .title("Spring Boot中使用Swagger2构建RESTful APIs") - .description("api根地址:http://api.xiaomo.info:8080/") - .termsOfServiceUrl("https://xiaomo.info/") - .contact("小莫") - .version("1.0") - .build(); - } - -} diff --git a/api/src/main/java/info/xiaomo/api/controller/AdminUserController.java b/api/src/main/java/info/xiaomo/api/controller/AdminUserController.java deleted file mode 100644 index 0a39252c..00000000 --- a/api/src/main/java/info/xiaomo/api/controller/AdminUserController.java +++ /dev/null @@ -1,357 +0,0 @@ -package info.xiaomo.api.controller; - -import info.xiaomo.api.model.AdminModel; -import info.xiaomo.api.service.AdminUserService; -import info.xiaomo.core.constant.Code; -import info.xiaomo.core.base.BaseController; -import info.xiaomo.core.base.Result; -import info.xiaomo.core.exception.UserNotFoundException; -import info.xiaomo.core.untils.MD5Util; -import info.xiaomo.core.untils.RandomUtil; -import io.swagger.annotations.*; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * │\__╭╭╭╭╭__/│ - * │         │ - * │         │ - * │ -      -│ - * │≡    o ≡ │ - * │         │ - * ╰——┬O◤▽◥O┬——╯ - * |  o  | - * |╭---╮把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 16/4/2 12:47 - * @Description: 后台用户控制器 - * @Copyright(©) 2015 by xiaomo. - */ -@RestController -@RequestMapping("/adminUser") -@Api(value = "AdminUserController", description = "后台用户相关api") -public class AdminUserController extends BaseController { - - private final AdminUserService service; - - @Autowired - public AdminUserController(AdminUserService service) { - this.service = service; - } - - /** - * 后台账户登录 - * - * @return Result - */ - @RequestMapping(value = "login/{userName}/{password}", method = RequestMethod.POST) - @ApiOperation(value = "获取用户信息", notes = "根据用户帐号和密码登录后台", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "userName", value = "用户名", required = true, dataType = "Result", paramType = "path"), - @ApiImplicitParam(name = "password", value = "用户名", required = true, dataType = "Result", paramType = "path") - }) - @ApiResponses(value = { - @ApiResponse(code = 404, message = "Not Found"), - @ApiResponse(code = 400, message = "No Name Provided"), - }) - public Result login(@PathVariable("userName") String userName, @PathVariable("password") String password) { - AdminModel adminModel = service.findAdminUserByUserName(userName); - if (adminModel == null) { - return new Result(Code.USER_NOT_FOUND.getResultCode(), Code.USER_NOT_FOUND.getMessage()); - } - if (!MD5Util.encode(password, adminModel.getSalt()).equals(adminModel.getPassword())) { - return new Result(Code.AUTH_FAILED.getResultCode(), Code.AUTH_FAILED.getMessage()); - } - return new Result(adminModel); - } - - - /** - * 添加用户 - * - * @return Result - */ - @ApiOperation(value = "添加后台用户", notes = "传一个管理员用户模型过来然后保存到数据库", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "add", method = RequestMethod.POST) - @ApiResponses(value = { - @ApiResponse(code = 404, message = "Not Found"), - @ApiResponse(code = 400, message = "No Name Provided"), - }) - public Result add(@RequestBody AdminModel model) { - AdminModel adminModel = service.findAdminUserByUserName(model.getUserName()); - if (adminModel != null) { - return new Result(Code.ADMIN_USER_REPEAT.getResultCode(), Code.ADMIN_USER_REPEAT.getMessage()); - } - String salt = RandomUtil.createSalt(); - model.setSalt(salt); - model.setPassword(MD5Util.encode(model.getPassword(), salt)); - AdminModel saveModel = service.addAdminUser(model); - return new Result<>(saveModel); - } - - /** - * 根据id查找 - * - * @param id id - * @return Result - */ - @ApiOperation(value = "查找用户", notes = "根据传来的id查找用户并返回", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "findById/{id}", method = RequestMethod.GET) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "后台用户唯一id", required = true, dataType = "Long", paramType = "path") - }) - @ApiResponses(value = { - @ApiResponse(code = 404, message = "Not Found"), - @ApiResponse(code = 400, message = "No Name Provided"), - }) - public Result findUserById(@PathVariable("id") Long id) { - AdminModel adminModel = service.findAdminUserById(id); - if (adminModel == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(adminModel); - } - - /** - * 查找所有(不带分页) - * - * @return result - */ - @Override - public Result findAll() { - return null; - } - - /** - * 带分页 - * - * @param start 起始页 - * @param pageSize 页码数 - * @return result - */ - @Override - public Result findAll(@PathVariable int start, @PathVariable int pageSize) { - return null; - } - - /** - * 根据id查看模型 - * - * @param id id - * @return result - */ - @Override - public Result findById(@PathVariable Long id) { - return null; - } - - /** - * 根据名字查找 - * - * @param userName userName - * @return Result - */ - @ApiOperation(value = "查找用户", notes = "根据传来的用户名查找用户并返回", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "findByName/{userName}", method = RequestMethod.GET) - @ApiImplicitParams({ - @ApiImplicitParam(name = "userName", value = "用户名", required = true, dataType = "String", paramType = "path") - }) - @ApiResponses(value = { - @ApiResponse(code = 404, message = "Not Found"), - @ApiResponse(code = 400, message = "No Name Provided"), - }) - public Result findByName(@PathVariable("userName") String userName) { - AdminModel adminModel = service.findAdminUserByUserName(userName); - if (adminModel == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(adminModel); - } - - /** - * 根据名字删除模型 - * - * @param name name - * @return result - */ - @Override - public Result delByName(@PathVariable String name) { - return null; - } - - /** - * 根据id删除模型 - * - * @param id id - * @return result - */ - @Override - public Result delById(@PathVariable Long id) { - return null; - } - - /** - * 添加模型 - * - * @param model model - * @return result - */ - @Override - public Result add(@RequestBody Object model) { - return null; - } - - /** - * 更新 - * - * @param model model - * @return result - */ - @Override - public Result update(@RequestBody Object model) { - return null; - } - - /** - * 批量删除 - * - * @param ids ids - * @return result - */ - @Override - public Result delByIds(@PathVariable List ids) { - return null; - } - - /** - * 修改密码 - * - * @return model - * @throws UserNotFoundException UserNotFoundException - */ - @RequestMapping(value = "changePassword", method = RequestMethod.POST) - @ApiOperation(value = "修改用户密码", notes = "传来模型验证并修改密码", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiResponses(value = { - @ApiResponse(code = 404, message = "Not Found"), - @ApiResponse(code = 400, message = "No Name Provided"), - }) - public Result changePassword(@RequestBody AdminModel model) throws UserNotFoundException { - AdminModel adminModel = service.findAdminUserByUserName(model.getUserName()); - if (adminModel == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - String salt = RandomUtil.createSalt(); - adminModel.setSalt(salt); - adminModel.setPassword(MD5Util.encode(model.getPassword(), salt)); - service.updateAdminUser(adminModel); - return new Result<>(adminModel); - } - - - /** - * 返回所有 - * - * @return 不分页 - */ - @RequestMapping(value = "findAll", method = RequestMethod.GET) - @ApiOperation(value = "返回所有用户信息", notes = "不分页", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiResponses(value = { - @ApiResponse(code = 404, message = "Not Found"), - @ApiResponse(code = 400, message = "No Name Provided"), - }) - public Result getAll() { - List pages = service.getAdminUsers(); - if (pages == null || pages.size() <= 0) { - return new Result<>(pages); - } - return new Result<>(pages); - } - - /** - * 根据id删除数据 - * - * @param id id - * @return model - * @throws UserNotFoundException UserNotFoundException - */ - @RequestMapping(value = "delete/{id}", method = RequestMethod.GET) - @ApiOperation(value = "删除用户", notes = "根据传入的id删除对应的用户", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "用户唯一id", required = true, dataType = "Long", paramType = "path") - }) - @ApiResponses(value = { - @ApiResponse(code = 404, message = "Not Found"), - @ApiResponse(code = 400, message = "No Name Provided"), - }) - public Result deleteUserById(@PathVariable("id") Long id) throws UserNotFoundException { - AdminModel adminModel = service.findAdminUserById(id); - if (adminModel == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - service.deleteAdminUserById(id); - return new Result<>(adminModel); - } - - /** - * 更新 - * - * @param userName userName - * @return model - * @throws UserNotFoundException UserNotFoundException - */ - @RequestMapping(value = "update/{userName}", method = RequestMethod.POST) - @ApiOperation(value = "更新用户信息", notes = "根据传入的模型更新用户信息", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "userName", value = "用户名", required = true, dataType = "String", paramType = "path") - }) - @ApiResponses(value = { - @ApiResponse(code = 404, message = "Not Found"), - @ApiResponse(code = 400, message = "No Name Provided"), - }) - public Result update(@PathVariable("userName") String userName) throws UserNotFoundException { - AdminModel adminModel = service.findAdminUserByUserName(userName); - if (adminModel == null) { - return null; - } - adminModel.setUserName(userName); - service.updateAdminUser(adminModel); - return new Result<>(adminModel); - } - - /** - * 封号 - * - * @param id id - * @return model - * @throws UserNotFoundException UserNotFoundException - */ - @RequestMapping(value = "forbid/{id}", method = RequestMethod.GET) - @ApiOperation(value = "封号", notes = "根据传入的id对修改对应帐号状态", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "后台用户唯一id", required = true, dataType = "Long", paramType = "path") - }) - @ApiResponses(value = { - @ApiResponse(code = 404, message = "Not Found"), - @ApiResponse(code = 400, message = "No Name Provided"), - }) - public Result forbid(@PathVariable("id") Long id) throws UserNotFoundException { - AdminModel model = service.findAdminUserById(id); - if (model == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - model = service.forbidAdminUserById(id); - return new Result<>(model); - } -} - diff --git a/api/src/main/java/info/xiaomo/api/controller/ChangeLogController.java b/api/src/main/java/info/xiaomo/api/controller/ChangeLogController.java deleted file mode 100644 index ae47dad3..00000000 --- a/api/src/main/java/info/xiaomo/api/controller/ChangeLogController.java +++ /dev/null @@ -1,221 +0,0 @@ -package info.xiaomo.api.controller; - -import info.xiaomo.api.model.ChangeLogModel; -import info.xiaomo.api.service.ChangeLogService; -import info.xiaomo.core.constant.Code; -import info.xiaomo.core.base.BaseController; -import info.xiaomo.core.base.Result; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1117:40 - * @Description: 更新日志控制器 - * @Copyright(©) 2015 by xiaomo. - **/ -@RestController -@RequestMapping("/changeLog") -@Api(value = "ChangeLogController",description = "更新日志相关api") -public class ChangeLogController extends BaseController { - - private final ChangeLogService service; - - @Autowired - public ChangeLogController(ChangeLogService service) { - this.service = service; - } - - /** - * 通过id查找 - * - * @param id id - * @return model - */ - @RequestMapping(value = "findById/{id}",method = RequestMethod.GET) - @ApiOperation(value = "通过id查找", notes = "通过id查找",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一id", required = true, dataType = "Long", paramType = "path") - }) - public Result findById(@PathVariable("id") Long id) { - ChangeLogModel changeLogModel = service.findById(id); - if (changeLogModel == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result(changeLogModel); - } - - /** - * findByName - * - * @return result - */ - @RequestMapping(value = "findByName/{name}", method = RequestMethod.GET) - @ApiOperation(value = "通过名字查找", notes = "通过名字查找",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "name", value = "更新日志内容", required = true, dataType = "String", paramType = "path") - }) - public Result findByName( @PathVariable("name") String name) { - ChangeLogModel model = service.findByName(name); - if (model == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result(model); - } - - /** - * 根据名字删除模型 - * - * @param name name - * @return result - */ - @Override - public Result delByName(@PathVariable String name) { - return null; - } - - /** - * 根据id删除模型 - * - * @param id id - * @return result - */ - @Override - public Result delById(@PathVariable Long id) { - return null; - } - - /** - * 添加模型 - * - * @param model model - * @return result - */ - @Override - public Result add(@RequestBody Object model) { - return null; - } - - /** - * 更新 - * - * @param model model - * @return result - */ - @Override - public Result update(@RequestBody Object model) { - return null; - } - - /** - * 批量删除 - * - * @param ids ids - * @return result - */ - @Override - public Result delByIds(@PathVariable List ids) { - return null; - } - - /** - * 分页查询更新日志 - * - * @return 分页 - */ - @RequestMapping(value = "findAll", method = RequestMethod.GET) - @ApiOperation(value = "分页查询更新日志", notes = "分页查询更新日志",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - public Result findAll() { - List pages = service.findAll(); - if (pages == null || pages.size() <= 0) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(pages); - } - - /** - * 带分页 - * - * @param start 起始页 - * @param pageSize 页码数 - * @return result - */ - @Override - public Result findAll(@PathVariable int start, @PathVariable int pageSize) { - return null; - } - - /** - * 增加更新日志 - * - * @return result - */ - @ApiOperation(value = "增加更新日志", notes = "增加更新日志",httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "add", method = RequestMethod.POST) - public Result add(@RequestBody ChangeLogModel model) { - ChangeLogModel changeLogModel = service.findByName(model.getName()); - if (changeLogModel != null) { - return new Result(Code.REPEAT.getResultCode(), Code.REPEAT.getMessage()); - } - changeLogModel = new ChangeLogModel(); - changeLogModel.setName(model.getName()); - changeLogModel.setOnlineTime(model.getOnlineTime()); - ChangeLogModel addModel = service.add(changeLogModel); - return new Result<>(addModel); - } - - - /** - * 修改更新日志 - * - * @return result - */ - @ApiOperation(value = "修改更新日志", notes = "修改更新日志",httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "update", method = RequestMethod.POST) - public Result update(@RequestBody ChangeLogModel model) { - ChangeLogModel changeLogModel = service.findByName(model.getName()); - if (changeLogModel == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - changeLogModel.setName(model.getName()); - changeLogModel.setOnlineTime(model.getOnlineTime()); - ChangeLogModel updateModel = service.update(changeLogModel); - return new Result<>(updateModel); - } - - - /** - * 删除更新日志 - */ - @RequestMapping(value = "delete/{id}", method = RequestMethod.GET) - @ApiOperation(value = "删除更新日志", notes = "删除更新日志",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一id", required = true, dataType = "Long", paramType = "path") - }) - public Result deleteById(@PathVariable("id") Long id) { - ChangeLogModel changeLogModel = service.findById(id); - if (changeLogModel == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - ChangeLogModel delModel = service.delete(id); - return new Result<>(delModel); - } - - -} diff --git a/api/src/main/java/info/xiaomo/api/controller/LinkController.java b/api/src/main/java/info/xiaomo/api/controller/LinkController.java deleted file mode 100644 index 99010b82..00000000 --- a/api/src/main/java/info/xiaomo/api/controller/LinkController.java +++ /dev/null @@ -1,251 +0,0 @@ -package info.xiaomo.api.controller; - -import info.xiaomo.api.model.LinkModel; -import info.xiaomo.api.service.LinkService; -import info.xiaomo.core.constant.Code; -import info.xiaomo.core.base.BaseController; -import info.xiaomo.core.base.Result; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1119:55 - * @Description: 友情连接控制器 - * @Copyright(©) 2015 by xiaomo. - **/ -@RestController -@RequestMapping("/link") -@Api(value = "LinkController",description = "友情链接相关api") -public class LinkController extends BaseController { - - private final LinkService service; - - @Autowired - public LinkController(LinkService service) { - this.service = service; - } - - /** - * 根据id查找 - * - * @param id id - * @return model - */ - @RequestMapping(value = "findById/{id}",method = RequestMethod.GET) - @ApiOperation(value = "通过id查找", notes = "通过id查找",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一id", required = true, dataType = "Long", paramType = "path") - }) - public Result findLinkById(@PathVariable("id") Long id) { - LinkModel model = service.findById(id); - if (model == null) { - return new Result<>(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(model); - } - - /** - * 根据名字查找 - * - * @param name name - * @return model - */ - @RequestMapping(value = "findByName/{name}",method = RequestMethod.GET) - @ApiOperation(value = "根据名字查找", notes = "根据名字查找",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "name", value = "友情链接名字", required = true, dataType = "String", paramType = "path") - }) - public Result findByName(@PathVariable("name") String name) { - LinkModel model = service.findByName(name); - if (model == null) { - return new Result<>(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(model); - } - - /** - * 根据名字删除模型 - * - * @param name name - * @return result - */ - @Override - public Result delByName(@PathVariable String name) { - return null; - } - - /** - * 根据id删除模型 - * - * @param id id - * @return result - */ - @Override - public Result delById(@PathVariable Long id) { - return null; - } - - /** - * 添加模型 - * - * @param model model - * @return result - */ - @Override - public Result add(@RequestBody Object model) { - return null; - } - - /** - * 更新 - * - * @param model model - * @return result - */ - @Override - public Result update(@RequestBody Object model) { - return null; - } - - /** - * 批量删除 - * - * @param ids ids - * @return result - */ - @Override - public Result delByIds(@PathVariable List ids) { - return null; - } - - - /** - * 返回所有数据 - * - * @return 所有 - */ - @RequestMapping(value = "findAll",method = RequestMethod.GET) - @ApiOperation(value = "返回所有数据", notes = "返回所有数据",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - public Result findAll() { - List pages = service.findAll(); - if (pages == null || pages.size() == 0) { - return new Result<>(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(pages); - } - - /** - * 带分页 - * - * @param start 起始页 - * @param pageSize 页码数 - * @return result - */ - @Override - public Result findAll(@PathVariable int start, @PathVariable int pageSize) { - return null; - } - - /** - * 根据id查看模型 - * - * @param id id - * @return result - */ - @Override - public Result findById(@PathVariable Long id) { - return null; - } - - -// /** -// * 返回所有 带分页 -// * -// * @param start start -// * @param pageSize pageSize -// * @return 分页数据 -// */ -// @RequestMapping("findAll") -// public Result findAll(@RequestParam(value = "start", defaultValue = "1") int start, @RequestParam(value = "pageSize", defaultValue = "10") int pageSize) { -// Page pages = service.findAll(start, pageSize); -// if (pages == null || pages.getSize() <= 0) { -// return new Result<>(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); -// } -// return new Result<>(pages); -// } - - - /** - * 添加链接 - * - * @return model - */ - @RequestMapping(value = "add",method = RequestMethod.POST) - @ApiOperation(value = "添加链接", notes = "添加链接",httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - public Result add(@RequestBody LinkModel model) { - LinkModel linkModel = service.findByName(model.getName()); - if (linkModel != null) { - return new Result<>(Code.REPEAT.getResultCode(), Code.REPEAT.getMessage()); - } - linkModel = new LinkModel(); - linkModel.setName(model.getName()); - linkModel.setUrl(model.getUrl()); - LinkModel addModel = service.add(linkModel); - return new Result<>(addModel); - } - - /** - * 更新链接 - * - * @return model - */ - @ApiOperation(value = "更新链接", notes = "更新链接",httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "update",method = RequestMethod.POST) - public Result update(@RequestBody LinkModel model) { - LinkModel linkModel = service.findById(model.getId()); - if (linkModel == null) { - return new Result<>(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - linkModel.setName(model.getName()); - linkModel.setUrl(model.getUrl()); - LinkModel updateModel = service.update(linkModel); - return new Result<>(updateModel); - } - - /** - * 删除链接 - * - * @param id id - * @return model - */ - @RequestMapping(value = "delete/{id}",method = RequestMethod.GET) - @ApiOperation(value = "删除链接", notes = "删除链接",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一id", required = true, dataType = "Long", paramType = "path") - }) - public Result delete(@PathVariable("id") Long id) { - LinkModel LinkModel = service.findById(id); - if (LinkModel == null) { - return new Result<>(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - LinkModel delModel = service.delete(id); - return new Result<>(delModel); - } -} diff --git a/api/src/main/java/info/xiaomo/api/controller/TechnologyController.java b/api/src/main/java/info/xiaomo/api/controller/TechnologyController.java deleted file mode 100644 index cac1e49d..00000000 --- a/api/src/main/java/info/xiaomo/api/controller/TechnologyController.java +++ /dev/null @@ -1,188 +0,0 @@ -package info.xiaomo.api.controller; - -import info.xiaomo.api.model.TechnologyModel; -import info.xiaomo.api.service.TechnologyService; -import info.xiaomo.core.constant.Code; -import info.xiaomo.core.base.BaseController; -import info.xiaomo.core.base.Result; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/11/3 14:36 - * @Description: 用户实体类 - * @Copyright(©) 2015 by xiaomo. - **/ - - -@RestController -@RequestMapping("/technology") -@Api(value = "TechnologyController",description = "技术中心相关api") -public class TechnologyController extends BaseController { - private final TechnologyService service; - - @Autowired - public TechnologyController(TechnologyService service) { - this.service = service; - } - - - @ApiOperation(value = "根据id查找技术", notes = "根据id查找技术",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "/findById/{id}",method = RequestMethod.GET) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一Id", required = true, dataType = "Long", paramType = "path") - }) - public Result findById(@PathVariable Long id) { - TechnologyModel model = service.findById(id); - if (model == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(model); - } - - @ApiOperation(value = "根据名字查找技术", notes = "根据名字查找技术",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "/findByName/{name}",method = RequestMethod.GET) - @ApiImplicitParams({ - @ApiImplicitParam(name = "name", value = "技术名字", required = true, dataType = "name", paramType = "path") - }) - public Result findByName(@PathVariable String name) { - TechnologyModel model = service.findByName(name); - if (model == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(model); - } - - /** - * 根据名字删除模型 - * - * @param name name - * @return result - */ - @Override - public Result delByName(@PathVariable String name) { - return null; - } - - /** - * 根据id删除模型 - * - * @param id id - * @return result - */ - @Override - public Result delById(@PathVariable Long id) { - return null; - } - - /** - * 添加模型 - * - * @param model model - * @return result - */ - @Override - public Result add(@RequestBody Object model) { - return null; - } - - /** - * 更新 - * - * @param model model - * @return result - */ - @Override - public Result update(@RequestBody Object model) { - return null; - } - - /** - * 批量删除 - * - * @param ids ids - * @return result - */ - @Override - public Result delByIds(@PathVariable List ids) { - return null; - } - - @ApiOperation(value = "查找所有", notes = "查找所有",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "/findAll",method = RequestMethod.GET) - public Result findAll() { - List all = service.findAll(); - if (all == null || all.isEmpty()) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(all); - } - - /** - * 带分页 - * - * @param start 起始页 - * @param pageSize 页码数 - * @return result - */ - @Override - public Result findAll(@PathVariable int start, @PathVariable int pageSize) { - return null; - } - - - @ApiOperation(value = "添加链接", notes = "添加链接",httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "/add", method = RequestMethod.POST) - public Result add(@RequestBody TechnologyModel model) { - TechnologyModel addModel = service.findByName(model.getName()); - if (addModel != null) { - return new Result(Code.REPEAT.getResultCode(), Code.REPEAT.getMessage()); - } - addModel = service.add(model); - return new Result<>(addModel); - } - - @ApiOperation(value = "更新链接", notes = "更新链接",httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "/update", method = RequestMethod.POST) - public Result update(@RequestBody TechnologyModel model) { - TechnologyModel update = service.findById(model.getId()); - if (update == null) { - return new Result(Code.CodeOR.getResultCode(), Code.CodeOR.getMessage()); - } - update = service.update(model); - return new Result<>(update); - } - - - @RequestMapping(value = "/delete/{id}",method = RequestMethod.GET) - @ApiOperation(value = "删除链接", notes = "删除链接",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一id", required = true, dataType = "Long", paramType = "path") - }) - public Result delete(@PathVariable Long id) { - TechnologyModel model = service.findById(id); - if (model == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - service.del(id); - return new Result<>(model); - } - -} diff --git a/api/src/main/java/info/xiaomo/api/controller/UserController.java b/api/src/main/java/info/xiaomo/api/controller/UserController.java deleted file mode 100644 index 7263ee0a..00000000 --- a/api/src/main/java/info/xiaomo/api/controller/UserController.java +++ /dev/null @@ -1,349 +0,0 @@ -package info.xiaomo.api.controller; - -import info.xiaomo.api.model.UserModel; -import info.xiaomo.api.service.UserService; -import info.xiaomo.core.constant.Code; -import info.xiaomo.core.constant.GenderType; -import info.xiaomo.core.base.BaseController; -import info.xiaomo.core.base.Result; -import info.xiaomo.core.exception.UserNotFoundException; -import info.xiaomo.core.untils.MD5Util; -import info.xiaomo.core.untils.MailUtil; -import info.xiaomo.core.untils.RandomUtil; -import info.xiaomo.core.untils.TimeUtil; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiOperation; -import org.hibernate.service.spi.ServiceException; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import java.text.ParseException; -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1 17:51 - * @Description: 用户控制器 - * @Copyright(©) 2015 by xiaomo. - **/ -@RestController -@RequestMapping("/user") -@Api(value = "UserController", description = "用户相关api") -public class UserController extends BaseController { - - private final UserService service; - - @Autowired - public UserController(UserService service) { - this.service = service; - } - - /** - * 根据id 查找用户 - * - * @param id id - * @return result - */ - @ApiOperation(value = "查找用户", notes = "查找用户", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "findById/{id}", method = RequestMethod.GET) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一id", required = true, dataType = "Long", paramType = "path"), - }) - public Result findUserById(@PathVariable("id") Long id) { - UserModel userModel = service.findUserById(id); - if (userModel == null) { - return new Result(Code.USER_NOT_FOUND.getResultCode(), Code.USER_NOT_FOUND.getMessage()); - } - return new Result<>(userModel); - } - - /** - * 添加用户 - */ - @ApiOperation(value = "添加用户", notes = "添加用户", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "addUser", method = RequestMethod.POST) - public Result addUser(@RequestBody UserModel user) { - UserModel userModel = service.findUserByEmail(user.getEmail()); - if (userModel != null) { - return new Result(Code.USER_REPEAT.getResultCode(), Code.USER_REPEAT.getMessage()); - } - String salt = RandomUtil.createSalt(); - user.setPassword(MD5Util.encode(user.getPassword(), salt)); - user.setValidateCode(MD5Util.encode(user.getEmail(), "")); - user.setSalt(salt); - service.addUser(user); - return new Result<>(user); - } - - /** - * 注册 - * - * @return result - */ - @ApiOperation(value = "注册", notes = "注册用户并发送验证链接到邮箱", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "用户名", required = true, dataType = "String", paramType = "path"), - @ApiImplicitParam(name = "密码", required = true, dataType = "String", paramType = "path") - }) - @RequestMapping(value = "register/{email}/{password}", method = RequestMethod.POST) - public Result register(@PathVariable("email") String email, @PathVariable("password") String password) throws Exception { - UserModel userModel = service.findUserByEmail(email); - //邮箱被占用 - if (userModel != null) { - return new Result(Code.USER_REPEAT.getResultCode(), Code.USER_REPEAT.getMessage()); - } - String redirectValidateUrl = MailUtil.redirectValidateUrl(email, password); - MailUtil.send(email, "帐号激活邮件", redirectValidateUrl); - return new Result<>(redirectValidateUrl); - } - - - /** - * 登录 - * - * @return result - */ - @ApiOperation(value = "登录", notes = "登录", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "email", value = "邮箱", required = true, dataType = "String", paramType = "path"), - @ApiImplicitParam(name = "password", value = "密码", required = true, dataType = "String", paramType = "path") - }) - @RequestMapping(value = "login/{email}/{password}", method = RequestMethod.POST) - public Result login(@PathVariable("email") String email, @PathVariable("password") String password) { - UserModel userModel = service.findUserByEmail(email); - //找不到用户 - if (userModel == null) { - return new Result(Code.USER_NOT_FOUND.getResultCode(), Code.USER_NOT_FOUND.getMessage()); - } - //密码不正确 - if (!MD5Util.encode(password, userModel.getSalt()).equals(userModel.getPassword())) { - return new Result(Code.AUTH_FAILED.getResultCode(), Code.AUTH_FAILED.getMessage()); - } - return new Result<>(userModel); - } - - - /** - * 修改密码 - * - * @return model - * @throws UserNotFoundException UserNotFoundException - */ - @ApiOperation(value = "修改密码", notes = "修改密码", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "changePassword", method = RequestMethod.POST) - public Result changePassword(@RequestBody UserModel user) throws UserNotFoundException { - UserModel userByEmail = service.findUserByEmail(user.getEmail()); - if (userByEmail == null) { - return new Result(Code.USER_NOT_FOUND.getResultCode(), Code.USER_NOT_FOUND.getMessage()); - } - String salt = RandomUtil.createSalt(); - userByEmail.setPassword(MD5Util.encode(user.getPassword(), salt)); - userByEmail.setNickName(user.getNickName()); - userByEmail.setSalt(salt); - UserModel updateUser = service.updateUser(userByEmail); - return new Result<>(updateUser); - } - - /** - * 更新用户信息 - * - * @return model - * @throws UserNotFoundException UserNotFoundException - */ - @ApiOperation(value = "更新用户信息", notes = "更新用户信息", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "update", method = RequestMethod.POST) - public Result update(@RequestBody UserModel user) throws UserNotFoundException { - UserModel userModel = service.findUserByEmail(user.getEmail()); - if (userModel == null) { - return new Result(Code.USER_NOT_FOUND.getResultCode(), Code.USER_NOT_FOUND.getMessage()); - } - userModel = new UserModel(); - userModel.setEmail(user.getEmail()); - userModel.setNickName(user.getNickName()); - userModel.setPhone(user.getPhone()); - userModel.setAddress(user.getAddress()); - userModel.setGender(user.getGender()); - userModel.setValidateCode(MD5Util.encode(user.getEmail(), "")); - UserModel updateUser = service.updateUser(userModel); - return new Result<>(updateUser); - } - - /** - * 返回所有用户数据 - * - * @return result - */ - @ApiOperation(value = "返回所有用户数据", notes = "返回所有用户数据", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "findAll", method = RequestMethod.GET) - public Result getAll() { - List pages = service.findAll(); - if (pages == null || pages.size() <= 0) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(pages); - } - - - /** - * 根据id删除用户 - * - * @param id id - * @return result - */ - @RequestMapping(value = "delete/{id}", method = RequestMethod.GET) - @ApiOperation(value = "根据id删除用户", notes = "根据id删除用户", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一id", required = true, dataType = "Long", paramType = "path"), - }) - public Result deleteUserById(@PathVariable("id") Long id) throws UserNotFoundException { - UserModel userModel = service.deleteUserById(id); - if (userModel == null) { - return new Result(Code.USER_NOT_FOUND.getResultCode(), Code.USER_NOT_FOUND.getMessage()); - } - return new Result<>(userModel); - } - - /** - * 处理激活 - */ - @ApiOperation(value = "处理激活", notes = "处理激活", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "validateEmail", method = RequestMethod.POST) - public Result validateEmail(@RequestBody UserModel user - ) throws ServiceException, ParseException, UserNotFoundException { - //数据访问层,通过email获取用户信息 - UserModel userModel = service.findUserByEmail(user.getEmail()); - if (userModel != null) { - return new Result(Code.USER_REPEAT.getResultCode(), Code.USER_REPEAT.getMessage()); - } - //验证码是否过期 - if (user.getRegisterTime() + TimeUtil.ONE_DAY_IN_MILLISECONDS * 2 < TimeUtil.getNowOfMills()) { - LOGGER.info("用户{}使用己过期的激活码{}激活邮箱失败!", user.getEmail(), user.getEmail()); - return new Result(Code.TIME_PASSED.getResultCode(), Code.TIME_PASSED.getMessage()); - } - //激活 - String salt = RandomUtil.createSalt(); - userModel = new UserModel(); - userModel.setNickName(user.getNickName()); - userModel.setEmail(user.getEmail()); - userModel.setGender(GenderType.secret); - userModel.setValidateCode(MD5Util.encode(user.getEmail(), salt)); - userModel.setPhone(0L); - userModel.setSalt(salt); - userModel.setAddress(""); - userModel.setPassword(MD5Util.encode(user.getPassword(), salt)); - userModel = service.addUser(userModel); - LOGGER.info("用户{}使用激活码{}激活邮箱成功!", userModel.getEmail(), userModel.getValidateCode()); - return new Result<>(userModel); - } - - /** - * 查找所有(不带分页) - * - * @return result - */ - @Override - public Result findAll() { - return null; - } - - /** - * 带分页 - * - * @param start 起始页 - * @param pageSize 页码数 - * @return result - */ - @Override - public Result findAll(@PathVariable int start, @PathVariable int pageSize) { - return null; - } - - /** - * 根据id查看模型 - * - * @param id id - * @return result - */ - @Override - public Result findById(@PathVariable Long id) { - return null; - } - - /** - * 根据名字查找模型 - * - * @param name name - * @return result - */ - @Override - public Result findByName(@PathVariable String name) { - return null; - } - - /** - * 根据名字删除模型 - * - * @param name name - * @return result - */ - @Override - public Result delByName(@PathVariable String name) { - return null; - } - - /** - * 根据id删除模型 - * - * @param id id - * @return result - */ - @Override - public Result delById(@PathVariable Long id) { - return null; - } - - /** - * 添加模型 - * - * @param model model - * @return result - */ - @Override - public Result add(@RequestBody Object model) { - return null; - } - - /** - * 更新 - * - * @param model model - * @return result - */ - @Override - public Result update(@RequestBody Object model) { - return null; - } - - /** - * 批量删除 - * - * @param ids ids - * @return result - */ - @Override - public Result delByIds(@PathVariable List ids) { - return null; - } -} diff --git a/api/src/main/java/info/xiaomo/api/controller/WebSetController.java b/api/src/main/java/info/xiaomo/api/controller/WebSetController.java deleted file mode 100644 index 712ca7c0..00000000 --- a/api/src/main/java/info/xiaomo/api/controller/WebSetController.java +++ /dev/null @@ -1,172 +0,0 @@ -package info.xiaomo.api.controller; - -import info.xiaomo.api.model.SystemSetModel; -import info.xiaomo.api.service.WebSetService; -import info.xiaomo.core.constant.Code; -import info.xiaomo.core.base.BaseController; -import info.xiaomo.core.base.Result; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/5/6 14:21 - * @Description: 系统设置控制器 - * @Copyright(©) 2015 by xiaomo. - **/ -@RestController -@RequestMapping("/webSet") -@Api(value = "WebSetController",description = "网站设置相关api") -public class WebSetController extends BaseController { - - private final WebSetService service; - - @Autowired - public WebSetController(WebSetService service) { - this.service = service; - } - - /** - * 查找所有 - * - * @return list - */ - @ApiOperation(value = "查找所有", notes = "查找所有",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "findAll", method = RequestMethod.GET) - public Result findAll() { - List list = service.findAll(); - if (list.isEmpty() || list.size() == 0) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result(list); - - } - - /** - * 带分页 - * - * @param start 起始页 - * @param pageSize 页码数 - * @return result - */ - @Override - public Result findAll(@PathVariable int start, @PathVariable int pageSize) { - return null; - } - - /** - * 根据id查看模型 - * - * @param id id - * @return result - */ - @Override - public Result findById(@PathVariable Long id) { - return null; - } - - /** - * 根据名字查找模型 - * - * @param name name - * @return result - */ - @Override - public Result findByName(@PathVariable String name) { - return null; - } - - /** - * 根据名字删除模型 - * - * @param name name - * @return result - */ - @Override - public Result delByName(@PathVariable String name) { - return null; - } - - /** - * 根据id删除模型 - * - * @param id id - * @return result - */ - @Override - public Result delById(@PathVariable Long id) { - return null; - } - - /** - * 添加模型 - * - * @param model model - * @return result - */ - @Override - public Result add(@RequestBody Object model) { - return null; - } - - /** - * 更新 - * - * @param model model - * @return result - */ - @Override - public Result update(@RequestBody Object model) { - return null; - } - - /** - * 批量删除 - * - * @param ids ids - * @return result - */ - @Override - public Result delByIds(@PathVariable List ids) { - return null; - } - - /** - * 更新 - * - * @return SystemSetModel - */ - @ApiOperation(value = "更新", notes = "更新",httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "update", method = RequestMethod.POST) - public Result update(@RequestBody SystemSetModel systemSetModel) { - List all = service.findAll(); - if (all.size() > 1) { - return new Result(Code.CodeOR.getResultCode(), Code.CodeOR.getMessage()); - } - for (SystemSetModel setModel : all) { - setModel.setSiteName(systemSetModel.getSiteName()); - setModel.setIcon(systemSetModel.getIcon()); - setModel.setFromYear(systemSetModel.getFromYear()); - setModel.setToYear(systemSetModel.getToYear()); - setModel.setBeianUrl(systemSetModel.getBeianUrl()); - setModel.setBeianNumber(systemSetModel.getBeianNumber()); - SystemSetModel add = service.update(setModel); - return new Result(add); - } - return new Result(Code.CodeOR.getResultCode(), Code.CodeOR.getMessage()); - } -} diff --git a/api/src/main/java/info/xiaomo/api/controller/WorksController.java b/api/src/main/java/info/xiaomo/api/controller/WorksController.java deleted file mode 100644 index f2a0513a..00000000 --- a/api/src/main/java/info/xiaomo/api/controller/WorksController.java +++ /dev/null @@ -1,189 +0,0 @@ -package info.xiaomo.api.controller; - -import info.xiaomo.api.model.WorksModel; -import info.xiaomo.api.service.WorksService; -import info.xiaomo.core.constant.Code; -import info.xiaomo.core.base.BaseController; -import info.xiaomo.core.base.Result; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiImplicitParams; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/11/3 14:36 - * @Description: 用户实体类 - * @Copyright(©) 2015 by xiaomo. - **/ - - -@RequestMapping("/works") -@RestController -@Api(value = "WorksController",description = "作品相关api") -public class WorksController extends BaseController { - - private final WorksService service; - - @Autowired - public WorksController(WorksService service) { - this.service = service; - } - - - @RequestMapping(value = "/findById/{id}",method = RequestMethod.GET) - @ApiOperation(value = "根据id查找作品", notes = "根据id查找作品",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一id", required = true, dataType = "Long", paramType = "path"), - }) - public Result findById(@PathVariable Long id) { - WorksModel model = service.findById(id); - if (model == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(model); - } - - @RequestMapping(value = "/findAll",method = RequestMethod.GET) - @ApiOperation(value = "查找所有", notes = "查找所有",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - public Result findAll() { - List all = service.findAll(); - if (all == null || all.isEmpty()) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(all); - } - - /** - * 带分页 - * - * @param start 起始页 - * @param pageSize 页码数 - * @return result - */ - @Override - public Result findAll(@PathVariable int start, @PathVariable int pageSize) { - return null; - } - - - @RequestMapping(value = "/findByName/{name}",method = RequestMethod.GET) - @ApiOperation(value = "根据名字查找作品", notes = "根据名字查找作品",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @ApiImplicitParams({ - @ApiImplicitParam(name = "name", value = "作品名字", required = true, dataType = "String", paramType = "path"), - }) - public Result findByName(@PathVariable String name) { - WorksModel model = service.findByName(name); - if (model == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - return new Result<>(model); - } - - /** - * 根据名字删除模型 - * - * @param name name - * @return result - */ - @Override - public Result delByName(@PathVariable String name) { - return null; - } - - /** - * 根据id删除模型 - * - * @param id id - * @return result - */ - @Override - public Result delById(@PathVariable Long id) { - return null; - } - - /** - * 添加模型 - * - * @param model model - * @return result - */ - @Override - public Result add(@RequestBody Object model) { - return null; - } - - /** - * 更新 - * - * @param model model - * @return result - */ - @Override - public Result update(@RequestBody Object model) { - return null; - } - - /** - * 批量删除 - * - * @param ids ids - * @return result - */ - @Override - public Result delByIds(@PathVariable List ids) { - return null; - } - - @ApiOperation(value = "添加作品", notes = "添加作品",httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "/add", method = RequestMethod.POST) - public Result add(@RequestBody WorksModel model) { - WorksModel addModel = service.findByName(model.getName()); - if (addModel != null) { - return new Result(Code.REPEAT.getResultCode(), Code.REPEAT.getMessage()); - } - addModel = service.add(model); - return new Result<>(addModel); - } - - @ApiOperation(value = "更新作品", notes = "更新作品",httpMethod = "POST", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "/update", method = RequestMethod.POST) - public Result update(@RequestBody WorksModel model) { - WorksModel worksModel = service.findById(model.getId()); - if (worksModel == null) { - return new Result(Code.CodeOR.getResultCode(), Code.CodeOR.getMessage()); - } - worksModel = service.update(worksModel); - return new Result<>(worksModel); - } - - - @ApiOperation(value = "根据id删除作品", notes = "根据id删除作品",httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) - @RequestMapping(value = "/delete/{id}",method = RequestMethod.GET) - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "唯一id", required = true, dataType = "Long", paramType = "path"), - }) - public Result delete(@PathVariable Long id) { - WorksModel model = service.findById(id); - if (model == null) { - return new Result(Code.NULL_DATA.getResultCode(), Code.NULL_DATA.getMessage()); - } - service.del(id); - return new Result<>(model); - } - -} diff --git a/api/src/main/java/info/xiaomo/api/dao/AdminUserDao.java b/api/src/main/java/info/xiaomo/api/dao/AdminUserDao.java deleted file mode 100644 index 1115bd11..00000000 --- a/api/src/main/java/info/xiaomo/api/dao/AdminUserDao.java +++ /dev/null @@ -1,33 +0,0 @@ -package info.xiaomo.api.dao; - -import info.xiaomo.api.model.AdminModel; -import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.stereotype.Repository; - -/** - * │\__╭╭╭╭╭__/│ - * │         │ - * │         │ - * │ -      -│ - * │≡    o ≡ │ - * │         │ - * ╰——┬O◤▽◥O┬——╯ - * |  o  | - * |╭---╮把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 16/4/2 13:08 - * @Copyright(©) 2015 by xiaomo. - */ -@Repository -public interface AdminUserDao extends JpaRepository { - - AdminModel findAdminUserByUserName(String s); - -} diff --git a/api/src/main/java/info/xiaomo/api/dao/ChangeLogDao.java b/api/src/main/java/info/xiaomo/api/dao/ChangeLogDao.java deleted file mode 100644 index 05b5eaac..00000000 --- a/api/src/main/java/info/xiaomo/api/dao/ChangeLogDao.java +++ /dev/null @@ -1,25 +0,0 @@ -package info.xiaomo.api.dao; - -import info.xiaomo.api.model.ChangeLogModel; -import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.stereotype.Repository; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1119:52 - * @Copyright(©) 2015 by xiaomo. - **/ -@Repository -public interface ChangeLogDao extends JpaRepository { - - ChangeLogModel findByName(String name); - -} diff --git a/api/src/main/java/info/xiaomo/api/dao/LinkDao.java b/api/src/main/java/info/xiaomo/api/dao/LinkDao.java deleted file mode 100644 index f75a94ff..00000000 --- a/api/src/main/java/info/xiaomo/api/dao/LinkDao.java +++ /dev/null @@ -1,25 +0,0 @@ -package info.xiaomo.api.dao; - -import info.xiaomo.api.model.LinkModel; -import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.stereotype.Repository; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1119:52 - * @Copyright(©) 2015 by xiaomo. - **/ -@Repository -public interface LinkDao extends JpaRepository { - - LinkModel findLinkByName(String name); - -} diff --git a/api/src/main/java/info/xiaomo/api/dao/TechnologyDao.java b/api/src/main/java/info/xiaomo/api/dao/TechnologyDao.java deleted file mode 100644 index 75a0ae3e..00000000 --- a/api/src/main/java/info/xiaomo/api/dao/TechnologyDao.java +++ /dev/null @@ -1,34 +0,0 @@ -package info.xiaomo.api.dao; - -import info.xiaomo.api.model.TechnologyModel; -import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.stereotype.Repository; - -/** - * │\__╭╭╭╭╭__/│ - * │         │ - * │         │ - * │ -      -│ - * │≡    o ≡ │ - * │         │ - * ╰——┬O◤▽◥O┬——╯ - * |  o  | - * |╭---╮把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 16/4/2 13:08 - * @Copyright(©) 2015 by xiaomo. - */ -@Repository -public interface TechnologyDao extends JpaRepository { - - TechnologyModel findTechnologyByName(String name); - - -} diff --git a/api/src/main/java/info/xiaomo/api/dao/UserDao.java b/api/src/main/java/info/xiaomo/api/dao/UserDao.java deleted file mode 100644 index 76106962..00000000 --- a/api/src/main/java/info/xiaomo/api/dao/UserDao.java +++ /dev/null @@ -1,33 +0,0 @@ -package info.xiaomo.api.dao; - -import info.xiaomo.api.model.UserModel; -import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.stereotype.Repository; - -/** - * │\__╭╭╭╭╭__/│ - * │         │ - * │         │ - * │ -      -│ - * │≡    o ≡ │ - * │         │ - * ╰——┬O◤▽◥O┬——╯ - * |  o  | - * |╭---╮把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 16/4/3 10:53 - * @Copyright(©) 2015 by xiaomo. - */ - -@Repository -public interface UserDao extends JpaRepository { - - UserModel findUserByEmail(String email); -} diff --git a/api/src/main/java/info/xiaomo/api/dao/WebSetDao.java b/api/src/main/java/info/xiaomo/api/dao/WebSetDao.java deleted file mode 100644 index 088854c6..00000000 --- a/api/src/main/java/info/xiaomo/api/dao/WebSetDao.java +++ /dev/null @@ -1,23 +0,0 @@ -package info.xiaomo.api.dao; - -import info.xiaomo.api.model.SystemSetModel; -import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.stereotype.Repository; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/5/6 14:26 - * @Copyright(©) 2015 by xiaomo. - **/ -@Repository -public interface WebSetDao extends JpaRepository { - -} diff --git a/api/src/main/java/info/xiaomo/api/dao/WorksDao.java b/api/src/main/java/info/xiaomo/api/dao/WorksDao.java deleted file mode 100644 index eaf47a85..00000000 --- a/api/src/main/java/info/xiaomo/api/dao/WorksDao.java +++ /dev/null @@ -1,33 +0,0 @@ -package info.xiaomo.api.dao; - -import info.xiaomo.api.model.WorksModel; -import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.stereotype.Repository; - -/** - * │\__╭╭╭╭╭__/│ - * │         │ - * │         │ - * │ -      -│ - * │≡    o ≡ │ - * │         │ - * ╰——┬O◤▽◥O┬——╯ - * |  o  | - * |╭---╮把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 16/4/2 13:08 - * @Copyright(©) 2015 by xiaomo. - */ -@Repository -public interface WorksDao extends JpaRepository { - - WorksModel findWorkByName(String name); - -} diff --git a/api/src/main/java/info/xiaomo/api/dao/base/CommonDao.java b/api/src/main/java/info/xiaomo/api/dao/base/CommonDao.java deleted file mode 100644 index 5c4aef25..00000000 --- a/api/src/main/java/info/xiaomo/api/dao/base/CommonDao.java +++ /dev/null @@ -1,55 +0,0 @@ -package info.xiaomo.api.dao.base; - -import info.xiaomo.core.base.BaseModel; -import org.springframework.stereotype.Repository; -import org.springframework.transaction.annotation.Transactional; - -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; -import javax.persistence.Query; -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1 20:46 - * @Description: 公共dao层 - * @Copyright(©) 2015 by xiaomo. - **/ -@Repository -@Transactional -public class CommonDao { - - @PersistenceContext - private EntityManager entityManager; - - public T get(Class type, long id) { - return entityManager.find(type, id); - } - - public T update(T entity) { - return entityManager.merge(entity); - } - - public void save(T entity) { - entityManager.persist(entity); - } - - public void delete(T entity) { - entityManager.remove(entity); - } - - public List getAll(Class tableClass) { - Query query = entityManager.createQuery("from " + tableClass.getSimpleName()); - return query.getResultList(); - } - - -} \ No newline at end of file diff --git a/api/src/main/java/info/xiaomo/api/model/ChangeLogModel.java b/api/src/main/java/info/xiaomo/api/model/ChangeLogModel.java deleted file mode 100644 index 869ca686..00000000 --- a/api/src/main/java/info/xiaomo/api/model/ChangeLogModel.java +++ /dev/null @@ -1,49 +0,0 @@ -package info.xiaomo.api.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import info.xiaomo.core.base.BaseModel; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.*; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; -import java.io.Serializable; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/517:17 - * @Copyright(©) 2015 by xiaomo. - **/ -@Entity -@Table(name = "changeLog") -// lomlok -@Data -@ToString(callSuper = true) -@EqualsAndHashCode(callSuper = false) -@AllArgsConstructor -@NoArgsConstructor -// fast jackson -@JsonInclude(JsonInclude.Include.NON_EMPTY) -// swagger ui -@ApiModel(value = "更新日志实体类") -public class ChangeLogModel extends BaseModel implements Serializable { - - @ApiModelProperty(value = "更新日志描述", required = true) - @Column(name = "Name") - private String name; - - @ApiModelProperty(value = "上线时间(字符串自己编辑)", required = true) - @Column(name = "OnlineTime") - private String onlineTime; -} diff --git a/api/src/main/java/info/xiaomo/api/model/LinkModel.java b/api/src/main/java/info/xiaomo/api/model/LinkModel.java deleted file mode 100644 index f501d823..00000000 --- a/api/src/main/java/info/xiaomo/api/model/LinkModel.java +++ /dev/null @@ -1,49 +0,0 @@ -package info.xiaomo.api.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import info.xiaomo.core.base.BaseModel; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.*; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; -import java.io.Serializable; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1119:47 - * @Copyright(©) 2015 by xiaomo. - **/ -@Entity -@Table(name = "link") -// lomlok -@Data -@ToString(callSuper = true) -@EqualsAndHashCode(callSuper = false) -@AllArgsConstructor -@NoArgsConstructor -// fast jackson -@JsonInclude(JsonInclude.Include.NON_EMPTY) -// swagger ui -@ApiModel(value = "友情链接实体类") -public class LinkModel extends BaseModel implements Serializable { - - @ApiModelProperty(value = "友情链接的名字", required = true) - @Column(name = "Name") - private String name; - - @ApiModelProperty(value = "友情链接的URL", required = true) - @Column(name = "Url") - private String url; -} diff --git a/api/src/main/java/info/xiaomo/api/model/SystemSetModel.java b/api/src/main/java/info/xiaomo/api/model/SystemSetModel.java deleted file mode 100644 index 32903b79..00000000 --- a/api/src/main/java/info/xiaomo/api/model/SystemSetModel.java +++ /dev/null @@ -1,67 +0,0 @@ -package info.xiaomo.api.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import info.xiaomo.core.base.BaseModel; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.*; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; -import java.io.Serializable; -import java.util.Calendar; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/517:17 - * @Copyright(©) 2015 by xiaomo. - **/ -@Entity -@Table(name = "systemSet") -// lomlok -@Data -@ToString(callSuper = true) -@EqualsAndHashCode(callSuper = false) -@AllArgsConstructor -@NoArgsConstructor -// fast jackson -@JsonInclude(JsonInclude.Include.NON_EMPTY) -// swagger ui -@ApiModel(value = "系统设置实体类") -public class SystemSetModel extends BaseModel implements Serializable { - - @ApiModelProperty(value = "站点名字", required = false) - @Column(name = "SiteName") - private String siteName = "小莫-fighting"; - - @ApiModelProperty(value = "站点图标") - @Column(name = "Icon") - private String icon = ""; - - @ApiModelProperty(value = "footer的开始年份") - @Column(name = "FromYear") - private int fromYear = Calendar.getInstance().get(Calendar.YEAR); - - @ApiModelProperty(value = "footer的结束年份") - @Column(name = "ToYear") - private int toYear = Calendar.getInstance().get(Calendar.YEAR); - - @ApiModelProperty(value = "备案号") - @Column(name = "BeianNumber") - private String beianNumber = "浙ICP备15009606号"; - - @ApiModelProperty(value = "备案地址") - @Column(name = "BeianUrl") - private String beianUrl = "http://www.miitbeian.gov.cn/"; - -} diff --git a/api/src/main/java/info/xiaomo/api/model/TechnologyModel.java b/api/src/main/java/info/xiaomo/api/model/TechnologyModel.java deleted file mode 100644 index af411958..00000000 --- a/api/src/main/java/info/xiaomo/api/model/TechnologyModel.java +++ /dev/null @@ -1,58 +0,0 @@ -package info.xiaomo.api.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import info.xiaomo.core.base.BaseModel; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.*; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/11/3 14:27 - * @Copyright(©) 2015 by xiaomo. - **/ - -@Entity -@Table(name = "technology") -// lomlok -@Data -@ToString(callSuper = true) -@EqualsAndHashCode(callSuper = false) -@AllArgsConstructor -@NoArgsConstructor -// fast jackson -@JsonInclude(JsonInclude.Include.NON_EMPTY) -// swagger ui -@ApiModel(value = "技术中心实体类") -public class TechnologyModel extends BaseModel { - - @ApiModelProperty(value = "技术名字") - @Column(name = "Name") - private String name; - - @ApiModelProperty(value = "url") - @Column(name = "Url") - private String url; - - @ApiModelProperty(value = "简介") - @Column(name = "Summary") - private String summary; - - @ApiModelProperty(value = "图片链接") - @Column(name = "ImgUrl") - private String imgUrl; - -} diff --git a/api/src/main/java/info/xiaomo/api/model/UserModel.java b/api/src/main/java/info/xiaomo/api/model/UserModel.java deleted file mode 100644 index 92877fa8..00000000 --- a/api/src/main/java/info/xiaomo/api/model/UserModel.java +++ /dev/null @@ -1,81 +0,0 @@ -package info.xiaomo.api.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import info.xiaomo.core.base.BaseModel; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.*; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; -import java.io.Serializable; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1 17:36 - * @Copyright(©) 2015 by xiaomo. - **/ -@Entity -@Table(name = "user") -// lomlok -@Data -@ToString(callSuper = true) -@EqualsAndHashCode(callSuper = false) -@AllArgsConstructor -@NoArgsConstructor -// fast jackson -@JsonInclude(JsonInclude.Include.NON_EMPTY) -// swagger ui -@ApiModel(value = "用户实体类") -public class UserModel extends BaseModel implements Serializable { - - @ApiModelProperty(value = "登录用户") - @Column(name = "Email") - private String email; - - @ApiModelProperty(value = "昵称") - @Column(name = "NickName") - private String nickName; - - @ApiModelProperty(value = "密码") - @Column(name = "Password") - private String password; - - @ApiModelProperty(value = "盐值") - @Column(name = "Salt") - private String salt; - - @ApiModelProperty(value = "激活码") - @Column(name = "ValidateCode") - private String validateCode; - - @ApiModelProperty(value = "性别:1男2女0保密") - @Column(name = "Gender") - private int gender = 0; - - @ApiModelProperty(value = "电话") - @Column(name = "Phone") - private Long phone = 0L; - - @ApiModelProperty(value = "图片地址") - @Column(name = "ImgUrl") - private String imgUrl = ""; - - @ApiModelProperty(value = "地址") - @Column(name = "Address") - private String address = ""; - - @ApiModelProperty(value = "注册时间(时间戳)") - @Column(name = "RegisterTime") - private Long RegisterTime = 0L; -} diff --git a/api/src/main/java/info/xiaomo/api/model/WorksModel.java b/api/src/main/java/info/xiaomo/api/model/WorksModel.java deleted file mode 100644 index 28d8c263..00000000 --- a/api/src/main/java/info/xiaomo/api/model/WorksModel.java +++ /dev/null @@ -1,62 +0,0 @@ -package info.xiaomo.api.model; - - -import com.fasterxml.jackson.annotation.JsonInclude; -import info.xiaomo.core.base.BaseModel; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.*; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/11/3 14:15 - * @Copyright(©) 2015 by xiaomo. - **/ - -// hibernate -@Entity -@Table(name = "works") -// lomlok -@Data -@ToString(callSuper = true) -@EqualsAndHashCode(callSuper = false) -@AllArgsConstructor -@NoArgsConstructor -// fast jackson -@JsonInclude(JsonInclude.Include.NON_EMPTY) -// swagger ui -@ApiModel(value = "作品实体类") -public class WorksModel extends BaseModel { - - @ApiModelProperty(value = "作品") - @Column(name = "Name") - private String name; - - @ApiModelProperty(value = "url") - @Column(name = "Url") - private String url; - - @ApiModelProperty(value = "简介") - @Column(name = "Summary") - private String summary; - - @ApiModelProperty(value = "完成时间(字符串自己编辑)") - @Column(name = "CompleteTime") - private String completeTime; - - @ApiModelProperty(value = "图片链接") - @Column(name = "ImgUrl") - private String imgUrl; -} diff --git a/api/src/main/java/info/xiaomo/api/service/AdminUserService.java b/api/src/main/java/info/xiaomo/api/service/AdminUserService.java deleted file mode 100644 index ef735bd6..00000000 --- a/api/src/main/java/info/xiaomo/api/service/AdminUserService.java +++ /dev/null @@ -1,48 +0,0 @@ -package info.xiaomo.api.service; - -import info.xiaomo.api.model.AdminModel; -import info.xiaomo.core.exception.UserNotFoundException; -import org.springframework.data.domain.Page; - -import java.util.List; - -/** - * │\__╭╭╭╭╭__/│ - * │         │ - * │         │ - * │ -      -│ - * │≡    o ≡ │ - * │         │ - * ╰——┬O◤▽◥O┬——╯ - * |  o  | - * |╭---╮把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 16/4/2 13:04 - * @Copyright(©) 2015 by xiaomo. - */ -public interface AdminUserService { - - AdminModel findAdminUserByUserName(String userName); - - AdminModel findAdminUserById(Long id); - - AdminModel addAdminUser(AdminModel model); - - AdminModel updateAdminUser(AdminModel model) throws UserNotFoundException; - - Page getAdminUsers(int start, int pageSize); - - List getAdminUsers(); - - AdminModel deleteAdminUserById(Long id) throws UserNotFoundException; - - AdminModel forbidAdminUserById(Long id) throws UserNotFoundException; - -} diff --git a/api/src/main/java/info/xiaomo/api/service/ChangeLogService.java b/api/src/main/java/info/xiaomo/api/service/ChangeLogService.java deleted file mode 100644 index 167122b6..00000000 --- a/api/src/main/java/info/xiaomo/api/service/ChangeLogService.java +++ /dev/null @@ -1,36 +0,0 @@ -package info.xiaomo.api.service; - -import info.xiaomo.api.model.ChangeLogModel; -import org.springframework.data.domain.Page; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1119:49 - * @Copyright(©) 2015 by xiaomo. - **/ -public interface ChangeLogService { - - ChangeLogModel findById(Long id); - - ChangeLogModel findByName(String name); - - Page findAll(int start, int pageSize); - - List findAll(); - - ChangeLogModel add(ChangeLogModel model); - - ChangeLogModel update(ChangeLogModel model); - - ChangeLogModel delete(Long id); -} diff --git a/api/src/main/java/info/xiaomo/api/service/LinkService.java b/api/src/main/java/info/xiaomo/api/service/LinkService.java deleted file mode 100644 index 6637d286..00000000 --- a/api/src/main/java/info/xiaomo/api/service/LinkService.java +++ /dev/null @@ -1,38 +0,0 @@ -package info.xiaomo.api.service; - - -import info.xiaomo.api.model.LinkModel; -import org.springframework.data.domain.Page; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1119:49 - * @Copyright(©) 2015 by xiaomo. - **/ -public interface LinkService { - - LinkModel findById(Long id); - - LinkModel findByName(String name); - - Page findAll(int start, int pageSize); - - List findAll(); - - LinkModel add(LinkModel model); - - LinkModel update(LinkModel model); - - LinkModel delete(Long id); - -} diff --git a/api/src/main/java/info/xiaomo/api/service/TechnologyService.java b/api/src/main/java/info/xiaomo/api/service/TechnologyService.java deleted file mode 100644 index 8d9ad3af..00000000 --- a/api/src/main/java/info/xiaomo/api/service/TechnologyService.java +++ /dev/null @@ -1,39 +0,0 @@ -package info.xiaomo.api.service; - - -import info.xiaomo.api.model.TechnologyModel; -import org.springframework.data.domain.Page; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/11/3 14:33 - * @Copyright(©) 2015 by xiaomo. - **/ - -public interface TechnologyService { - - List findAll(); - - Page findAll(int start, int pageSize); - - TechnologyModel findById(Long id); - - TechnologyModel findByName(String name); - - TechnologyModel update(TechnologyModel model); - - TechnologyModel add(TechnologyModel model); - - void del(Long id); - -} diff --git a/api/src/main/java/info/xiaomo/api/service/UserService.java b/api/src/main/java/info/xiaomo/api/service/UserService.java deleted file mode 100644 index 1aebebcd..00000000 --- a/api/src/main/java/info/xiaomo/api/service/UserService.java +++ /dev/null @@ -1,43 +0,0 @@ -package info.xiaomo.api.service; - - -import info.xiaomo.api.model.UserModel; -import info.xiaomo.core.exception.UserNotFoundException; -import org.springframework.data.domain.Page; -import org.springframework.transaction.annotation.Isolation; -import org.springframework.transaction.annotation.Propagation; -import org.springframework.transaction.annotation.Transactional; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1 17:45 - * @Copyright(©) 2015 by xiaomo. - **/ -public interface UserService { - - UserModel findUserById(Long id); - - @Transactional(isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED) - UserModel findUserByEmail(String email); - - UserModel addUser(UserModel model); - - UserModel updateUser(UserModel model) throws UserNotFoundException; - - Page findAll(int start, int pageSize); - - List findAll(); - - UserModel deleteUserById(Long id) throws UserNotFoundException; - -} diff --git a/api/src/main/java/info/xiaomo/api/service/WebSetService.java b/api/src/main/java/info/xiaomo/api/service/WebSetService.java deleted file mode 100644 index 1eb2c1e0..00000000 --- a/api/src/main/java/info/xiaomo/api/service/WebSetService.java +++ /dev/null @@ -1,30 +0,0 @@ -package info.xiaomo.api.service; - - -import info.xiaomo.api.model.SystemSetModel; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/5/6 14:23 - * @Copyright(©) 2015 by xiaomo. - **/ -public interface WebSetService { - - List findAll(); - - SystemSetModel findById(Long id); - - SystemSetModel update(SystemSetModel model); - - SystemSetModel add(SystemSetModel model); -} diff --git a/api/src/main/java/info/xiaomo/api/service/WorksService.java b/api/src/main/java/info/xiaomo/api/service/WorksService.java deleted file mode 100644 index c54474c6..00000000 --- a/api/src/main/java/info/xiaomo/api/service/WorksService.java +++ /dev/null @@ -1,38 +0,0 @@ -package info.xiaomo.api.service; - - -import info.xiaomo.api.model.WorksModel; -import org.springframework.data.domain.Page; - -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/11/3 14:33 - * @Copyright(©) 2015 by xiaomo. - **/ - -public interface WorksService { - - List findAll(); - - Page findAll(int start, int pageSize); - - WorksModel findById(Long id); - - WorksModel findByName(String name); - - WorksModel update(WorksModel model); - - WorksModel add(WorksModel model); - - void del(Long id); -} diff --git a/api/src/main/java/info/xiaomo/api/service/impl/AdminUserServiceImpl.java b/api/src/main/java/info/xiaomo/api/service/impl/AdminUserServiceImpl.java deleted file mode 100644 index 0dc6811d..00000000 --- a/api/src/main/java/info/xiaomo/api/service/impl/AdminUserServiceImpl.java +++ /dev/null @@ -1,112 +0,0 @@ -package info.xiaomo.api.service.impl; - -import info.xiaomo.api.dao.AdminUserDao; -import info.xiaomo.api.model.AdminModel; -import info.xiaomo.api.service.AdminUserService; -import info.xiaomo.core.exception.UserNotFoundException; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; -import org.springframework.stereotype.Service; - -import java.util.Date; -import java.util.List; - -/** - * │\__╭╭╭╭╭__/│ - * │         │ - * │         │ - * │ -      -│ - * │≡    o ≡ │ - * │         │ - * ╰——┬O◤▽◥O┬——╯ - * |  o  | - * |╭---╮把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 16/4/2 13:34 - * @Description: 后台用户serviceImpl - * @Copyright(©) 2015 by xiaomo. - */ -@Service -public class AdminUserServiceImpl implements AdminUserService { - - private final AdminUserDao dao; - - @Autowired - public AdminUserServiceImpl(AdminUserDao dao) { - this.dao = dao; - } - - @Override - public AdminModel findAdminUserByUserName(String userName) { - return dao.findAdminUserByUserName(userName); - } - - @Override - public AdminModel findAdminUserById(Long id) { - return dao.findOne(id); - } - - @Override - public AdminModel addAdminUser(AdminModel model) { - model.setCreateTime(new Date()); - model.setUpdateTime(new Date()); - return dao.save(model); - - } - - @Override - public AdminModel updateAdminUser(AdminModel model) throws UserNotFoundException { - AdminModel userUpdate = dao.findOne(model.getId()); - if (userUpdate == null) { - throw new UserNotFoundException(); - } - if (model.getPassword() != null) { - userUpdate.setPassword(model.getPassword()); - } - if (model.getUserName() != null) { - userUpdate.setUserName(model.getUserName()); - } - userUpdate.setUpdateTime(new Date()); - return dao.save(userUpdate); - } - - @Override - public Page getAdminUsers(int start, int pageSize) { - Sort sort = new Sort(Sort.Direction.DESC, "createTime"); - return dao.findAll(new PageRequest(start - 1, pageSize, sort)); - } - - @Override - public AdminModel deleteAdminUserById(Long id) throws UserNotFoundException { - AdminModel adminModel = dao.findOne(id); - if (adminModel == null) { - throw new UserNotFoundException(); - } - dao.delete(adminModel.getId()); - return adminModel; - } - - @Override - public AdminModel forbidAdminUserById(Long id) throws UserNotFoundException { - AdminModel model = dao.findOne(id); - if (model == null) { - throw new UserNotFoundException(); - } - model.setStatus(2); - return dao.save(model); - } - - @Override - public List getAdminUsers() { - return dao.findAll(); - } -} diff --git a/api/src/main/java/info/xiaomo/api/service/impl/ChangeLogServiceImpl.java b/api/src/main/java/info/xiaomo/api/service/impl/ChangeLogServiceImpl.java deleted file mode 100644 index 4e2bb456..00000000 --- a/api/src/main/java/info/xiaomo/api/service/impl/ChangeLogServiceImpl.java +++ /dev/null @@ -1,84 +0,0 @@ -package info.xiaomo.api.service.impl; - -import info.xiaomo.api.dao.ChangeLogDao; -import info.xiaomo.api.model.ChangeLogModel; -import info.xiaomo.api.service.ChangeLogService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; -import org.springframework.stereotype.Service; - -import java.util.Date; -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/11 19:49 - * @Copyright(©) 2015 by xiaomo. - **/ -@Service -public class ChangeLogServiceImpl implements ChangeLogService { - - private final ChangeLogDao dao; - - @Autowired - public ChangeLogServiceImpl(ChangeLogDao dao) { - this.dao = dao; - } - - @Override - public ChangeLogModel findById(Long id) { - return dao.findOne(id); - } - - @Override - public ChangeLogModel findByName(String name) { - return dao.findByName(name); - } - - @Override - public Page findAll(int start, int pageSize) { - Sort sort = new Sort(Sort.Direction.DESC, "createTime"); - return dao.findAll(new PageRequest(start - 1, pageSize, sort)); - } - - @Override - public List findAll() { - return dao.findAll(); - } - - @Override - public ChangeLogModel add(ChangeLogModel model) { - model.setCreateTime(new Date()); - model.setUpdateTime(new Date()); - return dao.save(model); - } - - @Override - public ChangeLogModel update(ChangeLogModel model) { - ChangeLogModel updateModel = dao.findOne(model.getId()); - if (model.getName() != null) { - updateModel.setName(model.getName()); - } - updateModel.setUpdateTime(new Date()); - return dao.save(updateModel); - } - - @Override - public ChangeLogModel delete(Long id) { - ChangeLogModel model = dao.findOne(id); - if (model != null) { - dao.delete(id); - } - return model; - } -} diff --git a/api/src/main/java/info/xiaomo/api/service/impl/LinkServiceImpl.java b/api/src/main/java/info/xiaomo/api/service/impl/LinkServiceImpl.java deleted file mode 100644 index d60e8c2b..00000000 --- a/api/src/main/java/info/xiaomo/api/service/impl/LinkServiceImpl.java +++ /dev/null @@ -1,87 +0,0 @@ -package info.xiaomo.api.service.impl; - -import info.xiaomo.api.dao.LinkDao; -import info.xiaomo.api.model.LinkModel; -import info.xiaomo.api.service.LinkService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; -import org.springframework.stereotype.Service; - -import java.util.Date; -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/11 19:50 - * @Copyright(©) 2015 by xiaomo. - **/ -@Service -public class LinkServiceImpl implements LinkService { - - private final LinkDao dao; - - @Autowired - public LinkServiceImpl(LinkDao dao) { - this.dao = dao; - } - - @Override - public LinkModel findById(Long id) { - return dao.findOne(id); - } - - @Override - public LinkModel findByName(String name) { - return dao.findLinkByName(name); - } - - @Override - public Page findAll(int start, int pageSize) { - Sort sort = new Sort(Sort.Direction.DESC, "order"); - return dao.findAll(new PageRequest(start - 1, pageSize, sort)); - } - - @Override - public List findAll() { - return dao.findAll(); - } - - @Override - public LinkModel add(LinkModel model) { - model.setCreateTime(new Date()); - model.setUpdateTime(new Date()); - return dao.save(model); - } - - @Override - public LinkModel update(LinkModel model) { - LinkModel updateModel = dao.findOne(model.getId()); - if (model.getName() != null) { - updateModel.setName(model.getName()); - } - if (model.getUrl() != null) { - updateModel.setUrl(model.getUrl()); - } - model.setUpdateTime(new Date()); - return dao.save(updateModel); - } - - @Override - public LinkModel delete(Long id) { - LinkModel model = dao.findOne(id); - if (model != null) { - dao.delete(id); - } - return model; - } -} diff --git a/api/src/main/java/info/xiaomo/api/service/impl/TechnologyServiceImpl.java b/api/src/main/java/info/xiaomo/api/service/impl/TechnologyServiceImpl.java deleted file mode 100644 index b749954c..00000000 --- a/api/src/main/java/info/xiaomo/api/service/impl/TechnologyServiceImpl.java +++ /dev/null @@ -1,89 +0,0 @@ -package info.xiaomo.api.service.impl; - -import info.xiaomo.api.dao.TechnologyDao; -import info.xiaomo.api.model.TechnologyModel; -import info.xiaomo.api.service.TechnologyService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.stereotype.Service; - -import java.util.Date; -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/11/3 14:34 - * @Copyright(©) 2015 by xiaomo. - **/ - -@Service -public class TechnologyServiceImpl implements TechnologyService { - - private TechnologyDao dao; - - @Autowired - public TechnologyServiceImpl(TechnologyDao dao) { - this.dao = dao; - } - - @Override - public List findAll() { - return dao.findAll(); - } - - @Override - public Page findAll(int start, int pageSize) { - return dao.findAll(new PageRequest(start - 1, pageSize)); - } - - @Override - public TechnologyModel findById(Long id) { - return dao.findOne(id); - } - - @Override - public TechnologyModel findByName(String name) { - return dao.findTechnologyByName(name); - } - - @Override - public TechnologyModel update(TechnologyModel model) { - TechnologyModel result = dao.findOne(model.getId()); - if ("".equals(model.getUrl()) && model.getUrl() != null) { - result.setUrl(model.getUrl()); - } - if ("".equals(model.getName()) && model.getName() != null) { - result.setName(model.getName()); - } - - if ("".equals(model.getSummary()) && model.getSummary() != null) { - result.setSummary(model.getSummary()); - } - if ("".equals(model.getImgUrl()) && model.getImgUrl() != null) { - result.setImgUrl(model.getImgUrl()); - } - result.setUpdateTime(new Date()); - return dao.save(result); - } - - @Override - public TechnologyModel add(TechnologyModel model) { - model.setCreateTime(new Date()); - model.setUpdateTime(new Date()); - return dao.save(model); - } - - @Override - public void del(Long id) { - dao.delete(id); - } -} diff --git a/api/src/main/java/info/xiaomo/api/service/impl/UserServiceImpl.java b/api/src/main/java/info/xiaomo/api/service/impl/UserServiceImpl.java deleted file mode 100644 index ab319023..00000000 --- a/api/src/main/java/info/xiaomo/api/service/impl/UserServiceImpl.java +++ /dev/null @@ -1,107 +0,0 @@ -package info.xiaomo.api.service.impl; - -import info.xiaomo.api.dao.UserDao; -import info.xiaomo.api.model.UserModel; -import info.xiaomo.api.service.UserService; -import info.xiaomo.core.exception.UserNotFoundException; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; -import org.springframework.stereotype.Service; - -import java.util.Date; -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/4/1 17:46 - * @Description: 用户service实现 - * @Copyright(©) 2015 by xiaomo. - **/ -@Service -public class UserServiceImpl implements UserService { - - private final UserDao dao; - - @Autowired - public UserServiceImpl(UserDao dao) { - this.dao = dao; - } - - @Override - public UserModel findUserById(Long id) { - return dao.findOne(id); - } - - @Override - public UserModel findUserByEmail(String email) { - return dao.findUserByEmail(email); - } - - @Override - public UserModel addUser(UserModel model) { - model.setCreateTime(new Date()); - model.setUpdateTime(new Date()); - return dao.save(model); - } - - @Override - public UserModel updateUser(UserModel model) throws UserNotFoundException { - UserModel userUpdate = dao.findUserByEmail(model.getEmail()); - if (userUpdate == null) { - throw new UserNotFoundException(); - } - if (model.getAddress() != null) { - userUpdate.setAddress(model.getAddress()); - } - if (model.getEmail() != null) { - userUpdate.setEmail(model.getEmail()); - } - if (model.getGender() != 0) { - userUpdate.setGender(model.getGender()); - } - if (model.getImgUrl() != null) { - userUpdate.setImgUrl(model.getImgUrl()); - } - if (model.getNickName() != null) { - userUpdate.setNickName(model.getNickName()); - } - if (model.getPhone() != 0) { - userUpdate.setPhone(model.getPhone()); - } - userUpdate.setUpdateTime(new Date()); - dao.save(userUpdate); - return userUpdate; - } - - @Override - public Page findAll(int start, int pageSize) { - Sort sort = new Sort(Sort.Direction.DESC, "createTime"); - return dao.findAll(new PageRequest(start - 1, pageSize, sort)); - } - - @Override - public List findAll() { - return dao.findAll(); - } - - @Override - public UserModel deleteUserById(Long id) throws UserNotFoundException { - UserModel userModel = dao.findOne(id); - if (userModel == null) { - throw new UserNotFoundException(); - } - dao.delete(userModel.getId()); - return userModel; - } - -} diff --git a/api/src/main/java/info/xiaomo/api/service/impl/WebSetServiceImpl.java b/api/src/main/java/info/xiaomo/api/service/impl/WebSetServiceImpl.java deleted file mode 100644 index 3c8ca889..00000000 --- a/api/src/main/java/info/xiaomo/api/service/impl/WebSetServiceImpl.java +++ /dev/null @@ -1,80 +0,0 @@ -package info.xiaomo.api.service.impl; - -import info.xiaomo.api.dao.WebSetDao; -import info.xiaomo.api.model.SystemSetModel; -import info.xiaomo.api.service.WebSetService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.Date; -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/5/6 14:24 - * @Copyright(©) 2015 by xiaomo. - **/ -@Service -public class WebSetServiceImpl implements WebSetService { - - private final WebSetDao dao; - - @Autowired - public WebSetServiceImpl(WebSetDao dao) { - this.dao = dao; - } - - @Override - public List findAll() { - return dao.findAll(); - } - - @Override - public SystemSetModel findById(Long id) { - return dao.findOne(id); - } - - @Override - public SystemSetModel update(SystemSetModel model) { - SystemSetModel one = dao.findOne(model.getId()); - if (one == null) { - return null; - } - if (model.getBeianNumber() != null) { - one.setBeianNumber(model.getBeianNumber()); - } - if (model.getBeianUrl() != null) { - one.setBeianUrl(model.getBeianUrl()); - } - if (model.getFromYear() != 0) { - one.setFromYear(model.getFromYear()); - } - if (model.getToYear() != 0) { - one.setToYear(model.getToYear()); - } - if (model.getIcon() != null) { - one.setIcon(model.getIcon()); - } - if (model.getSiteName() != null) { - one.setSiteName(model.getSiteName()); - } - one.setUpdateTime(new Date()); - dao.save(one); - return one; - - } - - @Override - public SystemSetModel add(SystemSetModel model) { - dao.save(model); - return model; - } -} diff --git a/api/src/main/java/info/xiaomo/api/service/impl/WorksServiceImpl.java b/api/src/main/java/info/xiaomo/api/service/impl/WorksServiceImpl.java deleted file mode 100644 index b5967165..00000000 --- a/api/src/main/java/info/xiaomo/api/service/impl/WorksServiceImpl.java +++ /dev/null @@ -1,94 +0,0 @@ -package info.xiaomo.api.service.impl; - -import info.xiaomo.api.dao.WorksDao; -import info.xiaomo.api.model.WorksModel; -import info.xiaomo.api.service.WorksService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.stereotype.Service; - -import java.util.Date; -import java.util.List; - -/** - * 把今天最好的表现当作明天最新的起点..~ - * いま 最高の表現 として 明日最新の始発..~ - * Today the best performance as tomorrow newest starter! - * Created by IntelliJ IDEA. - * - * @author: xiaomo - * @github: https://github.com/qq83387856 - * @email: hupengbest@163.com - * @QQ_NO: 83387856 - * @Date: 2016/11/3 14:34 - * @Copyright(©) 2015 by xiaomo. - **/ - -@Service -public class WorksServiceImpl implements WorksService { - - private WorksDao dao; - - @Autowired - public WorksServiceImpl(WorksDao dao) { - this.dao = dao; - } - - @Override - public List findAll() { - return dao.findAll(); - } - - @Override - public Page findAll(int start, int pageSize) { - return dao.findAll(new PageRequest(start - 1, pageSize)); - } - - @Override - public WorksModel findById(Long id) { - return dao.findOne(id); - } - - @Override - public WorksModel findByName(String name) { - return dao.findWorkByName(name); - } - - @Override - public WorksModel update(WorksModel model) { - WorksModel result = dao.findOne(model.getId()); - if (result == null) { - return null; - } - if ("".equals(model.getCompleteTime()) && model.getCompleteTime() != null) { - result.setCompleteTime(model.getCompleteTime()); - } - if ("".equals(model.getImgUrl()) && model.getImgUrl() != null) { - result.setImgUrl(model.getImgUrl()); - } - if ("".equals(model.getName()) && model.getName() != null) { - result.setName(model.getName()); - } - if ("".equals(model.getSummary()) && model.getSummary() != null) { - result.setSummary(model.getSummary()); - } - if ("".equals(model.getUrl()) && model.getUrl() != null) { - result.setUrl(model.getUrl()); - } - result.setUpdateTime(new Date()); - return dao.save(result); - } - - @Override - public WorksModel add(WorksModel model) { - model.setCreateTime(new Date()); - model.setUpdateTime(new Date()); - return dao.save(model); - } - - @Override - public void del(Long id) { - dao.delete(id); - } -} diff --git a/api/src/main/resources/config/application.properties b/api/src/main/resources/config/application.properties deleted file mode 100644 index 21cf3835..00000000 --- a/api/src/main/resources/config/application.properties +++ /dev/null @@ -1,46 +0,0 @@ -logging.config=classpath:config/logback-dev.xml -server.port=8080 -server.session.timeout=1800 -server.max-http-header-size=20971520 - -#datasource -spring.datasource.url=jdbc:mysql://ip/\u6570\u636E\u5E93 -spring.datasource.username=\u4F60\u7684\u5BC6\u7801 -spring.datasource.password=\u4F60\u7684\u5BC6\u7801 -spring.datasource.driver-class-name=com.mysql.jdbc.Driver -# \u914D\u7F6E\u8FD9\u4E2A\u503C\u5C31\u53EF\u4EE5\u683C\u5F0F\u5316\u65F6\u95F4 -#spring.jackson.date-format=yyyy-MM-dd HH:mm:ss -#spring.jackson.time-zone=GMT+8 - -#jpa -spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect -spring.jpa.hibernate.ddl-auto=update -spring.jpa.show-sql=true - -#other -banner.location=config/banner-girl.txt - -# redis -# Redis\u6570\u636E\u5E93\u7D22\u5F15\uFF08\u9ED8\u8BA4\u4E3A0\uFF09 -spring.redis.database=0 -spring.redis.host=ip -spring.redis.port=6379 -spring.redis.password= -# \u8FDE\u63A5\u6C60\u6700\u5927\u8FDE\u63A5\u6570\uFF08\u4F7F\u7528\u8D1F\u503C\u8868\u793A\u6CA1\u6709\u9650\u5236\uFF09 -spring.redis.pool.max-active=8 -# \u8FDE\u63A5\u6C60\u6700\u5927\u963B\u585E\u7B49\u5F85\u65F6\u95F4\uFF08\u4F7F\u7528\u8D1F\u503C\u8868\u793A\u6CA1\u6709\u9650\u5236\uFF09 -spring.redis.pool.max-wait=-1 -# \u8FDE\u63A5\u6C60\u4E2D\u7684\u6700\u5927\u7A7A\u95F2\u8FDE\u63A5 -spring.redis.pool.max-idle=8 -# \u8FDE\u63A5\u6C60\u4E2D\u7684\u6700\u5C0F\u7A7A\u95F2\u8FDE\u63A5 -spring.redis.pool.min-idle=0 -# \u8FDE\u63A5\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09 -spring.redis.timeout=0 - -#\u90AE\u4EF6 -spring.mail.host=smtp.qq.com -spring.mail.username= -spring.mail.password= -spring.mail.properties.mail.smtp.auth=true -spring.mail.properties.mail.smtp.starttls.enable=true -spring.mail.properties.mail.smtp.starttls.required=true diff --git a/api/src/main/resources/public/css/print.css b/api/src/main/resources/public/css/print.css deleted file mode 100644 index f9cb0439..00000000 --- a/api/src/main/resources/public/css/print.css +++ /dev/null @@ -1,1367 +0,0 @@ -/* Original style from softwaremaniacs.org (c) Ivan Sagalaev */ -.swagger-section pre code { - display: block; - padding: 0.5em; - background: #F0F0F0; -} -.swagger-section pre code, -.swagger-section pre .subst, -.swagger-section pre .tag .title, -.swagger-section pre .lisp .title, -.swagger-section pre .clojure .built_in, -.swagger-section pre .nginx .title { - color: black; -} -.swagger-section pre .string, -.swagger-section pre .title, -.swagger-section pre .constant, -.swagger-section pre .parent, -.swagger-section pre .tag .value, -.swagger-section pre .rules .value, -.swagger-section pre .rules .value .number, -.swagger-section pre .preprocessor, -.swagger-section pre .ruby .symbol, -.swagger-section pre .ruby .symbol .string, -.swagger-section pre .aggregate, -.swagger-section pre .template_tag, -.swagger-section pre .django .variable, -.swagger-section pre .smalltalk .class, -.swagger-section pre .addition, -.swagger-section pre .flow, -.swagger-section pre .stream, -.swagger-section pre .bash .variable, -.swagger-section pre .apache .tag, -.swagger-section pre .apache .cbracket, -.swagger-section pre .tex .command, -.swagger-section pre .tex .special, -.swagger-section pre .erlang_repl .function_or_atom, -.swagger-section pre .markdown .header { - color: #800; -} -.swagger-section pre .comment, -.swagger-section pre .annotation, -.swagger-section pre .template_comment, -.swagger-section pre .diff .header, -.swagger-section pre .chunk, -.swagger-section pre .markdown .blockquote { - color: #888; -} -.swagger-section pre .number, -.swagger-section pre .date, -.swagger-section pre .regexp, -.swagger-section pre .literal, -.swagger-section pre .smalltalk .symbol, -.swagger-section pre .smalltalk .char, -.swagger-section pre .go .constant, -.swagger-section pre .change, -.swagger-section pre .markdown .bullet, -.swagger-section pre .markdown .link_url { - color: #080; -} -.swagger-section pre .label, -.swagger-section pre .javadoc, -.swagger-section pre .ruby .string, -.swagger-section pre .decorator, -.swagger-section pre .filter .argument, -.swagger-section pre .localvars, -.swagger-section pre .array, -.swagger-section pre .attr_selector, -.swagger-section pre .important, -.swagger-section pre .pseudo, -.swagger-section pre .pi, -.swagger-section pre .doctype, -.swagger-section pre .deletion, -.swagger-section pre .envvar, -.swagger-section pre .shebang, -.swagger-section pre .apache .sqbracket, -.swagger-section pre .nginx .built_in, -.swagger-section pre .tex .formula, -.swagger-section pre .erlang_repl .reserved, -.swagger-section pre .prompt, -.swagger-section pre .markdown .link_label, -.swagger-section pre .vhdl .attribute, -.swagger-section pre .clojure .attribute, -.swagger-section pre .coffeescript .property { - color: #88F; -} -.swagger-section pre .keyword, -.swagger-section pre .id, -.swagger-section pre .phpdoc, -.swagger-section pre .title, -.swagger-section pre .built_in, -.swagger-section pre .aggregate, -.swagger-section pre .css .tag, -.swagger-section pre .javadoctag, -.swagger-section pre .phpdoc, -.swagger-section pre .yardoctag, -.swagger-section pre .smalltalk .class, -.swagger-section pre .winutils, -.swagger-section pre .bash .variable, -.swagger-section pre .apache .tag, -.swagger-section pre .go .typename, -.swagger-section pre .tex .command, -.swagger-section pre .markdown .strong, -.swagger-section pre .request, -.swagger-section pre .status { - font-weight: bold; -} -.swagger-section pre .markdown .emphasis { - font-style: italic; -} -.swagger-section pre .nginx .built_in { - font-weight: normal; -} -.swagger-section pre .coffeescript .javascript, -.swagger-section pre .javascript .xml, -.swagger-section pre .tex .formula, -.swagger-section pre .xml .javascript, -.swagger-section pre .xml .vbscript, -.swagger-section pre .xml .css, -.swagger-section pre .xml .cdata { - opacity: 0.5; -} -.swagger-section .hljs { - display: block; - overflow-x: auto; - padding: 0.5em; - background: #F0F0F0; -} -.swagger-section .hljs, -.swagger-section .hljs-subst { - color: #444; -} -.swagger-section .hljs-keyword, -.swagger-section .hljs-attribute, -.swagger-section .hljs-selector-tag, -.swagger-section .hljs-meta-keyword, -.swagger-section .hljs-doctag, -.swagger-section .hljs-name { - font-weight: bold; -} -.swagger-section .hljs-built_in, -.swagger-section .hljs-literal, -.swagger-section .hljs-bullet, -.swagger-section .hljs-code, -.swagger-section .hljs-addition { - color: #1F811F; -} -.swagger-section .hljs-regexp, -.swagger-section .hljs-symbol, -.swagger-section .hljs-variable, -.swagger-section .hljs-template-variable, -.swagger-section .hljs-link, -.swagger-section .hljs-selector-attr, -.swagger-section .hljs-selector-pseudo { - color: #BC6060; -} -.swagger-section .hljs-type, -.swagger-section .hljs-string, -.swagger-section .hljs-number, -.swagger-section .hljs-selector-id, -.swagger-section .hljs-selector-class, -.swagger-section .hljs-quote, -.swagger-section .hljs-template-tag, -.swagger-section .hljs-deletion { - color: #880000; -} -.swagger-section .hljs-title, -.swagger-section .hljs-section { - color: #880000; - font-weight: bold; -} -.swagger-section .hljs-comment { - color: #888888; -} -.swagger-section .hljs-meta { - color: #2B6EA1; -} -.swagger-section .hljs-emphasis { - font-style: italic; -} -.swagger-section .hljs-strong { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap { - line-height: 1; - font-family: "Droid Sans", sans-serif; - min-width: 760px; - max-width: 960px; - margin-left: auto; - margin-right: auto; - /* JSONEditor specific styling */ -} -.swagger-section .swagger-ui-wrap b, -.swagger-section .swagger-ui-wrap strong { - font-family: "Droid Sans", sans-serif; - font-weight: bold; -} -.swagger-section .swagger-ui-wrap q, -.swagger-section .swagger-ui-wrap blockquote { - quotes: none; -} -.swagger-section .swagger-ui-wrap p { - line-height: 1.4em; - padding: 0 0 10px; - color: #333333; -} -.swagger-section .swagger-ui-wrap q:before, -.swagger-section .swagger-ui-wrap q:after, -.swagger-section .swagger-ui-wrap blockquote:before, -.swagger-section .swagger-ui-wrap blockquote:after { - content: none; -} -.swagger-section .swagger-ui-wrap .heading_with_menu h1, -.swagger-section .swagger-ui-wrap .heading_with_menu h2, -.swagger-section .swagger-ui-wrap .heading_with_menu h3, -.swagger-section .swagger-ui-wrap .heading_with_menu h4, -.swagger-section .swagger-ui-wrap .heading_with_menu h5, -.swagger-section .swagger-ui-wrap .heading_with_menu h6 { - display: block; - clear: none; - float: left; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - width: 60%; -} -.swagger-section .swagger-ui-wrap table { - border-collapse: collapse; - border-spacing: 0; -} -.swagger-section .swagger-ui-wrap table thead tr th { - padding: 5px; - font-size: 0.9em; - color: #666666; - border-bottom: 1px solid #999999; -} -.swagger-section .swagger-ui-wrap table tbody tr:last-child td { - border-bottom: none; -} -.swagger-section .swagger-ui-wrap table tbody tr.offset { - background-color: #f0f0f0; -} -.swagger-section .swagger-ui-wrap table tbody tr td { - padding: 6px; - font-size: 0.9em; - border-bottom: 1px solid #cccccc; - vertical-align: top; - line-height: 1.3em; -} -.swagger-section .swagger-ui-wrap ol { - margin: 0px 0 10px; - padding: 0 0 0 18px; - list-style-type: decimal; -} -.swagger-section .swagger-ui-wrap ol li { - padding: 5px 0px; - font-size: 0.9em; - color: #333333; -} -.swagger-section .swagger-ui-wrap ol, -.swagger-section .swagger-ui-wrap ul { - list-style: none; -} -.swagger-section .swagger-ui-wrap h1 a, -.swagger-section .swagger-ui-wrap h2 a, -.swagger-section .swagger-ui-wrap h3 a, -.swagger-section .swagger-ui-wrap h4 a, -.swagger-section .swagger-ui-wrap h5 a, -.swagger-section .swagger-ui-wrap h6 a { - text-decoration: none; -} -.swagger-section .swagger-ui-wrap h1 a:hover, -.swagger-section .swagger-ui-wrap h2 a:hover, -.swagger-section .swagger-ui-wrap h3 a:hover, -.swagger-section .swagger-ui-wrap h4 a:hover, -.swagger-section .swagger-ui-wrap h5 a:hover, -.swagger-section .swagger-ui-wrap h6 a:hover { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap h1 span.divider, -.swagger-section .swagger-ui-wrap h2 span.divider, -.swagger-section .swagger-ui-wrap h3 span.divider, -.swagger-section .swagger-ui-wrap h4 span.divider, -.swagger-section .swagger-ui-wrap h5 span.divider, -.swagger-section .swagger-ui-wrap h6 span.divider { - color: #aaaaaa; -} -.swagger-section .swagger-ui-wrap a { - color: #547f00; -} -.swagger-section .swagger-ui-wrap a img { - border: none; -} -.swagger-section .swagger-ui-wrap article, -.swagger-section .swagger-ui-wrap aside, -.swagger-section .swagger-ui-wrap details, -.swagger-section .swagger-ui-wrap figcaption, -.swagger-section .swagger-ui-wrap figure, -.swagger-section .swagger-ui-wrap footer, -.swagger-section .swagger-ui-wrap header, -.swagger-section .swagger-ui-wrap hgroup, -.swagger-section .swagger-ui-wrap menu, -.swagger-section .swagger-ui-wrap nav, -.swagger-section .swagger-ui-wrap section, -.swagger-section .swagger-ui-wrap summary { - display: block; -} -.swagger-section .swagger-ui-wrap pre { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - background-color: #fcf6db; - border: 1px solid #e5e0c6; - padding: 10px; -} -.swagger-section .swagger-ui-wrap pre code { - line-height: 1.6em; - background: none; -} -.swagger-section .swagger-ui-wrap .content > .content-type > div > label { - clear: both; - display: block; - color: #0F6AB4; - font-size: 1.1em; - margin: 0; - padding: 15px 0 5px; -} -.swagger-section .swagger-ui-wrap .content pre { - font-size: 12px; - margin-top: 5px; - padding: 5px; -} -.swagger-section .swagger-ui-wrap .icon-btn { - cursor: pointer; -} -.swagger-section .swagger-ui-wrap .info_title { - padding-bottom: 10px; - font-weight: bold; - font-size: 25px; -} -.swagger-section .swagger-ui-wrap .footer { - margin-top: 20px; -} -.swagger-section .swagger-ui-wrap p.big, -.swagger-section .swagger-ui-wrap div.big p { - font-size: 1em; - margin-bottom: 10px; -} -.swagger-section .swagger-ui-wrap form.fullwidth ol li.string input, -.swagger-section .swagger-ui-wrap form.fullwidth ol li.url input, -.swagger-section .swagger-ui-wrap form.fullwidth ol li.text textarea, -.swagger-section .swagger-ui-wrap form.fullwidth ol li.numeric input { - width: 500px !important; -} -.swagger-section .swagger-ui-wrap .info_license { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_tos { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .message-fail { - color: #cc0000; -} -.swagger-section .swagger-ui-wrap .info_url { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_email { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_name { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_description { - padding-bottom: 10px; - font-size: 15px; -} -.swagger-section .swagger-ui-wrap .markdown ol li, -.swagger-section .swagger-ui-wrap .markdown ul li { - padding: 3px 0px; - line-height: 1.4em; - color: #333333; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input { - display: block; - padding: 4px; - width: auto; - clear: both; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input.title, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input.title, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input.title { - font-size: 1.3em; -} -.swagger-section .swagger-ui-wrap table.fullwidth { - width: 100%; -} -.swagger-section .swagger-ui-wrap .model-signature { - font-family: "Droid Sans", sans-serif; - font-size: 1em; - line-height: 1.5em; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-nav a { - text-decoration: none; - color: #AAA; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-nav a:hover { - text-decoration: underline; - color: black; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-nav .selected { - color: black; - text-decoration: none; -} -.swagger-section .swagger-ui-wrap .model-signature .propType { - color: #5555aa; -} -.swagger-section .swagger-ui-wrap .model-signature pre:hover { - background-color: #ffffdd; -} -.swagger-section .swagger-ui-wrap .model-signature pre { - font-size: .85em; - line-height: 1.2em; - overflow: auto; - max-height: 200px; - cursor: pointer; -} -.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav { - display: block; - min-width: 230px; - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li:last-child { - padding-right: 0; - border-right: none; -} -.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li { - float: left; - margin: 0 5px 5px 0; - padding: 2px 5px 2px 0; - border-right: 1px solid #ddd; -} -.swagger-section .swagger-ui-wrap .model-signature .propOpt { - color: #555; -} -.swagger-section .swagger-ui-wrap .model-signature .snippet small { - font-size: 0.75em; -} -.swagger-section .swagger-ui-wrap .model-signature .propOptKey { - font-style: italic; -} -.swagger-section .swagger-ui-wrap .model-signature .description .strong { - font-weight: bold; - color: #000; - font-size: .9em; -} -.swagger-section .swagger-ui-wrap .model-signature .description div { - font-size: 0.9em; - line-height: 1.5em; - margin-left: 1em; -} -.swagger-section .swagger-ui-wrap .model-signature .description .stronger { - font-weight: bold; - color: #000; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper { - border-spacing: 0; - position: absolute; - background-color: #ffffff; - border: 1px solid #bbbbbb; - display: none; - font-size: 11px; - max-width: 400px; - line-height: 30px; - color: black; - padding: 5px; - margin-left: 10px; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper th { - text-align: center; - background-color: #eeeeee; - border: 1px solid #bbbbbb; - font-size: 11px; - color: #666666; - font-weight: bold; - padding: 5px; - line-height: 15px; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper .optionName { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:first-child, -.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:last-child { - display: inline; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:not(:first-child):before { - display: block; - content: ''; -} -.swagger-section .swagger-ui-wrap .model-signature .description span:last-of-type.propDesc.markdown > p:only-child { - margin-right: -3px; -} -.swagger-section .swagger-ui-wrap .model-signature .propName { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-container { - clear: both; -} -.swagger-section .swagger-ui-wrap .body-textarea { - width: 300px; - height: 100px; - border: 1px solid #aaa; -} -.swagger-section .swagger-ui-wrap .markdown p code, -.swagger-section .swagger-ui-wrap .markdown li code { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - background-color: #f0f0f0; - color: black; - padding: 1px 3px; -} -.swagger-section .swagger-ui-wrap .required { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .editor_holder { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap .editor_holder label { - font-weight: normal!important; - /* JSONEditor uses bold by default for all labels, we revert that back to normal to not give the impression that by default fields are required */ -} -.swagger-section .swagger-ui-wrap .editor_holder label.required { - font-weight: bold!important; -} -.swagger-section .swagger-ui-wrap input.parameter { - width: 300px; - border: 1px solid #aaa; -} -.swagger-section .swagger-ui-wrap h1 { - color: black; - font-size: 1.5em; - line-height: 1.3em; - padding: 10px 0 10px 0; - font-family: "Droid Sans", sans-serif; - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .heading_with_menu { - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap .heading_with_menu ul { - display: block; - clear: none; - float: right; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - margin-top: 10px; -} -.swagger-section .swagger-ui-wrap h2 { - color: black; - font-size: 1.3em; - padding: 10px 0 10px 0; -} -.swagger-section .swagger-ui-wrap h2 a { - color: black; -} -.swagger-section .swagger-ui-wrap h2 span.sub { - font-size: 0.7em; - color: #999999; - font-style: italic; -} -.swagger-section .swagger-ui-wrap h2 span.sub a { - color: #777777; -} -.swagger-section .swagger-ui-wrap span.weak { - color: #666666; -} -.swagger-section .swagger-ui-wrap .message-success { - color: #89BF04; -} -.swagger-section .swagger-ui-wrap caption, -.swagger-section .swagger-ui-wrap th, -.swagger-section .swagger-ui-wrap td { - text-align: left; - font-weight: normal; - vertical-align: middle; -} -.swagger-section .swagger-ui-wrap .code { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.text textarea { - font-family: "Droid Sans", sans-serif; - height: 250px; - padding: 4px; - display: block; - clear: both; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.select select { - display: block; - clear: both; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean { - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean label { - display: block; - float: left; - clear: none; - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean input { - display: block; - float: left; - clear: none; - margin: 0 5px 0 0; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.required label { - color: black; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label { - display: block; - clear: both; - width: auto; - padding: 0 0 3px; - color: #666666; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label abbr { - padding-left: 3px; - color: #888888; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li p.inline-hints { - margin-left: 0; - font-style: italic; - font-size: 0.9em; - margin: 0; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.buttons { - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap span.blank, -.swagger-section .swagger-ui-wrap span.empty { - color: #888888; - font-style: italic; -} -.swagger-section .swagger-ui-wrap .markdown h3 { - color: #547f00; -} -.swagger-section .swagger-ui-wrap .markdown h4 { - color: #666666; -} -.swagger-section .swagger-ui-wrap .markdown pre { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - background-color: #fcf6db; - border: 1px solid #e5e0c6; - padding: 10px; - margin: 0 0 10px 0; -} -.swagger-section .swagger-ui-wrap .markdown pre code { - line-height: 1.6em; - overflow: auto; -} -.swagger-section .swagger-ui-wrap div.gist { - margin: 20px 0 25px 0 !important; -} -.swagger-section .swagger-ui-wrap ul#resources { - font-family: "Droid Sans", sans-serif; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource { - border-bottom: 1px solid #dddddd; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading h2 a, -.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading h2 a { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading ul.options li a, -.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading ul.options li a { - color: #555555; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource:last-child { - border-bottom: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading { - border: 1px solid transparent; - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options { - overflow: hidden; - padding: 0; - display: block; - clear: none; - float: right; - margin: 14px 10px 0 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li { - float: left; - clear: none; - margin: 0; - padding: 2px 10px; - border-right: 1px solid #dddddd; - color: #666666; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a { - color: #aaaaaa; - text-decoration: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover { - text-decoration: underline; - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:active, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a.active { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.last { - padding-right: 0; - border-right: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 { - color: #999999; - padding-left: 0; - display: block; - clear: none; - float: left; - font-family: "Droid Sans", sans-serif; - font-weight: bold; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a { - color: #999999; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation { - float: none; - clear: both; - overflow: hidden; - display: block; - margin: 0 0 10px; - padding: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading { - float: none; - clear: both; - overflow: hidden; - display: block; - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 { - display: block; - clear: none; - float: left; - width: auto; - margin: 0; - padding: 0; - line-height: 1.1em; - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path { - padding-left: 10px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a { - color: black; - text-decoration: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a.toggleOperation.deprecated { - text-decoration: line-through; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.http_method a { - text-transform: uppercase; - text-decoration: none; - color: white; - display: inline-block; - width: 50px; - font-size: 0.7em; - text-align: center; - padding: 7px 0 4px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -o-border-radius: 2px; - -ms-border-radius: 2px; - -khtml-border-radius: 2px; - border-radius: 2px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span { - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options { - overflow: hidden; - padding: 0; - display: block; - clear: none; - float: right; - margin: 6px 10px 0 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li { - float: left; - clear: none; - margin: 0; - padding: 2px 10px; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li a { - text-decoration: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li a .markdown p { - color: inherit; - padding: 0; - line-height: inherit; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li.access { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content { - border-top: none; - padding: 10px; - -moz-border-radius-bottomleft: 6px; - -webkit-border-bottom-left-radius: 6px; - -o-border-bottom-left-radius: 6px; - -ms-border-bottom-left-radius: 6px; - -khtml-border-bottom-left-radius: 6px; - border-bottom-left-radius: 6px; - -moz-border-radius-bottomright: 6px; - -webkit-border-bottom-right-radius: 6px; - -o-border-bottom-right-radius: 6px; - -ms-border-bottom-right-radius: 6px; - -khtml-border-bottom-right-radius: 6px; - border-bottom-right-radius: 6px; - margin: 0 0 20px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content h4 { - font-size: 1.1em; - margin: 0; - padding: 15px 0 5px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header { - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header a { - padding: 4px 0 0 10px; - display: inline-block; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header input.submit { - display: block; - clear: none; - float: left; - padding: 6px 8px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header span.response_throbber { - background-image: url('../images/throbber.gif'); - width: 128px; - height: 16px; - display: block; - clear: none; - float: right; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form input[type='text'].error { - outline: 2px solid black; - outline-color: #cc0000; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form select[name='parameterContentType'] { - max-width: 300px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.response div.block pre { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - padding: 10px; - font-size: 0.9em; - max-height: 400px; - overflow-y: auto; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading { - background-color: #f9f2e9; - border: 1px solid #f0e0ca; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.http_method a { - background-color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #f0e0ca; - color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a { - color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content { - background-color: #faf5ee; - border: 1px solid #f0e0ca; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content h4 { - color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header a { - color: #dcb67f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading { - background-color: #fcffcd; - border: 1px solid black; - border-color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.http_method a { - text-transform: uppercase; - background-color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #ffd20f; - color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a { - color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content { - background-color: #fcffcd; - border: 1px solid black; - border-color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content h4 { - color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header a { - color: #6fc992; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading { - background-color: #f5e8e8; - border: 1px solid #e8c6c7; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.http_method a { - text-transform: uppercase; - background-color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #e8c6c7; - color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a { - color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content { - background-color: #f7eded; - border: 1px solid #e8c6c7; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content h4 { - color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header a { - color: #c8787a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading { - background-color: #e7f6ec; - border: 1px solid #c3e8d1; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.http_method a { - background-color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #c3e8d1; - color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a { - color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content { - background-color: #ebf7f0; - border: 1px solid #c3e8d1; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content h4 { - color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header a { - color: #6fc992; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading { - background-color: #FCE9E3; - border: 1px solid #F5D5C3; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.http_method a { - background-color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #f0cecb; - color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a { - color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content { - background-color: #faf0ef; - border: 1px solid #f0cecb; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content h4 { - color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header a { - color: #dcb67f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading { - background-color: #e7f0f7; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.http_method a { - background-color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #c3d9ec; - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content { - background-color: #ebf3f9; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content h4 { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header a { - color: #6fa5d2; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading { - background-color: #e7f0f7; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading h3 span.http_method a { - background-color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #c3d9ec; - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li a { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content { - background-color: #ebf3f9; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content h4 { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content div.sandbox_header a { - color: #6fa5d2; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content { - border-top: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li.last { - padding-right: 0; - border-right: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:hover, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:active, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a.active { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap p#colophon { - margin: 0 15px 40px 15px; - padding: 10px 0; - font-size: 0.8em; - border-top: 1px solid #dddddd; - font-family: "Droid Sans", sans-serif; - color: #999999; - font-style: italic; -} -.swagger-section .swagger-ui-wrap p#colophon a { - text-decoration: none; - color: #547f00; -} -.swagger-section .swagger-ui-wrap h3 { - color: black; - font-size: 1.1em; - padding: 10px 0 10px 0; -} -.swagger-section .swagger-ui-wrap .markdown ol, -.swagger-section .swagger-ui-wrap .markdown ul { - font-family: "Droid Sans", sans-serif; - margin: 5px 0 10px; - padding: 0 0 0 18px; - list-style-type: disc; -} -.swagger-section .swagger-ui-wrap form.form_box { - background-color: #ebf3f9; - border: 1px solid #c3d9ec; - padding: 10px; -} -.swagger-section .swagger-ui-wrap form.form_box label { - color: #0f6ab4 !important; -} -.swagger-section .swagger-ui-wrap form.form_box input[type=submit] { - display: block; - padding: 10px; -} -.swagger-section .swagger-ui-wrap form.form_box p.weak { - font-size: 0.8em; -} -.swagger-section .swagger-ui-wrap form.form_box p { - font-size: 0.9em; - padding: 0 0 15px; - color: #7e7b6d; -} -.swagger-section .swagger-ui-wrap form.form_box p a { - color: #646257; -} -.swagger-section .swagger-ui-wrap form.form_box p strong { - color: black; -} -.swagger-section .swagger-ui-wrap .operation-status td.markdown > p:last-child { - padding-bottom: 0; -} -.swagger-section .title { - font-style: bold; -} -.swagger-section .secondary_form { - display: none; -} -.swagger-section .main_image { - display: block; - margin-left: auto; - margin-right: auto; -} -.swagger-section .oauth_body { - margin-left: 100px; - margin-right: 100px; -} -.swagger-section .oauth_submit { - text-align: center; - display: inline-block; -} -.swagger-section .authorize-wrapper { - margin: 15px 0 10px; -} -.swagger-section .authorize-wrapper_operation { - float: right; -} -.swagger-section .authorize__btn:hover { - text-decoration: underline; - cursor: pointer; -} -.swagger-section .authorize__btn_operation:hover .authorize-scopes { - display: block; -} -.swagger-section .authorize-scopes { - position: absolute; - margin-top: 20px; - background: #FFF; - border: 1px solid #ccc; - border-radius: 5px; - display: none; - font-size: 13px; - max-width: 300px; - line-height: 30px; - color: black; - padding: 5px; -} -.swagger-section .authorize-scopes .authorize__scope { - text-decoration: none; -} -.swagger-section .authorize__btn_operation { - height: 18px; - vertical-align: middle; - display: inline-block; - background: url(../images/explorer_icons.png) no-repeat; -} -.swagger-section .authorize__btn_operation_login { - background-position: 0 0; - width: 18px; - margin-top: -6px; - margin-left: 4px; -} -.swagger-section .authorize__btn_operation_logout { - background-position: -30px 0; - width: 18px; - margin-top: -6px; - margin-left: 4px; -} -.swagger-section #auth_container { - color: #fff; - display: inline-block; - border: none; - padding: 5px; - width: 87px; - height: 13px; -} -.swagger-section #auth_container .authorize__btn { - color: #fff; -} -.swagger-section .auth_container { - padding: 0 0 10px; - margin-bottom: 5px; - border-bottom: solid 1px #CCC; - font-size: 0.9em; -} -.swagger-section .auth_container .auth__title { - color: #547f00; - font-size: 1.2em; -} -.swagger-section .auth_container .basic_auth__label { - display: inline-block; - width: 60px; -} -.swagger-section .auth_container .auth__description { - color: #999999; - margin-bottom: 5px; -} -.swagger-section .auth_container .auth__button { - margin-top: 10px; - height: 30px; -} -.swagger-section .auth_container .key_auth__field { - margin: 5px 0; -} -.swagger-section .auth_container .key_auth__label { - display: inline-block; - width: 60px; -} -.swagger-section .api-popup-dialog { - position: absolute; - display: none; -} -.swagger-section .api-popup-dialog-wrapper { - z-index: 1000; - width: 500px; - background: #FFF; - padding: 20px; - border: 1px solid #ccc; - border-radius: 5px; - font-size: 13px; - color: #777; - position: fixed; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -} -.swagger-section .api-popup-dialog-shadow { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 0.2; - background-color: gray; - z-index: 900; -} -.swagger-section .api-popup-dialog .api-popup-title { - font-size: 24px; - padding: 10px 0; -} -.swagger-section .api-popup-dialog .api-popup-title { - font-size: 24px; - padding: 10px 0; -} -.swagger-section .api-popup-dialog .error-msg { - padding-left: 5px; - padding-bottom: 5px; -} -.swagger-section .api-popup-dialog .api-popup-content { - max-height: 500px; - overflow-y: auto; -} -.swagger-section .api-popup-dialog .api-popup-authbtn { - height: 30px; -} -.swagger-section .api-popup-dialog .api-popup-cancel { - height: 30px; -} -.swagger-section .api-popup-scopes { - padding: 10px 20px; -} -.swagger-section .api-popup-scopes li { - padding: 5px 0; - line-height: 20px; -} -.swagger-section .api-popup-scopes li input { - position: relative; - top: 2px; -} -.swagger-section .api-popup-scopes .api-scope-desc { - padding-left: 20px; - font-style: italic; -} -.swagger-section .api-popup-actions { - padding-top: 10px; -} -#header { - display: none; -} -.swagger-section .swagger-ui-wrap .model-signature pre { - max-height: none; -} -.swagger-section .swagger-ui-wrap .body-textarea { - width: 100px; -} -.swagger-section .swagger-ui-wrap input.parameter { - width: 100px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options { - display: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints { - display: block !important; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content { - display: block !important; -} diff --git a/api/src/main/resources/public/css/reset.css b/api/src/main/resources/public/css/reset.css deleted file mode 100644 index b2b07894..00000000 --- a/api/src/main/resources/public/css/reset.css +++ /dev/null @@ -1,125 +0,0 @@ -/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */ -html, -body, -div, -span, -applet, -object, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -img, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -b, -u, -i, -center, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td, -article, -aside, -canvas, -details, -embed, -figure, -figcaption, -footer, -header, -hgroup, -menu, -nav, -output, -ruby, -section, -summary, -time, -mark, -audio, -video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} -/* HTML5 display-role reset for older browsers */ -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -menu, -nav, -section { - display: block; -} -body { - line-height: 1; -} -ol, -ul { - list-style: none; -} -blockquote, -q { - quotes: none; -} -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ''; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; -} diff --git a/api/src/main/resources/public/css/screen.css b/api/src/main/resources/public/css/screen.css deleted file mode 100644 index 39ff583e..00000000 --- a/api/src/main/resources/public/css/screen.css +++ /dev/null @@ -1,1494 +0,0 @@ -/* Original style from softwaremaniacs.org (c) Ivan Sagalaev */ -.swagger-section pre code { - display: block; - padding: 0.5em; - background: #F0F0F0; -} -.swagger-section pre code, -.swagger-section pre .subst, -.swagger-section pre .tag .title, -.swagger-section pre .lisp .title, -.swagger-section pre .clojure .built_in, -.swagger-section pre .nginx .title { - color: black; -} -.swagger-section pre .string, -.swagger-section pre .title, -.swagger-section pre .constant, -.swagger-section pre .parent, -.swagger-section pre .tag .value, -.swagger-section pre .rules .value, -.swagger-section pre .rules .value .number, -.swagger-section pre .preprocessor, -.swagger-section pre .ruby .symbol, -.swagger-section pre .ruby .symbol .string, -.swagger-section pre .aggregate, -.swagger-section pre .template_tag, -.swagger-section pre .django .variable, -.swagger-section pre .smalltalk .class, -.swagger-section pre .addition, -.swagger-section pre .flow, -.swagger-section pre .stream, -.swagger-section pre .bash .variable, -.swagger-section pre .apache .tag, -.swagger-section pre .apache .cbracket, -.swagger-section pre .tex .command, -.swagger-section pre .tex .special, -.swagger-section pre .erlang_repl .function_or_atom, -.swagger-section pre .markdown .header { - color: #800; -} -.swagger-section pre .comment, -.swagger-section pre .annotation, -.swagger-section pre .template_comment, -.swagger-section pre .diff .header, -.swagger-section pre .chunk, -.swagger-section pre .markdown .blockquote { - color: #888; -} -.swagger-section pre .number, -.swagger-section pre .date, -.swagger-section pre .regexp, -.swagger-section pre .literal, -.swagger-section pre .smalltalk .symbol, -.swagger-section pre .smalltalk .char, -.swagger-section pre .go .constant, -.swagger-section pre .change, -.swagger-section pre .markdown .bullet, -.swagger-section pre .markdown .link_url { - color: #080; -} -.swagger-section pre .label, -.swagger-section pre .javadoc, -.swagger-section pre .ruby .string, -.swagger-section pre .decorator, -.swagger-section pre .filter .argument, -.swagger-section pre .localvars, -.swagger-section pre .array, -.swagger-section pre .attr_selector, -.swagger-section pre .important, -.swagger-section pre .pseudo, -.swagger-section pre .pi, -.swagger-section pre .doctype, -.swagger-section pre .deletion, -.swagger-section pre .envvar, -.swagger-section pre .shebang, -.swagger-section pre .apache .sqbracket, -.swagger-section pre .nginx .built_in, -.swagger-section pre .tex .formula, -.swagger-section pre .erlang_repl .reserved, -.swagger-section pre .prompt, -.swagger-section pre .markdown .link_label, -.swagger-section pre .vhdl .attribute, -.swagger-section pre .clojure .attribute, -.swagger-section pre .coffeescript .property { - color: #88F; -} -.swagger-section pre .keyword, -.swagger-section pre .id, -.swagger-section pre .phpdoc, -.swagger-section pre .title, -.swagger-section pre .built_in, -.swagger-section pre .aggregate, -.swagger-section pre .css .tag, -.swagger-section pre .javadoctag, -.swagger-section pre .phpdoc, -.swagger-section pre .yardoctag, -.swagger-section pre .smalltalk .class, -.swagger-section pre .winutils, -.swagger-section pre .bash .variable, -.swagger-section pre .apache .tag, -.swagger-section pre .go .typename, -.swagger-section pre .tex .command, -.swagger-section pre .markdown .strong, -.swagger-section pre .request, -.swagger-section pre .status { - font-weight: bold; -} -.swagger-section pre .markdown .emphasis { - font-style: italic; -} -.swagger-section pre .nginx .built_in { - font-weight: normal; -} -.swagger-section pre .coffeescript .javascript, -.swagger-section pre .javascript .xml, -.swagger-section pre .tex .formula, -.swagger-section pre .xml .javascript, -.swagger-section pre .xml .vbscript, -.swagger-section pre .xml .css, -.swagger-section pre .xml .cdata { - opacity: 0.5; -} -.swagger-section .hljs { - display: block; - overflow-x: auto; - padding: 0.5em; - background: #F0F0F0; -} -.swagger-section .hljs, -.swagger-section .hljs-subst { - color: #444; -} -.swagger-section .hljs-keyword, -.swagger-section .hljs-attribute, -.swagger-section .hljs-selector-tag, -.swagger-section .hljs-meta-keyword, -.swagger-section .hljs-doctag, -.swagger-section .hljs-name { - font-weight: bold; -} -.swagger-section .hljs-built_in, -.swagger-section .hljs-literal, -.swagger-section .hljs-bullet, -.swagger-section .hljs-code, -.swagger-section .hljs-addition { - color: #1F811F; -} -.swagger-section .hljs-regexp, -.swagger-section .hljs-symbol, -.swagger-section .hljs-variable, -.swagger-section .hljs-template-variable, -.swagger-section .hljs-link, -.swagger-section .hljs-selector-attr, -.swagger-section .hljs-selector-pseudo { - color: #BC6060; -} -.swagger-section .hljs-type, -.swagger-section .hljs-string, -.swagger-section .hljs-number, -.swagger-section .hljs-selector-id, -.swagger-section .hljs-selector-class, -.swagger-section .hljs-quote, -.swagger-section .hljs-template-tag, -.swagger-section .hljs-deletion { - color: #880000; -} -.swagger-section .hljs-title, -.swagger-section .hljs-section { - color: #880000; - font-weight: bold; -} -.swagger-section .hljs-comment { - color: #888888; -} -.swagger-section .hljs-meta { - color: #2B6EA1; -} -.swagger-section .hljs-emphasis { - font-style: italic; -} -.swagger-section .hljs-strong { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap { - line-height: 1; - font-family: "Droid Sans", sans-serif; - min-width: 760px; - max-width: 960px; - margin-left: auto; - margin-right: auto; - /* JSONEditor specific styling */ -} -.swagger-section .swagger-ui-wrap b, -.swagger-section .swagger-ui-wrap strong { - font-family: "Droid Sans", sans-serif; - font-weight: bold; -} -.swagger-section .swagger-ui-wrap q, -.swagger-section .swagger-ui-wrap blockquote { - quotes: none; -} -.swagger-section .swagger-ui-wrap p { - line-height: 1.4em; - padding: 0 0 10px; - color: #333333; -} -.swagger-section .swagger-ui-wrap q:before, -.swagger-section .swagger-ui-wrap q:after, -.swagger-section .swagger-ui-wrap blockquote:before, -.swagger-section .swagger-ui-wrap blockquote:after { - content: none; -} -.swagger-section .swagger-ui-wrap .heading_with_menu h1, -.swagger-section .swagger-ui-wrap .heading_with_menu h2, -.swagger-section .swagger-ui-wrap .heading_with_menu h3, -.swagger-section .swagger-ui-wrap .heading_with_menu h4, -.swagger-section .swagger-ui-wrap .heading_with_menu h5, -.swagger-section .swagger-ui-wrap .heading_with_menu h6 { - display: block; - clear: none; - float: left; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - width: 60%; -} -.swagger-section .swagger-ui-wrap table { - border-collapse: collapse; - border-spacing: 0; -} -.swagger-section .swagger-ui-wrap table thead tr th { - padding: 5px; - font-size: 0.9em; - color: #666666; - border-bottom: 1px solid #999999; -} -.swagger-section .swagger-ui-wrap table tbody tr:last-child td { - border-bottom: none; -} -.swagger-section .swagger-ui-wrap table tbody tr.offset { - background-color: #f0f0f0; -} -.swagger-section .swagger-ui-wrap table tbody tr td { - padding: 6px; - font-size: 0.9em; - border-bottom: 1px solid #cccccc; - vertical-align: top; - line-height: 1.3em; -} -.swagger-section .swagger-ui-wrap ol { - margin: 0px 0 10px; - padding: 0 0 0 18px; - list-style-type: decimal; -} -.swagger-section .swagger-ui-wrap ol li { - padding: 5px 0px; - font-size: 0.9em; - color: #333333; -} -.swagger-section .swagger-ui-wrap ol, -.swagger-section .swagger-ui-wrap ul { - list-style: none; -} -.swagger-section .swagger-ui-wrap h1 a, -.swagger-section .swagger-ui-wrap h2 a, -.swagger-section .swagger-ui-wrap h3 a, -.swagger-section .swagger-ui-wrap h4 a, -.swagger-section .swagger-ui-wrap h5 a, -.swagger-section .swagger-ui-wrap h6 a { - text-decoration: none; -} -.swagger-section .swagger-ui-wrap h1 a:hover, -.swagger-section .swagger-ui-wrap h2 a:hover, -.swagger-section .swagger-ui-wrap h3 a:hover, -.swagger-section .swagger-ui-wrap h4 a:hover, -.swagger-section .swagger-ui-wrap h5 a:hover, -.swagger-section .swagger-ui-wrap h6 a:hover { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap h1 span.divider, -.swagger-section .swagger-ui-wrap h2 span.divider, -.swagger-section .swagger-ui-wrap h3 span.divider, -.swagger-section .swagger-ui-wrap h4 span.divider, -.swagger-section .swagger-ui-wrap h5 span.divider, -.swagger-section .swagger-ui-wrap h6 span.divider { - color: #aaaaaa; -} -.swagger-section .swagger-ui-wrap a { - color: #547f00; -} -.swagger-section .swagger-ui-wrap a img { - border: none; -} -.swagger-section .swagger-ui-wrap article, -.swagger-section .swagger-ui-wrap aside, -.swagger-section .swagger-ui-wrap details, -.swagger-section .swagger-ui-wrap figcaption, -.swagger-section .swagger-ui-wrap figure, -.swagger-section .swagger-ui-wrap footer, -.swagger-section .swagger-ui-wrap header, -.swagger-section .swagger-ui-wrap hgroup, -.swagger-section .swagger-ui-wrap menu, -.swagger-section .swagger-ui-wrap nav, -.swagger-section .swagger-ui-wrap section, -.swagger-section .swagger-ui-wrap summary { - display: block; -} -.swagger-section .swagger-ui-wrap pre { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - background-color: #fcf6db; - border: 1px solid #e5e0c6; - padding: 10px; -} -.swagger-section .swagger-ui-wrap pre code { - line-height: 1.6em; - background: none; -} -.swagger-section .swagger-ui-wrap .content > .content-type > div > label { - clear: both; - display: block; - color: #0F6AB4; - font-size: 1.1em; - margin: 0; - padding: 15px 0 5px; -} -.swagger-section .swagger-ui-wrap .content pre { - font-size: 12px; - margin-top: 5px; - padding: 5px; -} -.swagger-section .swagger-ui-wrap .icon-btn { - cursor: pointer; -} -.swagger-section .swagger-ui-wrap .info_title { - padding-bottom: 10px; - font-weight: bold; - font-size: 25px; -} -.swagger-section .swagger-ui-wrap .footer { - margin-top: 20px; -} -.swagger-section .swagger-ui-wrap p.big, -.swagger-section .swagger-ui-wrap div.big p { - font-size: 1em; - margin-bottom: 10px; -} -.swagger-section .swagger-ui-wrap form.fullwidth ol li.string input, -.swagger-section .swagger-ui-wrap form.fullwidth ol li.url input, -.swagger-section .swagger-ui-wrap form.fullwidth ol li.text textarea, -.swagger-section .swagger-ui-wrap form.fullwidth ol li.numeric input { - width: 500px !important; -} -.swagger-section .swagger-ui-wrap .info_license { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_tos { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .message-fail { - color: #cc0000; -} -.swagger-section .swagger-ui-wrap .info_url { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_email { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_name { - padding-bottom: 5px; -} -.swagger-section .swagger-ui-wrap .info_description { - padding-bottom: 10px; - font-size: 15px; -} -.swagger-section .swagger-ui-wrap .markdown ol li, -.swagger-section .swagger-ui-wrap .markdown ul li { - padding: 3px 0px; - line-height: 1.4em; - color: #333333; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input { - display: block; - padding: 4px; - width: auto; - clear: both; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.string input.title, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.url input.title, -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.numeric input.title { - font-size: 1.3em; -} -.swagger-section .swagger-ui-wrap table.fullwidth { - width: 100%; -} -.swagger-section .swagger-ui-wrap .model-signature { - font-family: "Droid Sans", sans-serif; - font-size: 1em; - line-height: 1.5em; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-nav a { - text-decoration: none; - color: #AAA; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-nav a:hover { - text-decoration: underline; - color: black; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-nav .selected { - color: black; - text-decoration: none; -} -.swagger-section .swagger-ui-wrap .model-signature .propType { - color: #5555aa; -} -.swagger-section .swagger-ui-wrap .model-signature pre:hover { - background-color: #ffffdd; -} -.swagger-section .swagger-ui-wrap .model-signature pre { - font-size: .85em; - line-height: 1.2em; - overflow: auto; - max-height: 200px; - cursor: pointer; -} -.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav { - display: block; - min-width: 230px; - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li:last-child { - padding-right: 0; - border-right: none; -} -.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li { - float: left; - margin: 0 5px 5px 0; - padding: 2px 5px 2px 0; - border-right: 1px solid #ddd; -} -.swagger-section .swagger-ui-wrap .model-signature .propOpt { - color: #555; -} -.swagger-section .swagger-ui-wrap .model-signature .snippet small { - font-size: 0.75em; -} -.swagger-section .swagger-ui-wrap .model-signature .propOptKey { - font-style: italic; -} -.swagger-section .swagger-ui-wrap .model-signature .description .strong { - font-weight: bold; - color: #000; - font-size: .9em; -} -.swagger-section .swagger-ui-wrap .model-signature .description div { - font-size: 0.9em; - line-height: 1.5em; - margin-left: 1em; -} -.swagger-section .swagger-ui-wrap .model-signature .description .stronger { - font-weight: bold; - color: #000; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper { - border-spacing: 0; - position: absolute; - background-color: #ffffff; - border: 1px solid #bbbbbb; - display: none; - font-size: 11px; - max-width: 400px; - line-height: 30px; - color: black; - padding: 5px; - margin-left: 10px; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper th { - text-align: center; - background-color: #eeeeee; - border: 1px solid #bbbbbb; - font-size: 11px; - color: #666666; - font-weight: bold; - padding: 5px; - line-height: 15px; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper .optionName { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:first-child, -.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:last-child { - display: inline; -} -.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown > p:not(:first-child):before { - display: block; - content: ''; -} -.swagger-section .swagger-ui-wrap .model-signature .description span:last-of-type.propDesc.markdown > p:only-child { - margin-right: -3px; -} -.swagger-section .swagger-ui-wrap .model-signature .propName { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .model-signature .signature-container { - clear: both; -} -.swagger-section .swagger-ui-wrap .body-textarea { - width: 300px; - height: 100px; - border: 1px solid #aaa; -} -.swagger-section .swagger-ui-wrap .markdown p code, -.swagger-section .swagger-ui-wrap .markdown li code { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - background-color: #f0f0f0; - color: black; - padding: 1px 3px; -} -.swagger-section .swagger-ui-wrap .required { - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .editor_holder { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap .editor_holder label { - font-weight: normal!important; - /* JSONEditor uses bold by default for all labels, we revert that back to normal to not give the impression that by default fields are required */ -} -.swagger-section .swagger-ui-wrap .editor_holder label.required { - font-weight: bold!important; -} -.swagger-section .swagger-ui-wrap input.parameter { - width: 300px; - border: 1px solid #aaa; -} -.swagger-section .swagger-ui-wrap h1 { - color: black; - font-size: 1.5em; - line-height: 1.3em; - padding: 10px 0 10px 0; - font-family: "Droid Sans", sans-serif; - font-weight: bold; -} -.swagger-section .swagger-ui-wrap .heading_with_menu { - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap .heading_with_menu ul { - display: block; - clear: none; - float: right; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - margin-top: 10px; -} -.swagger-section .swagger-ui-wrap h2 { - color: black; - font-size: 1.3em; - padding: 10px 0 10px 0; -} -.swagger-section .swagger-ui-wrap h2 a { - color: black; -} -.swagger-section .swagger-ui-wrap h2 span.sub { - font-size: 0.7em; - color: #999999; - font-style: italic; -} -.swagger-section .swagger-ui-wrap h2 span.sub a { - color: #777777; -} -.swagger-section .swagger-ui-wrap span.weak { - color: #666666; -} -.swagger-section .swagger-ui-wrap .message-success { - color: #89BF04; -} -.swagger-section .swagger-ui-wrap caption, -.swagger-section .swagger-ui-wrap th, -.swagger-section .swagger-ui-wrap td { - text-align: left; - font-weight: normal; - vertical-align: middle; -} -.swagger-section .swagger-ui-wrap .code { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.text textarea { - font-family: "Droid Sans", sans-serif; - height: 250px; - padding: 4px; - display: block; - clear: both; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.select select { - display: block; - clear: both; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean { - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean label { - display: block; - float: left; - clear: none; - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.boolean input { - display: block; - float: left; - clear: none; - margin: 0 5px 0 0; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.required label { - color: black; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label { - display: block; - clear: both; - width: auto; - padding: 0 0 3px; - color: #666666; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li label abbr { - padding-left: 3px; - color: #888888; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li p.inline-hints { - margin-left: 0; - font-style: italic; - font-size: 0.9em; - margin: 0; -} -.swagger-section .swagger-ui-wrap form.formtastic fieldset.buttons { - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap span.blank, -.swagger-section .swagger-ui-wrap span.empty { - color: #888888; - font-style: italic; -} -.swagger-section .swagger-ui-wrap .markdown h3 { - color: #547f00; -} -.swagger-section .swagger-ui-wrap .markdown h4 { - color: #666666; -} -.swagger-section .swagger-ui-wrap .markdown pre { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - background-color: #fcf6db; - border: 1px solid #e5e0c6; - padding: 10px; - margin: 0 0 10px 0; -} -.swagger-section .swagger-ui-wrap .markdown pre code { - line-height: 1.6em; - overflow: auto; -} -.swagger-section .swagger-ui-wrap div.gist { - margin: 20px 0 25px 0 !important; -} -.swagger-section .swagger-ui-wrap ul#resources { - font-family: "Droid Sans", sans-serif; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource { - border-bottom: 1px solid #dddddd; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading h2 a, -.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading h2 a { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource:hover div.heading ul.options li a, -.swagger-section .swagger-ui-wrap ul#resources li.resource.active div.heading ul.options li a { - color: #555555; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource:last-child { - border-bottom: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading { - border: 1px solid transparent; - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options { - overflow: hidden; - padding: 0; - display: block; - clear: none; - float: right; - margin: 14px 10px 0 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li { - float: left; - clear: none; - margin: 0; - padding: 2px 10px; - border-right: 1px solid #dddddd; - color: #666666; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a { - color: #aaaaaa; - text-decoration: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover { - text-decoration: underline; - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:hover, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a:active, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li a.active { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options li.last { - padding-right: 0; - border-right: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading ul.options.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 { - color: #999999; - padding-left: 0; - display: block; - clear: none; - float: left; - font-family: "Droid Sans", sans-serif; - font-weight: bold; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a { - color: #999999; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation { - float: none; - clear: both; - overflow: hidden; - display: block; - margin: 0 0 10px; - padding: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading { - float: none; - clear: both; - overflow: hidden; - display: block; - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 { - display: block; - clear: none; - float: left; - width: auto; - margin: 0; - padding: 0; - line-height: 1.1em; - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path { - padding-left: 10px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a { - color: black; - text-decoration: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a.toggleOperation.deprecated { - text-decoration: line-through; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.path a:hover { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span.http_method a { - text-transform: uppercase; - text-decoration: none; - color: white; - display: inline-block; - width: 50px; - font-size: 0.7em; - text-align: center; - padding: 7px 0 4px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - -o-border-radius: 2px; - -ms-border-radius: 2px; - -khtml-border-radius: 2px; - border-radius: 2px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading h3 span { - margin: 0; - padding: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options { - overflow: hidden; - padding: 0; - display: block; - clear: none; - float: right; - margin: 6px 10px 0 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li { - float: left; - clear: none; - margin: 0; - padding: 2px 10px; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li a { - text-decoration: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li a .markdown p { - color: inherit; - padding: 0; - line-height: inherit; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.heading ul.options li.access { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content { - border-top: none; - padding: 10px; - -moz-border-radius-bottomleft: 6px; - -webkit-border-bottom-left-radius: 6px; - -o-border-bottom-left-radius: 6px; - -ms-border-bottom-left-radius: 6px; - -khtml-border-bottom-left-radius: 6px; - border-bottom-left-radius: 6px; - -moz-border-radius-bottomright: 6px; - -webkit-border-bottom-right-radius: 6px; - -o-border-bottom-right-radius: 6px; - -ms-border-bottom-right-radius: 6px; - -khtml-border-bottom-right-radius: 6px; - border-bottom-right-radius: 6px; - margin: 0 0 20px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content h4 { - font-size: 1.1em; - margin: 0; - padding: 15px 0 5px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header { - float: none; - clear: both; - overflow: hidden; - display: block; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header a { - padding: 4px 0 0 10px; - display: inline-block; - font-size: 0.9em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header input.submit { - display: block; - clear: none; - float: left; - padding: 6px 8px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header span.response_throbber { - background-image: url('../images/throbber.gif'); - width: 128px; - height: 16px; - display: block; - clear: none; - float: right; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form input[type='text'].error { - outline: 2px solid black; - outline-color: #cc0000; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form select[name='parameterContentType'] { - max-width: 300px; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.response div.block pre { - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - padding: 10px; - font-size: 0.9em; - max-height: 400px; - overflow-y: auto; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading { - background-color: #f9f2e9; - border: 1px solid #f0e0ca; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.http_method a { - background-color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #f0e0ca; - color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a { - color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content { - background-color: #faf5ee; - border: 1px solid #f0e0ca; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content h4 { - color: #c5862b; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header a { - color: #dcb67f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading { - background-color: #fcffcd; - border: 1px solid black; - border-color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.http_method a { - text-transform: uppercase; - background-color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #ffd20f; - color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a { - color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content { - background-color: #fcffcd; - border: 1px solid black; - border-color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content h4 { - color: #ffd20f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header a { - color: #6fc992; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading { - background-color: #f5e8e8; - border: 1px solid #e8c6c7; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.http_method a { - text-transform: uppercase; - background-color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #e8c6c7; - color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a { - color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content { - background-color: #f7eded; - border: 1px solid #e8c6c7; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content h4 { - color: #a41e22; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header a { - color: #c8787a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading { - background-color: #e7f6ec; - border: 1px solid #c3e8d1; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.http_method a { - background-color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #c3e8d1; - color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a { - color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content { - background-color: #ebf7f0; - border: 1px solid #c3e8d1; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content h4 { - color: #10a54a; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header a { - color: #6fc992; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading { - background-color: #FCE9E3; - border: 1px solid #F5D5C3; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.http_method a { - background-color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #f0cecb; - color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a { - color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content { - background-color: #faf0ef; - border: 1px solid #f0cecb; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content h4 { - color: #D38042; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header a { - color: #dcb67f; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading { - background-color: #e7f0f7; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.http_method a { - background-color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #c3d9ec; - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content { - background-color: #ebf3f9; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content h4 { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header a { - color: #6fa5d2; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading { - background-color: #e7f0f7; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading h3 span.http_method a { - background-color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li { - border-right: 1px solid #dddddd; - border-right-color: #c3d9ec; - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.heading ul.options li a { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content { - background-color: #ebf3f9; - border: 1px solid #c3d9ec; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content h4 { - color: #0f6ab4; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.options div.content div.sandbox_header a { - color: #6fa5d2; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content { - border-top: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li:last-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li.last, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li.last { - padding-right: 0; - border-right: none; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:hover, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a:active, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li a.active { - text-decoration: underline; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations ul.options li.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations:first-child, -.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations.first { - padding-left: 0; -} -.swagger-section .swagger-ui-wrap p#colophon { - margin: 0 15px 40px 15px; - padding: 10px 0; - font-size: 0.8em; - border-top: 1px solid #dddddd; - font-family: "Droid Sans", sans-serif; - color: #999999; - font-style: italic; -} -.swagger-section .swagger-ui-wrap p#colophon a { - text-decoration: none; - color: #547f00; -} -.swagger-section .swagger-ui-wrap h3 { - color: black; - font-size: 1.1em; - padding: 10px 0 10px 0; -} -.swagger-section .swagger-ui-wrap .markdown ol, -.swagger-section .swagger-ui-wrap .markdown ul { - font-family: "Droid Sans", sans-serif; - margin: 5px 0 10px; - padding: 0 0 0 18px; - list-style-type: disc; -} -.swagger-section .swagger-ui-wrap form.form_box { - background-color: #ebf3f9; - border: 1px solid #c3d9ec; - padding: 10px; -} -.swagger-section .swagger-ui-wrap form.form_box label { - color: #0f6ab4 !important; -} -.swagger-section .swagger-ui-wrap form.form_box input[type=submit] { - display: block; - padding: 10px; -} -.swagger-section .swagger-ui-wrap form.form_box p.weak { - font-size: 0.8em; -} -.swagger-section .swagger-ui-wrap form.form_box p { - font-size: 0.9em; - padding: 0 0 15px; - color: #7e7b6d; -} -.swagger-section .swagger-ui-wrap form.form_box p a { - color: #646257; -} -.swagger-section .swagger-ui-wrap form.form_box p strong { - color: black; -} -.swagger-section .swagger-ui-wrap .operation-status td.markdown > p:last-child { - padding-bottom: 0; -} -.swagger-section .title { - font-style: bold; -} -.swagger-section .secondary_form { - display: none; -} -.swagger-section .main_image { - display: block; - margin-left: auto; - margin-right: auto; -} -.swagger-section .oauth_body { - margin-left: 100px; - margin-right: 100px; -} -.swagger-section .oauth_submit { - text-align: center; - display: inline-block; -} -.swagger-section .authorize-wrapper { - margin: 15px 0 10px; -} -.swagger-section .authorize-wrapper_operation { - float: right; -} -.swagger-section .authorize__btn:hover { - text-decoration: underline; - cursor: pointer; -} -.swagger-section .authorize__btn_operation:hover .authorize-scopes { - display: block; -} -.swagger-section .authorize-scopes { - position: absolute; - margin-top: 20px; - background: #FFF; - border: 1px solid #ccc; - border-radius: 5px; - display: none; - font-size: 13px; - max-width: 300px; - line-height: 30px; - color: black; - padding: 5px; -} -.swagger-section .authorize-scopes .authorize__scope { - text-decoration: none; -} -.swagger-section .authorize__btn_operation { - height: 18px; - vertical-align: middle; - display: inline-block; - background: url(../images/explorer_icons.png) no-repeat; -} -.swagger-section .authorize__btn_operation_login { - background-position: 0 0; - width: 18px; - margin-top: -6px; - margin-left: 4px; -} -.swagger-section .authorize__btn_operation_logout { - background-position: -30px 0; - width: 18px; - margin-top: -6px; - margin-left: 4px; -} -.swagger-section #auth_container { - color: #fff; - display: inline-block; - border: none; - padding: 5px; - width: 87px; - height: 13px; -} -.swagger-section #auth_container .authorize__btn { - color: #fff; -} -.swagger-section .auth_container { - padding: 0 0 10px; - margin-bottom: 5px; - border-bottom: solid 1px #CCC; - font-size: 0.9em; -} -.swagger-section .auth_container .auth__title { - color: #547f00; - font-size: 1.2em; -} -.swagger-section .auth_container .basic_auth__label { - display: inline-block; - width: 60px; -} -.swagger-section .auth_container .auth__description { - color: #999999; - margin-bottom: 5px; -} -.swagger-section .auth_container .auth__button { - margin-top: 10px; - height: 30px; -} -.swagger-section .auth_container .key_auth__field { - margin: 5px 0; -} -.swagger-section .auth_container .key_auth__label { - display: inline-block; - width: 60px; -} -.swagger-section .api-popup-dialog { - position: absolute; - display: none; -} -.swagger-section .api-popup-dialog-wrapper { - z-index: 1000; - width: 500px; - background: #FFF; - padding: 20px; - border: 1px solid #ccc; - border-radius: 5px; - font-size: 13px; - color: #777; - position: fixed; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -} -.swagger-section .api-popup-dialog-shadow { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - opacity: 0.2; - background-color: gray; - z-index: 900; -} -.swagger-section .api-popup-dialog .api-popup-title { - font-size: 24px; - padding: 10px 0; -} -.swagger-section .api-popup-dialog .api-popup-title { - font-size: 24px; - padding: 10px 0; -} -.swagger-section .api-popup-dialog .error-msg { - padding-left: 5px; - padding-bottom: 5px; -} -.swagger-section .api-popup-dialog .api-popup-content { - max-height: 500px; - overflow-y: auto; -} -.swagger-section .api-popup-dialog .api-popup-authbtn { - height: 30px; -} -.swagger-section .api-popup-dialog .api-popup-cancel { - height: 30px; -} -.swagger-section .api-popup-scopes { - padding: 10px 20px; -} -.swagger-section .api-popup-scopes li { - padding: 5px 0; - line-height: 20px; -} -.swagger-section .api-popup-scopes li input { - position: relative; - top: 2px; -} -.swagger-section .api-popup-scopes .api-scope-desc { - padding-left: 20px; - font-style: italic; -} -.swagger-section .api-popup-actions { - padding-top: 10px; -} -.swagger-section .access { - float: right; -} -.swagger-section .auth { - float: right; -} -.swagger-section .api-ic { - height: 18px; - vertical-align: middle; - display: inline-block; - background: url(../images/explorer_icons.png) no-repeat; -} -.swagger-section .api-ic .api_information_panel { - position: relative; - margin-top: 20px; - margin-left: -5px; - background: #FFF; - border: 1px solid #ccc; - border-radius: 5px; - display: none; - font-size: 13px; - max-width: 300px; - line-height: 30px; - color: black; - padding: 5px; -} -.swagger-section .api-ic .api_information_panel p .api-msg-enabled { - color: green; -} -.swagger-section .api-ic .api_information_panel p .api-msg-disabled { - color: red; -} -.swagger-section .api-ic:hover .api_information_panel { - position: absolute; - display: block; -} -.swagger-section .ic-info { - background-position: 0 0; - width: 18px; - margin-top: -6px; - margin-left: 4px; -} -.swagger-section .ic-warning { - background-position: -60px 0; - width: 18px; - margin-top: -6px; - margin-left: 4px; -} -.swagger-section .ic-error { - background-position: -30px 0; - width: 18px; - margin-top: -6px; - margin-left: 4px; -} -.swagger-section .ic-off { - background-position: -90px 0; - width: 58px; - margin-top: -4px; - cursor: pointer; -} -.swagger-section .ic-on { - background-position: -160px 0; - width: 58px; - margin-top: -4px; - cursor: pointer; -} -.swagger-section #header { - background-color: #89bf04; - padding: 9px 14px 19px 14px; - height: 23px; - min-width: 775px; -} -.swagger-section #input_baseUrl { - width: 400px; -} -.swagger-section #api_selector { - display: block; - clear: none; - float: right; -} -.swagger-section #api_selector .input { - display: inline-block; - clear: none; - margin: 0 10px 0 0; -} -.swagger-section #api_selector input { - font-size: 0.9em; - padding: 3px; - margin: 0; -} -.swagger-section #input_apiKey { - width: 200px; -} -.swagger-section #explore, -.swagger-section #auth_container .authorize__btn { - display: block; - text-decoration: none; - font-weight: bold; - padding: 6px 8px; - font-size: 0.9em; - color: white; - background-color: #547f00; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - -o-border-radius: 4px; - -ms-border-radius: 4px; - -khtml-border-radius: 4px; - border-radius: 4px; -} -.swagger-section #explore:hover, -.swagger-section #auth_container .authorize__btn:hover { - background-color: #547f00; -} -.swagger-section #header #logo { - font-size: 1.5em; - font-weight: bold; - text-decoration: none; - color: white; -} -.swagger-section #header #logo .logo__img { - display: block; - float: left; - margin-top: 2px; -} -.swagger-section #header #logo .logo__title { - display: inline-block; - padding: 5px 0 0 10px; -} -.swagger-section #content_message { - margin: 10px 15px; - font-style: italic; - color: #999999; -} -.swagger-section #message-bar { - min-height: 30px; - text-align: center; - padding-top: 10px; -} -.swagger-section .swagger-collapse:before { - content: "-"; -} -.swagger-section .swagger-expand:before { - content: "+"; -} -.swagger-section .error { - outline-color: #cc0000; - background-color: #f2dede; -} diff --git a/api/src/main/resources/public/css/style.css b/api/src/main/resources/public/css/style.css deleted file mode 100644 index fc21a31d..00000000 --- a/api/src/main/resources/public/css/style.css +++ /dev/null @@ -1,250 +0,0 @@ -.swagger-section #header a#logo { - font-size: 1.5em; - font-weight: bold; - text-decoration: none; - background: transparent url(../images/logo.png) no-repeat left center; - padding: 20px 0 20px 40px; -} -#text-head { - font-size: 80px; - font-family: 'Roboto', sans-serif; - color: #ffffff; - float: right; - margin-right: 20%; -} -.navbar-fixed-top .navbar-nav { - height: auto; -} -.navbar-fixed-top .navbar-brand { - height: auto; -} -.navbar-header { - height: auto; -} -.navbar-inverse { - background-color: #000; - border-color: #000; -} -#navbar-brand { - margin-left: 20%; -} -.navtext { - font-size: 10px; -} -.h1, -h1 { - font-size: 60px; -} -.navbar-default .navbar-header .navbar-brand { - color: #a2dfee; -} -/* tag titles */ -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a { - color: #393939; - font-family: 'Arvo', serif; - font-size: 1.5em; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover { - color: black; -} -.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 { - color: #525252; - padding-left: 0px; - display: block; - clear: none; - float: left; - font-family: 'Arvo', serif; - font-weight: bold; -} -.navbar-default .navbar-collapse, -.navbar-default .navbar-form { - border-color: #0A0A0A; -} -.container1 { - width: 1500px; - margin: auto; - margin-top: 0; - background-image: url('../images/shield.png'); - background-repeat: no-repeat; - background-position: -40px -20px; - margin-bottom: 210px; -} -.container-inner { - width: 1200px; - margin: auto; - background-color: rgba(223, 227, 228, 0.75); - padding-bottom: 40px; - padding-top: 40px; - border-radius: 15px; -} -.header-content { - padding: 0; - width: 1000px; -} -.title1 { - font-size: 80px; - font-family: 'Vollkorn', serif; - color: #404040; - text-align: center; - padding-top: 40px; - padding-bottom: 100px; -} -#icon { - margin-top: -18px; -} -.subtext { - font-size: 25px; - font-style: italic; - color: #08b; - text-align: right; - padding-right: 250px; -} -.bg-primary { - background-color: #00468b; -} -.navbar-default .nav > li > a, -.navbar-default .nav > li > a:focus { - color: #08b; -} -.navbar-default .nav > li > a, -.navbar-default .nav > li > a:hover { - color: #08b; -} -.navbar-default .nav > li > a, -.navbar-default .nav > li > a:focus:hover { - color: #08b; -} -.text-faded { - font-size: 25px; - font-family: 'Vollkorn', serif; -} -.section-heading { - font-family: 'Vollkorn', serif; - font-size: 45px; - padding-bottom: 10px; -} -hr { - border-color: #00468b; - padding-bottom: 10px; -} -.description { - margin-top: 20px; - padding-bottom: 200px; -} -.description li { - font-family: 'Vollkorn', serif; - font-size: 25px; - color: #525252; - margin-left: 28%; - padding-top: 5px; -} -.gap { - margin-top: 200px; -} -.troubleshootingtext { - color: rgba(255, 255, 255, 0.7); - padding-left: 30%; -} -.troubleshootingtext li { - list-style-type: circle; - font-size: 25px; - padding-bottom: 5px; -} -.overlay { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1000; -} -.block.response_body.json:hover { - cursor: pointer; -} -.backdrop { - color: blue; -} -#myModal { - height: 100%; -} -.modal-backdrop { - bottom: 0; - position: fixed; -} -.curl { - padding: 10px; - font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; - font-size: 0.9em; - max-height: 400px; - margin-top: 5px; - overflow-y: auto; - background-color: #fcf6db; - border: 1px solid #e5e0c6; - border-radius: 4px; -} -.curl_title { - font-size: 1.1em; - margin: 0; - padding: 15px 0 5px; - font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif; - font-weight: 500; - line-height: 1.1; -} -.footer { - display: none; -} -.swagger-section .swagger-ui-wrap h2 { - padding: 0; -} -h2 { - margin: 0; - margin-bottom: 5px; -} -.markdown p { - font-size: 15px; - font-family: 'Arvo', serif; -} -.swagger-section .swagger-ui-wrap .code { - font-size: 15px; - font-family: 'Arvo', serif; -} -.swagger-section .swagger-ui-wrap b { - font-family: 'Arvo', serif; -} -#signin:hover { - cursor: pointer; -} -.dropdown-menu { - padding: 15px; -} -.navbar-right .dropdown-menu { - left: 0; - right: auto; -} -#signinbutton { - width: 100%; - height: 32px; - font-size: 13px; - font-weight: bold; - color: #08b; -} -.navbar-default .nav > li .details { - color: #000000; - text-transform: none; - font-size: 15px; - font-weight: normal; - font-family: 'Open Sans', sans-serif; - font-style: italic; - line-height: 20px; - top: -2px; -} -.navbar-default .nav > li .details:hover { - color: black; -} -#signout { - width: 100%; - height: 32px; - font-size: 13px; - font-weight: bold; - color: #08b; -} diff --git a/api/src/main/resources/public/css/typography.css b/api/src/main/resources/public/css/typography.css deleted file mode 100644 index 3235edd9..00000000 --- a/api/src/main/resources/public/css/typography.css +++ /dev/null @@ -1,14 +0,0 @@ -/* Google Font's Droid Sans */ -@font-face { - font-family: 'Droid Sans'; - font-style: normal; - font-weight: 400; - src: local('Droid Sans'), local('DroidSans'), url('../fonts/DroidSans.ttf') format('truetype'); -} -/* Google Font's Droid Sans Bold */ -@font-face { - font-family: 'Droid Sans'; - font-style: normal; - font-weight: 700; - src: local('Droid Sans Bold'), local('DroidSans-Bold'), url('../fonts/DroidSans-Bold.ttf') format('truetype'); -} diff --git a/api/src/main/resources/public/fonts/DroidSans-Bold.ttf b/api/src/main/resources/public/fonts/DroidSans-Bold.ttf deleted file mode 100644 index 036c4d13..00000000 Binary files a/api/src/main/resources/public/fonts/DroidSans-Bold.ttf and /dev/null differ diff --git a/api/src/main/resources/public/fonts/DroidSans.ttf b/api/src/main/resources/public/fonts/DroidSans.ttf deleted file mode 100644 index e517a0c5..00000000 Binary files a/api/src/main/resources/public/fonts/DroidSans.ttf and /dev/null differ diff --git a/api/src/main/resources/public/index.html b/api/src/main/resources/public/index.html deleted file mode 100644 index f22ede91..00000000 --- a/api/src/main/resources/public/index.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - Swagger UI - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
-
- - diff --git a/api/src/main/resources/public/lang/ca.js b/api/src/main/resources/public/lang/ca.js deleted file mode 100644 index f8c815aa..00000000 --- a/api/src/main/resources/public/lang/ca.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Advertència: Obsolet", - "Implementation Notes":"Notes d'implementació", - "Response Class":"Classe de la Resposta", - "Status":"Estatus", - "Parameters":"Paràmetres", - "Parameter":"Paràmetre", - "Value":"Valor", - "Description":"Descripció", - "Parameter Type":"Tipus del Paràmetre", - "Data Type":"Tipus de la Dada", - "Response Messages":"Missatges de la Resposta", - "HTTP Status Code":"Codi d'Estatus HTTP", - "Reason":"Raó", - "Response Model":"Model de la Resposta", - "Request URL":"URL de la Sol·licitud", - "Response Body":"Cos de la Resposta", - "Response Code":"Codi de la Resposta", - "Response Headers":"Capçaleres de la Resposta", - "Hide Response":"Amagar Resposta", - "Try it out!":"Prova-ho!", - "Show/Hide":"Mostrar/Amagar", - "List Operations":"Llista Operacions", - "Expand Operations":"Expandir Operacions", - "Raw":"Cru", - "can't parse JSON. Raw result":"no puc analitzar el JSON. Resultat cru", - "Example Value":"Valor d'Exemple", - "Model Schema":"Esquema del Model", - "Model":"Model", - "apply":"aplicar", - "Username":"Nom d'usuari", - "Password":"Contrasenya", - "Terms of service":"Termes del servei", - "Created by":"Creat per", - "See more at":"Veure més en", - "Contact the developer":"Contactar amb el desenvolupador", - "api version":"versió de la api", - "Response Content Type":"Tipus de Contingut de la Resposta", - "fetching resource":"recollint recurs", - "fetching resource list":"recollins llista de recursos", - "Explore":"Explorant", - "Show Swagger Petstore Example Apis":"Mostrar API d'Exemple Swagger Petstore", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"No es pot llegir del servidor. Potser no teniu la configuració de control d'accés apropiada.", - "Please specify the protocol for":"Si us plau, especifiqueu el protocol per a", - "Can't read swagger JSON from":"No es pot llegir el JSON de swagger des de", - "Finished Loading Resource Information. Rendering Swagger UI":"Finalitzada la càrrega del recurs informatiu. Renderitzant Swagger UI", - "Unable to read api":"No es pot llegir l'api", - "from path":"des de la ruta", - "server returned":"el servidor ha retornat" -}); diff --git a/api/src/main/resources/public/lang/el.js b/api/src/main/resources/public/lang/el.js deleted file mode 100644 index fcd1ffdd..00000000 --- a/api/src/main/resources/public/lang/el.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Προειδοποίηση: Έχει αποσυρθεί", - "Implementation Notes":"Σημειώσεις Υλοποίησης", - "Response Class":"Απόκριση", - "Status":"Κατάσταση", - "Parameters":"Παράμετροι", - "Parameter":"Παράμετρος", - "Value":"Τιμή", - "Description":"Περιγραφή", - "Parameter Type":"Τύπος Παραμέτρου", - "Data Type":"Τύπος Δεδομένων", - "Response Messages":"Μηνύματα Απόκρισης", - "HTTP Status Code":"Κωδικός Κατάστασης HTTP", - "Reason":"Αιτιολογία", - "Response Model":"Μοντέλο Απόκρισης", - "Request URL":"URL Αιτήματος", - "Response Body":"Σώμα Απόκρισης", - "Response Code":"Κωδικός Απόκρισης", - "Response Headers":"Επικεφαλίδες Απόκρισης", - "Hide Response":"Απόκρυψη Απόκρισης", - "Headers":"Επικεφαλίδες", - "Try it out!":"Δοκιμάστε το!", - "Show/Hide":"Εμφάνιση/Απόκρυψη", - "List Operations":"Λίστα Λειτουργιών", - "Expand Operations":"Ανάπτυξη Λειτουργιών", - "Raw":"Ακατέργαστο", - "can't parse JSON. Raw result":"αδυναμία ανάλυσης JSON. Ακατέργαστο αποτέλεσμα", - "Example Value":"Παράδειγμα Τιμής", - "Model Schema":"Σχήμα Μοντέλου", - "Model":"Μοντέλο", - "Click to set as parameter value":"Πατήστε για να θέσετε τιμή παραμέτρου", - "apply":"εφαρμογή", - "Username":"Όνομα χρήση", - "Password":"Κωδικός πρόσβασης", - "Terms of service":"Όροι χρήσης", - "Created by":"Δημιουργήθηκε από", - "See more at":"Δείτε περισσότερα στο", - "Contact the developer":"Επικοινωνήστε με τον προγραμματιστή", - "api version":"έκδοση api", - "Response Content Type":"Τύπος Περιεχομένου Απόκρισης", - "Parameter content type:":"Τύπος περιεχομένου παραμέτρου:", - "fetching resource":"παραλαβή πόρου", - "fetching resource list":"παραλαβή λίστας πόρων", - "Explore":"Εξερεύνηση", - "Show Swagger Petstore Example Apis":"Εμφάνιση Api Δειγμάτων Petstore του Swagger", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"Αδυναμία ανάγνωσης από τον εξυπηρετητή. Μπορεί να μην έχει κατάλληλες ρυθμίσεις για access-control-origin.", - "Please specify the protocol for":"Παρακαλώ προσδιορίστε το πρωτόκολλο για", - "Can't read swagger JSON from":"Αδυναμία ανάγνωσης swagger JSON από", - "Finished Loading Resource Information. Rendering Swagger UI":"Ολοκλήρωση Φόρτωσης Πληροφορικών Πόρου. Παρουσίαση Swagger UI", - "Unable to read api":"Αδυναμία ανάγνωσης api", - "from path":"από το μονοπάτι", - "server returned":"ο εξυπηρετηρής επέστρεψε" -}); diff --git a/api/src/main/resources/public/lang/en.js b/api/src/main/resources/public/lang/en.js deleted file mode 100644 index 91831366..00000000 --- a/api/src/main/resources/public/lang/en.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Warning: Deprecated", - "Implementation Notes":"Implementation Notes", - "Response Class":"Response Class", - "Status":"Status", - "Parameters":"Parameters", - "Parameter":"Parameter", - "Value":"Value", - "Description":"Description", - "Parameter Type":"Parameter Type", - "Data Type":"Data Type", - "Response Messages":"Response Messages", - "HTTP Status Code":"HTTP Status Code", - "Reason":"Reason", - "Response Model":"Response Model", - "Request URL":"Request URL", - "Response Body":"Response Body", - "Response Code":"Response Code", - "Response Headers":"Response Headers", - "Hide Response":"Hide Response", - "Headers":"Headers", - "Try it out!":"Try it out!", - "Show/Hide":"Show/Hide", - "List Operations":"List Operations", - "Expand Operations":"Expand Operations", - "Raw":"Raw", - "can't parse JSON. Raw result":"can't parse JSON. Raw result", - "Example Value":"Example Value", - "Model Schema":"Model Schema", - "Model":"Model", - "Click to set as parameter value":"Click to set as parameter value", - "apply":"apply", - "Username":"Username", - "Password":"Password", - "Terms of service":"Terms of service", - "Created by":"Created by", - "See more at":"See more at", - "Contact the developer":"Contact the developer", - "api version":"api version", - "Response Content Type":"Response Content Type", - "Parameter content type:":"Parameter content type:", - "fetching resource":"fetching resource", - "fetching resource list":"fetching resource list", - "Explore":"Explore", - "Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"Can't read from server. It may not have the appropriate access-control-origin settings.", - "Please specify the protocol for":"Please specify the protocol for", - "Can't read swagger JSON from":"Can't read swagger JSON from", - "Finished Loading Resource Information. Rendering Swagger UI":"Finished Loading Resource Information. Rendering Swagger UI", - "Unable to read api":"Unable to read api", - "from path":"from path", - "server returned":"server returned" -}); diff --git a/api/src/main/resources/public/lang/es.js b/api/src/main/resources/public/lang/es.js deleted file mode 100644 index 13fa015e..00000000 --- a/api/src/main/resources/public/lang/es.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Advertencia: Obsoleto", - "Implementation Notes":"Notas de implementación", - "Response Class":"Clase de la Respuesta", - "Status":"Status", - "Parameters":"Parámetros", - "Parameter":"Parámetro", - "Value":"Valor", - "Description":"Descripción", - "Parameter Type":"Tipo del Parámetro", - "Data Type":"Tipo del Dato", - "Response Messages":"Mensajes de la Respuesta", - "HTTP Status Code":"Código de Status HTTP", - "Reason":"Razón", - "Response Model":"Modelo de la Respuesta", - "Request URL":"URL de la Solicitud", - "Response Body":"Cuerpo de la Respuesta", - "Response Code":"Código de la Respuesta", - "Response Headers":"Encabezados de la Respuesta", - "Hide Response":"Ocultar Respuesta", - "Try it out!":"Pruébalo!", - "Show/Hide":"Mostrar/Ocultar", - "List Operations":"Listar Operaciones", - "Expand Operations":"Expandir Operaciones", - "Raw":"Crudo", - "can't parse JSON. Raw result":"no puede parsear el JSON. Resultado crudo", - "Example Value":"Valor de Ejemplo", - "Model Schema":"Esquema del Modelo", - "Model":"Modelo", - "apply":"aplicar", - "Username":"Nombre de usuario", - "Password":"Contraseña", - "Terms of service":"Términos de Servicio", - "Created by":"Creado por", - "See more at":"Ver más en", - "Contact the developer":"Contactar al desarrollador", - "api version":"versión de la api", - "Response Content Type":"Tipo de Contenido (Content Type) de la Respuesta", - "fetching resource":"buscando recurso", - "fetching resource list":"buscando lista del recurso", - "Explore":"Explorar", - "Show Swagger Petstore Example Apis":"Mostrar Api Ejemplo de Swagger Petstore", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"No se puede leer del servidor. Tal vez no tiene la configuración de control de acceso de origen (access-control-origin) apropiado.", - "Please specify the protocol for":"Por favor, especificar el protocola para", - "Can't read swagger JSON from":"No se puede leer el JSON de swagger desde", - "Finished Loading Resource Information. Rendering Swagger UI":"Finalizada la carga del recurso de Información. Mostrando Swagger UI", - "Unable to read api":"No se puede leer la api", - "from path":"desde ruta", - "server returned":"el servidor retornó" -}); diff --git a/api/src/main/resources/public/lang/fr.js b/api/src/main/resources/public/lang/fr.js deleted file mode 100644 index 388dff14..00000000 --- a/api/src/main/resources/public/lang/fr.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Avertissement : Obsolète", - "Implementation Notes":"Notes d'implémentation", - "Response Class":"Classe de la réponse", - "Status":"Statut", - "Parameters":"Paramètres", - "Parameter":"Paramètre", - "Value":"Valeur", - "Description":"Description", - "Parameter Type":"Type du paramètre", - "Data Type":"Type de données", - "Response Messages":"Messages de la réponse", - "HTTP Status Code":"Code de statut HTTP", - "Reason":"Raison", - "Response Model":"Modèle de réponse", - "Request URL":"URL appelée", - "Response Body":"Corps de la réponse", - "Response Code":"Code de la réponse", - "Response Headers":"En-têtes de la réponse", - "Hide Response":"Cacher la réponse", - "Headers":"En-têtes", - "Try it out!":"Testez !", - "Show/Hide":"Afficher/Masquer", - "List Operations":"Liste des opérations", - "Expand Operations":"Développer les opérations", - "Raw":"Brut", - "can't parse JSON. Raw result":"impossible de décoder le JSON. Résultat brut", - "Example Value":"Exemple la valeur", - "Model Schema":"Définition du modèle", - "Model":"Modèle", - "apply":"appliquer", - "Username":"Nom d'utilisateur", - "Password":"Mot de passe", - "Terms of service":"Conditions de service", - "Created by":"Créé par", - "See more at":"Voir plus sur", - "Contact the developer":"Contacter le développeur", - "api version":"version de l'api", - "Response Content Type":"Content Type de la réponse", - "fetching resource":"récupération de la ressource", - "fetching resource list":"récupération de la liste de ressources", - "Explore":"Explorer", - "Show Swagger Petstore Example Apis":"Montrer les Apis de l'exemple Petstore de Swagger", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"Impossible de lire à partir du serveur. Il se peut que les réglages access-control-origin ne soient pas appropriés.", - "Please specify the protocol for":"Veuillez spécifier un protocole pour", - "Can't read swagger JSON from":"Impossible de lire le JSON swagger à partir de", - "Finished Loading Resource Information. Rendering Swagger UI":"Chargement des informations terminé. Affichage de Swagger UI", - "Unable to read api":"Impossible de lire l'api", - "from path":"à partir du chemin", - "server returned":"réponse du serveur" -}); diff --git a/api/src/main/resources/public/lang/geo.js b/api/src/main/resources/public/lang/geo.js deleted file mode 100644 index 609c20d9..00000000 --- a/api/src/main/resources/public/lang/geo.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"ყურადღება: აღარ გამოიყენება", - "Implementation Notes":"იმპლემენტაციის აღწერა", - "Response Class":"რესპონს კლასი", - "Status":"სტატუსი", - "Parameters":"პარამეტრები", - "Parameter":"პარამეტრი", - "Value":"მნიშვნელობა", - "Description":"აღწერა", - "Parameter Type":"პარამეტრის ტიპი", - "Data Type":"მონაცემის ტიპი", - "Response Messages":"პასუხი", - "HTTP Status Code":"HTTP სტატუსი", - "Reason":"მიზეზი", - "Response Model":"რესპონს მოდელი", - "Request URL":"მოთხოვნის URL", - "Response Body":"პასუხის სხეული", - "Response Code":"პასუხის კოდი", - "Response Headers":"პასუხის ჰედერები", - "Hide Response":"დამალე პასუხი", - "Headers":"ჰედერები", - "Try it out!":"ცადე !", - "Show/Hide":"გამოჩენა/დამალვა", - "List Operations":"ოპერაციების სია", - "Expand Operations":"ოპერაციები ვრცლად", - "Raw":"ნედლი", - "can't parse JSON. Raw result":"JSON-ის დამუშავება ვერ მოხერხდა. ნედლი პასუხი", - "Example Value":"მაგალითი", - "Model Schema":"მოდელის სტრუქტურა", - "Model":"მოდელი", - "Click to set as parameter value":"პარამეტრისთვის მნიშვნელობის მისანიჭებლად, დააკლიკე", - "apply":"გამოყენება", - "Username":"მოხმარებელი", - "Password":"პაროლი", - "Terms of service":"მომსახურების პირობები", - "Created by":"შექმნა", - "See more at":"ნახე ვრცლად", - "Contact the developer":"დაუკავშირდი დეველოპერს", - "api version":"api ვერსია", - "Response Content Type":"პასუხის კონტენტის ტიპი", - "Parameter content type:":"პარამეტრის კონტენტის ტიპი:", - "fetching resource":"რესურსების მიღება", - "fetching resource list":"რესურსების სიის მიღება", - "Explore":"ნახვა", - "Show Swagger Petstore Example Apis":"ნახე Swagger Petstore სამაგალითო Api", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"სერვერთან დაკავშირება ვერ ხერხდება. შეამოწმეთ access-control-origin.", - "Please specify the protocol for":"მიუთითეთ პროტოკოლი", - "Can't read swagger JSON from":"swagger JSON წაკითხვა ვერ მოხერხდა", - "Finished Loading Resource Information. Rendering Swagger UI":"რესურსების ჩატვირთვა სრულდება. Swagger UI რენდერდება", - "Unable to read api":"api წაკითხვა ვერ მოხერხდა", - "from path":"მისამართიდან", - "server returned":"სერვერმა დააბრუნა" -}); diff --git a/api/src/main/resources/public/lang/it.js b/api/src/main/resources/public/lang/it.js deleted file mode 100644 index 8529c2a9..00000000 --- a/api/src/main/resources/public/lang/it.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Attenzione: Deprecato", - "Implementation Notes":"Note di implementazione", - "Response Class":"Classe della risposta", - "Status":"Stato", - "Parameters":"Parametri", - "Parameter":"Parametro", - "Value":"Valore", - "Description":"Descrizione", - "Parameter Type":"Tipo di parametro", - "Data Type":"Tipo di dato", - "Response Messages":"Messaggi della risposta", - "HTTP Status Code":"Codice stato HTTP", - "Reason":"Motivo", - "Response Model":"Modello di risposta", - "Request URL":"URL della richiesta", - "Response Body":"Corpo della risposta", - "Response Code":"Oggetto della risposta", - "Response Headers":"Intestazioni della risposta", - "Hide Response":"Nascondi risposta", - "Try it out!":"Provalo!", - "Show/Hide":"Mostra/Nascondi", - "List Operations":"Mostra operazioni", - "Expand Operations":"Espandi operazioni", - "Raw":"Grezzo (raw)", - "can't parse JSON. Raw result":"non è possibile parsare il JSON. Risultato grezzo (raw).", - "Model Schema":"Schema del modello", - "Model":"Modello", - "apply":"applica", - "Username":"Nome utente", - "Password":"Password", - "Terms of service":"Condizioni del servizio", - "Created by":"Creato da", - "See more at":"Informazioni aggiuntive:", - "Contact the developer":"Contatta lo sviluppatore", - "api version":"versione api", - "Response Content Type":"Tipo di contenuto (content type) della risposta", - "fetching resource":"recuperando la risorsa", - "fetching resource list":"recuperando lista risorse", - "Explore":"Esplora", - "Show Swagger Petstore Example Apis":"Mostra le api di esempio di Swagger Petstore", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"Non è possibile leggere dal server. Potrebbe non avere le impostazioni di controllo accesso origine (access-control-origin) appropriate.", - "Please specify the protocol for":"Si prega di specificare il protocollo per", - "Can't read swagger JSON from":"Impossibile leggere JSON swagger da:", - "Finished Loading Resource Information. Rendering Swagger UI":"Lettura informazioni risorse termianta. Swagger UI viene mostrata", - "Unable to read api":"Impossibile leggere la api", - "from path":"da cartella", - "server returned":"il server ha restituito" -}); diff --git a/api/src/main/resources/public/lang/ja.js b/api/src/main/resources/public/lang/ja.js deleted file mode 100644 index 1cbeb374..00000000 --- a/api/src/main/resources/public/lang/ja.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"警告: 廃止予定", - "Implementation Notes":"実装メモ", - "Response Class":"レスポンスクラス", - "Status":"ステータス", - "Parameters":"パラメータ群", - "Parameter":"パラメータ", - "Value":"値", - "Description":"説明", - "Parameter Type":"パラメータタイプ", - "Data Type":"データタイプ", - "Response Messages":"レスポンスメッセージ", - "HTTP Status Code":"HTTPステータスコード", - "Reason":"理由", - "Response Model":"レスポンスモデル", - "Request URL":"リクエストURL", - "Response Body":"レスポンスボディ", - "Response Code":"レスポンスコード", - "Response Headers":"レスポンスヘッダ", - "Hide Response":"レスポンスを隠す", - "Headers":"ヘッダ", - "Try it out!":"実際に実行!", - "Show/Hide":"表示/非表示", - "List Operations":"操作一覧", - "Expand Operations":"操作の展開", - "Raw":"未加工", - "can't parse JSON. Raw result":"JSONへ解釈できません. 未加工の結果", - "Example Value":"値の例", - "Model Schema":"モデルスキーマ", - "Model":"モデル", - "Click to set as parameter value":"パラメータ値と設定するにはクリック", - "apply":"実行", - "Username":"ユーザ名", - "Password":"パスワード", - "Terms of service":"サービス利用規約", - "Created by":"Created by", - "See more at":"詳細を見る", - "Contact the developer":"開発者に連絡", - "api version":"APIバージョン", - "Response Content Type":"レスポンス コンテンツタイプ", - "Parameter content type:":"パラメータコンテンツタイプ:", - "fetching resource":"リソースの取得", - "fetching resource list":"リソース一覧の取得", - "Explore":"調査", - "Show Swagger Petstore Example Apis":"SwaggerペットストアAPIの表示", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"サーバから読み込めません. 適切なaccess-control-origin設定を持っていない可能性があります.", - "Please specify the protocol for":"プロトコルを指定してください", - "Can't read swagger JSON from":"次からswagger JSONを読み込めません", - "Finished Loading Resource Information. Rendering Swagger UI":"リソース情報の読み込みが完了しました. Swagger UIを描画しています", - "Unable to read api":"APIを読み込めません", - "from path":"次のパスから", - "server returned":"サーバからの返答" -}); diff --git a/api/src/main/resources/public/lang/ko-kr.js b/api/src/main/resources/public/lang/ko-kr.js deleted file mode 100644 index 03c7626d..00000000 --- a/api/src/main/resources/public/lang/ko-kr.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"경고:폐기예정됨", - "Implementation Notes":"구현 노트", - "Response Class":"응답 클래스", - "Status":"상태", - "Parameters":"매개변수들", - "Parameter":"매개변수", - "Value":"값", - "Description":"설명", - "Parameter Type":"매개변수 타입", - "Data Type":"데이터 타입", - "Response Messages":"응답 메세지", - "HTTP Status Code":"HTTP 상태 코드", - "Reason":"원인", - "Response Model":"응답 모델", - "Request URL":"요청 URL", - "Response Body":"응답 본문", - "Response Code":"응답 코드", - "Response Headers":"응답 헤더", - "Hide Response":"응답 숨기기", - "Headers":"헤더", - "Try it out!":"써보기!", - "Show/Hide":"보이기/숨기기", - "List Operations":"목록 작업", - "Expand Operations":"전개 작업", - "Raw":"원본", - "can't parse JSON. Raw result":"JSON을 파싱할수 없음. 원본결과:", - "Model Schema":"모델 스키마", - "Model":"모델", - "apply":"적용", - "Username":"사용자 이름", - "Password":"암호", - "Terms of service":"이용약관", - "Created by":"작성자", - "See more at":"추가정보:", - "Contact the developer":"개발자에게 문의", - "api version":"api버전", - "Response Content Type":"응답Content Type", - "fetching resource":"리소스 가져오기", - "fetching resource list":"리소스 목록 가져오기", - "Explore":"탐색", - "Show Swagger Petstore Example Apis":"Swagger Petstore 예제 보기", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"서버로부터 읽어들일수 없습니다. access-control-origin 설정이 올바르지 않을수 있습니다.", - "Please specify the protocol for":"다음을 위한 프로토콜을 정하세요", - "Can't read swagger JSON from":"swagger JSON 을 다음으로 부터 읽을수 없습니다", - "Finished Loading Resource Information. Rendering Swagger UI":"리소스 정보 불러오기 완료. Swagger UI 랜더링", - "Unable to read api":"api를 읽을 수 없습니다.", - "from path":"다음 경로로 부터", - "server returned":"서버 응답함." -}); diff --git a/api/src/main/resources/public/lang/pl.js b/api/src/main/resources/public/lang/pl.js deleted file mode 100644 index ce41e917..00000000 --- a/api/src/main/resources/public/lang/pl.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Uwaga: Wycofane", - "Implementation Notes":"Uwagi Implementacji", - "Response Class":"Klasa Odpowiedzi", - "Status":"Status", - "Parameters":"Parametry", - "Parameter":"Parametr", - "Value":"Wartość", - "Description":"Opis", - "Parameter Type":"Typ Parametru", - "Data Type":"Typ Danych", - "Response Messages":"Wiadomości Odpowiedzi", - "HTTP Status Code":"Kod Statusu HTTP", - "Reason":"Przyczyna", - "Response Model":"Model Odpowiedzi", - "Request URL":"URL Wywołania", - "Response Body":"Treść Odpowiedzi", - "Response Code":"Kod Odpowiedzi", - "Response Headers":"Nagłówki Odpowiedzi", - "Hide Response":"Ukryj Odpowiedź", - "Headers":"Nagłówki", - "Try it out!":"Wypróbuj!", - "Show/Hide":"Pokaż/Ukryj", - "List Operations":"Lista Operacji", - "Expand Operations":"Rozwiń Operacje", - "Raw":"Nieprzetworzone", - "can't parse JSON. Raw result":"nie można przetworzyć pliku JSON. Nieprzetworzone dane", - "Model Schema":"Schemat Modelu", - "Model":"Model", - "apply":"użyj", - "Username":"Nazwa użytkownika", - "Password":"Hasło", - "Terms of service":"Warunki używania", - "Created by":"Utworzone przez", - "See more at":"Zobacz więcej na", - "Contact the developer":"Kontakt z deweloperem", - "api version":"wersja api", - "Response Content Type":"Typ Zasobu Odpowiedzi", - "fetching resource":"ładowanie zasobu", - "fetching resource list":"ładowanie listy zasobów", - "Explore":"Eksploruj", - "Show Swagger Petstore Example Apis":"Pokaż Przykładowe Api Swagger Petstore", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"Brak połączenia z serwerem. Może on nie mieć odpowiednich ustawień access-control-origin.", - "Please specify the protocol for":"Proszę podać protokół dla", - "Can't read swagger JSON from":"Nie można odczytać swagger JSON z", - "Finished Loading Resource Information. Rendering Swagger UI":"Ukończono Ładowanie Informacji o Zasobie. Renderowanie Swagger UI", - "Unable to read api":"Nie można odczytać api", - "from path":"ze ścieżki", - "server returned":"serwer zwrócił" -}); diff --git a/api/src/main/resources/public/lang/pt.js b/api/src/main/resources/public/lang/pt.js deleted file mode 100644 index f2e7c13d..00000000 --- a/api/src/main/resources/public/lang/pt.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Aviso: Depreciado", - "Implementation Notes":"Notas de Implementação", - "Response Class":"Classe de resposta", - "Status":"Status", - "Parameters":"Parâmetros", - "Parameter":"Parâmetro", - "Value":"Valor", - "Description":"Descrição", - "Parameter Type":"Tipo de parâmetro", - "Data Type":"Tipo de dados", - "Response Messages":"Mensagens de resposta", - "HTTP Status Code":"Código de status HTTP", - "Reason":"Razão", - "Response Model":"Modelo resposta", - "Request URL":"URL requisição", - "Response Body":"Corpo da resposta", - "Response Code":"Código da resposta", - "Response Headers":"Cabeçalho da resposta", - "Headers":"Cabeçalhos", - "Hide Response":"Esconder resposta", - "Try it out!":"Tente agora!", - "Show/Hide":"Mostrar/Esconder", - "List Operations":"Listar operações", - "Expand Operations":"Expandir operações", - "Raw":"Cru", - "can't parse JSON. Raw result":"Falha ao analisar JSON. Resulto cru", - "Model Schema":"Modelo esquema", - "Model":"Modelo", - "apply":"Aplicar", - "Username":"Usuário", - "Password":"Senha", - "Terms of service":"Termos do serviço", - "Created by":"Criado por", - "See more at":"Veja mais em", - "Contact the developer":"Contate o desenvolvedor", - "api version":"Versão api", - "Response Content Type":"Tipo de conteúdo da resposta", - "fetching resource":"busca recurso", - "fetching resource list":"buscando lista de recursos", - "Explore":"Explorar", - "Show Swagger Petstore Example Apis":"Show Swagger Petstore Example Apis", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"Não é possível ler do servidor. Pode não ter as apropriadas configurações access-control-origin", - "Please specify the protocol for":"Por favor especifique o protocolo", - "Can't read swagger JSON from":"Não é possível ler o JSON Swagger de", - "Finished Loading Resource Information. Rendering Swagger UI":"Carregar informação de recurso finalizada. Renderizando Swagger UI", - "Unable to read api":"Não foi possível ler api", - "from path":"do caminho", - "server returned":"servidor retornou" -}); diff --git a/api/src/main/resources/public/lang/ru.js b/api/src/main/resources/public/lang/ru.js deleted file mode 100644 index 592744e9..00000000 --- a/api/src/main/resources/public/lang/ru.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Предупреждение: Устарело", - "Implementation Notes":"Заметки", - "Response Class":"Пример ответа", - "Status":"Статус", - "Parameters":"Параметры", - "Parameter":"Параметр", - "Value":"Значение", - "Description":"Описание", - "Parameter Type":"Тип параметра", - "Data Type":"Тип данных", - "HTTP Status Code":"HTTP код", - "Reason":"Причина", - "Response Model":"Структура ответа", - "Request URL":"URL запроса", - "Response Body":"Тело ответа", - "Response Code":"HTTP код ответа", - "Response Headers":"Заголовки ответа", - "Hide Response":"Спрятать ответ", - "Headers":"Заголовки", - "Response Messages":"Что может прийти в ответ", - "Try it out!":"Попробовать!", - "Show/Hide":"Показать/Скрыть", - "List Operations":"Операции кратко", - "Expand Operations":"Операции подробно", - "Raw":"В сыром виде", - "can't parse JSON. Raw result":"Не удается распарсить ответ:", - "Example Value":"Пример", - "Model Schema":"Структура", - "Model":"Описание", - "Click to set as parameter value":"Нажмите, чтобы испльзовать в качестве значения параметра", - "apply":"применить", - "Username":"Имя пользователя", - "Password":"Пароль", - "Terms of service":"Условия использования", - "Created by":"Разработано", - "See more at":"Еще тут", - "Contact the developer":"Связаться с разработчиком", - "api version":"Версия API", - "Response Content Type":"Content Type ответа", - "Parameter content type:":"Content Type параметра:", - "fetching resource":"Получение ресурса", - "fetching resource list":"Получение ресурсов", - "Explore":"Показать", - "Show Swagger Petstore Example Apis":"Показать примеры АПИ", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"Не удается получить ответ от сервера. Возможно, проблема с настройками доступа", - "Please specify the protocol for":"Пожалуйста, укажите протокол для", - "Can't read swagger JSON from":"Не получается прочитать swagger json из", - "Finished Loading Resource Information. Rendering Swagger UI":"Загрузка информации о ресурсах завершена. Рендерим", - "Unable to read api":"Не удалось прочитать api", - "from path":"по адресу", - "server returned":"сервер сказал" -}); diff --git a/api/src/main/resources/public/lang/tr.js b/api/src/main/resources/public/lang/tr.js deleted file mode 100644 index 16426a9c..00000000 --- a/api/src/main/resources/public/lang/tr.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"Uyarı: Deprecated", - "Implementation Notes":"Gerçekleştirim Notları", - "Response Class":"Dönen Sınıf", - "Status":"Statü", - "Parameters":"Parametreler", - "Parameter":"Parametre", - "Value":"Değer", - "Description":"Açıklama", - "Parameter Type":"Parametre Tipi", - "Data Type":"Veri Tipi", - "Response Messages":"Dönüş Mesajı", - "HTTP Status Code":"HTTP Statü Kodu", - "Reason":"Gerekçe", - "Response Model":"Dönüş Modeli", - "Request URL":"İstek URL", - "Response Body":"Dönüş İçeriği", - "Response Code":"Dönüş Kodu", - "Response Headers":"Dönüş Üst Bilgileri", - "Hide Response":"Dönüşü Gizle", - "Headers":"Üst Bilgiler", - "Try it out!":"Dene!", - "Show/Hide":"Göster/Gizle", - "List Operations":"Operasyonları Listele", - "Expand Operations":"Operasyonları Aç", - "Raw":"Ham", - "can't parse JSON. Raw result":"JSON çözümlenemiyor. Ham sonuç", - "Model Schema":"Model Şema", - "Model":"Model", - "apply":"uygula", - "Username":"Kullanıcı Adı", - "Password":"Parola", - "Terms of service":"Servis şartları", - "Created by":"Oluşturan", - "See more at":"Daha fazlası için", - "Contact the developer":"Geliştirici ile İletişime Geçin", - "api version":"api versiyon", - "Response Content Type":"Dönüş İçerik Tipi", - "fetching resource":"kaynak getiriliyor", - "fetching resource list":"kaynak listesi getiriliyor", - "Explore":"Keşfet", - "Show Swagger Petstore Example Apis":"Swagger Petstore Örnek Api'yi Gör", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"Sunucudan okuma yapılamıyor. Sunucu access-control-origin ayarlarınızı kontrol edin.", - "Please specify the protocol for":"Lütfen istenen adres için protokol belirtiniz", - "Can't read swagger JSON from":"Swagger JSON bu kaynaktan okunamıyor", - "Finished Loading Resource Information. Rendering Swagger UI":"Kaynak baglantısı tamamlandı. Swagger UI gösterime hazırlanıyor", - "Unable to read api":"api okunamadı", - "from path":"yoldan", - "server returned":"sunucuya dönüldü" -}); diff --git a/api/src/main/resources/public/lang/translator.js b/api/src/main/resources/public/lang/translator.js deleted file mode 100644 index ffb879f9..00000000 --- a/api/src/main/resources/public/lang/translator.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; - -/** - * Translator for documentation pages. - * - * To enable translation you should include one of language-files in your index.html - * after . - * For example - - * - * If you wish to translate some new texts you should do two things: - * 1. Add a new phrase pair ("New Phrase": "New Translation") into your language file (for example lang/ru.js). It will be great if you add it in other language files too. - * 2. Mark that text it templates this way New Phrase or . - * The main thing here is attribute data-sw-translate. Only inner html, title-attribute and value-attribute are going to translate. - * - */ -window.SwaggerTranslator = { - - _words:[], - - translate: function(sel) { - var $this = this; - sel = sel || '[data-sw-translate]'; - - $(sel).each(function() { - $(this).html($this._tryTranslate($(this).html())); - - $(this).val($this._tryTranslate($(this).val())); - $(this).attr('title', $this._tryTranslate($(this).attr('title'))); - }); - }, - - _tryTranslate: function(word) { - return this._words[$.trim(word)] !== undefined ? this._words[$.trim(word)] : word; - }, - - learn: function(wordsMap) { - this._words = wordsMap; - } -}; diff --git a/api/src/main/resources/public/lang/zh-cn.js b/api/src/main/resources/public/lang/zh-cn.js deleted file mode 100644 index 3af61ad6..00000000 --- a/api/src/main/resources/public/lang/zh-cn.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -/* jshint quotmark: double */ -window.SwaggerTranslator.learn({ - "Warning: Deprecated":"警告:已过时", - "Implementation Notes":"实现备注", - "Response Class":"响应类", - "Status":"状态", - "Parameters":"参数", - "Parameter":"参数", - "Value":"值", - "Description":"描述", - "Parameter Type":"参数类型", - "Data Type":"数据类型", - "Response Messages":"响应消息", - "HTTP Status Code":"HTTP状态码", - "Reason":"原因", - "Response Model":"响应模型", - "Request URL":"请求URL", - "Response Body":"响应体", - "Response Code":"响应码", - "Response Headers":"响应头", - "Hide Response":"隐藏响应", - "Headers":"头", - "Try it out!":"试一下!", - "Show/Hide":"显示/隐藏", - "List Operations":"显示操作", - "Expand Operations":"展开操作", - "Raw":"原始", - "can't parse JSON. Raw result":"无法解析JSON. 原始结果", - "Example Value":"示例", - "Click to set as parameter value":"点击设置参数", - "Model Schema":"模型架构", - "Model":"模型", - "apply":"应用", - "Username":"用户名", - "Password":"密码", - "Terms of service":"服务条款", - "Created by":"创建者", - "See more at":"查看更多:", - "Contact the developer":"联系开发者", - "api version":"api版本", - "Response Content Type":"响应Content Type", - "Parameter content type:":"参数类型:", - "fetching resource":"正在获取资源", - "fetching resource list":"正在获取资源列表", - "Explore":"浏览", - "Show Swagger Petstore Example Apis":"显示 Swagger Petstore 示例 Apis", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"无法从服务器读取。可能没有正确设置access-control-origin。", - "Please specify the protocol for":"请指定协议:", - "Can't read swagger JSON from":"无法读取swagger JSON于", - "Finished Loading Resource Information. Rendering Swagger UI":"已加载资源信息。正在渲染Swagger UI", - "Unable to read api":"无法读取api", - "from path":"从路径", - "server returned":"服务器返回" -}); diff --git a/api/src/main/resources/public/lib/backbone-min.js b/api/src/main/resources/public/lib/backbone-min.js deleted file mode 100644 index a3f544be..00000000 --- a/api/src/main/resources/public/lib/backbone-min.js +++ /dev/null @@ -1,15 +0,0 @@ -// Backbone.js 1.1.2 - -(function(t,e){if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,s){t.Backbone=e(t,s,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore");e(t,exports,i)}else{t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}})(this,function(t,e,i,r){var s=t.Backbone;var n=[];var a=n.push;var o=n.slice;var h=n.splice;e.VERSION="1.1.2";e.$=r;e.noConflict=function(){t.Backbone=s;return this};e.emulateHTTP=false;e.emulateJSON=false;var u=e.Events={on:function(t,e,i){if(!c(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var s=this;var n=i.once(function(){s.off(t,n);e.apply(this,arguments)});n._callback=e;return this.on(t,n,r)},off:function(t,e,r){var s,n,a,o,h,u,l,f;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r){this._events=void 0;return this}o=t?[t]:i.keys(this._events);for(h=0,u=o.length;h").attr(t);this.setElement(r,false)}else{this.setElement(i.result(this,"el"),false)}}});e.sync=function(t,r,s){var n=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:n,dataType:"json"};if(!s.url){a.url=i.result(r,"url")||M()}if(s.data==null&&r&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(s.attrs||r.toJSON(s))}if(s.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(s.emulateHTTP&&(n==="PUT"||n==="DELETE"||n==="PATCH")){a.type="POST";if(s.emulateJSON)a.data._method=n;var o=s.beforeSend;s.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",n);if(o)return o.apply(this,arguments)}}if(a.type!=="GET"&&!s.emulateJSON){a.processData=false}if(a.type==="PATCH"&&k){a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}var h=s.xhr=e.ajax(i.extend(a,s));r.trigger("request",r,h,s);return h};var k=typeof window!=="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var S=/\((.*?)\)/g;var H=/(\(\?)?:\w+/g;var A=/\*\w+/g;var I=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,s){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){s=r;r=""}if(!s)s=this[r];var n=this;e.history.route(t,function(i){var a=n._extractParameters(t,i);n.execute(s,a);n.trigger.apply(n,["route:"+r].concat(a));n.trigger("route",r,a);e.history.trigger("route",n,r,a)});return this},execute:function(t,e){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(I,"\\$&").replace(S,"(?:$1)?").replace(H,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];i.bindAll(this,"checkUrl");if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var R=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var P=/msie [\w.]+/;var C=/\/$/;var j=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(C,"");if(!t.indexOf(i))t=t.slice(i.length)}else{t=this.getHash()}}return t.replace(R,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");N.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment();var s=document.documentMode;var n=P.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);this.root=("/"+this.root+"/").replace(O,"/");if(n&&this._wantsHashChange){var a=e.$('