update README.MD、app.html

This commit is contained in:
郑杰
2018-10-10 17:32:42 +08:00
parent 086db5a609
commit 1f96fb2a43
7 changed files with 255 additions and 12 deletions
+2
View File
@@ -7,6 +7,8 @@
Aurora是一个简单高效的后台管理系统。项目基础框架采用全新的Java Web开发框架 —— Spring Boot2.0.4,消除了繁杂的XML配置,使得二次开发更为简单;数据访问层采用Spring boot Jpa,可快速高效对数据进行操作,消除了大量传统XML配置SQL的代码,分页使用Pageable;安全框架采用时下流行的Apache Shiro,可实现对按钮级别的权限控制;前端页面使用KidAdmin构建,并提供多套配色以供选择。
### 预览地址,临时域名,正式域名auaur.net,已在备案中
[http://xiswl.xyz](http://xiswl.xyz)
### 项目相关教程
[Spring boot循序渐进](https://www.zhengjie.me/categories/Spring-boot-循序渐进/)
### SSM + shiro + redis 版移步
[https://gitee.com/quella01/Quella](https://gitee.com/quella01/Quella)
<!--more-->
+1 -3
View File
@@ -116,7 +116,7 @@
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!--解析html-->
<!--解析html,关闭强校验-->
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
@@ -126,8 +126,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>-->
<scope>compile</scope>
</dependency>
<!-- shiro-spring -->
@@ -33,6 +33,9 @@ public class MyJobRunner implements ApplicationRunner {
*/
@Override
public void run(ApplicationArguments applicationArguments){
System.out.println("--------------------开始注入定时任务---------------------");
List<Job> jobs = jobRepo.findAll();
jobs.forEach(scheduleJob -> {
ScheduleUtils.createScheduleJob(scheduler, scheduleJob);
@@ -0,0 +1,174 @@
.activity * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.activity *:before,
.activity *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.activity {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.activity * {
margin: 0;
border: 0;
border-radius: 0;
padding: 0;
}
.clearfix:before,
.clearfix:after {
display: table;
content: " ";
}
.clearfix:after {
clear: both;
}
.activity {
margin-bottom: 20px;
border: 1px solid #d5d5d5;
border-radius: 4px;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
background-color: #ffffff;
color: #333;
line-height: 1.42857143;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
}
.activity a {
background: transparent;
text-decoration: none;
}
.activity a:active {
outline: 0;
}
.activity a:hover {
outline: 0;
}
.activity a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.activity-head {
border-bottom: 1px solid #d5d5d5;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
padding: 8px;
background-color: #eaeaea;
background-image: -moz-linear-gradient(#fafafa, #eaeaea);
background-image: -webkit-linear-gradient(#fafafa, #eaeaea);
background-image: linear-gradient(#fafafa, #eaeaea);
background-repeat: repeat-x;
}
.activity-head img {
width: 48px;
height: 48px;
margin-right: 8px;
border-radius: 4px;
vertical-align: middle;
float: left!important;
}
.activity-head h4 a {
color: #555555;
line-height: 1;
font-size: 24px;
font-weight: 500;
}
.activity-head small a {
color: #999;
font-size: 18px;
font-weight: 400;
}
.activity-body {
height: 300px;
overflow-y: scroll;
}
.activity-body a {
color: #4183c4;
}
.activity-body a:hover,
.activity-body a:focus {
color: #4183c4;
text-decoration: underline;
}
.activity-body li {
position: relative;
display: block;
margin-bottom: -1px;
border-top: 1px solid #d5d5d5;
border-bottom: 1px solid #d5d5d5;
padding: 10px 15px;
background-color: #ffffff;
color: #777777;
}
.activity-body li:first-child {
border-top-width: 0;
}
.activity-body li:last-child {
border-bottom-width: 0;
}
.activity-body li small {
color: #bbbbbb;
}
.activity-foot {
border-top: 1px solid #d5d5d5;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding: 8px;
background-color: #eaeaea;
background-image: -moz-linear-gradient(#fafafa, #eaeaea);
background-image: -webkit-linear-gradient(#fafafa, #eaeaea);
background-image: linear-gradient(#fafafa, #eaeaea);
background-repeat: repeat-x;
color: #999999;
text-shadow: 0 1px 0 #fff;
line-height: 1;
font-size: 12px;
font-weight: 400;
text-align: right;
}
.activity-foot a {
color: #999999;
}
.activity-foot a:hover,
.activity-foot a:focus {
color: #777777;
}
.pro_name a{color: #4183c4;}
.osc_git_title{background-color: #fff;}
.osc_git_box{background-color: #fff;}
.osc_git_box{border-color: #E3E9ED;}
.osc_git_info{color: #666;}
.osc_git_main a{color: #9B9B9B;}
@@ -0,0 +1,64 @@
$(function () {
var i = 0;
$('.github-widget-repo').each(function () {
if (i == 0) $('head').append('<style type="text/css">.github-box{font-family:helvetica,arial,sans-serif;font-size:13px;line-height:18px;background:#FAFAFA;border:1px solid #DDD;color:#666;border-radius:3px}.github-box a{color:#4183C4;border:0;text-decoration:none}.github-box .github-box-title{position:relative;border-bottom:1px solid #DDD;border-radius:3px 3px 0 0;background:#FCFCFC;background:-moz-linear-gradient(#FCFCFC,#EBEBEB);background:-webkit-linear-gradient(#FCFCFC,#EBEBEB);}.github-box .github-box-title h3{font-family:helvetica,arial,sans-serif;font-weight:normal;font-size:16px;color:gray;margin:0;padding:10px 10px 10px 80px;background:url(http://www.oschina.net/img/github_logo.gif) center left no-repeat}.github-box .github-box-title h3 .repo{font-weight:bold}.github-box .github-box-title .github-stats{position:absolute;top:8px;right:10px;background:white;border:1px solid #DDD;border-radius:3px;font-size:11px;font-weight:bold;line-height:21px;height:21px;padding-left:2px;}.github-box .github-box-title .github-stats a{display:inline-block;height:21px;color:#666;padding:0 5px 0 5px;}.github-box .github-box-title .github-stats .watchers{border-right:1px solid #DDD;background-position:3px -2px;}.github-box .github-box-title .github-stats .forks{background-position:0 -52px;padding-left:5px}.github-box .github-box-content{padding:10px;font-weight:300}.github-box .github-box-content p{margin:0}.github-box .github-box-content .link{font-weight:bold}.github-box .github-box-download{position:relative;border-top:1px solid #DDD;background:white;border-radius:0 0 3px 3px;padding:10px;height:24px}.github-box .github-box-download .updated{margin:0;font-size:11px;color:#666;line-height:24px;font-weight:300}.github-box .github-box-download .updated strong{font-weight:bold;color:#000}.github-box .github-box-download .download{position:absolute;display:block;top:10px;right:10px;height:24px;line-height:24px;font-size:12px;color:#666;font-weight:bold;text-shadow:0 1px 0 rgba(255,255,255,0.9);padding:0 10px;border:1px solid #DDD;border-bottom-color:#BBB;border-radius:3px;background:#F5F5F5;background:-moz-linear-gradient(#F5F5F5,#E5E5E5);background:-webkit-linear-gradient(#F5F5F5,#E5E5E5);}.github-box .github-box-download .download:hover{color:#527894;border-color:#CFE3ED;border-bottom-color:#9FC7DB;background:#F1F7FA;background:-moz-linear-gradient(#F1F7FA,#DBEAF1);background:-webkit-linear-gradient(#F1F7FA,#DBEAF1);</style>');
i++;
var $container = $(this);
var repo_name = $container.data('repo');
var html_encode = function (str) {
if (!str || str.length == 0) return "";
return str.replace(/</g, "&lt;").replace(/>/g, "&gt;");
};
$.ajax({
url: 'https://api.github.com/repos/' + repo_name,
dataType: 'jsonp',
success: function (results) {
var repo = results.data;
var pushed_at = repo.pushed_at.substr(0, 10);
var url_regex = /((http|https):\/\/)*[\w-]+(\.[\w-]+)+([\w.,@?^=%&amp;:\/~+#-]*[\w@?^=%&amp;\/~+#-])?/
if (repo.homepage && (m = repo.homepage.match(url_regex))) {
if (m[0] && !m[1]) repo.homepage = 'http://' + m[0];
}
else {
repo.homepage = '';
}
var $widget = $(' \
<div class="github-box repo"> \
<div class="github-box-title"> \
<h3> \
<a class="owner" href="' + repo.owner.url.replace('api.', '').replace('users/', '') + '" target="_blank">' + repo.owner.login + '</a> \
/ \
<a class="repo" href="' + repo.url.replace('api.', '').replace('repos/', '') + '" target="_blank">' + repo.name + '</a> \
</h3> \
<div class="github-stats"> \
Watch<a class="watchers" title="Watchers" href="' + repo.url.replace('api.', '').replace('repos/', '') + '/watchers" target="_blank">' + repo.subscribers_count + '</a> \
Star<a class="watchers" title="Watchers" href="' + repo.url.replace('api.', '').replace('repos/', '') + '/stargazers" target="_blank">' + repo.watchers + '</a> \
Fork<a class="forks" title="Forks" href="' + repo.url.replace('api.', '').replace('repos/', '') + '/network" target="_blank">' + repo.forks + '</a> \
</div> \
</div> \
<div class="github-box-content"> \
<p class="description">' + html_encode(repo.description) + ' &mdash; <a href="' + repo.url.replace('api.', '').replace('repos/', '') + '#readme" target="_blank">More...</a></p> \
<p class="link"><a href="' + repo.homepage + '">' + html_encode(repo.homepage) + '</a></p> \
<table class="issues" width="100%"></table> \
</div> \
<div class="github-box-download"> \
<p class="updated"><a href="' + repo.url.replace('api.', '').replace('repos/', '') + '/tree/master" target="_blank"><strong>master&nbsp;</strong>branch</a> Latest Commit:' + pushed_at + '</p> \
<a class="download" href="' + repo.url.replace('api.', '').replace('repos/', '') + '/zipball/master">Download Zip</a> \
</div> \
</div> \
');
$widget.appendTo($container);
}
})
});
});
+10 -9
View File
@@ -38,15 +38,14 @@
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-header">源码地址</div>
<div class="layui-card-header">项目源码</div>
<div class="layui-card-body">
<p style="margin-bottom: 5px;">代码实现以后会更新到博客:<a href="https://www.zhengjie.me">zhengjie.me</a></p>
<p style="margin-bottom: 5px;">脚手架源码:
<a href='https://gitee.com/hgpt/Aurora' target="_blank">
<img src='https://gitee.com/hgpt/Aurora/badge/star.svg?theme=white' alt='star'></img>
</a>
(开发中...)
<p style="margin-bottom: 5px;">项目相关实现:<a style="color: #4183C4" href="https://www.zhengjie.me/categories/Spring-boot-循序渐进/">Spring boot循序渐进</a></p>
<p style="margin-bottom: 5px;">码云&nbsp;
<a href='https://gitee.com/hgpt/Aurora' target="_blank"><img src='https://gitee.com/hgpt/Aurora/badge/star.svg?theme=gray' alt='star'></img></a>
</p>
<p style="margin-bottom: 5px;">github&nbsp;</p>
<div class="github-widget-repo" data-repo="dqjdda/Aurora" style="width:100%;margin-top: 3px;"></div>
</div>
</div>
</div>
@@ -231,6 +230,8 @@
</div>
</div>
</div>
<!-- build:js -->
<script th:src="@{'/js/github_repo_widget_en.js'}"></script>
<script>
layui.config({
base: '/src/js/'
@@ -444,7 +445,7 @@
}
});
});
</script>
</script>
<!-- endbuild -->
<style scoped>
</style>
+1
View File
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Aurora 后台管理</title>
<!-- build:css -->
<link rel="stylesheet" th:href="@{'/css/github_activity_widget.css'}">
<link rel="stylesheet" th:href="@{'/plugins/css/layui.css'}">
<link rel="stylesheet" th:href="@{'/plugins/css/theme/default.css'}" th:id="theme">
<!-- endbuild -->