Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit 1e36539

Browse files
Paul GrayPaul Gray
authored andcommitted
Adding templates and embeding rop.json
1 parent 2ecf73b commit 1e36539

File tree

8 files changed

+265
-11
lines changed

8 files changed

+265
-11
lines changed

.jshintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@
2424
"React": true
2525
}
2626
}
27-

app/components/et/transcript.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div>
2+
<div class="header">
3+
<div class="content">
4+
<div class="logo">
5+
<img ng-src="{{domain_logo}}"/>
6+
</div>
7+
<div class="user">
8+
<h1>{{transcript.user.givenName}} {{transcript.user.familyName}}</h1>
9+
</div>
10+
</div>
11+
</div>
12+
</div>

app/components/et/transcript.js

Lines changed: 224 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,231 @@
1-
import request from 'superagent'
1+
'use strict';
2+
import request from 'superagent';
3+
4+
import template from './transcript.html';
5+
import domain_logo from '../../images/aau.jpg';
26

37
export default [function(){
48
return {
59
restrict:'E',
610
replace:true,
7-
template:'<div><h1>{{transcript.user.familyName}}, {{transcript.user.givenName}}</h1></div>',
11+
templateUrl:template,
812
link: function(scope, element){
13+
scope.domain_logo = domain_logo;
14+
15+
scope.transcript = {
16+
"@context": {
17+
"@vocab": "http://purl.kinexis.com:8888/ctx/cbe/v1/record_of_performance/"
18+
},
19+
"@id": "http://purl.kinexis.com:8888/6675c410-1d03-0133-b54c-406c8f40a599",
20+
"@type": "RecordOfPerformance",
21+
"created_at": "2015-08-04T11:20:25-07:00",
22+
"organization": {
23+
"@id": "http://purl.kinexis.com:8888/organizations/7",
24+
"legal_name": "IMS Learning Institute, LLC",
25+
"website": "ili.imsglobal.org"
26+
},
27+
"program": {
28+
"@id": "http://purl.kinexis.com:8888/programs/7",
29+
"courses": [
30+
{
31+
"@id": "http://purl.kinexis.com:8888/course_sections/61",
32+
"competencies": [
33+
{
34+
"@id": "http://purl.kinexis.com:8888/competencies/115",
35+
"achievement": "Basic",
36+
"label": "",
37+
"statement": "Examine the use of critical, strategic, and ethical thinking in decision-making"
38+
},
39+
{
40+
"@id": "http://purl.kinexis.com:8888/competencies/116",
41+
"achievement": "Distinguished",
42+
"label": "mba6004-1",
43+
"statement": "Integrate the Internet, collaboration, and virtual environment strategies into general business management planning and decision-making."
44+
},
45+
{
46+
"@id": "http://purl.kinexis.com:8888/competencies/117",
47+
"achievement": "NonProficient",
48+
"label": "mba6004-2",
49+
"statement": "Integrate business strategies into general business management planning and decision-making."
50+
},
51+
{
52+
"@id": "http://purl.kinexis.com:8888/competencies/118",
53+
"achievement": "Basic",
54+
"label": "mba6004-3",
55+
"statement": "Analyze relevant global business concerns for the future."
56+
},
57+
{
58+
"@id": "http://purl.kinexis.com:8888/competencies/119",
59+
"achievement": "Basic",
60+
"label": "mba6004-4",
61+
"statement": "Communicate in a manner that is professional and consistent with expectations for members of the business professions."
62+
}
63+
],
64+
"label": "MBA-FP6004-1",
65+
"title": "MBA-FP 6004 Section 1"
66+
},
67+
{
68+
"@id": "http://purl.kinexis.com:8888/course_sections/63",
69+
"competencies": [
70+
{
71+
"@id": "http://purl.kinexis.com:8888/competencies/120",
72+
"achievement": "Proficient",
73+
"label": "mba6006-1",
74+
"statement": "Analyze contemporary leadership models and practices from the perspective of innovation in a global environment."
75+
},
76+
{
77+
"@id": "http://purl.kinexis.com:8888/competencies/121",
78+
"achievement": "Distinguished",
79+
"label": "mba6006-2",
80+
"statement": "Assess the behaviors that drive innovation and how leaders can use those behaviors to create innovative organizations."
81+
},
82+
{
83+
"@id": "http://purl.kinexis.com:8888/competencies/122",
84+
"achievement": "Basic",
85+
"label": "mba6006-3",
86+
"statement": "Assess what leaders of innovation do to shape organizational culture and processes."
87+
},
88+
{
89+
"@id": "http://purl.kinexis.com:8888/competencies/123",
90+
"achievement": "NonProficient",
91+
"label": "mba6006-4",
92+
"statement": "Communicate in a manner that is professional and consistent with expectations for members of the business professions."
93+
}
94+
],
95+
"label": "MBA-FP6006-1",
96+
"title": "MBA-FP 6006 Section 1"
97+
},
98+
{
99+
"@id": "http://purl.kinexis.com:8888/course_sections/64",
100+
"competencies": [
101+
{
102+
"@id": "http://purl.kinexis.com:8888/competencies/124",
103+
"achievement": "Basic",
104+
"label": "mba6008-1",
105+
"statement": "Apply the theories, models, and practices of economic theory to create value for the firm."
106+
},
107+
{
108+
"@id": "http://purl.kinexis.com:8888/competencies/125",
109+
"achievement": "NonProficient",
110+
"label": "mba6008-2",
111+
"statement": "Assess the impact of ethical and regulatory considerations on economic decisions"
112+
},
113+
{
114+
"@id": "http://purl.kinexis.com:8888/competencies/126",
115+
"achievement": "Distinguished",
116+
"label": "mba6008-3",
117+
"statement": "Analyze the macroeconomic environment of corporate operations"
118+
},
119+
{
120+
"@id": "http://purl.kinexis.com:8888/competencies/127",
121+
"achievement": "NonProficient",
122+
"label": "mba6008-4",
123+
"statement": "Analyze the microeconomic environment of corporate operations"
124+
},
125+
{
126+
"@id": "http://purl.kinexis.com:8888/competencies/128",
127+
"achievement": "Basic",
128+
"label": "mba6008-5",
129+
"statement": "Communicate in a manner that is professional and consistent with expectations for members of the business professions.ply collaborative techniques to the virtual environment."
130+
}
131+
],
132+
"label": "MBA-FP6008-1",
133+
"title": "MBA-FP 6008 Section 1"
134+
},
135+
{
136+
"@id": "http://purl.kinexis.com:8888/course_sections/69",
137+
"competencies": [
138+
{
139+
"@id": "http://purl.kinexis.com:8888/competencies/124",
140+
"achievement": "Basic",
141+
"label": "mba6008-1",
142+
"statement": "Apply the theories, models, and practices of economic theory to create value for the firm."
143+
},
144+
{
145+
"@id": "http://purl.kinexis.com:8888/competencies/125",
146+
"achievement": "Distinguished",
147+
"label": "mba6008-2",
148+
"statement": "Assess the impact of ethical and regulatory considerations on economic decisions"
149+
},
150+
{
151+
"@id": "http://purl.kinexis.com:8888/competencies/126",
152+
"achievement": "Basic",
153+
"label": "mba6008-3",
154+
"statement": "Analyze the macroeconomic environment of corporate operations"
155+
},
156+
{
157+
"@id": "http://purl.kinexis.com:8888/competencies/127",
158+
"achievement": "Basic",
159+
"label": "mba6008-4",
160+
"statement": "Analyze the microeconomic environment of corporate operations"
161+
},
162+
{
163+
"@id": "http://purl.kinexis.com:8888/competencies/128",
164+
"achievement": "Proficient",
165+
"label": "mba6008-5",
166+
"statement": "Communicate in a manner that is professional and consistent with expectations for members of the business professions.ply collaborative techniques to the virtual environment."
167+
}
168+
],
169+
"label": "MBA-FP6008-1",
170+
"title": "MBA-FP 6008 Section 1"
171+
},
172+
{
173+
"@id": "http://purl.kinexis.com:8888/course_sections/70",
174+
"competencies": [
175+
{
176+
"@id": "http://purl.kinexis.com:8888/competencies/129",
177+
"achievement": "Basic",
178+
"label": "mba6012-1",
179+
"statement": "Apply theories, models, and practices of marketing"
180+
},
181+
{
182+
"@id": "http://purl.kinexis.com:8888/competencies/130",
183+
"achievement": "Proficient",
184+
"label": "mba6012-2",
185+
"statement": "Integrate fundamental principles and applications of marketing to address business problems."
186+
},
187+
{
188+
"@id": "http://purl.kinexis.com:8888/competencies/131",
189+
"achievement": "NonProficient",
190+
"label": "mba6012-3",
191+
"statement": "Develop innovative and sustainable solutions to strategic marketing challenges"
192+
},
193+
{
194+
"@id": "http://purl.kinexis.com:8888/competencies/132",
195+
"achievement": "Distinguished",
196+
"label": "mba6012-4",
197+
"statement": "Integrate marketing analyses into general business management planning and decision making"
198+
},
199+
{
200+
"@id": "http://purl.kinexis.com:8888/competencies/133",
201+
"achievement": "NonProficient",
202+
"label": "mba6012-5",
203+
"statement": "Communicate in a manner that is professional and consistent with expectations for members of the business professions"
204+
}
205+
],
206+
"label": "MBA-FP6012-1",
207+
"title": "MBA-FP 6012 Section 1"
208+
}
209+
],
210+
"degree_level": "MBA",
211+
"label": "Master of Business Admin FP"
212+
},
213+
"tool_consumer_profile": {
214+
"@id": "http://purl.kinexis.com:8888/lti2_tc/tool_consumer_profiles/",
215+
"lti_version": "LTI-2p0",
216+
"product_name": "Elan/LuMoS",
217+
"service_provider_name": "Elan University"
218+
},
219+
"user": {
220+
"@id": "http://purl.kinexis.com:8888/users/14",
221+
"email": "tarne@hotmail.com",
222+
"familyName": "Arne",
223+
"givenName": "Tom",
224+
"sourced_id": 0
225+
}
226+
};
227+
228+
/*
9229
request
10230
.get('http://example.com/rop.json')
11231
.end(function(err, res){
@@ -14,6 +234,7 @@ export default [function(){
14234
scope.$apply();
15235
// Calling the end function will send the request
16236
});
237+
*/
17238
}
18239
};
19-
}];
240+
}];
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
import angular from 'angular';
3-
import transcript from './transcript';
4-
var moduleName = 'transcriptModule';
5-
2+
var moduleName = 'transcript';
63
export default angular.module(moduleName, []);
74

