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"
|
2014-12-12 13:58:07 +00:00
|
|
|
"modules/errorCatcher"
|
2015-02-12 11:32:27 +00:00
|
|
|
"modules/localStorage"
|
2014-07-01 13:25:32 +00:00
|
|
|
"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"
|
2014-07-01 13:25:32 +00:00
|
|
|
"underscore"
|
|
|
|
"ngSanitize"
|
2014-08-13 15:04:23 +00:00
|
|
|
"ipCookie"
|
2015-10-27 10:58:27 +00:00
|
|
|
"mvdSixpack"
|
2014-12-12 13:58:07 +00:00
|
|
|
"ErrorCatcher"
|
2015-02-12 11:32:27 +00:00
|
|
|
"localStorage"
|
2015-10-07 16:32:35 +00:00
|
|
|
"ngTagsInput"
|
2017-07-03 10:19:13 +00:00
|
|
|
]).config ($qProvider, sixpackProvider)->
|
|
|
|
$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
|
2015-11-17 15:54:59 +00:00
|
|
|
client_id: window.user_id
|
2015-10-27 10:58:27 +00:00
|
|
|
})
|
2016-05-26 12:54:34 +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
|