Skip to content

Commit

Permalink
[feat] 更新 image cdn link
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlxq committed Aug 27, 2024
1 parent 7f07a75 commit 6491820
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions docs/blog/more/GitHub-Actions实践.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,18 @@ jobs:
新出现一个页面,需要新创建一个 路径文件:`.github/workflows/<your_ci_name>.yml`,在模版文件中做对应修改,右侧可以搜索一些常用的库,直接根据提示将模版代码复制到文件中即可。

![创建新的workflow](https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/blog/create_workflow.png)
![配置.yml文件,提交](https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/blog/yml_config.png)
![创建新的workflow](https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/blog/create_workflow.png)
![配置.yml文件,提交](https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/blog/yml_config.png)

升级为 rspress 框架后,构建发布配置也有所变化,![rspress 发布配置](https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/blog/rspress-deploy.png)
升级为 rspress 框架后,构建发布配置也有所变化,![rspress 发布配置](https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/blog/rspress-deploy.png)
参考官网文档,直接复制yml代码,使用即可

---

ACCESS_TOKEN 需要去用户的 `Settings => Developer Settings => Personal access tokens` 创建,配置权限有限的 token,注意保存 token,仅出现一次。[有效期一年]

配置中出现的 `ACCESS_TOKEN` 则需要在 Settings 中配置,如下:
![ACCESS_TOKEN 设置](https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/blog/ACCESS_TOKEN.png)
![ACCESS_TOKEN 设置](https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/blog/ACCESS_TOKEN.png)

整体配置结束后,将 vuepress 项目推送到 GitHub 仓库地址 master 分支,GitHub Actions 会自动运行,将构建产物发布到网页。

Expand All @@ -135,7 +135,7 @@ jobs:
```

Settings 中配置信息:分支 = TARGET_BRANCH、设置 domain,启用 HTTPS
![自定义域名访问](https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/blog/CNAME_config.png)
![自定义域名访问](https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/blog/CNAME_config.png)

更多内容详见 [Actions 文档](https://docs.github.com/en/rest/reference/actions)

Expand Down
4 changes: 2 additions & 2 deletions docs/frame/react/1-React_16为什么要改变生命周期.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ componentWillUnmount()

### 进化的生命周期方法:React 16 生命周期工作流

![React 16.4+ 生命周期](https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/other/React16_lifecycle.png)
![React 16.4+ 生命周期](https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/other/React16_lifecycle.png)

React 16.3- 版本生命周期,getDerivedStateFromProps 由 constructor 和 new props 这两个部分触发。

Expand Down Expand Up @@ -185,7 +185,7 @@ React 16 之前,每一次触发组件的更新,都会构建一个新的虚

Fiber 架构的重要特征就是 可以被打断的异步渲染模式。

![React 16 左侧阶段划分](https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/other/React16_lifecycle.png)
![React 16 左侧阶段划分](https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/other/React16_lifecycle.png)

- render 阶段: 纯净且没有副作用,可能会被 React 暂停、终止或重新启动
- pre-commit 阶段:可以读取 DOM
Expand Down
2 changes: 1 addition & 1 deletion docs/frame/react_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Fiber 及相关源码处理 详见文章:[Fiber详解](https://blog.ahulib.com

### 生命周期变更

![React 16.4 以上生命周期](https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/interview/react_lifestyle.png)
![React 16.4 以上生命周期](https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/interview/react_lifestyle.png)

#### 挂载阶段

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ hero:
text: GitHub
link: https://github.com/maxlxq/maxlxq.github.io
image:
src: https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/logo.jpg
src: https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/logo.jpg
alt: 前端周报 Logo
features:
- title: A Blog
Expand Down
2 changes: 1 addition & 1 deletion docs/interview/js/JavaScript-闭包.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ foo 函数的定义期,函数 bar 的 [[scope]] 将会包含全局 [[scope]]
bar[[scope]] = [fooContext, globalContext]
```

![控制台的预期输出](https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/base/foo_bar_dir.png)
![控制台的预期输出](https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/base/foo_bar_dir.png)

可以看到:

Expand Down
6 changes: 3 additions & 3 deletions rspress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export default defineConfig({
base: '/',
title: '前端周报',
description: '前端相关技能学习记录分享',
icon: 'https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/D.png',
icon: 'https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/D.png',
logo: {
light: 'https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/D.png',
dark: 'https://ahulib-1251891330.cos.ap-hongkong.myqcloud.com/image/D.png',
light: 'https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/D.png',
dark: 'https://blog-1251891330.cos.ap-shanghai.myqcloud.com/image/D.png',
},
themeConfig: {
socialLinks: [
Expand Down

0 comments on commit 6491820

Please sign in to comment.