main.js 632 B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.unload = exports.load = exports.methods = void 0;
  4. /**
  5. * @en Registration method for the main process of Extension
  6. * @zh 为扩展的主进程的注册方法
  7. */
  8. exports.methods = {
  9. openDefaultPanel() {
  10. Editor.Panel.open('i18n');
  11. }
  12. };
  13. /**
  14. * @en Hooks triggered after extension loading is complete
  15. * @zh 扩展加载完成后触发的钩子
  16. */
  17. exports.load = function () { };
  18. /**
  19. * @en Hooks triggered after extension uninstallation is complete
  20. * @zh 扩展卸载完成后触发的钩子
  21. */
  22. exports.unload = function () { };