Skip to content

Commit 6450b4a

Browse files
authored
Merge pull request #24 from SafetyCulture/basic-filter
Adds a basic filter to the toolbar
2 parents 3722a0b + 3b463bf commit 6450b4a

22 files changed

+270
-130
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 2
9+
10+
[Makefile]
11+
indent_style = tab

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
44

5-
> Under Development
65

76
![gRPC-Web Dev Tools](screenshots/dev_tools.png)
87

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"url": "https://github.com/SafetyCulture/grpc-web-devtools"
99
},
1010
"dependencies": {
11+
"fuse.js": "^3.4.4",
1112
"react": "^16.8.6",
1213
"react-dom": "^16.8.6",
1314
"react-json-view": "^1.19.1",
@@ -31,4 +32,4 @@
3132
"not ie <= 11",
3233
"not op_mini all"
3334
]
34-
}
35+
}

public/devtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Copyright (c) 2019 SafetyCulture Pty Ltd. All Rights Reserved.
22

3-
chrome.devtools.panels.create('gRPC-Web', null, 'index.html');
3+
chrome.devtools.panels.create('gRPC-Web', null, 'index.html');

public/favicon.ico

-3.78 KB
Binary file not shown.

public/index.html

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,18 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
6-
<meta
7-
name="viewport"
8-
content="width=device-width, initial-scale=1, shrink-to-fit=no"
9-
/>
10-
<meta name="theme-color" content="#000000" />
11-
<!--
12-
manifest.json provides metadata used when your web app is installed on a
13-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
14-
-->
15-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
16-
<!--
17-
Notice the use of %PUBLIC_URL% in the tags above.
18-
It will be replaced with the URL of the `public` folder during the build.
19-
Only files inside the `public` folder can be referenced from the HTML.
203

21-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
22-
work correctly both with client-side routing and a non-root public URL.
23-
Learn how to configure a non-root public URL by running `npm run build`.
24-
-->
25-
<title>React App</title>
26-
</head>
27-
<body>
28-
<noscript>You need to enable JavaScript to run this app.</noscript>
29-
<div id="root"></div>
30-
<!--
4+
<head>
5+
<meta charset="utf-8" />
6+
<link rel="icon" type="image/png" href="%PUBLIC_URL%/favicon-16x16.png" sizes="16x16">
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
8+
<meta name="theme-color" content="#000000" />
9+
<title>gRPC-Web Dev Tools</title>
10+
</head>
11+
12+
<body>
13+
<noscript>You need to enable JavaScript to run this app.</noscript>
14+
<div id="root"></div>
15+
<!--
3116
This HTML file is a template.
3217
If you open it directly in the browser, you will see an empty page.
3318
@@ -37,5 +22,6 @@
3722
To begin the development, run `npm start` or `yarn start`.
3823
To create a production bundle, use `npm run build` or `yarn build`.
3924
-->
40-
</body>
25+
</body>
26+
4127
</html>

screenshots/dev_tools.png

-11.9 KB
Loading

src/App.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,3 @@ class App extends Component {
2929
}
3030

3131
export default App;
32-
33-
34-
/*
35-
{network.map(req => {
36-
return (
37-
<div>
38-
<h3>{req.method}</h3>
39-
<div>Request: {JSON.stringify(req.request)}</div>
40-
<div>Response: {JSON.stringify(req.response)}</div>
41-
<hr></hr>
42-
</div>
43-
)
44-
})}
45-
46-
<div className="vbox widget">
47-
<button onClick={() => {
48-
traceRequest({ method: "/a.url/goes/here", request: { req: "Some request" }, response: "Some response" });
49-
}}>add fake request
50-
</button>
51-
</div>
52-
53-
*/

src/components/MainLayout.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
margin-left: -1px;
3232
margin-right: -4px;
3333
z-index: 9999;
34-
}
34+
}

src/components/MainLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ export default MainLayout
3333
// </div>
3434
// <div className="shadow-split-widget-contents shadow-split-widget-main">
3535
// <NetworkDetails />
36-
// </div>
36+
// </div>

0 commit comments

Comments
 (0)