refactor: 扁平化 practice/alin.hu 目录,去除子文件夹
- 文档移至 alin.hu/ 根目录(visit、vite、vite_vanilla_ts、react_ts、react_todo_list) - 图片按板块前缀重命名(html-console.png、vanilla-result.png、react-result2.png 等) - 更新图片引用、交叉链接与 sidebar_position 排序 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
6ddf800f87
commit
54990b3dfc
16 files changed
+13
-41
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"label": "访问HTML网页的流程",
|
|
||||||
"position": 1,
|
|
||||||
"link": {
|
|
||||||
"type": "generated-index"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File renamed without changes.
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"label": "react的入门",
|
|
||||||
"position": 4,
|
|
||||||
"link": {
|
|
||||||
"type": "generated-index"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
sidebar_position: 2
|
sidebar_position: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
# 如何使用react+ts编写前端todo list
|
# 如何使用react+ts编写前端todo list
|
||||||
@@ -9,7 +9,7 @@ sidebar_position: 2
|
|||||||
1. 已创建react ts工程
|
1. 已创建react ts工程
|
||||||
|
|
||||||
>**提示**
|
>**提示**
|
||||||
若未创建react ts工程,可以参考[使用vite创建react ts工程](/practice/alin.hu/react/react_ts)文档
|
若未创建react ts工程,可以参考[使用vite创建react ts工程](/practice/alin.hu/react_ts)文档
|
||||||
|
|
||||||
## 项目初始化
|
## 项目初始化
|
||||||
打开react ts工程
|
打开react ts工程
|
||||||
@@ -195,4 +195,4 @@ export default App
|
|||||||
```
|
```
|
||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||

|

|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
sidebar_position: 1
|
sidebar_position: 4
|
||||||
---
|
---
|
||||||
|
|
||||||
# 使用vite创建react ts工程
|
# 使用vite创建react ts工程
|
||||||
File renamed without changes.
+4
-4
@@ -28,7 +28,7 @@ cd ~/test
|
|||||||
http-server
|
http-server
|
||||||
```
|
```
|
||||||
启动成功后,命令行会输出以下网址
|
启动成功后,命令行会输出以下网址
|
||||||

|

|
||||||
这时,你可以在浏览器中输入 `http://127.0.0.1:8080` 或者`http://localhost:8080` 来访问你的网页
|
这时,你可以在浏览器中输入 `http://127.0.0.1:8080` 或者`http://localhost:8080` 来访问你的网页
|
||||||
|
|
||||||
## 无痕模式
|
## 无痕模式
|
||||||
@@ -37,7 +37,7 @@ http-server
|
|||||||
Ctrl+Shift+N
|
Ctrl+Shift+N
|
||||||
```
|
```
|
||||||
按下`F12`,进入检查
|
按下`F12`,进入检查
|
||||||

|

|
||||||
|
|
||||||
## 先决条件
|
## 先决条件
|
||||||
- 你需要已经安装并启动 `http-server`。
|
- 你需要已经安装并启动 `http-server`。
|
||||||
@@ -50,14 +50,14 @@ Ctrl+Shift+N
|
|||||||
### 2. 发送 GET 请求
|
### 2. 发送 GET 请求
|
||||||
浏览器会向服务器发送一个路径为 `/` 的 GET 请求。
|
浏览器会向服务器发送一个路径为 `/` 的 GET 请求。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 服务器的工作步骤
|
## 服务器的工作步骤
|
||||||
|
|
||||||
### 1. 查找文件
|
### 1. 查找文件
|
||||||
当服务器接收到浏览器的请求后,就像一位仓库管理员,会在众多文件中查找 `index.html` 文件。
|
当服务器接收到浏览器的请求后,就像一位仓库管理员,会在众多文件中查找 `index.html` 文件。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### 2. 生成 HTTP 响应
|
### 2. 生成 HTTP 响应
|
||||||
服务器找到文件后,会对其进行处理,将其转换为适合在网络中传输的 HTTP 响应,如同把货物包装好以便运输。
|
服务器找到文件后,会对其进行处理,将其转换为适合在网络中传输的 HTTP 响应,如同把货物包装好以便运输。
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
sidebar_position: 1
|
sidebar_position: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
# vite的入门
|
# vite的入门
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"label": "vite的入门",
|
|
||||||
"position": 2,
|
|
||||||
"link": {
|
|
||||||
"type": "generated-index"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
sidebar_position: 1
|
sidebar_position: 3
|
||||||
---
|
---
|
||||||
# 如何使用html+ts编写前端todo list
|
# 如何使用html+ts编写前端todo list
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ sidebar_position: 1
|
|||||||
1. 已创建vanilla ts工程
|
1. 已创建vanilla ts工程
|
||||||
|
|
||||||
>**提示**
|
>**提示**
|
||||||
若未安装vanilla ts工程,可以参考[vite的入门](/practice/alin.hu/vite/)文档
|
若未安装vanilla ts工程,可以参考[vite的入门](/practice/alin.hu/vite)文档
|
||||||
|
|
||||||
## 项目初始化
|
## 项目初始化
|
||||||
打开vanilla ts工程
|
打开vanilla ts工程
|
||||||
@@ -197,4 +197,4 @@ function renderTodoList(list: TodoItem[]) {
|
|||||||
```
|
```
|
||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||

|

|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"label": "vanilla ts工程",
|
|
||||||
"position": 3,
|
|
||||||
"link": {
|
|
||||||
"type": "generated-index"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -6,4 +6,4 @@ sidebar_position: 1
|
|||||||
|
|
||||||
本栏目收录实习生们的实践经历与学习笔记。
|
本栏目收录实习生们的实践经历与学习笔记。
|
||||||
|
|
||||||
- [alin.hu —— 全栈入门指南](./alin.hu/html/visit.md)
|
- [alin.hu —— 全栈入门指南](./alin.hu/visit)
|
||||||
Reference in new issue
Block a user