Skip to content

Commit

Permalink
feat: add circle avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
veaba committed Jul 17, 2022
1 parent 4e0c6b6 commit c511f48
Show file tree
Hide file tree
Showing 15 changed files with 489 additions and 266 deletions.
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
## Metrics

```js
200
- w - Start of the week, given as a Unix timestamp.
- a - Number of additions
- d - Number of deletions
- c - Number of commits
```

## how use

1. pull request your repo
Expand All @@ -25,15 +15,13 @@

## Design

- [] 自动裁剪圆角
- [x] 左右自动居中特性
- 如果当前行没有溢出,则会被居中

- [] Automatic clipping and rounding of Avatar
- [x] Horizontal Auto Center
![auto-center.svg](docs/default/auto-center.svg)

### size

### category
### category(TODO)

```diff
export default {
Expand Down Expand Up @@ -63,23 +51,39 @@ export default {

### circle

- `circle`: default: circle

![](docs/circle/circle-default.svg)

- `isRadius:false`: you can disabled the feature

```diff
export default {
+ 'vuejs-translations/docs-zh-cn': {
+ isRadius: false,
+ }
}
```
![](docs/circle/no-circle.svg)

### margin

### text display

- [] configure text color? (I'm not sure if I need this feature..
- [] configure text color? (It't necessary?

### config

maybe you need filter some users.

emm, just like as `vuejs-translations/docs-zh-cn`, it's a Chinese translation for Vue docs community, we does't need show non Chinese contributors in our repo, actually, `vuejs-translations/docs-zh-cn` upstream repo is `vuejs/docs`.

in `config.ts` add your repo configure.

```diff
export default {
+ 'veaba/veaba': {
+ ignore: [] // if you need ignore some users
+ }
}
```
```
4 changes: 2 additions & 2 deletions config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const config: ConfigItem =
// https://github.com/vuejs-translations/docs-zh-cn
'vuejs-translations/docs-zh-cn': {
ignore: [], // if you need ignore some users
size: 80,
size: 64,
height: 200,
width: 800,
fontSize: 10,
fontSize: 20,
isRadius: false,
}
}
Expand Down
8 changes: 8 additions & 0 deletions dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Metrics

```js
- w - Start of the week, given as a Unix timestamp.
- a - Number of additions
- d - Number of deletions
- c - Number of commits
```
98 changes: 98 additions & 0 deletions docs/circle/circle-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions docs/circle/no-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c511f48

Please sign in to comment.