Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
4c21f276
"eladmin-tools/vscode:/vscode.git/clone" did not exist on "c4fc3da1754dd8b022edaac5d577b1f818175180"
Commit
4c21f276
authored
Jan 21, 2020
by
铭飞
Committed by
Gitee
Jan 21, 2020
Browse files
!222 添加注释,主页选中问题
Merge pull request !222 from 灰色DT/master
parents
1e56e0f6
2d19a084
Changes
8
Show whitespace changes
Inline
Side-by-side
pom.xml
View file @
4c21f276
...
@@ -52,12 +52,12 @@
...
@@ -52,12 +52,12 @@
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
</properties>
<dependencies>
<dependencies>
<!-- 如果使用的是mysql8.0需要使用8.0的驱动 -->
<!-- 如果使用的是mysql8.0需要使用8.0的驱动 -->
<!-- <dependency>-->
<!-- <dependency>-->
<!-- <groupId>mysql</groupId>-->
<!-- <groupId>mysql</groupId>-->
<!-- <artifactId>mysql-connector-java</artifactId>-->
<!-- <artifactId>mysql-connector-java</artifactId>-->
<!-- <version>8.0.11</version>-->
<!-- <version>8.0.11</version>-->
<!-- </dependency>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mpeople
</artifactId>
<artifactId>
ms-mpeople
</artifactId>
...
@@ -103,7 +103,6 @@
...
@@ -103,7 +103,6 @@
<!--注意这玩意从编译结果目录开始算目录结构 -->
<!--注意这玩意从编译结果目录开始算目录结构 -->
<exclude>
**/static/plugins/
</exclude>
<exclude>
**/static/plugins/
</exclude>
<exclude>
**/static/skin/
</exclude>
<exclude>
**/static/skin/
</exclude>
<exclude>
**/application*.yml
</exclude>
<exclude>
**/Dockerfile
</exclude>
<exclude>
**/Dockerfile
</exclude>
<exclude>
**/ehcache.xml
</exclude>
<exclude>
**/ehcache.xml
</exclude>
<exclude>
**/upgrade/
</exclude>
<exclude>
**/upgrade/
</exclude>
...
@@ -137,6 +136,10 @@
...
@@ -137,6 +136,10 @@
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<artifactId>
maven-compiler-plugin
</artifactId>
...
@@ -145,21 +148,7 @@
...
@@ -145,21 +148,7 @@
<source>
${java.version}
</source>
<source>
${java.version}
</source>
<target>
${java.version}
</target>
<target>
${java.version}
</target>
<encoding>
${project.build.sourceEncoding}
</encoding>
<encoding>
${project.build.sourceEncoding}
</encoding>
<showDeprecation>
true
</showDeprecation>
<showWarnings>
true
</showWarnings>
<compilerArguments>
<verbose
/>
<bootclasspath>
${java.home}/lib/rt.jar:${java.home}/lib/jce.jar
</bootclasspath>
</compilerArguments>
<compilerArgument>
-Xlint:unchecked
</compilerArgument>
</configuration>
</configuration>
<dependencies>
<dependency>
<groupId>
org.codehaus.plexus
</groupId>
<artifactId>
plexus-compiler-eclipse
</artifactId>
<version>
2.1
</version>
</dependency>
</dependencies>
</plugin>
</plugin>
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
...
@@ -246,9 +235,11 @@
...
@@ -246,9 +235,11 @@
</resource>
</resource>
</webResources>
</webResources>
<attachClasses>
true
</attachClasses>
<attachClasses>
true
</attachClasses>
<warSourceExcludes>
*/web.xml,static
</warSourceExcludes>
<warSourceExcludes>
*/web.xml,static
</warSourceExcludes>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
<packagingExcludes>
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
</packagingExcludes>
<packagingExcludes>
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
</packagingExcludes>
</configuration>
</configuration>
</plugin>
</plugin>
<plugin>
<plugin>
...
@@ -258,31 +249,7 @@
...
@@ -258,31 +249,7 @@
<arguments>
-Dgpg.passphrase=${gpg.passphrase}
</arguments>
<arguments>
-Dgpg.passphrase=${gpg.passphrase}
</arguments>
</configuration>
</configuration>
</plugin>
</plugin>
<plugin>
<groupId>
org.sonatype.plugins
</groupId>
<artifactId>
nexus-staging-maven-plugin
</artifactId>
<version>
1.6.7
</version>
<extensions>
true
</extensions>
<configuration>
<serverId>
sonatype-nexus-staging
</serverId>
<nexusUrl>
https://oss.sonatype.org/
</nexusUrl>
<autoReleaseAfterClose>
true
</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-gpg-plugin
</artifactId>
<version>
1.5
</version>
<executions>
<execution>
<id>
sign-artifacts
</id>
<phase>
verify
</phase>
<goals>
<goal>
sign
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</plugins>
<defaultGoal>
compile
</defaultGoal>
<defaultGoal>
compile
</defaultGoal>
...
...
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
View file @
4c21f276
...
@@ -24,7 +24,6 @@ package net.mingsoft.cms.action;
...
@@ -24,7 +24,6 @@ package net.mingsoft.cms.action;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.copier.CopyOptions
;
import
cn.hutool.core.bean.copier.CopyOptions
;
import
cn.hutool.core.io.FileUtil
;
import
cn.hutool.core.io.FileUtil
;
import
net.mingsoft.basic.action.BaseAction
;
import
net.mingsoft.basic.biz.IModelBiz
;
import
net.mingsoft.basic.biz.IModelBiz
;
import
net.mingsoft.basic.entity.AppEntity
;
import
net.mingsoft.basic.entity.AppEntity
;
import
net.mingsoft.basic.util.BasicUtil
;
import
net.mingsoft.basic.util.BasicUtil
;
...
...
src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml
View file @
4c21f276
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
and
and
(
(
<if
test=
"categoryParentId != null and categoryParentId!=''"
>
<if
test=
"categoryParentId != null and categoryParentId!=''"
>
CATEGORY_PARENT_ID like '%${categoryParentId}%'
find_in_set(#{categoryParentId},CATEGORY_PARENT_ID)
</if>
</if>
<if
test=
"categoryParentId == null or categoryParentId ==''"
>
<if
test=
"categoryParentId == null or categoryParentId ==''"
>
<include
refid=
"queryWhereCategoryId"
></include>
<include
refid=
"queryWhereCategoryId"
></include>
...
...
src/main/java/net/mingsoft/cms/resources/resources.properties
View file @
4c21f276
...
@@ -33,3 +33,4 @@ category.id=\u6240\u5C5E\u680F\u76EE
...
@@ -33,3 +33,4 @@ category.id=\u6240\u5C5E\u680F\u76EE
content.sort
=
\u
81EA
\u
5B9A
\u
4E49
\u
987A
\u
5E8F
content.sort
=
\u
81EA
\u
5B9A
\u
4E49
\u
987A
\u
5E8F
category.diy.url
=
\u
81EA
\u
5B9A
\u
4E49
\u
94FE
\u
63A5
category.diy.url
=
\u
81EA
\u
5B9A
\u
4E49
\u
94FE
\u
63A5
content.keyword
=
\u5173\u
952E
\u
5B57
content.keyword
=
\u5173\u
952E
\u
5B57
templet.file
=
\u
672A
\u
627E
\u5230\u
6A21
\u
677F
\u6587\u
4EF6
src/main/java/net/mingsoft/cms/resources/resources_zh_CN.properties
View file @
4c21f276
...
@@ -33,3 +33,4 @@ category.id=\u6240\u5C5E\u680F\u76EE
...
@@ -33,3 +33,4 @@ category.id=\u6240\u5C5E\u680F\u76EE
content.sort
=
\u
81EA
\u
5B9A
\u
4E49
\u
987A
\u
5E8F
content.sort
=
\u
81EA
\u
5B9A
\u
4E49
\u
987A
\u
5E8F
category.diy.url
=
\u
81EA
\u
5B9A
\u
4E49
\u
94FE
\u
63A5
category.diy.url
=
\u
81EA
\u
5B9A
\u
4E49
\u
94FE
\u
63A5
content.keyword
=
\u5173\u
952E
\u
5B57
content.keyword
=
\u5173\u
952E
\u
5B57
templet.file
=
\u
672A
\u
627E
\u5230\u
6A21
\u
677F
\u6587\u
4EF6
src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
View file @
4c21f276
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
homeLoading
:
false
,
homeLoading
:
false
,
articleLoading
:
false
,
articleLoading
:
false
,
columnLoading
:
false
,
columnLoading
:
false
,
template
:
'
index
.htm
'
,
//主题模板
template
:
''
,
//主题模板
templateOptions
:
[]
,
templateOptions
:
[]
,
position
:
'
index
'
,
//位置
position
:
'
index
'
,
//位置
contentSection
:
'
0
'
,
//文章栏目
contentSection
:
'
0
'
,
//文章栏目
...
@@ -205,6 +205,12 @@
...
@@ -205,6 +205,12 @@
var
that
=
this
;
var
that
=
this
;
ms
.http.get
(
ms
.manager
+'/
template
/
queryTemplateFileForColumn
.do
'
,
{
pageSize
:
99999
})
.then
(
function
(
data
)
{
ms
.http.get
(
ms
.manager
+'/
template
/
queryTemplateFileForColumn
.do
'
,
{
pageSize
:
99999
})
.then
(
function
(
data
)
{
that
.templateOptions
=
data
.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
)
{
})
.catch
(
function
(
err
)
{
console
.log
(
err
)
;
console
.log
(
err
)
;
})
;
})
;
...
...
src/main/webapp/static/ms-admin/5.0.0/images/1577692394350.jpg
0 → 100644
View file @
4c21f276
115 KB
src/main/webapp/static/ms-admin/5.0.0/images/1577694374686.png
0 → 100644
View file @
4c21f276
79.1 KB
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment