moved to vite
This commit is contained in:
1 parent
04ae8b7be8
commit
d9455d002b
24 files changed
+1708
-23699
No files matched your search
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"files": {
|
|
||||||
"main.css": "/static/css/main.cb2b37d1.css",
|
|
||||||
"main.js": "/static/js/main.d19fb767.js",
|
|
||||||
"index.html": "/index.html",
|
|
||||||
"main.cb2b37d1.css.map": "/static/css/main.cb2b37d1.css.map",
|
|
||||||
"main.d19fb767.js.map": "/static/js/main.d19fb767.js.map"
|
|
||||||
},
|
|
||||||
"entrypoints": [
|
|
||||||
"static/css/main.cb2b37d1.css",
|
|
||||||
"static/js/main.d19fb767.js"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
<!doctype html><html lang="en"><head><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><script defer="defer" src="/static/js/main.d19fb767.js"></script><link href="/static/css/main.cb2b37d1.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
.datePicker :hover{border-color:"#212121"}.datePicker :focus{border-color:"#1976d2";border-width:"2px"}.datePicker{background:"red";color:"red"}.colormebaby{background-color:"red";color:"red"}
|
|
||||||
/*# sourceMappingURL=main.cb2b37d1.css.map*/
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"static/css/main.cb2b37d1.css","mappings":"AAAA,mBACE,sBACF,CACA,mBACE,sBAAuB,CACvB,kBACF,CACA,YAEE,gBAAgB,CADhB,WAEF,CAEA,aACE,sBAAsB,CACtB,WACF","sources":["App2.css"],"sourcesContent":[".datePicker :hover {\n border-color: \"#212121\";\n}\n.datePicker :focus {\n border-color: \"#1976d2\";\n border-width: \"2px\";\n}\n.datePicker{\n color:\"red\";\n background:\"red\";\n}\n\n.colormebaby{\n background-color:\"red\";\n color:\"red\"\n}\n"],"names":[],"sourceRoot":""}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
/*! For license information please see main.d19fb767.js.LICENSE.txt */
|
|
||||||
!function(){var e={3361:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,a=String.fromCharCode,i=Object.assign;function l(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function s(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var m=1,v=1,g=0,y=0,b=0,x="";function w(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:m,column:v,length:i,return:""}}function S(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=y>0?c(x,--y):0,v--,10===b&&(v=1,m--),b}function E(){return b=y<g?c(x,y++):0,v++,10===b&&(v=1,m++),b}function C(){return c(x,y)}function A(){return y}function Z(e,t){return d(x,e,t)}function j(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(e){return m=v=1,g=f(x=e),y=0,[]}function R(e){return x="",e}function O(e){return l(Z(y-1,I(91===e?e+2:40===e?e+1:e)))}function N(e){for(;(b=C())&&b<33;)E();return j(e)>2||j(b)>3?"":" "}function T(e,t){for(;--t&&E()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return Z(e,A()+(t<6&&32==C()&&32==E()))}function I(e){for(;E();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:E()}return y}function M(e,t){for(;E()&&e+b!==57&&(e+b!==84||47!==C()););return"/*"+Z(t,y-1)+"*"+a(47===e?e:E())}function B(e){for(;!j(C());)E();return Z(e,y)}var F="-ms-",L="-moz-",z="-webkit-",D="comm",_="rule",U="decl",W="@keyframes";function H(e,t){for(var n="",r=p(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case U:return e.return=e.return||e.value;case D:return"";case W:return e.return=e.value+"{"+H(e.children,r)+"}";case _:e.value=e.props.join(",")}return f(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function V(e){return R(G("",null,null,null,[""],e=P(e),0,[0],e))}function G(e,t,n,r,o,i,l,d,p){for(var m=0,v=0,g=l,y=0,b=0,x=0,w=1,S=1,Z=1,j=0,P="",R=o,I=i,F=r,L=P;S;)switch(x=j,j=E()){case 40:if(108!=x&&58==c(L,g-1)){-1!=s(L+=u(O(j),"&","&\f"),"&\f")&&(Z=-1);break}case 34:case 39:case 91:L+=O(j);break;case 9:case 10:case 13:case 32:L+=N(x);break;case 92:L+=T(A()-1,7);continue;case 47:switch(C()){case 42:case 47:h(K(M(E(),A()),t,n),p);break;default:L+="/"}break;case 123*w:d[m++]=f(L)*Z;case 125*w:case 59:case 0:switch(j){case 0:case 125:S=0;case 59+v:-1==Z&&(L=u(L,/\f/g,"")),b>0&&f(L)-g&&h(b>32?Y(L+";",r,n,g-1):Y(u(L," ","")+";",r,n,g-2),p);break;case 59:L+=";";default:if(h(F=q(L,t,n,m,v,o,d,P,R=[],I=[],g),i),123===j)if(0===v)G(L,t,F,F,R,i,g,d,I);else switch(99===y&&110===c(L,3)?100:y){case 100:case 108:case 109:case 115:G(e,F,F,r&&h(q(e,F,F,0,0,o,d,P,o,R=[],g),I),o,I,g,d,r?R:I);break;default:G(L,F,F,F,[""],I,0,d,I)}}m=v=b=0,w=Z=1,P=L="",g=l;break;case 58:g=1+f(L),b=x;default:if(w<1)if(123==j)--w;else if(125==j&&0==w++&&125==k())continue;switch(L+=a(j),j*w){case 38:Z=v>0?1:(L+="\f",-1);break;case 44:d[m++]=(f(L)-1)*Z,Z=1;break;case 64:45===C()&&(L+=O(E())),y=C(),v=g=f(P=L+=B(A())),j++;break;case 45:45===x&&2==f(L)&&(w=0)}}return i}function q(e,t,n,r,a,i,s,c,f,h,m){for(var v=a-1,g=0===a?i:[""],y=p(g),b=0,x=0,S=0;b<r;++b)for(var k=0,E=d(e,v+1,v=o(x=s[b])),C=e;k<y;++k)(C=l(x>0?g[k]+" "+E:u(E,/&\f/g,g[k])))&&(f[S++]=C);return w(e,t,n,0===a?_:c,f,h,m)}function K(e,t,n){return w(e,t,n,D,a(b),d(e,2,-2),0)}function Y(e,t,n,r){return
Line truncated
|
|
||||||
//# sourceMappingURL=main.d19fb767.js.map
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @license React
|
|
||||||
* react-dom.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @license React
|
|
||||||
* react-is.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @license React
|
|
||||||
* react-jsx-runtime.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @license React
|
|
||||||
* react.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @license React
|
|
||||||
* scheduler.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @license React
|
|
||||||
* use-sync-external-store-shim.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @license React
|
|
||||||
* use-sync-external-store-shim/with-selector.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @mui/styled-engine v5.13.2
|
|
||||||
*
|
|
||||||
* @license MIT
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @remix-run/router v1.7.2
|
|
||||||
*
|
|
||||||
* Copyright (c) Remix Software Inc.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE.md file in the root directory of this source tree.
|
|
||||||
*
|
|
||||||
* @license MIT
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* React Router DOM v6.14.2
|
|
||||||
*
|
|
||||||
* Copyright (c) Remix Software Inc.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE.md file in the root directory of this source tree.
|
|
||||||
*
|
|
||||||
* @license MIT
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* React Router v6.14.2
|
|
||||||
*
|
|
||||||
* Copyright (c) Remix Software Inc.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE.md file in the root directory of this source tree.
|
|
||||||
*
|
|
||||||
* @license MIT
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** @license React v16.13.1
|
|
||||||
* react-is.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
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,EAAGA,EAAI5B,EAAQ4B,IAC3ByE,GAAUD,EAASzB,EAAS/C,GAAIA,EAAG+C,EAAUyB,IAAa,GAE3D,OAAOC,CACR,CASO,SAASC,EAAWC,EAAShD,EAAOoB,EAAUyB,GACpD,OAAQG,EAAQ9B,MACf,IDPiB,SCOL,GAAI8B,EAAQ5B,SAAS3E,OAAQ,MACzC,IDlBkB,UCkBL,KAAKiG,EAAa,OAAOM,EAAQ3B,OAAS2B,EAAQ3B,QAAU2B,EAAQxD,MACjF,KAAKgD,EAAS,MAAO,GACrB,KAAKG,EAAW,OAAOK,EAAQ3B,OAAS2B,EAAQxD,MAAQ,IAAMoD,EAAUI,EAAQ5B,SAAUyB,GAAY,IACtG,KAAKJ,EAASO,EAAQxD,MAAQwD,EAAQ7B,MAAM8B,KAAK,KAGlD,OAAO3C,EAAOc,EAAWwB,EAAUI,EAAQ5B,SAAUyB,IAAaG,EAAQ3B,OAAS2B,EAAQxD,MAAQ,IAAM4B,EAAW,IAAM,EAC3H,CC3BO,SAAS8B,EAAS1D,GACxB,OAAOqC,EAAQsB,EAAM,GAAI,KAAM,KAAM,KAAM,CAAC,IAAK3D,EAAQoC,EAAMpC,GAAQ,EAAG,CAAC,GAAIA,GAChF,CAcO,SAAS2D,EAAO3D,EAAOwB,EAAMC,EAAQpD,EAAMuF,EAAOC,EAAUC,EAAQC,EAAQC,GAiBlF,IAhBA,IAAIxD,EAAQ,EACRyD,EAAS,EACThH,EAAS6G,EACTI,EAAS,EACTC,EALine truncated
|
|
||||||
@@ -5,6 +5,6 @@ WORKDIR /usr/src/app
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm ci
|
RUN npm i
|
||||||
|
|
||||||
CMD npm start
|
CMD ["npm","run","dev","--","--host"]
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/src/index.tsx"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
Generated
+1563
-23516
File diff suppressed because it is too large.
Load diff
+7
-9
@@ -12,7 +12,6 @@
|
|||||||
"@testing-library/react": "^13.4.0",
|
"@testing-library/react": "^13.4.0",
|
||||||
"@testing-library/user-event": "^13.5.0",
|
"@testing-library/user-event": "^13.5.0",
|
||||||
"@types/jest": "^27.5.2",
|
"@types/jest": "^27.5.2",
|
||||||
"@types/node": "^16.18.39",
|
|
||||||
"@types/react": "^18.2.16",
|
"@types/react": "^18.2.16",
|
||||||
"@types/react-dom": "^18.2.7",
|
"@types/react-dom": "^18.2.7",
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
@@ -20,17 +19,15 @@
|
|||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-redux": "^8.1.1",
|
"react-redux": "^8.1.1",
|
||||||
"react-router-dom": "^6.14.2",
|
"react-router-dom": "^6.14.2",
|
||||||
"react-scripts": "5.0.1",
|
|
||||||
"redux": "^4.2.1",
|
"redux": "^4.2.1",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^4.9.5",
|
||||||
"uuid": "^9.0.0",
|
"uuid": "^9.0.0",
|
||||||
"web-vitals": "^2.1.4"
|
"web-vitals": "^2.1.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"dev": "vite",
|
||||||
"build": "react-scripts build",
|
"build": "vite build",
|
||||||
"test": "react-scripts test",
|
"serve": "vite preview"
|
||||||
"eject": "react-scripts eject"
|
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": [
|
"extends": [
|
||||||
@@ -51,7 +48,8 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/uuid": "^9.0.2"
|
"@types/uuid": "^9.0.2",
|
||||||
},
|
"@vitejs/plugin-react": "^4.3.1",
|
||||||
"proxy": "http://server:5000"
|
"vite": "^5.4.3"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
"name": "my-app",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@emotion/react": "^11.11.1",
|
||||||
|
"@emotion/styled": "^11.11.0",
|
||||||
|
"@mui/icons-material": "^5.14.3",
|
||||||
|
"@mui/material": "^5.14.4",
|
||||||
|
"@reduxjs/toolkit": "^1.9.5",
|
||||||
|
"@testing-library/jest-dom": "^5.17.0",
|
||||||
|
"@testing-library/react": "^13.4.0",
|
||||||
|
"@testing-library/user-event": "^13.5.0",
|
||||||
|
"@types/jest": "^27.5.2",
|
||||||
|
"@types/node": "^16.18.39",
|
||||||
|
"@types/react": "^18.2.16",
|
||||||
|
"@types/react-dom": "^18.2.7",
|
||||||
|
"axios": "^1.4.0",
|
||||||
|
"react": "^18.2.0",
|
||||||
|
"react-dom": "^18.2.0",
|
||||||
|
"react-redux": "^8.1.1",
|
||||||
|
"react-router-dom": "^6.14.2",
|
||||||
|
"redux": "^4.2.1",
|
||||||
|
"typescript": "^4.9.5",
|
||||||
|
"uuid": "^9.0.0",
|
||||||
|
"web-vitals": "^2.1.4"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"start": "react-scripts start",
|
||||||
|
"build": "react-scripts build",
|
||||||
|
"test": "react-scripts test",
|
||||||
|
"eject": "react-scripts eject"
|
||||||
|
},
|
||||||
|
"eslintConfig": {
|
||||||
|
"extends": [
|
||||||
|
"react-app",
|
||||||
|
"react-app/jest"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"browserslist": {
|
||||||
|
"production": [
|
||||||
|
">0.2%",
|
||||||
|
"not dead",
|
||||||
|
"not op_mini all"
|
||||||
|
],
|
||||||
|
"development": [
|
||||||
|
"last 1 chrome version",
|
||||||
|
"last 1 firefox version",
|
||||||
|
"last 1 safari version"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/uuid": "^9.0.2"
|
||||||
|
},
|
||||||
|
"proxy": "http://server:5000"
|
||||||
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
|
|
||||||
/>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="root"></div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -121,6 +121,7 @@ export const addPost =
|
|||||||
(formData: { text: string }): AppThunk =>
|
(formData: { text: string }): AppThunk =>
|
||||||
async (dispatch) => {
|
async (dispatch) => {
|
||||||
try {
|
try {
|
||||||
|
console.log(1);
|
||||||
const res = await api.post("/posts", formData);
|
const res = await api.post("/posts", formData);
|
||||||
|
|
||||||
dispatch(addPostAction(res.data));
|
dispatch(addPostAction(res.data));
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { Box, Typography } from "@mui/material";
|
|||||||
|
|
||||||
const Education = ({ education }: { education: EducationType[] }) => {
|
const Education = ({ education }: { education: EducationType[] }) => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
if (!education) return <></>;
|
||||||
const educations = education.map((edu) => (
|
const educations = education.map((edu) => (
|
||||||
<tr key={edu._id}>
|
<tr key={edu._id}>
|
||||||
<td>{edu.school}</td>
|
<td>{edu.school}</td>
|
||||||
@@ -35,7 +36,7 @@ const Education = ({ education }: { education: EducationType[] }) => {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Typography variant='h5'>Education Credentials</Typography>
|
<Typography variant="h5">Education Credentials</Typography>
|
||||||
<table className="table">
|
<table className="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { useAppDispatch } from "../../utils/hooks";
|
|||||||
|
|
||||||
const Experience = ({ experience }: { experience: ExperienceType[] }) => {
|
const Experience = ({ experience }: { experience: ExperienceType[] }) => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
if (!experience) return <></>;
|
||||||
const experiences = experience.map((exp) => (
|
const experiences = experience.map((exp) => (
|
||||||
<tr key={exp._id}>
|
<tr key={exp._id}>
|
||||||
<td>{exp.company}</td>
|
<td>{exp.company}</td>
|
||||||
@@ -27,7 +28,9 @@ const Experience = ({ experience }: { experience: ExperienceType[] }) => {
|
|||||||
|
|
||||||
if (experiences.length === 0)
|
if (experiences.length === 0)
|
||||||
return (
|
return (
|
||||||
<Typography variant="h5">You have no experiences, consider adding some.</Typography>
|
<Typography variant="h5">
|
||||||
|
You have no experiences, consider adding some.
|
||||||
|
</Typography>
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ const Navbar = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{isAuthenticated ? (
|
{isAuthenticated ? (
|
||||||
<>
|
<div>
|
||||||
{" "}
|
{" "}
|
||||||
{authLinks.map((el) => (
|
{authLinks.map((el) => (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
@@ -149,7 +149,7 @@ const Navbar = () => {
|
|||||||
</a>
|
</a>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
,
|
,
|
||||||
</>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
guestLinks.map((el) => (
|
guestLinks.map((el) => (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
|||||||
@@ -14,8 +14,9 @@ const PostForm = () => {
|
|||||||
display="flex"
|
display="flex"
|
||||||
gap="1rem"
|
gap="1rem"
|
||||||
noValidate
|
noValidate
|
||||||
sx={{ mt: 3,mb:3 }}
|
sx={{ mt: 3, mb: 3 }}
|
||||||
onSubmit={async (e) => {
|
onSubmit={async (e) => {
|
||||||
|
console.log(1);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
await dispatch(addPost({ text }));
|
await dispatch(addPost({ text }));
|
||||||
setText("");
|
setText("");
|
||||||
@@ -26,9 +27,9 @@ const PostForm = () => {
|
|||||||
label="Create a post"
|
label="Create a post"
|
||||||
fullWidth
|
fullWidth
|
||||||
value={text}
|
value={text}
|
||||||
onChange={(e)=> setText(e.target.value)}
|
onChange={(e) => setText(e.target.value)}
|
||||||
multiline
|
multiline
|
||||||
rows={3}
|
rows={3}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<Button variant="contained">Submit</Button>
|
<Button variant="contained">Submit</Button>
|
||||||
|
|||||||
@@ -14,15 +14,20 @@ const Posts = () => {
|
|||||||
fetchData();
|
fetchData();
|
||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
const posts = useAppSelector((state) => state.post.posts);
|
const posts = useAppSelector((state) => state.post.posts);
|
||||||
|
if (!posts) return <></>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container maxWidth="sm">
|
<Container maxWidth="sm">
|
||||||
<Typography variant="h3">Posts</Typography>
|
<Typography variant="h3">Posts</Typography>
|
||||||
<Typography variant='h4'>Welcome to the community</Typography>
|
<Typography variant="h4">Welcome to the community</Typography>
|
||||||
<PostForm />
|
<PostForm />
|
||||||
{posts.map((post) => (
|
<Box>
|
||||||
<PostItem key={post._id} post={post} />
|
{posts.length > 0 && Array.isArray(posts) ? (
|
||||||
))}
|
posts.map((post) => <PostItem key={post._id} post={post} />)
|
||||||
|
) : (
|
||||||
|
<Typography>No posts found...</Typography>
|
||||||
|
)}
|
||||||
|
</Box>
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const Profiles = () => {
|
|||||||
Browse and connect with developers
|
Browse and connect with developers
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box>
|
<Box>
|
||||||
{profiles.length > 0 ? (
|
{profiles.length > 0 && Array.isArray(profiles) ? (
|
||||||
profiles.map((profile) => (
|
profiles.map((profile) => (
|
||||||
<ProfileItem key={profile._id} profile={profile} />
|
<ProfileItem key={profile._id} profile={profile} />
|
||||||
))
|
))
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import axios from "axios";
|
|||||||
import store from "../store";
|
import store from "../store";
|
||||||
|
|
||||||
const api = axios.create({
|
const api = axios.create({
|
||||||
baseURL: "/api",
|
baseURL: "http://localhost:5000/api",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import { defineConfig } from "vite";
|
||||||
|
import react from "@vitejs/plugin-react";
|
||||||
|
|
||||||
|
export default defineConfig(() => {
|
||||||
|
return {
|
||||||
|
build: {
|
||||||
|
outDir: "build",
|
||||||
|
},
|
||||||
|
plugins: [react()],
|
||||||
|
};
|
||||||
|
});
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: devcon-frontend-dev
|
image: devcon-frontend-dev
|
||||||
@@ -6,7 +5,9 @@ services:
|
|||||||
context: ./client
|
context: ./client
|
||||||
dockerfile: ./dev.Dockerfile
|
dockerfile: ./dev.Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 5173:5173
|
||||||
|
environment:
|
||||||
|
VITE_BACKEND_URL: http://server:5000
|
||||||
volumes:
|
volumes:
|
||||||
- ./client:/usr/src/app
|
- ./client:/usr/src/app
|
||||||
|
|
||||||
|
|||||||
+27
-1
@@ -1,4 +1,26 @@
|
|||||||
services:
|
services:
|
||||||
|
app:
|
||||||
|
image: devcon-frontend-dev
|
||||||
|
build:
|
||||||
|
context: ./client
|
||||||
|
dockerfile: ./dev.Dockerfile
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
volumes:
|
||||||
|
- ./client:/usr/src/app
|
||||||
|
|
||||||
|
server:
|
||||||
|
image: devcon-backend-dev
|
||||||
|
build:
|
||||||
|
context: ./server
|
||||||
|
dockerfile: ./dev.Dockerfile
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
|
volumes:
|
||||||
|
- ./server:/usr/src/app
|
||||||
|
environment:
|
||||||
|
MONGO_URL: "mongodb://the_username:the_password@mongo:27017/the_database"
|
||||||
|
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo
|
image: mongo
|
||||||
ports:
|
ports:
|
||||||
@@ -7,6 +29,10 @@ services:
|
|||||||
MONGO_INITDB_ROOT_USERNAME: root
|
MONGO_INITDB_ROOT_USERNAME: root
|
||||||
MONGO_INITDB_ROOT_PASSWORD: example
|
MONGO_INITDB_ROOT_PASSWORD: example
|
||||||
MONGO_INITDB_DATABASE: the_database
|
MONGO_INITDB_DATABASE: the_database
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js
|
- ./mongo/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js
|
||||||
|
- mongo_data:/data/db
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mongo_data:
|
||||||
|
|
||||||
Reference in new issue
Block a user