From 620354b77a426b5501c60c1e84deefad5e598543 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= <1431128779@qq.com>
Date: Sun, 2 Jun 2024 19:38:27 +0800
Subject: [PATCH] =?UTF-8?q?update:=20=E4=BC=98=E5=8C=96=E5=8F=8B=E9=93=BE?=
=?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 1 +
config/plugins.config.js | 24 +
config/plugins.config.template.js | 24 +
main.js | 5 +
pagesA/friend-links/friend-links.vue | 838 +++++++++++++--------------
pagesA/submit-link/submit-link.vue | 479 +++++++--------
6 files changed, 718 insertions(+), 653 deletions(-)
create mode 100644 config/plugins.config.js
create mode 100644 config/plugins.config.template.js
diff --git a/.gitignore b/.gitignore
index 15299aa..30a66b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ config/halo.config.js
config/ad.config.js
config/love.config.js
config/token.config.js
+config/plugins.config.js
diff --git a/config/plugins.config.js b/config/plugins.config.js
new file mode 100644
index 0000000..b9ff77d
--- /dev/null
+++ b/config/plugins.config.js
@@ -0,0 +1,24 @@
+/** 插件相关配置 */
+const PluginsConfig = Object.freeze({
+ // 友链提交配置
+ autoSubmitLink: {
+ // 可以考虑配置一个插件id,检测是否开启了友链提交插件
+ pluginId:"",
+ // 是否开启(可能不启用插件)
+ enabled: false,
+ // 我的友链信息
+ blogDetail: {
+ // 博客名称
+ name: "uni-halo 博客",
+ // 博客地址
+ url: "https://uni-halo.925i.cn/",
+ // 博客logo
+ logo: "https://uni-halo.925i.cn/logo.png",
+ // 博客简介
+ description: "一个基于Halo2.0 API 的博客小程序开源项目。",
+ }
+ }
+})
+
+
+export default PluginsConfig;
diff --git a/config/plugins.config.template.js b/config/plugins.config.template.js
new file mode 100644
index 0000000..49968fe
--- /dev/null
+++ b/config/plugins.config.template.js
@@ -0,0 +1,24 @@
+/** 插件相关配置 */
+const PluginsConfig = Object.freeze({
+ // 友链提交配置
+ autoSubmitLink: {
+ // 可以考虑配置一个插件id,检测是否开启了友链提交插件(暂未使用)
+ pluginId: "",
+ // 是否开启(可能后台没有安装或未不启用插件)
+ enabled: true,
+ // 我的友链信息
+ blogDetail: {
+ // 博客名称
+ name: "",
+ // 博客地址
+ url: "",
+ // 博客logo
+ logo: "",
+ // 博客简介
+ description: "",
+ }
+ }
+})
+
+
+export default PluginsConfig;
\ No newline at end of file
diff --git a/main.js b/main.js
index 40ecba3..73f95b4 100644
--- a/main.js
+++ b/main.js
@@ -69,6 +69,11 @@ Vue.prototype.$baseApiUrl = HaloTokenConfig.BASE_API
import HaloAdConfig from '@/config/ad.config.js'
Vue.prototype.$haloAdConfig = HaloAdConfig
+
+import HaloPluginsConfig from '@/config/plugins.config.js'
+Vue.prototype.$haloPluginsConfig = HaloPluginsConfig
+
+
// 由于微信小程序的运行机制问题,需声明如下一行,H5和APP非必填
Vue.prototype._i18n = i18n;
diff --git a/pagesA/friend-links/friend-links.vue b/pagesA/friend-links/friend-links.vue
index 4a85f17..1a7c5c3 100644
--- a/pagesA/friend-links/friend-links.vue
+++ b/pagesA/friend-links/friend-links.vue
@@ -1,461 +1,461 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
- {{ link.spec.groupName || '暂未分组' }}
-
- {{ link.spec.displayName }}
-
-
- 站点地址:{{ link.spec.url }}
-
-
-
- 博客简介:{{ link.spec.description || '这个博主很懒,没写简介~' }}
-
-
-
-
-
-
-
- {{ link.spec.displayName }}
- {{ link.spec.description }}
-
-
-
- {{ link.spec.url }}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ link.spec.groupName || '暂未分组' }}
+
+ {{ link.spec.displayName }}
+
+
+ 站点地址:{{ link.spec.url }}
+
+
+
+ 博客简介:{{ link.spec.description || '这个博主很懒,没写简介~' }}
+
+
+
+
+
+
+
+ {{ link.spec.displayName }}
+ {{ link.spec.description }}
+
+
+
+ {{ link.spec.url }}
+
+
+
+
+
+
-
-
-
-
- {{ team.title }}
-
-
-
-
+
+
+ {{ team.title }}
+
+
+
+
-
-
-
-
-
- {{ link.spec.displayName }}
-
-
-
- ID:{{ link.metadata.name }}
-
-
- {{ link.spec.groupName || '暂未分组' }}
-
-
-
- 博客简介:{{ link.spec.description || '这个博主很懒,没写简介~' }}
-
-
-
-
-
-
-
- {{ link.spec.displayName }}
-
- {{ link.spec.description }}
-
-
-
- {{ link.spec.url }}
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ link.spec.displayName }}
+
+
+
+ ID:{{ link.metadata.name }}
+
+
+ {{ link.spec.groupName || '暂未分组' }}
+
+
+
+ 博客简介:{{ link.spec.description || '这个博主很懒,没写简介~' }}
+
+
+
+
+
+
+
+ {{ link.spec.displayName }}
+
+ {{ link.spec.description }}
+
+
+
+ {{ link.spec.url }}
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{ detail.data.name }}
+
+
+ ID:{{ detail.data.id }}
+
+
+ {{ detail.data.team || '暂未分组' }}
+
+
+
+ {{ detail.data.url }}
+
+
+
+
-
-
-
-
-
-
-
-
- {{ detail.data.name }}
-
-
- ID:{{ detail.data.id }}
-
-
- {{ detail.data.team || '暂未分组' }}
-
-
-
- {{ detail.data.url }}
-
-
-
-
+
+ 博客简介:{{ detail.data.description || '这个博主很懒,没写简介~' }}
+
-
- 博客简介:{{ detail.data.description || '这个博主很懒,没写简介~' }}
-
+
+
+
+
+
+
-
-
-
-
-
-
-
- {{ loadMoreText }}
-
-
+ {{ loadMoreText }}
+
+
\ No newline at end of file
+.preview-site {
+ width: 100%;
+ height: 300rpx;
+}
+
diff --git a/pagesA/submit-link/submit-link.vue b/pagesA/submit-link/submit-link.vue
index e15c3ab..7640871 100644
--- a/pagesA/submit-link/submit-link.vue
+++ b/pagesA/submit-link/submit-link.vue
@@ -1,252 +1,263 @@
-
-
-
-
-
- 友链信息提交
-
-
-
-
-
-
-
-
-
-
-
- (贵站友情链接页面地址,即包含本站链接也页面)
-
-
-
-
-
-
-
-
- (用于抓取文章)
-
-
-
-
- 提交数据
- 友链申请
-
-
-
-
+
+
+
+
+
+
+
+ 友链信息提交
+
+
+
+
+
+
+
+
+
+
+
+ (贵站友情链接页面地址,即包含本站链接也页面)
+
+
+
+
+
+
+
+
+ (用于抓取文章)
+
+
+
+
+ 提交数据
+ 友链申请
+
+
+
+
-
-
-
-
-
-
-
- {{ blogDetail.name }}
-
- {{ blogDetail.description }}
-
-
- 点击复制友链交换信息
-
-
-
-
+
+
+
+
+
+
+
+ {{ blogDetail.name }}
+
+ {{ blogDetail.description }}
+
+
+
-
- {{ blogDetail.content}}
-
-
-
-
-
-
-
-
+
+ {{ calcBlogContent }}
+
+
+
+
+
+
+
+ 复制友链交换信息
+ 关闭
+
+
+
+
\ No newline at end of file
+pre {
+ //方法一:保留空白符序列,但是正常地进行换行。
+ white-space: pre-wrap;
+ //方法二:添加横向滚动条
+ overflow-x: auto;
+}
+