d2l-image
v4.0.1
Published
A Lit web component to render images requiring authentication
Downloads
2,439
Readme
d2l-image
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 startLinting
# eslint, lit-analyzer
npm run lint
# eslint only
npm run lint:eslint
# lit-analyzer only
npm run lint:litTesting
# lint and unit tests
npm test
# unit tests
npm run test:headlessVersioning 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.
