8000 fix: use default color for operationName · blackxored/apollo-link-logger@50b774b · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 50b774b

Browse files
committed
fix: use default color for operationName
Fixes display of `operationName` for users of DevTools' dark theme. Thanks to @romarioraffington for the idea. Closes: #6
1 parent 9879752 commit 50b774b

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

.all-contributorsrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
"contributions": [
3737
"code"
3838
]
39+
},
40+
{
41+
"login": "romarioraffington",
42+
"name": "Romario",
43+
"avatar_url": "https://avatars0.githubusercontent.com/u/7076981?v=4",
44+
"profile": "https://github.com/romarioraffington",
45+
"contributions": [
46+
"bug",
47+
"ideas"
48+
]
3949
}
4050
]
4151
}

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![AirBnB style guide][airbnb-style-badge]][airbnb-style]
1212

1313
[![MIT License][license-badge]][LICENSE]
14-
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors)
14+
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors)
1515
[![PRs Welcome][prs-badge]][prs]
1616
[![Commitizen friendly][commitizen-badge]][commitizen]
1717
[![Code of Conduct][coc-badge]][coc]
@@ -114,8 +114,9 @@ will and will not be tolerated.
114114
Thanks goes to these people ([emoji key][emojis]):
115115

116116
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
117-
| [<img src="https://avatars3.githubusercontent.com/u/133308?v=4" width="100px;"/><br /><sub><b>Adrian Perez</b></sub>](https://adrianperez.codes)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Code") [📖](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Documentation") [🚇](#infra-blackxored "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Tests") | [<img src="https://avatars3.githubusercontent.com/u/294597?s=460&v=4" width="100px;"/><br /><sub><b>Adam Savitzky</b></sub>](https://github.com/adambom)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=adambom "Code") | [<img src="https://avatars3.githubusercontent.com/u/3065138?v=4" width="100px;"/><br /><sub><b>Ifeanyi Oraelosi</b></sub>](https://github.com/gnerkus)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=gnerkus "Code") |
118-
| :---: | :---: | :---: |
117+
<!-- prettier-ignore -->
118+
| [<img src="https://avatars3.githubusercontent.com/u/133308?v=4" width="100px;"/><br /><sub><b>Adrian Perez</b></sub>](https://adrianperez.codes)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Code") [📖](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Documentation") [🚇](#infra-blackxored "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Tests") | [<img src="https://avatars3.githubusercontent.com/u/294597?s=460&v=4" width="100px;"/><br /><sub><b>Adam Savitzky</b></sub>](https://github.com/adambom)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=adambom "Code") | [<img src="https://avatars3.githubusercontent.com/u/3065138?v=4" width="100px;"/><br /><sub><b>Ifeanyi Oraelosi</b></sub>](https://github.com/gnerkus)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=gnerkus "Code") | [<img src="https://avatars0.githubusercontent.com/u/7076981?v=4" width="100px;"/><br /><sub><b>Romario</b></sub>](https://github.com/romarioraffington)<br />[🐛](https://github.com/blackxored/apollo-link-logger/issues?q=author%3Aromarioraffington "Bug reports") [🤔](#ideas-romarioraffington "Ideas, Planning, & Feedback") |
119+
| :---: | :---: | :---: | :---: |
119120
<!-- ALL-CONTRIBUTORS-LIST:END -->
120121

121122
This project follows the [all-contributors][all-contributors] specification.

src/__tests__/__snapshots__/formatMessage.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Array [
55
"%c apollo %csubscription %cMessagesSubscription",
66
"color: gray; font-weight: lighter",
77
"color: red;",
8-
"color: #000;",
8+
"color: inherit;",
99
"color: gray; font-weight: lighter;",
1010
]
1111
`;
@@ -15,7 +15,7 @@ Array [
1515
"%c apollo %cquery %cFormatMessageQuery %c(in 1000 ms)",
1616
"color: gray; font-weight: lighter",
1717
"color: #03A9F4;",
18-
"color: #000;",
18+
"color: inherit;",
1919
"color: gray; font-weight: lighter;",
2020
]
2121
`;
@@ -25,7 +25,7 @@ Array [
2525
"%c apollo %cmutation %cFormatMessageMutation %c(in 500 ms)",
2626
"color: gray; font-weight: lighter",
2727
"color: red;",
28-
"color: #000;",
28+
"color: inherit;",
2929
"color: gray; font-weight: lighter;",
3030
]
3131
`;

src/formatMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const formatMessage = (operationType, operation, ellapsed) => {
22
const headerCss = [
33
'color: gray; font-weight: lighter', // title
44
`color: ${operationType === 'query' ? '#03A9F4' : 'red'};`, // operationType
5-
'color: #000;', // operationName
5+
'color: inherit;', // operationName
66
'color: gray; font-weight: lighter;', // time, etc
77
];
88

0 commit comments

Comments
 (0)
0