You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
778 B
33 lines
778 B
|
1 week ago
|
import packageJSON from '../package.json';
|
||
|
|
import { excelToJsonPlugin } from './excel2jsonAndTs';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @en Registration method for the main process of Extension
|
||
|
|
* @zh 为扩展的主进程的注册方法
|
||
|
|
*/
|
||
|
|
export const methods: { [key: string]: (...any: any) => any } = {
|
||
|
|
/**
|
||
|
|
* @en A method that can be triggered by message
|
||
|
|
* @zh 通过 message 触发的方法
|
||
|
|
*/
|
||
|
|
async export() {
|
||
|
|
excelToJsonPlugin.exportAllExcel();
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @en Method Triggered on Extension Startup
|
||
|
|
* @zh 扩展启动时触发的方法
|
||
|
|
*/
|
||
|
|
export function load() {
|
||
|
|
excelToJsonPlugin.load();
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @en Method triggered when uninstalling the extension
|
||
|
|
* @zh 卸载扩展时触发的方法
|
||
|
|
*/
|
||
|
|
export function unload() {
|
||
|
|
excelToJsonPlugin.unload();
|
||
|
|
}
|