Skip to content

Commit d657877

Browse files
committed
task 7 commit
1 parent 79614d1 commit d657877

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2279
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["@babel/preset-react", "@babel/preset-env"],
3+
"plugins": ["@babel/plugin-syntax-dynamic-import", "@babel/plugin-transform-runtime", "syntax-class-properties", "transform-class-properties"]
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
package-lock.json
3+
*LICENSE*
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = '';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { configure } from "enzyme";
2+
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
3+
4+
configure({ adapter: new Adapter() });
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
const HtmlWebpackPlugin = require("html-webpack-plugin");
2+
3+
module.exports = {
4+
entry: "./src/index.js",
5+
output: {
6+
filename: "bundle.js",
7+
},
8+
mode: "development",
9+
module: {
10+
rules: [
11+
{
12+
test: /\.css$/i,
13+
use: ["style-loader", "css-loader"],
14+
},
15+
{
16+
test: /\.(png|svg|jpg|jpeg|gif)$/i,
17+
// type: 'asset/resource',
18+
use: [
19+
"file-loader",
20+
{
21+
loader: "image-webpack-loader",
22+
options: {
23+
bypassOnDebug: true, // [email protected]
24+
disable: true, // [email protected] and newer
25+
},
26+
},
27+
],
28+
},
29+
{
30+
test: /\.(js|jsx)$/,
31+
exclude: /node_modules/,
32+
use: ["babel-loader"],
33+
},
34+
],
35+
},
36+
resolve: {
37+
extensions: ["*", ".js", ".jsx"],
38+
},
39+
devServer: {
40+
static: "./dist",
41+
compress: true,
42+
open: true,
43+
hot: true,
44+
port: 8564,
45+
},
46+
devtool: "inline-source-map",
47+
plugins: [
48+
new HtmlWebpackPlugin({
49+
name: "index.html",
50+
inject: false,
51+
template: "./dist/index.html",
52+
}),
53+
],
54+
};
Binary file not shown.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<link rel="icon" href="favicon.ico" type="image/x-icon" />
7+
<title>Dashboard</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<div id="root-notifications"></div>
12+
<noscript>You need to enable JavaScript to run this app.</noscript>
13+
<script src="./bundle.js"></script>
14+
</body>
15+
</html>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"first_name": "Johann",
3+
"last_name": "Salva",
4+
"email": "[email protected]",
5+
"profile_picture": "http://placehold.it/32x32"
6+
}
Lines changed: 268 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,268 @@
1+
[
2+
{
3+
"id": "5debd76480edafc8af244228",
4+
"author": {
5+
"id": "5debd764a7c57c7839d722e9",
6+
"name": {
7+
"first": "Poole",
8+
"last": "Sanders"
9+
},
10+
"email": "[email protected]",
11+
"picture": "http://placehold.it/32x32",
12+
"age": 25
13+
},
14+
"context": {
15+
"guid": "2d8e40be-1c78-4de0-afc9-fcc147afd4d2",
16+
"isRead": true,
17+
"type": "urgent",
18+
"value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt."
19+
}
20+
},
21+
{
22+
"id": "5debd764507712e7a1307303",
23+
"author": {
24+
"id": "5debd7648ba8641ce0a34ea4",
25+
"name": {
26+
"first": "Norton",
27+
"last": "Grimes"
28+
},
29+
"email": "[email protected]",
30+
"picture": "http://placehold.it/32x32",
31+
"age": 37
32+
},
33+
"context": {
34+
"guid": "cec84b7a-7be4-4af0-b833-f1485433f66e",
35+
"isRead": false,
36+
"type": "urgent",
37+
"value": "ut labore et dolore magna aliqua. Dignissim convallis aenean et tortor at risus viverra adipiscing. Ac tortor dignissim convallis aenean et. "
38+
}
39+
},
40+
{
41+
"id": "5debd76444dd4dafea89d53b",
42+
"author": {
43+
"id": "5debd764a7c57c7839d722e9",
44+
"name": {
45+
"first": "Poole",
46+
"last": "Sanders"
47+
},
48+
"email": "[email protected]",
49+
"picture": "http://placehold.it/32x32",
50+
"age": 25
51+
},
52+
"context": {
53+
"guid": "280913fe-38dd-4abd-8ab6-acdb4105f922",
54+
"isRead": false,
55+
"type": "urgent",
56+
"value": "Non diam phasellus vestibulum lorem sed risus ultricies. Tellus mauris a diam maecenas sed"
57+
}
58+
},
59+
{
60+
"id": "5debd76485ee4dfd1284f97b",
61+
"author": {
62+
"id": "5debd764f07f50822352e252",
63+
"name": {
64+
"first": "Roach",
65+
"last": "Cameron"
66+
},
67+
"email": "[email protected]",
68+
"picture": "http://placehold.it/32x32",
69+
"age": 26
70+
},
71+
"context": {
72+
"guid": "89906f88-a02d-41ee-b214-daa0c54633e3",
73+
"isRead": true,
74+
"type": "urgent",
75+
"value": "Odio pellentesque diam volutpat commodo sed egestas egestas"
76+
}
77+
},
78+
{
79+
"id": "5debd7644e561e022d66e61a",
80+
"author": {
81+
"id": "5debd764e66586653a8a33f3",
82+
"name": {
83+
"first": "Christy",
84+
"last": "Collier"
85+
},
86+
"email": "[email protected]",
87+
"picture": "http://placehold.it/32x32",
88+
"age": 27
89+
},
90+
"context": {
91+
"guid": "f8d66cca-63ec-4f19-a422-a3e1c8f05a36",
92+
"isRead": false,
93+
"type": "urgent",
94+
"value": "In hendrerit gravida rutrum quisque non tellus orci. Gravida dictum fusce ut placerat orci nulla pellentesque dignissim enim. Lorem mollis aliquam ut porttitor"
95+
}
96+
},
97+
{
98+
"id": "5debd7644aaed86c97bf9d5e",
99+
"author": {
100+
"id": "5debd764f5017139ce541857",
101+
"name": {
102+
"first": "Mason",
103+
"last": "Douglas"
104+
},
105+
"email": "[email protected]",
106+
"picture": "http://placehold.it/32x32",
107+
"age": 31
108+
},
109+
"context": {
110+
"guid": "de55f849-8fca-4ac7-afbb-41751f09d0c6",
111+
"isRead": false,
112+
"type": "default",
113+
"value": "Cursus metus aliquam eleifend mi in nulla posuere. "
114+
}
115+
},
116+
{
117+
"id": "5debd76413f0d5e5429c28a0",
118+
"author": {
119+
"id": "5debd76456a6a030695e6a70",
120+
"name": {
121+
"first": "Marshall",
122+
"last": "Wynn"
123+
},
124+
"email": "[email protected]",
125+
"picture": "http://placehold.it/32x32",
126+
"age": 26
127+
},
128+
"context": {
129+
"guid": "8094c267-ab84-47e1-8801-58ddd23f3b2a",
130+
"isRead": false,
131+
"type": "default",
132+
"value": "Quam viverra orci sagittis eu volutpat odio facilisis mauris sit"
133+
}
134+
},
135+
{
136+
"id": "5debd7642e815cd350407777",
137+
"author": {
138+
"id": "5debd764f8452ef92346c772",
139+
"name": {
140+
"first": "Cherry",
141+
"last": "Miles"
142+
},
143+
"email": "[email protected]",
144+
"picture": "http://placehold.it/32x32",
145+
"age": 25
146+
},
147+
"context": {
148+
"guid": "3068c575-d619-40af-bf12-dece1ee18dd3",
149+
"isRead": true,
150+
"type": "default",
151+
"value": "Est ante in nibh mauris cursus mattis molestie a iaculis. Eget lorem dolor sed viverra ipsum nunc aliquet bibendum enim"
152+
}
153+
},
154+
{
155+
"id": "5debd764c1127bc5a490a4d0",
156+
"author": {
157+
"id": "5debd76470dcced4a244fe7f",
158+
"name": {
159+
"first": "Sykes",
160+
"last": "Fulton"
161+
},
162+
"email": "[email protected]",
163+
"picture": "http://placehold.it/32x32",
164+
"age": 36
165+
},
166+
"context": {
167+
"guid": "efb6c485-00f7-4fdf-97cc-5e12d14d6c41",
168+
"isRead": false,
169+
"type": "default",
170+
"value": "Cursus risus at ultrices mi."
171+
}
172+
},
173+
{
174+
"id": "5debd7646ef31e0861ec1cab",
175+
"author": {
176+
"id": "5debd7645c8d811b8c6a235d",
177+
"name": {
178+
"first": "Valentine",
179+
"last": "Juarez"
180+
},
181+
"email": "[email protected]",
182+
"picture": "http://placehold.it/32x32",
183+
"age": 25
184+
},
185+
"context": {
186+
"guid": "1d3918d0-67e6-44a4-9031-72d7750234de",
187+
"isRead": true,
188+
"type": "default",
189+
"value": "Velit laoreet id donec ultrices tincidunt arcu non. Aliquet eget sit amet tellus cras adipiscing"
190+
}
191+
},
192+
{
193+
"id": "5debd764a4f11eabef05a81d",
194+
"author": {
195+
"id": "5debd764d0b0e7ed3e45ee6d",
196+
"name": {
197+
"first": "Maryann",
198+
"last": "Larson"
199+
},
200+
"email": "[email protected]",
201+
"picture": "http://placehold.it/32x32",
202+
"age": 32
203+
},
204+
"context": {
205+
"guid": "98fe7af4-8300-461f-a376-c147b2987616",
206+
"isRead": false,
207+
"type": "default",
208+
"value": "Ac placerat vestibulum lectus mauris ultrices eros in cursus. Amet nisl suscipit adipiscing bibendum est ultricies integer. Lorem donec massa sapien faucibus et molestie ac"
209+
}
210+
},
211+
{
212+
"id": "5debd764af0fdd1fc815ad9b",
213+
"author": {
214+
"id": "5debd764fb6db3a5c21ce617",
215+
"name": {
216+
"first": "Naomi",
217+
"last": "Hayes"
218+
},
219+
"email": "[email protected]",
220+
"picture": "http://placehold.it/32x32",
221+
"age": 30
222+
},
223+
"context": {
224+
"guid": "cd1a09cf-ad6e-4478-9662-18a292807e2e",
225+
"isRead": false,
226+
"type": "urgent",
227+
"value": "Nulla malesuada pellentesque elit eget gravida cum sociis"
228+
}
229+
},
230+
{
231+
"id": "5debd76468cb5b277fd125f4",
232+
"author": {
233+
"id": "5debd764f7234e1d44828515",
234+
"name": {
235+
"first": "Knowles",
236+
"last": "Vazquez"
237+
},
238+
"email": "[email protected]",
239+
"picture": "http://placehold.it/32x32",
240+
"age": 28
241+
},
242+
"context": {
243+
"guid": "0f446b01-37c3-4884-9dc6-316f23b7711b",
244+
"isRead": false,
245+
"type": "urgent",
246+
"value": "Elit eget gravida cum sociis natoque penatibus et. Congue mauris rhoncus aenean vel"
247+
}
248+
},
249+
{
250+
"id": "5debd764de9fa684468cdc0b",
251+
"author": {
252+
"id": "5debd764ec7c8d21449be7d7",
253+
"name": {
254+
"first": "Greta",
255+
"last": "Benjamin"
256+
},
257+
"email": "[email protected]",
258+
"picture": "http://placehold.it/32x32",
259+
"age": 23
260+
},
261+
"context": {
262+
"guid": "4cc5bc3a-98fe-4392-b97d-6a41da1d944b",
263+
"isRead": false,
264+
"type": "default",
265+
"value": "Leo vel fringilla est ullamcorper. Volutpat consequat mauris nunc congue"
266+
}
267+
}
268+
]

0 commit comments

Comments
 (0)