panel_ex.js 593 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. 面板扩展
  3. 功能:
  4. */
  5. 'use strict';
  6. const path = require('path');
  7. const fs = require('fs');
  8. const md5 = require('md5');
  9. const prsPath = Editor.Project && Editor.Project.path ? Editor.Project.path : Editor.remote.projectPath;
  10. let is_lock = false;
  11. module.exports = {
  12. /** @type import('../../panel/vs-panel/vs-panel-base') */
  13. parent : null,
  14. // 面板初始化
  15. onLoad(parent){
  16. // index.js 对象
  17. this.parent = parent;
  18. },
  19. // 面板销毁
  20. onDestroy(){
  21. Editor.Ipc.sendToMain('simple-code:cleanMenuConfigAll')
  22. },
  23. messages:{
  24. 'cleanFile'()
  25. {
  26. },
  27. },
  28. };