Skip to content

Commit c4da582

Browse files
committed
chore: 更正UUID,同步英文README
1 parent 19e58d9 commit c4da582

9 files changed

Lines changed: 19 additions & 43 deletions

File tree

README.en.md

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,35 @@ A lightweight, embeddable JavaScript code editor built on [Ace Editor](https://a
66

77
---
88

9-
![alt text](images/home.png)
9+
![img1](image/README/img1.png)
1010

1111
## API Auto-Generated Test Cases
1212

13-
![alt text](images/example.gif)
13+
![img2](image/README/img2.gif)
1414

1515
## API Auto-Distinguish PCB and Schematic
1616

17-
![alt text](images/分区.png)
17+
![img3](image/README/img3.png)
1818

1919
## Support Custom Completion & Edit Completion Parameters
2020

21-
![alt text](images/补全.png)
21+
![img4](image/README/img4.png)
22+
23+
## Three Built-in Styles and Custom Primitives
24+
25+
![img5](image/README/img5.gif)
2226

2327
## HTML Online Preview with Path References
2428

25-
![alt text](images/预览.png)
29+
![img6](image/README/img6.png)
2630

2731
## A Brand New Workflow-Based Plugin Development Approach
2832

2933
![alt text](images/工作流.png)
3034

3135
## Features
3236

33-
- **Light and dark dual themes**: Eye-friendly dark style, consistent with developer habits
37+
- **Built-in themes and customization**: Primitive styles support customization, all colors can be switched
3438
- **JavaScript syntax highlighting & intelligent autocompletion**
3539
- **Top scrollable function sidebar** (reserved for future extensions)
3640
- **Custom dictionary support**: Internal API can be injected for intelligent hints
@@ -73,34 +77,6 @@ editor.completers.push({
7377

7478
Supports dynamic dictionary updates, suitable for internal SDKs or platform APIs.
7579

76-
## Development and Extension
77-
78-
### Adding New Function Buttons
79-
80-
Dynamically insert buttons into the left sidebar (you can run the following code in the editor to test):
81-
82-
```js
83-
const li = document.createElement('li');
84-
const btn = Object.assign(document.createElement('button'), {
85-
textContent: 'Save',
86-
style: 'width:80px;height:36px;background:#272822;color:white;border:1px solid #666;border-radius:4px;font-size:14px;cursor:pointer;',
87-
});
88-
btn.onclick = () => eda.sys_Message.showToastMessage('Pretend to save the code', 'info', 1);
89-
document.querySelector('#sidebar ul').appendChild(li).appendChild(btn);
90-
```
91-
92-
### Extension Suggestions
93-
94-
- Add **Clear**, **Format**, **Export** buttons
95-
- Integrate `localStorage` for automatic code saving
96-
- Replace `eval()` with a sandboxed execution environment (e.g., `Function` constructor)
97-
98-
## Notes
99-
100-
- **`eval()` Security Risk**: Only use in trusted environments (e.g., internal EDA tools)
101-
- **Worker Disabled**: Avoids CSP restriction issues in EDA iframes
102-
- **Path-Sensitive**: Resource paths must be `/iframe/script/Ace_Editor/xxx.js` (case-sensitive)
103-
10480
## Open Source Dependencies
10581

10682
### Runtime Dependencies (distributed with the extension)
@@ -141,8 +117,8 @@ JSZip uses a dual license `(MIT OR GPL-3.0-or-later)`, and this project chooses
141117

142118
## License
143119

144-
This project is released under the [Apache-2.0](LICENSE) license.
120+
This project is released under the [Apache-2.0](LICENSE) license.
145121
The UI and integration code may be freely used for internal development.
146122

147-
Made with ❤️ for EDA developers
123+
Made with ❤️ for EDA developers
148124
Happy Coding!

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66

77
---
88

9-
![1780324978498](image/README/1780324978498.png)
9+
![img1](image/README/img1.png)
1010

1111
## API自动生成测试用例
1212

13-
![1780325107435](image/README/1780325107435.gif)
13+
![img2](image/README/img2.gif)
1414

1515
## API自动区分PCB和原理图
1616

17-
![1780325154326](image/README/1780325154326.png)
17+
![img3](image/README/img3.png)
1818

1919
## 支持自定义补全 编辑补全参数
2020

21-
![1780325519213](image/README/1780325519213.png)
21+
![img4](image/README/img4.png)
2222

2323
## 三套内置风格与自定义图元
2424

25-
![1780326017580](image/README/1780326017580.gif)
25+
![img5](image/README/img5.gif)
2626

2727
## 带路径引用的html在线预览
2828

29-
![1780325599400](image/README/1780325599400.png)
29+
![img6](image/README/img6.png)
3030

3131
## 一种全新的基于工作流的插件开发方式
3232

extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eext-api-debug-tool",
3-
"uuid": "aca98ae04b7142599ab107e34acc8e5e",
3+
"uuid": "7ca98ae04b7142599ab107e34acc8e5e",
44
"displayName": "智能API调试工具",
55
"description": "支持中文联想的EDA扩展API脚本代码编辑器,支持代码高亮、自动补全、函数提示,AI注释,AI报错分析等功能。",
66
"version": "2.6.2",

0 commit comments

Comments
 (0)