-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github-button doc & reafactoring api #47
- Loading branch information
Showing
8 changed files
with
83 additions
and
12 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
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
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,65 @@ | ||
# github-button | ||
|
||
Блок `github-button` используется для подключения GitHub:Buttons на страницы. | ||
Не работает без модификаторов. | ||
|
||
## Использование | ||
```js | ||
{ | ||
block : 'github-button', | ||
mods : { type : 'star', size : 'l', count : true }, | ||
user : 'voischev', | ||
repo : 'bem-social' | ||
} | ||
``` | ||
|
||
## Модификаторы `type` | ||
|
||
- `download` | ||
- `follow` | ||
- `fork` | ||
- `issue` | ||
- `star` | ||
- `watch` | ||
|
||
## Модификатор `size` | ||
|
||
- Большая кнопка со значением 'l' | ||
|
||
## Модификатор `count` | ||
|
||
Что бы отобразить счетчик нужно установть в значение `true`. | ||
Доступен для типов кнопоу к кроторых возможен счетчик. | ||
|
||
- `follow` | ||
- `fork` | ||
- `issue` | ||
- `star` | ||
- `watch` | ||
|
||
|
||
## Специализированные поля блока | ||
|
||
Список зарезервированных полей входного BEMJSON: | ||
|
||
<table> | ||
<tr> | ||
<th>Поле</th> | ||
<th>Тип</th> | ||
<th>Описание</th> | ||
</tr> | ||
<tr> | ||
<td>user</td> | ||
<td> | ||
<code>String</code> | ||
</td> | ||
<td>Пользователь на GitHub</td> | ||
</tr> | ||
<tr> | ||
<td>repo</td> | ||
<td> | ||
<code>String</code> | ||
</td> | ||
<td>Репозиторий на GitHub. Для типа `follow` неуказывается</td> | ||
</tr> | ||
</table> |
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