diff --git a/src/main/webapp/wise5/authoringTool/main.es6 b/src/main/webapp/wise5/authoringTool/main.es6 index 7fcc35e86d..7d2056251e 100644 --- a/src/main/webapp/wise5/authoringTool/main.es6 +++ b/src/main/webapp/wise5/authoringTool/main.es6 @@ -14,43 +14,31 @@ import angularTranslate from 'angular-translate'; import angularTranslateLoaderPartial from 'angular-translate-loader-partial'; import angularWebSocket from 'angular-websocket'; import AnnotationService from '../services/annotationService'; -import AudioOscillatorController from '../components/audioOscillator/audioOscillatorController'; -import AudioOscillatorService from '../components/audioOscillator/audioOscillatorService'; +import AudioOscillatorComponentModule from '../components/audioOscillator/audioOscillatorComponentModule'; import AuthoringToolController from './authoringToolController'; import AuthoringToolMainController from './main/authoringToolMainController'; import AuthoringToolNewProjectController from './main/authoringToolNewProjectController'; import AuthorWebSocketService from '../services/authorWebSocketService'; -import ConceptMapController from '../components/conceptMap/conceptMapController'; -import ConceptMapService from '../components/conceptMap/conceptMapService'; +import ConceptMapComponentModule from '../components/conceptMap/conceptMapComponentModule'; import ConfigService from '../services/configService'; import CRaterService from '../services/cRaterService'; import Directives from '../directives/directives'; -import DiscussionController from '../components/discussion/discussionController'; -import DiscussionService from '../components/discussion/discussionService'; -import DrawController from '../components/draw/drawController'; -import DrawService from '../components/draw/drawService'; -import EmbeddedController from '../components/embedded/embeddedController'; -import EmbeddedService from '../components/embedded/embeddedService'; +import DiscussionComponentModule from '../components/discussion/discussionComponentModule'; +import DrawComponentModule from '../components/draw/drawComponentModule'; +import EmbeddedComponentModule from '../components/embedded/embeddedComponentModule'; import Filters from '../filters/filters'; -import GraphController from '../components/graph/graphController'; -import GraphService from '../components/graph/graphService'; import Highcharts from '../lib/highcharts@4.2.1'; -import HTMLController from '../components/html/htmlController'; -import HTMLService from '../components/html/htmlService'; -import LabelController from '../components/label/labelController'; -import LabelService from '../components/label/labelService'; -import MatchController from '../components/match/matchController'; -import MatchService from '../components/match/matchService'; -import MultipleChoiceController from '../components/multipleChoice/multipleChoiceController'; -import MultipleChoiceService from '../components/multipleChoice/multipleChoiceService'; +import GraphComponentModule from '../components/graph/graphComponentModule'; +import HTMLComponentModule from '../components/html/htmlComponentModule'; +import LabelComponentModule from '../components/label/labelComponentModule'; +import MatchComponentModule from '../components/match/matchComponentModule'; +import MultipleChoiceComponentModule from '../components/multipleChoice/multipleChoiceComponentModule'; import NodeController from './node/nodeController'; import NodeService from '../services/nodeService'; import NotebookService from '../services/notebookService'; import NotificationService from '../services/notificationService'; -import OpenResponseController from '../components/openResponse/openResponseController'; -import OpenResponseService from '../components/openResponse/openResponseService'; -import OutsideURLController from '../components/outsideURL/outsideURLController'; -import OutsideURLService from '../components/outsideURL/outsideURLService'; +import OpenResponseComponentModule from '../components/openResponse/openResponseComponentModule'; +import OutsideURLComponentModule from '../components/outsideURL/outsideURLComponentModule'; import ProjectAssetController from './asset/projectAssetController'; import ProjectAssetService from '../services/projectAssetService'; import ProjectController from './project/projectController'; @@ -61,8 +49,7 @@ import StudentAssetService from '../services/studentAssetService'; import StudentDataService from '../services/studentDataService'; import StudentStatusService from '../services/studentStatusService'; import StudentWebSocketService from '../services/studentWebSocketService'; -import TableController from '../components/table/tableController'; -import TableService from '../components/table/tableService'; +import TableComponentModule from '../components/table/tableComponentModule'; import TeacherDataService from '../services/teacherDataService'; import UtilService from '../services/utilService'; @@ -70,37 +57,38 @@ let mainModule = angular.module('authoring', [ angularDragula(angular), 'angularMoment', 'angular-toArrayFilter', + 'audioOscillatorComponentModule', + 'conceptMapComponentModule', 'directives', + 'discussionComponentModule', + 'drawComponentModule', + 'embeddedComponentModule', 'filters', + 'graphComponentModule', 'highcharts-ng', + 'htmlComponentModule', + 'labelComponentModule', + 'matchComponentModule', + 'multipleChoiceComponentModule', 'ngAnimate', 'ngAria', 'ngFileUpload', 'ngMaterial', 'ngSanitize', 'ngWebSocket', + 'openResponseComponentModule', + 'outsideURLComponentModule', 'pascalprecht.translate', + 'tableComponentModule', 'ui.router' ]) .service(AnnotationService.name, AnnotationService) - .service(AudioOscillatorService.name, AudioOscillatorService) .service(AuthorWebSocketService.name, AuthorWebSocketService) - .service(ConceptMapService.name, ConceptMapService) .service(ConfigService.name, ConfigService) .service(CRaterService.name, CRaterService) - .service(DiscussionService.name, DiscussionService) - .service(DrawService.name, DrawService) - .service(EmbeddedService.name, EmbeddedService) - .service(GraphService.name, GraphService) - .service(HTMLService.name, HTMLService) - .service(LabelService.name, LabelService) - .service(MatchService.name, MatchService) - .service(MultipleChoiceService.name, MultipleChoiceService) .service(NodeService.name, NodeService) .service(NotebookService.name, NotebookService) .service(NotificationService.name, NotificationService) - .service(OpenResponseService.name, OpenResponseService) - .service(OutsideURLService.name, OutsideURLService) .service(ProjectService.name, ProjectService) .service(ProjectAssetService.name, ProjectAssetService) .service(SessionService.name, SessionService) @@ -108,29 +96,15 @@ let mainModule = angular.module('authoring', [ .service(StudentDataService.name, StudentDataService) .service(StudentStatusService.name, StudentStatusService) .service(StudentWebSocketService.name, StudentWebSocketService) - .service(TableService.name, TableService) .service(TeacherDataService.name, TeacherDataService) .service(UtilService.name, UtilService) - .controller(AudioOscillatorController.name, AudioOscillatorController) .controller(AuthoringToolController.name, AuthoringToolController) .controller(AuthoringToolMainController.name, AuthoringToolMainController) .controller(AuthoringToolNewProjectController.name, AuthoringToolNewProjectController) - .controller(ConceptMapController.name, ConceptMapController) - .controller(DiscussionController.name, DiscussionController) - .controller(DrawController.name, DrawController) - .controller(EmbeddedController.name, EmbeddedController) - .controller(GraphController.name, GraphController) - .controller(HTMLController.name, HTMLController) - .controller(LabelController.name, LabelController) - .controller(MatchController.name, MatchController) - .controller(MultipleChoiceController.name, MultipleChoiceController) .controller(NodeController.name, NodeController) - .controller(OpenResponseController.name, OpenResponseController) - .controller(OutsideURLController.name, OutsideURLController) .controller(ProjectAssetController.name, ProjectAssetController) .controller(ProjectController.name, ProjectController) .controller(ProjectHistoryController.name, ProjectHistoryController) - .controller(TableController.name, TableController) .config(['$urlRouterProvider', '$stateProvider', '$translateProvider', diff --git a/src/main/webapp/wise5/authoringTool/main.js b/src/main/webapp/wise5/authoringTool/main.js index 9ff37488aa..b07d9acdcf 100644 --- a/src/main/webapp/wise5/authoringTool/main.js +++ b/src/main/webapp/wise5/authoringTool/main.js @@ -60,13 +60,9 @@ var _annotationService = require('../services/annotationService'); var _annotationService2 = _interopRequireDefault(_annotationService); -var _audioOscillatorController = require('../components/audioOscillator/audioOscillatorController'); +var _audioOscillatorComponentModule = require('../components/audioOscillator/audioOscillatorComponentModule'); -var _audioOscillatorController2 = _interopRequireDefault(_audioOscillatorController); - -var _audioOscillatorService = require('../components/audioOscillator/audioOscillatorService'); - -var _audioOscillatorService2 = _interopRequireDefault(_audioOscillatorService); +var _audioOscillatorComponentModule2 = _interopRequireDefault(_audioOscillatorComponentModule); var _authoringToolController = require('./authoringToolController'); @@ -84,13 +80,9 @@ var _authorWebSocketService = require('../services/authorWebSocketService'); var _authorWebSocketService2 = _interopRequireDefault(_authorWebSocketService); -var _conceptMapController = require('../components/conceptMap/conceptMapController'); - -var _conceptMapController2 = _interopRequireDefault(_conceptMapController); - -var _conceptMapService = require('../components/conceptMap/conceptMapService'); +var _conceptMapComponentModule = require('../components/conceptMap/conceptMapComponentModule'); -var _conceptMapService2 = _interopRequireDefault(_conceptMapService); +var _conceptMapComponentModule2 = _interopRequireDefault(_conceptMapComponentModule); var _configService = require('../services/configService'); @@ -104,77 +96,45 @@ var _directives = require('../directives/directives'); var _directives2 = _interopRequireDefault(_directives); -var _discussionController = require('../components/discussion/discussionController'); - -var _discussionController2 = _interopRequireDefault(_discussionController); - -var _discussionService = require('../components/discussion/discussionService'); - -var _discussionService2 = _interopRequireDefault(_discussionService); +var _discussionComponentModule = require('../components/discussion/discussionComponentModule'); -var _drawController = require('../components/draw/drawController'); +var _discussionComponentModule2 = _interopRequireDefault(_discussionComponentModule); -var _drawController2 = _interopRequireDefault(_drawController); +var _drawComponentModule = require('../components/draw/drawComponentModule'); -var _drawService = require('../components/draw/drawService'); +var _drawComponentModule2 = _interopRequireDefault(_drawComponentModule); -var _drawService2 = _interopRequireDefault(_drawService); +var _embeddedComponentModule = require('../components/embedded/embeddedComponentModule'); -var _embeddedController = require('../components/embedded/embeddedController'); - -var _embeddedController2 = _interopRequireDefault(_embeddedController); - -var _embeddedService = require('../components/embedded/embeddedService'); - -var _embeddedService2 = _interopRequireDefault(_embeddedService); +var _embeddedComponentModule2 = _interopRequireDefault(_embeddedComponentModule); var _filters = require('../filters/filters'); var _filters2 = _interopRequireDefault(_filters); -var _graphController = require('../components/graph/graphController'); - -var _graphController2 = _interopRequireDefault(_graphController); - -var _graphService = require('../components/graph/graphService'); - -var _graphService2 = _interopRequireDefault(_graphService); - var _highcharts = require('../lib/highcharts@4.2.1'); var _highcharts2 = _interopRequireDefault(_highcharts); -var _htmlController = require('../components/html/htmlController'); - -var _htmlController2 = _interopRequireDefault(_htmlController); - -var _htmlService = require('../components/html/htmlService'); - -var _htmlService2 = _interopRequireDefault(_htmlService); - -var _labelController = require('../components/label/labelController'); - -var _labelController2 = _interopRequireDefault(_labelController); - -var _labelService = require('../components/label/labelService'); +var _graphComponentModule = require('../components/graph/graphComponentModule'); -var _labelService2 = _interopRequireDefault(_labelService); +var _graphComponentModule2 = _interopRequireDefault(_graphComponentModule); -var _matchController = require('../components/match/matchController'); +var _htmlComponentModule = require('../components/html/htmlComponentModule'); -var _matchController2 = _interopRequireDefault(_matchController); +var _htmlComponentModule2 = _interopRequireDefault(_htmlComponentModule); -var _matchService = require('../components/match/matchService'); +var _labelComponentModule = require('../components/label/labelComponentModule'); -var _matchService2 = _interopRequireDefault(_matchService); +var _labelComponentModule2 = _interopRequireDefault(_labelComponentModule); -var _multipleChoiceController = require('../components/multipleChoice/multipleChoiceController'); +var _matchComponentModule = require('../components/match/matchComponentModule'); -var _multipleChoiceController2 = _interopRequireDefault(_multipleChoiceController); +var _matchComponentModule2 = _interopRequireDefault(_matchComponentModule); -var _multipleChoiceService = require('../components/multipleChoice/multipleChoiceService'); +var _multipleChoiceComponentModule = require('../components/multipleChoice/multipleChoiceComponentModule'); -var _multipleChoiceService2 = _interopRequireDefault(_multipleChoiceService); +var _multipleChoiceComponentModule2 = _interopRequireDefault(_multipleChoiceComponentModule); var _nodeController = require('./node/nodeController'); @@ -192,21 +152,13 @@ var _notificationService = require('../services/notificationService'); var _notificationService2 = _interopRequireDefault(_notificationService); -var _openResponseController = require('../components/openResponse/openResponseController'); +var _openResponseComponentModule = require('../components/openResponse/openResponseComponentModule'); -var _openResponseController2 = _interopRequireDefault(_openResponseController); +var _openResponseComponentModule2 = _interopRequireDefault(_openResponseComponentModule); -var _openResponseService = require('../components/openResponse/openResponseService'); +var _outsideURLComponentModule = require('../components/outsideURL/outsideURLComponentModule'); -var _openResponseService2 = _interopRequireDefault(_openResponseService); - -var _outsideURLController = require('../components/outsideURL/outsideURLController'); - -var _outsideURLController2 = _interopRequireDefault(_outsideURLController); - -var _outsideURLService = require('../components/outsideURL/outsideURLService'); - -var _outsideURLService2 = _interopRequireDefault(_outsideURLService); +var _outsideURLComponentModule2 = _interopRequireDefault(_outsideURLComponentModule); var _projectAssetController = require('./asset/projectAssetController'); @@ -248,13 +200,9 @@ var _studentWebSocketService = require('../services/studentWebSocketService'); var _studentWebSocketService2 = _interopRequireDefault(_studentWebSocketService); -var _tableController = require('../components/table/tableController'); - -var _tableController2 = _interopRequireDefault(_tableController); - -var _tableService = require('../components/table/tableService'); +var _tableComponentModule = require('../components/table/tableComponentModule'); -var _tableService2 = _interopRequireDefault(_tableService); +var _tableComponentModule2 = _interopRequireDefault(_tableComponentModule); var _teacherDataService = require('../services/teacherDataService'); @@ -266,7 +214,7 @@ var _utilService2 = _interopRequireDefault(_utilService); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var mainModule = _angular2.default.module('authoring', [(0, _angularDragula2.default)(_angular2.default), 'angularMoment', 'angular-toArrayFilter', 'directives', 'filters', 'highcharts-ng', 'ngAnimate', 'ngAria', 'ngFileUpload', 'ngMaterial', 'ngSanitize', 'ngWebSocket', 'pascalprecht.translate', 'ui.router']).service(_annotationService2.default.name, _annotationService2.default).service(_audioOscillatorService2.default.name, _audioOscillatorService2.default).service(_authorWebSocketService2.default.name, _authorWebSocketService2.default).service(_conceptMapService2.default.name, _conceptMapService2.default).service(_configService2.default.name, _configService2.default).service(_cRaterService2.default.name, _cRaterService2.default).service(_discussionService2.default.name, _discussionService2.default).service(_drawService2.default.name, _drawService2.default).service(_embeddedService2.default.name, _embeddedService2.default).service(_graphService2.default.name, _graphService2.default).service(_htmlService2.default.name, _htmlService2.default).service(_labelService2.default.name, _labelService2.default).service(_matchService2.default.name, _matchService2.default).service(_multipleChoiceService2.default.name, _multipleChoiceService2.default).service(_nodeService2.default.name, _nodeService2.default).service(_notebookService2.default.name, _notebookService2.default).service(_notificationService2.default.name, _notificationService2.default).service(_openResponseService2.default.name, _openResponseService2.default).service(_outsideURLService2.default.name, _outsideURLService2.default).service(_projectService2.default.name, _projectService2.default).service(_projectAssetService2.default.name, _projectAssetService2.default).service(_sessionService2.default.name, _sessionService2.default).service(_studentAssetService2.default.name, _studentAssetService2.default).service(_studentDataService2.default.name, _studentDataService2.default).service(_studentStatusService2.default.name, _studentStatusService2.default).service(_studentWebSocketService2.default.name, _studentWebSocketService2.default).service(_tableService2.default.name, _tableService2.default).service(_teacherDataService2.default.name, _teacherDataService2.default).service(_utilService2.default.name, _utilService2.default).controller(_audioOscillatorController2.default.name, _audioOscillatorController2.default).controller(_authoringToolController2.default.name, _authoringToolController2.default).controller(_authoringToolMainController2.default.name, _authoringToolMainController2.default).controller(_authoringToolNewProjectController2.default.name, _authoringToolNewProjectController2.default).controller(_conceptMapController2.default.name, _conceptMapController2.default).controller(_discussionController2.default.name, _discussionController2.default).controller(_drawController2.default.name, _drawController2.default).controller(_embeddedController2.default.name, _embeddedController2.default).controller(_graphController2.default.name, _graphController2.default).controller(_htmlController2.default.name, _htmlController2.default).controller(_labelController2.default.name, _labelController2.default).controller(_matchController2.default.name, _matchController2.default).controller(_multipleChoiceController2.default.name, _multipleChoiceController2.default).controller(_nodeController2.default.name, _nodeController2.default).controller(_openResponseController2.default.name, _openResponseController2.default).controller(_outsideURLController2.default.name, _outsideURLController2.default).controller(_projectAssetController2.default.name, _projectAssetController2.default).controller(_projectController2.default.name, _projectController2.default).controller(_projectHistoryController2.default.name, _projectHistoryController2.default).controller(_tableController2.default.name, _tableController2.default).config(['$urlRouterProvider', '$stateProvider', '$translateProvider', '$translatePartialLoaderProvider', '$controllerProvider', '$mdThemingProvider', function ($urlRouterProvider, $stateProvider, $translateProvider, $translatePartialLoaderProvider, $controllerProvider, $mdThemingProvider) { +var mainModule = _angular2.default.module('authoring', [(0, _angularDragula2.default)(_angular2.default), 'angularMoment', 'angular-toArrayFilter', 'audioOscillatorComponentModule', 'conceptMapComponentModule', 'directives', 'discussionComponentModule', 'drawComponentModule', 'embeddedComponentModule', 'filters', 'graphComponentModule', 'highcharts-ng', 'htmlComponentModule', 'labelComponentModule', 'matchComponentModule', 'multipleChoiceComponentModule', 'ngAnimate', 'ngAria', 'ngFileUpload', 'ngMaterial', 'ngSanitize', 'ngWebSocket', 'openResponseComponentModule', 'outsideURLComponentModule', 'pascalprecht.translate', 'tableComponentModule', 'ui.router']).service(_annotationService2.default.name, _annotationService2.default).service(_authorWebSocketService2.default.name, _authorWebSocketService2.default).service(_configService2.default.name, _configService2.default).service(_cRaterService2.default.name, _cRaterService2.default).service(_nodeService2.default.name, _nodeService2.default).service(_notebookService2.default.name, _notebookService2.default).service(_notificationService2.default.name, _notificationService2.default).service(_projectService2.default.name, _projectService2.default).service(_projectAssetService2.default.name, _projectAssetService2.default).service(_sessionService2.default.name, _sessionService2.default).service(_studentAssetService2.default.name, _studentAssetService2.default).service(_studentDataService2.default.name, _studentDataService2.default).service(_studentStatusService2.default.name, _studentStatusService2.default).service(_studentWebSocketService2.default.name, _studentWebSocketService2.default).service(_teacherDataService2.default.name, _teacherDataService2.default).service(_utilService2.default.name, _utilService2.default).controller(_authoringToolController2.default.name, _authoringToolController2.default).controller(_authoringToolMainController2.default.name, _authoringToolMainController2.default).controller(_authoringToolNewProjectController2.default.name, _authoringToolNewProjectController2.default).controller(_nodeController2.default.name, _nodeController2.default).controller(_projectAssetController2.default.name, _projectAssetController2.default).controller(_projectController2.default.name, _projectController2.default).controller(_projectHistoryController2.default.name, _projectHistoryController2.default).config(['$urlRouterProvider', '$stateProvider', '$translateProvider', '$translatePartialLoaderProvider', '$controllerProvider', '$mdThemingProvider', function ($urlRouterProvider, $stateProvider, $translateProvider, $translatePartialLoaderProvider, $controllerProvider, $mdThemingProvider) { $urlRouterProvider.otherwise('/'); diff --git a/src/main/webapp/wise5/authoringTool/main.js.map b/src/main/webapp/wise5/authoringTool/main.js.map index 5ac9e5595a..b5812b520e 100644 --- a/src/main/webapp/wise5/authoringTool/main.js.map +++ b/src/main/webapp/wise5/authoringTool/main.js.map @@ -1 +1 @@ -{"version":3,"sources":["main.es6"],"names":["mainModule","module","service","name","controller","config","$urlRouterProvider","$stateProvider","$translateProvider","$translatePartialLoaderProvider","$controllerProvider","$mdThemingProvider","otherwise","state","url","abstract","templateUrl","controllerAs","resolve","ConfigService","configURL","window","retrieveConfig","language","$translate","locale","getLocale","use","sessionTimers","SessionService","initializeSession","projectConfig","$stateParams","projectId","project","ProjectService","retrieveProject","projectAssets","ProjectAssetService","retrieveProjectAssets","load","addPart","useLoader","urlTemplate","fallbackLanguage","registerAvailableLanguageKeys","useSanitizeValueStrategy","definePalette","undefined","theme","primaryPalette","accentPalette","warnPalette","lightMap","extendPalette","setDefaultTheme"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;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js","sourcesContent":["'use strict';\n\nimport $ from 'jquery';\nimport angular from 'angular';\nimport angularDragula from 'angular-dragula';\nimport angularFileUpload from 'ng-file-upload';\nimport angularHighcharts from 'highcharts-ng';\nimport angularUIRouter from 'angular-ui-router';\nimport angularMaterial from 'angular-material';\nimport angularMoment from 'angular-moment';\nimport angularSanitize from 'angular-sanitize';\nimport angularToArrayFilter from 'lib/angular-toArrayFilter/toArrayFilter';\nimport angularTranslate from 'angular-translate';\nimport angularTranslateLoaderPartial from 'angular-translate-loader-partial';\nimport angularWebSocket from 'angular-websocket';\nimport AnnotationService from '../services/annotationService';\nimport AudioOscillatorController from '../components/audioOscillator/audioOscillatorController';\nimport AudioOscillatorService from '../components/audioOscillator/audioOscillatorService';\nimport AuthoringToolController from './authoringToolController';\nimport AuthoringToolMainController from './main/authoringToolMainController';\nimport AuthoringToolNewProjectController from './main/authoringToolNewProjectController';\nimport AuthorWebSocketService from '../services/authorWebSocketService';\nimport ConceptMapController from '../components/conceptMap/conceptMapController';\nimport ConceptMapService from '../components/conceptMap/conceptMapService';\nimport ConfigService from '../services/configService';\nimport CRaterService from '../services/cRaterService';\nimport Directives from '../directives/directives';\nimport DiscussionController from '../components/discussion/discussionController';\nimport DiscussionService from '../components/discussion/discussionService';\nimport DrawController from '../components/draw/drawController';\nimport DrawService from '../components/draw/drawService';\nimport EmbeddedController from '../components/embedded/embeddedController';\nimport EmbeddedService from '../components/embedded/embeddedService';\nimport Filters from '../filters/filters';\nimport GraphController from '../components/graph/graphController';\nimport GraphService from '../components/graph/graphService';\nimport Highcharts from '../lib/highcharts@4.2.1';\nimport HTMLController from '../components/html/htmlController';\nimport HTMLService from '../components/html/htmlService';\nimport LabelController from '../components/label/labelController';\nimport LabelService from '../components/label/labelService';\nimport MatchController from '../components/match/matchController';\nimport MatchService from '../components/match/matchService';\nimport MultipleChoiceController from '../components/multipleChoice/multipleChoiceController';\nimport MultipleChoiceService from '../components/multipleChoice/multipleChoiceService';\nimport NodeController from './node/nodeController';\nimport NodeService from '../services/nodeService';\nimport NotebookService from '../services/notebookService';\nimport NotificationService from '../services/notificationService';\nimport OpenResponseController from '../components/openResponse/openResponseController';\nimport OpenResponseService from '../components/openResponse/openResponseService';\nimport OutsideURLController from '../components/outsideURL/outsideURLController';\nimport OutsideURLService from '../components/outsideURL/outsideURLService';\nimport ProjectAssetController from './asset/projectAssetController';\nimport ProjectAssetService from '../services/projectAssetService';\nimport ProjectController from './project/projectController';\nimport ProjectHistoryController from './history/projectHistoryController';\nimport ProjectService from '../services/projectService';\nimport SessionService from '../services/sessionService';\nimport StudentAssetService from '../services/studentAssetService';\nimport StudentDataService from '../services/studentDataService';\nimport StudentStatusService from '../services/studentStatusService';\nimport StudentWebSocketService from '../services/studentWebSocketService';\nimport TableController from '../components/table/tableController';\nimport TableService from '../components/table/tableService';\nimport TeacherDataService from '../services/teacherDataService';\nimport UtilService from '../services/utilService';\n\nlet mainModule = angular.module('authoring', [\n angularDragula(angular),\n 'angularMoment',\n 'angular-toArrayFilter',\n 'directives',\n 'filters',\n 'highcharts-ng',\n 'ngAnimate',\n 'ngAria',\n 'ngFileUpload',\n 'ngMaterial',\n 'ngSanitize',\n 'ngWebSocket',\n 'pascalprecht.translate',\n 'ui.router'\n])\n .service(AnnotationService.name, AnnotationService)\n .service(AudioOscillatorService.name, AudioOscillatorService)\n .service(AuthorWebSocketService.name, AuthorWebSocketService)\n .service(ConceptMapService.name, ConceptMapService)\n .service(ConfigService.name, ConfigService)\n .service(CRaterService.name, CRaterService)\n .service(DiscussionService.name, DiscussionService)\n .service(DrawService.name, DrawService)\n .service(EmbeddedService.name, EmbeddedService)\n .service(GraphService.name, GraphService)\n .service(HTMLService.name, HTMLService)\n .service(LabelService.name, LabelService)\n .service(MatchService.name, MatchService)\n .service(MultipleChoiceService.name, MultipleChoiceService)\n .service(NodeService.name, NodeService)\n .service(NotebookService.name, NotebookService)\n .service(NotificationService.name, NotificationService)\n .service(OpenResponseService.name, OpenResponseService)\n .service(OutsideURLService.name, OutsideURLService)\n .service(ProjectService.name, ProjectService)\n .service(ProjectAssetService.name, ProjectAssetService)\n .service(SessionService.name, SessionService)\n .service(StudentAssetService.name, StudentAssetService)\n .service(StudentDataService.name, StudentDataService)\n .service(StudentStatusService.name, StudentStatusService)\n .service(StudentWebSocketService.name, StudentWebSocketService)\n .service(TableService.name, TableService)\n .service(TeacherDataService.name, TeacherDataService)\n .service(UtilService.name, UtilService)\n .controller(AudioOscillatorController.name, AudioOscillatorController)\n .controller(AuthoringToolController.name, AuthoringToolController)\n .controller(AuthoringToolMainController.name, AuthoringToolMainController)\n .controller(AuthoringToolNewProjectController.name, AuthoringToolNewProjectController)\n .controller(ConceptMapController.name, ConceptMapController)\n .controller(DiscussionController.name, DiscussionController)\n .controller(DrawController.name, DrawController)\n .controller(EmbeddedController.name, EmbeddedController)\n .controller(GraphController.name, GraphController)\n .controller(HTMLController.name, HTMLController)\n .controller(LabelController.name, LabelController)\n .controller(MatchController.name, MatchController)\n .controller(MultipleChoiceController.name, MultipleChoiceController)\n .controller(NodeController.name, NodeController)\n .controller(OpenResponseController.name, OpenResponseController)\n .controller(OutsideURLController.name, OutsideURLController)\n .controller(ProjectAssetController.name, ProjectAssetController)\n .controller(ProjectController.name, ProjectController)\n .controller(ProjectHistoryController.name, ProjectHistoryController)\n .controller(TableController.name, TableController)\n .config(['$urlRouterProvider',\n '$stateProvider',\n '$translateProvider',\n '$translatePartialLoaderProvider',\n '$controllerProvider',\n '$mdThemingProvider',\n function($urlRouterProvider,\n $stateProvider,\n $translateProvider,\n $translatePartialLoaderProvider,\n $controllerProvider,\n $mdThemingProvider) {\n\n $urlRouterProvider.otherwise('/');\n\n $stateProvider\n .state('root', {\n url: '',\n abstract: true,\n templateUrl: 'wise5/authoringTool/authoringTool.html',\n controller: 'AuthoringToolController',\n controllerAs: 'authoringToolController',\n resolve: {\n }\n })\n .state('root.main', {\n url: '/',\n templateUrl: 'wise5/authoringTool/main/main.html',\n controller: 'AuthoringToolMainController',\n controllerAs: 'authoringToolMainController',\n resolve: {\n config: (ConfigService) => {\n var configURL = window.configURL;\n\n return ConfigService.retrieveConfig(configURL);\n },\n language: ($translate, ConfigService, config) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n sessionTimers: (SessionService, config) => {\n return SessionService.initializeSession();\n }\n }\n })\n .state('root.new', {\n url: '/new',\n templateUrl: 'wise5/authoringTool/main/new.html',\n controller: 'AuthoringToolNewProjectController',\n controllerAs: 'authoringToolNewProjectController',\n resolve: {\n config: (ConfigService) => {\n var configURL = window.configURL;\n\n return ConfigService.retrieveConfig(configURL);\n },\n language: ($translate, ConfigService, config) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n sessionTimers: (SessionService, config) => {\n return SessionService.initializeSession();\n }\n }\n })\n .state('root.project', {\n url: '/project/:projectId',\n templateUrl: 'wise5/authoringTool/project/project.html',\n controller: 'ProjectController',\n controllerAs: 'projectController',\n resolve: {\n projectConfig: (ConfigService, $stateParams) => {\n var configURL = window.configURL + '/' + $stateParams.projectId;\n\n return ConfigService.retrieveConfig(configURL);\n },\n project: (ProjectService, projectConfig) => {\n return ProjectService.retrieveProject();\n },\n projectAssets: (ProjectAssetService, projectConfig) => {\n return ProjectAssetService.retrieveProjectAssets();\n },\n language: ($translate, ConfigService, projectConfig) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n sessionTimers: (SessionService, projectConfig) => {\n return SessionService.initializeSession();\n }\n /*,\n webSocket: (AuthorWebSocketService, projectConfig, $stateParams) => {\n return AuthorWebSocketService.initialize($stateParams.projectId);\n }\n */\n }\n })\n .state('root.project.node', {\n url: '/node/:nodeId',\n templateUrl: 'wise5/authoringTool/node/node.html',\n controller: 'NodeController',\n controllerAs: 'nodeController',\n resolve: {\n load: () => {\n\n }\n }\n })\n .state('root.project.asset', {\n url: '/asset',\n templateUrl: 'wise5/authoringTool/asset/asset.html',\n controller: 'ProjectAssetController',\n controllerAs: 'projectAssetController',\n resolve: {\n }\n })\n .state('root.project.history', {\n url: '/history',\n templateUrl: 'wise5/authoringTool/history/history.html',\n controller: 'ProjectHistoryController',\n controllerAs: 'projectHistoryController',\n resolve: {\n }\n });\n\n // Set up Translations\n $translatePartialLoaderProvider.addPart('common');\n $translatePartialLoaderProvider.addPart('authoringTool');\n $translateProvider.useLoader('$translatePartialLoader', {\n urlTemplate: 'wise5/i18n/{part}/i18n_{lang}.json'\n });\n $translateProvider.fallbackLanguage(['en']);\n $translateProvider.registerAvailableLanguageKeys(['en','es','ja','ko','pt','tr','zh_CN'], {\n 'en_US': 'en',\n 'en_UK': 'en'\n });\n $translateProvider.useSanitizeValueStrategy('escape');\n\n // ngMaterial default theme configuration\n // TODO: make dynamic and support alternate themes; allow projects to specify theme parameters and settings\n $mdThemingProvider.definePalette('primary', {\n '50': 'e1f0f4',\n '100': 'b8dbe4',\n '200': '8ec6d4',\n '300': '5faec2',\n '400': '3d9db5',\n '500': '1c8ca8',\n '600': '197f98',\n '700': '167188',\n '800': '136377',\n '900': '0e4957',\n 'A100': 'abf3ff',\n 'A200': '66e2ff',\n 'A400': '17bee5',\n 'A700': '00A1C6',\n 'contrastDefaultColor': 'light', // whether, by default, text (contrast)\n // on this palette should be dark or light\n 'contrastDarkColors': ['50', '100', //hues which contrast should be 'dark' by default\n '200', '300', 'A100'],\n 'contrastLightColors': undefined // could also specify this if default was 'dark'\n });\n\n $mdThemingProvider.definePalette('accent', {\n '50': 'fde9e6',\n '100': 'fbcbc4',\n '200': 'f8aca1',\n '300': 'f4897b',\n '400': 'f2705f',\n '500': 'f05843',\n '600': 'da503c',\n '700': 'c34736',\n '800': 'aa3e2f',\n '900': '7d2e23',\n 'A100': 'ff897d',\n 'A200': 'ff7061',\n 'A400': 'ff3829',\n 'A700': 'cc1705',\n 'contrastDefaultColor': 'light',\n 'contrastDarkColors': ['50', '100',\n '200', '300', 'A100'],\n 'contrastLightColors': undefined\n });\n\n $mdThemingProvider.theme('default')\n .primaryPalette('primary')\n .accentPalette('accent', {\n 'default': '500'\n })\n .warnPalette('red', {\n 'default': 'A700'\n });\n\n var lightMap = $mdThemingProvider.extendPalette('grey', {\n 'A100': 'ffffff'\n });\n $mdThemingProvider.definePalette('light', lightMap);\n\n $mdThemingProvider.theme('light')\n .primaryPalette('light', {\n 'default': 'A100'\n })\n .accentPalette('primary');\n\n $mdThemingProvider.setDefaultTheme('default');\n }]);\n\nexport default mainModule;\n"]} \ No newline at end of file +{"version":3,"sources":["main.es6"],"names":["mainModule","module","service","name","controller","config","$urlRouterProvider","$stateProvider","$translateProvider","$translatePartialLoaderProvider","$controllerProvider","$mdThemingProvider","otherwise","state","url","abstract","templateUrl","controllerAs","resolve","ConfigService","configURL","window","retrieveConfig","language","$translate","locale","getLocale","use","sessionTimers","SessionService","initializeSession","projectConfig","$stateParams","projectId","project","ProjectService","retrieveProject","projectAssets","ProjectAssetService","retrieveProjectAssets","load","addPart","useLoader","urlTemplate","fallbackLanguage","registerAvailableLanguageKeys","useSanitizeValueStrategy","definePalette","undefined","theme","primaryPalette","accentPalette","warnPalette","lightMap","extendPalette","setDefaultTheme"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;AAEA,IAAIA,aAAa,kBAAQC,MAAR,CAAe,WAAf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":"main.js","sourcesContent":["'use strict';\n\nimport $ from 'jquery';\nimport angular from 'angular';\nimport angularDragula from 'angular-dragula';\nimport angularFileUpload from 'ng-file-upload';\nimport angularHighcharts from 'highcharts-ng';\nimport angularUIRouter from 'angular-ui-router';\nimport angularMaterial from 'angular-material';\nimport angularMoment from 'angular-moment';\nimport angularSanitize from 'angular-sanitize';\nimport angularToArrayFilter from 'lib/angular-toArrayFilter/toArrayFilter';\nimport angularTranslate from 'angular-translate';\nimport angularTranslateLoaderPartial from 'angular-translate-loader-partial';\nimport angularWebSocket from 'angular-websocket';\nimport AnnotationService from '../services/annotationService';\nimport AudioOscillatorComponentModule from '../components/audioOscillator/audioOscillatorComponentModule';\nimport AuthoringToolController from './authoringToolController';\nimport AuthoringToolMainController from './main/authoringToolMainController';\nimport AuthoringToolNewProjectController from './main/authoringToolNewProjectController';\nimport AuthorWebSocketService from '../services/authorWebSocketService';\nimport ConceptMapComponentModule from '../components/conceptMap/conceptMapComponentModule';\nimport ConfigService from '../services/configService';\nimport CRaterService from '../services/cRaterService';\nimport Directives from '../directives/directives';\nimport DiscussionComponentModule from '../components/discussion/discussionComponentModule';\nimport DrawComponentModule from '../components/draw/drawComponentModule';\nimport EmbeddedComponentModule from '../components/embedded/embeddedComponentModule';\nimport Filters from '../filters/filters';\nimport Highcharts from '../lib/highcharts@4.2.1';\nimport GraphComponentModule from '../components/graph/graphComponentModule';\nimport HTMLComponentModule from '../components/html/htmlComponentModule';\nimport LabelComponentModule from '../components/label/labelComponentModule';\nimport MatchComponentModule from '../components/match/matchComponentModule';\nimport MultipleChoiceComponentModule from '../components/multipleChoice/multipleChoiceComponentModule';\nimport NodeController from './node/nodeController';\nimport NodeService from '../services/nodeService';\nimport NotebookService from '../services/notebookService';\nimport NotificationService from '../services/notificationService';\nimport OpenResponseComponentModule from '../components/openResponse/openResponseComponentModule';\nimport OutsideURLComponentModule from '../components/outsideURL/outsideURLComponentModule';\nimport ProjectAssetController from './asset/projectAssetController';\nimport ProjectAssetService from '../services/projectAssetService';\nimport ProjectController from './project/projectController';\nimport ProjectHistoryController from './history/projectHistoryController';\nimport ProjectService from '../services/projectService';\nimport SessionService from '../services/sessionService';\nimport StudentAssetService from '../services/studentAssetService';\nimport StudentDataService from '../services/studentDataService';\nimport StudentStatusService from '../services/studentStatusService';\nimport StudentWebSocketService from '../services/studentWebSocketService';\nimport TableComponentModule from '../components/table/tableComponentModule';\nimport TeacherDataService from '../services/teacherDataService';\nimport UtilService from '../services/utilService';\n\nlet mainModule = angular.module('authoring', [\n angularDragula(angular),\n 'angularMoment',\n 'angular-toArrayFilter',\n 'audioOscillatorComponentModule',\n 'conceptMapComponentModule',\n 'directives',\n 'discussionComponentModule',\n 'drawComponentModule',\n 'embeddedComponentModule',\n 'filters',\n 'graphComponentModule',\n 'highcharts-ng',\n 'htmlComponentModule',\n 'labelComponentModule',\n 'matchComponentModule',\n 'multipleChoiceComponentModule',\n 'ngAnimate',\n 'ngAria',\n 'ngFileUpload',\n 'ngMaterial',\n 'ngSanitize',\n 'ngWebSocket',\n 'openResponseComponentModule',\n 'outsideURLComponentModule',\n 'pascalprecht.translate',\n 'tableComponentModule',\n 'ui.router'\n])\n .service(AnnotationService.name, AnnotationService)\n .service(AuthorWebSocketService.name, AuthorWebSocketService)\n .service(ConfigService.name, ConfigService)\n .service(CRaterService.name, CRaterService)\n .service(NodeService.name, NodeService)\n .service(NotebookService.name, NotebookService)\n .service(NotificationService.name, NotificationService)\n .service(ProjectService.name, ProjectService)\n .service(ProjectAssetService.name, ProjectAssetService)\n .service(SessionService.name, SessionService)\n .service(StudentAssetService.name, StudentAssetService)\n .service(StudentDataService.name, StudentDataService)\n .service(StudentStatusService.name, StudentStatusService)\n .service(StudentWebSocketService.name, StudentWebSocketService)\n .service(TeacherDataService.name, TeacherDataService)\n .service(UtilService.name, UtilService)\n .controller(AuthoringToolController.name, AuthoringToolController)\n .controller(AuthoringToolMainController.name, AuthoringToolMainController)\n .controller(AuthoringToolNewProjectController.name, AuthoringToolNewProjectController)\n .controller(NodeController.name, NodeController)\n .controller(ProjectAssetController.name, ProjectAssetController)\n .controller(ProjectController.name, ProjectController)\n .controller(ProjectHistoryController.name, ProjectHistoryController)\n .config(['$urlRouterProvider',\n '$stateProvider',\n '$translateProvider',\n '$translatePartialLoaderProvider',\n '$controllerProvider',\n '$mdThemingProvider',\n function($urlRouterProvider,\n $stateProvider,\n $translateProvider,\n $translatePartialLoaderProvider,\n $controllerProvider,\n $mdThemingProvider) {\n\n $urlRouterProvider.otherwise('/');\n\n $stateProvider\n .state('root', {\n url: '',\n abstract: true,\n templateUrl: 'wise5/authoringTool/authoringTool.html',\n controller: 'AuthoringToolController',\n controllerAs: 'authoringToolController',\n resolve: {\n }\n })\n .state('root.main', {\n url: '/',\n templateUrl: 'wise5/authoringTool/main/main.html',\n controller: 'AuthoringToolMainController',\n controllerAs: 'authoringToolMainController',\n resolve: {\n config: (ConfigService) => {\n var configURL = window.configURL;\n\n return ConfigService.retrieveConfig(configURL);\n },\n language: ($translate, ConfigService, config) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n sessionTimers: (SessionService, config) => {\n return SessionService.initializeSession();\n }\n }\n })\n .state('root.new', {\n url: '/new',\n templateUrl: 'wise5/authoringTool/main/new.html',\n controller: 'AuthoringToolNewProjectController',\n controllerAs: 'authoringToolNewProjectController',\n resolve: {\n config: (ConfigService) => {\n var configURL = window.configURL;\n\n return ConfigService.retrieveConfig(configURL);\n },\n language: ($translate, ConfigService, config) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n sessionTimers: (SessionService, config) => {\n return SessionService.initializeSession();\n }\n }\n })\n .state('root.project', {\n url: '/project/:projectId',\n templateUrl: 'wise5/authoringTool/project/project.html',\n controller: 'ProjectController',\n controllerAs: 'projectController',\n resolve: {\n projectConfig: (ConfigService, $stateParams) => {\n var configURL = window.configURL + '/' + $stateParams.projectId;\n\n return ConfigService.retrieveConfig(configURL);\n },\n project: (ProjectService, projectConfig) => {\n return ProjectService.retrieveProject();\n },\n projectAssets: (ProjectAssetService, projectConfig) => {\n return ProjectAssetService.retrieveProjectAssets();\n },\n language: ($translate, ConfigService, projectConfig) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n sessionTimers: (SessionService, projectConfig) => {\n return SessionService.initializeSession();\n }\n /*,\n webSocket: (AuthorWebSocketService, projectConfig, $stateParams) => {\n return AuthorWebSocketService.initialize($stateParams.projectId);\n }\n */\n }\n })\n .state('root.project.node', {\n url: '/node/:nodeId',\n templateUrl: 'wise5/authoringTool/node/node.html',\n controller: 'NodeController',\n controllerAs: 'nodeController',\n resolve: {\n load: () => {\n\n }\n }\n })\n .state('root.project.asset', {\n url: '/asset',\n templateUrl: 'wise5/authoringTool/asset/asset.html',\n controller: 'ProjectAssetController',\n controllerAs: 'projectAssetController',\n resolve: {\n }\n })\n .state('root.project.history', {\n url: '/history',\n templateUrl: 'wise5/authoringTool/history/history.html',\n controller: 'ProjectHistoryController',\n controllerAs: 'projectHistoryController',\n resolve: {\n }\n });\n\n // Set up Translations\n $translatePartialLoaderProvider.addPart('common');\n $translatePartialLoaderProvider.addPart('authoringTool');\n $translateProvider.useLoader('$translatePartialLoader', {\n urlTemplate: 'wise5/i18n/{part}/i18n_{lang}.json'\n });\n $translateProvider.fallbackLanguage(['en']);\n $translateProvider.registerAvailableLanguageKeys(['en','es','ja','ko','pt','tr','zh_CN'], {\n 'en_US': 'en',\n 'en_UK': 'en'\n });\n $translateProvider.useSanitizeValueStrategy('escape');\n\n // ngMaterial default theme configuration\n // TODO: make dynamic and support alternate themes; allow projects to specify theme parameters and settings\n $mdThemingProvider.definePalette('primary', {\n '50': 'e1f0f4',\n '100': 'b8dbe4',\n '200': '8ec6d4',\n '300': '5faec2',\n '400': '3d9db5',\n '500': '1c8ca8',\n '600': '197f98',\n '700': '167188',\n '800': '136377',\n '900': '0e4957',\n 'A100': 'abf3ff',\n 'A200': '66e2ff',\n 'A400': '17bee5',\n 'A700': '00A1C6',\n 'contrastDefaultColor': 'light', // whether, by default, text (contrast)\n // on this palette should be dark or light\n 'contrastDarkColors': ['50', '100', //hues which contrast should be 'dark' by default\n '200', '300', 'A100'],\n 'contrastLightColors': undefined // could also specify this if default was 'dark'\n });\n\n $mdThemingProvider.definePalette('accent', {\n '50': 'fde9e6',\n '100': 'fbcbc4',\n '200': 'f8aca1',\n '300': 'f4897b',\n '400': 'f2705f',\n '500': 'f05843',\n '600': 'da503c',\n '700': 'c34736',\n '800': 'aa3e2f',\n '900': '7d2e23',\n 'A100': 'ff897d',\n 'A200': 'ff7061',\n 'A400': 'ff3829',\n 'A700': 'cc1705',\n 'contrastDefaultColor': 'light',\n 'contrastDarkColors': ['50', '100',\n '200', '300', 'A100'],\n 'contrastLightColors': undefined\n });\n\n $mdThemingProvider.theme('default')\n .primaryPalette('primary')\n .accentPalette('accent', {\n 'default': '500'\n })\n .warnPalette('red', {\n 'default': 'A700'\n });\n\n var lightMap = $mdThemingProvider.extendPalette('grey', {\n 'A100': 'ffffff'\n });\n $mdThemingProvider.definePalette('light', lightMap);\n\n $mdThemingProvider.theme('light')\n .primaryPalette('light', {\n 'default': 'A100'\n })\n .accentPalette('primary');\n\n $mdThemingProvider.setDefaultTheme('default');\n }]);\n\nexport default mainModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/classroomMonitor/main.es6 b/src/main/webapp/wise5/classroomMonitor/main.es6 index a8c77fd72c..66021ba459 100644 --- a/src/main/webapp/wise5/classroomMonitor/main.es6 +++ b/src/main/webapp/wise5/classroomMonitor/main.es6 @@ -2,6 +2,7 @@ import $ from 'jquery'; import angular from 'angular'; +import angularDragula from 'angular-dragula'; import angularMoment from 'angular-moment'; import angularToArrayFilter from 'lib/angular-toArrayFilter/toArrayFilter'; import angularUIRouter from 'angular-ui-router'; @@ -12,40 +13,29 @@ import angularTranslate from 'angular-translate'; import angularTranslateLoaderPartial from 'angular-translate-loader-partial'; import ngWebSocket from 'angular-websocket'; import AnnotationService from '../services/annotationService'; -import AudioOscillatorController from '../components/audioOscillator/audioOscillatorController'; -import AudioOscillatorService from '../components/audioOscillator/audioOscillatorService'; +import AudioOscillatorComponentModule from '../components/audioOscillator/audioOscillatorComponentModule'; import ClassroomMonitorController from './classroomMonitorController'; -import ConceptMapController from '../components/conceptMap/conceptMapController'; -import ConceptMapService from '../components/conceptMap/conceptMapService'; +import ConceptMapComponentModule from '../components/conceptMap/conceptMapComponentModule'; import ConfigService from '../services/configService'; import CRaterService from '../services/cRaterService'; import Directives from '../directives/directives'; -import DiscussionController from '../components/discussion/discussionController'; -import DiscussionService from '../components/discussion/discussionService'; -import DrawController from '../components/draw/drawController'; -import DrawService from '../components/draw/drawService'; -import EmbeddedController from '../components/embedded/embeddedController'; -import EmbeddedService from '../components/embedded/embeddedService'; -import GraphController from '../components/graph/graphController'; -import GraphService from '../components/graph/graphService'; +import DiscussionComponentModule from '../components/discussion/discussionComponentModule'; +import DrawComponentModule from '../components/draw/drawComponentModule'; +import EmbeddedComponentModule from '../components/embedded/embeddedComponentModule'; +import GraphComponentModule from '../components/graph/graphComponentModule'; import Highcharts from '../lib/highcharts@4.2.1'; import highchartsng from 'highcharts-ng'; -import HTMLController from '../components/html/htmlController'; -import LabelController from '../components/label/labelController'; -import LabelService from '../components/label/labelService'; -import MatchController from '../components/match/matchController'; -import MatchService from '../components/match/matchService'; -import MultipleChoiceController from '../components/multipleChoice/multipleChoiceController'; -import MultipleChoiceService from '../components/multipleChoice/multipleChoiceService'; +import HTMLComponentModule from '../components/html/htmlComponentModule'; +import LabelComponentModule from '../components/label/labelComponentModule'; +import MatchComponentModule from '../components/match/matchComponentModule'; +import MultipleChoiceComponentModule from '../components/multipleChoice/multipleChoiceComponentModule'; import NodeProgressController from './nodeProgress/nodeProgressController'; import NodeGradingController from './nodeGrading/nodeGradingController'; import NodeService from '../services/nodeService'; import NotebookService from '../services/notebookService'; import NotificationService from '../services/notificationService'; -import OpenResponseController from '../components/openResponse/openResponseController'; -import OpenResponseService from '../components/openResponse/openResponseService'; -import OutsideURLController from '../components/outsideURL/outsideURLController'; -import OutsideURLService from '../components/outsideURL/outsideURLService'; +import OpenResponseComponentModule from '../components/openResponse/openResponseComponentModule'; +import OutsideURLComponentModule from '../components/outsideURL/outsideURLComponentModule'; import ProjectService from '../services/projectService'; import SessionService from '../services/sessionService'; import StudentAssetService from '../services/studentAssetService'; @@ -54,71 +44,59 @@ import StudentGradingController from './studentGrading/studentGradingController' import StudentProgressController from './studentProgress/studentProgressController'; import StudentStatusService from '../services/studentStatusService'; import StudentWebSocketService from '../services/studentWebSocketService'; -import TableController from '../components/table/tableController'; -import TableService from '../components/table/tableService'; +import TableComponentModule from '../components/table/tableComponentModule'; import TeacherDataService from '../services/teacherDataService'; import TeacherWebSocketService from '../services/teacherWebSocketService'; import UtilService from '../services/utilService'; let mainModule = angular.module('classroomMonitor', [ + angularDragula(angular), 'angularMoment', 'angular-toArrayFilter', + 'audioOscillatorComponentModule', + 'conceptMapComponentModule', 'directives', + 'discussionComponentModule', + 'drawComponentModule', + 'embeddedComponentModule', + 'graphComponentModule', 'highcharts-ng', + 'htmlComponentModule', + 'labelComponentModule', + 'matchComponentModule', + 'multipleChoiceComponentModule', 'ngAnimate', 'ngAria', 'ngFileUpload', 'ngMaterial', 'ngSanitize', 'ngWebSocket', + 'openResponseComponentModule', + 'outsideURLComponentModule', 'pascalprecht.translate', + 'tableComponentModule', 'ui.router' ]) .service(AnnotationService.name, AnnotationService) - .service(AudioOscillatorService.name, AudioOscillatorService) - .service(ConceptMapService.name, ConceptMapService) .service(ConfigService.name, ConfigService) .service(CRaterService.name, CRaterService) - .service(DiscussionService.name, DiscussionService) - .service(DrawService.name, DrawService) - .service(EmbeddedService.name, EmbeddedService) - .service(GraphService.name, GraphService) - .service(LabelService.name, LabelService) - .service(MatchService.name, MatchService) - .service(MultipleChoiceService.name, MultipleChoiceService) .service(NodeService.name, NodeService) .service(NotebookService.name, NotebookService) .service(NotificationService.name, NotificationService) - .service(OpenResponseService.name, OpenResponseService) - .service(OutsideURLService.name, OutsideURLService) .service(ProjectService.name, ProjectService) .service(SessionService.name, SessionService) .service(StudentAssetService.name, StudentAssetService) .service(StudentDataService.name, StudentDataService) .service(StudentStatusService.name, StudentStatusService) .service(StudentWebSocketService.name, StudentWebSocketService) - .service(TableService.name, TableService) .service(TeacherDataService.name, TeacherDataService) .service(TeacherWebSocketService.name, TeacherWebSocketService) .service(UtilService.name, UtilService) - .controller(AudioOscillatorController.name, AudioOscillatorController) .controller(ClassroomMonitorController.name, ClassroomMonitorController) - .controller(ConceptMapController.name, ConceptMapController) - .controller(DiscussionController.name, DiscussionController) - .controller(DrawController.name, DrawController) - .controller(EmbeddedController.name, EmbeddedController) - .controller(GraphController.name, GraphController) - .controller(HTMLController.name, HTMLController) - .controller(LabelController.name, LabelController) - .controller(MatchController.name, MatchController) - .controller(MultipleChoiceController.name, MultipleChoiceController) .controller(NodeGradingController.name, NodeGradingController) .controller(NodeProgressController.name, NodeProgressController) - .controller(OpenResponseController.name, OpenResponseController) - .controller(OutsideURLController.name, OutsideURLController) .controller(StudentGradingController.name, StudentGradingController) .controller(StudentProgressController.name, StudentProgressController) - .controller(TableController.name, TableController) .config([ '$urlRouterProvider', '$stateProvider', diff --git a/src/main/webapp/wise5/classroomMonitor/main.js b/src/main/webapp/wise5/classroomMonitor/main.js index d5383ae856..5b3b787367 100644 --- a/src/main/webapp/wise5/classroomMonitor/main.js +++ b/src/main/webapp/wise5/classroomMonitor/main.js @@ -12,6 +12,10 @@ var _angular = require('angular'); var _angular2 = _interopRequireDefault(_angular); +var _angularDragula = require('angular-dragula'); + +var _angularDragula2 = _interopRequireDefault(_angularDragula); + var _angularMoment = require('angular-moment'); var _angularMoment2 = _interopRequireDefault(_angularMoment); @@ -52,25 +56,17 @@ var _annotationService = require('../services/annotationService'); var _annotationService2 = _interopRequireDefault(_annotationService); -var _audioOscillatorController = require('../components/audioOscillator/audioOscillatorController'); - -var _audioOscillatorController2 = _interopRequireDefault(_audioOscillatorController); - -var _audioOscillatorService = require('../components/audioOscillator/audioOscillatorService'); +var _audioOscillatorComponentModule = require('../components/audioOscillator/audioOscillatorComponentModule'); -var _audioOscillatorService2 = _interopRequireDefault(_audioOscillatorService); +var _audioOscillatorComponentModule2 = _interopRequireDefault(_audioOscillatorComponentModule); var _classroomMonitorController = require('./classroomMonitorController'); var _classroomMonitorController2 = _interopRequireDefault(_classroomMonitorController); -var _conceptMapController = require('../components/conceptMap/conceptMapController'); +var _conceptMapComponentModule = require('../components/conceptMap/conceptMapComponentModule'); -var _conceptMapController2 = _interopRequireDefault(_conceptMapController); - -var _conceptMapService = require('../components/conceptMap/conceptMapService'); - -var _conceptMapService2 = _interopRequireDefault(_conceptMapService); +var _conceptMapComponentModule2 = _interopRequireDefault(_conceptMapComponentModule); var _configService = require('../services/configService'); @@ -84,37 +80,21 @@ var _directives = require('../directives/directives'); var _directives2 = _interopRequireDefault(_directives); -var _discussionController = require('../components/discussion/discussionController'); - -var _discussionController2 = _interopRequireDefault(_discussionController); - -var _discussionService = require('../components/discussion/discussionService'); - -var _discussionService2 = _interopRequireDefault(_discussionService); - -var _drawController = require('../components/draw/drawController'); - -var _drawController2 = _interopRequireDefault(_drawController); - -var _drawService = require('../components/draw/drawService'); - -var _drawService2 = _interopRequireDefault(_drawService); +var _discussionComponentModule = require('../components/discussion/discussionComponentModule'); -var _embeddedController = require('../components/embedded/embeddedController'); +var _discussionComponentModule2 = _interopRequireDefault(_discussionComponentModule); -var _embeddedController2 = _interopRequireDefault(_embeddedController); +var _drawComponentModule = require('../components/draw/drawComponentModule'); -var _embeddedService = require('../components/embedded/embeddedService'); +var _drawComponentModule2 = _interopRequireDefault(_drawComponentModule); -var _embeddedService2 = _interopRequireDefault(_embeddedService); +var _embeddedComponentModule = require('../components/embedded/embeddedComponentModule'); -var _graphController = require('../components/graph/graphController'); +var _embeddedComponentModule2 = _interopRequireDefault(_embeddedComponentModule); -var _graphController2 = _interopRequireDefault(_graphController); +var _graphComponentModule = require('../components/graph/graphComponentModule'); -var _graphService = require('../components/graph/graphService'); - -var _graphService2 = _interopRequireDefault(_graphService); +var _graphComponentModule2 = _interopRequireDefault(_graphComponentModule); var _highcharts = require('../lib/highcharts@4.2.1'); @@ -124,33 +104,21 @@ var _highchartsNg = require('highcharts-ng'); var _highchartsNg2 = _interopRequireDefault(_highchartsNg); -var _htmlController = require('../components/html/htmlController'); - -var _htmlController2 = _interopRequireDefault(_htmlController); - -var _labelController = require('../components/label/labelController'); - -var _labelController2 = _interopRequireDefault(_labelController); - -var _labelService = require('../components/label/labelService'); - -var _labelService2 = _interopRequireDefault(_labelService); - -var _matchController = require('../components/match/matchController'); +var _htmlComponentModule = require('../components/html/htmlComponentModule'); -var _matchController2 = _interopRequireDefault(_matchController); +var _htmlComponentModule2 = _interopRequireDefault(_htmlComponentModule); -var _matchService = require('../components/match/matchService'); +var _labelComponentModule = require('../components/label/labelComponentModule'); -var _matchService2 = _interopRequireDefault(_matchService); +var _labelComponentModule2 = _interopRequireDefault(_labelComponentModule); -var _multipleChoiceController = require('../components/multipleChoice/multipleChoiceController'); +var _matchComponentModule = require('../components/match/matchComponentModule'); -var _multipleChoiceController2 = _interopRequireDefault(_multipleChoiceController); +var _matchComponentModule2 = _interopRequireDefault(_matchComponentModule); -var _multipleChoiceService = require('../components/multipleChoice/multipleChoiceService'); +var _multipleChoiceComponentModule = require('../components/multipleChoice/multipleChoiceComponentModule'); -var _multipleChoiceService2 = _interopRequireDefault(_multipleChoiceService); +var _multipleChoiceComponentModule2 = _interopRequireDefault(_multipleChoiceComponentModule); var _nodeProgressController = require('./nodeProgress/nodeProgressController'); @@ -172,21 +140,13 @@ var _notificationService = require('../services/notificationService'); var _notificationService2 = _interopRequireDefault(_notificationService); -var _openResponseController = require('../components/openResponse/openResponseController'); +var _openResponseComponentModule = require('../components/openResponse/openResponseComponentModule'); -var _openResponseController2 = _interopRequireDefault(_openResponseController); +var _openResponseComponentModule2 = _interopRequireDefault(_openResponseComponentModule); -var _openResponseService = require('../components/openResponse/openResponseService'); +var _outsideURLComponentModule = require('../components/outsideURL/outsideURLComponentModule'); -var _openResponseService2 = _interopRequireDefault(_openResponseService); - -var _outsideURLController = require('../components/outsideURL/outsideURLController'); - -var _outsideURLController2 = _interopRequireDefault(_outsideURLController); - -var _outsideURLService = require('../components/outsideURL/outsideURLService'); - -var _outsideURLService2 = _interopRequireDefault(_outsideURLService); +var _outsideURLComponentModule2 = _interopRequireDefault(_outsideURLComponentModule); var _projectService = require('../services/projectService'); @@ -220,13 +180,9 @@ var _studentWebSocketService = require('../services/studentWebSocketService'); var _studentWebSocketService2 = _interopRequireDefault(_studentWebSocketService); -var _tableController = require('../components/table/tableController'); - -var _tableController2 = _interopRequireDefault(_tableController); - -var _tableService = require('../components/table/tableService'); +var _tableComponentModule = require('../components/table/tableComponentModule'); -var _tableService2 = _interopRequireDefault(_tableService); +var _tableComponentModule2 = _interopRequireDefault(_tableComponentModule); var _teacherDataService = require('../services/teacherDataService'); @@ -242,7 +198,7 @@ var _utilService2 = _interopRequireDefault(_utilService); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var mainModule = _angular2.default.module('classroomMonitor', ['angularMoment', 'angular-toArrayFilter', 'directives', 'highcharts-ng', 'ngAnimate', 'ngAria', 'ngFileUpload', 'ngMaterial', 'ngSanitize', 'ngWebSocket', 'pascalprecht.translate', 'ui.router']).service(_annotationService2.default.name, _annotationService2.default).service(_audioOscillatorService2.default.name, _audioOscillatorService2.default).service(_conceptMapService2.default.name, _conceptMapService2.default).service(_configService2.default.name, _configService2.default).service(_cRaterService2.default.name, _cRaterService2.default).service(_discussionService2.default.name, _discussionService2.default).service(_drawService2.default.name, _drawService2.default).service(_embeddedService2.default.name, _embeddedService2.default).service(_graphService2.default.name, _graphService2.default).service(_labelService2.default.name, _labelService2.default).service(_matchService2.default.name, _matchService2.default).service(_multipleChoiceService2.default.name, _multipleChoiceService2.default).service(_nodeService2.default.name, _nodeService2.default).service(_notebookService2.default.name, _notebookService2.default).service(_notificationService2.default.name, _notificationService2.default).service(_openResponseService2.default.name, _openResponseService2.default).service(_outsideURLService2.default.name, _outsideURLService2.default).service(_projectService2.default.name, _projectService2.default).service(_sessionService2.default.name, _sessionService2.default).service(_studentAssetService2.default.name, _studentAssetService2.default).service(_studentDataService2.default.name, _studentDataService2.default).service(_studentStatusService2.default.name, _studentStatusService2.default).service(_studentWebSocketService2.default.name, _studentWebSocketService2.default).service(_tableService2.default.name, _tableService2.default).service(_teacherDataService2.default.name, _teacherDataService2.default).service(_teacherWebSocketService2.default.name, _teacherWebSocketService2.default).service(_utilService2.default.name, _utilService2.default).controller(_audioOscillatorController2.default.name, _audioOscillatorController2.default).controller(_classroomMonitorController2.default.name, _classroomMonitorController2.default).controller(_conceptMapController2.default.name, _conceptMapController2.default).controller(_discussionController2.default.name, _discussionController2.default).controller(_drawController2.default.name, _drawController2.default).controller(_embeddedController2.default.name, _embeddedController2.default).controller(_graphController2.default.name, _graphController2.default).controller(_htmlController2.default.name, _htmlController2.default).controller(_labelController2.default.name, _labelController2.default).controller(_matchController2.default.name, _matchController2.default).controller(_multipleChoiceController2.default.name, _multipleChoiceController2.default).controller(_nodeGradingController2.default.name, _nodeGradingController2.default).controller(_nodeProgressController2.default.name, _nodeProgressController2.default).controller(_openResponseController2.default.name, _openResponseController2.default).controller(_outsideURLController2.default.name, _outsideURLController2.default).controller(_studentGradingController2.default.name, _studentGradingController2.default).controller(_studentProgressController2.default.name, _studentProgressController2.default).controller(_tableController2.default.name, _tableController2.default).config(['$urlRouterProvider', '$stateProvider', '$translateProvider', '$translatePartialLoaderProvider', '$controllerProvider', '$mdThemingProvider', function ($urlRouterProvider, $stateProvider, $translateProvider, $translatePartialLoaderProvider, $controllerProvider, $mdThemingProvider) { +var mainModule = _angular2.default.module('classroomMonitor', [(0, _angularDragula2.default)(_angular2.default), 'angularMoment', 'angular-toArrayFilter', 'audioOscillatorComponentModule', 'conceptMapComponentModule', 'directives', 'discussionComponentModule', 'drawComponentModule', 'embeddedComponentModule', 'graphComponentModule', 'highcharts-ng', 'htmlComponentModule', 'labelComponentModule', 'matchComponentModule', 'multipleChoiceComponentModule', 'ngAnimate', 'ngAria', 'ngFileUpload', 'ngMaterial', 'ngSanitize', 'ngWebSocket', 'openResponseComponentModule', 'outsideURLComponentModule', 'pascalprecht.translate', 'tableComponentModule', 'ui.router']).service(_annotationService2.default.name, _annotationService2.default).service(_configService2.default.name, _configService2.default).service(_cRaterService2.default.name, _cRaterService2.default).service(_nodeService2.default.name, _nodeService2.default).service(_notebookService2.default.name, _notebookService2.default).service(_notificationService2.default.name, _notificationService2.default).service(_projectService2.default.name, _projectService2.default).service(_sessionService2.default.name, _sessionService2.default).service(_studentAssetService2.default.name, _studentAssetService2.default).service(_studentDataService2.default.name, _studentDataService2.default).service(_studentStatusService2.default.name, _studentStatusService2.default).service(_studentWebSocketService2.default.name, _studentWebSocketService2.default).service(_teacherDataService2.default.name, _teacherDataService2.default).service(_teacherWebSocketService2.default.name, _teacherWebSocketService2.default).service(_utilService2.default.name, _utilService2.default).controller(_classroomMonitorController2.default.name, _classroomMonitorController2.default).controller(_nodeGradingController2.default.name, _nodeGradingController2.default).controller(_nodeProgressController2.default.name, _nodeProgressController2.default).controller(_studentGradingController2.default.name, _studentGradingController2.default).controller(_studentProgressController2.default.name, _studentProgressController2.default).config(['$urlRouterProvider', '$stateProvider', '$translateProvider', '$translatePartialLoaderProvider', '$controllerProvider', '$mdThemingProvider', function ($urlRouterProvider, $stateProvider, $translateProvider, $translatePartialLoaderProvider, $controllerProvider, $mdThemingProvider) { $urlRouterProvider.otherwise('/studentProgress'); diff --git a/src/main/webapp/wise5/classroomMonitor/main.js.map b/src/main/webapp/wise5/classroomMonitor/main.js.map index 1f36b14c68..4903ee2940 100644 --- a/src/main/webapp/wise5/classroomMonitor/main.js.map +++ b/src/main/webapp/wise5/classroomMonitor/main.js.map @@ -1 +1 @@ -{"version":3,"sources":["main.es6"],"names":["mainModule","module","service","name","controller","config","$urlRouterProvider","$stateProvider","$translateProvider","$translatePartialLoaderProvider","$controllerProvider","$mdThemingProvider","otherwise","state","url","abstract","templateUrl","controllerAs","resolve","ConfigService","configURL","window","retrieveConfig","project","ProjectService","retrieveProject","runStatus","TeacherDataService","retrieveRunStatus","studentStatuses","StudentStatusService","retrieveStudentStatuses","notifications","NotificationService","retrieveNotifications","getWorkgroupId","webSocket","TeacherWebSocketService","initialize","language","$translate","locale","getLocale","use","sessionTimers","SessionService","initializeSession","studentData","$stateParams","retrieveAnnotations","retrieveStudentDataByWorkgroupId","workgroupId","retrieveStudentDataByNodeId","nodeId","addPart","useLoader","urlTemplate","fallbackLanguage","registerAvailableLanguageKeys","useSanitizeValueStrategy","definePalette","undefined","theme","primaryPalette","accentPalette","warnPalette","lightMap","extendPalette","setDefaultTheme"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;AAEA,IAAIA,aAAa,kBAAQC,MAAR,CAAe,kBAAf,EAAmC,CAC5C,eAD4C,EAE5C,uBAF4C,EAG5C,YAH4C,EAI5C,eAJ4C,EAK5C,WAL4C,EAM5C,QAN4C,E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K,KALxB;;AASA,QAAIC,WAAWvD,mBAAmBwD,aAAnB,CAAiC,MAAjC,EAAyC;AACpD,gBAAQ;AAD4C,KAAzC,CAAf;AAGAxD,uBAAmBiD,aAAnB,CAAiC,OAAjC,EAA0CM,QAA1C;;AAEAvD,uBAAmBmD,KAAnB,CAAyB,OAAzB,EACKC,cADL,CACoB,OADpB,EAC6B;AACrB,mBAAW;AADU,KAD7B,EAIKC,aAJL,CAImB,SAJnB;;AAMArD,uBAAmByD,eAAnB,CAAmC,SAAnC;AACH,CAjLG,CA3DK,CAAjB;;kBA8OepE,U","file":"main.js","sourcesContent":["'use strict';\n\nimport $ from 'jquery';\nimport angular from 'angular';\nimport angularMoment from 'angular-moment';\nimport angularToArrayFilter from 'lib/angular-toArrayFilter/toArrayFilter';\nimport angularUIRouter from 'angular-ui-router';\nimport ngFileUpload from 'ng-file-upload';\nimport ngMaterial from 'angular-material';\nimport angularSanitize from 'angular-sanitize';\nimport angularTranslate from 'angular-translate';\nimport angularTranslateLoaderPartial from 'angular-translate-loader-partial';\nimport ngWebSocket from 'angular-websocket';\nimport AnnotationService from '../services/annotationService';\nimport AudioOscillatorController from '../components/audioOscillator/audioOscillatorController';\nimport AudioOscillatorService from '../components/audioOscillator/audioOscillatorService';\nimport ClassroomMonitorController from './classroomMonitorController';\nimport ConceptMapController from '../components/conceptMap/conceptMapController';\nimport ConceptMapService from '../components/conceptMap/conceptMapService';\nimport ConfigService from '../services/configService';\nimport CRaterService from '../services/cRaterService';\nimport Directives from '../directives/directives';\nimport DiscussionController from '../components/discussion/discussionController';\nimport DiscussionService from '../components/discussion/discussionService';\nimport DrawController from '../components/draw/drawController';\nimport DrawService from '../components/draw/drawService';\nimport EmbeddedController from '../components/embedded/embeddedController';\nimport EmbeddedService from '../components/embedded/embeddedService';\nimport GraphController from '../components/graph/graphController';\nimport GraphService from '../components/graph/graphService';\nimport Highcharts from '../lib/highcharts@4.2.1';\nimport highchartsng from 'highcharts-ng';\nimport HTMLController from '../components/html/htmlController';\nimport LabelController from '../components/label/labelController';\nimport LabelService from '../components/label/labelService';\nimport MatchController from '../components/match/matchController';\nimport MatchService from '../components/match/matchService';\nimport MultipleChoiceController from '../components/multipleChoice/multipleChoiceController';\nimport MultipleChoiceService from '../components/multipleChoice/multipleChoiceService';\nimport NodeProgressController from './nodeProgress/nodeProgressController';\nimport NodeGradingController from './nodeGrading/nodeGradingController';\nimport NodeService from '../services/nodeService';\nimport NotebookService from '../services/notebookService';\nimport NotificationService from '../services/notificationService';\nimport OpenResponseController from '../components/openResponse/openResponseController';\nimport OpenResponseService from '../components/openResponse/openResponseService';\nimport OutsideURLController from '../components/outsideURL/outsideURLController';\nimport OutsideURLService from '../components/outsideURL/outsideURLService';\nimport ProjectService from '../services/projectService';\nimport SessionService from '../services/sessionService';\nimport StudentAssetService from '../services/studentAssetService';\nimport StudentDataService from '../services/studentDataService';\nimport StudentGradingController from './studentGrading/studentGradingController';\nimport StudentProgressController from './studentProgress/studentProgressController';\nimport StudentStatusService from '../services/studentStatusService';\nimport StudentWebSocketService from '../services/studentWebSocketService';\nimport TableController from '../components/table/tableController';\nimport TableService from '../components/table/tableService';\nimport TeacherDataService from '../services/teacherDataService';\nimport TeacherWebSocketService from '../services/teacherWebSocketService';\nimport UtilService from '../services/utilService';\n\nlet mainModule = angular.module('classroomMonitor', [\n 'angularMoment',\n 'angular-toArrayFilter',\n 'directives',\n 'highcharts-ng',\n 'ngAnimate',\n 'ngAria',\n 'ngFileUpload',\n 'ngMaterial',\n 'ngSanitize',\n 'ngWebSocket',\n 'pascalprecht.translate',\n 'ui.router'\n ])\n .service(AnnotationService.name, AnnotationService)\n .service(AudioOscillatorService.name, AudioOscillatorService)\n .service(ConceptMapService.name, ConceptMapService)\n .service(ConfigService.name, ConfigService)\n .service(CRaterService.name, CRaterService)\n .service(DiscussionService.name, DiscussionService)\n .service(DrawService.name, DrawService)\n .service(EmbeddedService.name, EmbeddedService)\n .service(GraphService.name, GraphService)\n .service(LabelService.name, LabelService)\n .service(MatchService.name, MatchService)\n .service(MultipleChoiceService.name, MultipleChoiceService)\n .service(NodeService.name, NodeService)\n .service(NotebookService.name, NotebookService)\n .service(NotificationService.name, NotificationService)\n .service(OpenResponseService.name, OpenResponseService)\n .service(OutsideURLService.name, OutsideURLService)\n .service(ProjectService.name, ProjectService)\n .service(SessionService.name, SessionService)\n .service(StudentAssetService.name, StudentAssetService)\n .service(StudentDataService.name, StudentDataService)\n .service(StudentStatusService.name, StudentStatusService)\n .service(StudentWebSocketService.name, StudentWebSocketService)\n .service(TableService.name, TableService)\n .service(TeacherDataService.name, TeacherDataService)\n .service(TeacherWebSocketService.name, TeacherWebSocketService)\n .service(UtilService.name, UtilService)\n .controller(AudioOscillatorController.name, AudioOscillatorController)\n .controller(ClassroomMonitorController.name, ClassroomMonitorController)\n .controller(ConceptMapController.name, ConceptMapController)\n .controller(DiscussionController.name, DiscussionController)\n .controller(DrawController.name, DrawController)\n .controller(EmbeddedController.name, EmbeddedController)\n .controller(GraphController.name, GraphController)\n .controller(HTMLController.name, HTMLController)\n .controller(LabelController.name, LabelController)\n .controller(MatchController.name, MatchController)\n .controller(MultipleChoiceController.name, MultipleChoiceController)\n .controller(NodeGradingController.name, NodeGradingController)\n .controller(NodeProgressController.name, NodeProgressController)\n .controller(OpenResponseController.name, OpenResponseController)\n .controller(OutsideURLController.name, OutsideURLController)\n .controller(StudentGradingController.name, StudentGradingController)\n .controller(StudentProgressController.name, StudentProgressController)\n .controller(TableController.name, TableController)\n .config([\n '$urlRouterProvider',\n '$stateProvider',\n '$translateProvider',\n '$translatePartialLoaderProvider',\n '$controllerProvider',\n '$mdThemingProvider',\n function($urlRouterProvider,\n $stateProvider,\n $translateProvider,\n $translatePartialLoaderProvider,\n $controllerProvider,\n $mdThemingProvider) {\n\n $urlRouterProvider.otherwise('/studentProgress');\n\n $stateProvider\n .state('root', {\n url: '',\n abstract: true,\n templateUrl: 'wise5/classroomMonitor/classroomMonitor.html',\n controller: 'ClassroomMonitorController',\n controllerAs: 'classroomMonitorController',\n resolve: {\n config: function(ConfigService) {\n var configURL = window.configURL;\n\n return ConfigService.retrieveConfig(configURL);\n },\n project: function(ProjectService, config) {\n return ProjectService.retrieveProject();\n },\n runStatus: function(TeacherDataService, config) {\n return TeacherDataService.retrieveRunStatus();\n },\n studentStatuses: function(StudentStatusService, config) {\n return StudentStatusService.retrieveStudentStatuses();\n },\n notifications: function (NotificationService, ConfigService, studentStatuses, config, project) {\n return NotificationService.retrieveNotifications(ConfigService.getWorkgroupId());\n },\n webSocket: function(TeacherWebSocketService, config) {\n return TeacherWebSocketService.initialize();\n },\n language: ($translate, ConfigService, config) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n sessionTimers: (SessionService, config) => {\n return SessionService.initializeSession();\n }\n }\n })\n .state('root.studentProgress', {\n url: '/studentProgress',\n templateUrl: 'wise5/classroomMonitor/studentProgress/studentProgress.html',\n controller: 'StudentProgressController',\n controllerAs: 'studentProgressController',\n resolve: {\n studentData: function($stateParams, TeacherDataService, config) {\n return TeacherDataService.retrieveAnnotations();\n }\n }\n })\n .state('root.studentGrading', {\n url: '/studentGrading/:workgroupId',\n templateUrl: 'wise5/classroomMonitor/studentGrading/studentGrading.html',\n controller: 'StudentGradingController',\n controllerAs: 'studentGradingController',\n resolve: {\n studentData: function($stateParams, TeacherDataService, config) {\n return TeacherDataService.retrieveStudentDataByWorkgroupId($stateParams.workgroupId);\n }\n }\n })\n .state('root.nodeProgress', {\n url: '/nodeProgress',\n templateUrl: 'wise5/classroomMonitor/nodeProgress/nodeProgress.html',\n controller: 'NodeProgressController',\n controllerAs: 'nodeProgressController',\n resolve: {\n studentData: function($stateParams, TeacherDataService, config) {\n return TeacherDataService.retrieveAnnotations();\n }\n }\n })\n .state('root.nodeGrading', {\n url: '/nodeGrading/:nodeId',\n templateUrl: 'wise5/classroomMonitor/nodeGrading/nodeGrading.html',\n controller: 'NodeGradingController',\n controllerAs: 'nodeGradingController',\n resolve: {\n studentData: function($stateParams, TeacherDataService, config, project) {\n return TeacherDataService.retrieveStudentDataByNodeId($stateParams.nodeId);\n }\n }\n });\n\n // Set up Translations\n $translatePartialLoaderProvider.addPart('common');\n $translatePartialLoaderProvider.addPart('classroomMonitor');\n $translateProvider.useLoader('$translatePartialLoader', {\n urlTemplate: 'wise5/i18n/{part}/i18n_{lang}.json'\n });\n $translateProvider.fallbackLanguage(['en']);\n $translateProvider.registerAvailableLanguageKeys(['en','es','ja','ko','pt','tr','zh_CN'], {\n 'en_US': 'en',\n 'en_UK': 'en'\n });\n $translateProvider.useSanitizeValueStrategy('escape');\n\n // ngMaterial default theme configuration\n // TODO: make dynamic and support alternate themes; allow projects to specify theme parameters and settings\n $mdThemingProvider.definePalette('primary', {\n '50': 'e1f0f4',\n '100': 'b8dbe4',\n '200': '8ec6d4',\n '300': '5faec2',\n '400': '3d9db5',\n '500': '1c8ca8',\n '600': '197f98',\n '700': '167188',\n '800': '136377',\n '900': '0e4957',\n 'A100': 'abf3ff',\n 'A200': '66e2ff',\n 'A400': '17bee5',\n 'A700': '00A1C6',\n 'contrastDefaultColor': 'light', // whether, by default, text (contrast)\n // on this palette should be dark or light\n 'contrastDarkColors': ['50', '100', //hues which contrast should be 'dark' by default\n '200', '300', 'A100'],\n 'contrastLightColors': undefined // could also specify this if default was 'dark'\n });\n\n $mdThemingProvider.definePalette('accent', {\n '50': 'fde9e6',\n '100': 'fbcbc4',\n '200': 'f8aca1',\n '300': 'f4897b',\n '400': 'f2705f',\n '500': 'f05843',\n '600': 'da503c',\n '700': 'c34736',\n '800': 'aa3e2f',\n '900': '7d2e23',\n 'A100': 'ff897d',\n 'A200': 'ff7061',\n 'A400': 'ff3829',\n 'A700': 'cc1705',\n 'contrastDefaultColor': 'light',\n 'contrastDarkColors': ['50', '100',\n '200', '300', 'A100'],\n 'contrastLightColors': undefined\n });\n\n $mdThemingProvider.theme('default')\n .primaryPalette('primary')\n .accentPalette('accent', {\n 'default': '500'\n })\n .warnPalette('red', {\n 'default': 'A700'\n });\n\n var lightMap = $mdThemingProvider.extendPalette('grey', {\n 'A100': 'ffffff'\n });\n $mdThemingProvider.definePalette('light', lightMap);\n\n $mdThemingProvider.theme('light')\n .primaryPalette('light', {\n 'default': 'A100'\n })\n .accentPalette('primary');\n\n $mdThemingProvider.setDefaultTheme('default');\n }]);\n\nexport default mainModule;\n"]} \ No newline at end of file +{"version":3,"sources":["main.es6"],"names":["mainModule","module","service","name","controller","config","$urlRouterProvider","$stateProvider","$translateProvider","$translatePartialLoaderProvider","$controllerProvider","$mdThemingProvider","otherwise","state","url","abstract","templateUrl","controllerAs","resolve","ConfigService","configURL","window","retrieveConfig","project","ProjectService","retrieveProject","runStatus","TeacherDataService","retrieveRunStatus","studentStatuses","StudentStatusService","retrieveStudentStatuses","notifications","NotificationService","retrieveNotifications","getWorkgroupId","webSocket","TeacherWebSocketService","initialize","language","$translate","locale","getLocale","use","sessionTimers","SessionService","initializeSession","studentData","$stateParams","retrieveAnnotations","retrieveStudentDataByWorkgroupId","workgroupId","retrieveStudentDataByNodeId","nodeId","addPart","useLoader","urlTemplate","fallbackLanguage","registerAvailableLanguageKeys","useSanitizeValueStrategy","definePalette","undefined","theme","primaryPalette","accentPalette","warnPalette","lightMap","extendPalette","setDefaultTheme"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;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C,cAAM,QADiC;AAEvC,eAAO,QAFgC;AAGvC,eAAO,QAHgC;AAIvC,eAAO,QAJgC;AAKvC,eAAO,QALgC;AAMvC,eAAO,QANgC;AAOvC,eAAO,QAPgC;AAQvC,eAAO,QARgC;AASvC,eAAO,QATgC;AAUvC,eAAO,QAVgC;AAWvC,gBAAQ,QAX+B;AAYvC,gBAAQ,QAZ+B;AAavC,gBAAQ,QAb+B;AAcvC,gBAAQ,QAd+B;AAevC,gCAAwB,OAfe;AAgBvC,8BAAsB,CAAC,IAAD,EAAO,KAAP,EAClB,KADkB,EACX,KADW,EACJ,MADI,CAhBiB;AAkBvC,+BAAuBC;AAlBgB,KAA3C;;AAqBAlD,uBAAmBmD,KAAnB,CAAyB,SAAzB,EACKC,cADL,CACoB,SADpB,EAEKC,aAFL,CAEmB,QAFnB,EAE8B;AACtB,mBAAW;AADW,KAF9B,EAKKC,WALL,CAKiB,KALjB,EAKwB;AAChB,mBAAW;AADK,KALxB;;AASA,QAAIC,WAAWvD,mBAAmBwD,aAAnB,CAAiC,MAAjC,EAAyC;AACpD,gBAAQ;AAD4C,KAAzC,CAAf;AAGAxD,uBAAmBiD,aAAnB,CAAiC,OAAjC,EAA0CM,QAA1C;;AAEAvD,uBAAmBmD,KAAnB,CAAyB,OAAzB,EACKC,cADL,CACoB,OADpB,EAC6B;AACrB,mBAAW;AADU,KAD7B,EAIKC,aAJL,CAImB,SAJnB;;AAMArD,uBAAmByD,eAAnB,CAAmC,SAAnC;AACH,CAjLG,CAhDK,CAAjB;;kBAmOepE,U","file":"main.js","sourcesContent":["'use strict';\n\nimport $ from 'jquery';\nimport angular from 'angular';\nimport angularDragula from 'angular-dragula';\nimport angularMoment from 'angular-moment';\nimport angularToArrayFilter from 'lib/angular-toArrayFilter/toArrayFilter';\nimport angularUIRouter from 'angular-ui-router';\nimport ngFileUpload from 'ng-file-upload';\nimport ngMaterial from 'angular-material';\nimport angularSanitize from 'angular-sanitize';\nimport angularTranslate from 'angular-translate';\nimport angularTranslateLoaderPartial from 'angular-translate-loader-partial';\nimport ngWebSocket from 'angular-websocket';\nimport AnnotationService from '../services/annotationService';\nimport AudioOscillatorComponentModule from '../components/audioOscillator/audioOscillatorComponentModule';\nimport ClassroomMonitorController from './classroomMonitorController';\nimport ConceptMapComponentModule from '../components/conceptMap/conceptMapComponentModule';\nimport ConfigService from '../services/configService';\nimport CRaterService from '../services/cRaterService';\nimport Directives from '../directives/directives';\nimport DiscussionComponentModule from '../components/discussion/discussionComponentModule';\nimport DrawComponentModule from '../components/draw/drawComponentModule';\nimport EmbeddedComponentModule from '../components/embedded/embeddedComponentModule';\nimport GraphComponentModule from '../components/graph/graphComponentModule';\nimport Highcharts from '../lib/highcharts@4.2.1';\nimport highchartsng from 'highcharts-ng';\nimport HTMLComponentModule from '../components/html/htmlComponentModule';\nimport LabelComponentModule from '../components/label/labelComponentModule';\nimport MatchComponentModule from '../components/match/matchComponentModule';\nimport MultipleChoiceComponentModule from '../components/multipleChoice/multipleChoiceComponentModule';\nimport NodeProgressController from './nodeProgress/nodeProgressController';\nimport NodeGradingController from './nodeGrading/nodeGradingController';\nimport NodeService from '../services/nodeService';\nimport NotebookService from '../services/notebookService';\nimport NotificationService from '../services/notificationService';\nimport OpenResponseComponentModule from '../components/openResponse/openResponseComponentModule';\nimport OutsideURLComponentModule from '../components/outsideURL/outsideURLComponentModule';\nimport ProjectService from '../services/projectService';\nimport SessionService from '../services/sessionService';\nimport StudentAssetService from '../services/studentAssetService';\nimport StudentDataService from '../services/studentDataService';\nimport StudentGradingController from './studentGrading/studentGradingController';\nimport StudentProgressController from './studentProgress/studentProgressController';\nimport StudentStatusService from '../services/studentStatusService';\nimport StudentWebSocketService from '../services/studentWebSocketService';\nimport TableComponentModule from '../components/table/tableComponentModule';\nimport TeacherDataService from '../services/teacherDataService';\nimport TeacherWebSocketService from '../services/teacherWebSocketService';\nimport UtilService from '../services/utilService';\n\nlet mainModule = angular.module('classroomMonitor', [\n angularDragula(angular),\n 'angularMoment',\n 'angular-toArrayFilter',\n 'audioOscillatorComponentModule',\n 'conceptMapComponentModule',\n 'directives',\n 'discussionComponentModule',\n 'drawComponentModule',\n 'embeddedComponentModule',\n 'graphComponentModule',\n 'highcharts-ng',\n 'htmlComponentModule',\n 'labelComponentModule',\n 'matchComponentModule',\n 'multipleChoiceComponentModule',\n 'ngAnimate',\n 'ngAria',\n 'ngFileUpload',\n 'ngMaterial',\n 'ngSanitize',\n 'ngWebSocket',\n 'openResponseComponentModule',\n 'outsideURLComponentModule',\n 'pascalprecht.translate',\n 'tableComponentModule',\n 'ui.router'\n ])\n .service(AnnotationService.name, AnnotationService)\n .service(ConfigService.name, ConfigService)\n .service(CRaterService.name, CRaterService)\n .service(NodeService.name, NodeService)\n .service(NotebookService.name, NotebookService)\n .service(NotificationService.name, NotificationService)\n .service(ProjectService.name, ProjectService)\n .service(SessionService.name, SessionService)\n .service(StudentAssetService.name, StudentAssetService)\n .service(StudentDataService.name, StudentDataService)\n .service(StudentStatusService.name, StudentStatusService)\n .service(StudentWebSocketService.name, StudentWebSocketService)\n .service(TeacherDataService.name, TeacherDataService)\n .service(TeacherWebSocketService.name, TeacherWebSocketService)\n .service(UtilService.name, UtilService)\n .controller(ClassroomMonitorController.name, ClassroomMonitorController)\n .controller(NodeGradingController.name, NodeGradingController)\n .controller(NodeProgressController.name, NodeProgressController)\n .controller(StudentGradingController.name, StudentGradingController)\n .controller(StudentProgressController.name, StudentProgressController)\n .config([\n '$urlRouterProvider',\n '$stateProvider',\n '$translateProvider',\n '$translatePartialLoaderProvider',\n '$controllerProvider',\n '$mdThemingProvider',\n function($urlRouterProvider,\n $stateProvider,\n $translateProvider,\n $translatePartialLoaderProvider,\n $controllerProvider,\n $mdThemingProvider) {\n\n $urlRouterProvider.otherwise('/studentProgress');\n\n $stateProvider\n .state('root', {\n url: '',\n abstract: true,\n templateUrl: 'wise5/classroomMonitor/classroomMonitor.html',\n controller: 'ClassroomMonitorController',\n controllerAs: 'classroomMonitorController',\n resolve: {\n config: function(ConfigService) {\n var configURL = window.configURL;\n\n return ConfigService.retrieveConfig(configURL);\n },\n project: function(ProjectService, config) {\n return ProjectService.retrieveProject();\n },\n runStatus: function(TeacherDataService, config) {\n return TeacherDataService.retrieveRunStatus();\n },\n studentStatuses: function(StudentStatusService, config) {\n return StudentStatusService.retrieveStudentStatuses();\n },\n notifications: function (NotificationService, ConfigService, studentStatuses, config, project) {\n return NotificationService.retrieveNotifications(ConfigService.getWorkgroupId());\n },\n webSocket: function(TeacherWebSocketService, config) {\n return TeacherWebSocketService.initialize();\n },\n language: ($translate, ConfigService, config) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n sessionTimers: (SessionService, config) => {\n return SessionService.initializeSession();\n }\n }\n })\n .state('root.studentProgress', {\n url: '/studentProgress',\n templateUrl: 'wise5/classroomMonitor/studentProgress/studentProgress.html',\n controller: 'StudentProgressController',\n controllerAs: 'studentProgressController',\n resolve: {\n studentData: function($stateParams, TeacherDataService, config) {\n return TeacherDataService.retrieveAnnotations();\n }\n }\n })\n .state('root.studentGrading', {\n url: '/studentGrading/:workgroupId',\n templateUrl: 'wise5/classroomMonitor/studentGrading/studentGrading.html',\n controller: 'StudentGradingController',\n controllerAs: 'studentGradingController',\n resolve: {\n studentData: function($stateParams, TeacherDataService, config) {\n return TeacherDataService.retrieveStudentDataByWorkgroupId($stateParams.workgroupId);\n }\n }\n })\n .state('root.nodeProgress', {\n url: '/nodeProgress',\n templateUrl: 'wise5/classroomMonitor/nodeProgress/nodeProgress.html',\n controller: 'NodeProgressController',\n controllerAs: 'nodeProgressController',\n resolve: {\n studentData: function($stateParams, TeacherDataService, config) {\n return TeacherDataService.retrieveAnnotations();\n }\n }\n })\n .state('root.nodeGrading', {\n url: '/nodeGrading/:nodeId',\n templateUrl: 'wise5/classroomMonitor/nodeGrading/nodeGrading.html',\n controller: 'NodeGradingController',\n controllerAs: 'nodeGradingController',\n resolve: {\n studentData: function($stateParams, TeacherDataService, config, project) {\n return TeacherDataService.retrieveStudentDataByNodeId($stateParams.nodeId);\n }\n }\n });\n\n // Set up Translations\n $translatePartialLoaderProvider.addPart('common');\n $translatePartialLoaderProvider.addPart('classroomMonitor');\n $translateProvider.useLoader('$translatePartialLoader', {\n urlTemplate: 'wise5/i18n/{part}/i18n_{lang}.json'\n });\n $translateProvider.fallbackLanguage(['en']);\n $translateProvider.registerAvailableLanguageKeys(['en','es','ja','ko','pt','tr','zh_CN'], {\n 'en_US': 'en',\n 'en_UK': 'en'\n });\n $translateProvider.useSanitizeValueStrategy('escape');\n\n // ngMaterial default theme configuration\n // TODO: make dynamic and support alternate themes; allow projects to specify theme parameters and settings\n $mdThemingProvider.definePalette('primary', {\n '50': 'e1f0f4',\n '100': 'b8dbe4',\n '200': '8ec6d4',\n '300': '5faec2',\n '400': '3d9db5',\n '500': '1c8ca8',\n '600': '197f98',\n '700': '167188',\n '800': '136377',\n '900': '0e4957',\n 'A100': 'abf3ff',\n 'A200': '66e2ff',\n 'A400': '17bee5',\n 'A700': '00A1C6',\n 'contrastDefaultColor': 'light', // whether, by default, text (contrast)\n // on this palette should be dark or light\n 'contrastDarkColors': ['50', '100', //hues which contrast should be 'dark' by default\n '200', '300', 'A100'],\n 'contrastLightColors': undefined // could also specify this if default was 'dark'\n });\n\n $mdThemingProvider.definePalette('accent', {\n '50': 'fde9e6',\n '100': 'fbcbc4',\n '200': 'f8aca1',\n '300': 'f4897b',\n '400': 'f2705f',\n '500': 'f05843',\n '600': 'da503c',\n '700': 'c34736',\n '800': 'aa3e2f',\n '900': '7d2e23',\n 'A100': 'ff897d',\n 'A200': 'ff7061',\n 'A400': 'ff3829',\n 'A700': 'cc1705',\n 'contrastDefaultColor': 'light',\n 'contrastDarkColors': ['50', '100',\n '200', '300', 'A100'],\n 'contrastLightColors': undefined\n });\n\n $mdThemingProvider.theme('default')\n .primaryPalette('primary')\n .accentPalette('accent', {\n 'default': '500'\n })\n .warnPalette('red', {\n 'default': 'A700'\n });\n\n var lightMap = $mdThemingProvider.extendPalette('grey', {\n 'A100': 'ffffff'\n });\n $mdThemingProvider.definePalette('light', lightMap);\n\n $mdThemingProvider.theme('light')\n .primaryPalette('light', {\n 'default': 'A100'\n })\n .accentPalette('primary');\n\n $mdThemingProvider.setDefaultTheme('default');\n }]);\n\nexport default mainModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/audioOscillator/audioOscillatorComponentModule.es6 b/src/main/webapp/wise5/components/audioOscillator/audioOscillatorComponentModule.es6 new file mode 100644 index 0000000000..ce975c564b --- /dev/null +++ b/src/main/webapp/wise5/components/audioOscillator/audioOscillatorComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import AudioOscillatorService from './audioOscillatorService'; +import AudioOscillatorController from './audioOscillatorController'; + +let audioOscillatorComponentModule = angular.module('audioOscillatorComponentModule', []) + .service(AudioOscillatorService.name, AudioOscillatorService) + .controller(AudioOscillatorController.name, AudioOscillatorController); + +export default audioOscillatorComponentModule; diff --git a/src/main/webapp/wise5/components/audioOscillator/audioOscillatorComponentModule.js b/src/main/webapp/wise5/components/audioOscillator/audioOscillatorComponentModule.js new file mode 100644 index 0000000000..3a5364ad56 --- /dev/null +++ b/src/main/webapp/wise5/components/audioOscillator/audioOscillatorComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _audioOscillatorService = require('./audioOscillatorService'); + +var _audioOscillatorService2 = _interopRequireDefault(_audioOscillatorService); + +var _audioOscillatorController = require('./audioOscillatorController'); + +var _audioOscillatorController2 = _interopRequireDefault(_audioOscillatorController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var audioOscillatorComponentModule = angular.module('audioOscillatorComponentModule', []).service(_audioOscillatorService2.default.name, _audioOscillatorService2.default).controller(_audioOscillatorController2.default.name, _audioOscillatorController2.default); + +exports.default = audioOscillatorComponentModule; +//# sourceMappingURL=audioOscillatorComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/audioOscillator/audioOscillatorComponentModule.js.map b/src/main/webapp/wise5/components/audioOscillator/audioOscillatorComponentModule.js.map new file mode 100644 index 0000000000..c7afdf5f12 --- /dev/null +++ b/src/main/webapp/wise5/components/audioOscillator/audioOscillatorComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["audioOscillatorComponentModule.es6"],"names":["audioOscillatorComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,iCAAiCC,QAAQC,MAAR,CAAe,gCAAf,EAAiD,EAAjD,EAChCC,OADgC,CACxB,iCAAuBC,IADC,oCAEhCC,UAFgC,CAErB,oCAA0BD,IAFL,sCAArC;;kBAIeJ,8B","file":"audioOscillatorComponentModule.js","sourcesContent":["'use strict';\n\nimport AudioOscillatorService from './audioOscillatorService';\nimport AudioOscillatorController from './audioOscillatorController';\n\nlet audioOscillatorComponentModule = angular.module('audioOscillatorComponentModule', [])\n .service(AudioOscillatorService.name, AudioOscillatorService)\n .controller(AudioOscillatorController.name, AudioOscillatorController);\n\nexport default audioOscillatorComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/conceptMap/conceptMapComponentModule.es6 b/src/main/webapp/wise5/components/conceptMap/conceptMapComponentModule.es6 new file mode 100644 index 0000000000..219147825c --- /dev/null +++ b/src/main/webapp/wise5/components/conceptMap/conceptMapComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import ConceptMapService from './conceptMapService'; +import ConceptMapController from './conceptMapController'; + +let conceptMapComponentModule = angular.module('conceptMapComponentModule', []) + .service(ConceptMapService.name, ConceptMapService) + .controller(ConceptMapController.name, ConceptMapController); + +export default conceptMapComponentModule; diff --git a/src/main/webapp/wise5/components/conceptMap/conceptMapComponentModule.js b/src/main/webapp/wise5/components/conceptMap/conceptMapComponentModule.js new file mode 100644 index 0000000000..bff11c93f8 --- /dev/null +++ b/src/main/webapp/wise5/components/conceptMap/conceptMapComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _conceptMapService = require('./conceptMapService'); + +var _conceptMapService2 = _interopRequireDefault(_conceptMapService); + +var _conceptMapController = require('./conceptMapController'); + +var _conceptMapController2 = _interopRequireDefault(_conceptMapController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var conceptMapComponentModule = angular.module('conceptMapComponentModule', []).service(_conceptMapService2.default.name, _conceptMapService2.default).controller(_conceptMapController2.default.name, _conceptMapController2.default); + +exports.default = conceptMapComponentModule; +//# sourceMappingURL=conceptMapComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/conceptMap/conceptMapComponentModule.js.map b/src/main/webapp/wise5/components/conceptMap/conceptMapComponentModule.js.map new file mode 100644 index 0000000000..60fc1c49b8 --- /dev/null +++ b/src/main/webapp/wise5/components/conceptMap/conceptMapComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["conceptMapComponentModule.es6"],"names":["conceptMapComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,4BAA4BC,QAAQC,MAAR,CAAe,2BAAf,EAA4C,EAA5C,EAC3BC,OAD2B,CACnB,4BAAkBC,IADC,+BAE3BC,UAF2B,CAEhB,+BAAqBD,IAFL,iCAAhC;;kBAIeJ,yB","file":"conceptMapComponentModule.js","sourcesContent":["'use strict';\n\nimport ConceptMapService from './conceptMapService';\nimport ConceptMapController from './conceptMapController';\n\nlet conceptMapComponentModule = angular.module('conceptMapComponentModule', [])\n .service(ConceptMapService.name, ConceptMapService)\n .controller(ConceptMapController.name, ConceptMapController);\n\nexport default conceptMapComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/discussion/discussionComponentModule.es6 b/src/main/webapp/wise5/components/discussion/discussionComponentModule.es6 new file mode 100644 index 0000000000..a564d8e786 --- /dev/null +++ b/src/main/webapp/wise5/components/discussion/discussionComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import DiscussionService from './discussionService'; +import DiscussionController from './discussionController'; + +let discussionComponentModule = angular.module('discussionComponentModule', []) + .service(DiscussionService.name, DiscussionService) + .controller(DiscussionController.name, DiscussionController); + +export default discussionComponentModule; diff --git a/src/main/webapp/wise5/components/discussion/discussionComponentModule.js b/src/main/webapp/wise5/components/discussion/discussionComponentModule.js new file mode 100644 index 0000000000..4f2eddc08f --- /dev/null +++ b/src/main/webapp/wise5/components/discussion/discussionComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _discussionService = require('./discussionService'); + +var _discussionService2 = _interopRequireDefault(_discussionService); + +var _discussionController = require('./discussionController'); + +var _discussionController2 = _interopRequireDefault(_discussionController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var discussionComponentModule = angular.module('discussionComponentModule', []).service(_discussionService2.default.name, _discussionService2.default).controller(_discussionController2.default.name, _discussionController2.default); + +exports.default = discussionComponentModule; +//# sourceMappingURL=discussionComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/discussion/discussionComponentModule.js.map b/src/main/webapp/wise5/components/discussion/discussionComponentModule.js.map new file mode 100644 index 0000000000..aa2ee93191 --- /dev/null +++ b/src/main/webapp/wise5/components/discussion/discussionComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["discussionComponentModule.es6"],"names":["discussionComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,4BAA4BC,QAAQC,MAAR,CAAe,2BAAf,EAA4C,EAA5C,EAC3BC,OAD2B,CACnB,4BAAkBC,IADC,+BAE3BC,UAF2B,CAEhB,+BAAqBD,IAFL,iCAAhC;;kBAIeJ,yB","file":"discussionComponentModule.js","sourcesContent":["'use strict';\n\nimport DiscussionService from './discussionService';\nimport DiscussionController from './discussionController';\n\nlet discussionComponentModule = angular.module('discussionComponentModule', [])\n .service(DiscussionService.name, DiscussionService)\n .controller(DiscussionController.name, DiscussionController);\n\nexport default discussionComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/draw/drawComponentModule.es6 b/src/main/webapp/wise5/components/draw/drawComponentModule.es6 new file mode 100644 index 0000000000..128516c051 --- /dev/null +++ b/src/main/webapp/wise5/components/draw/drawComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import DrawService from './drawService'; +import DrawController from './drawController'; + +let drawComponentModule = angular.module('drawComponentModule', []) + .service(DrawService.name, DrawService) + .controller(DrawController.name, DrawController); + +export default drawComponentModule; diff --git a/src/main/webapp/wise5/components/draw/drawComponentModule.js b/src/main/webapp/wise5/components/draw/drawComponentModule.js new file mode 100644 index 0000000000..8ae9b95703 --- /dev/null +++ b/src/main/webapp/wise5/components/draw/drawComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _drawService = require('./drawService'); + +var _drawService2 = _interopRequireDefault(_drawService); + +var _drawController = require('./drawController'); + +var _drawController2 = _interopRequireDefault(_drawController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var drawComponentModule = angular.module('drawComponentModule', []).service(_drawService2.default.name, _drawService2.default).controller(_drawController2.default.name, _drawController2.default); + +exports.default = drawComponentModule; +//# sourceMappingURL=drawComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/draw/drawComponentModule.js.map b/src/main/webapp/wise5/components/draw/drawComponentModule.js.map new file mode 100644 index 0000000000..28f93dba3a --- /dev/null +++ b/src/main/webapp/wise5/components/draw/drawComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["drawComponentModule.es6"],"names":["drawComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,sBAAsBC,QAAQC,MAAR,CAAe,qBAAf,EAAsC,EAAtC,EACrBC,OADqB,CACb,sBAAYC,IADC,yBAErBC,UAFqB,CAEV,yBAAeD,IAFL,2BAA1B;;kBAIeJ,mB","file":"drawComponentModule.js","sourcesContent":["'use strict';\n\nimport DrawService from './drawService';\nimport DrawController from './drawController';\n\nlet drawComponentModule = angular.module('drawComponentModule', [])\n .service(DrawService.name, DrawService)\n .controller(DrawController.name, DrawController);\n\nexport default drawComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/embedded/embeddedComponentModule.es6 b/src/main/webapp/wise5/components/embedded/embeddedComponentModule.es6 new file mode 100644 index 0000000000..398468b5b2 --- /dev/null +++ b/src/main/webapp/wise5/components/embedded/embeddedComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import EmbeddedService from './embeddedService'; +import EmbeddedController from './embeddedController'; + +let embeddedComponentModule = angular.module('embeddedComponentModule', []) + .service(EmbeddedService.name, EmbeddedService) + .controller(EmbeddedController.name, EmbeddedController); + +export default embeddedComponentModule; diff --git a/src/main/webapp/wise5/components/embedded/embeddedComponentModule.js b/src/main/webapp/wise5/components/embedded/embeddedComponentModule.js new file mode 100644 index 0000000000..a1b42424f9 --- /dev/null +++ b/src/main/webapp/wise5/components/embedded/embeddedComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _embeddedService = require('./embeddedService'); + +var _embeddedService2 = _interopRequireDefault(_embeddedService); + +var _embeddedController = require('./embeddedController'); + +var _embeddedController2 = _interopRequireDefault(_embeddedController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var embeddedComponentModule = angular.module('embeddedComponentModule', []).service(_embeddedService2.default.name, _embeddedService2.default).controller(_embeddedController2.default.name, _embeddedController2.default); + +exports.default = embeddedComponentModule; +//# sourceMappingURL=embeddedComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/embedded/embeddedComponentModule.js.map b/src/main/webapp/wise5/components/embedded/embeddedComponentModule.js.map new file mode 100644 index 0000000000..e5ad87baf2 --- /dev/null +++ b/src/main/webapp/wise5/components/embedded/embeddedComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["embeddedComponentModule.es6"],"names":["embeddedComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,0BAA0BC,QAAQC,MAAR,CAAe,yBAAf,EAA0C,EAA1C,EACzBC,OADyB,CACjB,0BAAgBC,IADC,6BAEzBC,UAFyB,CAEd,6BAAmBD,IAFL,+BAA9B;;kBAIeJ,uB","file":"embeddedComponentModule.js","sourcesContent":["'use strict';\n\nimport EmbeddedService from './embeddedService';\nimport EmbeddedController from './embeddedController';\n\nlet embeddedComponentModule = angular.module('embeddedComponentModule', [])\n .service(EmbeddedService.name, EmbeddedService)\n .controller(EmbeddedController.name, EmbeddedController);\n\nexport default embeddedComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/graph/graphComponentModule.es6 b/src/main/webapp/wise5/components/graph/graphComponentModule.es6 new file mode 100644 index 0000000000..bd7baf35f4 --- /dev/null +++ b/src/main/webapp/wise5/components/graph/graphComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import GraphService from './graphService'; +import GraphController from './graphController'; + +let graphComponentModule = angular.module('graphComponentModule', []) + .service(GraphService.name, GraphService) + .controller(GraphController.name, GraphController); + +export default graphComponentModule; diff --git a/src/main/webapp/wise5/components/graph/graphComponentModule.js b/src/main/webapp/wise5/components/graph/graphComponentModule.js new file mode 100644 index 0000000000..cb2781b7ae --- /dev/null +++ b/src/main/webapp/wise5/components/graph/graphComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _graphService = require('./graphService'); + +var _graphService2 = _interopRequireDefault(_graphService); + +var _graphController = require('./graphController'); + +var _graphController2 = _interopRequireDefault(_graphController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var graphComponentModule = angular.module('graphComponentModule', []).service(_graphService2.default.name, _graphService2.default).controller(_graphController2.default.name, _graphController2.default); + +exports.default = graphComponentModule; +//# sourceMappingURL=graphComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/graph/graphComponentModule.js.map b/src/main/webapp/wise5/components/graph/graphComponentModule.js.map new file mode 100644 index 0000000000..629202f72f --- /dev/null +++ b/src/main/webapp/wise5/components/graph/graphComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["graphComponentModule.es6"],"names":["graphComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,uBAAuBC,QAAQC,MAAR,CAAe,sBAAf,EAAuC,EAAvC,EACtBC,OADsB,CACd,uBAAaC,IADC,0BAEtBC,UAFsB,CAEX,0BAAgBD,IAFL,4BAA3B;;kBAIeJ,oB","file":"graphComponentModule.js","sourcesContent":["'use strict';\n\nimport GraphService from './graphService';\nimport GraphController from './graphController';\n\nlet graphComponentModule = angular.module('graphComponentModule', [])\n .service(GraphService.name, GraphService)\n .controller(GraphController.name, GraphController);\n\nexport default graphComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/html/htmlComponentModule.es6 b/src/main/webapp/wise5/components/html/htmlComponentModule.es6 new file mode 100644 index 0000000000..3fe251b9f0 --- /dev/null +++ b/src/main/webapp/wise5/components/html/htmlComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import HTMLService from './htmlService'; +import HTMLController from './htmlController'; + +let htmlComponentModule = angular.module('htmlComponentModule', []) + .service(HTMLService.name, HTMLService) + .controller(HTMLController.name, HTMLController); + +export default htmlComponentModule; diff --git a/src/main/webapp/wise5/components/html/htmlComponentModule.js b/src/main/webapp/wise5/components/html/htmlComponentModule.js new file mode 100644 index 0000000000..d4eb3f724c --- /dev/null +++ b/src/main/webapp/wise5/components/html/htmlComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _htmlService = require('./htmlService'); + +var _htmlService2 = _interopRequireDefault(_htmlService); + +var _htmlController = require('./htmlController'); + +var _htmlController2 = _interopRequireDefault(_htmlController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var htmlComponentModule = angular.module('htmlComponentModule', []).service(_htmlService2.default.name, _htmlService2.default).controller(_htmlController2.default.name, _htmlController2.default); + +exports.default = htmlComponentModule; +//# sourceMappingURL=htmlComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/html/htmlComponentModule.js.map b/src/main/webapp/wise5/components/html/htmlComponentModule.js.map new file mode 100644 index 0000000000..133afa3c08 --- /dev/null +++ b/src/main/webapp/wise5/components/html/htmlComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["htmlComponentModule.es6"],"names":["htmlComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,sBAAsBC,QAAQC,MAAR,CAAe,qBAAf,EAAsC,EAAtC,EACrBC,OADqB,CACb,sBAAYC,IADC,yBAErBC,UAFqB,CAEV,yBAAeD,IAFL,2BAA1B;;kBAIeJ,mB","file":"htmlComponentModule.js","sourcesContent":["'use strict';\n\nimport HTMLService from './htmlService';\nimport HTMLController from './htmlController';\n\nlet htmlComponentModule = angular.module('htmlComponentModule', [])\n .service(HTMLService.name, HTMLService)\n .controller(HTMLController.name, HTMLController);\n\nexport default htmlComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/label/labelComponentModule.es6 b/src/main/webapp/wise5/components/label/labelComponentModule.es6 new file mode 100644 index 0000000000..026912a7e9 --- /dev/null +++ b/src/main/webapp/wise5/components/label/labelComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import LabelService from './labelService'; +import LabelController from './labelController'; + +let labelComponentModule = angular.module('labelComponentModule', []) + .service(LabelService.name, LabelService) + .controller(LabelController.name, LabelController); + +export default labelComponentModule; diff --git a/src/main/webapp/wise5/components/label/labelComponentModule.js b/src/main/webapp/wise5/components/label/labelComponentModule.js new file mode 100644 index 0000000000..adc8c50c0b --- /dev/null +++ b/src/main/webapp/wise5/components/label/labelComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _labelService = require('./labelService'); + +var _labelService2 = _interopRequireDefault(_labelService); + +var _labelController = require('./labelController'); + +var _labelController2 = _interopRequireDefault(_labelController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var labelComponentModule = angular.module('labelComponentModule', []).service(_labelService2.default.name, _labelService2.default).controller(_labelController2.default.name, _labelController2.default); + +exports.default = labelComponentModule; +//# sourceMappingURL=labelComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/label/labelComponentModule.js.map b/src/main/webapp/wise5/components/label/labelComponentModule.js.map new file mode 100644 index 0000000000..0f31051bc6 --- /dev/null +++ b/src/main/webapp/wise5/components/label/labelComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["labelComponentModule.es6"],"names":["labelComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,uBAAuBC,QAAQC,MAAR,CAAe,sBAAf,EAAuC,EAAvC,EACtBC,OADsB,CACd,uBAAaC,IADC,0BAEtBC,UAFsB,CAEX,0BAAgBD,IAFL,4BAA3B;;kBAIeJ,oB","file":"labelComponentModule.js","sourcesContent":["'use strict';\n\nimport LabelService from './labelService';\nimport LabelController from './labelController';\n\nlet labelComponentModule = angular.module('labelComponentModule', [])\n .service(LabelService.name, LabelService)\n .controller(LabelController.name, LabelController);\n\nexport default labelComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/match/matchComponentModule.es6 b/src/main/webapp/wise5/components/match/matchComponentModule.es6 new file mode 100644 index 0000000000..29d839ce27 --- /dev/null +++ b/src/main/webapp/wise5/components/match/matchComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import MatchService from './matchService'; +import MatchController from './matchController'; + +let matchComponentModule = angular.module('matchComponentModule', []) + .service(MatchService.name, MatchService) + .controller(MatchController.name, MatchController); + +export default matchComponentModule; diff --git a/src/main/webapp/wise5/components/match/matchComponentModule.js b/src/main/webapp/wise5/components/match/matchComponentModule.js new file mode 100644 index 0000000000..d6ecbea9e3 --- /dev/null +++ b/src/main/webapp/wise5/components/match/matchComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _matchService = require('./matchService'); + +var _matchService2 = _interopRequireDefault(_matchService); + +var _matchController = require('./matchController'); + +var _matchController2 = _interopRequireDefault(_matchController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchComponentModule = angular.module('matchComponentModule', []).service(_matchService2.default.name, _matchService2.default).controller(_matchController2.default.name, _matchController2.default); + +exports.default = matchComponentModule; +//# sourceMappingURL=matchComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/match/matchComponentModule.js.map b/src/main/webapp/wise5/components/match/matchComponentModule.js.map new file mode 100644 index 0000000000..b94add0dd0 --- /dev/null +++ b/src/main/webapp/wise5/components/match/matchComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["matchComponentModule.es6"],"names":["matchComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,uBAAuBC,QAAQC,MAAR,CAAe,sBAAf,EAAuC,EAAvC,EACtBC,OADsB,CACd,uBAAaC,IADC,0BAEtBC,UAFsB,CAEX,0BAAgBD,IAFL,4BAA3B;;kBAIeJ,oB","file":"matchComponentModule.js","sourcesContent":["'use strict';\n\nimport MatchService from './matchService';\nimport MatchController from './matchController';\n\nlet matchComponentModule = angular.module('matchComponentModule', [])\n .service(MatchService.name, MatchService)\n .controller(MatchController.name, MatchController);\n\nexport default matchComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/multipleChoice/multipleChoiceComponentModule.es6 b/src/main/webapp/wise5/components/multipleChoice/multipleChoiceComponentModule.es6 new file mode 100644 index 0000000000..051d87aa27 --- /dev/null +++ b/src/main/webapp/wise5/components/multipleChoice/multipleChoiceComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import MultipleChoiceService from './multipleChoiceService'; +import MultipleChoiceController from './multipleChoiceController'; + +let multipleChoiceComponentModule = angular.module('multipleChoiceComponentModule', []) + .service(MultipleChoiceService.name, MultipleChoiceService) + .controller(MultipleChoiceController.name, MultipleChoiceController); + +export default multipleChoiceComponentModule; diff --git a/src/main/webapp/wise5/components/multipleChoice/multipleChoiceComponentModule.js b/src/main/webapp/wise5/components/multipleChoice/multipleChoiceComponentModule.js new file mode 100644 index 0000000000..fdd87d0229 --- /dev/null +++ b/src/main/webapp/wise5/components/multipleChoice/multipleChoiceComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _multipleChoiceService = require('./multipleChoiceService'); + +var _multipleChoiceService2 = _interopRequireDefault(_multipleChoiceService); + +var _multipleChoiceController = require('./multipleChoiceController'); + +var _multipleChoiceController2 = _interopRequireDefault(_multipleChoiceController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var multipleChoiceComponentModule = angular.module('multipleChoiceComponentModule', []).service(_multipleChoiceService2.default.name, _multipleChoiceService2.default).controller(_multipleChoiceController2.default.name, _multipleChoiceController2.default); + +exports.default = multipleChoiceComponentModule; +//# sourceMappingURL=multipleChoiceComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/multipleChoice/multipleChoiceComponentModule.js.map b/src/main/webapp/wise5/components/multipleChoice/multipleChoiceComponentModule.js.map new file mode 100644 index 0000000000..e807a780df --- /dev/null +++ b/src/main/webapp/wise5/components/multipleChoice/multipleChoiceComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["multipleChoiceComponentModule.es6"],"names":["multipleChoiceComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,gCAAgCC,QAAQC,MAAR,CAAe,+BAAf,EAAgD,EAAhD,EAC/BC,OAD+B,CACvB,gCAAsBC,IADC,mCAE/BC,UAF+B,CAEpB,mCAAyBD,IAFL,qCAApC;;kBAIeJ,6B","file":"multipleChoiceComponentModule.js","sourcesContent":["'use strict';\n\nimport MultipleChoiceService from './multipleChoiceService';\nimport MultipleChoiceController from './multipleChoiceController';\n\nlet multipleChoiceComponentModule = angular.module('multipleChoiceComponentModule', [])\n .service(MultipleChoiceService.name, MultipleChoiceService)\n .controller(MultipleChoiceController.name, MultipleChoiceController);\n\nexport default multipleChoiceComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/openResponse/openResponseComponentModule.es6 b/src/main/webapp/wise5/components/openResponse/openResponseComponentModule.es6 new file mode 100644 index 0000000000..616d33e414 --- /dev/null +++ b/src/main/webapp/wise5/components/openResponse/openResponseComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import OpenResponseService from './openResponseService'; +import OpenResponseController from './openResponseController'; + +let openResponseComponentModule = angular.module('openResponseComponentModule', []) + .service(OpenResponseService.name, OpenResponseService) + .controller(OpenResponseController.name, OpenResponseController); + +export default openResponseComponentModule; diff --git a/src/main/webapp/wise5/components/openResponse/openResponseComponentModule.js b/src/main/webapp/wise5/components/openResponse/openResponseComponentModule.js new file mode 100644 index 0000000000..f29251cfd1 --- /dev/null +++ b/src/main/webapp/wise5/components/openResponse/openResponseComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _openResponseService = require('./openResponseService'); + +var _openResponseService2 = _interopRequireDefault(_openResponseService); + +var _openResponseController = require('./openResponseController'); + +var _openResponseController2 = _interopRequireDefault(_openResponseController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var openResponseComponentModule = angular.module('openResponseComponentModule', []).service(_openResponseService2.default.name, _openResponseService2.default).controller(_openResponseController2.default.name, _openResponseController2.default); + +exports.default = openResponseComponentModule; +//# sourceMappingURL=openResponseComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/openResponse/openResponseComponentModule.js.map b/src/main/webapp/wise5/components/openResponse/openResponseComponentModule.js.map new file mode 100644 index 0000000000..a004279e52 --- /dev/null +++ b/src/main/webapp/wise5/components/openResponse/openResponseComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["openResponseComponentModule.es6"],"names":["openResponseComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,8BAA8BC,QAAQC,MAAR,CAAe,6BAAf,EAA8C,EAA9C,EAC7BC,OAD6B,CACrB,8BAAoBC,IADC,iCAE7BC,UAF6B,CAElB,iCAAuBD,IAFL,mCAAlC;;kBAIeJ,2B","file":"openResponseComponentModule.js","sourcesContent":["'use strict';\n\nimport OpenResponseService from './openResponseService';\nimport OpenResponseController from './openResponseController';\n\nlet openResponseComponentModule = angular.module('openResponseComponentModule', [])\n .service(OpenResponseService.name, OpenResponseService)\n .controller(OpenResponseController.name, OpenResponseController);\n\nexport default openResponseComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/outsideURL/outsideURLComponentModule.es6 b/src/main/webapp/wise5/components/outsideURL/outsideURLComponentModule.es6 new file mode 100644 index 0000000000..89d18e02b6 --- /dev/null +++ b/src/main/webapp/wise5/components/outsideURL/outsideURLComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import OutsideURLService from './outsideURLService'; +import OutsideURLController from './outsideURLController'; + +let outsideURLComponentModule = angular.module('outsideURLComponentModule', []) + .service(OutsideURLService.name, OutsideURLService) + .controller(OutsideURLController.name, OutsideURLController); + +export default outsideURLComponentModule; diff --git a/src/main/webapp/wise5/components/outsideURL/outsideURLComponentModule.js b/src/main/webapp/wise5/components/outsideURL/outsideURLComponentModule.js new file mode 100644 index 0000000000..389321ddc8 --- /dev/null +++ b/src/main/webapp/wise5/components/outsideURL/outsideURLComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _outsideURLService = require('./outsideURLService'); + +var _outsideURLService2 = _interopRequireDefault(_outsideURLService); + +var _outsideURLController = require('./outsideURLController'); + +var _outsideURLController2 = _interopRequireDefault(_outsideURLController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var outsideURLComponentModule = angular.module('outsideURLComponentModule', []).service(_outsideURLService2.default.name, _outsideURLService2.default).controller(_outsideURLController2.default.name, _outsideURLController2.default); + +exports.default = outsideURLComponentModule; +//# sourceMappingURL=outsideURLComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/outsideURL/outsideURLComponentModule.js.map b/src/main/webapp/wise5/components/outsideURL/outsideURLComponentModule.js.map new file mode 100644 index 0000000000..f00659408e --- /dev/null +++ b/src/main/webapp/wise5/components/outsideURL/outsideURLComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["outsideURLComponentModule.es6"],"names":["outsideURLComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,4BAA4BC,QAAQC,MAAR,CAAe,2BAAf,EAA4C,EAA5C,EAC3BC,OAD2B,CACnB,4BAAkBC,IADC,+BAE3BC,UAF2B,CAEhB,+BAAqBD,IAFL,iCAAhC;;kBAIeJ,yB","file":"outsideURLComponentModule.js","sourcesContent":["'use strict';\n\nimport OutsideURLService from './outsideURLService';\nimport OutsideURLController from './outsideURLController';\n\nlet outsideURLComponentModule = angular.module('outsideURLComponentModule', [])\n .service(OutsideURLService.name, OutsideURLService)\n .controller(OutsideURLController.name, OutsideURLController);\n\nexport default outsideURLComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/components/table/tableComponentModule.es6 b/src/main/webapp/wise5/components/table/tableComponentModule.es6 new file mode 100644 index 0000000000..78d4aa1ded --- /dev/null +++ b/src/main/webapp/wise5/components/table/tableComponentModule.es6 @@ -0,0 +1,10 @@ +'use strict'; + +import TableService from './tableService'; +import TableController from './tableController'; + +let tableComponentModule = angular.module('tableComponentModule', []) + .service(TableService.name, TableService) + .controller(TableController.name, TableController); + +export default tableComponentModule; diff --git a/src/main/webapp/wise5/components/table/tableComponentModule.js b/src/main/webapp/wise5/components/table/tableComponentModule.js new file mode 100644 index 0000000000..0617f80392 --- /dev/null +++ b/src/main/webapp/wise5/components/table/tableComponentModule.js @@ -0,0 +1,20 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _tableService = require('./tableService'); + +var _tableService2 = _interopRequireDefault(_tableService); + +var _tableController = require('./tableController'); + +var _tableController2 = _interopRequireDefault(_tableController); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var tableComponentModule = angular.module('tableComponentModule', []).service(_tableService2.default.name, _tableService2.default).controller(_tableController2.default.name, _tableController2.default); + +exports.default = tableComponentModule; +//# sourceMappingURL=tableComponentModule.js.map \ No newline at end of file diff --git a/src/main/webapp/wise5/components/table/tableComponentModule.js.map b/src/main/webapp/wise5/components/table/tableComponentModule.js.map new file mode 100644 index 0000000000..6e61711dc4 --- /dev/null +++ b/src/main/webapp/wise5/components/table/tableComponentModule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["tableComponentModule.es6"],"names":["tableComponentModule","angular","module","service","name","controller"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;;;AAEA,IAAIA,uBAAuBC,QAAQC,MAAR,CAAe,sBAAf,EAAuC,EAAvC,EACtBC,OADsB,CACd,uBAAaC,IADC,0BAEtBC,UAFsB,CAEX,0BAAgBD,IAFL,4BAA3B;;kBAIeJ,oB","file":"tableComponentModule.js","sourcesContent":["'use strict';\n\nimport TableService from './tableService';\nimport TableController from './tableController';\n\nlet tableComponentModule = angular.module('tableComponentModule', [])\n .service(TableService.name, TableService)\n .controller(TableController.name, TableController);\n\nexport default tableComponentModule;\n"]} \ No newline at end of file diff --git a/src/main/webapp/wise5/vle/main.es6 b/src/main/webapp/wise5/vle/main.es6 index a422b9b04e..ecfdd27dc6 100644 --- a/src/main/webapp/wise5/vle/main.es6 +++ b/src/main/webapp/wise5/vle/main.es6 @@ -15,43 +15,31 @@ import angularUIRouter from 'angular-ui-router'; import angularUIScrollpoint from 'angular-ui-scrollpoint'; import angularWebSocket from 'angular-websocket'; import AnnotationService from '../services/annotationService'; -import AudioOscillatorController from '../components/audioOscillator/audioOscillatorController'; -import AudioOscillatorService from '../components/audioOscillator/audioOscillatorService'; -import ConceptMapController from '../components/conceptMap/conceptMapController'; -import ConceptMapService from '../components/conceptMap/conceptMapService'; +import AudioOscillatorComponentModule from '../components/audioOscillator/audioOscillatorComponentModule'; +import ConceptMapComponentModule from '../components/conceptMap/conceptMapComponentModule'; import ConfigService from '../services/configService'; import CRaterService from '../services/cRaterService'; import Directives from '../directives/directives'; -import DiscussionController from '../components/discussion/discussionController'; -import DiscussionService from '../components/discussion/discussionService'; -import DrawController from '../components/draw/drawController'; -import DrawService from '../components/draw/drawService'; -import EmbeddedController from '../components/embedded/embeddedController'; -import EmbeddedService from '../components/embedded/embeddedService'; +import DiscussionComponentModule from '../components/discussion/discussionComponentModule'; +import DrawComponentModule from '../components/draw/drawComponentModule'; +import EmbeddedComponentModule from '../components/embedded/embeddedComponentModule'; import Filters from '../filters/filters'; import Highcharts from '../lib/highcharts@4.2.1'; import draggablePoints from '../lib/draggable-points/draggable-points'; -import GraphController from '../components/graph/graphController'; -import GraphService from '../components/graph/graphService'; -import HTMLService from '../components/html/htmlService'; -import HTMLController from '../components/html/htmlController'; +import GraphComponentModule from '../components/graph/graphComponentModule'; +import HTMLComponentModule from '../components/html/htmlComponentModule'; import HttpInterceptor from '../services/httpInterceptor'; -import LabelController from '../components/label/labelController'; -import LabelService from '../components/label/labelService'; -import MatchController from '../components/match/matchController'; -import MatchService from '../components/match/matchService'; -import MultipleChoiceController from '../components/multipleChoice/multipleChoiceController'; -import MultipleChoiceService from '../components/multipleChoice/multipleChoiceService'; +import LabelComponentModule from '../components/label/labelComponentModule'; +import MatchComponentModule from '../components/match/matchComponentModule'; +import MultipleChoiceComponentModule from '../components/multipleChoice/multipleChoiceComponentModule'; import NavigationController from './navigation/navigationController'; import NodeController from '../node/nodeController'; import NodeService from '../services/nodeService'; import Notebook from './notebook/notebook'; import NotebookService from '../services/notebookService'; import NotificationService from '../services/notificationService'; -import OpenResponseController from '../components/openResponse/openResponseController'; -import OpenResponseService from '../components/openResponse/openResponseService'; -import OutsideURLController from '../components/outsideURL/outsideURLController'; -import OutsideURLService from '../components/outsideURL/outsideURLService'; +import OpenResponseComponentModule from '../components/openResponse/openResponseComponentModule'; +import OutsideURLComponentModule from '../components/outsideURL/outsideURLComponentModule'; import ProjectService from '../services/projectService'; import SessionService from '../services/sessionService'; import StudentAsset from './studentAsset/studentAsset'; @@ -59,8 +47,7 @@ import StudentAssetService from '../services/studentAssetService'; import StudentDataService from '../services/studentDataService'; import StudentStatusService from '../services/studentStatusService'; import StudentWebSocketService from '../services/studentWebSocketService'; -import TableController from '../components/table/tableController'; -import TableService from '../components/table/tableService'; +import TableComponentModule from '../components/table/tableComponentModule'; import TeacherDataService from '../services/teacherDataService'; import UtilService from '../services/utilService'; import VLEController from './vleController'; @@ -75,9 +62,19 @@ let mainModule = angular.module('vle', [ angularDragula(angular), 'angularMoment', 'angular-toArrayFilter', + 'audioOscillatorComponentModule', + 'conceptMapComponentModule', 'directives', + 'discussionComponentModule', + 'drawComponentModule', + 'embeddedComponentModule', 'filters', + 'graphComponentModule', 'highcharts-ng', + 'htmlComponentModule', + 'labelComponentModule', + 'matchComponentModule', + 'multipleChoiceComponentModule', 'ngAria', 'ngFileUpload', 'ngMaterial', @@ -85,57 +82,33 @@ let mainModule = angular.module('vle', [ 'ngWebSocket', 'notebook', 'oc.lazyLoad', + 'openResponseComponentModule', + 'outsideURLComponentModule', 'pascalprecht.translate', 'studentAsset', 'summernote', + 'tableComponentModule', 'ui.router', 'ui.scrollpoint' ]) - .service(AnnotationService.name, AnnotationService) - .service(AudioOscillatorService.name, AudioOscillatorService) - .service(ConceptMapService.name, ConceptMapService) .service(ConfigService.name, ConfigService) .service(CRaterService.name, CRaterService) - .service(DiscussionService.name, DiscussionService) - .service(DrawService.name, DrawService) - .service(EmbeddedService.name, EmbeddedService) - .service(GraphService.name, GraphService) - .service(HTMLService.name, HTMLService) .service(HttpInterceptor.name, HttpInterceptor) - .service(LabelService.name, LabelService) - .service(MatchService.name, MatchService) - .service(MultipleChoiceService.name, MultipleChoiceService) .service(NodeService.name, NodeService) .service(NotebookService.name, NotebookService) .service(NotificationService.name, NotificationService) - .service(OpenResponseService.name, OpenResponseService) - .service(OutsideURLService.name, OutsideURLService) .service(ProjectService.name, ProjectService) .service(SessionService.name, SessionService) .service(StudentAssetService.name, StudentAssetService) .service(StudentDataService.name, StudentDataService) .service(StudentStatusService.name, StudentStatusService) .service(StudentWebSocketService.name, StudentWebSocketService) - .service(TableService.name, TableService) .service(TeacherDataService.name, TeacherDataService) .service(UtilService.name, UtilService) - .controller(AudioOscillatorController.name, AudioOscillatorController) - .controller(ConceptMapController.name, ConceptMapController) - .controller(DiscussionController.name, DiscussionController) - .controller(DrawController.name, DrawController) - .controller(EmbeddedController.name, EmbeddedController) - .controller(GraphController.name, GraphController) - .controller(HTMLController.name, HTMLController) - .controller(LabelController.name, LabelController) - .controller(MatchController.name, MatchController) - .controller(MultipleChoiceController.name, MultipleChoiceController) .controller(NavigationController.name, NavigationController) .controller(NodeController.name, NodeController) .controller(VLEController.name, VLEController) - .controller(OpenResponseController.name, OpenResponseController) - .controller(OutsideURLController.name, OutsideURLController) - .controller(TableController.name, TableController) .filter(Filters.name, Filters) .config([ '$urlRouterProvider', diff --git a/src/main/webapp/wise5/vle/main.js b/src/main/webapp/wise5/vle/main.js index 1c2bdeacd8..9ff33ce43c 100644 --- a/src/main/webapp/wise5/vle/main.js +++ b/src/main/webapp/wise5/vle/main.js @@ -64,21 +64,13 @@ var _annotationService = require('../services/annotationService'); var _annotationService2 = _interopRequireDefault(_annotationService); -var _audioOscillatorController = require('../components/audioOscillator/audioOscillatorController'); +var _audioOscillatorComponentModule = require('../components/audioOscillator/audioOscillatorComponentModule'); -var _audioOscillatorController2 = _interopRequireDefault(_audioOscillatorController); +var _audioOscillatorComponentModule2 = _interopRequireDefault(_audioOscillatorComponentModule); -var _audioOscillatorService = require('../components/audioOscillator/audioOscillatorService'); +var _conceptMapComponentModule = require('../components/conceptMap/conceptMapComponentModule'); -var _audioOscillatorService2 = _interopRequireDefault(_audioOscillatorService); - -var _conceptMapController = require('../components/conceptMap/conceptMapController'); - -var _conceptMapController2 = _interopRequireDefault(_conceptMapController); - -var _conceptMapService = require('../components/conceptMap/conceptMapService'); - -var _conceptMapService2 = _interopRequireDefault(_conceptMapService); +var _conceptMapComponentModule2 = _interopRequireDefault(_conceptMapComponentModule); var _configService = require('../services/configService'); @@ -92,29 +84,17 @@ var _directives = require('../directives/directives'); var _directives2 = _interopRequireDefault(_directives); -var _discussionController = require('../components/discussion/discussionController'); - -var _discussionController2 = _interopRequireDefault(_discussionController); - -var _discussionService = require('../components/discussion/discussionService'); - -var _discussionService2 = _interopRequireDefault(_discussionService); +var _discussionComponentModule = require('../components/discussion/discussionComponentModule'); -var _drawController = require('../components/draw/drawController'); +var _discussionComponentModule2 = _interopRequireDefault(_discussionComponentModule); -var _drawController2 = _interopRequireDefault(_drawController); +var _drawComponentModule = require('../components/draw/drawComponentModule'); -var _drawService = require('../components/draw/drawService'); +var _drawComponentModule2 = _interopRequireDefault(_drawComponentModule); -var _drawService2 = _interopRequireDefault(_drawService); +var _embeddedComponentModule = require('../components/embedded/embeddedComponentModule'); -var _embeddedController = require('../components/embedded/embeddedController'); - -var _embeddedController2 = _interopRequireDefault(_embeddedController); - -var _embeddedService = require('../components/embedded/embeddedService'); - -var _embeddedService2 = _interopRequireDefault(_embeddedService); +var _embeddedComponentModule2 = _interopRequireDefault(_embeddedComponentModule); var _filters = require('../filters/filters'); @@ -128,49 +108,29 @@ var _draggablePoints = require('../lib/draggable-points/draggable-points'); var _draggablePoints2 = _interopRequireDefault(_draggablePoints); -var _graphController = require('../components/graph/graphController'); - -var _graphController2 = _interopRequireDefault(_graphController); - -var _graphService = require('../components/graph/graphService'); - -var _graphService2 = _interopRequireDefault(_graphService); +var _graphComponentModule = require('../components/graph/graphComponentModule'); -var _htmlService = require('../components/html/htmlService'); +var _graphComponentModule2 = _interopRequireDefault(_graphComponentModule); -var _htmlService2 = _interopRequireDefault(_htmlService); +var _htmlComponentModule = require('../components/html/htmlComponentModule'); -var _htmlController = require('../components/html/htmlController'); - -var _htmlController2 = _interopRequireDefault(_htmlController); +var _htmlComponentModule2 = _interopRequireDefault(_htmlComponentModule); var _httpInterceptor = require('../services/httpInterceptor'); var _httpInterceptor2 = _interopRequireDefault(_httpInterceptor); -var _labelController = require('../components/label/labelController'); - -var _labelController2 = _interopRequireDefault(_labelController); - -var _labelService = require('../components/label/labelService'); - -var _labelService2 = _interopRequireDefault(_labelService); - -var _matchController = require('../components/match/matchController'); - -var _matchController2 = _interopRequireDefault(_matchController); - -var _matchService = require('../components/match/matchService'); +var _labelComponentModule = require('../components/label/labelComponentModule'); -var _matchService2 = _interopRequireDefault(_matchService); +var _labelComponentModule2 = _interopRequireDefault(_labelComponentModule); -var _multipleChoiceController = require('../components/multipleChoice/multipleChoiceController'); +var _matchComponentModule = require('../components/match/matchComponentModule'); -var _multipleChoiceController2 = _interopRequireDefault(_multipleChoiceController); +var _matchComponentModule2 = _interopRequireDefault(_matchComponentModule); -var _multipleChoiceService = require('../components/multipleChoice/multipleChoiceService'); +var _multipleChoiceComponentModule = require('../components/multipleChoice/multipleChoiceComponentModule'); -var _multipleChoiceService2 = _interopRequireDefault(_multipleChoiceService); +var _multipleChoiceComponentModule2 = _interopRequireDefault(_multipleChoiceComponentModule); var _navigationController = require('./navigation/navigationController'); @@ -196,21 +156,13 @@ var _notificationService = require('../services/notificationService'); var _notificationService2 = _interopRequireDefault(_notificationService); -var _openResponseController = require('../components/openResponse/openResponseController'); +var _openResponseComponentModule = require('../components/openResponse/openResponseComponentModule'); -var _openResponseController2 = _interopRequireDefault(_openResponseController); +var _openResponseComponentModule2 = _interopRequireDefault(_openResponseComponentModule); -var _openResponseService = require('../components/openResponse/openResponseService'); +var _outsideURLComponentModule = require('../components/outsideURL/outsideURLComponentModule'); -var _openResponseService2 = _interopRequireDefault(_openResponseService); - -var _outsideURLController = require('../components/outsideURL/outsideURLController'); - -var _outsideURLController2 = _interopRequireDefault(_outsideURLController); - -var _outsideURLService = require('../components/outsideURL/outsideURLService'); - -var _outsideURLService2 = _interopRequireDefault(_outsideURLService); +var _outsideURLComponentModule2 = _interopRequireDefault(_outsideURLComponentModule); var _projectService = require('../services/projectService'); @@ -240,13 +192,9 @@ var _studentWebSocketService = require('../services/studentWebSocketService'); var _studentWebSocketService2 = _interopRequireDefault(_studentWebSocketService); -var _tableController = require('../components/table/tableController'); - -var _tableController2 = _interopRequireDefault(_tableController); - -var _tableService = require('../components/table/tableService'); +var _tableComponentModule = require('../components/table/tableComponentModule'); -var _tableService2 = _interopRequireDefault(_tableService); +var _tableComponentModule2 = _interopRequireDefault(_tableComponentModule); var _teacherDataService = require('../services/teacherDataService'); @@ -274,7 +222,7 @@ var _angularSummernote2 = _interopRequireDefault(_angularSummernote); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var mainModule = _angular2.default.module('vle', [(0, _angularDragula2.default)(_angular2.default), 'angularMoment', 'angular-toArrayFilter', 'directives', 'filters', 'highcharts-ng', 'ngAria', 'ngFileUpload', 'ngMaterial', 'ngSanitize', 'ngWebSocket', 'notebook', 'oc.lazyLoad', 'pascalprecht.translate', 'studentAsset', 'summernote', 'ui.router', 'ui.scrollpoint']).service(_annotationService2.default.name, _annotationService2.default).service(_audioOscillatorService2.default.name, _audioOscillatorService2.default).service(_conceptMapService2.default.name, _conceptMapService2.default).service(_configService2.default.name, _configService2.default).service(_cRaterService2.default.name, _cRaterService2.default).service(_discussionService2.default.name, _discussionService2.default).service(_drawService2.default.name, _drawService2.default).service(_embeddedService2.default.name, _embeddedService2.default).service(_graphService2.default.name, _graphService2.default).service(_htmlService2.default.name, _htmlService2.default).service(_httpInterceptor2.default.name, _httpInterceptor2.default).service(_labelService2.default.name, _labelService2.default).service(_matchService2.default.name, _matchService2.default).service(_multipleChoiceService2.default.name, _multipleChoiceService2.default).service(_nodeService2.default.name, _nodeService2.default).service(_notebookService2.default.name, _notebookService2.default).service(_notificationService2.default.name, _notificationService2.default).service(_openResponseService2.default.name, _openResponseService2.default).service(_outsideURLService2.default.name, _outsideURLService2.default).service(_projectService2.default.name, _projectService2.default).service(_sessionService2.default.name, _sessionService2.default).service(_studentAssetService2.default.name, _studentAssetService2.default).service(_studentDataService2.default.name, _studentDataService2.default).service(_studentStatusService2.default.name, _studentStatusService2.default).service(_studentWebSocketService2.default.name, _studentWebSocketService2.default).service(_tableService2.default.name, _tableService2.default).service(_teacherDataService2.default.name, _teacherDataService2.default).service(_utilService2.default.name, _utilService2.default).controller(_audioOscillatorController2.default.name, _audioOscillatorController2.default).controller(_conceptMapController2.default.name, _conceptMapController2.default).controller(_discussionController2.default.name, _discussionController2.default).controller(_drawController2.default.name, _drawController2.default).controller(_embeddedController2.default.name, _embeddedController2.default).controller(_graphController2.default.name, _graphController2.default).controller(_htmlController2.default.name, _htmlController2.default).controller(_labelController2.default.name, _labelController2.default).controller(_matchController2.default.name, _matchController2.default).controller(_multipleChoiceController2.default.name, _multipleChoiceController2.default).controller(_navigationController2.default.name, _navigationController2.default).controller(_nodeController2.default.name, _nodeController2.default).controller(_vleController2.default.name, _vleController2.default).controller(_openResponseController2.default.name, _openResponseController2.default).controller(_outsideURLController2.default.name, _outsideURLController2.default).controller(_tableController2.default.name, _tableController2.default).filter(_filters2.default.name, _filters2.default).config(['$urlRouterProvider', '$stateProvider', '$translateProvider', '$translatePartialLoaderProvider', '$controllerProvider', '$mdThemingProvider', '$httpProvider', '$provide', function ($urlRouterProvider, $stateProvider, $translateProvider, $translatePartialLoaderProvider, $controllerProvider, $mdThemingProvider, $httpProvider, $provide) { +var mainModule = _angular2.default.module('vle', [(0, _angularDragula2.default)(_angular2.default), 'angularMoment', 'angular-toArrayFilter', 'audioOscillatorComponentModule', 'conceptMapComponentModule', 'directives', 'discussionComponentModule', 'drawComponentModule', 'embeddedComponentModule', 'filters', 'graphComponentModule', 'highcharts-ng', 'htmlComponentModule', 'labelComponentModule', 'matchComponentModule', 'multipleChoiceComponentModule', 'ngAria', 'ngFileUpload', 'ngMaterial', 'ngSanitize', 'ngWebSocket', 'notebook', 'oc.lazyLoad', 'openResponseComponentModule', 'outsideURLComponentModule', 'pascalprecht.translate', 'studentAsset', 'summernote', 'tableComponentModule', 'ui.router', 'ui.scrollpoint']).service(_annotationService2.default.name, _annotationService2.default).service(_configService2.default.name, _configService2.default).service(_cRaterService2.default.name, _cRaterService2.default).service(_httpInterceptor2.default.name, _httpInterceptor2.default).service(_nodeService2.default.name, _nodeService2.default).service(_notebookService2.default.name, _notebookService2.default).service(_notificationService2.default.name, _notificationService2.default).service(_projectService2.default.name, _projectService2.default).service(_sessionService2.default.name, _sessionService2.default).service(_studentAssetService2.default.name, _studentAssetService2.default).service(_studentDataService2.default.name, _studentDataService2.default).service(_studentStatusService2.default.name, _studentStatusService2.default).service(_studentWebSocketService2.default.name, _studentWebSocketService2.default).service(_teacherDataService2.default.name, _teacherDataService2.default).service(_utilService2.default.name, _utilService2.default).controller(_navigationController2.default.name, _navigationController2.default).controller(_nodeController2.default.name, _nodeController2.default).controller(_vleController2.default.name, _vleController2.default).filter(_filters2.default.name, _filters2.default).config(['$urlRouterProvider', '$stateProvider', '$translateProvider', '$translatePartialLoaderProvider', '$controllerProvider', '$mdThemingProvider', '$httpProvider', '$provide', function ($urlRouterProvider, $stateProvider, $translateProvider, $translatePartialLoaderProvider, $controllerProvider, $mdThemingProvider, $httpProvider, $provide) { $urlRouterProvider.otherwise('/vle/'); diff --git a/src/main/webapp/wise5/vle/main.js.map b/src/main/webapp/wise5/vle/main.js.map index 7fdff964d2..6bd3b7f386 100644 --- a/src/main/webapp/wise5/vle/main.js.map +++ b/src/main/webapp/wise5/vle/main.js.map @@ -1 +1 @@ -{"version":3,"sources":["main.es6"],"names":["mainModule","module","service","name","controller","filter","config","$urlRouterProvider","$stateProvider","$translateProvider","$translatePartialLoaderProvider","$controllerProvider","$mdThemingProvider","$httpProvider","$provide","otherwise","state","url","abstract","templateProvider","$http","ProjectService","themePath","getThemePath","get","then","response","data","controllerAs","resolve","ConfigService","configURL","window","retrieveConfig","project","retrieveProject","studentData","StudentDataService","retrieveStudentData","notifications","NotificationService","retrieveNotifications","runStatus","retrieveRunStatus","sessionTimers","SessionService","initializeSession","webSocket","StudentWebSocketService","initialize","language","$translate","locale","getLocale","use","theme","$ocLazyLoad","$q","def","defer","System","import","themeModule","m","default","key","Object","keys","load","err","promise","views","wiseBaseURL","getWISEBaseURL","interceptors","push","addPart","useLoader","urlTemplate","fallbackLanguage","registerAvailableLanguageKeys","useSanitizeValueStrategy","definePalette","undefined","primaryPalette","accentPalette","warnPalette","lightMap","extendPalette","setDefaultTheme","calendar","lastDay","sameDay","nextDay","lastWeek","nextWeek","sameElse","relativeTime","future","past","s","mm","h","hh","d","dd","M","MM","y","yy"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;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KiB,KALjB,EAKwB;AAChB,mBAAW;AADK,KALxB;;AASA,QAAIC,WAAW3E,mBAAmB4E,aAAnB,CAAiC,MAAjC,EAAyC;AACpD,gBAAQ;AAD4C,KAAzC,CAAf;AAGA5E,uBAAmBsE,aAAnB,CAAiC,OAAjC,EAA0CK,QAA1C;;AAEA3E,uBAAmB2C,KAAnB,CAAyB,OAAzB,EACK6B,cADL,CACoB,OADpB,EAC6B;AACrB,mBAAW;AADU,KAD7B,EAIKC,aAJL,CAImB,SAJnB;;AAMAzE,uBAAmB6E,eAAnB,CAAmC,SAAnC;;AAEA;AACA,qBAAOrC,MAAP,CAAc,IAAd,EAAoB;AAChBsC,kBAAW;AACPC,qBAAU,mBADH;AAEPC,qBAAU,eAFH;AAGPC,qBAAU,kBAHH;AAIPC,sBAAW,qBAJJ;AAKPC,sBAAW,cALJ;AAMPC,sBAAW;AANJ,SADK;AAShBC,sBAAe;AACXC,oBAAQ,OADG;AAEXC,kBAAQ,IAFG;AAGXC,eAAI,aAHO;AAIXrC,eAAI,cAJO;AAKXsC,gBAAI,gBALO;AAMXC,eAAI,YANO;AAOXC,gBAAI,cAPO;AAQXC,eAAI,WARO;AASXC,gBAAI,aATO;AAUXC,eAAI,aAVO;AAWXC,gBAAI,eAXO;AAYXC,eAAI,YAZO;AAaXC,gBAAI;AAbO;AATC,KAApB;AAyBH,CAjOG,CAlEK,CAAjB;;AAJA;AACA;kBAySe7G,U","file":"main.js","sourcesContent":["'use strict';\n\nimport $ from 'jquery';\nimport angular from 'angular';\nimport angularDragula from 'angular-dragula';\nimport angularFileUpload from 'ng-file-upload';\nimport angularHighcharts from 'highcharts-ng';\nimport angularMaterial from 'angular-material';\nimport angularMoment from 'angular-moment';\nimport angularSanitize from 'angular-sanitize';\nimport angularToArrayFilter from 'lib/angular-toArrayFilter/toArrayFilter';\nimport angularTranslate from 'angular-translate';\nimport angularTranslateLoaderPartial from 'angular-translate-loader-partial';\nimport angularUIRouter from 'angular-ui-router';\nimport angularUIScrollpoint from 'angular-ui-scrollpoint';\nimport angularWebSocket from 'angular-websocket';\nimport AnnotationService from '../services/annotationService';\nimport AudioOscillatorController from '../components/audioOscillator/audioOscillatorController';\nimport AudioOscillatorService from '../components/audioOscillator/audioOscillatorService';\nimport ConceptMapController from '../components/conceptMap/conceptMapController';\nimport ConceptMapService from '../components/conceptMap/conceptMapService';\nimport ConfigService from '../services/configService';\nimport CRaterService from '../services/cRaterService';\nimport Directives from '../directives/directives';\nimport DiscussionController from '../components/discussion/discussionController';\nimport DiscussionService from '../components/discussion/discussionService';\nimport DrawController from '../components/draw/drawController';\nimport DrawService from '../components/draw/drawService';\nimport EmbeddedController from '../components/embedded/embeddedController';\nimport EmbeddedService from '../components/embedded/embeddedService';\nimport Filters from '../filters/filters';\nimport Highcharts from '../lib/highcharts@4.2.1';\nimport draggablePoints from '../lib/draggable-points/draggable-points';\nimport GraphController from '../components/graph/graphController';\nimport GraphService from '../components/graph/graphService';\nimport HTMLService from '../components/html/htmlService';\nimport HTMLController from '../components/html/htmlController';\nimport HttpInterceptor from '../services/httpInterceptor';\nimport LabelController from '../components/label/labelController';\nimport LabelService from '../components/label/labelService';\nimport MatchController from '../components/match/matchController';\nimport MatchService from '../components/match/matchService';\nimport MultipleChoiceController from '../components/multipleChoice/multipleChoiceController';\nimport MultipleChoiceService from '../components/multipleChoice/multipleChoiceService';\nimport NavigationController from './navigation/navigationController';\nimport NodeController from '../node/nodeController';\nimport NodeService from '../services/nodeService';\nimport Notebook from './notebook/notebook';\nimport NotebookService from '../services/notebookService';\nimport NotificationService from '../services/notificationService';\nimport OpenResponseController from '../components/openResponse/openResponseController';\nimport OpenResponseService from '../components/openResponse/openResponseService';\nimport OutsideURLController from '../components/outsideURL/outsideURLController';\nimport OutsideURLService from '../components/outsideURL/outsideURLService';\nimport ProjectService from '../services/projectService';\nimport SessionService from '../services/sessionService';\nimport StudentAsset from './studentAsset/studentAsset';\nimport StudentAssetService from '../services/studentAssetService';\nimport StudentDataService from '../services/studentDataService';\nimport StudentStatusService from '../services/studentStatusService';\nimport StudentWebSocketService from '../services/studentWebSocketService';\nimport TableController from '../components/table/tableController';\nimport TableService from '../components/table/tableService';\nimport TeacherDataService from '../services/teacherDataService';\nimport UtilService from '../services/utilService';\nimport VLEController from './vleController';\nimport ocLazyLoad from 'oclazyload';\nimport moment from 'moment';\n\n//import bootstrap from 'bootstrap';\n//import summernote from 'summernote';\nimport angularSummernote from 'lib/angular-summernote/dist/angular-summernote.min';\n\nlet mainModule = angular.module('vle', [\n angularDragula(angular),\n 'angularMoment',\n 'angular-toArrayFilter',\n 'directives',\n 'filters',\n 'highcharts-ng',\n 'ngAria',\n 'ngFileUpload',\n 'ngMaterial',\n 'ngSanitize',\n 'ngWebSocket',\n 'notebook',\n 'oc.lazyLoad',\n 'pascalprecht.translate',\n 'studentAsset',\n 'summernote',\n 'ui.router',\n 'ui.scrollpoint'\n ])\n\n .service(AnnotationService.name, AnnotationService)\n .service(AudioOscillatorService.name, AudioOscillatorService)\n .service(ConceptMapService.name, ConceptMapService)\n .service(ConfigService.name, ConfigService)\n .service(CRaterService.name, CRaterService)\n .service(DiscussionService.name, DiscussionService)\n .service(DrawService.name, DrawService)\n .service(EmbeddedService.name, EmbeddedService)\n .service(GraphService.name, GraphService)\n .service(HTMLService.name, HTMLService)\n .service(HttpInterceptor.name, HttpInterceptor)\n .service(LabelService.name, LabelService)\n .service(MatchService.name, MatchService)\n .service(MultipleChoiceService.name, MultipleChoiceService)\n .service(NodeService.name, NodeService)\n .service(NotebookService.name, NotebookService)\n .service(NotificationService.name, NotificationService)\n .service(OpenResponseService.name, OpenResponseService)\n .service(OutsideURLService.name, OutsideURLService)\n .service(ProjectService.name, ProjectService)\n .service(SessionService.name, SessionService)\n .service(StudentAssetService.name, StudentAssetService)\n .service(StudentDataService.name, StudentDataService)\n .service(StudentStatusService.name, StudentStatusService)\n .service(StudentWebSocketService.name, StudentWebSocketService)\n .service(TableService.name, TableService)\n .service(TeacherDataService.name, TeacherDataService)\n .service(UtilService.name, UtilService)\n .controller(AudioOscillatorController.name, AudioOscillatorController)\n .controller(ConceptMapController.name, ConceptMapController)\n .controller(DiscussionController.name, DiscussionController)\n .controller(DrawController.name, DrawController)\n .controller(EmbeddedController.name, EmbeddedController)\n .controller(GraphController.name, GraphController)\n .controller(HTMLController.name, HTMLController)\n .controller(LabelController.name, LabelController)\n .controller(MatchController.name, MatchController)\n .controller(MultipleChoiceController.name, MultipleChoiceController)\n .controller(NavigationController.name, NavigationController)\n .controller(NodeController.name, NodeController)\n .controller(VLEController.name, VLEController)\n .controller(OpenResponseController.name, OpenResponseController)\n .controller(OutsideURLController.name, OutsideURLController)\n .controller(TableController.name, TableController)\n .filter(Filters.name, Filters)\n .config([\n '$urlRouterProvider',\n '$stateProvider',\n '$translateProvider',\n '$translatePartialLoaderProvider',\n '$controllerProvider',\n '$mdThemingProvider',\n '$httpProvider',\n '$provide',\n function($urlRouterProvider,\n $stateProvider,\n $translateProvider,\n $translatePartialLoaderProvider,\n $controllerProvider,\n $mdThemingProvider,\n $httpProvider,\n $provide) {\n\n $urlRouterProvider.otherwise('/vle/');\n\n angular.module('vle').$controllerProvider = $controllerProvider;\n\n $stateProvider\n .state('root', {\n url: '',\n abstract: true,\n templateProvider: ['$http', 'ProjectService', function ($http, ProjectService) {\n var themePath = ProjectService.getThemePath();\n return $http.get(themePath + '/vle.html').then(\n response => {\n return response.data;\n });\n }],\n controller: 'VLEController',\n controllerAs: 'vleController',\n resolve: {\n config: function (ConfigService) {\n let configURL = window.configURL;\n return ConfigService.retrieveConfig(configURL);\n },\n project: function (ProjectService, config) {\n return ProjectService.retrieveProject();\n },\n studentData: function (StudentDataService, config, project) {\n return StudentDataService.retrieveStudentData();\n },\n notifications: function (NotificationService, studentData, config, project) {\n return NotificationService.retrieveNotifications();\n },\n runStatus: function(StudentDataService, config) {\n return StudentDataService.retrieveRunStatus();\n },\n sessionTimers: function (SessionService, config, project, studentData) {\n return SessionService.initializeSession();\n },\n webSocket: function (StudentWebSocketService, config, project) {\n return StudentWebSocketService.initialize();\n },\n language: ($translate, ConfigService, config) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n theme: function (ProjectService, config, project, $ocLazyLoad, $q) {\n let theme = ProjectService.getThemePath() + '/theme.js';\n let def = $q.defer();\n\n \t\t\t\t\tSystem.import(theme).then(m => {\n \t\t\t\t\t\tlet themeModule = m.default;\n \t\t\t\t\t\tif (!m.default.name) {\n \t\t\t\t\t\t\tlet key = Object.keys(m.default);\n \t\t\t\t\t\t\tthemeModule = m.default[key[0]];\n \t\t\t\t\t\t}\n\n \t\t\t\t\t\t$ocLazyLoad.load(themeModule).then(() => {\n \t\t\t\t\t\t\tdef.resolve();\n \t\t\t\t\t\t}, err => {\n \t\t\t\t\t\t\tthrow err;\n \t\t\t\t\t\t});\n \t\t\t\t\t});\n\n \t\t\t\t\treturn def.promise;\n }\n }\n })\n .state('root.vle', {\n url: '/vle/:nodeId',\n views: {\n 'nodeView': {\n templateProvider: ['$http', 'ConfigService', function ($http, ConfigService) {\n let wiseBaseURL = ConfigService.getWISEBaseURL();\n return $http.get(wiseBaseURL + '/wise5/node/index.html').then(\n response => {\n return response.data;\n }\n );\n }],\n controller: 'NodeController',\n controllerAs: 'nodeController'\n }\n }\n })\n .state('root.notebook', {\n url: '/notebook/:nodeid',\n views: {\n 'notebookView': {\n templateProvider: ['$http', 'ConfigService', function ($http, ConfigService) {\n let wiseBaseURL = ConfigService.getWISEBaseURL();\n return $http.get(wiseBaseURL + '/wise5/notebook/index.html').then(\n response => {\n return response.data;\n }\n );\n }]\n }\n }\n });\n\n $httpProvider.interceptors.push('HttpInterceptor');\n\n // Set up Translations\n $translatePartialLoaderProvider.addPart('common');\n $translatePartialLoaderProvider.addPart('vle');\n $translateProvider.useLoader('$translatePartialLoader', {\n urlTemplate: 'wise5/i18n/{part}/i18n_{lang}.json'\n });\n $translateProvider.fallbackLanguage(['en']);\n $translateProvider.registerAvailableLanguageKeys(['en','ja','ko','pt','tr','zh_CN'], {\n 'en_US': 'en',\n 'en_UK': 'en'\n });\n $translateProvider.useSanitizeValueStrategy('escape');\n\n // ngMaterial default theme configuration\n // TODO: make dynamic and support alternate themes; allow projects to specify theme parameters and settings\n $mdThemingProvider.definePalette('primary', {\n '50': 'e1f0f4',\n '100': 'b8dbe4',\n '200': '8ec6d4',\n '300': '5faec2',\n '400': '3d9db5',\n '500': '1c8ca8',\n '600': '197f98',\n '700': '167188',\n '800': '136377',\n '900': '0e4957',\n 'A100': 'abf3ff',\n 'A200': '66e2ff',\n 'A400': '17bee5',\n 'A700': '00A1C6',\n 'contrastDefaultColor': 'light', // whether, by default, text (contrast)\n // on this palette should be dark or light\n 'contrastDarkColors': ['50', '100', //hues which contrast should be 'dark' by default\n '200', '300', 'A100'],\n 'contrastLightColors': undefined // could also specify this if default was 'dark'\n });\n\n $mdThemingProvider.definePalette('accent', {\n '50': 'fde9e6',\n '100': 'fbcbc4',\n '200': 'f8aca1',\n '300': 'f4897b',\n '400': 'f2705f',\n '500': 'f05843',\n '600': 'da503c',\n '700': 'c34736',\n '800': 'aa3e2f',\n '900': '7d2e23',\n 'A100': 'ff897d',\n 'A200': 'ff7061',\n 'A400': 'ff3829',\n 'A700': 'cc1705',\n 'contrastDefaultColor': 'light',\n 'contrastDarkColors': ['50', '100',\n '200', '300', 'A100'],\n 'contrastLightColors': undefined\n });\n\n $mdThemingProvider.theme('default')\n .primaryPalette('primary')\n .accentPalette('accent', {\n 'default': '500'\n })\n .warnPalette('red', {\n 'default': 'A700'\n });\n\n var lightMap = $mdThemingProvider.extendPalette('grey', {\n 'A100': 'ffffff'\n });\n $mdThemingProvider.definePalette('light', lightMap);\n\n $mdThemingProvider.theme('light')\n .primaryPalette('light', {\n 'default': 'A100'\n })\n .accentPalette('primary');\n\n $mdThemingProvider.setDefaultTheme('default');\n\n // moment.js default overrides\n moment.locale('en', {\n calendar : {\n lastDay : '[Yesterday at] LT',\n sameDay : '[Today at] LT',\n nextDay : '[Tomorrow at] LT',\n lastWeek : '[Last] dddd [at] LT',\n nextWeek : 'dddd [at] LT',\n sameElse : 'MMM D, YYYY [at] LT'\n },\n relativeTime : {\n future: \"in %s\",\n past: \"%s\",\n s: \"seconds ago\",\n m: \"1 minute ago\",\n mm: \"%d minutes ago\",\n h: \"1 hour ago\",\n hh: \"%d hours ago\",\n d: \"1 day ago\",\n dd: \"%d days ago\",\n M: \"1 month ago\",\n MM: \"%d months ago\",\n y: \"1 year ago\",\n yy: \"%d years ago\"\n }\n });\n }\n ]);\n\nexport default mainModule;\n"]} \ No newline at end of file +{"version":3,"sources":["main.es6"],"names":["mainModule","module","service","name","controller","filter","config","$urlRouterProvider","$stateProvider","$translateProvider","$translatePartialLoaderProvider","$controllerProvider","$mdThemingProvider","$httpProvider","$provide","otherwise","state","url","abstract","templateProvider","$http","ProjectService","themePath","getThemePath","get","then","response","data","controllerAs","resolve","ConfigService","configURL","window","retrieveConfig","project","retrieveProject","studentData","StudentDataService","retrieveStudentData","notifications","NotificationService","retrieveNotifications","runStatus","retrieveRunStatus","sessionTimers","SessionService","initializeSession","webSocket","StudentWebSocketService","initialize","language","$translate","locale","getLocale","use","theme","$ocLazyLoad","$q","def","defer","System","import","themeModule","m","default","key","Object","keys","load","err","promise","views","wiseBaseURL","getWISEBaseURL","interceptors","push","addPart","useLoader","urlTemplate","fallbackLanguage","registerAvailableLanguageKeys","useSanitizeValueStrategy","definePalette","undefined","primaryPalette","accentPalette","warnPalette","lightMap","extendPalette","setDefaultTheme","calendar","lastDay","sameDay","nextDay","lastWeek","nextWeek","sameElse","relativeTime","future","past","s","mm","h","hh","d","dd","M","MM","y","yy"],"mappings":"AAAA;;;;;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;A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","file":"main.js","sourcesContent":["'use strict';\n\nimport $ from 'jquery';\nimport angular from 'angular';\nimport angularDragula from 'angular-dragula';\nimport angularFileUpload from 'ng-file-upload';\nimport angularHighcharts from 'highcharts-ng';\nimport angularMaterial from 'angular-material';\nimport angularMoment from 'angular-moment';\nimport angularSanitize from 'angular-sanitize';\nimport angularToArrayFilter from 'lib/angular-toArrayFilter/toArrayFilter';\nimport angularTranslate from 'angular-translate';\nimport angularTranslateLoaderPartial from 'angular-translate-loader-partial';\nimport angularUIRouter from 'angular-ui-router';\nimport angularUIScrollpoint from 'angular-ui-scrollpoint';\nimport angularWebSocket from 'angular-websocket';\nimport AnnotationService from '../services/annotationService';\nimport AudioOscillatorComponentModule from '../components/audioOscillator/audioOscillatorComponentModule';\nimport ConceptMapComponentModule from '../components/conceptMap/conceptMapComponentModule';\nimport ConfigService from '../services/configService';\nimport CRaterService from '../services/cRaterService';\nimport Directives from '../directives/directives';\nimport DiscussionComponentModule from '../components/discussion/discussionComponentModule';\nimport DrawComponentModule from '../components/draw/drawComponentModule';\nimport EmbeddedComponentModule from '../components/embedded/embeddedComponentModule';\nimport Filters from '../filters/filters';\nimport Highcharts from '../lib/highcharts@4.2.1';\nimport draggablePoints from '../lib/draggable-points/draggable-points';\nimport GraphComponentModule from '../components/graph/graphComponentModule';\nimport HTMLComponentModule from '../components/html/htmlComponentModule';\nimport HttpInterceptor from '../services/httpInterceptor';\nimport LabelComponentModule from '../components/label/labelComponentModule';\nimport MatchComponentModule from '../components/match/matchComponentModule';\nimport MultipleChoiceComponentModule from '../components/multipleChoice/multipleChoiceComponentModule';\nimport NavigationController from './navigation/navigationController';\nimport NodeController from '../node/nodeController';\nimport NodeService from '../services/nodeService';\nimport Notebook from './notebook/notebook';\nimport NotebookService from '../services/notebookService';\nimport NotificationService from '../services/notificationService';\nimport OpenResponseComponentModule from '../components/openResponse/openResponseComponentModule';\nimport OutsideURLComponentModule from '../components/outsideURL/outsideURLComponentModule';\nimport ProjectService from '../services/projectService';\nimport SessionService from '../services/sessionService';\nimport StudentAsset from './studentAsset/studentAsset';\nimport StudentAssetService from '../services/studentAssetService';\nimport StudentDataService from '../services/studentDataService';\nimport StudentStatusService from '../services/studentStatusService';\nimport StudentWebSocketService from '../services/studentWebSocketService';\nimport TableComponentModule from '../components/table/tableComponentModule';\nimport TeacherDataService from '../services/teacherDataService';\nimport UtilService from '../services/utilService';\nimport VLEController from './vleController';\nimport ocLazyLoad from 'oclazyload';\nimport moment from 'moment';\n\n//import bootstrap from 'bootstrap';\n//import summernote from 'summernote';\nimport angularSummernote from 'lib/angular-summernote/dist/angular-summernote.min';\n\nlet mainModule = angular.module('vle', [\n angularDragula(angular),\n 'angularMoment',\n 'angular-toArrayFilter',\n 'audioOscillatorComponentModule',\n 'conceptMapComponentModule',\n 'directives',\n 'discussionComponentModule',\n 'drawComponentModule',\n 'embeddedComponentModule',\n 'filters',\n 'graphComponentModule',\n 'highcharts-ng',\n 'htmlComponentModule',\n 'labelComponentModule',\n 'matchComponentModule',\n 'multipleChoiceComponentModule',\n 'ngAria',\n 'ngFileUpload',\n 'ngMaterial',\n 'ngSanitize',\n 'ngWebSocket',\n 'notebook',\n 'oc.lazyLoad',\n 'openResponseComponentModule',\n 'outsideURLComponentModule',\n 'pascalprecht.translate',\n 'studentAsset',\n 'summernote',\n 'tableComponentModule',\n 'ui.router',\n 'ui.scrollpoint'\n ])\n .service(AnnotationService.name, AnnotationService)\n .service(ConfigService.name, ConfigService)\n .service(CRaterService.name, CRaterService)\n .service(HttpInterceptor.name, HttpInterceptor)\n .service(NodeService.name, NodeService)\n .service(NotebookService.name, NotebookService)\n .service(NotificationService.name, NotificationService)\n .service(ProjectService.name, ProjectService)\n .service(SessionService.name, SessionService)\n .service(StudentAssetService.name, StudentAssetService)\n .service(StudentDataService.name, StudentDataService)\n .service(StudentStatusService.name, StudentStatusService)\n .service(StudentWebSocketService.name, StudentWebSocketService)\n .service(TeacherDataService.name, TeacherDataService)\n .service(UtilService.name, UtilService)\n .controller(NavigationController.name, NavigationController)\n .controller(NodeController.name, NodeController)\n .controller(VLEController.name, VLEController)\n .filter(Filters.name, Filters)\n .config([\n '$urlRouterProvider',\n '$stateProvider',\n '$translateProvider',\n '$translatePartialLoaderProvider',\n '$controllerProvider',\n '$mdThemingProvider',\n '$httpProvider',\n '$provide',\n function($urlRouterProvider,\n $stateProvider,\n $translateProvider,\n $translatePartialLoaderProvider,\n $controllerProvider,\n $mdThemingProvider,\n $httpProvider,\n $provide) {\n\n $urlRouterProvider.otherwise('/vle/');\n\n angular.module('vle').$controllerProvider = $controllerProvider;\n\n $stateProvider\n .state('root', {\n url: '',\n abstract: true,\n templateProvider: ['$http', 'ProjectService', function ($http, ProjectService) {\n var themePath = ProjectService.getThemePath();\n return $http.get(themePath + '/vle.html').then(\n response => {\n return response.data;\n });\n }],\n controller: 'VLEController',\n controllerAs: 'vleController',\n resolve: {\n config: function (ConfigService) {\n let configURL = window.configURL;\n return ConfigService.retrieveConfig(configURL);\n },\n project: function (ProjectService, config) {\n return ProjectService.retrieveProject();\n },\n studentData: function (StudentDataService, config, project) {\n return StudentDataService.retrieveStudentData();\n },\n notifications: function (NotificationService, studentData, config, project) {\n return NotificationService.retrieveNotifications();\n },\n runStatus: function(StudentDataService, config) {\n return StudentDataService.retrieveRunStatus();\n },\n sessionTimers: function (SessionService, config, project, studentData) {\n return SessionService.initializeSession();\n },\n webSocket: function (StudentWebSocketService, config, project) {\n return StudentWebSocketService.initialize();\n },\n language: ($translate, ConfigService, config) => {\n let locale = ConfigService.getLocale(); // defaults to \"en\"\n $translate.use(locale);\n },\n theme: function (ProjectService, config, project, $ocLazyLoad, $q) {\n let theme = ProjectService.getThemePath() + '/theme.js';\n let def = $q.defer();\n\n \t\t\t\t\tSystem.import(theme).then(m => {\n \t\t\t\t\t\tlet themeModule = m.default;\n \t\t\t\t\t\tif (!m.default.name) {\n \t\t\t\t\t\t\tlet key = Object.keys(m.default);\n \t\t\t\t\t\t\tthemeModule = m.default[key[0]];\n \t\t\t\t\t\t}\n\n \t\t\t\t\t\t$ocLazyLoad.load(themeModule).then(() => {\n \t\t\t\t\t\t\tdef.resolve();\n \t\t\t\t\t\t}, err => {\n \t\t\t\t\t\t\tthrow err;\n \t\t\t\t\t\t});\n \t\t\t\t\t});\n\n \t\t\t\t\treturn def.promise;\n }\n }\n })\n .state('root.vle', {\n url: '/vle/:nodeId',\n views: {\n 'nodeView': {\n templateProvider: ['$http', 'ConfigService', function ($http, ConfigService) {\n let wiseBaseURL = ConfigService.getWISEBaseURL();\n return $http.get(wiseBaseURL + '/wise5/node/index.html').then(\n response => {\n return response.data;\n }\n );\n }],\n controller: 'NodeController',\n controllerAs: 'nodeController'\n }\n }\n })\n .state('root.notebook', {\n url: '/notebook/:nodeid',\n views: {\n 'notebookView': {\n templateProvider: ['$http', 'ConfigService', function ($http, ConfigService) {\n let wiseBaseURL = ConfigService.getWISEBaseURL();\n return $http.get(wiseBaseURL + '/wise5/notebook/index.html').then(\n response => {\n return response.data;\n }\n );\n }]\n }\n }\n });\n\n $httpProvider.interceptors.push('HttpInterceptor');\n\n // Set up Translations\n $translatePartialLoaderProvider.addPart('common');\n $translatePartialLoaderProvider.addPart('vle');\n $translateProvider.useLoader('$translatePartialLoader', {\n urlTemplate: 'wise5/i18n/{part}/i18n_{lang}.json'\n });\n $translateProvider.fallbackLanguage(['en']);\n $translateProvider.registerAvailableLanguageKeys(['en','ja','ko','pt','tr','zh_CN'], {\n 'en_US': 'en',\n 'en_UK': 'en'\n });\n $translateProvider.useSanitizeValueStrategy('escape');\n\n // ngMaterial default theme configuration\n // TODO: make dynamic and support alternate themes; allow projects to specify theme parameters and settings\n $mdThemingProvider.definePalette('primary', {\n '50': 'e1f0f4',\n '100': 'b8dbe4',\n '200': '8ec6d4',\n '300': '5faec2',\n '400': '3d9db5',\n '500': '1c8ca8',\n '600': '197f98',\n '700': '167188',\n '800': '136377',\n '900': '0e4957',\n 'A100': 'abf3ff',\n 'A200': '66e2ff',\n 'A400': '17bee5',\n 'A700': '00A1C6',\n 'contrastDefaultColor': 'light', // whether, by default, text (contrast)\n // on this palette should be dark or light\n 'contrastDarkColors': ['50', '100', //hues which contrast should be 'dark' by default\n '200', '300', 'A100'],\n 'contrastLightColors': undefined // could also specify this if default was 'dark'\n });\n\n $mdThemingProvider.definePalette('accent', {\n '50': 'fde9e6',\n '100': 'fbcbc4',\n '200': 'f8aca1',\n '300': 'f4897b',\n '400': 'f2705f',\n '500': 'f05843',\n '600': 'da503c',\n '700': 'c34736',\n '800': 'aa3e2f',\n '900': '7d2e23',\n 'A100': 'ff897d',\n 'A200': 'ff7061',\n 'A400': 'ff3829',\n 'A700': 'cc1705',\n 'contrastDefaultColor': 'light',\n 'contrastDarkColors': ['50', '100',\n '200', '300', 'A100'],\n 'contrastLightColors': undefined\n });\n\n $mdThemingProvider.theme('default')\n .primaryPalette('primary')\n .accentPalette('accent', {\n 'default': '500'\n })\n .warnPalette('red', {\n 'default': 'A700'\n });\n\n var lightMap = $mdThemingProvider.extendPalette('grey', {\n 'A100': 'ffffff'\n });\n $mdThemingProvider.definePalette('light', lightMap);\n\n $mdThemingProvider.theme('light')\n .primaryPalette('light', {\n 'default': 'A100'\n })\n .accentPalette('primary');\n\n $mdThemingProvider.setDefaultTheme('default');\n\n // moment.js default overrides\n moment.locale('en', {\n calendar : {\n lastDay : '[Yesterday at] LT',\n sameDay : '[Today at] LT',\n nextDay : '[Tomorrow at] LT',\n lastWeek : '[Last] dddd [at] LT',\n nextWeek : 'dddd [at] LT',\n sameElse : 'MMM D, YYYY [at] LT'\n },\n relativeTime : {\n future: \"in %s\",\n past: \"%s\",\n s: \"seconds ago\",\n m: \"1 minute ago\",\n mm: \"%d minutes ago\",\n h: \"1 hour ago\",\n hh: \"%d hours ago\",\n d: \"1 day ago\",\n dd: \"%d days ago\",\n M: \"1 month ago\",\n MM: \"%d months ago\",\n y: \"1 year ago\",\n yy: \"%d years ago\"\n }\n });\n }\n ]);\n\nexport default mainModule;\n"]} \ No newline at end of file