mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
39 lines
No EOL
922 B
CoffeeScript
39 lines
No EOL
922 B
CoffeeScript
define [
|
|
"base"
|
|
"ide/file-tree/FileTreeManager"
|
|
"ide/connection/ConnectionManager"
|
|
"ide/editor/EditorManager"
|
|
"ide/settings/SettingsManager"
|
|
"ide/directives/layout"
|
|
"ide/services/ide"
|
|
"directives/focus"
|
|
"directives/fineUpload"
|
|
"directives/onEnter"
|
|
], (
|
|
App
|
|
FileTreeManager
|
|
ConnectionManager
|
|
EditorManager
|
|
SettingsManager
|
|
) ->
|
|
App.controller "IdeController", ["$scope", "$timeout", "ide", ($scope, $timeout, ide) ->
|
|
$scope.state = {
|
|
loading: true
|
|
load_progress: 40
|
|
}
|
|
$scope.ui = {
|
|
leftMenuShown: false
|
|
}
|
|
|
|
window._ide = ide
|
|
|
|
ide.project_id = $scope.project_id = window.project_id
|
|
ide.$scope = $scope
|
|
|
|
ide.connectionManager = new ConnectionManager(ide, $scope)
|
|
ide.fileTreeManager = new FileTreeManager(ide, $scope)
|
|
ide.editorManager = new EditorManager(ide, $scope)
|
|
ide.settingsManager = new SettingsManager(ide, $scope)
|
|
]
|
|
|
|
angular.bootstrap(document.body, ["SharelatexApp"]) |