From e8e8ec19aa14131ddb4aa0b8a8b7256f611cfd27 Mon Sep 17 00:00:00 2001 From: nogalpaulina Date: Thu, 1 Apr 2021 14:04:26 -0500 Subject: [PATCH] Creating new page for Learning Analytics content --- web/src/main/webapp/WEB-INF/web.xml | 1 + .../my-app/learningAnalytics/controllers.js | 35 +++++++++++ .../partials/learningAnalytics.html | 61 +++++++++++++++++++ .../webapp/my-app/learningAnalytics/route.js | 25 ++++++++ web/src/main/webapp/my-app/main.js | 6 +- 5 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 web/src/main/webapp/my-app/learningAnalytics/controllers.js create mode 100644 web/src/main/webapp/my-app/learningAnalytics/partials/learningAnalytics.html create mode 100644 web/src/main/webapp/my-app/learningAnalytics/route.js diff --git a/web/src/main/webapp/WEB-INF/web.xml b/web/src/main/webapp/WEB-INF/web.xml index 5037d25f5..d8a3bef83 100644 --- a/web/src/main/webapp/WEB-INF/web.xml +++ b/web/src/main/webapp/WEB-INF/web.xml @@ -91,6 +91,7 @@ /settings/* /user-settings /notifications + /learningAnalytics /static/* /exclusive/* /widgets diff --git a/web/src/main/webapp/my-app/learningAnalytics/controllers.js b/web/src/main/webapp/my-app/learningAnalytics/controllers.js new file mode 100644 index 000000000..eec5381ad --- /dev/null +++ b/web/src/main/webapp/my-app/learningAnalytics/controllers.js @@ -0,0 +1,35 @@ +/* + * Licensed to Apereo under one or more contributor license + * agreements. See the NOTICE file distributed with this work + * for additional information regarding copyright ownership. + * Apereo licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a + * copy of the License at the following location: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +'use strict'; + +define(['angular', 'require'], function(angular, require) { + return angular.module('my-app.learningAnalytics.controllers', []) + .controller('learningAnalyticsPageController', ['$log', '$scope', '$rootScope', + function($log, $scope, $rootScope) { + /** + * Get list of all groups and current user's groups + * to conitionally hide and show content + */ + var init = function() { + // TO DO + init(); + } + } + ]) +}); \ No newline at end of file diff --git a/web/src/main/webapp/my-app/learningAnalytics/partials/learningAnalytics.html b/web/src/main/webapp/my-app/learningAnalytics/partials/learningAnalytics.html new file mode 100644 index 000000000..6adb3242f --- /dev/null +++ b/web/src/main/webapp/my-app/learningAnalytics/partials/learningAnalytics.html @@ -0,0 +1,61 @@ + + + + + +
+

Learning Analytics Tools

+ + +

Learning Analytics Resources

+ + +

Learning Analytics Events

+ +
+
+
diff --git a/web/src/main/webapp/my-app/learningAnalytics/route.js b/web/src/main/webapp/my-app/learningAnalytics/route.js new file mode 100644 index 000000000..4821e174a --- /dev/null +++ b/web/src/main/webapp/my-app/learningAnalytics/route.js @@ -0,0 +1,25 @@ +/* + * Licensed to Apereo under one or more contributor license + * agreements. See the NOTICE file distributed with this work + * for additional information regarding copyright ownership. + * Apereo licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a + * copy of the License at the following location: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +define(['require'], function(require) { + return { + templateUrl: require.toUrl('./partials/learningAnalytics.html'), + controller: 'learningAnalyticsPageController', + }; +}); diff --git a/web/src/main/webapp/my-app/main.js b/web/src/main/webapp/my-app/main.js index 6a126498b..a4754aa4a 100644 --- a/web/src/main/webapp/my-app/main.js +++ b/web/src/main/webapp/my-app/main.js @@ -49,9 +49,11 @@ define([ './search/controllers', './search/directives', './search/services', + './learningAnalytics/controllers', + './learningAnalytics/route' ], function(angular, require, marketplaceRoutes, listRoute, messagesRoutes, portalSettingsRoutes, aboutRoute, helpRoutes, layoutRoute, staticRoutes, - widgetRoutes, searchRoutes) { + widgetRoutes, searchRoutes, learningAnalyticsRoute) { return angular.module('my-app', [ 'ngRoute', 'ngSanitize', @@ -69,6 +71,7 @@ define([ 'my-app.search.controllers', 'my-app.search.directives', 'my-app.search.services', + 'my-app.learningAnalytics.controllers', 'ngStorage', 'dndLists', 'portal', @@ -96,6 +99,7 @@ define([ .when('/about', aboutRoute) .when('/session-info', helpRoutes.sessionInfo) .when('/widget-creator', widgetRoutes.widgetCreator) + .when('/learningAnalytics', learningAnalyticsRoute) .otherwise(layoutRoute); }]); });