Skip to content

Commit e759272

Browse files
authored
Merge pull request #1 from oslabs-beta/old-state
page weight reduction
2 parents 204948c + 990979c commit e759272

File tree

6 files changed

+18
-28
lines changed

6 files changed

+18
-28
lines changed

index-csp.html

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Swell</title>
7+
</head>
38

4-
<head>
5-
<meta charset="UTF-8" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<!-- <link rel="stylesheet" href="./node_modules/chart.js/dist/Chart.min.css" /> -->
8-
<title>Swell</title>
9-
</head>
10-
11-
<body></body>
12-
13-
</html>
9+
<body></body>
10+
</html>

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@
9696
"dependencies": {
9797
"@apollo/client": "^3.5.0",
9898
"@apollo/server": "^4.6.0",
99-
"@emotion/react": "^11.10.8",
100-
"@emotion/styled": "^11.10.8",
10199
"@graphql-tools/schema": "^8.3.10",
102100
"@grpc/grpc-js": "^1.6.7",
103101
"@grpc/proto-loader": "^0.6.9",
@@ -110,13 +108,11 @@
110108
"@uiw/codemirror-extensions-langs": "^4.19.9",
111109
"@uiw/codemirror-theme-vscode": "^4.19.9",
112110
"@uiw/react-codemirror": "^4.19.9",
113-
"axios": "^0.27.1",
114111
"body-parser": "^1.20.0",
115112
"bulma": "^0.9.3",
116113
"bulma-checkradio": "^2.1.3",
117114
"bulma-switch": "^2.0.4",
118115
"chai": "^4.3.7",
119-
"chart.js": "^3.7.1",
120116
"classnames": "^2.3.1",
121117
"cookie-parser": "^1.4.6",
122118
"cors": "^2.8.5",
@@ -137,7 +133,6 @@
137133
"graphql-tag": "^2.12.6",
138134
"graphql-ws": "^5.8.1",
139135
"highland": "^2.13.5",
140-
"js-beautify": "^1.14.3",
141136
"mali": "^0.46.1",
142137
"ngrok": "^4.3.1",
143138
"node-fetch": "^3.3.0",
@@ -154,7 +149,6 @@
154149
"react-router-dom": "^6.3.0",
155150
"react-split": "^2.0.14",
156151
"redux": "^4.2.0",
157-
"resize-observer-polyfill": "^1.5.1",
158152
"sass": "^1.51.0",
159153
"set-cookie-parser": "^2.4.8",
160154
"socket.io": "^4.5.0",
14.6 KB
Binary file not shown.

src/client/components/main/WebRTC-composer/WebRTCServerEntryForm.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { EditorView } from '@codemirror/view';
55
import { javascript } from '@codemirror/lang-javascript';
66
import { vscodeDark } from '@uiw/codemirror-theme-vscode';
77

8-
9-
const jBeautify = require('js-beautify').js;
8+
// const jBeautify = require('js-beautify').js;
109

1110
interface Props {
1211
warningMessage: {
@@ -15,7 +14,9 @@ interface Props {
1514
}
1615

1716
const WebRTCServerEntryForm: React.FC<Props> = ({ warningMessage }) => {
18-
const requestBody = useSelector((state: any) => state.newRequest.newRequestBody);
17+
const requestBody = useSelector(
18+
(state: any) => state.newRequest.newRequestBody
19+
);
1920
const { bodyIsNew } = requestBody;
2021
const [cmValue, setValue] = useState<string>('');
2122
const isDark = useSelector((state: any) => state.ui.isDark);
@@ -28,14 +29,14 @@ const WebRTCServerEntryForm: React.FC<Props> = ({ warningMessage }) => {
2829
/**
2930
* @todo This code randomly causes parts of the app to crash. As in, it
3031
* will randomly decide to start or stop working without you changing
31-
* anything. Need to investigate
32-
*
32+
* anything. Need to investigate
33+
*
3334
* (OR needs to be re-built....
3435
* - another iteration group)
3536
*/
36-
setValue(
37-
jBeautify(JSON.stringify(bodyContent?.iceConfiguration?.iceServers))
38-
);
37+
// setValue(
38+
// jBeautify(JSON.stringify(bodyContent?.iceConfiguration?.iceServers))
39+
// );
3940
}
4041
}, [bodyContent, bodyIsNew]);
4142

@@ -64,7 +65,6 @@ const WebRTCServerEntryForm: React.FC<Props> = ({ warningMessage }) => {
6465

6566
export default WebRTCServerEntryForm;
6667

67-
6868
// const WebRTCServerEntryForm = (props) => {
6969
// const { warningMessage } = props;
7070
// const requestBody = useSelector((state) => state.newRequest.newRequestBody);

src/client/components/main/response-composer/EmptyState.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
2-
import logofaded from '../../../../assets/img/swell-logo-faded.png';
3-
2+
import logofaded from '../../../../assets/img/swell-logo-faded.avif';
43

54
interface EmptyStateProps {
65
connection?: any;

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = {
7373
},
7474
},
7575
{
76-
test: /\.(eot|woff|woff2|ttf|svg|png|jpg|gif)$/,
76+
test: /\.(eot|woff|woff2|ttf|svg|png|jpg|gif|avif)$/,
7777
use: 'url-loader',
7878
},
7979
],

0 commit comments

Comments
 (0)