main.js 532 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. const Appliaction = require('ee-core').Appliaction;
  2. class Main extends Appliaction {
  3. constructor() {
  4. super();
  5. // this === eeApp;
  6. }
  7. /**
  8. * core app have been loaded
  9. */
  10. async ready () {
  11. // do some things
  12. }
  13. /**
  14. * electron app ready
  15. */
  16. async electronAppReady () {
  17. // do some things
  18. }
  19. /**
  20. * main window have been loaded
  21. */
  22. async windowReady () {
  23. // do some things
  24. }
  25. /**
  26. * before app close
  27. */
  28. async beforeClose () {
  29. // do some things
  30. }
  31. }
  32. new Main();