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

WIP: SnackPlayer Plugin #31

Merged
merged 9 commits into from
Oct 7, 2020
Merged

WIP: SnackPlayer Plugin #31

merged 9 commits into from
Oct 7, 2020

Conversation

darshkpatel
Copy link
Member

@darshkpatel darshkpatel commented Oct 3, 2020

I've published v0.0.1 of the remark plugin called remark-snackplayer
This is with reference to #4

I'll be opening a followup PR to fix the following issues:

  • SnackPlayers only work after refresh
  • Automatic Dark Theme Support
  • Mobile View Still loads snackplayer

@darshkpatel
Copy link
Member Author

JavaScript heap out of memory 😢

@darshkpatel darshkpatel requested a review from Simek October 3, 2020 11:40
website/package.json Outdated Show resolved Hide resolved
@Simek Simek requested a review from slorber October 5, 2020 07:23
@slorber
Copy link

slorber commented Oct 6, 2020

FYI I've added the ability to reinitialize snackplayer on route change and tab change. It's a bit hacky IMHO but seems to work fine (sometimes snack iframe takes some time to init though).

Pinged Satya to see if this integration can be made easier directly inside the embedded snack js script.

@darshkpatel as I msged you in private I think it's better if we reintegrate the snackplayer temporarily as it's easier to fix issues for now. We'll figure out where this plugin should live after it works fine.

@darshkpatel
Copy link
Member Author

@slorber Done

@slorber
Copy link

slorber commented Oct 7, 2020

LGTM, but will let @Simek merge if it's fine ;)

Copy link

@Simek Simek left a comment

Choose a reason for hiding this comment

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

Let's merge it, it is fine for now to have this plugin as a local package . 🙂

@Simek Simek merged commit cd4d12c into dev Oct 7, 2020
Simek added a commit that referenced this pull request Oct 20, 2020
* add remark-snackplayer

* bump version

* remove legacy plugins

* Increase heap memory

* move heap fix to the deployment scripts

* Add ability to initialize snackplayer after navigation and tab changes

* add local remark-snackplayer package

* cleanup package

* Fix: dependency issues

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
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