Spaces:
Runtime error
Runtime error
AnkitSinghSenwal
commited on
Commit
·
090699e
1
Parent(s):
88b9eae
Header done.
Browse files- package-lock.json +75 -72
- package.json +1 -1
- src/App.css +1 -1
- src/components/Chat/Chat.jsx +1 -1
- src/components/ChatHeader/ChatHeader.css +35 -0
- src/components/ChatHeader/ChatHeader.jsx +19 -2
- src/index.css +7 -0
- src/index.js +2 -0
package-lock.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
| 14 |
"@testing-library/user-event": "^13.5.0",
|
| 15 |
"react": "^18.2.0",
|
| 16 |
"react-dom": "^18.2.0",
|
| 17 |
-
"react-scripts": "5.0.1",
|
| 18 |
"web-vitals": "^2.1.4"
|
| 19 |
}
|
| 20 |
},
|
|
@@ -204,9 +204,9 @@
|
|
| 204 |
}
|
| 205 |
},
|
| 206 |
"node_modules/@babel/helper-create-class-features-plugin": {
|
| 207 |
-
"version": "7.
|
| 208 |
-
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.
|
| 209 |
-
"integrity": "sha512-
|
| 210 |
"dependencies": {
|
| 211 |
"@babel/helper-annotate-as-pure": "^7.22.5",
|
| 212 |
"@babel/helper-environment-visitor": "^7.22.20",
|
|
@@ -355,9 +355,9 @@
|
|
| 355 |
}
|
| 356 |
},
|
| 357 |
"node_modules/@babel/helper-plugin-utils": {
|
| 358 |
-
"version": "7.
|
| 359 |
-
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.
|
| 360 |
-
"integrity": "sha512-
|
| 361 |
"engines": {
|
| 362 |
"node": ">=6.9.0"
|
| 363 |
}
|
|
@@ -563,13 +563,13 @@
|
|
| 563 |
}
|
| 564 |
},
|
| 565 |
"node_modules/@babel/plugin-proposal-decorators": {
|
| 566 |
-
"version": "7.
|
| 567 |
-
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.
|
| 568 |
-
"integrity": "sha512-
|
| 569 |
"dependencies": {
|
| 570 |
-
"@babel/helper-create-class-features-plugin": "^7.
|
| 571 |
-
"@babel/helper-plugin-utils": "^7.
|
| 572 |
-
"@babel/plugin-syntax-decorators": "^7.
|
| 573 |
},
|
| 574 |
"engines": {
|
| 575 |
"node": ">=6.9.0"
|
|
@@ -702,11 +702,11 @@
|
|
| 702 |
}
|
| 703 |
},
|
| 704 |
"node_modules/@babel/plugin-syntax-decorators": {
|
| 705 |
-
"version": "7.
|
| 706 |
-
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.
|
| 707 |
-
"integrity": "sha512-
|
| 708 |
"dependencies": {
|
| 709 |
-
"@babel/helper-plugin-utils": "^7.
|
| 710 |
},
|
| 711 |
"engines": {
|
| 712 |
"node": ">=6.9.0"
|
|
@@ -1395,13 +1395,13 @@
|
|
| 1395 |
}
|
| 1396 |
},
|
| 1397 |
"node_modules/@babel/plugin-transform-object-rest-spread": {
|
| 1398 |
-
"version": "7.
|
| 1399 |
-
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.
|
| 1400 |
-
"integrity": "sha512-
|
| 1401 |
"dependencies": {
|
| 1402 |
-
"@babel/compat-data": "^7.23.
|
| 1403 |
-
"@babel/helper-compilation-targets": "^7.
|
| 1404 |
-
"@babel/helper-plugin-utils": "^7.
|
| 1405 |
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
| 1406 |
"@babel/plugin-transform-parameters": "^7.23.3"
|
| 1407 |
},
|
|
@@ -1623,12 +1623,12 @@
|
|
| 1623 |
}
|
| 1624 |
},
|
| 1625 |
"node_modules/@babel/plugin-transform-runtime": {
|
| 1626 |
-
"version": "7.
|
| 1627 |
-
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.
|
| 1628 |
-
"integrity": "sha512-
|
| 1629 |
"dependencies": {
|
| 1630 |
"@babel/helper-module-imports": "^7.22.15",
|
| 1631 |
-
"@babel/helper-plugin-utils": "^7.
|
| 1632 |
"babel-plugin-polyfill-corejs2": "^0.4.8",
|
| 1633 |
"babel-plugin-polyfill-corejs3": "^0.9.0",
|
| 1634 |
"babel-plugin-polyfill-regenerator": "^0.5.5",
|
|
@@ -1797,13 +1797,13 @@
|
|
| 1797 |
}
|
| 1798 |
},
|
| 1799 |
"node_modules/@babel/preset-env": {
|
| 1800 |
-
"version": "7.
|
| 1801 |
-
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.
|
| 1802 |
-
"integrity": "sha512-
|
| 1803 |
"dependencies": {
|
| 1804 |
"@babel/compat-data": "^7.23.5",
|
| 1805 |
"@babel/helper-compilation-targets": "^7.23.6",
|
| 1806 |
-
"@babel/helper-plugin-utils": "^7.
|
| 1807 |
"@babel/helper-validator-option": "^7.23.5",
|
| 1808 |
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3",
|
| 1809 |
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3",
|
|
@@ -1856,7 +1856,7 @@
|
|
| 1856 |
"@babel/plugin-transform-new-target": "^7.23.3",
|
| 1857 |
"@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
|
| 1858 |
"@babel/plugin-transform-numeric-separator": "^7.23.4",
|
| 1859 |
-
"@babel/plugin-transform-object-rest-spread": "^7.
|
| 1860 |
"@babel/plugin-transform-object-super": "^7.23.3",
|
| 1861 |
"@babel/plugin-transform-optional-catch-binding": "^7.23.4",
|
| 1862 |
"@babel/plugin-transform-optional-chaining": "^7.23.4",
|
|
@@ -4074,9 +4074,9 @@
|
|
| 4074 |
}
|
| 4075 |
},
|
| 4076 |
"node_modules/@types/eslint": {
|
| 4077 |
-
"version": "8.56.
|
| 4078 |
-
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.
|
| 4079 |
-
"integrity": "sha512-
|
| 4080 |
"dependencies": {
|
| 4081 |
"@types/estree": "*",
|
| 4082 |
"@types/json-schema": "*"
|
|
@@ -4453,9 +4453,9 @@
|
|
| 4453 |
"integrity": "sha512-hroOstUScF6zhIi+5+x0dzqrHA1EJi+Irri6b1fxolMTqqHIV/Cg77EtnQcZqZCu8hR3mX2BzIxN4/GzI68Kfw=="
|
| 4454 |
},
|
| 4455 |
"node_modules/@types/qs": {
|
| 4456 |
-
"version": "6.9.
|
| 4457 |
-
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.
|
| 4458 |
-
"integrity": "sha512-
|
| 4459 |
},
|
| 4460 |
"node_modules/@types/range-parser": {
|
| 4461 |
"version": "1.2.7",
|
|
@@ -4499,9 +4499,9 @@
|
|
| 4499 |
"integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A=="
|
| 4500 |
},
|
| 4501 |
"node_modules/@types/semver": {
|
| 4502 |
-
"version": "7.5.
|
| 4503 |
-
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.
|
| 4504 |
-
"integrity": "sha512
|
| 4505 |
},
|
| 4506 |
"node_modules/@types/send": {
|
| 4507 |
"version": "0.17.4",
|
|
@@ -6651,9 +6651,9 @@
|
|
| 6651 |
"integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg=="
|
| 6652 |
},
|
| 6653 |
"node_modules/cssdb": {
|
| 6654 |
-
"version": "7.11.
|
| 6655 |
-
"resolved": "https://registry.npmjs.org/cssdb/-/cssdb-7.11.
|
| 6656 |
-
"integrity": "sha512-
|
| 6657 |
"funding": [
|
| 6658 |
{
|
| 6659 |
"type": "opencollective",
|
|
@@ -7249,9 +7249,9 @@
|
|
| 7249 |
}
|
| 7250 |
},
|
| 7251 |
"node_modules/enhanced-resolve": {
|
| 7252 |
-
"version": "5.15.
|
| 7253 |
-
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.
|
| 7254 |
-
"integrity": "sha512-
|
| 7255 |
"dependencies": {
|
| 7256 |
"graceful-fs": "^4.2.4",
|
| 7257 |
"tapable": "^2.2.0"
|
|
@@ -7285,17 +7285,17 @@
|
|
| 7285 |
}
|
| 7286 |
},
|
| 7287 |
"node_modules/es-abstract": {
|
| 7288 |
-
"version": "1.22.
|
| 7289 |
-
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.
|
| 7290 |
-
"integrity": "sha512-
|
| 7291 |
"dependencies": {
|
| 7292 |
"array-buffer-byte-length": "^1.0.1",
|
| 7293 |
"arraybuffer.prototype.slice": "^1.0.3",
|
| 7294 |
-
"available-typed-arrays": "^1.0.
|
| 7295 |
"call-bind": "^1.0.7",
|
| 7296 |
"es-define-property": "^1.0.0",
|
| 7297 |
"es-errors": "^1.3.0",
|
| 7298 |
-
"es-set-tostringtag": "^2.0.
|
| 7299 |
"es-to-primitive": "^1.2.1",
|
| 7300 |
"function.prototype.name": "^1.1.6",
|
| 7301 |
"get-intrinsic": "^1.2.4",
|
|
@@ -7303,15 +7303,15 @@
|
|
| 7303 |
"globalthis": "^1.0.3",
|
| 7304 |
"gopd": "^1.0.1",
|
| 7305 |
"has-property-descriptors": "^1.0.2",
|
| 7306 |
-
"has-proto": "^1.0.
|
| 7307 |
"has-symbols": "^1.0.3",
|
| 7308 |
"hasown": "^2.0.1",
|
| 7309 |
"internal-slot": "^1.0.7",
|
| 7310 |
"is-array-buffer": "^3.0.4",
|
| 7311 |
"is-callable": "^1.2.7",
|
| 7312 |
-
"is-negative-zero": "^2.0.
|
| 7313 |
"is-regex": "^1.1.4",
|
| 7314 |
-
"is-shared-array-buffer": "^1.0.
|
| 7315 |
"is-string": "^1.0.7",
|
| 7316 |
"is-typed-array": "^1.1.13",
|
| 7317 |
"is-weakref": "^1.0.2",
|
|
@@ -7324,10 +7324,10 @@
|
|
| 7324 |
"string.prototype.trim": "^1.2.8",
|
| 7325 |
"string.prototype.trimend": "^1.0.7",
|
| 7326 |
"string.prototype.trimstart": "^1.0.7",
|
| 7327 |
-
"typed-array-buffer": "^1.0.
|
| 7328 |
-
"typed-array-byte-length": "^1.0.
|
| 7329 |
-
"typed-array-byte-offset": "^1.0.
|
| 7330 |
-
"typed-array-length": "^1.0.
|
| 7331 |
"unbox-primitive": "^1.0.2",
|
| 7332 |
"which-typed-array": "^1.1.14"
|
| 7333 |
},
|
|
@@ -7598,9 +7598,9 @@
|
|
| 7598 |
}
|
| 7599 |
},
|
| 7600 |
"node_modules/eslint-module-utils": {
|
| 7601 |
-
"version": "2.8.
|
| 7602 |
-
"resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.
|
| 7603 |
-
"integrity": "sha512-
|
| 7604 |
"dependencies": {
|
| 7605 |
"debug": "^3.2.7"
|
| 7606 |
},
|
|
@@ -12570,9 +12570,9 @@
|
|
| 12570 |
}
|
| 12571 |
},
|
| 12572 |
"node_modules/mini-css-extract-plugin": {
|
| 12573 |
-
"version": "2.8.
|
| 12574 |
-
"resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.8.
|
| 12575 |
-
"integrity": "sha512
|
| 12576 |
"dependencies": {
|
| 12577 |
"schema-utils": "^4.0.0",
|
| 12578 |
"tapable": "^2.2.1"
|
|
@@ -13902,9 +13902,12 @@
|
|
| 13902 |
}
|
| 13903 |
},
|
| 13904 |
"node_modules/postcss-load-config/node_modules/yaml": {
|
| 13905 |
-
"version": "2.
|
| 13906 |
-
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.
|
| 13907 |
-
"integrity": "sha512-
|
|
|
|
|
|
|
|
|
|
| 13908 |
"engines": {
|
| 13909 |
"node": ">= 14"
|
| 13910 |
}
|
|
@@ -17066,16 +17069,16 @@
|
|
| 17066 |
}
|
| 17067 |
},
|
| 17068 |
"node_modules/typescript": {
|
| 17069 |
-
"version": "
|
| 17070 |
-
"resolved": "https://registry.npmjs.org/typescript/-/typescript-
|
| 17071 |
-
"integrity": "sha512-
|
| 17072 |
"peer": true,
|
| 17073 |
"bin": {
|
| 17074 |
"tsc": "bin/tsc",
|
| 17075 |
"tsserver": "bin/tsserver"
|
| 17076 |
},
|
| 17077 |
"engines": {
|
| 17078 |
-
"node": ">=
|
| 17079 |
}
|
| 17080 |
},
|
| 17081 |
"node_modules/unbox-primitive": {
|
|
|
|
| 14 |
"@testing-library/user-event": "^13.5.0",
|
| 15 |
"react": "^18.2.0",
|
| 16 |
"react-dom": "^18.2.0",
|
| 17 |
+
"react-scripts": "^5.0.1",
|
| 18 |
"web-vitals": "^2.1.4"
|
| 19 |
}
|
| 20 |
},
|
|
|
|
| 204 |
}
|
| 205 |
},
|
| 206 |
"node_modules/@babel/helper-create-class-features-plugin": {
|
| 207 |
+
"version": "7.24.0",
|
| 208 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.0.tgz",
|
| 209 |
+
"integrity": "sha512-QAH+vfvts51BCsNZ2PhY6HAggnlS6omLLFTsIpeqZk/MmJ6cW7tgz5yRv0fMJThcr6FmbMrENh1RgrWPTYA76g==",
|
| 210 |
"dependencies": {
|
| 211 |
"@babel/helper-annotate-as-pure": "^7.22.5",
|
| 212 |
"@babel/helper-environment-visitor": "^7.22.20",
|
|
|
|
| 355 |
}
|
| 356 |
},
|
| 357 |
"node_modules/@babel/helper-plugin-utils": {
|
| 358 |
+
"version": "7.24.0",
|
| 359 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz",
|
| 360 |
+
"integrity": "sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==",
|
| 361 |
"engines": {
|
| 362 |
"node": ">=6.9.0"
|
| 363 |
}
|
|
|
|
| 563 |
}
|
| 564 |
},
|
| 565 |
"node_modules/@babel/plugin-proposal-decorators": {
|
| 566 |
+
"version": "7.24.0",
|
| 567 |
+
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.24.0.tgz",
|
| 568 |
+
"integrity": "sha512-LiT1RqZWeij7X+wGxCoYh3/3b8nVOX6/7BZ9wiQgAIyjoeQWdROaodJCgT+dwtbjHaz0r7bEbHJzjSbVfcOyjQ==",
|
| 569 |
"dependencies": {
|
| 570 |
+
"@babel/helper-create-class-features-plugin": "^7.24.0",
|
| 571 |
+
"@babel/helper-plugin-utils": "^7.24.0",
|
| 572 |
+
"@babel/plugin-syntax-decorators": "^7.24.0"
|
| 573 |
},
|
| 574 |
"engines": {
|
| 575 |
"node": ">=6.9.0"
|
|
|
|
| 702 |
}
|
| 703 |
},
|
| 704 |
"node_modules/@babel/plugin-syntax-decorators": {
|
| 705 |
+
"version": "7.24.0",
|
| 706 |
+
"resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.24.0.tgz",
|
| 707 |
+
"integrity": "sha512-MXW3pQCu9gUiVGzqkGqsgiINDVYXoAnrY8FYF/rmb+OfufNF0zHMpHPN4ulRrinxYT8Vk/aZJxYqOKsDECjKAw==",
|
| 708 |
"dependencies": {
|
| 709 |
+
"@babel/helper-plugin-utils": "^7.24.0"
|
| 710 |
},
|
| 711 |
"engines": {
|
| 712 |
"node": ">=6.9.0"
|
|
|
|
| 1395 |
}
|
| 1396 |
},
|
| 1397 |
"node_modules/@babel/plugin-transform-object-rest-spread": {
|
| 1398 |
+
"version": "7.24.0",
|
| 1399 |
+
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.0.tgz",
|
| 1400 |
+
"integrity": "sha512-y/yKMm7buHpFFXfxVFS4Vk1ToRJDilIa6fKRioB9Vjichv58TDGXTvqV0dN7plobAmTW5eSEGXDngE+Mm+uO+w==",
|
| 1401 |
"dependencies": {
|
| 1402 |
+
"@babel/compat-data": "^7.23.5",
|
| 1403 |
+
"@babel/helper-compilation-targets": "^7.23.6",
|
| 1404 |
+
"@babel/helper-plugin-utils": "^7.24.0",
|
| 1405 |
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
| 1406 |
"@babel/plugin-transform-parameters": "^7.23.3"
|
| 1407 |
},
|
|
|
|
| 1623 |
}
|
| 1624 |
},
|
| 1625 |
"node_modules/@babel/plugin-transform-runtime": {
|
| 1626 |
+
"version": "7.24.0",
|
| 1627 |
+
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.24.0.tgz",
|
| 1628 |
+
"integrity": "sha512-zc0GA5IitLKJrSfXlXmp8KDqLrnGECK7YRfQBmEKg1NmBOQ7e+KuclBEKJgzifQeUYLdNiAw4B4bjyvzWVLiSA==",
|
| 1629 |
"dependencies": {
|
| 1630 |
"@babel/helper-module-imports": "^7.22.15",
|
| 1631 |
+
"@babel/helper-plugin-utils": "^7.24.0",
|
| 1632 |
"babel-plugin-polyfill-corejs2": "^0.4.8",
|
| 1633 |
"babel-plugin-polyfill-corejs3": "^0.9.0",
|
| 1634 |
"babel-plugin-polyfill-regenerator": "^0.5.5",
|
|
|
|
| 1797 |
}
|
| 1798 |
},
|
| 1799 |
"node_modules/@babel/preset-env": {
|
| 1800 |
+
"version": "7.24.0",
|
| 1801 |
+
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.24.0.tgz",
|
| 1802 |
+
"integrity": "sha512-ZxPEzV9IgvGn73iK0E6VB9/95Nd7aMFpbE0l8KQFDG70cOV9IxRP7Y2FUPmlK0v6ImlLqYX50iuZ3ZTVhOF2lA==",
|
| 1803 |
"dependencies": {
|
| 1804 |
"@babel/compat-data": "^7.23.5",
|
| 1805 |
"@babel/helper-compilation-targets": "^7.23.6",
|
| 1806 |
+
"@babel/helper-plugin-utils": "^7.24.0",
|
| 1807 |
"@babel/helper-validator-option": "^7.23.5",
|
| 1808 |
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3",
|
| 1809 |
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3",
|
|
|
|
| 1856 |
"@babel/plugin-transform-new-target": "^7.23.3",
|
| 1857 |
"@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
|
| 1858 |
"@babel/plugin-transform-numeric-separator": "^7.23.4",
|
| 1859 |
+
"@babel/plugin-transform-object-rest-spread": "^7.24.0",
|
| 1860 |
"@babel/plugin-transform-object-super": "^7.23.3",
|
| 1861 |
"@babel/plugin-transform-optional-catch-binding": "^7.23.4",
|
| 1862 |
"@babel/plugin-transform-optional-chaining": "^7.23.4",
|
|
|
|
| 4074 |
}
|
| 4075 |
},
|
| 4076 |
"node_modules/@types/eslint": {
|
| 4077 |
+
"version": "8.56.5",
|
| 4078 |
+
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.5.tgz",
|
| 4079 |
+
"integrity": "sha512-u5/YPJHo1tvkSF2CE0USEkxon82Z5DBy2xR+qfyYNszpX9qcs4sT6uq2kBbj4BXY1+DBGDPnrhMZV3pKWGNukw==",
|
| 4080 |
"dependencies": {
|
| 4081 |
"@types/estree": "*",
|
| 4082 |
"@types/json-schema": "*"
|
|
|
|
| 4453 |
"integrity": "sha512-hroOstUScF6zhIi+5+x0dzqrHA1EJi+Irri6b1fxolMTqqHIV/Cg77EtnQcZqZCu8hR3mX2BzIxN4/GzI68Kfw=="
|
| 4454 |
},
|
| 4455 |
"node_modules/@types/qs": {
|
| 4456 |
+
"version": "6.9.12",
|
| 4457 |
+
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.12.tgz",
|
| 4458 |
+
"integrity": "sha512-bZcOkJ6uWrL0Qb2NAWKa7TBU+mJHPzhx9jjLL1KHF+XpzEcR7EXHvjbHlGtR/IsP1vyPrehuS6XqkmaePy//mg=="
|
| 4459 |
},
|
| 4460 |
"node_modules/@types/range-parser": {
|
| 4461 |
"version": "1.2.7",
|
|
|
|
| 4499 |
"integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A=="
|
| 4500 |
},
|
| 4501 |
"node_modules/@types/semver": {
|
| 4502 |
+
"version": "7.5.8",
|
| 4503 |
+
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",
|
| 4504 |
+
"integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ=="
|
| 4505 |
},
|
| 4506 |
"node_modules/@types/send": {
|
| 4507 |
"version": "0.17.4",
|
|
|
|
| 6651 |
"integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg=="
|
| 6652 |
},
|
| 6653 |
"node_modules/cssdb": {
|
| 6654 |
+
"version": "7.11.1",
|
| 6655 |
+
"resolved": "https://registry.npmjs.org/cssdb/-/cssdb-7.11.1.tgz",
|
| 6656 |
+
"integrity": "sha512-F0nEoX/Rv8ENTHsjMPGHd9opdjGfXkgRBafSUGnQKPzGZFB7Lm0BbT10x21TMOCrKLbVsJ0NoCDMk6AfKqw8/A==",
|
| 6657 |
"funding": [
|
| 6658 |
{
|
| 6659 |
"type": "opencollective",
|
|
|
|
| 7249 |
}
|
| 7250 |
},
|
| 7251 |
"node_modules/enhanced-resolve": {
|
| 7252 |
+
"version": "5.15.1",
|
| 7253 |
+
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.1.tgz",
|
| 7254 |
+
"integrity": "sha512-3d3JRbwsCLJsYgvb6NuWEG44jjPSOMuS73L/6+7BZuoKm3W+qXnSoIYVHi8dG7Qcg4inAY4jbzkZ7MnskePeDg==",
|
| 7255 |
"dependencies": {
|
| 7256 |
"graceful-fs": "^4.2.4",
|
| 7257 |
"tapable": "^2.2.0"
|
|
|
|
| 7285 |
}
|
| 7286 |
},
|
| 7287 |
"node_modules/es-abstract": {
|
| 7288 |
+
"version": "1.22.5",
|
| 7289 |
+
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.5.tgz",
|
| 7290 |
+
"integrity": "sha512-oW69R+4q2wG+Hc3KZePPZxOiisRIqfKBVo/HLx94QcJeWGU/8sZhCvc829rd1kS366vlJbzBfXf9yWwf0+Ko7w==",
|
| 7291 |
"dependencies": {
|
| 7292 |
"array-buffer-byte-length": "^1.0.1",
|
| 7293 |
"arraybuffer.prototype.slice": "^1.0.3",
|
| 7294 |
+
"available-typed-arrays": "^1.0.7",
|
| 7295 |
"call-bind": "^1.0.7",
|
| 7296 |
"es-define-property": "^1.0.0",
|
| 7297 |
"es-errors": "^1.3.0",
|
| 7298 |
+
"es-set-tostringtag": "^2.0.3",
|
| 7299 |
"es-to-primitive": "^1.2.1",
|
| 7300 |
"function.prototype.name": "^1.1.6",
|
| 7301 |
"get-intrinsic": "^1.2.4",
|
|
|
|
| 7303 |
"globalthis": "^1.0.3",
|
| 7304 |
"gopd": "^1.0.1",
|
| 7305 |
"has-property-descriptors": "^1.0.2",
|
| 7306 |
+
"has-proto": "^1.0.3",
|
| 7307 |
"has-symbols": "^1.0.3",
|
| 7308 |
"hasown": "^2.0.1",
|
| 7309 |
"internal-slot": "^1.0.7",
|
| 7310 |
"is-array-buffer": "^3.0.4",
|
| 7311 |
"is-callable": "^1.2.7",
|
| 7312 |
+
"is-negative-zero": "^2.0.3",
|
| 7313 |
"is-regex": "^1.1.4",
|
| 7314 |
+
"is-shared-array-buffer": "^1.0.3",
|
| 7315 |
"is-string": "^1.0.7",
|
| 7316 |
"is-typed-array": "^1.1.13",
|
| 7317 |
"is-weakref": "^1.0.2",
|
|
|
|
| 7324 |
"string.prototype.trim": "^1.2.8",
|
| 7325 |
"string.prototype.trimend": "^1.0.7",
|
| 7326 |
"string.prototype.trimstart": "^1.0.7",
|
| 7327 |
+
"typed-array-buffer": "^1.0.2",
|
| 7328 |
+
"typed-array-byte-length": "^1.0.1",
|
| 7329 |
+
"typed-array-byte-offset": "^1.0.2",
|
| 7330 |
+
"typed-array-length": "^1.0.5",
|
| 7331 |
"unbox-primitive": "^1.0.2",
|
| 7332 |
"which-typed-array": "^1.1.14"
|
| 7333 |
},
|
|
|
|
| 7598 |
}
|
| 7599 |
},
|
| 7600 |
"node_modules/eslint-module-utils": {
|
| 7601 |
+
"version": "2.8.1",
|
| 7602 |
+
"resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz",
|
| 7603 |
+
"integrity": "sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==",
|
| 7604 |
"dependencies": {
|
| 7605 |
"debug": "^3.2.7"
|
| 7606 |
},
|
|
|
|
| 12570 |
}
|
| 12571 |
},
|
| 12572 |
"node_modules/mini-css-extract-plugin": {
|
| 12573 |
+
"version": "2.8.1",
|
| 12574 |
+
"resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.8.1.tgz",
|
| 12575 |
+
"integrity": "sha512-/1HDlyFRxWIZPI1ZpgqlZ8jMw/1Dp/dl3P0L1jtZ+zVcHqwPhGwaJwKL00WVgfnBy6PWCde9W65or7IIETImuA==",
|
| 12576 |
"dependencies": {
|
| 12577 |
"schema-utils": "^4.0.0",
|
| 12578 |
"tapable": "^2.2.1"
|
|
|
|
| 13902 |
}
|
| 13903 |
},
|
| 13904 |
"node_modules/postcss-load-config/node_modules/yaml": {
|
| 13905 |
+
"version": "2.4.0",
|
| 13906 |
+
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.0.tgz",
|
| 13907 |
+
"integrity": "sha512-j9iR8g+/t0lArF4V6NE/QCfT+CO7iLqrXAHZbJdo+LfjqP1vR8Fg5bSiaq6Q2lOD1AUEVrEVIgABvBFYojJVYQ==",
|
| 13908 |
+
"bin": {
|
| 13909 |
+
"yaml": "bin.mjs"
|
| 13910 |
+
},
|
| 13911 |
"engines": {
|
| 13912 |
"node": ">= 14"
|
| 13913 |
}
|
|
|
|
| 17069 |
}
|
| 17070 |
},
|
| 17071 |
"node_modules/typescript": {
|
| 17072 |
+
"version": "5.3.3",
|
| 17073 |
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
|
| 17074 |
+
"integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
|
| 17075 |
"peer": true,
|
| 17076 |
"bin": {
|
| 17077 |
"tsc": "bin/tsc",
|
| 17078 |
"tsserver": "bin/tsserver"
|
| 17079 |
},
|
| 17080 |
"engines": {
|
| 17081 |
+
"node": ">=14.17"
|
| 17082 |
}
|
| 17083 |
},
|
| 17084 |
"node_modules/unbox-primitive": {
|
package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
"@testing-library/user-event": "^13.5.0",
|
| 10 |
"react": "^18.2.0",
|
| 11 |
"react-dom": "^18.2.0",
|
| 12 |
-
"react-scripts": "5.0.1",
|
| 13 |
"web-vitals": "^2.1.4"
|
| 14 |
},
|
| 15 |
"scripts": {
|
|
|
|
| 9 |
"@testing-library/user-event": "^13.5.0",
|
| 10 |
"react": "^18.2.0",
|
| 11 |
"react-dom": "^18.2.0",
|
| 12 |
+
"react-scripts": "^5.0.1",
|
| 13 |
"web-vitals": "^2.1.4"
|
| 14 |
},
|
| 15 |
"scripts": {
|
src/App.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
}
|
| 6 |
|
| 7 |
.contacts{
|
| 8 |
-
background-color:
|
| 9 |
color:white;
|
| 10 |
min-width:300px;
|
| 11 |
|
|
|
|
| 5 |
}
|
| 6 |
|
| 7 |
.contacts{
|
| 8 |
+
background-color: var(--PRIMARY-COLOR);
|
| 9 |
color:white;
|
| 10 |
min-width:300px;
|
| 11 |
|
src/components/Chat/Chat.jsx
CHANGED
|
@@ -7,7 +7,7 @@ import ChatFooter from '../ChatFooter';
|
|
| 7 |
function Chat() {
|
| 8 |
return (
|
| 9 |
<div className='chat'>
|
| 10 |
-
<ChatHeader/>
|
| 11 |
<ChatMain/>
|
| 12 |
<ChatFooter/>
|
| 13 |
</div>
|
|
|
|
| 7 |
function Chat() {
|
| 8 |
return (
|
| 9 |
<div className='chat'>
|
| 10 |
+
<ChatHeader name= "Ankit"/>
|
| 11 |
<ChatMain/>
|
| 12 |
<ChatFooter/>
|
| 13 |
</div>
|
src/components/ChatHeader/ChatHeader.css
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.chat_header{
|
| 2 |
+
padding:1em 2em;
|
| 3 |
+
background:var(--SECONDARY-COLOR);
|
| 4 |
+
border-bottom: 2px dashed var(--BORDER-COLOR);
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
.nav {
|
| 8 |
+
width:100%;
|
| 9 |
+
display: flex;
|
| 10 |
+
flex-direction: row;
|
| 11 |
+
justify-content: space-between;
|
| 12 |
+
align-items: center;
|
| 13 |
+
background-color: var(--SECONDARY-COLOR);
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
.nav_to{
|
| 17 |
+
font-size:1.5em;
|
| 18 |
+
color: rgb(140, 139, 139);
|
| 19 |
+
}
|
| 20 |
+
.nav_name{
|
| 21 |
+
color:var(--PRIMARY-COLOR);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.call-icons{
|
| 25 |
+
list-style: none;
|
| 26 |
+
display: flex;
|
| 27 |
+
gap:20px;
|
| 28 |
+
justify-content: space-between;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.icon{
|
| 32 |
+
background: var(--PRIMARY-COLOR);
|
| 33 |
+
border-radius:50%;
|
| 34 |
+
padding:6px;
|
| 35 |
+
}
|
src/components/ChatHeader/ChatHeader.jsx
CHANGED
|
@@ -1,8 +1,25 @@
|
|
| 1 |
import React from 'react'
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
function ChatHeader(
|
|
|
|
|
|
|
| 4 |
return (
|
| 5 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
)
|
| 7 |
}
|
| 8 |
|
|
|
|
| 1 |
import React from 'react'
|
| 2 |
+
import { PhoneIcon, VideoCameraIcon } from '@heroicons/react/24/solid';
|
| 3 |
+
import "./ChatHeader.css";
|
| 4 |
|
| 5 |
+
function ChatHeader({
|
| 6 |
+
name
|
| 7 |
+
}) {
|
| 8 |
return (
|
| 9 |
+
<header className="chat_header">
|
| 10 |
+
|
| 11 |
+
<nav className='nav'>
|
| 12 |
+
|
| 13 |
+
<p className='nav_to'>{"To: "}
|
| 14 |
+
<span className='nav_name'>{name}</span>
|
| 15 |
+
</p>
|
| 16 |
+
<div className='call-icons'>
|
| 17 |
+
<PhoneIcon className="icon" height="30" color="#fff" />
|
| 18 |
+
<VideoCameraIcon className="icon" height="30" color="#fff" />
|
| 19 |
+
</div>
|
| 20 |
+
</nav>
|
| 21 |
+
|
| 22 |
+
</header>
|
| 23 |
)
|
| 24 |
}
|
| 25 |
|
src/index.css
CHANGED
|
@@ -10,4 +10,11 @@ body {
|
|
| 10 |
sans-serif;
|
| 11 |
-webkit-font-smoothing: antialiased;
|
| 12 |
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
|
|
|
| 10 |
sans-serif;
|
| 11 |
-webkit-font-smoothing: antialiased;
|
| 12 |
-moz-osx-font-smoothing: grayscale;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
:root{
|
| 16 |
+
|
| 17 |
+
--PRIMARY-COLOR: rgb(115, 40, 214);
|
| 18 |
+
--SECONDARY-COLOR:#FFF;
|
| 19 |
+
--BORDER-COLOR:rgb(227, 225, 225);
|
| 20 |
}
|
src/index.js
CHANGED
|
@@ -15,3 +15,5 @@ root.render(
|
|
| 15 |
// to log results (for example: reportWebVitals(console.log))
|
| 16 |
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
| 17 |
reportWebVitals();
|
|
|
|
|
|
|
|
|
| 15 |
// to log results (for example: reportWebVitals(console.log))
|
| 16 |
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
| 17 |
reportWebVitals();
|
| 18 |
+
|
| 19 |
+
// npm audit fix --force
|