Skip to content

Commit

Permalink
fix: generate svg
Browse files Browse the repository at this point in the history
  • Loading branch information
veaba committed Jul 27, 2022
1 parent 0ea992b commit 3aaaa91
Show file tree
Hide file tree
Showing 12 changed files with 433 additions and 633 deletions.
33 changes: 13 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
## TODO
【WIP】:Website not yet ready

- The picture is not completely loaded
You can generate as many repository contributor avatar group photos as you want.

## How use
![Home](public//home.png)

1. Pull request your repo info to [`config.ts`](/config.ts)
2. Waiting for us to merge your PR.
3. Add svg path to your repo `README.md`:
- format: `https://raw.githubusercontent.com/veaba/contributors/main/repos/{owner}/{repo}.svg`
- try it: `![](https://raw.githubusercontent.com/veaba/contributors/main/repos/vuejs-translations/docs-zh-cn.svg)`
## TODO How use

```markdown
### Github Actions

![docs-zh-cn.svg](https://raw.githubusercontent.com/veaba/contributors/main/repos/vuejs-translations/docs-zh-cn.svg)
### Website

```

## Design
## Design

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

### size

Expand Down Expand Up @@ -51,22 +45,22 @@ export default {
}
```


### circle

- `circle`: default: circle
- `circle`: default: circle

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

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

```diff
```diff
export default {
+ 'vuejs-translations/docs-zh-cn': {
+ isRadius: false,
+ }
}
```

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

### margin
Expand All @@ -75,7 +69,7 @@ export default {

- [] configure text color? (It't necessary?)

### config
### config

maybe you need filter some users.

Expand All @@ -93,12 +87,11 @@ export default {

## Examples


### demovuejs-translations/docs-zh-cn contributors

in `config.js`:

```diff
```diff
+ const config: ConfigItem =
+ {
+ // https://github.com/vuejs-translations/docs-zh-cn
Expand Down
2 changes: 1 addition & 1 deletion auto-imports.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated by 'unplugin-auto-import'
export {}
declare global {
const ElNotification: typeof import('element-plus/es')['ElNotification']

}
1 change: 1 addition & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ declare module '@vue/runtime-core' {
ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElResult: typeof import('element-plus/es')['ElResult']
ElSapce: typeof import('element-plus/es')['ElSapce']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSpace: typeof import('element-plus/es')['ElSpace']
Expand Down
Binary file added public/home.png
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 3aaaa91

Please sign in to comment.