Skip to content

Commit ccfa451

Browse files
Merge pull request #32 from Kele-Bingtang/dev
feat: 🚀 新增国际化功能, icon 组件重构,siteAnalytics 支持多个站点配置
2 parents 61e17cc + 2e106b5 commit ccfa451

File tree

168 files changed

+4612
-3734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+4612
-3734
lines changed

.github/workflows/baiduPush.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ## 利用 GitHub Actions 每天定时给百度推送链接,提高收录率 ##
2+
# name: baiduPush
3+
4+
# # 两种触发方式:一、push代码,二、每天国际标准时间 23 点(北京时间 +8 即早上 7 点)运行
5+
# on:
6+
# push:
7+
# schedule:
8+
# - cron: "0 23 * * *" # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule
9+
10+
# jobs:
11+
# bot:
12+
# runs-on: ubuntu-latest # 运行环境为最新版的Ubuntu
13+
# steps:
14+
# - name: "Checkout codes" # 步骤一,获取仓库代码
15+
# uses: actions/checkout@v1
16+
# - name: "Run baiduPush" # 步骤二,执行 sh 命令文件
17+
# run: pnpm install && pnpm run docs:baiduPush # 运行目录是仓库根目录,run 的是 package.json 的集成命令

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ pnpm plugin:build
4949

5050
## TODO
5151

52-
- 支持无障碍
52+
- 新增组件生态文档
53+
- MD 文档添加/删除自动重启项目
5354
- 归档页添加 commit 图标风格,如:`http://niubin.site/archive.html`

build/helper/external.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const globals = {
77
"node:path": "node:path",
88
"node:fs": "node:fs",
99
fs: "fs",
10+
"@iconify/vue": "IconifyVue",
1011
};
1112

1213
// full-bundle 打包时,忽略 globals 中的依赖

