Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #71 that src attribute can be changed dynamically #72

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
49a9db9
Merge pull request #9 from Loghorn/size-bug
Nov 17, 2017
8e1171e
add travis.yml
Nov 17, 2017
d1aedaf
Add Travis CI badge
Nov 19, 2017
6682408
Add Travis CI badge
Nov 19, 2017
f3a418d
Merge branch 'feature-travis_ci_badge' of github.com:eliep/vue-avatar…
Nov 19, 2017
c162894
Merge pull request #25 from eliep/feature-travis_ci_badge
eliep Nov 19, 2017
9e7494b
add editorconfig
Feb 2, 2018
f2d775e
Fix urls with spaces not rendering
hailwood Feb 21, 2018
39a6029
Merge pull request #29 from hailwood/patch-1
Feb 21, 2018
07148fb
v2.1.2
Feb 21, 2018
bc3edd5
Update README.md
Mar 12, 2018
1de5d77
Merge pull request #30 from yusrilhs/patch-1
Mar 12, 2018
24bb0d4
Added flexbox to .vue-avatar--wrapper so its content stays exactly on…
e200 Apr 20, 2018
7f275a7
move css styles to inline styles
Apr 20, 2018
98d4646
Remove unnecessary surrounding div (#34)
dimitri-koenig Jun 8, 2018
31ea192
add inline prop
Jun 8, 2018
ee0d2b5
update docs for inline prop
Jun 9, 2018
93c215f
remove required flag for username prop (#38)
Jul 24, 2018
3e646a0
update README
Jul 24, 2018
9eb7167
fixed line-height
Nov 15, 2018
bed2a87
Merge pull request #42 from galczo5/line-height-fix
Nov 19, 2018
d980b85
update to template string
Nov 19, 2018
404dbb2
bump to 2.1.7
Nov 19, 2018
1004a6e
Prevent the avatar from being read by screenreaders (#45)
Feb 18, 2019
376f1c8
bump to 2.1.8
Aug 29, 2019
a446329
Prevent selecting the placeholder (#68)
Feb 18, 2020
4fc6dcd
bump version to 2.2.0
Feb 18, 2020
ebdf177
remove dist directory
May 17, 2020
7251306
ignore dist directory
May 17, 2020
bc09305
fallback to initials if the image is not loaded (#40) (#64)
danielbprice May 25, 2020
41ef35d
bump to v2.3.0
May 25, 2020
79092eb
fixed #71
diqye Jul 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.idea
node_modules/
dist/
test/unit/coverage/
npm-debug.log
package-lock.json
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sudo: false
language: node_js
node_js:
- "8"
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# vue-avatar

[![Build Status](https://travis-ci.org/eliep/vue-avatar.svg?branch=master)](https://travis-ci.org/eliep/vue-avatar)

An avatar component for vue.js.

This component display an avatar image and if none is provided fallback to the
Expand Down Expand Up @@ -73,7 +75,7 @@ var YourComponent = Vue.extend({
new Vue({
...
components: {
'avatar': Avatar.Avatar
'avatar': VueAvatar.Avatar
},
...
})
Expand All @@ -87,7 +89,7 @@ new Vue({
</tr></thead>
<tbody>
<tr><td>username</td>
<td> Y </td>
<td> N </td>
<td> - </td>
<td> String </td>
<td>The user name that will be used to compute user initial.</td></tr>
Expand All @@ -96,6 +98,11 @@ new Vue({
<td> - </td>
<td> String </td>
<td>Force the displayed initials by overriding the computed ones.</td></tr>
<tr><td>inline</td>
<td> N </td>
<td> false </td>
<td> Boolean </td>
<td>Uses inline-flex instead of flex</td></tr>
<tr><td>src</td>
<td> N </td>
<td> - </td>
Expand Down
1 change: 0 additions & 1 deletion dist/vue-avatar.min.js

This file was deleted.

Loading