Skip to content

Commit 790c37c

Browse files
author
Дмитрий Никифоров
committed
feat: 10 point task
1 parent 9bb88fe commit 790c37c

22 files changed

+2207
-180
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
31
# dependencies
42
/node_modules
53
/.pnp
@@ -21,3 +19,5 @@
2119
npm-debug.log*
2220
yarn-debug.log*
2321
yarn-error.log*
22+
23+
~

README.md

+2-44
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,4 @@
1-
# Getting Started with Create React App
1+
# Not cottage cheese but cottage cheese team
22

3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3+
## Inbox
44

5-
## Available Scripts
6-
7-
In the project directory, you can run:
8-
9-
### `yarn start`
10-
11-
Runs the app in the development mode.\
12-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13-
14-
The page will reload if you make edits.\
15-
You will also see any lint errors in the console.
16-
17-
### `yarn test`
18-
19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21-
22-
### `yarn build`
23-
24-
Builds the app for production to the `build` folder.\
25-
It correctly bundles React in production mode and optimizes the build for the best performance.
26-
27-
The build is minified and the filenames include the hashes.\
28-
Your app is ready to be deployed!
29-
30-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31-
32-
### `yarn eject`
33-
34-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35-
36-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37-
38-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39-
40-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41-
42-
## Learn More
43-
44-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45-
46-
To learn React, check out the [React documentation](https://reactjs.org/).

package.json

+11
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,26 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6+
"@reduxjs/toolkit": "^1.8.3",
67
"@testing-library/jest-dom": "^5.14.1",
78
"@testing-library/react": "^13.0.0",
89
"@testing-library/user-event": "^13.2.1",
910
"@types/jest": "^27.0.1",
1011
"@types/node": "^16.7.13",
1112
"@types/react": "^18.0.0",
1213
"@types/react-dom": "^18.0.0",
14+
"@vkontakte/vkui": "^4.33.3",
1315
"react": "^18.2.0",
1416
"react-dom": "^18.2.0",
17+
"react-redux": "^8.0.2",
1518
"react-scripts": "5.0.1",
1619
"typescript": "^4.4.2",
1720
"web-vitals": "^2.1.0"
1821
},
22+
"peerDependencies": {
23+
"@vkontakte/icons": "^1.136.0",
24+
"@vkontakte/vk-bridge": "^2.0.2"
25+
},
1926
"scripts": {
2027
"start": "react-scripts start",
2128
"build": "react-scripts build",
@@ -39,5 +46,9 @@
3946
"last 1 firefox version",
4047
"last 1 safari version"
4148
]
49+
},
50+
"devDependencies": {
51+
"@vkontakte/icons": "^1.176.0",
52+
"@vkontakte/vk-bridge": "^2.6.4"
4253
}
4354
}

public/index.html

+5-25
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,21 @@
33
<head>
44
<meta charset="utf-8" />
55
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta
7+
name="viewport"
8+
content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no, viewport-fit=cover"
9+
/>
710
<meta name="theme-color" content="#000000" />
811
<meta
912
name="description"
1013
content="Web site created using create-react-app"
1114
/>
1215
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13-
<!--
14-
manifest.json provides metadata used when your web app is installed on a
15-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16-
-->
1716
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18-
<!--
19-
Notice the use of %PUBLIC_URL% in the tags above.
20-
It will be replaced with the URL of the `public` folder during the build.
21-
Only files inside the `public` folder can be referenced from the HTML.
22-
23-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24-
work correctly both with client-side routing and a non-root public URL.
25-
Learn how to configure a non-root public URL by running `npm run build`.
26-
-->
27-
<title>React App</title>
17+
<title>Not cottage cheese InBox</title>
2818
</head>
2919
<body>
3020
<noscript>You need to enable JavaScript to run this app.</noscript>
3121
<div id="root"></div>
32-
<!--
33-
This HTML file is a template.
34-
If you open it directly in the browser, you will see an empty page.
35-
36-
You can add webfonts, meta tags, or analytics to this file.
37-
The build step will place the bundled scripts into the <body> tag.
38-
39-
To begin the development, run `npm start` or `yarn start`.
40-
To create a production bundle, use `npm run build` or `yarn build`.
41-
-->
4222
</body>
4323
</html>

src/App.css

-38
This file was deleted.

src/App.test.tsx

-9
This file was deleted.

src/App.tsx

-26
This file was deleted.

src/components/app/App.tsx

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { View, Panel } from "@vkontakte/vkui";
2+
import Inbox from "../inbox/Inbox";
3+
4+
const App = () => {
5+
return (
6+
<View activePanel="inbox">
7+
<Panel id="inbox">
8+
<Inbox />
9+
</Panel>
10+
</View>
11+
);
12+
};
13+
14+
export default App;

0 commit comments

Comments
 (0)