chore: 全量图片替换为 WebP 格式

This commit is contained in:
ZiuChen 2025-08-02 00:17:17 +08:00
parent 14435f3e6a
commit 5d7b8e8d9e
96 changed files with 40 additions and 40 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -153,7 +153,7 @@ console.log(classof({})) // Object
`Object.prototype.toString()`被调用时,会进行如下步骤:
![Object.prototype.toString()](./assets/Object.prototype.toString.png)
![Object.prototype.toString()](./assets/Object.prototype.toString.webp)
在ES6里之前的内部属性 `[[Class]]` 不再使用,取而代之的是一系列的 internal slot

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -1461,7 +1461,7 @@ FC全称是 Formatting Context 译作格式化上下文。元素在标准流
}
```
![](CSS.assets/BFC-1.jpg)
![](CSS.assets/BFC-1.webp)
我们为两个元素分别设置垂直方向的`margin`此时BFC的规则就被触发了**在同一个BFC中**,垂直方向的`margin`会发生折叠,取二者较大的值,真正的边距变成了`20px`,而不是臆想中的`30px`
@ -1478,7 +1478,7 @@ FC全称是 Formatting Context 译作格式化上下文。元素在标准流
}
```
![](CSS.assets/BFC-2.jpg)
![](CSS.assets/BFC-2.webp)
这两个盒子位于同一个BFC之中进行布局`<html>`标签形成的BFC
@ -1550,7 +1550,7 @@ FC全称是 Formatting Context 译作格式化上下文。元素在标准流
}
```
![](CSS.assets/BFC-3.jpg)
![](CSS.assets/BFC-3.webp)
我们不能简单的从现象归纳本质:*BFC让浮动元素向父级元素汇报了高度所以解决了高度塌陷的问题*
@ -1593,7 +1593,7 @@ FC全称是 Formatting Context 译作格式化上下文。元素在标准流
`.container`设置`overflow: auto;`,让`.container`创建一个新的BFC这样之前的高度塌陷问题也能够被解决
![](CSS.assets/BFC-4.jpg)
![](CSS.assets/BFC-4.webp)
官方文档中是这样解释的:

View File

@ -35,7 +35,7 @@ Node.js是一个基于**V8 JavaScript引擎**的**JavaScript运行时环境**
- JavaScript代码 -> V8 -> Node.js Bindings -> LibUV
- LibUV是使用**C语言编写的库**,提供了**事件循环、文件系统读写、网络IO、线程池**等等内容
![The Node.js System](Front-end-Engineering.assets/the-node.js-system.jpeg)
![The Node.js System](Front-end-Engineering.assets/the-node.js-system.webp)
### Node.js的应用场景
@ -635,7 +635,7 @@ ESModule的解析过程可以分为三个阶段
- 运行代码,计算值,并且将值填充到内存地址中
- 将导入导出的**值**赋给对应的变量`name = 'Ziu'`
![ESModule解析过程](Front-end-Engineering.assets/esmodule-phases.png)
![ESModule解析过程](Front-end-Engineering.assets/esmodule-phases.webp)
文章推荐:[ES modules: A cartoon deep-dive](https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/)
@ -1001,7 +1001,7 @@ PNPMperformant npm有以下优点
- 符号链接 是一类特殊的文件
- 其包含有一条以绝对路径或者相对路径的形式**指向其他文件或者目录的引用**
![hard-link and soft-link](Front-end-Engineering.assets/hard-link-and-soft-link.jpg)
![hard-link and soft-link](Front-end-Engineering.assets/hard-link-and-soft-link.webp)
操作系统使用不同的**文件系统****对真实的硬盘读写操作做了一层抽象**,借由文件系统,我们得以方便地操作和访问文件的真实数据
@ -1055,7 +1055,7 @@ PNPMperformant npm有以下优点
- 在`node_modules/.pnpm`中,包含了附加版本信息的真实文件(硬链接到硬盘数据的文件)
- 所有间接依赖,都通过软链接的方式,链接到被铺平在`.pnpm`文件夹中对应版本的硬链接文件上
![how pnpm works](Front-end-Engineering.assets/how-pnpm-works.jpg)
![how pnpm works](Front-end-Engineering.assets/how-pnpm-works.webp)
#### 常用命令

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1001 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1453,9 +1453,9 @@ inherit(Student, Person)
- 遇到`<script>`标签则向服务器请求下载`.js`文件
<img src="./JavaScriptEnhanced.assets/image-20221118222207332-16687813334481.png" alt="浏览器解析HTML过程" style="zoom:80%;" />
<img src="./JavaScriptEnhanced.assets/image-20221118222207332-16687813334481.webp" alt="浏览器解析HTML过程" style="zoom:80%;" />
<img src="./JavaScriptEnhanced.assets/image-20221118222311200-16687813941873.png" alt="浏览器是和如何工作的" style="zoom:80%;" />
<img src="./JavaScriptEnhanced.assets/image-20221118222311200-16687813941873.webp" alt="浏览器是和如何工作的" style="zoom:80%;" />
[How browsers work](https://web.dev/howbrowserswork/)
@ -1580,7 +1580,7 @@ inherit(Student, Person)
在开发者工具的图层工具中可以看到,两个元素`.box1``.box2`都是在一个层Document下渲染的
![image-20221122103111654](./JavaScriptEnhanced.assets/image-20221122103111654.png)
![image-20221122103111654](./JavaScriptEnhanced.assets/image-20221122103111654.webp)
##### 案例2分层渲染
@ -1595,7 +1595,7 @@ inherit(Student, Person)
}
```
![image-20221122103256116](./JavaScriptEnhanced.assets/image-20221122103256116.png)
![image-20221122103256116](./JavaScriptEnhanced.assets/image-20221122103256116.webp)
##### 案例3transform 3D
@ -1613,7 +1613,7 @@ inherit(Student, Person)
}
```
![image-20221122103715428](./JavaScriptEnhanced.assets/image-20221122103715428.png)
![image-20221122103715428](./JavaScriptEnhanced.assets/image-20221122103715428.webp)
##### 案例4transition+transform
@ -1731,7 +1731,7 @@ JavaScript代码下载好后是如何一步步被执行的
### JavaScript V8引擎
![image-20221125090752249](./JavaScriptEnhanced.assets/image-20221125090752249.png)
![image-20221125090752249](./JavaScriptEnhanced.assets/image-20221125090752249.webp)
JS源代码经过解析生成抽象语法树词法分析器、语法分析器经过ignition转为字节码二进制、跨平台即可由CPU执行
@ -1751,7 +1751,7 @@ JS源代码经过解析生成抽象语法树词法分析器、语法分析
- 但是机器码实际上也会被还原为ByteCode这是因为如果后续执行函数的过程中类型发生了变化比如sum函数原来执行的是number类型后来执行变成了string类型之前优化的机器码并不能正确的处理运算就会逆向的转换成字节码
- 官方文档https://v8.dev/blog/turbofan-jit
![image-20221125094148365](./JavaScriptEnhanced.assets/image-20221125094148365.png)
![image-20221125094148365](./JavaScriptEnhanced.assets/image-20221125094148365.webp)
Blink 获取到源码 => 转为Stream => Scanner扫描器

Binary file not shown.

Before

Width:  |  Height:  |  Size: 696 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -1108,7 +1108,7 @@ export default function App() {
我们需要在组件的不同生命周期中执行不同的操作,比如添加解除监听器、发起网络请求等
![React Life Cycle: https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/](./React.assets/react-life-cycle.png)
![React Life Cycle: https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/](./React.assets/react-life-cycle.webp)
结合上图,解读一下组件的完整生命周期:
@ -1979,7 +1979,7 @@ export default class Player extends Component {
从React的源码可以看到setState方法是从Component集继承而来的
![setState in source code of React](./React.assets/prototype-setState.png)
![setState in source code of React](./React.assets/prototype-setState.webp)
### setState的异步更新

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 695 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 536 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 711 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 501 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 494 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -29,17 +29,17 @@ aside: false
sudo codesign --force --deep --sign -
```
![](../assets/sign-mac.png)
![](../assets/sign-mac.webp)
然后将此目录中的`clipboard-event-handler-mac`文件拖入终端执行命令
![](../assets/sign-mac-2.png)
![](../assets/sign-mac-2.webp)
**2. 授权**
左上角🍎 / 系统偏好设置 / 安全性与隐私 / 通用 / 点击允许
![](../assets/mac-chmod.jpg)
![](../assets/mac-chmod.webp)
## 如何创造自己的功能按钮
@ -98,8 +98,8 @@ sudo codesign --force --deep --sign -
需要注意的是,因为自定义功能按钮实现的是**携带数据跳转不同插件**,所以`redirect`后的内容并不应该是普通关键字(普通关键字仅能作为插件入口,而不能携带数据),而应该是`文本`/`图片`/`文件或文件夹`
![](../assets/gi4.png)
![](../assets/gi5.png)
![](../assets/gi4.webp)
![](../assets/gi5.webp)
- `id`: `String` 全局唯一 必须以`custom`开头 建议以时间戳为后缀
- `title`: `String` 鼠标悬停时展示的文本
@ -120,7 +120,7 @@ sudo codesign --force --deep --sign -
- 主面板下拉菜单中支持主动上传/主动下载数据;
- 主面板用户信息左侧的同步的状态指示灯用以显示当前的同步状态,点击状态指示灯可以主动下载/上传数据;
![WebDAV](../assets/webdav.png)
![WebDAV](../assets/webdav.webp)
同时,每次本地剪贴板内容发生变化,都会将最新数据同步到同步到服务器。

