From c6d962419720f3e2d285d01a87a4e28c5b33d806 Mon Sep 17 00:00:00 2001
From: yanhl <949385827@qq.com>
Date: Thu, 7 Dec 2023 14:46:15 +0800
Subject: [PATCH 1/8] =?UTF-8?q?chore:=20config+=20=E9=95=9C=E5=83=8F?=
=?UTF-8?q?=E5=8A=A0=E9=80=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/build.gradle | 6 ++++++
application/build.gradle | 7 ++++++-
.../src/main/resources/application-dev.yaml | 14 +++++++++++++-
.../src/main/resources/application-mysql.yaml | 2 +-
application/src/main/resources/application.yaml | 2 +-
settings.gradle | 9 ++++++++-
6 files changed, 35 insertions(+), 5 deletions(-)
diff --git a/api/build.gradle b/api/build.gradle
index c04f50aad..25ea651c0 100644
--- a/api/build.gradle
+++ b/api/build.gradle
@@ -13,6 +13,12 @@ compileTestJava.options.encoding = "UTF-8"
javadoc.options.encoding = "UTF-8"
repositories {
+ maven {
+ url "https://maven.aliyun.com/repository/central"
+ }
+ maven {
+ url "https://maven.aliyun.com/repository/public"
+ }
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
diff --git a/application/build.gradle b/application/build.gradle
index 5208f100b..6c112b123 100644
--- a/application/build.gradle
+++ b/application/build.gradle
@@ -21,8 +21,13 @@ checkstyle {
}
repositories {
+ maven {
+ url "https://maven.aliyun.com/repository/central"
+ }
+ maven {
+ url "https://maven.aliyun.com/repository/public"
+ }
mavenCentral()
-
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
diff --git a/application/src/main/resources/application-dev.yaml b/application/src/main/resources/application-dev.yaml
index ddc6b9521..3844be9d9 100644
--- a/application/src/main/resources/application-dev.yaml
+++ b/application/src/main/resources/application-dev.yaml
@@ -2,6 +2,14 @@ server:
port: 8090
spring:
+ r2dbc:
+ url: r2dbc:pool:mysql://localhost:3306/halo
+ username: root
+ password: yhlorcl
+ sql:
+ init:
+ mode: always
+ platform: mysql
output:
ansi:
enabled: always
@@ -25,7 +33,11 @@ halo:
enabled: true
plugin:
runtime-mode: development # development, deployment
- work-dir: ${user.home}/halo2-dev
+ fixed-plugin-path:
+ # 配置为插件绝对路径
+ #- "/Users/yanhailin/Gitee-Projects/halo-plugins/plugin-starter-main"
+ - "/Users/yanhailin/Gitee-Projects/halo-plugins/plugin-starter-hello-world"
+ work-dir: ${user.home}/volumes_docker/halo
logging:
level:
run.halo.app: DEBUG
diff --git a/application/src/main/resources/application-mysql.yaml b/application/src/main/resources/application-mysql.yaml
index fe3846c3c..c31298413 100644
--- a/application/src/main/resources/application-mysql.yaml
+++ b/application/src/main/resources/application-mysql.yaml
@@ -2,7 +2,7 @@ spring:
r2dbc:
url: r2dbc:pool:mysql://localhost:3306/halo
username: root
- password: openmysql
+ password: yhlorcl
sql:
init:
mode: always
diff --git a/application/src/main/resources/application.yaml b/application/src/main/resources/application.yaml
index d289d8cf2..bd6e9b267 100644
--- a/application/src/main/resources/application.yaml
+++ b/application/src/main/resources/application.yaml
@@ -37,7 +37,7 @@ halo:
page:
# Disable page cache by default due to experimental feature
disabled: true
- work-dir: ${user.home}/.halo2
+ work-dir: ${user.home}/volumes_docker/halo
plugin:
plugins-root: ${halo.work-dir}/plugins
attachment:
diff --git a/settings.gradle b/settings.gradle
index a672bc3cb..72f56e5ba 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,6 +1,13 @@
+//pluginManagement {
+// repositories {
+// maven { url 'https://repo.spring.io/milestone' }
+// gradlePluginPortal()
+// }
+//}
pluginManagement {
repositories {
- maven { url 'https://repo.spring.io/milestone' }
+ maven { url "https://maven.aliyun.com/repository/gradle-plugin"
+ }
gradlePluginPortal()
}
}
--
Gitee
From 8df25721eee259aab8ffcbcd5e0bcb08c67426a2 Mon Sep 17 00:00:00 2001
From: yanhl <949385827@qq.com>
Date: Fri, 8 Dec 2023 23:20:12 +0800
Subject: [PATCH 2/8] =?UTF-8?q?feat:=20=E6=9B=B4=E6=8D=A2logo?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
console/src/assets/home.svg | 1 +
console/src/assets/my-logo.svg | 3 +++
console/src/vite/config-builder.ts | 2 +-
gradle/wrapper/gradle-wrapper.properties | 2 +-
4 files changed, 6 insertions(+), 2 deletions(-)
create mode 100644 console/src/assets/home.svg
create mode 100644 console/src/assets/my-logo.svg
diff --git a/console/src/assets/home.svg b/console/src/assets/home.svg
new file mode 100644
index 000000000..824e85955
--- /dev/null
+++ b/console/src/assets/home.svg
@@ -0,0 +1 @@
+
diff --git a/console/src/assets/my-logo.svg b/console/src/assets/my-logo.svg
new file mode 100644
index 000000000..d79570262
--- /dev/null
+++ b/console/src/assets/my-logo.svg
@@ -0,0 +1,3 @@
+
diff --git a/console/src/vite/config-builder.ts b/console/src/vite/config-builder.ts
index ee238d9b1..40b6fb512 100644
--- a/console/src/vite/config-builder.ts
+++ b/console/src/vite/config-builder.ts
@@ -30,7 +30,7 @@ export const sharedPlugins = [
compiler: "vue3",
customCollections: {
core: {
- logo: () => fs.readFileSync("./src/assets/logo.svg", "utf-8"),
+ logo: () => fs.readFileSync("./src/assets/my-logo.svg", "utf-8"),
},
},
}),
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 309b4e18d..bdc9a83b1 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
--
Gitee
From 284f5d209903b6d707ee98b7e1a86bc1d7b79448 Mon Sep 17 00:00:00 2001
From: yanhl <949385827@qq.com>
Date: Mon, 11 Dec 2023 20:12:31 +0800
Subject: [PATCH 3/8] =?UTF-8?q?feat:=20=E7=B3=BB=E7=BB=9F=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../resources/extensions/system-setting.yaml | 254 +++++++++---------
1 file changed, 127 insertions(+), 127 deletions(-)
diff --git a/application/src/main/resources/extensions/system-setting.yaml b/application/src/main/resources/extensions/system-setting.yaml
index 0f3a4f0c9..fe9ad78cc 100644
--- a/application/src/main/resources/extensions/system-setting.yaml
+++ b/application/src/main/resources/extensions/system-setting.yaml
@@ -11,9 +11,9 @@ spec:
label: "站点标题"
name: title
validation: required
- - $formkit: text
- label: "站点副标题"
- name: subtitle
+# - $formkit: text
+# label: "站点副标题"
+# name: subtitle
- $formkit: attachment
label: Logo
name: logo
@@ -24,71 +24,71 @@ spec:
name: favicon
accepts:
- 'image/*'
- - group: post
- label: 文章设置
- formSchema:
- - $formkit: number
- label: "文章列表显示条数"
- name: postPageSize
- value: 10
- min: 1
- max: 100
- validation: required | max:100
- - $formkit: number
- label: "归档页文章显示条数"
- name: archivePageSize
- value: 10
- min: 1
- max: 100
- validation: required | max:100
- - $formkit: number
- label: "分类页文章显示条数"
- name: categoryPageSize
- value: 10
- min: 1
- max: 100
- validation: required | max:100
- - $formkit: number
- label: "标签页文章显示条数"
- name: tagPageSize
- value: 10
- min: 1
- max: 100
- validation: required
- - $formkit: select
- label: "别名生成策略"
- name: slugGenerationStrategy
- value: 'generateByTitle'
- options:
- - label: '根据标题'
- value: 'generateByTitle'
- - label: '时间戳'
- value: 'timestamp'
- - label: 'Short UUID'
- value: 'shortUUID'
- - label: 'UUID'
- value: 'UUID'
- - $formkit: attachmentPolicySelect
- name: attachmentPolicyName
- label: "附件存储策略"
- value: "default-policy"
- - $formkit: attachmentGroupSelect
- name: attachmentGroupName
- label: "附件存储组"
- value: ""
- - group: seo
- label: SEO 设置
- formSchema:
- - $formkit: checkbox
- name: blockSpiders
- label: "屏蔽搜索引擎"
- value: false
- - $formkit: textarea
- name: keywords
- label: "站点关键词"
- - $formkit: textarea
- name: description
- label: "站点描述"
+# - group: post
+# label: 文章设置
+# formSchema:
+# - $formkit: number
+# label: "文章列表显示条数"
+# name: postPageSize
+# value: 10
+# min: 1
+# max: 100
+# validation: required | max:100
+# - $formkit: number
+# label: "归档页文章显示条数"
+# name: archivePageSize
+# value: 10
+# min: 1
+# max: 100
+# validation: required | max:100
+# - $formkit: number
+# label: "分类页文章显示条数"
+# name: categoryPageSize
+# value: 10
+# min: 1
+# max: 100
+# validation: required | max:100
+# - $formkit: number
+# label: "标签页文章显示条数"
+# name: tagPageSize
+# value: 10
+# min: 1
+# max: 100
+# validation: required
+# - $formkit: select
+# label: "别名生成策略"
+# name: slugGenerationStrategy
+# value: 'generateByTitle'
+# options:
+# - label: '根据标题'
+# value: 'generateByTitle'
+# - label: '时间戳'
+# value: 'timestamp'
+# - label: 'Short UUID'
+# value: 'shortUUID'
+# - label: 'UUID'
+# value: 'UUID'
+# - $formkit: attachmentPolicySelect
+# name: attachmentPolicyName
+# label: "附件存储策略"
+# value: "default-policy"
+# - $formkit: attachmentGroupSelect
+# name: attachmentGroupName
+# label: "附件存储组"
+# value: ""
+# - group: seo
+# label: SEO 设置
+# formSchema:
+# - $formkit: checkbox
+# name: blockSpiders
+# label: "屏蔽搜索引擎"
+# value: false
+# - $formkit: textarea
+# name: keywords
+# label: "站点关键词"
+# - $formkit: textarea
+# name: description
+# label: "站点描述"
- group: user
label: 用户设置
formSchema:
@@ -118,62 +118,62 @@ spec:
name: systemUserOnly
value: true
label: "仅允许注册用户评论"
- - group: routeRules
- label: 主题路由设置
- formSchema:
- - $formkit: text
- label: "分类页路由前缀"
- value: "categories"
- name: categories
- validation: required | alphanumeric
- - $formkit: text
- label: "标签页路由前缀"
- value: "tags"
- name: tags
- validation: required | alphanumeric
- - $formkit: text
- label: "归档页路由前缀"
- value: "archives"
- name: archives
- validation: required | alphanumeric
- - $formkit: select
- label: 文章详情页访问规则
- value: '/archives/{slug}'
- options:
- - label: '/archives/{slug}'
- value: '/archives/{slug}'
- - label: '/archives/{name}'
- value: '/archives/{name}'
- - label: '/?p={name}'
- value: '/?p={name}'
- - label: '/?p={slug}'
- value: '/?p={slug}'
- - label: '/{year}/{slug}'
- value: '/{year:\d{4}}/{slug}'
- - label: '/{year}/{month}/{slug}'
- value: '/{year:\d{4}}/{month:\d{2}}/{slug}'
- - label: '/{year}/{month}/{day}/{slug}'
- value: '/{year:\d{4}}/{month:\d{2}}/{day:\d{2}}/{slug}'
- name: post
- validation: required
- - group: codeInjection
- label: 代码注入
- formSchema:
- - $formkit: code
- language: html
- height: 200px
- label: "全局 head 标签"
- name: globalHead
- help: "注入代码到所有页面的 head 标签部分"
- - $formkit: code
- language: html
- height: 200px
- label: "内容页 head 标签"
- name: contentHead
- help: "注入代码到文章页面和自定义页面的 head 标签部分"
- - $formkit: code
- language: html
- height: 200px
- label: "页脚"
- name: footer
- help: "注入代码到所有页面的页脚部分"
+# - group: routeRules
+# label: 主题路由设置
+# formSchema:
+# - $formkit: text
+# label: "分类页路由前缀"
+# value: "categories"
+# name: categories
+# validation: required | alphanumeric
+# - $formkit: text
+# label: "标签页路由前缀"
+# value: "tags"
+# name: tags
+# validation: required | alphanumeric
+# - $formkit: text
+# label: "归档页路由前缀"
+# value: "archives"
+# name: archives
+# validation: required | alphanumeric
+# - $formkit: select
+# label: 文章详情页访问规则
+# value: '/archives/{slug}'
+# options:
+# - label: '/archives/{slug}'
+# value: '/archives/{slug}'
+# - label: '/archives/{name}'
+# value: '/archives/{name}'
+# - label: '/?p={name}'
+# value: '/?p={name}'
+# - label: '/?p={slug}'
+# value: '/?p={slug}'
+# - label: '/{year}/{slug}'
+# value: '/{year:\d{4}}/{slug}'
+# - label: '/{year}/{month}/{slug}'
+# value: '/{year:\d{4}}/{month:\d{2}}/{slug}'
+# - label: '/{year}/{month}/{day}/{slug}'
+# value: '/{year:\d{4}}/{month:\d{2}}/{day:\d{2}}/{slug}'
+# name: post
+# validation: required
+# - group: codeInjection
+# label: 代码注入
+# formSchema:
+# - $formkit: code
+# language: html
+# height: 200px
+# label: "全局 head 标签"
+# name: globalHead
+# help: "注入代码到所有页面的 head 标签部分"
+# - $formkit: code
+# language: html
+# height: 200px
+# label: "内容页 head 标签"
+# name: contentHead
+# help: "注入代码到文章页面和自定义页面的 head 标签部分"
+# - $formkit: code
+# language: html
+# height: 200px
+# label: "页脚"
+# name: footer
+# help: "注入代码到所有页面的页脚部分"
--
Gitee
From 22ee7d6284d5fe9e6f69bc936d8897d5f8a7c5fc Mon Sep 17 00:00:00 2001
From: yanhl <949385827@qq.com>
Date: Wed, 13 Dec 2023 11:45:00 +0800
Subject: [PATCH 4/8] fix: the role permission of theme manager
---
.../modules/interface/themes/layouts/ThemeLayout.vue | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/console/console-src/modules/interface/themes/layouts/ThemeLayout.vue b/console/console-src/modules/interface/themes/layouts/ThemeLayout.vue
index fd5c1bc29..5488ae3b8 100644
--- a/console/console-src/modules/interface/themes/layouts/ThemeLayout.vue
+++ b/console/console-src/modules/interface/themes/layouts/ThemeLayout.vue
@@ -207,7 +207,11 @@ onMounted(() => {
{{ $t("core.common.buttons.preview") }}
-
+
--
Gitee
From 05038614ab7db59e3ba176e476053514e86bbd0d Mon Sep 17 00:00:00 2001
From: yanhl <949385827@qq.com>
Date: Thu, 7 Dec 2023 14:46:15 +0800
Subject: [PATCH 5/8] =?UTF-8?q?chore:=20config+=20=E9=95=9C=E5=83=8F?=
=?UTF-8?q?=E5=8A=A0=E9=80=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/build.gradle | 6 ++++++
application/build.gradle | 7 ++++++-
.../src/main/resources/application-dev.yaml | 14 +++++++++++++-
.../src/main/resources/application-mysql.yaml | 2 +-
application/src/main/resources/application.yaml | 2 +-
settings.gradle | 9 ++++++++-
6 files changed, 35 insertions(+), 5 deletions(-)
diff --git a/api/build.gradle b/api/build.gradle
index c04f50aad..25ea651c0 100644
--- a/api/build.gradle
+++ b/api/build.gradle
@@ -13,6 +13,12 @@ compileTestJava.options.encoding = "UTF-8"
javadoc.options.encoding = "UTF-8"
repositories {
+ maven {
+ url "https://maven.aliyun.com/repository/central"
+ }
+ maven {
+ url "https://maven.aliyun.com/repository/public"
+ }
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
diff --git a/application/build.gradle b/application/build.gradle
index 5208f100b..6c112b123 100644
--- a/application/build.gradle
+++ b/application/build.gradle
@@ -21,8 +21,13 @@ checkstyle {
}
repositories {
+ maven {
+ url "https://maven.aliyun.com/repository/central"
+ }
+ maven {
+ url "https://maven.aliyun.com/repository/public"
+ }
mavenCentral()
-
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
diff --git a/application/src/main/resources/application-dev.yaml b/application/src/main/resources/application-dev.yaml
index ddc6b9521..3844be9d9 100644
--- a/application/src/main/resources/application-dev.yaml
+++ b/application/src/main/resources/application-dev.yaml
@@ -2,6 +2,14 @@ server:
port: 8090
spring:
+ r2dbc:
+ url: r2dbc:pool:mysql://localhost:3306/halo
+ username: root
+ password: yhlorcl
+ sql:
+ init:
+ mode: always
+ platform: mysql
output:
ansi:
enabled: always
@@ -25,7 +33,11 @@ halo:
enabled: true
plugin:
runtime-mode: development # development, deployment
- work-dir: ${user.home}/halo2-dev
+ fixed-plugin-path:
+ # 配置为插件绝对路径
+ #- "/Users/yanhailin/Gitee-Projects/halo-plugins/plugin-starter-main"
+ - "/Users/yanhailin/Gitee-Projects/halo-plugins/plugin-starter-hello-world"
+ work-dir: ${user.home}/volumes_docker/halo
logging:
level:
run.halo.app: DEBUG
diff --git a/application/src/main/resources/application-mysql.yaml b/application/src/main/resources/application-mysql.yaml
index fe3846c3c..c31298413 100644
--- a/application/src/main/resources/application-mysql.yaml
+++ b/application/src/main/resources/application-mysql.yaml
@@ -2,7 +2,7 @@ spring:
r2dbc:
url: r2dbc:pool:mysql://localhost:3306/halo
username: root
- password: openmysql
+ password: yhlorcl
sql:
init:
mode: always
diff --git a/application/src/main/resources/application.yaml b/application/src/main/resources/application.yaml
index d289d8cf2..bd6e9b267 100644
--- a/application/src/main/resources/application.yaml
+++ b/application/src/main/resources/application.yaml
@@ -37,7 +37,7 @@ halo:
page:
# Disable page cache by default due to experimental feature
disabled: true
- work-dir: ${user.home}/.halo2
+ work-dir: ${user.home}/volumes_docker/halo
plugin:
plugins-root: ${halo.work-dir}/plugins
attachment:
diff --git a/settings.gradle b/settings.gradle
index a672bc3cb..72f56e5ba 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,6 +1,13 @@
+//pluginManagement {
+// repositories {
+// maven { url 'https://repo.spring.io/milestone' }
+// gradlePluginPortal()
+// }
+//}
pluginManagement {
repositories {
- maven { url 'https://repo.spring.io/milestone' }
+ maven { url "https://maven.aliyun.com/repository/gradle-plugin"
+ }
gradlePluginPortal()
}
}
--
Gitee
From 764cf05220c4c7812cfc174fd862ad9c8608e1bf Mon Sep 17 00:00:00 2001
From: yanhl <949385827@qq.com>
Date: Fri, 8 Dec 2023 23:20:12 +0800
Subject: [PATCH 6/8] =?UTF-8?q?feat:=20=E6=9B=B4=E6=8D=A2logo?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
console/src/assets/home.svg | 1 +
console/src/assets/my-logo.svg | 3 +++
console/src/vite/config-builder.ts | 2 +-
gradle/wrapper/gradle-wrapper.properties | 2 +-
4 files changed, 6 insertions(+), 2 deletions(-)
create mode 100644 console/src/assets/home.svg
create mode 100644 console/src/assets/my-logo.svg
diff --git a/console/src/assets/home.svg b/console/src/assets/home.svg
new file mode 100644
index 000000000..824e85955
--- /dev/null
+++ b/console/src/assets/home.svg
@@ -0,0 +1 @@
+
diff --git a/console/src/assets/my-logo.svg b/console/src/assets/my-logo.svg
new file mode 100644
index 000000000..d79570262
--- /dev/null
+++ b/console/src/assets/my-logo.svg
@@ -0,0 +1,3 @@
+
diff --git a/console/src/vite/config-builder.ts b/console/src/vite/config-builder.ts
index ee238d9b1..40b6fb512 100644
--- a/console/src/vite/config-builder.ts
+++ b/console/src/vite/config-builder.ts
@@ -30,7 +30,7 @@ export const sharedPlugins = [
compiler: "vue3",
customCollections: {
core: {
- logo: () => fs.readFileSync("./src/assets/logo.svg", "utf-8"),
+ logo: () => fs.readFileSync("./src/assets/my-logo.svg", "utf-8"),
},
},
}),
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 309b4e18d..bdc9a83b1 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
--
Gitee
From f94d33b0f2d4fb7727caddaee5d0cf940ca7016e Mon Sep 17 00:00:00 2001
From: yanhl <949385827@qq.com>
Date: Mon, 11 Dec 2023 20:12:31 +0800
Subject: [PATCH 7/8] =?UTF-8?q?feat:=20=E7=B3=BB=E7=BB=9F=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../resources/extensions/system-setting.yaml | 254 +++++++++---------
1 file changed, 127 insertions(+), 127 deletions(-)
diff --git a/application/src/main/resources/extensions/system-setting.yaml b/application/src/main/resources/extensions/system-setting.yaml
index 0f3a4f0c9..fe9ad78cc 100644
--- a/application/src/main/resources/extensions/system-setting.yaml
+++ b/application/src/main/resources/extensions/system-setting.yaml
@@ -11,9 +11,9 @@ spec:
label: "站点标题"
name: title
validation: required
- - $formkit: text
- label: "站点副标题"
- name: subtitle
+# - $formkit: text
+# label: "站点副标题"
+# name: subtitle
- $formkit: attachment
label: Logo
name: logo
@@ -24,71 +24,71 @@ spec:
name: favicon
accepts:
- 'image/*'
- - group: post
- label: 文章设置
- formSchema:
- - $formkit: number
- label: "文章列表显示条数"
- name: postPageSize
- value: 10
- min: 1
- max: 100
- validation: required | max:100
- - $formkit: number
- label: "归档页文章显示条数"
- name: archivePageSize
- value: 10
- min: 1
- max: 100
- validation: required | max:100
- - $formkit: number
- label: "分类页文章显示条数"
- name: categoryPageSize
- value: 10
- min: 1
- max: 100
- validation: required | max:100
- - $formkit: number
- label: "标签页文章显示条数"
- name: tagPageSize
- value: 10
- min: 1
- max: 100
- validation: required
- - $formkit: select
- label: "别名生成策略"
- name: slugGenerationStrategy
- value: 'generateByTitle'
- options:
- - label: '根据标题'
- value: 'generateByTitle'
- - label: '时间戳'
- value: 'timestamp'
- - label: 'Short UUID'
- value: 'shortUUID'
- - label: 'UUID'
- value: 'UUID'
- - $formkit: attachmentPolicySelect
- name: attachmentPolicyName
- label: "附件存储策略"
- value: "default-policy"
- - $formkit: attachmentGroupSelect
- name: attachmentGroupName
- label: "附件存储组"
- value: ""
- - group: seo
- label: SEO 设置
- formSchema:
- - $formkit: checkbox
- name: blockSpiders
- label: "屏蔽搜索引擎"
- value: false
- - $formkit: textarea
- name: keywords
- label: "站点关键词"
- - $formkit: textarea
- name: description
- label: "站点描述"
+# - group: post
+# label: 文章设置
+# formSchema:
+# - $formkit: number
+# label: "文章列表显示条数"
+# name: postPageSize
+# value: 10
+# min: 1
+# max: 100
+# validation: required | max:100
+# - $formkit: number
+# label: "归档页文章显示条数"
+# name: archivePageSize
+# value: 10
+# min: 1
+# max: 100
+# validation: required | max:100
+# - $formkit: number
+# label: "分类页文章显示条数"
+# name: categoryPageSize
+# value: 10
+# min: 1
+# max: 100
+# validation: required | max:100
+# - $formkit: number
+# label: "标签页文章显示条数"
+# name: tagPageSize
+# value: 10
+# min: 1
+# max: 100
+# validation: required
+# - $formkit: select
+# label: "别名生成策略"
+# name: slugGenerationStrategy
+# value: 'generateByTitle'
+# options:
+# - label: '根据标题'
+# value: 'generateByTitle'
+# - label: '时间戳'
+# value: 'timestamp'
+# - label: 'Short UUID'
+# value: 'shortUUID'
+# - label: 'UUID'
+# value: 'UUID'
+# - $formkit: attachmentPolicySelect
+# name: attachmentPolicyName
+# label: "附件存储策略"
+# value: "default-policy"
+# - $formkit: attachmentGroupSelect
+# name: attachmentGroupName
+# label: "附件存储组"
+# value: ""
+# - group: seo
+# label: SEO 设置
+# formSchema:
+# - $formkit: checkbox
+# name: blockSpiders
+# label: "屏蔽搜索引擎"
+# value: false
+# - $formkit: textarea
+# name: keywords
+# label: "站点关键词"
+# - $formkit: textarea
+# name: description
+# label: "站点描述"
- group: user
label: 用户设置
formSchema:
@@ -118,62 +118,62 @@ spec:
name: systemUserOnly
value: true
label: "仅允许注册用户评论"
- - group: routeRules
- label: 主题路由设置
- formSchema:
- - $formkit: text
- label: "分类页路由前缀"
- value: "categories"
- name: categories
- validation: required | alphanumeric
- - $formkit: text
- label: "标签页路由前缀"
- value: "tags"
- name: tags
- validation: required | alphanumeric
- - $formkit: text
- label: "归档页路由前缀"
- value: "archives"
- name: archives
- validation: required | alphanumeric
- - $formkit: select
- label: 文章详情页访问规则
- value: '/archives/{slug}'
- options:
- - label: '/archives/{slug}'
- value: '/archives/{slug}'
- - label: '/archives/{name}'
- value: '/archives/{name}'
- - label: '/?p={name}'
- value: '/?p={name}'
- - label: '/?p={slug}'
- value: '/?p={slug}'
- - label: '/{year}/{slug}'
- value: '/{year:\d{4}}/{slug}'
- - label: '/{year}/{month}/{slug}'
- value: '/{year:\d{4}}/{month:\d{2}}/{slug}'
- - label: '/{year}/{month}/{day}/{slug}'
- value: '/{year:\d{4}}/{month:\d{2}}/{day:\d{2}}/{slug}'
- name: post
- validation: required
- - group: codeInjection
- label: 代码注入
- formSchema:
- - $formkit: code
- language: html
- height: 200px
- label: "全局 head 标签"
- name: globalHead
- help: "注入代码到所有页面的 head 标签部分"
- - $formkit: code
- language: html
- height: 200px
- label: "内容页 head 标签"
- name: contentHead
- help: "注入代码到文章页面和自定义页面的 head 标签部分"
- - $formkit: code
- language: html
- height: 200px
- label: "页脚"
- name: footer
- help: "注入代码到所有页面的页脚部分"
+# - group: routeRules
+# label: 主题路由设置
+# formSchema:
+# - $formkit: text
+# label: "分类页路由前缀"
+# value: "categories"
+# name: categories
+# validation: required | alphanumeric
+# - $formkit: text
+# label: "标签页路由前缀"
+# value: "tags"
+# name: tags
+# validation: required | alphanumeric
+# - $formkit: text
+# label: "归档页路由前缀"
+# value: "archives"
+# name: archives
+# validation: required | alphanumeric
+# - $formkit: select
+# label: 文章详情页访问规则
+# value: '/archives/{slug}'
+# options:
+# - label: '/archives/{slug}'
+# value: '/archives/{slug}'
+# - label: '/archives/{name}'
+# value: '/archives/{name}'
+# - label: '/?p={name}'
+# value: '/?p={name}'
+# - label: '/?p={slug}'
+# value: '/?p={slug}'
+# - label: '/{year}/{slug}'
+# value: '/{year:\d{4}}/{slug}'
+# - label: '/{year}/{month}/{slug}'
+# value: '/{year:\d{4}}/{month:\d{2}}/{slug}'
+# - label: '/{year}/{month}/{day}/{slug}'
+# value: '/{year:\d{4}}/{month:\d{2}}/{day:\d{2}}/{slug}'
+# name: post
+# validation: required
+# - group: codeInjection
+# label: 代码注入
+# formSchema:
+# - $formkit: code
+# language: html
+# height: 200px
+# label: "全局 head 标签"
+# name: globalHead
+# help: "注入代码到所有页面的 head 标签部分"
+# - $formkit: code
+# language: html
+# height: 200px
+# label: "内容页 head 标签"
+# name: contentHead
+# help: "注入代码到文章页面和自定义页面的 head 标签部分"
+# - $formkit: code
+# language: html
+# height: 200px
+# label: "页脚"
+# name: footer
+# help: "注入代码到所有页面的页脚部分"
--
Gitee
From 21b6baba4ee87f8b1962f0129cc6fce3e8799df2 Mon Sep 17 00:00:00 2001
From: yanhl <949385827@qq.com>
Date: Wed, 13 Dec 2023 11:45:00 +0800
Subject: [PATCH 8/8] fix: the role permission of theme manager
---
.../modules/interface/themes/layouts/ThemeLayout.vue | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/console/console-src/modules/interface/themes/layouts/ThemeLayout.vue b/console/console-src/modules/interface/themes/layouts/ThemeLayout.vue
index fd5c1bc29..5488ae3b8 100644
--- a/console/console-src/modules/interface/themes/layouts/ThemeLayout.vue
+++ b/console/console-src/modules/interface/themes/layouts/ThemeLayout.vue
@@ -207,7 +207,11 @@ onMounted(() => {
{{ $t("core.common.buttons.preview") }}
-
+
--
Gitee