Skip to content

Commit f6a6fbd

Browse files
authored
Merge pull request #50 from g0ngjie/hotfix/v2.2.10
fix: dialog 交互优化
2 parents ef7ed74 + 5f99b8d commit f6a6fbd

File tree

7 files changed

+20
-15
lines changed

7 files changed

+20
-15
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@
2828
<div align="center">
2929
<strong>
3030

31-
[English](README.md) | [简体中文](README.zh.md)
31+
English | [中文](README.zh.md)
3232

3333
</strong>
3434
</div>
3535

3636
## When to use
3737

38-
- When the required data does not meet the desired effect and `Mock` is required
39-
- When we need to verify some **exception scenarios** or **boundary values** during the development or production phase
40-
- When data changes frequently during the development phase, resulting in the interface not working properly
41-
- When 404 appears on the interface
38+
- When actual data fails to meet expected results, mocking data is needed.
39+
- In development or production stages, verification of exceptional scenarios or edge cases is necessary.
40+
- The frequent changes in interface data hinder the development process.
41+
- When a certain interface returns a 404 error.
4242

4343
## Installation
4444

@@ -63,6 +63,7 @@ Video: [https://www.youtube.com/watch?v=F\_\_7LXBqnvQ&list=PLniy0-3-8-V1ZhsmG6\_
6363
![issues_checked](https://github.com/g0ngjie/ajax-proxy/wiki/images/issues_checked.png)
6464
- You can select the `Network` section in Developer Tools and disable caching by checking ☑️
6565
![issues_disabled_cache](https://github.com/g0ngjie/ajax-proxy/wiki/images/issues_disabled_cache.png)
66+
2. [Function-based response explanation](README.func.md)
6667

6768
## Monorepo
6869

@@ -86,7 +87,7 @@ You can test it directly in [Swagger](https://petstore.swagger.io/)
8687

8788
## ⭐ Stargazers
8889

89-
Thank you very much for your support!
90+
Thank you for your support!
9091

9192
[![Stargazers for ajax-proxy](https://reporoster.com/stars/g0ngjie/ajax-proxy)](https://github.com/g0ngjie/ajax-proxy/stargazers)
9293

README.zh.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,18 @@
2828
<div align="center">
2929
<strong>
3030

31-
[English](README.md) | [简体中文](README.zh.md)
31+
[English](README.md) | 中文
3232

3333
</strong>
3434
</div>
3535

3636
## 适用场景
3737

38-
- 当需数据无法满足预期结果,需要 `Mock`
39-
- 当我们在开发或者生产阶段需要验证一些 **异常场景** 或者 **临界值**
40-
- 当开发阶段数据频繁变更,导致页面无法正常联调时
41-
- 当某个接口 404 时
38+
- 当实际数据无法达到预期结果时,需要进行 Mock 数据处理。
39+
- 在开发或生产阶段,需要验证异常场景或临界值。
40+
- 开发阶段数据频繁变更,导致页面无法正常联调时。
41+
- 某个接口返回 404 错误时。
42+
4243
<!-- - 当 ... ... -->
4344

4445
## 安装
@@ -69,6 +70,7 @@
6970
![issues_checked](https://github.com/g0ngjie/ajax-proxy/wiki/images/issues_checked.png)
7071
- 方法 2: 可以在开发者工具中的`网络(network)`里面,通过 ☑️ 禁用缓存
7172
![issues_disabled_cache](https://github.com/g0ngjie/ajax-proxy/wiki/images/issues_disabled_cache.png)
73+
2. [函数方式响应说明](README.func.md)
7274

7375
## Monorepo
7476

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ajax-proxy",
33
"private": true,
44
"description": "Modify your Ajax response to test",
5-
"version": "2.2.9",
5+
"version": "2.2.10",
66
"scripts": {
77
"dev": "pnpm -C ./packages/vue-panels serve",
88
"watch": "run-p watch:lib watch:chrome",

packages/code-editor/packages/useEditor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,15 @@ function customCompletions(target, type = 'interceptor') {
8080
export function getDefaultContent(type = "interceptor") {
8181
let defaultContent = type === 'interceptor' ?
8282
`
83+
/** @see https://github.com/g0ngjie/ajax-proxy/blob/master/README.func.md */
8384
function setup(req, res, next) {
8485
// TODO...
8586
// type Next = { override?: string, status?: string | number }
8687
next({ override: "", status: "" });
8788
}
8889
` :
8990
`
91+
/** @see https://github.com/g0ngjie/ajax-proxy/blob/master/README.func.md */
9092
function setup(
9193
req, /** req: { url: string, method: string }*/
9294
next /**{ url: string, headers?: { [key: string]: string } }*/

packages/shell-chrome/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Ajax Proxy",
4-
"version": "2.2.9",
4+
"version": "2.2.10",
55
"description": "Modify your Ajax response to test",
66
"author": "Gj",
77
"icons": {

packages/vue-panels/src/views/interceptor/modal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:visible.sync="isShow"
66
:before-close="handleClose"
77
:close-on-click-modal="false"
8-
:close-on-press-escape="false"
8+
:close-on-press-escape="true"
99
top="1%"
1010
width="80%"
1111
>

packages/vue-panels/src/views/redirector/modal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:visible.sync="isShow"
66
:before-close="handleClose"
77
:close-on-click-modal="false"
8-
:close-on-press-escape="false"
8+
:close-on-press-escape="true"
99
top="1%"
1010
width="80%"
1111
>

0 commit comments

Comments
 (0)