demo/docs-base/.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const teekConfig = defineTeekConfig({
123123
options: {
124124
// twikoo 配置,官网:https://twikoo.js.org/
125125
// envId: "https://twikoo.youngkbt.cn/",
126-
// link: "https://cdn.jsdelivr.net/npm/[email protected]/dist/twikoo.all.min.js",
126+
// link: "https://gcore.jsdelivr.net/npm/[email protected]/dist/twikoo.all.min.js",
127127

128128
// waline 配置,官网:https://waline.js.org/
129129
// serverURL: "https://tk.waline.youngkbt.cn/",

demo/docs-base/02.Markdown 拓展.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ top: true
5151

5252
- name: butcher2000
5353
desc: 即使再小的帆,也能远航
54-
avatar: https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/user/20211029181901.png
54+
avatar: https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/user/20211029181901.png
5555
link: https://blog.csdn.net/weixin_46827107
5656
bgColor: "#CBEAFA"
5757
textColor: "#6854A1"
5858

5959
- name: Evan's blog
6060
desc: 前端的小学生
61-
avatar: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
61+
avatar: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
6262
link: https://xugaoyi.com/
6363
bgColor: "#B9D59C"
6464
textColor: "#3B551F"
@@ -78,24 +78,24 @@ top: true
7878
::: imgCard
7979
8080
```yaml
81-
- img: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200529162253.jpg
81+
- img: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200529162253.jpg
8282
link: https://xugaoyi.com/
8383
name: 标题
8484
desc: 描述内容描述内容描述内容描述内容 # 描述,可选
8585
author: Evan Xu # 作者,可选
86-
avatar: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg # 头像,可选
87-
- img: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200530100256.jpg
86+
avatar: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg # 头像,可选
87+
- img: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200530100256.jpg
8888
link: https://xugaoyi.com/
8989
name: 标题
9090
desc: 描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容
9191
author: Evan Xu
92-
avatar: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
93-
- img: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200530100257.jpg
92+
avatar: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
93+
- img: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200530100257.jpg
9494
link: https://xugaoyi.com/
9595
name: 标题
9696
desc: 描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容
9797
author: Evan Xu
98-
avatar: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
98+
avatar: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
9999
```
100100
101101
:::
@@ -115,24 +115,24 @@ config:
115115
showCode: true # 【是否显示代码块,默认为 false】。导航卡片和分享卡片都支持该配置项
116116

117117
data:
118-
- img: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200529162253.jpg
118+
- img: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200529162253.jpg
119119
link: https://xugaoyi.com/
120120
name: 标题
121121
desc: 描述内容描述内容描述内容描述内容 # 描述,可选
122122
author: Evan Xu # 作者,可选
123-
avatar: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg # 头像,可选
124-
- img: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200530100256.jpg
123+
avatar: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg # 头像,可选
124+
- img: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200530100256.jpg
125125
link: https://xugaoyi.com/
126126
name: 标题
127127
desc: 描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容
128128
author: Evan Xu
129-
avatar: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
130-
- img: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200530100257.jpg
129+
avatar: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
130+
- img: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200530100257.jpg
131131
link: https://xugaoyi.com/
132132
name: 标题
133133
desc: 描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容描述内容
134134
author: Evan Xu
135-
avatar: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
135+
avatar: https://gcore.jsdelivr.net/gh/xugaoyi/image_store/blog/20200103123203.jpg
136136
```
137137
138138
:::

demo/docs-base/32.Spring生态/10.Spring/02.Spring6 - 概述.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Spring 自诞生以来备受青睐,一直被广大开发人员作为 Java 企
2929

3030
自 2004 年 4 月,Spring 1.0 版本正式发布以来,Spring 已经步入到了第 6 个大版本,也就是 Spring 6。本课程采用 Spring 当前最新发布的正式版本 **6.0.2**
3131

32-
![image-20221216223135162](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027231637.png)
32+
![image-20221216223135162](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027231637.png)
3333

3434
## Spring 的狭义和广义
3535

@@ -73,9 +73,9 @@ Spring 有两个最核心模块: IOC 和 AOP。
7373

7474
官网地址:`https://Spring.io/`
7575

76-
![image-20221207142746771](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027231641.png)
76+
![image-20221207142746771](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027231641.png)
7777

78-
![image-2097896352](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027231642.png)
78+
![image-2097896352](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027231642.png)
7979

8080
上图中包含了 Spring 框架的所有模块,这些模块可以满足一切企业级应用开发的需求,在开发过程中可以根据需求有选择性地使用所需要的模块。下面分别对这些模块的作用进行简单介绍。
8181

@@ -124,4 +124,4 @@ Spring core 提供了 IOC,DI,Bean 配置装载创建的核心实现。核心
124124

125125
**Spring6 要求 JDK 最低版本是 JDK17**
126126

127-
![image-20221201103138194](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027231645.png)
127+
![image-20221201103138194](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027231645.png)

demo/docs-base/32.Spring生态/10.Spring/04.Spring6 - 入门.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ coverImg:
5050

5151
**查看依赖:**
5252

53-
![image-20221201105416558](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232341.png)
53+
![image-20221201105416558](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232341.png)
5454

5555
### 创建 Java 类
5656

@@ -69,7 +69,7 @@ public class HelloWorld {
6969

7070
在 resources 目录创建一个 Spring 配置文件 Beans.xml(配置文件名称可随意命名,如:Springs.xm)
7171

72-
![img007](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232343.png)
72+
![img007](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232343.png)
7373

7474
```xml
7575
<?xml version="1.0" encoding="UTF-8"?>
@@ -111,7 +111,7 @@ public class HelloWorldTest {
111111

112112
### 运行测试程序
113113

114-
![image-20221031172354535](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232407.png)
114+
![image-20221031172354535](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232407.png)
115115

116116
## 程序分析
117117

@@ -136,7 +136,7 @@ public class HelloWorld {
136136

137137
执行结果:
138138

139-
![image-20221031181430720](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232409.png)
139+
![image-20221031181430720](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232409.png)
140140

141141
测试得知:创建对象时确实调用了无参数构造方法。
142142

@@ -262,7 +262,7 @@ Spring 容器加载到 Bean 类时 , 会把这个类的描述信息, 以包名
262262

263263
运行原测试程序
264264

265-
![image-20221031214305224](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232824.png)
265+
![image-20221031214305224](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232824.png)
266266

267267
运行原测试程序,多了 Spring 打印日志
268268

@@ -285,4 +285,4 @@ public class HelloWorldTest {
285285

286286
控制台:
287287

288-
![image-20221031214547501](https://cdn.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232839.png)
288+
![image-20221031214547501](https://gcore.jsdelivr.net/gh/Kele-Bingtang/static/img/Spring6/20231027232839.png)

0 commit comments

Comments
 (0)