index.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. ],'fun', {
  31. async: false
  32. });
  33. loadjs(['/lib/gundb/gun.min.js',
  34. '/lib/gundb/sea.js',
  35. '/lib/gundb/lib/then.js',
  36. '/lib/gundb/lib/path.js',
  37. '/lib/gundb/lib/not.js',
  38. '/lib/gundb/lib/open.js',
  39. '/lib/gundb/lib/load.js',
  40. '/lib/gundb/lib/promise.js',
  41. '/lib/gundb/lib/time.js',
  42. '/lib/gundb/lib/bye.js',
  43. '/lib/gundb/lib/webrtc.js',
  44. '/lib/gundb/nts.js',
  45. '/lib/gundb/lib/radix.js',
  46. '/lib/gundb/lib/radisk.js',
  47. '/lib/gundb/lib/store.js',
  48. '/lib/gundb/lib/rindexed.js'
  49. ], 'gundb', {
  50. async: false
  51. }
  52. );
  53. loadjs.ready(['sys', 'fun', 'forall'], function() {
  54. }).ready('gundb', function() {
  55. import('/core/app.js')
  56. .then((module) => {
  57. new module.App
  58. });
  59. })