|
16 | 16 | <li><button id="delete-btn">删除</button></li> |
17 | 17 | <li><button id="setting-btn">切换主题</button></li> |
18 | 18 | <li><button id="SaveinLeft-btn">保存到列表</button></li> |
| 19 | + <li><button id="Ext-btn">插件管理</button></li> |
19 | 20 | <li><button id="ai-btn">AI辅助</button></li> |
20 | 21 | <li><button id="example-btn">案例</button></li> |
21 | 22 | <li><button id="about-btn">关于</button></li> |
|
44 | 45 | //初始化Ace 编辑器 |
45 | 46 | const editor = ace.edit('editor'); |
46 | 47 | ACE_Init(editor); |
47 | | - |
| 48 | + |
48 | 49 | // 注册放大缩小代码支持 |
49 | 50 | let currentFontSize = 14; |
50 | 51 | ACE_ChangeCodeSize(editor, currentFontSize, showToast); |
|
56 | 57 | const light_theme = document.getElementById('theme-light'); |
57 | 58 | const dark_theme = document.getElementById('theme-dark'); |
58 | 59 | GetTheme(editor, light_theme, dark_theme); |
| 60 | + |
| 61 | + //扫描插件并执行 |
| 62 | + ExtStore_LoadAndRunAllPlugins(); |
59 | 63 |
|
60 | 64 | //加载按钮到左侧 |
61 | 65 | Code_LoadBtnListFromDB(editor); |
|
97 | 101 | eda.sys_Message.showToastMessage('注意,这玩意不会问你是否删除,点一下立马删,三思而后行', 'warn', 3); |
98 | 102 | Code_OpenDeleteWindow(editor); |
99 | 103 | }); |
| 104 | + //保存到插件 |
| 105 | + document.getElementById('Ext-btn').addEventListener('click', async () => { |
| 106 | + showPluginManagerModal(editor,dark_theme); |
| 107 | + }) |
100 | 108 | //关于编辑器 - 暂时先跳转GitHub 上架后修改跳转EDA扩展广场 |
101 | 109 | document.getElementById('about-btn').addEventListener('click', async () => { |
102 | 110 | // await eda.sys_Message.showToastMessage('这个还没写', 'info', 1); |
|
0 commit comments