From dfad56af46c7c97258ecd7bb922cbfe86f67090a Mon Sep 17 00:00:00 2001
From: sgjj
Date: Fri, 9 Aug 2019 21:44:33 +0800
Subject: [PATCH 01/27] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A8=E6=80=81?=
=?UTF-8?q?=E8=A7=A3=E6=9E=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../net/mingsoft/cms/action/BaseAction.java | 22 +++
.../mingsoft/cms/action/web/MCmsAction.java | 85 +++++++++--
.../net/mingsoft/cms/biz/IArticleBiz.java | 133 +++++++++--------
.../mingsoft/cms/biz/impl/ArticleBizImpl.java | 41 ++---
.../java/net/mingsoft/cms/constant/Const.java | 14 ++
.../net/mingsoft/cms/dao/IArticleDao.java | 140 +++++++++---------
.../java/net/mingsoft/cms/dao/IArticleDao.xml | 124 ++++++++--------
.../cms/resources/resources_zh_CN.properties | 9 +-
8 files changed, 346 insertions(+), 222 deletions(-)
create mode 100644 src/main/java/net/mingsoft/cms/action/BaseAction.java
create mode 100644 src/main/java/net/mingsoft/cms/constant/Const.java
diff --git a/src/main/java/net/mingsoft/cms/action/BaseAction.java b/src/main/java/net/mingsoft/cms/action/BaseAction.java
new file mode 100644
index 00000000..78856924
--- /dev/null
+++ b/src/main/java/net/mingsoft/cms/action/BaseAction.java
@@ -0,0 +1,22 @@
+package net.mingsoft.cms.action;
+
+import java.util.MissingResourceException;
+
+/**
+ * @Author: 铭飞开源团队--huise
+ * @Date: 2019/8/9 20:47
+ */
+public class BaseAction extends net.mingsoft.mdiy.action.BaseAction{
+ @Override
+ protected String getResString(String key) {
+ // TODO Auto-generated method stub
+ String str = "";
+ try {
+ str = super.getResString(key);
+ } catch (MissingResourceException e) {
+ str = net.mingsoft.cms.constant.Const.RESOURCES.getString(key);
+ }
+
+ return str;
+ }
+}
diff --git a/src/main/java/net/mingsoft/cms/action/web/MCmsAction.java b/src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
index 8090b565..9424bb51 100644
--- a/src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
+++ b/src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
@@ -1,5 +1,5 @@
/**
-The MIT License (MIT) * Copyright (c) 2016 铭飞科技(mingsoft.net)
+ The MIT License (MIT) * Copyright (c) 2016 铭飞科技(mingsoft.net)
* 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
@@ -21,13 +21,23 @@ The MIT License (MIT) * Copyright (c) 2016 铭飞科技(mingsoft.net)
package net.mingsoft.cms.action.web;
+import java.io.File;
import java.io.IOException;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import cn.hutool.core.io.FileUtil;
+import com.github.pagehelper.PageHelper;
+import net.mingsoft.base.constant.Const;
+import net.mingsoft.basic.util.SpringUtil;
+import net.mingsoft.cms.constant.e.ColumnTypeEnum;
+import net.mingsoft.mdiy.biz.IContentModelBiz;
+import net.mingsoft.mdiy.entity.ContentModelEntity;
+import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;
@@ -54,13 +64,13 @@ import net.mingsoft.mdiy.util.ParserUtil;
/**
* 动态生成页面,需要后台配置自定义页数据
- *
+ *
* @author 铭飞开源团队
* @date 2018年12月17日
*/
@Controller("dynamicPageAction")
@RequestMapping("/mcms")
-public class MCmsAction extends net.mingsoft.mdiy.action.BaseAction {
+public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
/**
* 自定义页面业务层
@@ -84,7 +94,7 @@ public class MCmsAction extends net.mingsoft.mdiy.action.BaseAction {
// 如商城就为:/mall/{key}.do
/**
* 前段会员中心所有页面都可以使用该方法 请求地址例如: /{diy}.do,例如登陆界面,与注册界面都可以使用
- *
+ *
* @param key
*/
@RequestMapping("/{diy}.do")
@@ -158,7 +168,7 @@ public class MCmsAction extends net.mingsoft.mdiy.action.BaseAction {
//获取栏目编号
int typeId = BasicUtil.getInt(ParserUtil.TYPE_ID,0);
int size = BasicUtil.getInt(ParserUtil.SIZE,10);
-
+
//获取文章总数
List columnArticles = articleBiz.queryIdsByCategoryIdForParser(typeId, null, null);
//判断栏目下是否有文章
@@ -175,7 +185,7 @@ public class MCmsAction extends net.mingsoft.mdiy.action.BaseAction {
map.put(ParserUtil.TYPE_ID, typeId);
//设置列表当前页
map.put(ParserUtil.PAGE_NO, BasicUtil.getInt(ParserUtil.PAGE_NO,1));
-
+
map.put(ParserUtil.URL, BasicUtil.getUrl());
map.put(ParserUtil.PAGE, page);
//动态解析
@@ -198,19 +208,27 @@ public class MCmsAction extends net.mingsoft.mdiy.action.BaseAction {
}
this.outString(resp, content);
}
-
+
/**
* 动态详情页
* @param id 文章编号
*/
@GetMapping("/view.do")
- public void view(HttpServletRequest req, HttpServletResponse resp) {
+ public void view(String orderby,String order,HttpServletRequest req, HttpServletResponse resp) {
//参数文章编号
ArticleEntity article = (ArticleEntity) articleBiz.getEntity(BasicUtil.getInt(ParserUtil.ID));
if(ObjectUtil.isNull(article)){
this.outJson(resp, null,false,getResString("err.empty", this.getResString("id")));
- return;
+ return;
+ }
+ if(StringUtils.isNotBlank(order)){
+ //防注入
+ if(!order.toLowerCase().equals("asc")&&!order.toLowerCase().equals("desc")){
+ this.outJson(resp, null,false,getResString("err.error", this.getResString("order")));
+ return;
+ }
}
+ PageBean page = new PageBean();
//根据文章编号查询栏目详情模版
ColumnEntity column = (ColumnEntity) columnBiz.getEntity(article.getBasicCategoryId());
//解析后的内容
@@ -221,6 +239,55 @@ public class MCmsAction extends net.mingsoft.mdiy.action.BaseAction {
//设置动态请求的模块路径
map.put(ParserUtil.MODEL_NAME, "mcms");
map.put(ParserUtil.URL, BasicUtil.getUrl());
+ map.put(ParserUtil.PAGE, page);
+ map.put(ParserUtil.ID, article.getArticleID());
+ List articleIdList = articleBiz.queryIdsByCategoryIdForParser(column.getCategoryCategoryId(), null, null,orderby,order);
+ Map
- 铭飞平台:https://ms.mingsoft.net/
- 演示:http://demo.cms.mingsoft.net/ms/login.do
- 代码生成器视频教程
- 一键运行版本
+ 铭飞平台:https://ms.mingsoft.net/
+ 演示:http://demo.cms.mingsoft.net/ms/login.do
+ 代码生成器视频教程
+ Windows一键运行版本\Linux一键运行版本
-------------------------------------------------------------------------------
From 6996232330879cd71dc09411e3abff12a10af9e8 Mon Sep 17 00:00:00 2001
From: ms group dev
Date: Sat, 11 Jan 2020 14:45:22 +0800
Subject: [PATCH 05/27] =?UTF-8?q?=E8=AF=B4=E6=98=8E=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 8e2e8529..36b0fc61 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,7 @@
铭飞平台:https://ms.mingsoft.net/
演示:http://demo.cms.mingsoft.net/ms/login.do
+ 在线使用手册
代码生成器视频教程
Windows一键运行版本\Linux一键运行版本
From 299ca806346ec9172215699eab04c887e91c9bc5 Mon Sep 17 00:00:00 2001
From: ms group dev
Date: Sat, 11 Jan 2020 14:47:14 +0800
Subject: [PATCH 06/27] =?UTF-8?q?=E8=AF=B4=E6=98=8E=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 36b0fc61..e7c1ef66 100644
--- a/README.md
+++ b/README.md
@@ -24,8 +24,8 @@
- 铭飞平台:https://ms.mingsoft.net/
- 演示:http://demo.cms.mingsoft.net/ms/login.do
+ 铭飞平台
+ 在线演示
在线使用手册
代码生成器视频教程
Windows一键运行版本\Linux一键运行版本
From 2fdd369a0eaa0e4fe43dbaaeeb33b0ac6e55a72a Mon Sep 17 00:00:00 2001
From: ms group dev
Date: Sat, 11 Jan 2020 14:47:36 +0800
Subject: [PATCH 07/27] =?UTF-8?q?=E8=AF=B4=E6=98=8E=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index e7c1ef66..131dda8a 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@
铭飞平台
- 在线演示
+ 在线演示
在线使用手册
代码生成器视频教程
Windows一键运行版本\Linux一键运行版本
From 77b2762423f3194d427bf41ff911785ce6e80608 Mon Sep 17 00:00:00 2001
From: ms group dev
Date: Sat, 11 Jan 2020 14:47:58 +0800
Subject: [PATCH 08/27] =?UTF-8?q?=E8=AF=B4=E6=98=8E=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 131dda8a..440ce355 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@
- 铭飞平台
+ 铭飞平台
在线演示
在线使用手册
代码生成器视频教程
From 897e577d4d105bf17304c55779143eb566c7f863 Mon Sep 17 00:00:00 2001
From: ms group dev
Date: Sat, 11 Jan 2020 22:03:28 +0800
Subject: [PATCH 09/27] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A7=86=E9=A2=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 440ce355..7ff78c32 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,8 @@
铭飞平台
在线演示
- 在线使用手册
+ 在线使用手册
+ 腾讯课堂在线视频
代码生成器视频教程
Windows一键运行版本\Linux一键运行版本
From 1e56e0f6419d24a63707588ddcd49ed5fa9899b9 Mon Sep 17 00:00:00 2001
From: ms group dev
Date: Sat, 11 Jan 2020 22:18:57 +0800
Subject: [PATCH 10/27] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E9=95=BF=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
doc/db-mcms-5.0.sql | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/db-mcms-5.0.sql b/doc/db-mcms-5.0.sql
index dd95cdc1..4a806edb 100644
--- a/doc/db-mcms-5.0.sql
+++ b/doc/db-mcms-5.0.sql
@@ -66,7 +66,7 @@ CREATE TABLE `cms_category` (
`category_manager_id` int(11) NULL DEFAULT NULL COMMENT '发布用户id',
`category_datetime` datetime(0) NULL DEFAULT NULL COMMENT '类别发布时间',
`mdiy_model_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '栏目管理的内容模型id',
- `category_diy_url` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '自定义链接',
+ `category_diy_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '自定义链接',
`category_url` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内容模板',
`category_list_url` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列表模板',
`category_sort` int(11) NULL DEFAULT NULL COMMENT '自定义顺序',
From 17f5ad42a1bb1fba05fe1304a135097b93657155 Mon Sep 17 00:00:00 2001
From: huise <995959152@qq.com>
Date: Mon, 20 Jan 2020 18:17:55 +0800
Subject: [PATCH 11/27] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A1=B5?=
=?UTF-8?q?=E7=94=9F=E6=88=90=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mingsoft/cms/action/GeneraterAction.java | 23 +++++++++----------
.../cms/resources/resources.properties | 1 +
.../cms/resources/resources_zh_CN.properties | 1 +
.../WEB-INF/manager/cms/generate/index.ftl | 10 ++++++--
4 files changed, 21 insertions(+), 14 deletions(-)
diff --git a/src/main/java/net/mingsoft/cms/action/GeneraterAction.java b/src/main/java/net/mingsoft/cms/action/GeneraterAction.java
index b02df132..ab64edd6 100644
--- a/src/main/java/net/mingsoft/cms/action/GeneraterAction.java
+++ b/src/main/java/net/mingsoft/cms/action/GeneraterAction.java
@@ -24,7 +24,6 @@ package net.mingsoft.cms.action;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import cn.hutool.core.io.FileUtil;
-import net.mingsoft.basic.action.BaseAction;
import net.mingsoft.basic.biz.IModelBiz;
import net.mingsoft.basic.entity.AppEntity;
import net.mingsoft.basic.util.BasicUtil;
@@ -52,12 +51,12 @@ import java.util.ArrayList;
import java.util.List;
/**
- *
+ *
* @ClassName: GeneraterAction
* @Description:TODO 生成器
* @author: 铭飞开发团队
* @date: 2018年1月31日 下午2:52:07
- *
+ *
* @Copyright: 2018 www.mingsoft.net Inc. All rights reserved.
*/
@Controller("cmsGenerater")
@@ -92,7 +91,7 @@ public class GeneraterAction extends BaseAction {
/**
* 更新主页
- *
+ *
* @return
*/
@RequestMapping("/index")
@@ -102,7 +101,7 @@ public class GeneraterAction extends BaseAction {
/**
* 生成主页
- *
+ *
* @param request
* @param response
*/
@@ -114,7 +113,7 @@ public class GeneraterAction extends BaseAction {
String tmpFileName = request.getParameter("url");
// 生成后的文件名称
String generateFileName = request.getParameter("position");
-
+
// 获取文件所在路径 首先判断用户输入的模版文件是否存在
if (!FileUtil.exist(ParserUtil.buildTempletPath())) {
this.outJson(response, false, getResString("templet.file"));
@@ -128,12 +127,12 @@ public class GeneraterAction extends BaseAction {
}
}
}
-
+
/**
* 生成列表的静态页面
- *
+ *
* @param request
* @param response
* @param CategoryId
@@ -194,7 +193,7 @@ public class GeneraterAction extends BaseAction {
/**
* 根据栏目id更新所有的文章
- *
+ *
* @param request
* @param response
* @param columnId
@@ -219,12 +218,12 @@ public class GeneraterAction extends BaseAction {
this.outJson(response, false);
}
}
-
+
/**
* 用户预览主页
- *
+ *
* @param request
* @return
*/
@@ -236,4 +235,4 @@ public class GeneraterAction extends BaseAction {
+ File.separator + position + ParserUtil.HTML_SUFFIX;
return "redirect:" + indexPosition;
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/net/mingsoft/cms/resources/resources.properties b/src/main/java/net/mingsoft/cms/resources/resources.properties
index 61730331..4bf15c7b 100644
--- a/src/main/java/net/mingsoft/cms/resources/resources.properties
+++ b/src/main/java/net/mingsoft/cms/resources/resources.properties
@@ -33,3 +33,4 @@ category.id=\u6240\u5C5E\u680F\u76EE
content.sort=\u81EA\u5B9A\u4E49\u987A\u5E8F
category.diy.url=\u81EA\u5B9A\u4E49\u94FE\u63A5
content.keyword=\u5173\u952E\u5B57
+templet.file=\u672A\u627E\u5230\u6A21\u677F\u6587\u4EF6
diff --git a/src/main/java/net/mingsoft/cms/resources/resources_zh_CN.properties b/src/main/java/net/mingsoft/cms/resources/resources_zh_CN.properties
index 61730331..4bf15c7b 100644
--- a/src/main/java/net/mingsoft/cms/resources/resources_zh_CN.properties
+++ b/src/main/java/net/mingsoft/cms/resources/resources_zh_CN.properties
@@ -33,3 +33,4 @@ category.id=\u6240\u5C5E\u680F\u76EE
content.sort=\u81EA\u5B9A\u4E49\u987A\u5E8F
category.diy.url=\u81EA\u5B9A\u4E49\u94FE\u63A5
content.keyword=\u5173\u952E\u5B57
+templet.file=\u672A\u627E\u5230\u6A21\u677F\u6587\u4EF6
diff --git a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
index 45257583..3b4a4a2c 100644
--- a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
+++ b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
@@ -128,7 +128,7 @@
homeLoading:false,
articleLoading:false,
columnLoading:false,
- template:'index.htm',//主题模板
+ template:'',//主题模板
templateOptions:[],
position:'index', //位置
contentSection:'0', //文章栏目
@@ -205,6 +205,12 @@
var that = this;
ms.http.get(ms.manager+'/template/queryTemplateFileForColumn.do', {pageSize:99999}).then(function (data) {
that.templateOptions = data.data;
+ //寻找主页
+ var template = that.templateOptions.find(function (x) {
+ return x.indexOf("index")!=-1||x.indexOf("default")!=-1;
+ })
+ //没有就找其他的
+ that.template = template||(that.templateOptions.length>0?that.templateOptions[0]:"");
}).catch(function (err) {
console.log(err);
});
@@ -702,4 +708,4 @@
.el-date-editor{
width: 100%;
}
-
\ No newline at end of file
+
From 2d19a084cab985247f7e6a64538ac22027ce0e49 Mon Sep 17 00:00:00 2001
From: huise <995959152@qq.com>
Date: Mon, 20 Jan 2020 18:42:37 +0800
Subject: [PATCH 12/27] =?UTF-8?q?=E4=BF=AE=E5=A4=8Djar=E5=8C=85=E6=97=A0?=
=?UTF-8?q?=E6=B3=95=E8=BF=90=E8=A1=8C=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 531 ++++++++++++++++++++++++++------------------------------
1 file changed, 249 insertions(+), 282 deletions(-)
diff --git a/pom.xml b/pom.xml
index 5da245d4..3e4cc33f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,291 +1,258 @@
-
- net.mingsoft
- ms-pom
- 1.0.0
-
-
- 4.0.0
- net.mingsoft
- ms-mcms
- 5.0.0
- ${project.groupId}:${project.artifactId}
- ms-mcms tools Library
- https://github.com/ming-soft/ms-mcms
-
-
- The MIT License (MIT)
- http://mit-license.org
-
-
-
-
- mingsoft develop group
- service@mingsoft.net
- mingsoft
- http://www.mingsoft.net
-
-
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ net.mingsoft
+ ms-pom
+ 1.0.0
+
+
+ 4.0.0
+ net.mingsoft
+ ms-mcms
+ 5.0.0
+ ${project.groupId}:${project.artifactId}
+ ms-mcms tools Library
+ https://github.com/ming-soft/ms-mcms
+
+
+ The MIT License (MIT)
+ http://mit-license.org
+
+
+
+
+ mingsoft develop group
+ service@mingsoft.net
+ mingsoft
+ http://www.mingsoft.net
+
+
-
- scm:git://github.com/ming-soft/ms-mcms.git
- scm:git@github.com:ming-soft/ms-mcms.git
- https://github.com/ming-soft/ms-mcms
-
-
-
- sonatype-nexus-snapshots
- Sonatype Nexus snapshot repository
- https://oss.sonatype.org/content/repositories/snapshots
-
-
- sonatype-nexus-staging
- Sonatype Nexus release repository
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
- 1.8
- UTF-8
-
-
-
-
-
-
-
-
-
- net.mingsoft
- ms-mpeople
-
-
- net.mingsoft
- ms-upgrader
-
-
-
-
-
- src/main/java
-
-
- src/main/webapp
-
- html/
- static/
- upload/
- templets/
-
-
-
- src/main/resources
-
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 2.6
-
-
- package
-
- jar
-
-
-
-
-
-
- **/static/plugins/
- **/static/skin/
- **/application*.yml
- **/Dockerfile
- **/ehcache.xml
- **/upgrade/
- **/*.java
-
-
-
-
- org.apache.maven.plugins
- maven-source-plugin
- 2.2.1
-
-
- **/static/plugins/
- **/static/skin/
- **/application*.yml
- **/Dockerfile
- **/ehcache.xml
- **/upgrade/
- **/config/
- **/MSApplication.java
- **/MSServletInitializer.java
-
-
-
-
- attach-sources
-
- jar-no-fork
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.1
-
- ${java.version}
- ${java.version}
- ${project.build.sourceEncoding}
- true
- true
-
-
- ${java.home}/lib/rt.jar:${java.home}/lib/jce.jar
-
- -Xlint:unchecked
-
-
-
- org.codehaus.plexus
- plexus-compiler-eclipse
- 2.1
-
-
-
-
- org.apache.maven.plugins
- maven-eclipse-plugin
- 2.8
-
-
-
- .settings/org.eclipse.core.resources.prefs
-
-
+ scm:git://github.com/ming-soft/ms-mcms.git
+ scm:git@github.com:ming-soft/ms-mcms.git
+ https://github.com/ming-soft/ms-mcms
+
+
+
+ sonatype-nexus-snapshots
+ Sonatype Nexus snapshot repository
+ https://oss.sonatype.org/content/repositories/snapshots
+
+
+ sonatype-nexus-staging
+ Sonatype Nexus release repository
+ https://oss.sonatype.org/service/local/staging/deploy/maven2/
+
+
+
+ 1.8
+ UTF-8
+
+
+
+
+
+
+
+
+
+ net.mingsoft
+ ms-mpeople
+
+
+ net.mingsoft
+ ms-upgrader
+
+
+
+
+
+ src/main/java
+
+
+ src/main/webapp
+
+ html/
+ static/
+ upload/
+ templets/
+
+
+
+ src/main/resources
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 2.6
+
+
+ package
+
+ jar
+
+
+
+
+
+
+ **/static/plugins/
+ **/static/skin/
+ **/Dockerfile
+ **/ehcache.xml
+ **/upgrade/
+ **/*.java
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ **/static/plugins/
+ **/static/skin/
+ **/application*.yml
+ **/Dockerfile
+ **/ehcache.xml
+ **/upgrade/
+ **/config/
+ **/MSApplication.java
+ **/MSServletInitializer.java
+
+
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+ ${java.version}
+ ${java.version}
+ ${project.build.sourceEncoding}
+
+
+
+ org.apache.maven.plugins
+ maven-eclipse-plugin
+ 2.8
+
+
+
+ .settings/org.eclipse.core.resources.prefs
+
+ =${project.build.sourceEncoding}
]]>
-
-
-
-
-
+
+
+
+
+
-
- maven-surefire-plugin
-
- -Xmx256m
-
-
-
- com.atlassian.maven.plugins
- maven-clover2-plugin
- 2.6.3
-
- ${clover.license.file}
- ${project.build.sourceEncoding}
- true
-
-
-
- org.codehaus.mojo
- findbugs-maven-plugin
- 1.2
-
- true
- true
- true
-
-
+
+ maven-surefire-plugin
+
+ -Xmx256m
+
+
+
+ com.atlassian.maven.plugins
+ maven-clover2-plugin
+ 2.6.3
+
+ ${clover.license.file}
+ ${project.build.sourceEncoding}
+ true
+
+
+
+ org.codehaus.mojo
+ findbugs-maven-plugin
+ 1.2
+
+ true
+ true
+ true
+
+
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 2.9.1
-
- UTF-8
- UTF-8
- UTF-8
- ${java.home}/../bin/javadoc
- -Xdoclint:none
-
-
-
- attach-javadocs
-
- jar
-
-
-
-
-
- org.apache.maven.plugins
- maven-war-plugin
- 2.6
-
-
-
- src/main/webapp/WEB-INF
- WEB-INF
- true
-
- **/*.xml
-
-
- web.xml
-
-
-
- true
- */web.xml,static
- false
- ms.install,html/,static/,temp,upgrader,WEB-INF/web.xml,WEB-INF/lib/,templets/,upload/,WEB-INF/classes/*.xml,WEB-INF/classes/*.properties,*.sh,WEB-INF/classes/net/mingsoft/config/,WEB-INF/classes/net/mingsoft/*.class
-
-
-
- org.apache.maven.plugins
- maven-release-plugin
-
- -Dgpg.passphrase=${gpg.passphrase}
-
-
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.7
- true
-
- sonatype-nexus-staging
- https://oss.sonatype.org/
- true
-
-
-
- org.apache.maven.plugins
- maven-gpg-plugin
- 1.5
-
-
- sign-artifacts
- verify
-
- sign
-
-
-
-
-
- compile
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.9.1
+
+ UTF-8
+ UTF-8
+ UTF-8
+ ${java.home}/../bin/javadoc
+ -Xdoclint:none
+
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ 2.6
+
+
+
+ src/main/webapp/WEB-INF
+ WEB-INF
+ true
+
+ **/*.xml
+
+
+ web.xml
+
+
+
+ true
+ */web.xml,static
+ false
+
+ ms.install,html/,static/,temp,upgrader,WEB-INF/web.xml,WEB-INF/lib/,templets/,upload/,WEB-INF/classes/*.xml,WEB-INF/classes/*.properties,*.sh,WEB-INF/classes/net/mingsoft/config/,WEB-INF/classes/net/mingsoft/*.class
+
+
+
+
+ org.apache.maven.plugins
+ maven-release-plugin
+
+ -Dgpg.passphrase=${gpg.passphrase}
+
+
- ms-mcms
-
-
\ No newline at end of file
+
+ compile
+
+ ms-mcms
+
+
From 70541b9a916d599d95a390b741d00247dbfef3bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BF=A1=20=E8=B5=B5?=
Date: Fri, 31 Jan 2020 17:44:49 +0800
Subject: [PATCH 13/27] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=BC=E5=AE=B9?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=20=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?=
=?UTF-8?q?=E7=9A=84=E6=96=B9=E6=B3=95=E4=BD=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../WEB-INF/manager/cms/category/form.ftl | 155 ++++---
.../WEB-INF/manager/cms/category/index.ftl | 308 +++++++-------
.../WEB-INF/manager/cms/content/form.ftl | 271 +++++++-----
.../WEB-INF/manager/cms/content/index.ftl | 91 ++--
.../WEB-INF/manager/cms/content/main.ftl | 397 ++++++++++++------
.../WEB-INF/manager/cms/generate/index.ftl | 162 ++++---
src/main/webapp/WEB-INF/manager/main.ftl | 116 +++--
.../babel-polyfill/7.8.3/polyfill.min.js | 1 +
.../static/plugins/ms/1.0.0/compatible.js | 20 +
.../webapp/static/plugins/ms/1.0.0/ms.http.js | 4 +-
.../webapp/static/plugins/ms/1.0.0/ms.util.js | 53 +--
11 files changed, 950 insertions(+), 628 deletions(-)
create mode 100644 src/main/webapp/static/plugins/babel-polyfill/7.8.3/polyfill.min.js
create mode 100644 src/main/webapp/static/plugins/ms/1.0.0/compatible.js
diff --git a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl
index beed697d..ddbee5ba 100644
--- a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl
+++ b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl
@@ -232,12 +232,12 @@
\ No newline at end of file
+ created: function () {
+ /* this.categoryListUrlOptionsGet();
+ this.categoryUrlOptionsGet();*/
+ this.list();
+ }
+ });
+
diff --git a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl
index c59a76ba..973dfed7 100644
--- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl
@@ -247,12 +247,16 @@
\ No newline at end of file
+
diff --git a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
index 3b4a4a2c..f5b291f0 100644
--- a/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
+++ b/src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
@@ -119,119 +119,163 @@