-
Notifications
You must be signed in to change notification settings - Fork 10
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
Live app #95
Conversation
…files of the live app
…wer.json file, and also added script for installing the live app in package.json
…files of the live app
…wer.json file, and also added script for installing the live app in package.json
…at-live-app-events
…-events branch of the live-app-asq repository
…wer.json file, and also added script for installing the live app in package.json
…files of the live app
…-events branch of the live-app-asq repository
…at-live-app-events
…s an Answer to an implicit question
…dent-question-events in cockpit-asq
…s an Answer to an implicit question
…, it will be treated as an upvote
… 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
client/js/ghost.js
Outdated
} | ||
}) | ||
eventBus.on('share-student-question', function (question) { | ||
const app = document.getElementsByTagName('ASQ-LIVE-APP')[0]; |
There was a problem hiding this comment.
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')
client/js/ghost.js
Outdated
|
||
eventBus.on('student-question-rated', function (evt) { | ||
const app = document.getElementsByTagName('ASQ-LIVE-APP')[0]; | ||
app.questionRated(evt.data.question); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check if app
exists
client/js/ghost.js
Outdated
|
||
eventBus.on('update-student-questions', function (evt) { | ||
const app = document.getElementsByTagName('ASQ-LIVE-APP')[0]; | ||
if (evt && evt.data !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix this check
client/js/viewer.js
Outdated
} | ||
}) | ||
eventBus.on('share-student-question', function (question) { | ||
const app = document.getElementsByTagName('ASQ-LIVE-APP')[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar to ghost.js
lib/liveApp/index.js
Outdated
const _ = require('lodash'); | ||
const socketEmitter = require('../socket/pubsub'); | ||
const renameIdAndRemoveVersion = require('../utils/format').renameIdAndRemoveVersion; | ||
const handleSliderChange = coroutine(function *handleSliderChangeGen (socket, evt) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace before function
lib/liveApp/index.js
Outdated
questions: [implicitQuestion._id], | ||
}; | ||
|
||
const dummyExercise = yield Exercise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dummyExercise
-> viewerQuestionsExercise
lib/socket/handlers.js
Outdated
@@ -608,6 +608,53 @@ module.exports = function(socketUtils){ | |||
pluginPubsub.emit('plugin', evt); | |||
} | |||
|
|||
const ctrlForwardDataToRoles = coroutine( function *ctrlForwardDataToRolesGen (evtName, data, sessionId) { |
There was a problem hiding this comment.
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 = { |
There was a problem hiding this comment.
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 = { |
There was a problem hiding this comment.
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(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need moaaaarrrrrrrrrr
No description provided.