-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Brightspace/rmahler/empty-imageUrl
Check for empty imageUrl and token
- Loading branch information
Showing
12 changed files
with
82 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf8 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[{*.json,*.yml,*.yaml}] | ||
indent_style = space | ||
indent_size = 2 | ||
root = true | ||
|
||
[*] | ||
charset = utf8 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[{*.json,*.yml}] | ||
indent_style = space | ||
indent_size = 2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
extends: | ||
- brightspace/wct-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
language: node_js | ||
node_js: 6 | ||
dist: trusty | ||
sudo: required | ||
node_js: stable | ||
sudo: false | ||
addons: | ||
firefox: latest | ||
apt: | ||
packages: | ||
- gdebi | ||
- oracle-java8-installer | ||
- oracle-java8-set-default | ||
before_script: | ||
- npm run test:lint:js | ||
- npm run test:lint:wc | ||
script: | ||
- xvfb-run wct | ||
- xvfb-run polymer test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,35 @@ | ||
# d2l-image | ||
|
||
A [Polymer](https://www.polymer-project.org/)-based web component for displaying images that require authentication | ||
[![Build Status](https://travis-ci.org/Brightspace/d2l-image.svg?branch=master)](https://travis-ci.org/Brightspace/d2l-image) | ||
|
||
A [Polymer](https://www.polymer-project.org)-based web component for displaying images that require authentication. | ||
|
||
## Installation | ||
|
||
Clone the repo and install npm and bower dependencies: | ||
|
||
```sh | ||
npm install | ||
``` | ||
|
||
Run tests: | ||
|
||
```sh | ||
npm test | ||
``` | ||
|
||
## Usage | ||
|
||
```html | ||
<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. | ||
|
||
## Coding styles | ||
|
||
See the [Best Practices & Style Guide](https://github.com/Brightspace/valence-ui-docs/wiki/Best-Practices-&-Style-Guide) for information on naming conventions, plus information about the [EditorConfig](http://editorconfig.org) rules used in this repo. | ||
Follow the [EditorConfig](http://editorconfig.org) rules used in this repo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"lint": { | ||
"rules": ["polymer-2-hybrid"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,7 @@ | ||
{ | ||
"plugins":{ | ||
"local":{ | ||
"browsers":[ | ||
{ | ||
"browserName":"phantom" | ||
} | ||
] | ||
}, | ||
"sauce":{ | ||
"disabled":true, | ||
"browsers":[ | ||
{ | ||
"browserName":"chrome", | ||
"platform":"OS X 10.11", | ||
"version":"" | ||
}, | ||
{ | ||
"browserName":"chrome", | ||
"platform":"Windows 10", | ||
"version":"" | ||
}, | ||
{ | ||
"browserName":"firefox", | ||
"platform":"OS X 10.11", | ||
"version":"" | ||
}, | ||
{ | ||
"browserName":"firefox", | ||
"platform":"Windows 10", | ||
"version":"" | ||
}, | ||
{ | ||
"browserName":"safari", | ||
"platform":"OS X 10.11", | ||
"version":"9.0" | ||
}, | ||
{ | ||
"browserName":"microsoftedge", | ||
"platform":"Windows 10", | ||
"version":"" | ||
}, | ||
{ | ||
"browserName":"internet explorer", | ||
"platform":"Windows 10", | ||
"version":"11" | ||
}, | ||
{ | ||
"browserName":"internet explorer", | ||
"platform":"Windows 8", | ||
"version":"10" | ||
} | ||
] | ||
} | ||
} | ||
"plugins":{ | ||
"local":{ | ||
"browsers":["firefox"] | ||
} | ||
} | ||
} |