This commit is contained in:
Yutousama 2020-04-16 10:06:36 +08:00
parent a05953ec75
commit b796a1a839
6 changed files with 10383 additions and 51 deletions

View File

@ -0,0 +1,35 @@
package com.yutou.tools.other;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
@Controller
public class tools {
@ResponseBody
@RequestMapping(value = "tools/cookie.do",method = RequestMethod.POST)
public String cookieToJson(HttpServletRequest request){
JSONObject json=new JSONObject();
JSONArray array=new JSONArray();
for (Cookie cookie : request.getCookies()) {
JSONObject item=new JSONObject();
item.put("name",cookie.getName());
item.put("value",cookie.getValue());
item.put("domain",cookie.getDomain());
item.put("path",cookie.getPath());
item.put("maxAge",cookie.getMaxAge());
item.put("secure",cookie.getSecure());
item.put("isHttpOnly",cookie.isHttpOnly());
array.add(item);
}
json.put("data",array);
return json.toJSONString();
}
}

View File

@ -8,17 +8,37 @@
<link rel="stylesheet" href="/layui/css/layui.css"> <link rel="stylesheet" href="/layui/css/layui.css">
</head> </head>
<body class5="layui-layout-body"> <body>
11 <div class="layui-layout layui-layout-admin">
<div id="header"></div>
<div class="layui-body" style="left: 0px;">
123
</div>
<div id="footer"></div>
</div>
<script src="/layui/layui.js"></script> <script src="/layui/layui.js"></script>
<script src="/js/jquery-3.2.1.js"></script>
<script> <script>
layui.use(['layer', 'form', 'element'], function () { layui.use(['layer', 'form', 'element'], function () {
var layer = layui.layer var layer = layui.layer
, form = layui.form; , form = layui.form;
}); });
$.ajax({cache: false})
$('#header').load("/html/header.html");
$('#footer').load("/html/footer.html");
</script> </script>
<style>
#icon {
float: right;
}
.body {
bottom: 0;
}
</style>
</body> </body>
</html> </html>

17
web/html/footer.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="layui-footer" style="left: 0px; text-align: center; height: 60px; line-height: 0;">
<div style="line-height: 44px;">
©2020 by yutou
</div>
<div>
<a href="#">湘ICP备16005656号</a>
</div>
</div>
</body>
</html>

46
web/html/header.html Normal file
View File

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div class="layui-header">
<ul class="layui-nav layui-bg-blue" lay-filter="">
<li class="layui-nav-item"><a href="http://blog.yutou233.cn">博客</a></li>
<div id="admin" style="display: inline-block; font-size: 0px;">
<li class="layui-nav-item"><a href="javascript:;">NAS管理</a>
<dl class="layui-nav-child">
<dd><a href="/html/body/nas.html">查看NAS IP</a></dd>
<dd><a href="#">切换NAS页面</a></dd>
<dd><a href="#">B站直播管理</a></dd>
</dl>
</li>
</div>
<li class="layui-nav-item">
<a href="javascript:;">工具集</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;" target="_blank">密码管理器</a></dd>
</dl>
</li>
<li class="layui-nav-item">
<a href="javascript:;">页面集</a>
<dl class="layui-nav-child">
<dd><a href="http://nas.yutou233.cn/" target="_blank">管理后台</a></dd>
<dd><a href="http://bt.yutou233.cn" target="_blank">BT下载</a></dd>
</dl>
</li>
<li class="layui-nav-item" id='icon'>
<a href=""><img src="//t.cn/RCzsdCq" class="layui-nav-img">登录</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;">修改信息</a></dd>
<dd><a href="javascript:;">安全管理</a></dd>
<dd><a href="javascript:;">退了</a></dd>
</dl>
</li>
</ul>
</div>
</body>
<script>
</script>
</html>

View File

@ -5,62 +5,20 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>控制中心</title> <title>控制中心</title>
<link rel="stylesheet" href="../layui/css/layui.css"> <link rel="stylesheet" href="/layui/css/layui.css">
</head> </head>
<body> <body>
<div class="layui-layout layui-layout-admin"> <div class="layui-layout layui-layout-admin">
<div class="layui-header"> <div id="header"></div>
<ul class="layui-nav layui-bg-blue" lay-filter="">
<li class="layui-nav-item"><a href="http://blog.yutou233.cn">博客</a></li>
<div id="admin" style="display: inline-block; font-size: 0px;">
<li class="layui-nav-item"><a href="javascript:;">NAS管理</a>
<dl class="layui-nav-child">
<dd><a href="#">查看NAS IP</a></dd>
<dd><a href="#">切换NAS页面</a></dd>
<dd><a href="#">B站直播管理</a></dd>
</dl>
</li>
</div>
<li class="layui-nav-item">
<a href="javascript:;">工具集</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;" target="_blank">密码管理器</a></dd>
</dl>
</li>
<li class="layui-nav-item">
<a href="javascript:;">页面集</a>
<dl class="layui-nav-child">
<dd><a href="http://nas.yutou233.cn/" target="_blank">管理后台</a></dd>
<dd><a href="http://bt.yutou233.cn" target="_blank">BT下载</a></dd>
</dl>
</li>
<li class="layui-nav-item" id='icon'>
<a href=""><img src="//t.cn/RCzsdCq" class="layui-nav-img">登录</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;">修改信息</a></dd>
<dd><a href="javascript:;">安全管理</a></dd>
<dd><a href="javascript:;">退了</a></dd>
</dl>
</li>
</ul>
</div>
<div class="layui-body" style="left: 0px;"> <div class="layui-body" style="left: 0px;">
<iframe src="../html/body/nas.html" width="100%" height="99%" frameborder="no"></iframe>
</div>
<div class="layui-footer" style="left: 0px; text-align: center; height: 60px; line-height: 0;">
<div style="line-height: 44px;">
©2020 by yutou
</div>
<div>
<a href="#">湘ICP备16005656号</a>
</div>
</div> </div>
<div id="footer"></div>
</div> </div>
<script src="../layui/layui.js"></script> <script src="/layui/layui.js"></script>
<script src="/js/jquery-3.2.1.js"></script>
<script> <script>
layui.use(['layer', 'form', 'element'], function () { layui.use(['layer', 'form', 'element'], function () {
@ -68,6 +26,9 @@
, form = layui.form; , form = layui.form;
}); });
$.ajax({cache: false})
$('#header').load("../html/header.html");
$('#footer').load("../html/footer.html");
</script> </script>
<style> <style>
#icon { #icon {

10253
web/js/jquery-3.2.1.js vendored Normal file

File diff suppressed because it is too large Load Diff