Skip to content

Commit

Permalink
egg
Browse files Browse the repository at this point in the history
  • Loading branch information
sindorei committed Nov 15, 2024
1 parent 3b6392f commit ad6f9cd
Show file tree
Hide file tree
Showing 10 changed files with 928 additions and 150 deletions.
7 changes: 5 additions & 2 deletions docs/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ export const sidebar: SidebarConfig = {
]
}
],
'/nodejs/': [
'/nodejs/egg/': [
{
text: 'eggjs',
link: '/nodejs/eggjs.html'
children: [
'/nodejs/egg/curl.md',
'/nodejs/egg/singleton.md',
],
},
],
'/nodejs/deep_into_nodejs/': [
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ home: true
* [methodology](./frontend/css/methodology/)

# nodejs
- [eggjs](./nodejs/eggjs.md)
- [eggjs](./nodejs/egg/)
- [深入剖析 Node.js 底层原理](./nodejs/deep_into_nodejs/index.md)


Expand Down
2 changes: 1 addition & 1 deletion docs/frontend/engineering/webpack/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@

# 高版本nodejs,低版本webpack问题
- nodejs17开始升级了openssl,webpack低版本会报错,解决方式:
1. 升级webpack(4.47.0+) 及 相应loader(最终解决方式)
1. 升级webpack 及 相应loader(最终解决方式)
2. 降级nodejs版本,如使用nodejs16版本最新的长期支持版本(临时方案)
3. nodejs启动添加`--openssl-legacy-provider` 选项,或添加环境变量`NODE_OPTIONS=--openssl-legacy-provider`(临时方案)
3 changes: 3 additions & 0 deletions docs/nodejs/egg/curl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# curl
- ctx上的curl最终调用的是 `HttpClient` (egg/lib/core/httpclient.js) 上的 `request` 方法
- `HttpClient` 继承的是 `urllib.HttpClient2`, `agent` 传了 [agentkeepalive](https://github.com/node-modules/agentkeepalive) ,非nodejs 内置 `http` 模块的 `Agent`
Empty file added docs/nodejs/egg/index.md
Empty file.
File renamed without changes.
142 changes: 0 additions & 142 deletions docs/pl/rust/common_concepts.md

This file was deleted.

3 changes: 3 additions & 0 deletions docs/pl/rust/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 相关资料
- [The Rust Programming Language](https://doc.rust-lang.org/book/)
- [Rust 程序设计语言 中文版](https://rustwiki.org/zh-CN/book/)
4 changes: 0 additions & 4 deletions docs/pl/rust/ownership.md

This file was deleted.

Loading

0 comments on commit ad6f9cd

Please sign in to comment.