No description
  • JavaScript 72.4%
  • Handlebars 14.1%
  • HTML 11.4%
  • SCSS 2.1%
Find a file
Lisbet Alvarez 68a67ac838
Merge pull request #22 from hashicorp/update-readme
Update readme with deprecation warning
2025-12-16 10:25:01 -08:00
.github Add CODEOWNERS file (#20) 2025-11-21 16:22:19 -05:00
addon/components/heap/player chore: remove console.log 2023-05-25 14:53:40 -05:00
app [COMPLIANCE] Add Copyright and License Headers 2023-03-06 17:02:07 +00:00
tests test: fix updated class selector in tests 2023-05-25 15:28:19 -05:00
.editorconfig Initial Commit from Ember CLI v4.9.1 2022-12-10 12:19:29 -05:00
.ember-cli Initial Commit from Ember CLI v4.9.1 2022-12-10 12:19:29 -05:00
.eslintignore Initial Commit from Ember CLI v4.9.1 2022-12-10 12:19:29 -05:00
.eslintrc.js [COMPLIANCE] Add Copyright and License Headers 2023-03-06 17:02:07 +00:00
.gitignore ignore .DS_Store 2022-12-10 12:46:35 -05:00
.npmignore Initial Commit from Ember CLI v4.9.1 2022-12-10 12:19:29 -05:00
.prettierignore Initial Commit from Ember CLI v4.9.1 2022-12-10 12:19:29 -05:00
.prettierrc.js [COMPLIANCE] Add Copyright and License Headers 2023-03-06 17:02:07 +00:00
.template-lintrc.js [COMPLIANCE] Add Copyright and License Headers 2023-03-06 17:02:07 +00:00
.watchmanconfig Initial Commit from Ember CLI v4.9.1 2022-12-10 12:19:29 -05:00
CONTRIBUTING.md Initial Commit from Ember CLI v4.9.1 2022-12-10 12:19:29 -05:00
ember-cli-build.js [COMPLIANCE] Add Copyright and License Headers 2023-03-06 17:02:07 +00:00
index.js [COMPLIANCE] Add Copyright and License Headers 2023-03-06 17:02:07 +00:00
LICENSE add license 2022-12-10 12:44:08 -05:00
package.json chore: update asciinema-player to latest version 2023-05-25 14:51:44 -05:00
README.md Update readme with deprecation warning 2025-12-15 17:08:33 -08:00
testem.js [COMPLIANCE] Add Copyright and License Headers 2023-03-06 17:02:07 +00:00
yarn.lock chore: update asciinema-player to latest version 2023-05-25 14:51:44 -05:00

DEPRECATED

This project is no longer maintained. Instead consider creating an asciinema player component. Please reference this asciinema-player component for an example of how to do so.

ember-asciinema-player

Asciinema Player for Ember.

Compatibility

  • Ember.js v4 or above
  • Ember CLI v4 or above
  • Node.js v14 or above

Installation

ember install ember-asciinema-player

Usage

Add the player component to a template:

<Heap::Player @data={{@asciicastData}} @poster='npt:1:30' />

Pass supported options as component arguments: autoPlay, loop, startAt, speed, idleTimeLimit, theme, poster, fit, controls, markers, pauseOnMarkers. Learn more about these options in the asciinema-player docs.

This example assumes that @asciicastData is a preloaded asciicast file. Asciicast may be fetched from a remote source. For example, to preload asciicast in a route:

async model() {
  const response = await fetch('/example.cast');
  const asciicast = await response.text();
  return asciicast;
}

Example Asciicast

Example asciicast for development purposes may be found at asciinema.org/explore. To use the example asciicast file from this project, copy tests/dummy/public/example.cast to your own Ember project's public/ folder and fetch it, e.g. const response = await fetch('/example.cast');.