d2l-image

3.6.0 • Public • Published

d2l-image

CI

Web component for displaying images that require authentication.

Usage

<d2l-image
	alternate-text="Alt text that will appear on image"
	image-url="https://example.com/image-to-fetch.jpg"
	token="some-oauth-token">
</d2l-image>

When both image-url and token are non-null, d2l-image will load the image.

Developing

After cloning the repo, run npm install to install dependencies.

Running the demos

Start a @web/dev-server that hosts the demo pages:

npm start

Linting

# eslint, lit-analyzer
npm run lint

# eslint only
npm run lint:eslint

# lit-analyzer only
npm run lint:lit

Testing

# lint and unit tests
npm test

# unit tests
npm run test:headless

Versioning and Releasing

This repo is configured to use semantic-release. Commits prefixed with fix: and feat: will trigger patch and minor releases when merged to main.

To learn how to create major releases and release from maintenance branches, refer to the semantic-release GitHub Action documentation.

Readme

Keywords

Package Sidebar

Install

npm i d2l-image

Weekly Downloads

306

Version

3.6.0

License

Apache-2.0

Unpacked Size

15.6 kB

Total Files

4

Last publish

Collaborators

  • d2l-travis-deploy