From 19abb5e1a2b1ba610251be4d2ed53c4319eb2b68 Mon Sep 17 00:00:00 2001 From: wangwei10061 <153692771@qq.com> Date: Sun, 11 Mar 2018 16:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bridge/controller/MainController.java | 32 +-- src/main/webapp/WEB-INF/pages/index.ftl | 83 ++++---- src/main/webapp/static/css/reset.css | 44 +++++ src/main/webapp/static/css/style.css | 187 ++++++++++++++++++ src/main/webapp/static/css/supersized.css | 34 ++++ .../webapp/static/image/backgrounds/1.jpg | Bin 0 -> 72128 bytes .../webapp/static/image/backgrounds/2.jpg | Bin 0 -> 68833 bytes .../webapp/static/image/backgrounds/3.jpg | Bin 0 -> 52931 bytes src/main/webapp/static/image/facebook.png | Bin 0 -> 623 bytes src/main/webapp/static/image/progress.gif | Bin 0 -> 2608 bytes src/main/webapp/static/image/twitter.png | Bin 0 -> 933 bytes src/main/webapp/static/js/main.js | 1 + src/main/webapp/static/js/supersized-init.js | 30 +++ .../webapp/static/js/supersized.3.2.7.min.js | 13 ++ 14 files changed, 376 insertions(+), 48 deletions(-) create mode 100644 src/main/webapp/static/css/reset.css create mode 100644 src/main/webapp/static/css/style.css create mode 100644 src/main/webapp/static/css/supersized.css create mode 100644 src/main/webapp/static/image/backgrounds/1.jpg create mode 100644 src/main/webapp/static/image/backgrounds/2.jpg create mode 100644 src/main/webapp/static/image/backgrounds/3.jpg create mode 100644 src/main/webapp/static/image/facebook.png create mode 100644 src/main/webapp/static/image/progress.gif create mode 100644 src/main/webapp/static/image/twitter.png create mode 100644 src/main/webapp/static/js/supersized-init.js create mode 100644 src/main/webapp/static/js/supersized.3.2.7.min.js diff --git a/src/main/java/com/educoder/bridge/controller/MainController.java b/src/main/java/com/educoder/bridge/controller/MainController.java index 1c047ab..f232380 100644 --- a/src/main/java/com/educoder/bridge/controller/MainController.java +++ b/src/main/java/com/educoder/bridge/controller/MainController.java @@ -19,21 +19,29 @@ import org.springframework.web.servlet.ModelAndView; @RestController public class MainController extends BaseController { private final static Logger logger = LoggerFactory.getLogger(MainController.class); +// +// @RequestMapping(value={"/"}, method= RequestMethod.GET) +// public ModelAndView index(@RequestParam("host")String host, +// @RequestParam("port")int port, +// @RequestParam("username")String username, +// @RequestParam("password")String password, +// @RequestParam("rows")int rows) { +// logger.debug("/ssh: 接收到连接请求, host: {}, port: {}", host, port); +// ModelAndView mv = new ModelAndView(); +// mv.setViewName("index"); +// mv.addObject("host", host); +// mv.addObject("port", port); +// mv.addObject("username", username); +// mv.addObject("password", password); +// mv.addObject("rows", rows); +// mv.addObject("digest", System.currentTimeMillis()); +// return mv; +// } - @RequestMapping(value={"/", "ssh"}, method= RequestMethod.GET) - public ModelAndView index(@RequestParam("host")String host, - @RequestParam("port")int port, - @RequestParam("username")String username, - @RequestParam("password")String password, - @RequestParam("rows")int rows) { - logger.debug("/ssh: 接收到连接请求, host: {}, port: {}", host, port); + @RequestMapping(value={"/"}, method= RequestMethod.GET) + public ModelAndView index() { ModelAndView mv = new ModelAndView(); mv.setViewName("index"); - mv.addObject("host", host); - mv.addObject("port", port); - mv.addObject("username", username); - mv.addObject("password", password); - mv.addObject("rows", rows); mv.addObject("digest", System.currentTimeMillis()); return mv; } diff --git a/src/main/webapp/WEB-INF/pages/index.ftl b/src/main/webapp/WEB-INF/pages/index.ftl index d64b074..bd2f036 100644 --- a/src/main/webapp/WEB-INF/pages/index.ftl +++ b/src/main/webapp/WEB-INF/pages/index.ftl @@ -1,50 +1,61 @@ - - - - webssh + + + + + + JWebssh + + + + + + + -