Skip to content

Commit

Permalink
Changed param back to snake case for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 committed Feb 18, 2021
1 parent 223abd1 commit d7c9102
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ Customize the appearance of your Activity Graph however you want with URL params

#### Common Options

| Arguments | Description | Type of Value |
| :--------: | :-------------------------------------------: | :------------------------: |
| `bg_color` | card's background color | hex code (without `#`) |
| `color` | graph card's text color | hex code (without `#`) |
| `line` | graph's line color | hex code (without `#`) |
| `point` | color of points on line graph | hex code (without `#`) |
| `area` | shows area under the graph | boolean (default: `false`) |
|`hideBorder`| makes the border of the graph transparent | boolean (default: `false`) |
| `theme` | name of [available themes](#available-themes) | string |
| Arguments | Description | Type of Value |
| :-----------: | :-------------------------------------------: | :------------------------: |
| `bg_color` | card's background color | hex code (without `#`) |
| `color` | graph card's text color | hex code (without `#`) |
| `line` | graph's line color | hex code (without `#`) |
| `point` | color of points on line graph | hex code (without `#`) |
| `area` | shows area under the graph | boolean (default: `false`) |
| `hide_border` | makes the border of the graph transparent | boolean (default: `false`) |
| `theme` | name of [available themes](#available-themes) | string |

**Example:**

```md
[![Ashutosh's github activity graph](https://activity-graph.herokuapp.com/graph?username=ashutosh00710&bg_color=f4fa9c&color=17b978&line=17b978&point=17b978&area=true&hideBorder=true)](https://github.com/ashutosh00710/github-readme-activity-graph)
[![Ashutosh's github activity graph](https://activity-graph.herokuapp.com/graph?username=ashutosh00710&bg_color=f4fa9c&color=17b978&line=17b978&point=17b978&area=true&hide_border=true)](https://github.com/ashutosh00710/github-readme-activity-graph)
```

## Deploy on your own Heroku instance
Expand Down
2 changes: 1 addition & 1 deletion __test__/fakeInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let fakeQueryString = [
line: 'ff79c6',
point: 'bd93f9',
area: true,
hideBorder: true,
hide_border: true,
},
];

Expand Down
2 changes: 1 addition & 1 deletion interfaces/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface queryOption {
export interface ParsedQs {
username?: string;
bg_color?: string;
hideBorder?: boolean;
hide_border?: boolean;
color?: string;
line?: string;
point?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const queryOptions = (queryString: ParsedQs): queryOption => {
bgColor: queryString.bg_color
? queryString.bg_color
: selectColors(theme).bgColor,
borderColor: String(queryString.hideBorder) === 'true'
borderColor: String(queryString.hide_border) === 'true'
? "0000" // transparent
: selectColors(theme).borderColor,
color: queryString.color
Expand Down

0 comments on commit d7c9102

Please sign in to comment.