diff --git a/pom.xml b/pom.xml index acf3cae..ca6e4c7 100644 --- a/pom.xml +++ b/pom.xml @@ -64,12 +64,12 @@ META-INF/resources - + - ssrdist/*.css - ssrdist/*.js + ssrdist/** diff --git a/src/main/java/com/terwergreen/next/config/WebConfig.java b/src/main/java/com/terwergreen/next/config/WebConfig.java index 90b29c2..f30d3b7 100644 --- a/src/main/java/com/terwergreen/next/config/WebConfig.java +++ b/src/main/java/com/terwergreen/next/config/WebConfig.java @@ -28,7 +28,7 @@ public class WebConfig implements WebMvcConfigurer { public void addResourceHandlers(ResourceHandlerRegistry registry) { logger.info("添加静态资源映射"); // 静态资源映射 - registry.addResourceHandler("/**").addResourceLocations("classpath:/META-INF/resources/dist/"); + // registry.addResourceHandler("/**").addResourceLocations("classpath:/META-INF/resources/dist/"); registry.addResourceHandler("/**").addResourceLocations("classpath:/META-INF/resources/ssrdist/"); } } diff --git a/src/main/webapp/App.vue b/src/main/webapp/App.vue index f571eae..8580313 100644 --- a/src/main/webapp/App.vue +++ b/src/main/webapp/App.vue @@ -4,12 +4,18 @@ type="text"/>

{{ message }}

+ + + \ No newline at end of file diff --git a/src/main/webapp/src/components/themes/default/style.css b/src/main/webapp/src/components/themes/default/style.css new file mode 100644 index 0000000..33b616b --- /dev/null +++ b/src/main/webapp/src/components/themes/default/style.css @@ -0,0 +1,97 @@ +/* +Theme Name: terwer +Theme URL: http://www.terwergreen.com +Description: 本主题是一款适合博客、新闻资讯、自媒体的主题模板。基于bootstrap响应式布局,自适应PC、手机、平板等多种设备浏览。包含普通文章、专题、视频、图集、下载五中文章类型,多种文章页模板。自带前端用户中心,前端登录注册、资料编辑、投稿、文章编辑、评论管理、收藏管理、用户关注一应俱全。文章列表及评论列表AJAX加载。视频支持本地上传、视频链接及视频平台视频。 +Author: 倚楼听雨 +Author URI: http://www.terwergreen.com +Tags:blog +Version: 1.0 +*/ +* { + box-sizing: border-box !important; +} + +html { + overflow-x: hidden; +} + +body { + font-family: "Microsoft Yahei", sans-serif !important; + padding: 0 !important; + color: #666; + margin: 0 auto; + overflow-x: hidden; +} + +body h1, body h2, body h3, body h4, body h5, body h6 { + margin-top: 0; + margin-bottom: 0; +} + +body a { + color: #009688; +} + +body a:hover { + text-decoration: none; + color: #00a4ff; +} + +a:hover { + color: #009688; + transition: all .3s; +} + +ul { + margin: 0 !important; + padding: 0; +} + +li { + list-style: none; +} + +button[disabled], html input[disabled] { + background: #fafafa !important; + color: #999 !important; +} + +.hidden { + display: none; +} + +.hid { + display: none; +} + +@media (min-width: 1200px) { + .container { + width: 1200px !important; + } +} + +.fl { + float: left; +} + +.fr { + float: right; +} + +.pd3040 { + padding: 30px 40px !important; +} + +.col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 { + padding-right: 10px !important; + padding-left: 10px !important; +} + +.row { + margin-right: -10px !important; + margin-left: -10px !important; +} + +.boxshadow{ + box-shadow: 0 2px 6px 0 rgba(63,74,105,.16); +} \ No newline at end of file diff --git a/src/main/webapp/webpack.config.js b/src/main/webapp/webpack.config.js index 995b426..8d54677 100644 --- a/src/main/webapp/webpack.config.js +++ b/src/main/webapp/webpack.config.js @@ -65,7 +65,7 @@ module.exports = (env, argv) => { ] }, devServer: { - open: true, + open: false, hot: true, port: 8000 },