Skip to content

#136 #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 64 commits into from
Jul 20, 2016
Merged

#136 #140

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
b73fb9d
Updated Schemas
sandershihacker Jul 6, 2016
0effec1
Load Screen
sandershihacker Jul 6, 2016
78426b8
Loading Screen
sandershihacker Jul 6, 2016
65d8874
merge with origin master
sandershihacker Jul 6, 2016
48a3fcd
Merged from master
sandershihacker Jul 7, 2016
658bd9f
publish subscribe and dynamic explore page
sandershihacker Jul 7, 2016
984fd5d
publish subscribe done
sandershihacker Jul 7, 2016
9f84d87
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 7, 2016
5e1fd85
deleted swap file
sandershihacker Jul 7, 2016
bfaf8ce
publish subscribe
sandershihacker Jul 7, 2016
5123b2f
template fixes
sandershihacker Jul 8, 2016
df18c7b
added start for reactive publication
DerekTBrown Jul 8, 2016
4361c51
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 8, 2016
60a74de
Merge branch 'pubsub' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 8, 2016
cb82ff7
template issue
sandershihacker Jul 8, 2016
2c872bb
.
sandershihacker Jul 8, 2016
b8f7501
.
sandershihacker Jul 8, 2016
cdb18dc
course_records publish
sandershihacker Jul 8, 2016
633716c
course_records reactively publish
sandershihacker Jul 8, 2016
216cb6c
.
sandershihacker Jul 11, 2016
dd01958
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 11, 2016
f21dcc5
revert meteor update
sandershihacker Jul 11, 2016
aa4a575
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 11, 2016
aeaeb2c
publish subscribe and lineheight for searchpage icons
sandershihacker Jul 11, 2016
f85a0d0
publish subscribe
sandershihacker Jul 11, 2016
0d21e7f
fixed indentation and removed test file
sandershihacker Jul 12, 2016
49386cd
indentation
sandershihacker Jul 12, 2016
4530d0e
indentation
sandershihacker Jul 12, 2016
dd760f5
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 12, 2016
5efd498
Accounts page and fixed random erro
sandershihacker Jul 12, 2016
b74eadf
toolbar for mobile devices
sandershihacker Jul 12, 2016
29dd9b7
toolbar
sandershihacker Jul 13, 2016
ab34eb2
account.html fixes
sandershihacker Jul 13, 2016
0895551
pull from origin
sandershihacker Jul 13, 2016
36c2a6b
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 13, 2016
45c4797
Toolbar made responsive
sandershihacker Jul 13, 2016
fd7ded1
Responsive toolbar fixes
sandershihacker Jul 13, 2016
020f88c
created userlist component
sandershihacker Jul 13, 2016
a48bb31
course_records course_id validation
sandershihacker Jul 13, 2016
9c527b2
Database Schema Validation and Sidenav fix
sandershihacker Jul 13, 2016
c7d0984
indentation
sandershihacker Jul 13, 2016
a3d5297
markdown
sandershihacker Jul 14, 2016
3eae7dd
pull from origin
sandershihacker Jul 14, 2016
5def4c2
zMerge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 14, 2016
3cef02a
import changes
sandershihacker Jul 14, 2016
98bc33d
validation addition
sandershihacker Jul 14, 2016
b3388d0
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 14, 2016
126e90a
Forms Module Deprecated Warning. Issue #110
sandershihacker Jul 14, 2016
61c17ee
indentation
sandershihacker Jul 14, 2016
07f0d1d
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 15, 2016
35fef39
Use routerLink
sandershihacker Jul 15, 2016
574d273
api changes (#126)
cemersoz Jul 15, 2016
3df5ed1
method implementations (#127)
cemersoz Jul 15, 2016
b8968a9
course pages now uses Child Routing
sandershihacker Jul 15, 2016
90e358b
deleted LabData class
sandershihacker Jul 15, 2016
24aa3a0
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 15, 2016
07b5b72
merge with requires-infra
sandershihacker Jul 15, 2016
61f1d62
school name
sandershihacker Jul 15, 2016
3724a0a
search function
sandershihacker Jul 18, 2016
9fdb686
Merge with origin and Explore Functionality
sandershihacker Jul 19, 2016
488b678
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 19, 2016
e36be8b
icon size and #136
sandershihacker Jul 19, 2016
d19e76f
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 19, 2016
ba9d265
dashboard pull data from database
sandershihacker Jul 19, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions client/imports/ui/components/lablist/lablist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
// Export LabList Class
export class LabList extends MeteorComponent {
user: Meteor.User;
courseId: String; // TODO: Get from URL
userId: String = Meteor.userId();
courseId: string; // TODO: Get from URL
userId: string = Meteor.userId();
labs: Array<Object> = [];
courseRecord;

Expand All @@ -58,7 +58,7 @@
// Method to subscribe to course_records database and set Lab data
setLab(courseId: String, userId: String) {
this.subscribe('course-records', [courseId, userId], () => {
this.courseRecord = course_records.findOne({ user_id: userId, course_id: courseId });
this.courseRecord = course_records.findOne({ course_id: courseId });
if(typeof this.courseRecord !== "undefined") {
let labs = this.courseRecord.labs;
let totalCompleted = 0;
Expand All @@ -69,7 +69,7 @@
let tasks = lab.tasks;
for (let j = 0; j < tasks.length; j++) {
let task = tasks[j];
if (task.status === 'SUCCESS') {
if (task.status === 'COMPLETED') {
tasksCompleted++;
}
}
Expand Down
12 changes: 0 additions & 12 deletions client/imports/ui/components/markdown/markdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,5 @@
<!--Markdown-->
<div class="markdown-content">
<div id="task-markdown" [innerHTML]="convertedData">Task loading...</div>
<div class="markdown-check-button">
<md-dialog #alert>
<md-dialog-title>Score: 3/10</md-dialog-title>
Truth be told you may fail the course, perhaps drop it
while you can?
<md-dialog-actions ok="Fine"></md-dialog-actions>
</md-dialog>
<button md-raised-button (click)="alert.show()">
Check
<md-icon fontIcon="tuxicon-tick"></md-icon>
</button>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions client/imports/ui/pages/course/course.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<a md-button [routerLink]="['/course']">More</a>
<a md-button [routerLink]="['/course']">More</a>
</div>
<md-icon fontIcon="tuxicon-right"></md-icon>
</md-toolbar>
</div>
<!--Course View Content-->
Expand Down
12 changes: 7 additions & 5 deletions client/imports/ui/pages/course/course.routes.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import { RouterConfig } from '@angular/router';
import CourseView from './course.ts';
import { GradeView } from './gradeview.ts';
import { CourseGradeList } from './course_gradelist.ts';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change

import { CourseLabList } from './course_lablist.ts';
import { CourseDashboard } from './course_dashboard.ts';
import { LabView } from './labview.ts';
import { MainCourseView } from './mainview.ts';

export const courseRoutes: RouterConfig = [
{
path: 'course',
component: CourseView,
children: [
{ path: '', component: MainCourseView },
{ path: 'grades', component: GradeView },
{ path: 'labs', component: LabView }
{ path: '', component: CourseDashboard },
{ path: 'grades', component: CourseGradeList },
{ path: 'labs', component: CourseLabList },
{ path: 'labs/lab', component: LabView }
// { path: '/:courseid', as: 'CourseView', component: CourseView },
// { path: '/:courseid/users', as: 'UserList', component: UserList },
// { path: '/:courseid/user/:userid', as: 'UserView', component: UserView },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="tuxlab-maincourseview">
<div class="tuxlab-course-dashboard">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change

<!--Course Description Card-->
<a name="description"></a>
<md-card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
import { courses } from "../../../../../collections/courses.ts";
import { course_records } from "../../../../../collections/course_records.ts";

// Define CourseView Component
// Define CourseDashboard Component
@Component({
selector: 'tuxlab-maincourseview',
templateUrl: '/client/imports/ui/pages/course/mainview.html',
selector: 'tuxlab-course-dashboard',
templateUrl: '/client/imports/ui/pages/course/course_dashboard.html',
directives: [
MATERIAL_DIRECTIVES,
MD_ICON_DIRECTIVES,
Expand All @@ -44,8 +44,8 @@
encapsulation: ViewEncapsulation.None
})

// Export MainCourseView Class
export class MainCourseView extends MeteorComponent {
// Export CourseDashboard Class
export class CourseDashboard extends MeteorComponent {
course;
courseNumber: String = '15-131'; // TODO: Get from URL
courseDescription: String = "Course Description Not Found";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@
import { courses } from "../../../../../collections/courses.ts";
import { course_records } from "../../../../../collections/course_records.ts";

// Define GradeView Component
// Define CourseGradeList Component
@Component({
selector: 'tuxlab-gradeview',
templateUrl: '/client/imports/ui/pages/course/gradeview.html',
selector: 'tuxlab-course-gradelist',
template : `
<div class="tuxlab-course-gradelist">
<tuxlab-gradelist></tuxlab-gradelist>
</div>
`,
directives: [
MATERIAL_DIRECTIVES,
MD_ICON_DIRECTIVES,
Expand All @@ -42,8 +46,8 @@
encapsulation: ViewEncapsulation.None
})

// Export GradeView Class
export class GradeView extends MeteorComponent {
// Export CourseGradeList Class
export class CourseGradeList extends MeteorComponent {
constructor(mdIconRegistry: MdIconRegistry) {
super();
// Create Icon Font
Expand Down
57 changes: 57 additions & 0 deletions client/imports/ui/pages/course/course_lablist.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// Meteor Imports
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import 'reflect-metadata';
import 'zone.js/dist/zone';

// Angular Imports
import { Component, ViewEncapsulation, provide } from '@angular/core';
import { bootstrap } from 'angular2-meteor-auto-bootstrap';
import { APP_BASE_HREF } from '@angular/common';
import { HTTP_PROVIDERS } from '@angular/http';
import { InjectUser } from 'angular2-meteor-accounts-ui';
import { ROUTER_DIRECTIVES } from '@angular/router';

// Angular Material Imports
import { MATERIAL_PROVIDERS, MATERIAL_DIRECTIVES } from 'ng2-material';
import { MeteorComponent } from 'angular2-meteor';
import {OVERLAY_PROVIDERS} from '@angular2-material/core/overlay/overlay';

// Icon
import { MD_ICON_DIRECTIVES, MdIconRegistry } from '@angular2-material/icon';

// LabList and Grades import
import { LabList } from "../../components/lablist/lablist.ts";

// Courses and Course Record Imports
import { courses } from "../../../../../collections/courses.ts";
import { course_records } from "../../../../../collections/course_records.ts";

// Define CourseLabList Component
@Component({
selector: 'tuxlab-course-lablist',
template: `
<div class="tuxlab-course-lablist">
<tuxlab-lablist></tuxlab-lablist>
</div>
`,
directives: [
MATERIAL_DIRECTIVES,
MD_ICON_DIRECTIVES,
ROUTER_DIRECTIVES,
LabList
],
viewProviders: [MdIconRegistry],
providers: [OVERLAY_PROVIDERS],
encapsulation: ViewEncapsulation.None
})

// Export CourseLabList Class
export class CourseLabList extends MeteorComponent {
constructor(mdIconRegistry: MdIconRegistry) {
super();
// Create Icon Font
mdIconRegistry.registerFontClassAlias('tux', 'tuxicon');
mdIconRegistry.setDefaultFontSetClass('tuxicon');
}
}
3 changes: 0 additions & 3 deletions client/imports/ui/pages/course/gradeview.html

This file was deleted.

2 changes: 1 addition & 1 deletion client/imports/ui/pages/course/labview.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="tuxlab-labview">
<tuxlab-lablist></tuxlab-lablist>
Single lab here.
</div>
55 changes: 10 additions & 45 deletions client/imports/ui/pages/course/labview.ts
Original file line number Diff line number Diff line change
@@ -1,53 +1,18 @@
// Meteor Imports
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import 'reflect-metadata';
import 'zone.js/dist/zone';

import { MeteorComponent } from 'angular2-meteor';

// Angular Imports
import { Component, ViewEncapsulation, provide } from '@angular/core';
import { bootstrap } from 'angular2-meteor-auto-bootstrap';
import { APP_BASE_HREF } from '@angular/common';
import { HTTP_PROVIDERS } from '@angular/http';
import { InjectUser } from 'angular2-meteor-accounts-ui';
import { ROUTER_DIRECTIVES } from '@angular/router';

// Angular Material Imports
import { MATERIAL_PROVIDERS, MATERIAL_DIRECTIVES } from 'ng2-material';
import { MeteorComponent } from 'angular2-meteor';
import {OVERLAY_PROVIDERS} from '@angular2-material/core/overlay/overlay';

// Icon
import { MD_ICON_DIRECTIVES, MdIconRegistry } from '@angular2-material/icon';

// LabList and Grades import
import { LabList } from "../../components/lablist/lablist.ts";

// Courses and Course Record Imports
import { courses } from "../../../../../collections/courses.ts";
import { course_records } from "../../../../../collections/course_records.ts";
import { Component } from '@angular/core';

// Define CourseView Component
@Component({
selector: 'tuxlab-labview',
templateUrl: '/client/imports/ui/pages/course/labview.html',
directives: [
MATERIAL_DIRECTIVES,
MD_ICON_DIRECTIVES,
ROUTER_DIRECTIVES,
LabList
],
viewProviders: [MdIconRegistry],
providers: [OVERLAY_PROVIDERS],
encapsulation: ViewEncapsulation.None
})
// Define LabView Component
@Component({
selector: 'tuxlab-labview',
templateUrl: '/client/imports/ui/pages/course/labview.html'
})

// Export LabView Class
export class LabView extends MeteorComponent {
constructor(mdIconRegistry: MdIconRegistry) {
constructor() {
super();
// Create Icon Font
mdIconRegistry.registerFontClassAlias('tux', 'tuxicon');
mdIconRegistry.setDefaultFontSetClass('tuxicon');
}
}
}
Loading