Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Viewer library #52

Merged
merged 9 commits into from
Dec 18, 2015
Merged

Viewer library #52

merged 9 commits into from
Dec 18, 2015

Conversation

AdaRoseCannon
Copy link
Contributor

This is for using the viewer module. Which interfaces with the api and handles scheduling.

Don't merge yet there are no tests written for the viewer library.

This keeps the same functionality (no carousel integration) but uses the new library.

Tests are added to viewer now
Added carousel too.

Need to fix screens tests now...

Fixes #11
Fixes #53

@seanmtracey
Copy link
Contributor

Looks good to me.

@AdaRoseCannon
Copy link
Contributor Author

It says tests failing but, npm run test passes all tests.

const Viewer = require('ftlabs-screens-viewer');
const Carousel = require('ftlabs-screens-carousel');
const port = location.port ? ':'+location.port : '';
const host = '//'+location.hostname+port;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think location.origin would be a better fit.
location.origin returns the protocol, hostname and port --
"http://local.ft.com:3000"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

JakeChampion added a commit that referenced this pull request Dec 18, 2015
@JakeChampion JakeChampion merged commit c59fcbe into master Dec 18, 2015
@JakeChampion JakeChampion deleted the viewer-library branch December 18, 2015 14:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate the carousel library into Viewer. displaying a Google Slides doc in a carousel
3 participants