8-
angular.module(moduleName).directive('transcript', transcript);
5+
import transcript from './transcript';
6+
7+
angular.module(moduleName).directive('transcript', transcript);

app/images/aau.jpg

9.9 KB
Loading

app/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//Third-party deps
32
import angular from 'angular';
43
import 'angular-ui-router';

app/styles/main.less

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
@color-primary: #2d3e4e;
2+
@color-secondary: #9e0c0f;
3+
4+
@width-body: 80%;
5+
16
html, body {
27
height: 100%;
38
width: 100%;
@@ -13,3 +18,22 @@ html, body {
1318
width: 100%;
1419
height: 100%;
1520
}
21+
22+
.content{
23+
width: @width-body;
24+
margin: 0 auto;
25+
}
26+
27+
.header{
28+
background-color: @color-secondary;
29+
color: #FFF;
30+
padding: 1em 0;
31+
32+
.logo{
33+
display: inline-block;
34+
}
35+
36+
.user{
37+
float:right;
38+
}
39+
}

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
loader: "file"
5252
}, {
5353
test: /\.html$/,
54-
loader: "ngtemplate?module=campuspack&relativeTo=" + __dirname + "!html"
54+
loader: "ngtemplate?relativeTo=" + __dirname + "!html"
5555
}]
5656
},
5757

0 commit comments

Comments
 (0)