base.coffee 729 B

1234567891011121314151617181920212223242526272829303132
  1. define [
  2. "libs"
  3. "modules/recursionHelper"
  4. "modules/errorCatcher"
  5. "modules/localStorage"
  6. "utils/underscore"
  7. ], () ->
  8. App = angular.module("SharelatexApp", [
  9. "ui.bootstrap"
  10. "autocomplete"
  11. "RecursionHelper"
  12. "ng-context-menu"
  13. "underscore"
  14. "ngSanitize"
  15. "ipCookie"
  16. "mvdSixpack"
  17. "ErrorCatcher"
  18. "localStorage"
  19. "ngTagsInput"
  20. ]).config ($qProvider, sixpackProvider, $httpProvider)->
  21. $qProvider.errorOnUnhandledRejections(false)
  22. sixpackProvider.setOptions({
  23. debug: false
  24. baseUrl: window.sharelatex.sixpackDomain
  25. client_id: window.user_id
  26. })
  27. sl_debugging = window.location?.search?.match(/debug=true/)?
  28. window.sl_console =
  29. log: (args...) -> console.log(args...) if sl_debugging
  30. return App