base.coffee 655 B

12345678910111213141516171819202122232425262728293031
  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 (sixpackProvider)->
  21. sixpackProvider.setOptions({
  22. debug: false
  23. baseUrl: window.sharelatex.sixpackDomain
  24. client_id: window.user_id
  25. })
  26. sl_debugging = window.location?.search?.match(/debug=true/)?
  27. window.sl_console =
  28. log: (args...) -> console.log(args...) if sl_debugging
  29. return App