View File

@ -6,12 +6,12 @@ aside: false
---
<script setup>
import url from './assets/logo.png'
import img1 from './assets/img_1.png'
import img2 from './assets/img_2.png'
import img3 from './assets/img_3.png'
import img4 from './assets/img_4.png'
import img5 from './assets/img_5.png'
import url from './assets/logo.webp'
import img1 from './assets/img_1.webp'
import img2 from './assets/img_2.webp'
import img3 from './assets/img_3.webp'
import img4 from './assets/img_4.webp'
import img5 from './assets/img_5.webp'
const titleInfo = {
subTitle: '✨ 更强大的剪贴板管理工具。',
logo: url,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -6,11 +6,11 @@ aside: false
---
<script setup>
import url from './assets/logo.png'
import img1 from './assets/img1.png'
import img2 from './assets/img2.png'
import img3 from './assets/img3.png'
import img4 from './assets/img4.png'
import url from './assets/logo.webp'
import img1 from './assets/img1.webp'
import img2 from './assets/img2.webp'
import img3 from './assets/img3.webp'
import img4 from './assets/img4.webp'
const titleInfo = {
subTitle: '✨ JavaScript运行器 支持多种运行环境 快速验证代码逻辑',
logo: url,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -6,10 +6,10 @@ aside: false
---
<script setup>
import url from './assets/logo.png'
import img1 from './assets/img1.png'
import img2 from './assets/img2.png'
import img3 from './assets/img3.png'
import url from './assets/logo.webp'
import img1 from './assets/img1.webp'
import img2 from './assets/img2.webp'
import img3 from './assets/img3.webp'
const titleInfo = {
subTitle: '✨ 强大的Markdown编辑器',
logo: url,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

BIN
docs/public/logo.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 814 KiB

BIN
docs/self/img/reward/1.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

BIN
docs/self/img/reward/2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -4,7 +4,7 @@ editLink: false
# 个人介绍
![logo](/logo.png)
![logo](/logo.webp)
北京交通大学BeijingJiaoTong University电子信息工程学院本科在读