https://github.com/brightspace/d2l-image
Web component for images requiring authentication
https://github.com/brightspace/d2l-image
browser lit-element web-components
Last synced: about 1 year ago
JSON representation
Web component for images requiring authentication
- Host: GitHub
- URL: https://github.com/brightspace/d2l-image
- Owner: Brightspace
- License: apache-2.0
- Created: 2017-03-30T19:31:31.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2025-03-31T04:45:02.000Z (about 1 year ago)
- Last Synced: 2025-04-03T09:51:00.710Z (about 1 year ago)
- Topics: browser, lit-element, web-components
- Language: JavaScript
- Homepage:
- Size: 150 KB
- Stars: 0
- Watchers: 41
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# d2l-image
[](https://github.com/Brightspace/d2l-image/actions/workflows/ci.yml)
Web component for displaying images that require authentication.
## Usage
```html
```
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](https://modern-web.dev/docs/dev-server/overview/) that hosts the demo pages:
```shell
npm start
```
### Linting
```shell
# eslint, lit-analyzer
npm run lint
# eslint only
npm run lint:eslint
# lit-analyzer only
npm run lint:lit
```
### Testing
```shell
# 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](https://github.com/BrightspaceUI/actions/tree/main/semantic-release) documentation.