overleaf/services/web/public/coffee/base.coffee

33 lines
729 B
CoffeeScript
Raw Normal View History

2014-06-17 11:43:42 +00:00
define [
2014-07-08 11:02:26 +00:00
"libs"
2014-06-21 21:20:37 +00:00
"modules/recursionHelper"
"modules/errorCatcher"
"modules/localStorage"
"utils/underscore"
2014-06-17 11:43:42 +00:00
], () ->
App = angular.module("SharelatexApp", [
"ui.bootstrap"
"autocomplete"
2014-06-21 21:20:37 +00:00
"RecursionHelper"
2014-06-23 16:25:45 +00:00
"ng-context-menu"
"underscore"
"ngSanitize"
2014-08-13 15:04:23 +00:00
"ipCookie"
2015-10-27 10:58:27 +00:00
"mvdSixpack"
"ErrorCatcher"
"localStorage"
"ngTagsInput"
]).config ($qProvider, sixpackProvider, $httpProvider)->
2017-07-03 10:19:13 +00:00
$qProvider.errorOnUnhandledRejections(false)
2015-10-27 10:58:27 +00:00
sixpackProvider.setOptions({
2015-10-27 11:20:54 +00:00
debug: false
2015-10-27 10:58:27 +00:00
baseUrl: window.sharelatex.sixpackDomain
client_id: window.user_id
2015-10-27 10:58:27 +00:00
})
sl_debugging = window.location?.search?.match(/debug=true/)?
window.sl_console =
log: (args...) -> console.log(args...) if sl_debugging
2014-06-17 11:43:42 +00:00
2014-11-25 16:00:21 +00:00
return App