mirror of
https://github.com/klxf/eext-jiepei-helper.git
synced 2025-12-07 22:54:13 +08:00
initial commit
This commit is contained in:
28
src/index.ts
Normal file
28
src/index.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 入口文件
|
||||
*
|
||||
* 本文件为默认扩展入口文件,如果你想要配置其它文件作为入口文件,
|
||||
* 请修改 `extension.json` 中的 `entry` 字段;
|
||||
*
|
||||
* 请在此处使用 `export` 导出所有你希望在 `headerMenus` 中引用的方法,
|
||||
* 方法通过方法名与 `headerMenus` 关联。
|
||||
*
|
||||
* 如需了解更多开发细节,请阅读:
|
||||
* https://prodocs.lceda.cn/cn/api/guide/
|
||||
*/
|
||||
// import * as extensionConfig from '../extension.json';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export function activate(status?: 'onStartupFinished', arg?: string): void {}
|
||||
|
||||
export function about(): void {
|
||||
/* eda.sys_Dialog.showInformationMessage(
|
||||
eda.sys_I18n.text('EasyEDA extension SDK v', undefined, undefined, extensionConfig.version),
|
||||
eda.sys_I18n.text('About'),
|
||||
); */
|
||||
eda.sys_IFrame.openIFrame('/iframe/about.html', 400, 200);
|
||||
}
|
||||
|
||||
export function order(): void {
|
||||
eda.sys_IFrame.openIFrame("/iframe/order_iframe.html");
|
||||
}
|
||||
Reference in New Issue
Block a user