index.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //Load all required JS libs
  2. loadjs([
  3. '/lib/ui/noty/noty.css',
  4. '/lib/ui/noty/themes/mint.css',
  5. '/lib/ui/noty/noty.js',
  6. '/lib/ui/spinjs/spin.css'
  7. ],'sys', {
  8. async: false
  9. });
  10. loadjs([
  11. '/index.css',
  12. '/lib/socket.io.min.js',
  13. '/lib/he.js',
  14. '/lib/locale/polyglot.min.js',
  15. '/lib/hashids.min.js',
  16. '/lib/page-query.js'
  17. ],'forall', {
  18. async: false
  19. });
  20. loadjs([
  21. '/lib/ohm/ohm.min.js',
  22. '/lib/fun/@most/prelude/dist/index.js',
  23. '/lib/fun/@most/scheduler/dist/index.js',
  24. '/lib/fun/@most/disposable/dist/index.js',
  25. '/lib/fun/@most/core/dist/index.js',
  26. '/lib/fun/@most/dom-event/dist/index.js',
  27. '/lib/fun/ramda.min.js',
  28. '/lib/fun/infestines.js',
  29. '/lib/fun/partial.lenses.min.js',
  30. '/lib/ui/solid-js/s-js/dist/S.js'
  31. ],'fun', {
  32. async: false
  33. });
  34. loadjs(['/lib/gundb/gun.min.js',
  35. '/lib/gundb/sea.js',
  36. '/lib/gundb/lib/then.js',
  37. '/lib/gundb/lib/path.js',
  38. '/lib/gundb/lib/not.js',
  39. '/lib/gundb/lib/open.js',
  40. '/lib/gundb/lib/load.js',
  41. '/lib/gundb/lib/promise.js',
  42. '/lib/gundb/lib/time.js',
  43. '/lib/gundb/lib/bye.js',
  44. '/lib/gundb/lib/webrtc.js',
  45. '/lib/gundb/nts.js',
  46. '/lib/gundb/lib/radix.js',
  47. '/lib/gundb/lib/radisk.js',
  48. '/lib/gundb/lib/store.js',
  49. '/lib/gundb/lib/rindexed.js'
  50. ], 'gundb', {
  51. async: false
  52. }
  53. );
  54. loadjs.ready(['sys', 'fun', 'forall'], function() {
  55. }).ready('gundb', function() {
  56. import('/core/app.js')
  57. .then((module) => {
  58. new module.App
  59. });
  60. })