Skip to content

Commit 40d16a9

Browse files
committed
website: remove redundant codes.
1 parent 0043236 commit 40d16a9

File tree

5 files changed

+17
-75
lines changed

5 files changed

+17
-75
lines changed

website/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
"react-dom": "17.0.2",
2525
"react-native": "0.66.1",
2626
"react-native-web": "0.17.5",
27-
"react-redux": "7.2.6",
2827
"react-router-dom": "6.0.2",
29-
"rehype-rewrite": "3.0.4",
3028
"uiw": "4.7.16"
3129
},
3230
"devDependencies": {
@@ -35,8 +33,6 @@
3533
"@kkt/scope-plugin-options": "7.0.4",
3634
"@types/react": "17.0.38",
3735
"@types/react-dom": "17.0.11",
38-
"@types/react-redux": "7.1.21",
39-
"@types/react-router-dom": "5.3.2",
4036
"kkt": "7.0.4"
4137
},
4238
"eslintConfig": {

website/public/index.html

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
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, shrink-to-fit=no" />
6+
<meta name="theme-color" content="#000000" />
7+
<!--<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> -->
8+
<!-- <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> -->
9+
<title>UIW for React Native</title>
10+
<!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> -->
11+
</head>
312

4-
<head>
5-
<meta charset="utf-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<meta name="theme-color" content="#000000">
8-
<!--<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> -->
9-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
10-
<title>UIW for React Native</title>
11-
</head>
12-
13-
<body>
14-
<noscript>
15-
You need to enable JavaScript to run this app.
16-
</noscript>
17-
<div id="root"></div>
18-
<!--
13+
<body>
14+
<noscript> You need to enable JavaScript to run this app. </noscript>
15+
<div id="root"></div>
16+
<!--
1917
This HTML file is a template.
2018
If you open it directly in the browser, you will see an empty page.
2119
@@ -24,7 +22,5 @@
2422
2523
To begin the development, run `npm start` or `yarn start`.
2624
To create a production bundle, use `npm run build` or `yarn build`.
27-
-->
28-
</body>
29-
25+
--></body>
3026
</html>

website/src/index.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import { HashRouter } from 'react-router-dom';
4-
import { Provider } from 'react-redux';
54
import '@uiw/reset.css';
6-
import { store } from './models';
75
import Controller from './routes/Controller';
86
import './index.css';
97

108
export type DefaultProps = React.PropsWithChildren<any> & {};
119

1210
ReactDOM.render(
13-
<Provider store={store}>
14-
<HashRouter>
15-
<Controller />
16-
</HashRouter>
17-
</Provider>,
11+
<HashRouter>
12+
<Controller />
13+
</HashRouter>,
1814
document.getElementById('root'),
1915
);

website/src/models/global.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

website/src/models/index.tsx

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)