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