Skip to content

Commit d80e2fc

Browse files
typescript-axios
1 parent 32fb806 commit d80e2fc

File tree

263 files changed

+53105
-2133
lines changed

Some content is hidden

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

263 files changed

+53105
-2133
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea/
22
.DS_Store
33
node_modules/
4+
dist

18-TypeScript/axios/ts-axios-doc/README.md renamed to 18-TypeScript/axios/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TypeScript 从零实现 axios 文档教材
77
首先 clone 本项目:
88

99
```bash
10-
git clone https://git.imooc.com/coding-330/ts-axios-doc.git
10+
git clone https://github.com/Suremotoo/ts-axios-doc.git
1111
```
1212

1313
进入 `ts-axios-doc` 目录后安装项目依赖:

18-TypeScript/axios/docs/deploy.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const ghpages = require('gh-pages');
2+
3+
ghpages.publish('dist', function (err) {
4+
debugger
5+
});
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
module.exports = {
2+
base: '/test/ts/',
3+
dest: 'dist',
4+
title: 'TypeScript 从零实现 axios',
5+
description: '学习使用 TypeScript 从零实现 axios 库',
6+
themeConfig: {
7+
editLinks: false,
8+
docsDir: 'docs',
9+
nav: [],
10+
sidebar: [
11+
{
12+
title: '初识 TypeScript',
13+
collapsable: false,
14+
children: [
15+
['chapter1/', 'Introduction'],
16+
'chapter1/install',
17+
'chapter1/start'
18+
]
19+
},
20+
{
21+
title: 'TypeScript 常用语法',
22+
collapsable: false,
23+
children: [
24+
'chapter2/type',
25+
'chapter2/declare',
26+
'chapter2/interface',
27+
'chapter2/class',
28+
'chapter2/function',
29+
'chapter2/generic',
30+
'chapter2/inference',
31+
'chapter2/advance'
32+
]
33+
},
34+
{
35+
'title': 'ts-axios 项目初始化',
36+
collapsable: false,
37+
children: [
38+
'chapter3/require',
39+
'chapter3/init',
40+
'chapter3/base'
41+
]
42+
},
43+
{
44+
'title': 'ts-axios 基础功能实现',
45+
collapsable: false,
46+
children: [
47+
'chapter4/url',
48+
'chapter4/data',
49+
'chapter4/header',
50+
'chapter4/response',
51+
'chapter4/response-header',
52+
'chapter4/response-data'
53+
]
54+
},
55+
{
56+
'title': 'ts-axios 异常情况处理',
57+
collapsable: false,
58+
children: [
59+
'chapter5/error',
60+
'chapter5/enhance'
61+
]
62+
},
63+
{
64+
'title': 'ts-axios 接口扩展',
65+
collapsable: false,
66+
children: [
67+
'chapter6/extend',
68+
'chapter6/overload',
69+
'chapter6/generic'
70+
]
71+
},
72+
{
73+
'title': 'ts-axios 拦截器实现',
74+
collapsable: false,
75+
children: [
76+
'chapter7/interceptor'
77+
]
78+
},
79+
{
80+
'title': 'ts-axios 配置化实现',
81+
collapsable: false,
82+
children: [
83+
'chapter8/merge',
84+
'chapter8/transform',
85+
'chapter8/create'
86+
]
87+
},
88+
{
89+
'title': 'ts-axios 取消功能实现',
90+
collapsable: false,
91+
children: [
92+
'chapter9/cancel'
93+
]
94+
},
95+
{
96+
'title': 'ts-axios 更多功能实现',
97+
collapsable: false,
98+
children: [
99+
'chapter10/withCredentials',
100+
'chapter10/xsrf',
101+
'chapter10/upload-download',
102+
'chapter10/auth',
103+
'chapter10/validateStatus',
104+
'chapter10/paramsSerializer',
105+
'chapter10/baseURL',
106+
'chapter10/static'
107+
]
108+
},
109+
{
110+
'title': 'ts-axios 单元测试',
111+
collapsable: false,
112+
children: [
113+
'chapter11/preface',
114+
'chapter11/jest',
115+
'chapter11/helpers',
116+
'chapter11/requests',
117+
'chapter11/headers',
118+
'chapter11/instance',
119+
'chapter11/interceptor',
120+
'chapter11/mergeConfig',
121+
'chapter11/cancel',
122+
'chapter11/more'
123+
]
124+
},
125+
{
126+
'title': 'ts-axios 部署与发布',
127+
collapsable: false,
128+
children: [
129+
'chapter12/build-deploy',
130+
'chapter12/demo'
131+
]
132+
},
133+
{
134+
'title': '课程总结',
135+
collapsable: false,
136+
children: [
137+
'chapter13/summary'
138+
]
139+
}
140+
]
141+
}
142+
}

18-TypeScript/axios/ts-axios-doc/docs/.vuepress/public/interceptor.png renamed to 18-TypeScript/axios/docs/docs/.vuepress/public/interceptor.png

File renamed without changes.

18-TypeScript/axios/ts-axios-doc/docs/.vuepress/public/ts-logo.png renamed to 18-TypeScript/axios/docs/docs/.vuepress/public/ts-logo.png

File renamed without changes.
116 KB
Loading
File renamed without changes.

18-TypeScript/axios/ts-axios-doc/docs/chapter1/README.md renamed to 18-TypeScript/axios/docs/docs/chapter1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 初识 TypeScript
22

3-
TypeScript 作为 JavaScript 语言的超级,它为 JavaScript 添加了可选择的类型标注,大大增强了代码的可读性和可维护性。同时,它提供最新和不断发展的 JavaScript 特性,能让我们建立更健壮的组件。
3+
TypeScript 作为 JavaScript 语言的超集,它为 JavaScript 添加了可选择的类型标注,大大增强了代码的可读性和可维护性。同时,它提供最新和不断发展的 JavaScript 特性,能让我们建立更健壮的组件。
44

55
## TypeScript 的特点
66

File renamed without changes.

0 commit comments

Comments
 (0)