Skip to content
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

Live app #95

Closed
wants to merge 77 commits into from
Closed

Live app #95

wants to merge 77 commits into from

Conversation

triglian
Copy link
Member

@triglian triglian commented Feb 1, 2017

No description provided.

EmrahSignorini and others added 30 commits November 11, 2016 16:58
…wer.json file, and also added script for installing the live app in package.json
…wer.json file, and also added script for installing the live app in package.json
…-events branch of the live-app-asq repository
…wer.json file, and also added script for installing the live app in package.json
…-events branch of the live-app-asq repository
EmrahSignorini and others added 22 commits February 1, 2017 14:31
… the data to the session (active question and questions made during said session), when the presenter changes slide it will close the modal if it is open
…e installing the live app bower components it removes the current one so we are sure that is up to date
…s between the html presentations and pdf presentations
…ce. Clicking it once will show the question clicking it twice it will close it. The presenter now knows which question is being broadcasted
}
})
eventBus.on('share-student-question', function (question) {
const app = document.getElementsByTagName('ASQ-LIVE-APP')[0];
Copy link
Member Author

Choose a reason for hiding this comment

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

document.querySelector('asq-live-app')


eventBus.on('student-question-rated', function (evt) {
const app = document.getElementsByTagName('ASQ-LIVE-APP')[0];
app.questionRated(evt.data.question);
Copy link
Member Author

Choose a reason for hiding this comment

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

check if app exists


eventBus.on('update-student-questions', function (evt) {
const app = document.getElementsByTagName('ASQ-LIVE-APP')[0];
if (evt && evt.data !== undefined) {
Copy link
Member Author

Choose a reason for hiding this comment

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

fix this check

}
})
eventBus.on('share-student-question', function (question) {
const app = document.getElementsByTagName('ASQ-LIVE-APP')[0];
Copy link
Member Author

Choose a reason for hiding this comment

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

similar to ghost.js

const _ = require('lodash');
const socketEmitter = require('../socket/pubsub');
const renameIdAndRemoveVersion = require('../utils/format').renameIdAndRemoveVersion;
const handleSliderChange = coroutine(function *handleSliderChangeGen (socket, evt) {
Copy link
Member Author

Choose a reason for hiding this comment

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

whitespace before function

questions: [implicitQuestion._id],
};

const dummyExercise = yield Exercise
Copy link
Member Author

Choose a reason for hiding this comment

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

dummyExercise -> viewerQuestionsExercise

@@ -608,6 +608,53 @@ module.exports = function(socketUtils){
pluginPubsub.emit('plugin', evt);
}

const ctrlForwardDataToRoles = coroutine( function *ctrlForwardDataToRolesGen (evtName, data, sessionId) {
Copy link
Member Author

Choose a reason for hiding this comment

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

document function and if needed give a better name

@@ -245,7 +246,12 @@ const startPresentation = coroutine(function *startPresentationGen(req, res, ne
.indexOf(req.body.flow) > -1 ) ? req.body.flow : 'ctrl';
newSession.authLevel = ( Session.schema.path('authLevel').enumValues
.indexOf(req.body.authLevel) > -1 ) ? req.body.authLevel : 'public';
newSession.data = {
Copy link
Member Author

Choose a reason for hiding this comment

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

put a comment above this

};

const implicitQuestion = new Question(implicitQuestionData);
const dummyExerciseData = {
Copy link
Member Author

Choose a reason for hiding this comment

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

proper name

const Promise = require('bluebird');
const modulePath = '../../../lib/upload/liveApp';

describe('liveApp.js',function(){
Copy link
Member Author

Choose a reason for hiding this comment

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

we need moaaaarrrrrrrrrr

@triglian triglian closed this Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants