-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 147 KB
/
.eslintcache
1
[{"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\index.js":"1","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\App.js":"2","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\login.jsx":"3","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\RandomQuotes.jsx":"4","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\Quotes.js":"5","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\Home.jsx":"6","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\HomeBar.jsx":"7","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\ProfileCard.jsx":"8","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\Post.jsx":"9","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\NewsFeed.jsx":"10","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\News.jsx":"11","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\Login.jsx":"12","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\SignUp.jsx":"13","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Store\\userDataSlice.js":"14","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Store\\global-store.js":"15","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\MiddleContainer.jsx":"16","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\UploadPostWidget.jsx":"17","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\newsAPICreds.js":"18","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\Facts.js":"19","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\NewsItem.jsx":"20","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\PostCreationModal.jsx":"21","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\FileUpload.jsx":"22","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\PostsDisplay\\UserPostsDisplayPage.jsx":"23","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\ScreenTemplate.jsx":"24","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\PostsDisplay\\UserPostDisplay.jsx":"25","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Store\\postDataSlice.js":"26","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\SearchbarModal.jsx":"27","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\PostsDisplay\\UserPost.jsx":"28","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\PostsDisplay\\MainPostPage.jsx":"29","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\UserProfile\\UserProfilePage.jsx":"30","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\UserProfile\\ProfileContainer.jsx":"31","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\UserProfile\\ProfileInformation.jsx":"32","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\CommentModal.jsx":"33","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\index.js":"34","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\App.js":"35","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Store\\global-store.js":"36","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Store\\userDataSlice.js":"37","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Store\\postDataSlice.js":"38","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\Login.jsx":"39","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\SignUp.jsx":"40","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\UserProfile\\UserProfilePage.jsx":"41","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\Home.jsx":"42","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\PostsDisplay\\MainPostPage.jsx":"43","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\RandomQuotes.jsx":"44","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\HomeBar.jsx":"45","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\News.jsx":"46","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\MiddleContainer.jsx":"47","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\ProfileCard.jsx":"48","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\PostsDisplay\\UserPostsDisplayPage.jsx":"49","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\UserProfile\\ProfileContainer.jsx":"50","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\NewsFeed.jsx":"51","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\newsAPICreds.js":"52","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\Quotes.js":"53","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\Facts.js":"54","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\NewsItem.jsx":"55","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\UploadPostWidget.jsx":"56","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\SearchbarModal.jsx":"57","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\UserProfile\\ProfileInformation.jsx":"58","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\Post.jsx":"59","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\PostsDisplay\\UserPostDisplay.jsx":"60","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\PostCreationModal.jsx":"61","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\CommentModal.jsx":"62","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\PostsDisplay\\UserPost.jsx":"63","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\FileUpload.jsx":"64","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\GlobalCommonData.js":"65","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\index.js":"66","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\App.js":"67","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Store\\global-store.js":"68","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\GlobalCommonData.js":"69","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Store\\postDataSlice.js":"70","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Store\\userDataSlice.js":"71","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Login\\Login.jsx":"72","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\UserProfile\\UserProfilePage.jsx":"73","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\Home.jsx":"74","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Login\\SignUp.jsx":"75","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\PostsDisplay\\MainPostPage.jsx":"76","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Login\\RandomQuotes.jsx":"77","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\News.jsx":"78","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\UserProfile\\ProfileContainer.jsx":"79","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\ProfileCard.jsx":"80","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\NewsFeed.jsx":"81","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\MiddleContainer.jsx":"82","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\PostsDisplay\\UserPostsDisplayPage.jsx":"83","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\HomeBar.jsx":"84","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\newsAPICreds.js":"85","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Login\\Quotes.js":"86","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\Facts.js":"87","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\NewsItem.jsx":"88","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\SearchbarModal.jsx":"89","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\Post.jsx":"90","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\PostsDisplay\\UserPostDisplay.jsx":"91","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\UserProfile\\ProfileInformation.jsx":"92","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\UploadPostWidget.jsx":"93","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\CommentModal.jsx":"94","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\PostsDisplay\\UserPost.jsx":"95","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\PostCreationModal.jsx":"96","D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\FileUpload.jsx":"97","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\PasswordResetComponent.jsx":"98","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\ForgotPassword.jsx":"99","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Notifications\\NotificationPage.jsx":"100","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Notifications\\NotificationMainPage.jsx":"101","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Notifications\\NotificationsDetailPage.jsx":"102","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Network\\NetworkContainer.jsx":"103","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Network\\NetworkMiddleContainer.jsx":"104","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Network\\NetworkDetailPage.jsx":"105"},{"size":532,"mtime":1610035668651,"results":"106","hashOfConfig":"107"},{"size":2118,"mtime":1612082536659,"results":"108","hashOfConfig":"107"},{"size":2269,"mtime":1609789191791,"results":"109","hashOfConfig":"107"},{"size":738,"mtime":1610573428613,"results":"110","hashOfConfig":"107"},{"size":1124,"mtime":1608139895337,"results":"111","hashOfConfig":"107"},{"size":866,"mtime":1610571298043,"results":"112","hashOfConfig":"107"},{"size":3445,"mtime":1611669177548,"results":"113","hashOfConfig":"107"},{"size":1180,"mtime":1610040238144,"results":"114","hashOfConfig":"107"},{"size":9538,"mtime":1612211924362,"results":"115","hashOfConfig":"107"},{"size":4411,"mtime":1612126718167,"results":"116","hashOfConfig":"107"},{"size":2715,"mtime":1612085258875,"results":"117","hashOfConfig":"107"},{"size":4056,"mtime":1612122453007,"results":"118","hashOfConfig":"107"},{"size":12697,"mtime":1611001253125,"results":"119","hashOfConfig":"107"},{"size":1181,"mtime":1611689258317,"results":"120","hashOfConfig":"107"},{"size":521,"mtime":1611774463525,"results":"121","hashOfConfig":"107"},{"size":3382,"mtime":1611769584182,"results":"122","hashOfConfig":"107"},{"size":2191,"mtime":1610834505220,"results":"123","hashOfConfig":"107"},{"size":81,"mtime":1610569106971,"results":"124","hashOfConfig":"107"},{"size":629,"mtime":1610571763763,"results":"125","hashOfConfig":"107"},{"size":610,"mtime":1610965385485,"results":"126","hashOfConfig":"107"},{"size":7168,"mtime":1612127234139,"results":"127","hashOfConfig":"107"},{"size":1985,"mtime":1611647421504,"results":"128","hashOfConfig":"107"},{"size":3318,"mtime":1612092843412,"results":"129","hashOfConfig":"107"},{"size":2825,"mtime":1611695005183,"results":"130","hashOfConfig":"107"},{"size":3090,"mtime":1612123566829,"results":"131","hashOfConfig":"107"},{"size":512,"mtime":1612209024322,"results":"132","hashOfConfig":"107"},{"size":619,"mtime":1611667307695,"results":"133","hashOfConfig":"107"},{"size":2311,"mtime":1611770502980,"results":"134","hashOfConfig":"107"},{"size":793,"mtime":1611777829214,"results":"135","hashOfConfig":"107"},{"size":744,"mtime":1611780148635,"results":"136","hashOfConfig":"107"},{"size":3320,"mtime":1611780182196,"results":"137","hashOfConfig":"107"},{"size":1514,"mtime":1611782898508,"results":"138","hashOfConfig":"107"},{"size":1376,"mtime":1612207121860,"results":"139","hashOfConfig":"107"},{"size":532,"mtime":1610035668651,"results":"140","hashOfConfig":"141"},{"size":2921,"mtime":1612768874376,"results":"142","hashOfConfig":"141"},{"size":521,"mtime":1611774463525,"results":"143","hashOfConfig":"141"},{"size":1181,"mtime":1611689258317,"results":"144","hashOfConfig":"141"},{"size":512,"mtime":1612209024322,"results":"145","hashOfConfig":"141"},{"size":5829,"mtime":1612645757680,"results":"146","hashOfConfig":"141"},{"size":14148,"mtime":1612640052320,"results":"147","hashOfConfig":"141"},{"size":744,"mtime":1611780148635,"results":"148","hashOfConfig":"141"},{"size":729,"mtime":1612766113958,"results":"149","hashOfConfig":"141"},{"size":793,"mtime":1611777829214,"results":"150","hashOfConfig":"141"},{"size":1171,"mtime":1612639235765,"results":"151","hashOfConfig":"141"},{"size":3912,"mtime":1612769089336,"results":"152","hashOfConfig":"141"},{"size":2716,"mtime":1612564593450,"results":"153","hashOfConfig":"141"},{"size":3357,"mtime":1612709162692,"results":"154","hashOfConfig":"141"},{"size":1180,"mtime":1610040238144,"results":"155","hashOfConfig":"141"},{"size":3368,"mtime":1612709519730,"results":"156","hashOfConfig":"141"},{"size":3360,"mtime":1612389566511,"results":"157","hashOfConfig":"141"},{"size":6941,"mtime":1612765680786,"results":"158","hashOfConfig":"141"},{"size":81,"mtime":1610569106971,"results":"159","hashOfConfig":"141"},{"size":1230,"mtime":1612560017565,"results":"160","hashOfConfig":"141"},{"size":629,"mtime":1610571763763,"results":"161","hashOfConfig":"141"},{"size":622,"mtime":1612642474464,"results":"162","hashOfConfig":"141"},{"size":3751,"mtime":1612642166424,"results":"163","hashOfConfig":"141"},{"size":619,"mtime":1611667307695,"results":"164","hashOfConfig":"141"},{"size":1514,"mtime":1611782898508,"results":"165","hashOfConfig":"141"},{"size":9806,"mtime":1612709259122,"results":"166","hashOfConfig":"141"},{"size":3747,"mtime":1612765657589,"results":"167","hashOfConfig":"141"},{"size":7653,"mtime":1612710856570,"results":"168","hashOfConfig":"141"},{"size":1380,"mtime":1612563276660,"results":"169","hashOfConfig":"141"},{"size":2311,"mtime":1611770502980,"results":"170","hashOfConfig":"141"},{"size":2655,"mtime":1612562521967,"results":"171","hashOfConfig":"141"},{"size":148,"mtime":1612769244321,"results":"172","hashOfConfig":"141"},{"size":532,"mtime":1610035668651,"results":"173","hashOfConfig":"174"},{"size":2156,"mtime":1612389608219,"results":"175","hashOfConfig":"174"},{"size":521,"mtime":1611774463525,"results":"176","hashOfConfig":"174"},{"size":147,"mtime":1612564788377,"results":"177","hashOfConfig":"174"},{"size":512,"mtime":1612209024322,"results":"178","hashOfConfig":"174"},{"size":1181,"mtime":1611689258317,"results":"179","hashOfConfig":"174"},{"size":4157,"mtime":1612555277137,"results":"180","hashOfConfig":"174"},{"size":744,"mtime":1611780148635,"results":"181","hashOfConfig":"174"},{"size":866,"mtime":1610571298043,"results":"182","hashOfConfig":"174"},{"size":13244,"mtime":1612556232250,"results":"183","hashOfConfig":"174"},{"size":793,"mtime":1611777829214,"results":"184","hashOfConfig":"174"},{"size":967,"mtime":1612560181447,"results":"185","hashOfConfig":"174"},{"size":2716,"mtime":1612564593450,"results":"186","hashOfConfig":"174"},{"size":3360,"mtime":1612389566511,"results":"187","hashOfConfig":"174"},{"size":1180,"mtime":1610040238144,"results":"188","hashOfConfig":"174"},{"size":6384,"mtime":1612561998673,"results":"189","hashOfConfig":"174"},{"size":3424,"mtime":1612389192520,"results":"190","hashOfConfig":"174"},{"size":3363,"mtime":1612389530358,"results":"191","hashOfConfig":"174"},{"size":3905,"mtime":1612389146995,"results":"192","hashOfConfig":"174"},{"size":81,"mtime":1610569106971,"results":"193","hashOfConfig":"174"},{"size":1230,"mtime":1612560017565,"results":"194","hashOfConfig":"174"},{"size":629,"mtime":1610571763763,"results":"195","hashOfConfig":"174"},{"size":610,"mtime":1610965385485,"results":"196","hashOfConfig":"174"},{"size":619,"mtime":1611667307695,"results":"197","hashOfConfig":"174"},{"size":9796,"mtime":1612389312894,"results":"198","hashOfConfig":"174"},{"size":3130,"mtime":1612389495084,"results":"199","hashOfConfig":"174"},{"size":1514,"mtime":1611782898508,"results":"200","hashOfConfig":"174"},{"size":2627,"mtime":1612562201556,"results":"201","hashOfConfig":"174"},{"size":1380,"mtime":1612563276660,"results":"202","hashOfConfig":"174"},{"size":2311,"mtime":1611770502980,"results":"203","hashOfConfig":"174"},{"size":7601,"mtime":1612563177632,"results":"204","hashOfConfig":"174"},{"size":2655,"mtime":1612562521967,"results":"205","hashOfConfig":"174"},{"size":6178,"mtime":1612699503241,"results":"206","hashOfConfig":"141"},{"size":4173,"mtime":1612700038897,"results":"207","hashOfConfig":"141"},{"size":801,"mtime":1612766612044,"results":"208","hashOfConfig":"141"},{"size":3343,"mtime":1612766453419,"results":"209","hashOfConfig":"141"},{"size":301,"mtime":1612766776242,"results":"210","hashOfConfig":"141"},{"size":807,"mtime":1612768292326,"results":"211","hashOfConfig":"141"},{"size":3329,"mtime":1612768425774,"results":"212","hashOfConfig":"141"},{"size":313,"mtime":1612769152740,"results":"213","hashOfConfig":"141"},{"filePath":"214","messages":"215","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"216","usedDeprecatedRules":"217"},"8ogg1l",{"filePath":"218","messages":"219","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"220","usedDeprecatedRules":"217"},{"filePath":"221","messages":"222","errorCount":0,"warningCount":8,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"223","messages":"224","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"225","messages":"226","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"227","messages":"228","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"229","usedDeprecatedRules":"217"},{"filePath":"230","messages":"231","errorCount":0,"warningCount":9,"fixableErrorCount":0,"fixableWarningCount":0,"source":"232","usedDeprecatedRules":"217"},{"filePath":"233","messages":"234","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"235","messages":"236","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"237","messages":"238","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":"239","usedDeprecatedRules":"217"},{"filePath":"240","messages":"241","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"242","usedDeprecatedRules":"217"},{"filePath":"243","messages":"244","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"245","messages":"246","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"247","messages":"248","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"249","usedDeprecatedRules":"217"},{"filePath":"250","messages":"251","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"252","messages":"253","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"254","usedDeprecatedRules":"217"},{"filePath":"255","messages":"256","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"257","messages":"258","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"259","messages":"260","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"261","messages":"262","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"263","usedDeprecatedRules":"217"},{"filePath":"264","messages":"265","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"266","usedDeprecatedRules":"217"},{"filePath":"267","messages":"268","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"269","usedDeprecatedRules":"217"},{"filePath":"270","messages":"271","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"272","messages":"273","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"274"},{"filePath":"275","messages":"276","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"277","usedDeprecatedRules":"217"},{"filePath":"278","messages":"279","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"280","usedDeprecatedRules":"217"},{"filePath":"281","messages":"282","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"283","usedDeprecatedRules":"217"},{"filePath":"284","messages":"285","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"286","messages":"287","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"288","usedDeprecatedRules":"217"},{"filePath":"289","messages":"290","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"291","messages":"292","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"293","messages":"294","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"295","messages":"296","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"217"},{"filePath":"297","messages":"298","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"216","usedDeprecatedRules":"299"},"1lgs82j",{"filePath":"300","messages":"301","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"302","messages":"303","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"304","messages":"305","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"249","usedDeprecatedRules":"299"},{"filePath":"306","messages":"307","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"280","usedDeprecatedRules":"299"},{"filePath":"308","messages":"309","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"310","usedDeprecatedRules":"299"},{"filePath":"311","messages":"312","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"313","usedDeprecatedRules":"299"},{"filePath":"314","messages":"315","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"316","messages":"317","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"318","messages":"319","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"288","usedDeprecatedRules":"299"},{"filePath":"320","messages":"321","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"322","messages":"323","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"324","messages":"325","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"326","usedDeprecatedRules":"299"},{"filePath":"327","messages":"328","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"329","messages":"330","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"331","messages":"332","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"333","messages":"334","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"335","messages":"336","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"337","messages":"338","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"339","messages":"340","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"341","messages":"342","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"343","messages":"344","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"345","usedDeprecatedRules":"299"},{"filePath":"346","messages":"347","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"348","messages":"349","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"283","usedDeprecatedRules":"299"},{"filePath":"350","messages":"351","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"352","messages":"353","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"354","usedDeprecatedRules":"299"},{"filePath":"355","messages":"356","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"357","messages":"358","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"359","messages":"360","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"361","messages":"362","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"299"},{"filePath":"363","messages":"364","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"365","usedDeprecatedRules":"299"},{"filePath":"366","messages":"367","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"368","messages":"369","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"1jfgrg0",{"filePath":"370","messages":"371","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"372","messages":"373","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"374","messages":"375","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"376","messages":"377","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"378","messages":"379","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"380","messages":"381","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"382","messages":"383","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"384","messages":"385","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"386","messages":"387","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"388","messages":"389","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"390","messages":"391","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"392","messages":"393","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"394","messages":"395","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"396","messages":"397","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"398","messages":"399","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"400","messages":"401","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"402","messages":"403","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"404","messages":"405","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"406","messages":"407","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"408","messages":"409","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"410","messages":"411","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"412","messages":"413","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"414","messages":"415","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"416","messages":"417","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"418","messages":"419","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"420","messages":"421","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"422","messages":"423","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"424","messages":"425","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"426","messages":"427","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"428","messages":"429","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"430","messages":"431","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"432","messages":"433","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"434","usedDeprecatedRules":"299"},{"filePath":"435","messages":"436","errorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":"437","usedDeprecatedRules":"299"},{"filePath":"438","messages":"439","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"440","messages":"441","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"442","messages":"443","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"444","messages":"445","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"446","messages":"447","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"448","messages":"449","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\index.js",["450","451","452","453"],"import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport \"./index.css\";\nimport App from \"./App\";\nimport \"bootstrap/dist/css/bootstrap.css\";\nimport {\n BrowserRouter as Router,\n Switch,\n Route,\n Link,\n useHistory,\n} from \"react-router-dom\";\nimport { Provider } from \"react-redux\";\nimport { store } from \"./Store/global-store\";\n\nReactDOM.render(\n <React.StrictMode>\n <Provider store={store}>\n <Router>\n <App />\n </Router>\n </Provider>\n </React.StrictMode>,\n document.getElementById(\"root\")\n);\n",["454","455"],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\App.js",["456","457","458"],"import \"./App.css\";\nimport Login from \"./Login/Login\";\nimport Home from \"./Home/Home\";\nimport SignUp from \"./Login/SignUp\";\nimport UserProfilePage from \"./UserProfile/UserProfilePage\";\nimport { BrowserRouter as Router, Switch, Route, useHistory } from \"react-router-dom\";\nimport React, { useState, useEffect } from \"react\";\nimport MainPostPage from \"./PostsDisplay/MainPostPage\";\nimport { useDispatch } from \"react-redux\";\nimport { userDataSlice } from \"./Store/userDataSlice\";\n\nfunction App() {\n const history = useHistory();\n const dispatch = useDispatch();\n const getUserDataIfLoggedIn = () => {\n const url = `http://localhost:9999/getUserData`;\n fetch(url, { credentials: \"include\" })\n .then((res) => res.json())\n .then((res) => {\n if(res.retrivalSuccess) {\n const payload = {\n userId: res.userData._id,\n userName: res.userData.userName,\n userEmail: res.userData.userEmail,\n gitHubLink: res.userData.gitHubLink,\n linkedInLink: res.userData.linkedInLink,\n postsLiked: res.userData.postsLiked,\n company: res.userData.company,\n designation: res.userData.designation,\n skills: res.userData.skills,\n followers: res.userData.followers,\n following: res.userData.following,\n posts: res.userData.posts,\n };\n dispatch(userDataSlice.actions.addUserData(payload));\n history.push(\"/home/\" + res.userData._id);\n }\n else {\n history.push(\"/\");\n }\n });\n };\n useEffect(() => {\n getUserDataIfLoggedIn();\n }, []);\n return (\n <div className=\"main-div\">\n <Switch>\n <Route path=\"/profile/:userId\">\n <UserProfilePage />\n </Route>\n <Route path=\"/posts/:userId\">\n <MainPostPage />\n </Route>\n <Route path=\"/home/:userId\">\n <Home />\n </Route>\n <Route path=\"/signUp\">\n <SignUp />\n </Route>\n <Route path=\"/\">\n <Login />\n </Route>\n </Switch>\n </div>\n );\n}\n\nexport default App;\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\login.jsx",["459","460","461","462","463","464","465","466"],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\RandomQuotes.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\Quotes.js",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\Home.jsx",["467","468","469","470"],"import React, { Component } from \"react\";\r\nimport \"./Home.css\";\r\nimport HomeBar from \"./HomeBar\";\r\nimport ProfileCard from \"./ProfileCard\";\r\nimport MiddleContainer from \"./MiddleContainer\";\r\nimport NewsFeed from \"./NewsFeed\";\r\nimport News from \"./News\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\n\r\nfunction Home() {\r\n return (\r\n <>\r\n <Container fluid>\r\n <Row className=\"no-gutters\">\r\n <Col md=\"2\" lg=\"2\" sm=\"2\" xs=\"2\">\r\n <HomeBar />\r\n </Col>\r\n <Col md=\"6\" lg=\"6\" sm=\"10\" xs=\"10\">\r\n <MiddleContainer />\r\n </Col>\r\n <Col md=\"4\" lg=\"4\" sm=\"0\" xs=\"0\">\r\n <div className=\"news\">\r\n <News />\r\n </div>\r\n </Col>\r\n </Row>\r\n </Container>\r\n </>\r\n );\r\n}\r\n\r\nexport default Home;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\HomeBar.jsx",["471","472","473","474","475","476","477","478","479"],"import React, { useState, useEffect } from \"react\";\r\nimport \"./Home.css\";\r\nimport ImgSrc from \"../Login/images/img-2.png\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { faHome } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { faUsers } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { faStickyNote } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { faBell } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { faSignOutAlt } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { faUserSecret } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Label, Form, FormGroup, Button, Input } from \"reactstrap\";\r\nimport {\r\n BrowserRouter as Router,\r\n Switch,\r\n Route,\r\n Link,\r\n useHistory,\r\n} from \"react-router-dom\";\r\n\r\nfunction HomeBar() {\r\n const userInfo = useSelector((globalStore) => globalStore.users);\r\n const [smallScr, setSmallScreen] = useState(false);\r\n const history = useHistory();\r\n const handleHomeBarClick = (selectedOption) => {\r\n history.push(`/${selectedOption}/${userInfo.userId}`);\r\n };\r\n const handleLogOut = () => {\r\n fetch(\"http://localhost:9999/logOut\", { credentials: \"include\" })\r\n .then((r) => r.json())\r\n .then((r) => {\r\n console.log(\"logged out..\");\r\n });\r\n history.push(\"/\");\r\n }\r\n const sizeArticulation = () => {\r\n if (window.innerWidth <= 780) {\r\n console.log(window.innerWidth);\r\n setSmallScreen(true);\r\n } else {\r\n setSmallScreen(false);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n sizeArticulation();\r\n }, []);\r\n\r\n window.addEventListener(\"resize\", sizeArticulation);\r\n\r\n return (\r\n <div className=\"home-bar-container\">\r\n <div className=\"icon\">\r\n <h2 className=\"heading\">Connect IN</h2>\r\n <div className=\"icon-item\">\r\n <img className=\"imgCls\" src={ImgSrc} alt=\"\"></img>\r\n </div>\r\n </div>\r\n <div className=\"icon\">\r\n <div className=\"icon-item\" onClick={() => handleHomeBarClick(\"home\")}>\r\n <FontAwesomeIcon className=\"\" color=\"white\" icon={faHome} />\r\n {!smallScr && <p className=\"placeholder\">Home</p>}\r\n </div>\r\n <div className=\"icon-item\" onClick={() => handleHomeBarClick(\"network\")}>\r\n <FontAwesomeIcon className=\"\" color=\"white\" icon={faUsers} />\r\n {!smallScr && <p className=\"placeholder\">My Network</p>}\r\n </div>\r\n <div className=\"icon-item\" onClick={() => handleHomeBarClick(\"posts\")}>\r\n <FontAwesomeIcon className=\"\" color=\"white\" icon={faStickyNote} />\r\n {!smallScr && <p className=\"placeholder\">Posts</p>}\r\n </div>\r\n <div className=\"icon-item\" onClick={() => handleHomeBarClick(\"notifications\")}>\r\n <FontAwesomeIcon className=\"\" color=\"white\" icon={faBell} />\r\n {!smallScr && <p className=\"placeholder\">Notifications</p>}\r\n </div>\r\n <div className=\"icon-item\" onClick={() => handleHomeBarClick(\"profile\")}>\r\n <FontAwesomeIcon className=\"\" color=\"white\" icon={faUserSecret} />\r\n {!smallScr && <p className=\"placeholder\">Profile</p>}\r\n </div>\r\n <div className=\"icon-item\" onClick={() => handleLogOut(\"logout\")}>\r\n <FontAwesomeIcon className=\"\" color=\"white\" icon={faSignOutAlt} />\r\n {!smallScr && <p className=\"placeholder\">Log Out</p>}\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default HomeBar;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\ProfileCard.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\Post.jsx",["480","481"],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\NewsFeed.jsx",["482","483","484","485","486","487"],"import React, { useEffect, useState, useRef } from \"react\";\r\nimport \"./NewsFeed.css\";\r\nimport Post from \"./Post\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { postDataSlice } from \"../Store/postDataSlice\";\r\nimport { toast } from \"react-toastify\";\r\nimport \"react-toastify/dist/ReactToastify.css\";\r\nimport { useHistory } from \"react-router-dom\";\r\n\r\ntoast.configure();\r\n\r\nfunction NewsFeed() {\r\n const [postList, setPostList] = useState([]);\r\n const history = useHistory();\r\n const userData = useSelector((globalStore) => globalStore.users);\r\n let loading = false;\r\n const [offset, setOffset] = useState(0);\r\n const [limit, setLimit] = useState(2);\r\n const [initFlag, setInit] = useState(false);\r\n const [postSet, setPostSet] = useState({});\r\n let posts = useSelector((globalStore) => globalStore.posts);\r\n const dispatch = useDispatch();\r\n\r\n const sortList = (list) => {\r\n const sortedArr = [...list].sort((a, b) => {\r\n const aDateNumeric = new Date(b.postTimeStamp).valueOf();\r\n const bDateNumeric = new Date(a.postTimeStamp).valueOf();\r\n return aDateNumeric - bDateNumeric;\r\n }); // sorts in descending order of Post time\r\n return sortedArr;\r\n };\r\n\r\n const getPostsFromBackend = () => {\r\n const headers = {\r\n \"Content-Type\": \"application/json\",\r\n authToken: localStorage.getItem(\"authToken\"),\r\n };\r\n const url = `http://localhost:9999/getPosts/?limit=${limit}&offset=${offset}&userId=${userData.userId}`;\r\n fetch(url, { headers: headers, credentials: \"include\" })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.authorizationSuccess) {\r\n if (res.responsePosts.length > 0) {\r\n setOffset((offset) => offset + limit);\r\n let tempPostList = [...postList];\r\n res.responsePosts.forEach((curIter) => {\r\n if (\r\n postSet[curIter.post._id] === undefined ||\r\n postSet[curIter.post._id] === null\r\n ) {\r\n tempPostList.push(curIter);\r\n const tempPostSet = {\r\n ...postSet,\r\n [curIter.post._id]: curIter.post._id,\r\n };\r\n //tempPostSet[post._id] = post._id;\r\n setPostSet(tempPostSet);\r\n } else {\r\n }\r\n });\r\n const payload = {\r\n postList: tempPostList,\r\n };\r\n setPostList(tempPostList);\r\n dispatch(postDataSlice.actions.addNewPostList(payload));\r\n setInit(true);\r\n } else {\r\n console.log(\"You are all caught up..\");\r\n toast.info(\"You are Up to Date!\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n }\r\n } else {\r\n toast.error(\"Session Expired, Please Login\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n setTimeout(() => {\r\n history.push(\"/\");\r\n }, 4 * 1000);\r\n }\r\n });\r\n };\r\n\r\n const onScrollEventHandler = (event) => {\r\n const { scrollTop, clientHeight, scrollHeight } = event.currentTarget;\r\n if (scrollHeight - scrollTop === clientHeight) {\r\n loading = true;\r\n //setOffset(offset + limit);\r\n getPostsFromBackend();\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (posts.length > 0) {\r\n //console.log(\"posts[0].\" + JSON.stringify(posts[0]));\r\n const tempPostSet = {\r\n ...postSet,\r\n [posts[0].post._id]: posts[0].post._id,\r\n };\r\n setPostSet(tempPostSet);\r\n }\r\n setPostList(posts);\r\n }, [posts]);\r\n\r\n useEffect(() => {\r\n getPostsFromBackend();\r\n }, [userData, initFlag]);\r\n return (\r\n <div className=\"fixed-container-news-feed\">\r\n <div\r\n className=\"feed-container\"\r\n onScroll={(event) => onScrollEventHandler(event)}\r\n >\r\n {postList.map((curIter, index) => {\r\n return (\r\n <div key={curIter.post._id} className=\"feed\">\r\n <Post\r\n post={curIter.post}\r\n alreadyLiked={curIter.liked}\r\n imagesRelatedToPost={curIter.imagesRelatedToPosts}\r\n />\r\n <br />\r\n </div>\r\n );\r\n })}\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default NewsFeed;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\News.jsx",["488"],"import React, { useEffect, useState } from \"react\";\r\nimport \"./News.css\";\r\nimport NewsItem from \"./NewsItem\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\nimport { API_KEY } from \"./newsAPICreds.js\";\r\nimport { useSelector } from \"react-redux\";\r\nimport \"react-loader-spinner/dist/loader/css/react-spinner-loader.css\";\r\nimport Loader from \"react-loader-spinner\";\r\nconst { Facts } = require(\"./Facts\");\r\n\r\nfunction News() {\r\n const [newsList, setNewsList] = useState([]);\r\n const [curNews, setNews] = useState({});\r\n const [loader, setLoader] = useState(true);\r\n const userData = useSelector((store) => store.users);\r\n //console.log(userData.skills[0]);\r\n const getNews = () => {\r\n let newsApiUrl = `http://newsapi.org/v2/everything?`;\r\n if (userData.length > 0 && userData.skills.length > 0) {\r\n userData.skills.forEach(skill => {\r\n newsApiUrl += `q=${skill}&`\r\n });\r\n }\r\n else {\r\n newsApiUrl += `q=general&`\r\n }\r\n newsApiUrl += `from=2021-01-12&to=2021-01-12&sortBy=popularity&apiKey=${API_KEY}`\r\n fetch(newsApiUrl)\r\n .then((res) => res.json())\r\n .then((res) => {\r\n //setLoader(false);\r\n if (res.status === \"ok\") {\r\n console.log(res.articles);\r\n setNewsList(res.articles);\r\n //setNews(res.articles[1]);\r\n } else {\r\n console.log(\"failed..\");\r\n }\r\n });\r\n };\r\n useEffect(() => {\r\n getNews();\r\n }, []);\r\n useEffect(() => {\r\n let intervalId = null;\r\n if (newsList.length > 0) {\r\n setLoader(false);\r\n setNews(newsList[0]);\r\n intervalId = setInterval(() => {\r\n setNews(newsList[Math.floor(Math.random() * newsList.length)]);\r\n }, 5000);\r\n }\r\n return () => clearInterval(intervalId);\r\n }, [newsList]);\r\n return (\r\n <div className=\"news-container\">\r\n <Container>\r\n <Row>\r\n <Col>\r\n <div className=\"news-incoming\">\r\n <div className=\"heading-div\">\r\n <p className=\"heading-news\">News!</p>\r\n </div>\r\n {loader === true ? (\r\n <div className=\"loader\">\r\n <Loader\r\n type=\"Bars\"\r\n color=\"red\"\r\n height={100}\r\n width={100}\r\n //timeout={3000} //3 secs\r\n />\r\n <div className=\"quote-cls\">{Facts[0]}</div>;\r\n <div className=\"quote-cls\">{Facts[1]}</div>;\r\n </div>\r\n ) : (\r\n <NewsItem curNews={curNews} />\r\n )}\r\n </div>\r\n </Col>\r\n </Row>\r\n </Container>\r\n </div>\r\n );\r\n}\r\n\r\nexport default News;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\Login.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Login\\SignUp.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Store\\userDataSlice.js",["489"],"import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\r\n\r\n// export const createSurvey = createAsyncThunk(\r\n// \"users/createSurvey\",\r\n// async (_, thunkAPI) => {\r\n// const surveyId = String(thunkAPI.getState().surveys.length + 1);\r\n// return surveyId;\r\n// }\r\n// );\r\nexport const userDataSlice = createSlice({\r\n name: \"users\",\r\n initialState: {},\r\n reducers: {\r\n addUserData: (state, action) => {\r\n const newState = {\r\n userId: action.payload.userId,\r\n userName: action.payload.userName,\r\n userEmail: action.payload.userEmail,\r\n gitHubLink: action.payload.gitHubLink,\r\n linkedInLink: action.payload.linkedInLink,\r\n company: action.payload.company,\r\n designation: action.payload.designation,\r\n skills: action.payload.skills,\r\n followers: action.payload.followers,\r\n following: action.payload.following,\r\n posts: action.payload.posts,\r\n postsLiked: action.payload.postsLiked,\r\n }\r\n return newState\r\n },\r\n updateUserData: (state, action) => {\r\n const newState = action.payload;\r\n return newState;\r\n },\r\n },\r\n extraReducers: {},\r\n});\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Store\\global-store.js",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\MiddleContainer.jsx",["490"],"import React, { useState, useEffect } from \"react\";\r\nimport \"./MiddleContainer.css\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\nimport { faSearch } from \"@fortawesome/free-solid-svg-icons\";\r\nimport UploadPostWidget from \"./UploadPostWidget\";\r\nimport NewsFeed from \"./NewsFeed\";\r\nimport SearchbarModal from \"./SearchbarModal\";\r\nimport { useDebouncedCallback } from \"use-debounce\";\r\nimport UserPostDisplayPage from \"../PostsDisplay/UserPostsDisplayPage\"\r\n\r\nfunction MiddleContainer() {\r\n const [smallScr, setSmallScreen] = useState(false);\r\n const [modalShow, setModalShow] = useState(false);\r\n const [filteredList, setFilteredList] = useState([]);\r\n const sizeArticulation = () => {\r\n if (window.innerWidth <= 300) {\r\n console.log(window.innerWidth);\r\n setSmallScreen(true);\r\n } else {\r\n setSmallScreen(false);\r\n }\r\n };\r\n\r\n const handleOnFocus = () => {\r\n setModalShow(true);\r\n };\r\n\r\n useEffect(() => {\r\n sizeArticulation();\r\n }, []);\r\n\r\n window.addEventListener(\"resize\", sizeArticulation);\r\n\r\n const debounced = useDebouncedCallback(\r\n // function to get the records related to query term.\r\n (value) => {\r\n if (value) {\r\n setModalShow(true);\r\n const url = `http://localhost:9999/getSearchResults?searchVal=${value}`;\r\n fetch(url, { credentials: \"include\" })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n console.log(res);\r\n setFilteredList(res);\r\n });\r\n } else {\r\n setModalShow(false);\r\n }\r\n console.log(value);\r\n },\r\n // delay in ms\r\n 1000\r\n );\r\n\r\n const onFocusOut = () => {\r\n setModalShow(false);\r\n };\r\n\r\n return (\r\n <div className=\"middle-container\">\r\n <br />\r\n <div className=\"fixed-container\">\r\n <Container>\r\n <Row>\r\n <Col md=\"10\" lg=\"11\" sm=\"10\" xs=\"10\">\r\n <div className=\"searchBarDiv\">\r\n <input\r\n className=\"searchBar\"\r\n placeholder=\"Whats in your Curious Mind!\"\r\n onFocus={handleOnFocus}\r\n onBlur={onFocusOut}\r\n onChange={(e) => debounced.callback(e.target.value)}\r\n ></input>\r\n </div>\r\n </Col>\r\n <Col md=\"2\" lg=\"1\" sm=\"2\" xs=\"2\">\r\n {!smallScr && (\r\n <FontAwesomeIcon className=\"\" color=\"white\" icon={faSearch} />\r\n )}\r\n </Col>\r\n </Row>\r\n </Container>\r\n <br />\r\n <div\r\n className={\r\n modalShow === true\r\n ? \"search-bar-div-visible\"\r\n : \"search-bar-div-hidden\"\r\n }\r\n >\r\n <SearchbarModal\r\n show={modalShow}\r\n onHide={() => setModalShow(false)}\r\n filteredList={filteredList}\r\n />\r\n </div>\r\n <div\r\n className={\r\n modalShow === true ? \"uploadPostWidget-blur\" : \"\"\r\n }\r\n >\r\n <UploadPostWidget />\r\n </div>\r\n </div>\r\n <br />\r\n <div\r\n className={modalShow === true ? \"news-feed-cls-blur\" : \"news-feed-cls\"}\r\n >\r\n <NewsFeed />\r\n {/* <UserPostDisplayPage/> */}\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default MiddleContainer;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\UploadPostWidget.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\newsAPICreds.js",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\Facts.js",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\NewsItem.jsx",["491"],"import React from \"react\";\r\nimport \"./News.css\";\r\n\r\nfunction NewsItem(props) {\r\n return (\r\n <div>\r\n {\r\n <div className=\"news-item-box\">\r\n <label className=\"news-item\">Title</label>\r\n <p>{props.curNews.title}</p>\r\n <label className=\"news-item\">Headline</label>\r\n <p>{props.curNews.description}</p>\r\n <label className=\"news-item\">Source</label>\r\n <a className=\"url-cls\" href={props.curNews.url} target=\"_blank\">\r\n {props.curNews.url}\r\n </a>\r\n </div>\r\n }\r\n </div>\r\n );\r\n}\r\n\r\nexport default NewsItem;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\PostCreationModal.jsx",["492","493","494"],"import React, { useState, useEffect } from \"react\";\r\nimport { Container, Row, Col, Button, Form } from \"react-bootstrap\";\r\nimport { faImage } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport FileUpload from \"./FileUpload\";\r\nimport { Input } from \"reactstrap\";\r\nimport { useSelector } from \"react-redux\";\r\nimport Modal from \"react-bootstrap/Modal\";\r\nimport \"./PostCreationModal.css\";\r\nimport \"react-loader-spinner/dist/loader/css/react-spinner-loader.css\";\r\nimport Loader from \"react-loader-spinner\";\r\nimport { postDataSlice } from \"../Store/postDataSlice\";\r\nimport { userDataSlice } from \"../Store/userDataSlice\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { toast } from \"react-toastify\";\r\nimport \"react-toastify/dist/ReactToastify.css\";\r\nimport { useHistory } from \"react-router-dom\";\r\n\r\ntoast.configure();\r\n\r\nfunction PostCreationModal(props) {\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n const [postText, setPostText] = useState(\"\");\r\n const [loader, setLoader] = useState(false);\r\n const [tagList, setTagList] = useState([]);\r\n const [tagText, setTag] = useState(\"\");\r\n const [selectedImg, setSelectedImg] = useState(null);\r\n const userData = useSelector((globalStore) => globalStore.users);\r\n //console.log(postList);\r\n\r\n const handlePost = () => {\r\n const postTextBuff = postText.trim();\r\n console.log(tagList);\r\n if (postTextBuff.length > 0) {\r\n const formData = new FormData();\r\n if (selectedImg !== null) {\r\n formData.append(\"file\", selectedImg);\r\n }\r\n formData.append(\"userId\", userData.userId);\r\n formData.append(\"userName\", userData.userName);\r\n formData.append(\"postText\", postText);\r\n formData.append(\"tagList\", tagList);\r\n //console.log(formData.get(\"test\"));\r\n const headers = {\r\n authToken: localStorage.getItem(\"authToken\"),\r\n };\r\n fetch(\"http://localhost:9999/savePost\", {\r\n method: \"POST\",\r\n headers: headers,\r\n body: formData,\r\n credentials: \"include\",\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n setLoader(false);\r\n if (res.authorizationSuccess) {\r\n if (res.successful) {\r\n console.log(\"Posted..\");\r\n const payload = {\r\n post: res,\r\n };\r\n dispatch(postDataSlice.actions.addNewPost(payload));\r\n const updatedUserPayload = { ...userData };\r\n updatedUserPayload.posts = [\r\n ...updatedUserPayload.posts,\r\n res.post._id,\r\n ];\r\n dispatch(\r\n userDataSlice.actions.updateUserData(updatedUserPayload)\r\n );\r\n props.onHide();\r\n } else {\r\n toast.error(\"Server Problem, check your Internet Connection\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n console.log(\"Not Posted..\");\r\n }\r\n } else {\r\n toast.error(\"Session Expired, Please Login\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n setTimeout(() => {\r\n history.push('/');\r\n }, 4 * 1000);\r\n }\r\n });\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (selectedImg != null) {\r\n console.log(\"sucess!\");\r\n }\r\n }, [selectedImg]);\r\n\r\n const handleKeyDown = (evt) => {\r\n if ([\"Enter\", \"Tab\", \",\"].includes(evt.key)) {\r\n evt.preventDefault();\r\n if (evt.target.value.trim() && userData.skills.length < 4) {\r\n setTag(\"\");\r\n const buffTagList = [...tagList, evt.target.value];\r\n setTagList(buffTagList);\r\n } else {\r\n //setSkillOverflowFlag(true);\r\n }\r\n }\r\n };\r\n\r\n const handleDelete = (item) => {\r\n const newtagList = tagList.filter((i) => i !== item);\r\n setTagList(newtagList);\r\n };\r\n\r\n const displayFlexCSS = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n };\r\n\r\n return (\r\n <Modal {...props} aria-labelledby=\"contained-modal-title-vcenter\">\r\n <Modal.Header closeButton>\r\n <Modal.Title id=\"contained-modal-title-vcenter\">\r\n Knowledge is Wisdom\r\n </Modal.Title>\r\n </Modal.Header>\r\n <Modal.Body className=\"show-grid\">\r\n <Container>\r\n <Row>\r\n <Col md=\"2\" lg=\"2\" sm=\"2\" xs=\"2\">\r\n <div className=\"user-profile-picture-modal\">\r\n {/*User Image Display as of now dummy display*/}\r\n </div>\r\n </Col>\r\n <Col md=\"10\" lg=\"10\" sm=\"10\" xs=\"10\">\r\n <p className=\"post-creation-userName\">{userData.userName}</p>\r\n </Col>\r\n </Row>\r\n <Row>\r\n <Col>\r\n {loader === false ? (\r\n <div>\r\n <Input\r\n type=\"textarea\"\r\n placeholder=\"Share your Thoughts\"\r\n rows={5}\r\n value={postText}\r\n onChange={(evt) => setPostText(evt.target.value)}\r\n />\r\n <br />\r\n <div style={displayFlexCSS}>\r\n {tagList.map((item) => (\r\n <div className=\"tag-item\" key={item + Math.random(1)}>\r\n {item}\r\n <button\r\n type=\"button\"\r\n className=\"button\"\r\n onClick={() => handleDelete(item)}\r\n >\r\n ×\r\n </button>\r\n </div>\r\n ))}\r\n </div>\r\n\r\n <Input\r\n type=\"textarea\"\r\n name=\"Domain Tags\"\r\n placeholder=\"Add relevant tags for better user experience\"\r\n onChange={(evt) => {\r\n setTag(evt.target.value);\r\n //reset();\r\n }}\r\n rows={2}\r\n value={tagText}\r\n onKeyDown={handleKeyDown}\r\n />\r\n <div>\r\n <FileUpload setSelectedImg={setSelectedImg} />\r\n </div>\r\n </div>\r\n ) : (\r\n <div className=\"loader-post-creation\">\r\n <Loader\r\n type=\"Grid\"\r\n color=\"grey\"\r\n height={100}\r\n width={100}\r\n //timeout={3000} //3 secs\r\n />\r\n Posting..\r\n </div>\r\n )}\r\n </Col>\r\n </Row>\r\n </Container>\r\n </Modal.Body>\r\n <Modal.Footer>\r\n <Button onClick={handlePost} disabled={!postText.trim().length}>\r\n Post\r\n </Button>\r\n <Button onClick={props.onHide} disabled={loader}>\r\n Close\r\n </Button>\r\n </Modal.Footer>\r\n </Modal>\r\n );\r\n}\r\n\r\nexport default PostCreationModal;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\FileUpload.jsx",["495","496","497"],"import React, { useEffect, useState, useRef } from \"react\";\r\nimport { faImage } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { faVideo } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { Container, Row, Col, Button, Form } from \"react-bootstrap\";\r\n\r\nimport \"./FileUpload.css\";\r\n\r\nfunction FileUpload(props) {\r\n const fileInput = useRef(null);\r\n const [imgTooBig, setBigImgFlag] = useState(false);\r\n\r\n\r\n const handleFileChange = (event) => {\r\n const curImg = event.target.files[0];\r\n console.log(curImg);\r\n if (curImg.size > 1048576) {\r\n //Size should be less than 1 MB.\r\n setBigImgFlag(true);\r\n } else {\r\n setBigImgFlag(false);\r\n props.setSelectedImg(event.target.files[0]);\r\n }\r\n };\r\n\r\n const handleFileSelect = (evt) => {\r\n evt.preventDefault();\r\n setBigImgFlag(false);\r\n fileInput.current.click();\r\n };\r\n return (\r\n <Container>\r\n <Row>\r\n <Col sm=\"4\" md=\"4\" lg=\"4\" xs=\"10\">\r\n <Container>\r\n <Row>\r\n <Col sm=\"4\" md=\"2\" lg=\"2\" xs=\"6\">\r\n <input\r\n type=\"file\"\r\n className=\"img-hidden\"\r\n onChange={(e) => handleFileChange(e)}\r\n ref={fileInput}\r\n name=\"file\"\r\n ></input>\r\n <div className=\"fileUpload-image\" onClick={handleFileSelect}>\r\n <FontAwesomeIcon icon={faImage} />\r\n </div>\r\n </Col>\r\n <Col sm=\"4\" md=\"2\" lg=\"2\" xs=\"6\">\r\n <div className=\"fileUpload-image\">\r\n <FontAwesomeIcon icon={faVideo} />\r\n </div>\r\n </Col>\r\n </Row>\r\n </Container>\r\n </Col>\r\n {imgTooBig && (\r\n <p className=\"file-size-error\">Image Size should be less than 1MB!</p>\r\n )}\r\n </Row>\r\n </Container>\r\n );\r\n}\r\n\r\nexport default FileUpload;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\PostsDisplay\\UserPostsDisplayPage.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\ScreenTemplate.jsx",[],["498","499"],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\PostsDisplay\\UserPostDisplay.jsx",["500","501","502"],"import React, { useEffect, useState } from \"react\";\r\nimport \"./PostsDisplay.css\";\r\nimport { useSelector } from \"react-redux\";\r\nimport UserPost from \"./UserPost\";\r\nimport { toast } from \"react-toastify\";\r\nimport \"react-toastify/dist/ReactToastify.css\";\r\nimport { useHistory } from \"react-router-dom\";\r\n\r\ntoast.configure();\r\n\r\nfunction UserPostDisplay(props) {\r\n const history = useHistory();\r\n const userData = useSelector((globalStore) => globalStore.users);\r\n const [offset, setOffset] = useState(0);\r\n const [limit, setLimit] = useState(2);\r\n const [loading, setLoading] = useState(false);\r\n const [displayPosts, setDisplayPosts] = useState([]);\r\n const [initFlag, setInit] = useState(true);\r\n\r\n const getPostsFromBackend = () => {\r\n let url = `http://localhost:9999/getUsersPost/?limit=${limit}&offset=${offset}&`;\r\n //console.log(userData);\r\n userData.posts.forEach((postId) => {\r\n url += `postIds=${postId}&`;\r\n });\r\n url = url.slice(0, url.length - 1);\r\n console.log(url);\r\n const headers = {\r\n \"Content-Type\": \"application/json\",\r\n authToken: localStorage.getItem(\"authToken\"),\r\n };\r\n fetch(url, { headers: headers, credentials: \"include\" })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.authorizationSuccess) {\r\n if (res.responsePosts.length > 0) {\r\n setOffset(offset + limit);\r\n let newArr = [...displayPosts];\r\n res.responsePosts.forEach((curRes) => newArr.push(curRes));\r\n setDisplayPosts(newArr);\r\n setInit(false);\r\n } else {\r\n toast.info(\"Thats it!\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n }\r\n } else {\r\n toast.error(res.errMsg, {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n setTimeout(() => {\r\n history.push(\"/\");\r\n }, 4 * 1000);\r\n }\r\n });\r\n };\r\n useEffect(() => {\r\n getPostsFromBackend();\r\n //console.log(\"user post changed..\")\r\n }, [initFlag]);\r\n\r\n const onScrollEventHandler = (event) => {\r\n const { scrollTop, clientHeight, scrollHeight } = event.currentTarget;\r\n //console.log(`${scrollTop} ${clientHeight} ${scrollHeight} `);\r\n if (scrollHeight - scrollTop === clientHeight) {\r\n setLoading(true);\r\n //setOffset(offset + limit);\r\n getPostsFromBackend();\r\n console.log(\"bottom\");\r\n }\r\n };\r\n\r\n return (\r\n <div className=\"fixed-container-news-feed\">\r\n <div\r\n className=\"feed-container\"\r\n onScroll={(event) => onScrollEventHandler(event)}\r\n >\r\n {displayPosts.map((curIter, index) => {\r\n return (\r\n <div key={index} className=\"feed\">\r\n <UserPost\r\n post={curIter.post}\r\n imagesRelatedToPost={curIter.imagesRelatedToPosts}\r\n />\r\n <br />\r\n </div>\r\n );\r\n })}\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default UserPostDisplay;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Store\\postDataSlice.js",["503"],"import { createSlice, createAsyncThunk } from \"@reduxjs/toolkit\";\r\n\r\nexport const postDataSlice = createSlice({\r\n name: \"posts\",\r\n initialState: [],\r\n reducers: {\r\n addNewPostList: (state, action) => {\r\n const { postList } = action.payload;\r\n let tempPostList = { ...state };\r\n tempPostList = postList;\r\n return tempPostList;\r\n },\r\n addNewPost: (state, action) => {\r\n const { post } = action.payload;\r\n return [post, ...state];\r\n },\r\n },\r\n extraReducers: {},\r\n});\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\SearchbarModal.jsx",["504"],"import React, { useState } from \"react\";\r\nimport { Button } from \"reactstrap\";\r\nimport \"./SearchBarModal.css\";\r\n\r\nfunction SearchbarModal(props) {\r\n return (\r\n <div className=\"search-bar-modal\">\r\n {props.filteredList.map((record, index) => {\r\n return (\r\n <div key={index} className=\"search-bar-result-div\">\r\n <p >{record.userName}</p>\r\n </div>\r\n );\r\n })}\r\n <Button\r\n color=\"link\"\r\n className=\"close-btn-searchBar\"\r\n onClick={props.onHide}\r\n >\r\n Close\r\n </Button>\r\n </div>\r\n );\r\n}\r\n\r\nexport default SearchbarModal;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\PostsDisplay\\UserPost.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\PostsDisplay\\MainPostPage.jsx",["505"],"import React, { Component } from \"react\";\r\nimport \"../Home/Home.css\";\r\nimport HomeBar from \"../Home/HomeBar\";\r\nimport UserPostsDisplayPage from \"./UserPostsDisplayPage\";\r\nimport News from \"../Home/News\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\n\r\nfunction MainPostPage() {\r\n return (\r\n <>\r\n <Container fluid>\r\n <Row className=\"no-gutters\">\r\n <Col md=\"2\" lg=\"2\" sm=\"2\" xs=\"2\">\r\n <HomeBar />\r\n </Col>\r\n <Col md=\"6\" lg=\"6\" sm=\"10\" xs=\"10\">\r\n <UserPostsDisplayPage />\r\n </Col>\r\n <Col md=\"4\" lg=\"4\" sm=\"0\" xs=\"0\">\r\n <div className=\"news\">\r\n <News />\r\n </div>\r\n </Col>\r\n </Row>\r\n </Container>\r\n </>\r\n );\r\n}\r\n\r\nexport default MainPostPage;\r\n","D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\UserProfile\\UserProfilePage.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\UserProfile\\ProfileContainer.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\UserProfile\\ProfileInformation.jsx",[],"D:\\Newton School Projects\\ConnectIN\\connecting-react\\src\\Home\\CommentModal.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\index.js",["506","507","508","509"],["510","511"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\App.js",["512","513","514","515"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Store\\global-store.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Store\\userDataSlice.js",["516"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Store\\postDataSlice.js",["517"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\Login.jsx",["518"],"import React, { useState } from \"react\";\r\nimport \"./login.css\";\r\nimport imgSrc from \"./images/img-2.png\";\r\nimport RandomQuotes from \"./RandomQuotes\";\r\nimport videoSrc from \"./videos/video-2-main.mp4\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { userDataSlice } from \"../Store/userDataSlice\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { SERVER_URL } from \"../GlobalCommonData\";\r\nimport { Container, Row, Col, Button } from \"react-bootstrap\";\r\n\r\nimport \"react-loader-spinner/dist/loader/css/react-spinner-loader.css\";\r\nimport Loader from \"react-loader-spinner\";\r\n\r\nfunction Login() {\r\n const dispatch = useDispatch();\r\n const [userName, setUserName] = useState(\"\");\r\n const [userPassword, setPassword] = useState(\"\");\r\n const [spinnerFlag, setSpinnerFlag] = useState(false);\r\n let [errorMsg, setErrorMsg] = useState(\"\");\r\n const history = useHistory();\r\n const handleSignUp = () => {\r\n console.log(\"here\");\r\n history.push(\"/signUp\");\r\n };\r\n const handleLogin = () => {\r\n setSpinnerFlag(true);\r\n fetch(`${SERVER_URL}login`, {\r\n method: \"POST\",\r\n body: JSON.stringify({ userName: userName, password: userPassword }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n credentials: \"include\",\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.loginSuccess) {\r\n setSpinnerFlag(false);\r\n localStorage.setItem(\"authToken\", res.authToken);\r\n console.log(\"auth token \" + res.authToken);\r\n const payload = {\r\n userId: res.newUser._id,\r\n userName: res.newUser.userName,\r\n userEmail: res.newUser.userEmail,\r\n gitHubLink: res.newUser.gitHubLink,\r\n linkedInLink: res.newUser.linkedInLink,\r\n postsLiked: res.newUser.postsLiked,\r\n company: res.newUser.company,\r\n designation: res.newUser.designation,\r\n skills: res.newUser.skills,\r\n followers: res.newUser.followers,\r\n following: res.newUser.following,\r\n posts: res.newUser.posts,\r\n };\r\n dispatch(userDataSlice.actions.addUserData(payload));\r\n history.push(\"/home/\" + res.newUser._id);\r\n setErrorMsg(\"\");\r\n } else {\r\n //history.push(\"/home/1\")\r\n setSpinnerFlag(false);\r\n setErrorMsg(res.errorMsg);\r\n console.log(res.errorMsg);\r\n }\r\n });\r\n };\r\n const handleForgotPW = async () => {\r\n history.push(\"/forgotPassword\")\r\n }\r\n return (\r\n <div className=\"base-container\">\r\n <video src={videoSrc} autoPlay loop muted />\r\n <Container fluid>\r\n <Row>\r\n <Col>\r\n <br />\r\n <div className=\"loginBox\">\r\n <p className=\"heading-tag\">ConnectIN</p>\r\n <div className=\"content\">\r\n <div className=\"form\">\r\n <div className=\"form-group\">\r\n <label className=\"labelClass\">Username</label>\r\n <input\r\n type=\"text\"\r\n placeholder=\"Username\"\r\n onChange={(evt) => {\r\n setErrorMsg(\"\");\r\n setUserName(evt.target.value);\r\n }}\r\n ></input>\r\n </div>\r\n </div>\r\n <div className=\"form\">\r\n <div className=\"form-group\">\r\n <label className=\"labelClass\">Password</label>\r\n <input\r\n type=\"password\"\r\n placeholder=\"Password\"\r\n onChange={(evt) => {\r\n setErrorMsg(\"\");\r\n setPassword(evt.target.value);\r\n }}\r\n disabled={spinnerFlag}\r\n ></input>\r\n </div>\r\n <p className=\"errorMsg\">{errorMsg}</p>\r\n </div>\r\n </div>\r\n <Container fluid>\r\n <Row>\r\n <Col>\r\n <Button\r\n type=\"button\"\r\n className=\"btn-left\"\r\n variant=\"light\"\r\n onClick={handleLogin}\r\n disabled={spinnerFlag}\r\n >\r\n Login\r\n </Button>\r\n </Col>\r\n <Col>\r\n <Button\r\n type=\"button\"\r\n variant=\"light\"\r\n onClick={handleSignUp}\r\n disabled={spinnerFlag}\r\n >\r\n Sign Up\r\n </Button>\r\n </Col>\r\n </Row>\r\n </Container>\r\n {spinnerFlag && (\r\n <div>\r\n <br />\r\n <div style={{ textAlign: \"center\" }}>\r\n <Loader type=\"Oval\" color=\"grey\" height={50} width={50} />\r\n </div>\r\n <p style={{ color: \"white\", textAlign: \"center\" }}>\r\n Logging IN\r\n </p>\r\n </div>\r\n )}\r\n <div style={{ textAlign: \"center\" }}>\r\n <br />\r\n <Button\r\n type=\"button\"\r\n variant=\"light\"\r\n onClick={handleForgotPW}\r\n disabled={spinnerFlag}\r\n >\r\n Forgot Password?\r\n </Button>\r\n </div>\r\n <br />\r\n </div>\r\n </Col>\r\n <Col className=\"quote-class\">\r\n <RandomQuotes />\r\n </Col>\r\n </Row>\r\n </Container>\r\n </div>\r\n );\r\n}\r\n\r\nexport default Login;\r\n","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\SignUp.jsx",["519"],"import React, { useState } from \"react\";\r\nimport \"./login.css\";\r\nimport RandomQuotes from \"./RandomQuotes\";\r\nimport videoSrc from \"./videos/video-2-main.mp4\";\r\nimport {\r\n Button,\r\n Form,\r\n FormGroup,\r\n Label,\r\n Input,\r\n FormFeedback,\r\n} from \"reactstrap\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport Spinner from \"react-bootstrap/Spinner\";\r\nimport imgSrc from \"./images/img-2.png\";\r\nimport { userDataSlice } from \"../Store/userDataSlice\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { SERVER_URL } from \"../GlobalCommonData\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\nimport \"react-loader-spinner/dist/loader/css/react-spinner-loader.css\";\r\nimport Loader from \"react-loader-spinner\";\r\n\r\nfunction SignUp() {\r\n const history = useHistory();\r\n const dispatch = useDispatch();\r\n let [availableSpinnerFlag, setFlag] = useState(false);\r\n let [connectionMadeFlag, setConnectionMadeFlag] = useState(false);\r\n let [userNameAvailableFlag, setNameAvailableFlag] = useState(false);\r\n let [skillOverflowFlag, setSkillOverflowFlag] = useState(false);\r\n let [skillUnderflowFlag, setSkillUnderflowFlag] = useState(false);\r\n let [alreadyRegistered, setAlreadyRegistered] = useState(false);\r\n const [spinnerFlag, setSpinnerFlag] = useState(false);\r\n const [errMsg, setErrorMsg] = useState(\"\");\r\n\r\n let [curSkill, setSkill] = useState(\"\");\r\n let [userData, setUserData] = useState({\r\n email: \"\",\r\n password: \"\",\r\n userName: \"\",\r\n github: \"\",\r\n linkedIn: \"\",\r\n currentCompany: \"\",\r\n designation: \"\",\r\n skills: [],\r\n });\r\n const reset = () => {\r\n setFlag(false);\r\n setAlreadyRegistered(false);\r\n setSkillUnderflowFlag(false);\r\n setSkillOverflowFlag(false);\r\n setNameAvailableFlag(false);\r\n setConnectionMadeFlag(false);\r\n };\r\n const marginAutoCSS = {\r\n margin: \"auto\",\r\n };\r\n const displayFlexCSS = {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n };\r\n const signUpHandler = (evt) => {\r\n evt.preventDefault();\r\n if (userData.skills.length > 0) {\r\n setSpinnerFlag(true);\r\n fetch(`${SERVER_URL}signUp`, {\r\n method: \"POST\",\r\n body: JSON.stringify({\r\n userName: userData.userName,\r\n userEmail: userData.email,\r\n gitHubLink: userData.github,\r\n linkedInLink: userData.linkedIn,\r\n company: userData.currentCompany,\r\n designation: userData.designation,\r\n skills: userData.skills,\r\n password: userData.password,\r\n }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n credentials: \"include\",\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (!res.alreadyRegistered) {\r\n console.log(\"Signed Up..\", res.newUser.postsLiked);\r\n const payload = {\r\n userId: res.newUser._id,\r\n userName: res.newUser.userName,\r\n userEmail: res.newUser.userEmail,\r\n postsLiked: res.newUser.postsLiked,\r\n gitHubLink: res.newUser.gitHubLink,\r\n linkedInLink: res.newUser.linkedInLink,\r\n company: res.newUser.company,\r\n designation: res.newUser.designation,\r\n skills: res.newUser.skills,\r\n followers: res.newUser.followers,\r\n following: res.newUser.following,\r\n posts: res.newUser.posts,\r\n };\r\n dispatch(userDataSlice.actions.addUserData(payload));\r\n history.push(\"/\");\r\n setSpinnerFlag(false);\r\n // setUserEmail(userEmail);\r\n } else {\r\n //history.push(\"/\");\r\n setAlreadyRegistered(true);\r\n setSpinnerFlag(false);\r\n setErrorMsg(res.errorMsg)\r\n console.log(\"No able to sign in\", res.errorMsg);\r\n }\r\n });\r\n } else {\r\n setSkillUnderflowFlag(true);\r\n }\r\n };\r\n const handleKeyDown = (evt) => {\r\n if ([\"Enter\", \"Tab\", \",\"].includes(evt.key)) {\r\n evt.preventDefault();\r\n if (evt.target.value.trim() && userData.skills.length < 4) {\r\n setSkill(\"\");\r\n const curUser = { ...userData };\r\n curUser.skills = [...curUser.skills, evt.target.value];\r\n setUserData(curUser);\r\n } else {\r\n setSkillOverflowFlag(true);\r\n }\r\n }\r\n };\r\n const handleDelete = (item) => {\r\n const newSkillArr = userData.skills.filter((i) => i !== item);\r\n const curUser = { ...userData };\r\n curUser.skills = newSkillArr;\r\n setUserData(curUser);\r\n };\r\n const checkIfUserNamExists = () => {\r\n if (userData.userName.trim()) {\r\n setFlag(true);\r\n fetch(`${SERVER_URL}checkUserName`, {\r\n method: \"POST\",\r\n body: JSON.stringify({ userName: userData.userName }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n credentials: \"include\",\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n setFlag(false);\r\n setConnectionMadeFlag(true);\r\n if (res.isAvailable) {\r\n setNameAvailableFlag(true);\r\n console.log(\"Available\");\r\n // setUserEmail(userEmail);\r\n } else {\r\n //history.push(\"/home/1\")\r\n setNameAvailableFlag(false);\r\n console.log(\"Not Available\");\r\n }\r\n });\r\n }\r\n };\r\n return (\r\n <div className=\"base-container\">\r\n <video src={videoSrc} autoPlay loop />\r\n <Container fluid>\r\n <Row>\r\n <Col>\r\n <br />\r\n <div className=\"loginBox\">\r\n <p className=\"heading-tag\">ConnectIN</p>\r\n <div className=\"form-group\">\r\n <Form onSubmit={signUpHandler}>\r\n <FormGroup>\r\n <Label for=\"email\" className=\"labelClass\">\r\n Email Address\r\n </Label>\r\n <Input\r\n type=\"email\"\r\n name=\"email\"\r\n placeholder=\"Email\"\r\n onChange={(evt) => {\r\n const curUser = { ...userData };\r\n curUser.email = evt.target.value;\r\n setUserData(curUser);\r\n reset();\r\n }}\r\n required\r\n invalid={alreadyRegistered}\r\n />\r\n <FormFeedback>\r\n {errMsg}\r\n </FormFeedback>\r\n </FormGroup>\r\n <FormGroup>\r\n <Label for=\"password\" className=\"labelClass\">\r\n Password\r\n </Label>\r\n <Input\r\n type=\"password\"\r\n name=\"password\"\r\n placeholder=\"Password\"\r\n onChange={(evt) => {\r\n const curUser = { ...userData };\r\n curUser.password = evt.target.value;\r\n setUserData(curUser);\r\n reset();\r\n }}\r\n required\r\n />\r\n </FormGroup>\r\n <FormGroup>\r\n <Label for=\"username\" className=\"labelClass\">\r\n User Name\r\n </Label>\r\n <Input\r\n type=\"text\"\r\n name=\"username\"\r\n placeholder=\"User Name\"\r\n onChange={(evt) => {\r\n const curUser = { ...userData };\r\n curUser.userName = evt.target.value;\r\n setUserData(curUser);\r\n reset();\r\n }}\r\n required\r\n valid={userNameAvailableFlag && connectionMadeFlag}\r\n invalid={!userNameAvailableFlag && connectionMadeFlag}\r\n />\r\n <FormFeedback valid>\r\n Sweet! that username is available\r\n </FormFeedback>\r\n <FormFeedback>\r\n Oh noes! that name is already taken\r\n </FormFeedback>\r\n <div style={displayFlexCSS}>\r\n <Button\r\n className=\"checkBtn\"\r\n color=\"link\"\r\n size=\"sm\"\r\n onClick={checkIfUserNamExists}\r\n >\r\n Check availablity\r\n </Button>\r\n <div style={marginAutoCSS}>\r\n {availableSpinnerFlag && (\r\n <Spinner\r\n animation=\"border\"\r\n role=\"status\"\r\n size=\"sm\"\r\n variant=\"primary\"\r\n >\r\n <span className=\"sr-only\">Loading...</span>\r\n </Spinner>\r\n )}\r\n </div>\r\n </div>\r\n </FormGroup>\r\n <FormGroup>\r\n <Label for=\"linkedIn\" className=\"labelClass\">\r\n Linked In Profile\r\n </Label>\r\n <Input\r\n type=\"text\"\r\n name=\"linkedIn\"\r\n placeholder=\"Linked In Profile\"\r\n onChange={(evt) => {\r\n const curUser = { ...userData };\r\n curUser.linkedIn = evt.target.value;\r\n setUserData(curUser);\r\n reset();\r\n }}\r\n />\r\n </FormGroup>\r\n <FormGroup>\r\n <Label for=\"company\" className=\"labelClass\">\r\n Current Company\r\n </Label>\r\n <Input\r\n type=\"text\"\r\n name=\"company\"\r\n placeholder=\"Current Company\"\r\n onChange={(evt) => {\r\n const curUser = { ...userData };\r\n curUser.currentCompany = evt.target.value;\r\n setUserData(curUser);\r\n reset();\r\n }}\r\n required\r\n />\r\n </FormGroup>\r\n <FormGroup>\r\n <Label for=\"Designation\" className=\"labelClass\">\r\n Designation\r\n </Label>\r\n <Input\r\n type=\"text\"\r\n name=\"Designation\"\r\n id=\"designation\"\r\n placeholder=\"Designation at your current company\"\r\n onChange={(evt) => {\r\n const curUser = { ...userData };\r\n curUser.designation = evt.target.value;\r\n setUserData(curUser);\r\n reset();\r\n }}\r\n />\r\n </FormGroup>\r\n <FormGroup>\r\n <Label for=\"skills/password\" className=\"labelClass\">\r\n Skills/Interests\r\n </Label>\r\n <div style={displayFlexCSS}>\r\n {userData.skills.map((item) => (\r\n <div className=\"tag-item\" key={item}>\r\n {item}\r\n <button\r\n type=\"button\"\r\n className=\"button\"\r\n onClick={() => handleDelete(item)}\r\n >\r\n ×\r\n </button>\r\n </div>\r\n ))}\r\n </div>\r\n <Input\r\n type=\"text\"\r\n name=\"skills/password\"\r\n placeholder=\"Things that you are passionate about..\"\r\n onChange={(evt) => {\r\n const curUser = { ...userData };\r\n setUserData(curUser);\r\n setSkill(evt.target.value);\r\n reset();\r\n }}\r\n value={curSkill}\r\n onKeyDown={handleKeyDown}\r\n invalid={skillOverflowFlag || skillUnderflowFlag}\r\n />\r\n {skillUnderflowFlag && (\r\n <FormFeedback>\r\n Dont shy away from sharing some of your skills with us!\r\n </FormFeedback>\r\n )}\r\n {skillOverflowFlag && (\r\n <FormFeedback>\r\n Overwheling Curiosity! Not more than 4 are allowed!\r\n </FormFeedback>\r\n )}\r\n </FormGroup>\r\n <div className=\"form-group\">\r\n <Button color=\"primary\">Sign Up</Button>\r\n {spinnerFlag && (\r\n <div>\r\n <br/>\r\n <div style={{ textAlign: \"center\" }}>\r\n <Loader\r\n type=\"Oval\"\r\n color=\"grey\"\r\n height={50}\r\n width={50}\r\n />\r\n </div>\r\n <p style={{ color: \"white\", textAlign: \"center\" }}>\r\n Signing UP\r\n </p>\r\n </div>\r\n )}\r\n </div>\r\n </Form>\r\n </div>\r\n </div>\r\n </Col>\r\n <Col className=\"quote-class\">\r\n <RandomQuotes />\r\n </Col>\r\n </Row>\r\n </Container>\r\n </div>\r\n );\r\n}\r\n\r\nexport default SignUp;\r\n","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\UserProfile\\UserProfilePage.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\Home.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\PostsDisplay\\MainPostPage.jsx",["520"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\RandomQuotes.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\HomeBar.jsx",["521","522","523","524","525","526"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\News.jsx",["527"],"import React, { useEffect, useState } from \"react\";\r\nimport \"./News.css\";\r\nimport NewsItem from \"./NewsItem\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\nimport { API_KEY } from \"./newsAPICreds.js\";\r\nimport { useSelector } from \"react-redux\";\r\nimport \"react-loader-spinner/dist/loader/css/react-spinner-loader.css\";\r\nimport Loader from \"react-loader-spinner\";\r\nconst { Facts } = require(\"./Facts\");\r\n\r\nfunction News() {\r\n const [newsList, setNewsList] = useState([]);\r\n const [curNews, setNews] = useState({});\r\n const [loader, setLoader] = useState(true);\r\n const userData = useSelector((store) => store.users);\r\n //console.log(userData.skills[0]);\r\n const getNews = () => {\r\n let newsApiUrl = `https://newsapi.org/v2/everything?`;\r\n if (userData.length > 0 && userData.skills.length > 0) {\r\n userData.skills.forEach(skill => {\r\n newsApiUrl += `q=${skill}&`\r\n });\r\n }\r\n else {\r\n newsApiUrl += `q=general&`\r\n }\r\n newsApiUrl += `from=2021-01-12&to=2021-01-12&sortBy=popularity&apiKey=${API_KEY}`\r\n fetch(newsApiUrl)\r\n .then((res) => res.json())\r\n .then((res) => {\r\n //setLoader(false);\r\n if (res.status === \"ok\") {\r\n console.log(res.articles);\r\n setNewsList(res.articles);\r\n //setNews(res.articles[1]);\r\n } else {\r\n console.log(\"failed..\");\r\n }\r\n });\r\n };\r\n useEffect(() => {\r\n getNews();\r\n }, []);\r\n useEffect(() => {\r\n let intervalId = null;\r\n if (newsList.length > 0) {\r\n setLoader(false);\r\n setNews(newsList[0]);\r\n intervalId = setInterval(() => {\r\n setNews(newsList[Math.floor(Math.random() * newsList.length)]);\r\n }, 5000);\r\n }\r\n return () => clearInterval(intervalId);\r\n }, [newsList]);\r\n return (\r\n <div className=\"news-container\">\r\n <Container>\r\n <Row>\r\n <Col>\r\n <div className=\"news-incoming\">\r\n <div className=\"heading-div\">\r\n <p className=\"heading-news\">News!</p>\r\n </div>\r\n {loader === true ? (\r\n <div className=\"loader\">\r\n <Loader\r\n type=\"Bars\"\r\n color=\"red\"\r\n height={100}\r\n width={100}\r\n //timeout={3000} //3 secs\r\n />\r\n <div className=\"quote-cls\">{Facts[0]}</div>;\r\n <div className=\"quote-cls\">{Facts[1]}</div>;\r\n </div>\r\n ) : (\r\n <NewsItem curNews={curNews} />\r\n )}\r\n </div>\r\n </Col>\r\n </Row>\r\n </Container>\r\n </div>\r\n );\r\n}\r\n\r\nexport default News;\r\n","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\MiddleContainer.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\ProfileCard.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\PostsDisplay\\UserPostsDisplayPage.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\UserProfile\\ProfileContainer.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\NewsFeed.jsx",["528","529","530","531","532","533"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\newsAPICreds.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\Quotes.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\Facts.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\NewsItem.jsx",["534"],"import React from \"react\";\r\nimport \"./News.css\";\r\n\r\nfunction NewsItem(props) {\r\n return (\r\n <div>\r\n {\r\n <div className=\"news-item-box\">\r\n <label className=\"news-item\">Title</label>\r\n <p>{props.curNews.title}</p>\r\n <label className=\"news-item\">Headline</label>\r\n <p>{props.curNews.description}</p>\r\n <label className=\"news-item\">Source</label>\r\n <a className=\"url-cls\" href={props.curNews.url} target=\"_blank\">\r\n {props.curNews.url}\r\n </a>\r\n <br />\r\n </div>\r\n }\r\n </div>\r\n );\r\n}\r\n\r\nexport default NewsItem;\r\n","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\UploadPostWidget.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\SearchbarModal.jsx",["535"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\UserProfile\\ProfileInformation.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\Post.jsx",["536","537"],"import React, { useState, useEffect } from \"react\";\r\nimport \"./post.css\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { faThumbsUp } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { faComments } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { faSave } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\nimport imgSrc from \"../Login/images/img-1.jpg\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Button } from \"reactstrap\";\r\nimport Textarea from \"react-expanding-textarea\";\r\nimport Loader from \"react-loader-spinner\";\r\nimport { toast } from \"react-toastify\";\r\nimport \"react-toastify/dist/ReactToastify.css\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport CommentModal from \"./CommentModal\";\r\nimport { SERVER_URL } from \"../GlobalCommonData\";\r\ntoast.configure();\r\n\r\nfunction Post(props) {\r\n const history = useHistory();\r\n const [commentList, setCommentList] = useState(props.post.comments);\r\n const userData = useSelector((globalStore) => globalStore.users);\r\n const [alreadyLiked, setAlreadyLiked] = useState(props.alreadyLiked);\r\n const [commentTileFlag, setCommentTileFlag] = useState(true);\r\n const [commentModalVisible, setCommentModalVisible] = useState(false);\r\n const [postButtonFlag, setpostButtonFlag] = useState(false);\r\n const [commentText, setCommentText] = useState(\"\");\r\n const [imgSource, setSource] = useState(null);\r\n const [loader, setLoader] = useState(false);\r\n\r\n const arrayBufferToBase64 = (buffer) => {\r\n let binary = \"\";\r\n let bytes = [].slice.call(new Uint8Array(buffer));\r\n bytes.forEach((b) => (binary += String.fromCharCode(b)));\r\n return window.btoa(binary);\r\n };\r\n\r\n useEffect(() => {\r\n const curImage = props.imagesRelatedToPost[0];\r\n if (props.imagesRelatedToPost.length > 0) {\r\n const base64Flag = \"data:image/jpeg;base64,\";\r\n const imageStr = arrayBufferToBase64(curImage.img.data.data);\r\n setSource(base64Flag + imageStr);\r\n }\r\n }, [props.imagesRelatedToPost]);\r\n\r\n const handleLikeClick = () => {\r\n setAlreadyLiked(!alreadyLiked);\r\n fetch(`${SERVER_URL}home/markLikedOrUnliked`, {\r\n method: \"POST\",\r\n body: JSON.stringify({\r\n userId: userData.userId,\r\n postId: props.post._id,\r\n }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n authToken: localStorage.getItem(\"authToken\"),\r\n },\r\n credentials: \"include\",\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.authorizationSuccess) {\r\n if (res.success) {\r\n } else {\r\n toast.error(\"Server Error, check your Internet connection!\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n setAlreadyLiked(false);\r\n }\r\n } else {\r\n toast.error(\"Session Expired, Please Login\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n setTimeout(() => {\r\n history.push(\"/\");\r\n }, 4 * 1000);\r\n }\r\n });\r\n };\r\n\r\n const handleCommentClick = () => {\r\n setCommentModalVisible(!commentModalVisible);\r\n };\r\n\r\n const handlePostComment = () => {\r\n setLoader(true);\r\n fetch(`${SERVER_URL}home/postComment`, {\r\n method: \"POST\",\r\n body: JSON.stringify({\r\n userId: userData.userId,\r\n postId: props.post._id,\r\n commentText: commentText,\r\n userName: userData.userName,\r\n }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n authToken: localStorage.getItem(\"authToken\"),\r\n },\r\n credentials: \"include\",\r\n })\r\n .then((res) => res.json())\r\n .then((res) => {\r\n if (res.authorizationSuccess) {\r\n if (res.success) {\r\n setLoader(false);\r\n setCommentText(\"\");\r\n setpostButtonFlag(false);\r\n const newComment = {\r\n postedBy: userData.userName,\r\n commentText: commentText,\r\n };\r\n setCommentList([newComment, ...commentList]);\r\n } else {\r\n toast.error(\r\n \"Server Error! Couldnt post the comment, check your Internet connection!\",\r\n {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n }\r\n );\r\n }\r\n } else {\r\n toast.error(\"Session Expired, Please Login\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n setTimeout(() => {\r\n history.push(\"/\");\r\n }, 4 * 1000);\r\n }\r\n });\r\n };\r\n return (\r\n <div className=\"post-container\">\r\n <Container>\r\n <Row>\r\n <Col md=\"2\" lg=\"2\" sm=\"2\" xs=\"2\">\r\n <div className=\"user-profile-picture\">\r\n {/*User Image Display as of now dummy display*/}\r\n <img\r\n className=\"comment-user-img\"\r\n src=\"https://as2.ftcdn.net/jpg/01/26/63/11/500_F_126631173_W9Nq8ZA5s0R0M3ZIBx3BMytVIFseGa9c.jpg\"\r\n alt=\"\"\r\n ></img>\r\n </div>\r\n </Col>\r\n <Col md=\"7\" lg=\"8\" sm=\"6\" xs=\"6\">\r\n <div className=\"follow-user-div\">\r\n <p className=\"post-user\">{props.post.userName}</p>\r\n </div>\r\n </Col>\r\n <Col md=\"3\" lg=\"2\" sm=\"4\" xs=\"4\">\r\n <Button color=\"link\" className=\"btn-follow\">\r\n +Trail\r\n </Button>\r\n </Col>\r\n </Row>\r\n </Container>\r\n\r\n <p className=\"text-post\">{props.post.postText}</p>\r\n <div className=\"post-img-div\">\r\n {imgSource !== null && (\r\n <img className=\"post-img\" src={imgSource} alt=\"\"></img>\r\n )}\r\n </div>\r\n <div className=\"post-icon-group\">\r\n <Container>\r\n <Row>\r\n <Col md=\"4\" lg=\"4\" sm=\"4\" xs=\"4\">\r\n <div\r\n className={\r\n alreadyLiked === true\r\n ? \"icon-grp-post-liked\"\r\n : \"icon-grp-post\"\r\n }\r\n onClick={handleLikeClick}\r\n >\r\n <FontAwesomeIcon className=\"\" icon={faThumbsUp} />\r\n {alreadyLiked === true\r\n ? `${\r\n props.post.likeCount > 1\r\n ? ` You and ${props.post.likeCount - 1} others`\r\n : \"\"\r\n }`\r\n : ` ${\r\n props.post.likeCount > 0 ? props.post.likeCount : \" \"\r\n }`}\r\n </div>\r\n </Col>\r\n <Col md=\"4\" lg=\"4\" sm=\"4\" xs=\"4\">\r\n <div className=\"icon-grp-post\" onClick={handleCommentClick}>\r\n <FontAwesomeIcon className=\"\" icon={faComments} />\r\n </div>\r\n </Col>\r\n <Col md=\"4\" lg=\"4\" sm=\"4\" xs=\"4\">\r\n <div className=\"icon-grp-post\">\r\n <FontAwesomeIcon className=\"\" icon={faSave} />\r\n </div>\r\n </Col>\r\n </Row>\r\n {commentTileFlag && (\r\n <>\r\n <Row>\r\n <Col md=\"2\" lg=\"2\" sm=\"3\" xs=\"3\">\r\n <div className=\"user-profile-picture-comment\">\r\n <img\r\n className=\"comment-user-img\"\r\n src=\"https://as2.ftcdn.net/jpg/01/26/63/11/500_F_126631173_W9Nq8ZA5s0R0M3ZIBx3BMytVIFseGa9c.jpg\"\r\n alt=\"\"\r\n ></img>\r\n </div>\r\n </Col>\r\n <Col>\r\n <br />\r\n <div>\r\n <Textarea\r\n className=\"comment-box\"\r\n maxLength=\"3000\"\r\n name=\"Comment\"\r\n rows={2}\r\n placeholder=\"What do you feel about this..!\"\r\n value={commentText}\r\n onChange={(evt) => {\r\n const commentText = evt.target.value;\r\n if (commentText.trim().length > 0) {\r\n //console.log(\"here..\");\r\n setpostButtonFlag(true);\r\n } else {\r\n setpostButtonFlag(false);\r\n }\r\n setCommentText(evt.target.value);\r\n }}\r\n />\r\n <br />\r\n </div>\r\n </Col>\r\n </Row>\r\n {postButtonFlag && (\r\n <Row>\r\n <Col md=\"2\" lg=\"2\" sm=\"3\" xs=\"3\"></Col>\r\n <Col md=\"2\" lg=\"2\" sm=\"3\" xs=\"3\">\r\n <div className=\"post-btn-grp\">\r\n <Button\r\n className=\"post-btn\"\r\n color=\"primary\"\r\n onClick={handlePostComment}\r\n >\r\n Post\r\n </Button>\r\n {loader && (\r\n <Loader\r\n type=\"ThreeDots\"\r\n color=\"black\"\r\n height={40}\r\n width={40}\r\n />\r\n )}\r\n </div>\r\n </Col>\r\n </Row>\r\n )}\r\n </>\r\n )}\r\n {commentModalVisible && (\r\n <Row>\r\n <Col>\r\n <CommentModal commentList={commentList} />\r\n </Col>\r\n </Row>\r\n )}\r\n </Container>\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default Post;\r\n","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\PostsDisplay\\UserPostDisplay.jsx",["538","539","540"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\PostCreationModal.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\CommentModal.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\PostsDisplay\\UserPost.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Home\\FileUpload.jsx",["541","542","543"],"import React, { useEffect, useState, useRef } from \"react\";\r\nimport { faImage } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { faVideo } from \"@fortawesome/free-solid-svg-icons\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { Container, Row, Col, Button, Form } from \"react-bootstrap\";\r\nimport { toast } from \"react-toastify\";\r\nimport \"react-toastify/dist/ReactToastify.css\";\r\nimport \"./FileUpload.css\";\r\n\r\ntoast.configure();\r\n\r\nfunction FileUpload(props) {\r\n const fileInput = useRef(null);\r\n const [imgTooBig, setBigImgFlag] = useState(false);\r\n\r\n\r\n const handleFileChange = (event) => {\r\n const curImg = event.target.files[0];\r\n console.log(curImg);\r\n if (curImg !== undefined && curImg.size > 1048576) {\r\n //Size should be less than 1 MB.\r\n toast.error(\"Image should be less than 1MB\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n setBigImgFlag(true);\r\n }else if(curImg !== undefined && curImg.type !== \"image/png\" && curImg.type !== \"image/jpeg\" && curImg.type !== \"image/jpg\"){\r\n toast.error(\"Only Images allowed!\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n } \r\n else {\r\n setBigImgFlag(false);\r\n props.setSelectedImg(event.target.files[0]);\r\n toast.info(\"Image Uploaded!\", {\r\n position: toast.POSITION.TOP_CENTER,\r\n autoClose: 5 * 1000,\r\n });\r\n }\r\n };\r\n\r\n const handleFileSelect = (evt) => {\r\n evt.preventDefault();\r\n setBigImgFlag(false);\r\n fileInput.current.click();\r\n };\r\n return (\r\n <Container>\r\n <Row>\r\n <Col sm=\"4\" md=\"4\" lg=\"4\" xs=\"10\">\r\n <Container>\r\n <Row>\r\n <Col sm=\"4\" md=\"2\" lg=\"2\" xs=\"6\">\r\n <input\r\n type=\"file\"\r\n className=\"img-hidden\"\r\n onChange={(e) => handleFileChange(e)}\r\n ref={fileInput}\r\n name=\"file\"\r\n ></input>\r\n <div className=\"fileUpload-image\" onClick={handleFileSelect}>\r\n <FontAwesomeIcon icon={faImage} />\r\n </div>\r\n </Col>\r\n <Col sm=\"4\" md=\"2\" lg=\"2\" xs=\"6\">\r\n <div className=\"fileUpload-image\">\r\n <FontAwesomeIcon icon={faVideo} />\r\n </div>\r\n </Col>\r\n </Row>\r\n </Container>\r\n </Col>\r\n {imgTooBig && (\r\n <p className=\"file-size-error\">Image Size should be less than 1MB!</p>\r\n )}\r\n </Row>\r\n </Container>\r\n );\r\n}\r\n\r\nexport default FileUpload;\r\n","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\GlobalCommonData.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\index.js",["544","545","546","547"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\App.js",["548","549","550"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Store\\global-store.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\GlobalCommonData.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Store\\postDataSlice.js",["551"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Store\\userDataSlice.js",["552"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Login\\Login.jsx",["553"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\UserProfile\\UserProfilePage.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\Home.jsx",["554","555","556","557"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Login\\SignUp.jsx",["558"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\PostsDisplay\\MainPostPage.jsx",["559"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Login\\RandomQuotes.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\News.jsx",["560"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\UserProfile\\ProfileContainer.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\ProfileCard.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\NewsFeed.jsx",["561","562","563","564","565","566"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\MiddleContainer.jsx",["567"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\PostsDisplay\\UserPostsDisplayPage.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\HomeBar.jsx",["568","569","570","571","572","573"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\newsAPICreds.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Login\\Quotes.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\Facts.js",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\NewsItem.jsx",["574"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\SearchbarModal.jsx",["575"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\Post.jsx",["576","577"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\PostsDisplay\\UserPostDisplay.jsx",["578","579","580"],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\UserProfile\\ProfileInformation.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\UploadPostWidget.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\CommentModal.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\PostsDisplay\\UserPost.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\PostCreationModal.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-FrontEnd\\src\\Home\\FileUpload.jsx",["581","582","583"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\PasswordResetComponent.jsx",["584"],"import React, { useState, useEffect } from \"react\";\r\nimport { useParams, useHistory } from \"react-router-dom\";\r\nimport RandomQuotes from \"./RandomQuotes\";\r\nimport { Container, Row, Col, Button } from \"react-bootstrap\";\r\nimport \"react-loader-spinner/dist/loader/css/react-spinner-loader.css\";\r\nimport Loader from \"react-loader-spinner\";\r\nimport videoSrc from \"./videos/video-2-main.mp4\";\r\nimport { SERVER_URL } from \"../GlobalCommonData\";\r\n\r\nfunction PasswordResetComponent() {\r\n const params = useParams();\r\n const history = useHistory();\r\n const [userName, setUserName] = useState(\"\");\r\n const [password, setPassword] = useState(\"\");\r\n const [confirmPW, setConfirmPW] = useState(\"\");\r\n const [spinnerFlag, setSpinnerFlag] = useState(false);\r\n const [errMsg, setErrMsg] = useState(\"\");\r\n const [successMsg, setSuccessMsg] = useState(\"\");\r\n\r\n useEffect(() => {\r\n if (confirmPW.trim().length && confirmPW !== password) {\r\n setErrMsg(\"Passwords dont Match!\");\r\n } else {\r\n setErrMsg(\"\");\r\n }\r\n }, [confirmPW]);\r\n\r\n const resetServerCall = () => {\r\n const url = `${SERVER_URL}resetPW`;\r\n const restApiBody = {\r\n method: \"POST\",\r\n body: JSON.stringify({\r\n userName: userName,\r\n password: password,\r\n token: params.validToken,\r\n }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n credentials: \"include\",\r\n };\r\n fetch(url, restApiBody)\r\n .then((res) => res.json())\r\n .then((res) => {\r\n setSpinnerFlag(false);\r\n if(res.success) {\r\n if(res.userFound) {\r\n if(res.tokenValid) {\r\n if(res.dbConnectSuccess) {\r\n setErrMsg('');\r\n setSuccessMsg(\"Password Updated! Try logging IN using the new Password!\")\r\n setTimeout(() => {\r\n history.push(\"/\");\r\n }, 2 * 1000);\r\n }\r\n else {\r\n setErrMsg(\"Nothing is perfect on the human stage. So are we, Database connection Error, Please try again after sometime!\");\r\n }\r\n }\r\n else {\r\n setErrMsg(\"Token expired or invalid, please click on Forgot Password and restart the process\"); \r\n }\r\n }\r\n else {\r\n setErrMsg(\"Hey! We are meeting for the first time, Please check Username or Signup\"); \r\n }\r\n }\r\n else {\r\n setErrMsg(\"Nothing is perfect on the human stage. So are we, Technical Error, Please try again after sometime!\");\r\n }\r\n });\r\n };\r\n\r\n const handleReset = () => {\r\n if (userName.trim().length === 0) {\r\n setErrMsg(\"UserName is required!\");\r\n } else if (password.trim().length === 0) {\r\n setErrMsg(\"Password is required!\");\r\n } else if (confirmPW.trim().length === 0) {\r\n setErrMsg(\"Please confirm the password!\");\r\n }\r\n setSpinnerFlag(true);\r\n resetServerCall();\r\n };\r\n\r\n return (\r\n <div className=\"base-container\">\r\n <video src={videoSrc} autoPlay loop muted />\r\n <Container fluid>\r\n <Row>\r\n <Col>\r\n <br />\r\n <div className=\"loginBox\">\r\n <p className=\"heading-tag\">ConnectIN</p>\r\n <div className=\"content\">\r\n <div className=\"form\">\r\n <div className=\"form-group\">\r\n <label className=\"labelClass\">UserName</label>\r\n <input\r\n type=\"text\"\r\n required=\"true\"\r\n placeholder=\"User Name\"\r\n onChange={(evt) => {\r\n setUserName(evt.target.value);\r\n }}\r\n disabled={spinnerFlag}\r\n ></input>\r\n </div>\r\n </div>\r\n <div className=\"form\">\r\n <div className=\"form-group\">\r\n <label className=\"labelClass\">Password</label>\r\n <input\r\n type=\"password\"\r\n required=\"true\"\r\n placeholder=\"Password\"\r\n onChange={(evt) => {\r\n setPassword(evt.target.value);\r\n }}\r\n disabled={spinnerFlag}\r\n ></input>\r\n </div>\r\n </div>\r\n <div className=\"form\">\r\n <div className=\"form-group\">\r\n <label className=\"labelClass\">Confirm Password</label>\r\n <input\r\n type=\"password\"\r\n required=\"true\"\r\n placeholder=\"Confirm Password\"\r\n onChange={(evt) => {\r\n setConfirmPW(evt.target.value);\r\n }}\r\n disabled={spinnerFlag}\r\n ></input>\r\n </div>\r\n <p style={{ color: \"red\" }}>{errMsg}</p>\r\n <p style={{ color: \"green\" }}>{successMsg}</p>\r\n </div>\r\n </div>\r\n <div style={{ textAlign: \"center\" }}>\r\n <Button\r\n type=\"button\"\r\n variant=\"light\"\r\n disabled={spinnerFlag}\r\n onClick={handleReset}\r\n >\r\n Reset Password\r\n </Button>\r\n </div>\r\n <br />\r\n {spinnerFlag && (\r\n <div>\r\n <br />\r\n <div style={{ textAlign: \"center\" }}>\r\n <Loader type=\"Oval\" color=\"grey\" height={50} width={50} />\r\n </div>\r\n <p style={{ color: \"white\", textAlign: \"center\" }}>\r\n Please wait! While we update our System with your new\r\n Password.\r\n </p>\r\n </div>\r\n )}\r\n </div>\r\n </Col>\r\n <Col className=\"quote-class\">\r\n <RandomQuotes />\r\n </Col>\r\n </Row>\r\n </Container>\r\n </div>\r\n );\r\n}\r\n\r\nexport default PasswordResetComponent;\r\n","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Login\\ForgotPassword.jsx",["585","586","587","588","589"],"import React, { useState } from \"react\";\r\nimport RandomQuotes from \"./RandomQuotes\";\r\nimport videoSrc from \"./videos/video-2-main.mp4\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { SERVER_URL } from \"../GlobalCommonData\";\r\nimport { Container, Row, Col, Button } from \"react-bootstrap\";\r\nimport axios from \"axios\";\r\nimport \"react-loader-spinner/dist/loader/css/react-spinner-loader.css\";\r\nimport Loader from \"react-loader-spinner\";\r\n\r\nfunction ForgotPassword() {\r\n const [userEmail, setEmail] = useState(\"\");\r\n const [errMsg, setErrorMsg] = useState(\"\");\r\n const [successMsg, setSuccessMsg] = useState(\"\");\r\n const [spinnerFlag, setSpinnerFlag] = useState(false);\r\n function validateEmail(email) {\r\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n return re.test(email);\r\n }\r\n const handleSendEmail = () => {\r\n if (userEmail.trim().length) {\r\n if (validateEmail(userEmail)) {\r\n setSpinnerFlag(true);\r\n axios\r\n .post(`${SERVER_URL}forgotPassword`, {\r\n userEmail: userEmail,\r\n })\r\n .then((res) => JSON.parse(res.request.responseText))\r\n .then((res) => {\r\n setSpinnerFlag(false);\r\n if (res.success) {\r\n if (res.userPresent) {\r\n setSuccessMsg(\"Mail sent!, Check you Inbox.\");\r\n } else {\r\n setErrorMsg(\r\n \"User Email not registered with us, Either check the email or Sign Up!\"\r\n );\r\n }\r\n } else {\r\n setErrorMsg(\r\n \"Server Error, Please visit us sometime later, we are under maintainance\"\r\n );\r\n }\r\n });\r\n } else {\r\n setErrorMsg(\r\n \"Invalid Email! Our system thinks that email is invalid with the accuracy of 99.99 + 0.01 %\"\r\n );\r\n }\r\n } else {\r\n setErrorMsg(\"Email is necessary for this process!\");\r\n }\r\n };\r\n return (\r\n <div className=\"base-container\">\r\n <video src={videoSrc} autoPlay loop muted />\r\n <Container fluid>\r\n <Row>\r\n <Col>\r\n <br />\r\n <div className=\"loginBox\">\r\n <p className=\"heading-tag\">ConnectIN</p>\r\n <div className=\"content\">\r\n <div className=\"form\">\r\n <div className=\"form-group\">\r\n <label className=\"labelClass\">User Email</label>\r\n <input\r\n type=\"email\"\r\n required=\"true\"\r\n placeholder=\"User Email\"\r\n onChange={(evt) => {\r\n setErrorMsg(\"\");\r\n setSuccessMsg(\"\");\r\n setEmail(evt.target.value);\r\n setErrorMsg(\"\");\r\n }}\r\n ></input>\r\n <p className=\"errorMsg\">{errMsg}</p>\r\n <p style={{ color: \"green\" }}>{successMsg}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div style={{ textAlign: \"center\" }}>\r\n <Button\r\n type=\"button\"\r\n variant=\"light\"\r\n onClick={handleSendEmail}\r\n disabled={spinnerFlag}\r\n >\r\n Send Email\r\n </Button>\r\n </div>\r\n <br />\r\n {spinnerFlag && (\r\n <div>\r\n <br />\r\n <div style={{ textAlign: \"center\" }}>\r\n <Loader type=\"Oval\" color=\"grey\" height={50} width={50} />\r\n </div>\r\n <p style={{ color: \"white\", textAlign: \"center\" }}>\r\n Sending Email for Password reset!\r\n </p>\r\n </div>\r\n )}\r\n </div>\r\n </Col>\r\n <Col className=\"quote-class\">\r\n <RandomQuotes />\r\n </Col>\r\n </Row>\r\n </Container>\r\n </div>\r\n );\r\n}\r\n\r\nexport default ForgotPassword;\r\n","D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Notifications\\NotificationPage.jsx",["590"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Notifications\\NotificationMainPage.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Notifications\\NotificationsDetailPage.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Network\\NetworkContainer.jsx",["591"],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Network\\NetworkMiddleContainer.jsx",[],"D:\\Connecting-You-Org\\ConnectIN-Project-Frontend\\src\\Network\\NetworkDetailPage.jsx",[],{"ruleId":"592","severity":1,"message":"593","line":8,"column":3,"nodeType":"594","messageId":"595","endLine":8,"endColumn":9},{"ruleId":"592","severity":1,"message":"596","line":9,"column":3,"nodeType":"594","messageId":"595","endLine":9,"endColumn":8},{"ruleId":"592","severity":1,"message":"597","line":10,"column":3,"nodeType":"594","messageId":"595","endLine":10,"endColumn":7},{"ruleId":"592","severity":1,"message":"598","line":11,"column":3,"nodeType":"594","messageId":"595","endLine":11,"endColumn":13},{"ruleId":"599","replacedBy":"600"},{"ruleId":"601","replacedBy":"602"},{"ruleId":"592","severity":1,"message":"603","line":6,"column":27,"nodeType":"594","messageId":"595","endLine":6,"endColumn":33},{"ruleId":"592","severity":1,"message":"604","line":7,"column":17,"nodeType":"594","messageId":"595","endLine":7,"endColumn":25},{"ruleId":"605","severity":1,"message":"606","line":45,"column":6,"nodeType":"607","endLine":45,"endColumn":8,"suggestions":"608"},{"ruleId":"592","severity":1,"message":"609","line":6,"column":10,"nodeType":"594","messageId":"595","endLine":6,"endColumn":16},{"ruleId":"592","severity":1,"message":"610","line":6,"column":18,"nodeType":"594","messageId":"595","endLine":6,"endColumn":22},{"ruleId":"592","severity":1,"message":"611","line":6,"column":24,"nodeType":"594","messageId":"595","endLine":6,"endColumn":33},{"ruleId":"592","severity":1,"message":"612","line":6,"column":35,"nodeType":"594","messageId":"595","endLine":6,"endColumn":40},{"ruleId":"592","severity":1,"message":"613","line":6,"column":42,"nodeType":"594","messageId":"595","endLine":6,"endColumn":47},{"ruleId":"592","severity":1,"message":"614","line":6,"column":49,"nodeType":"594","messageId":"595","endLine":6,"endColumn":57},{"ruleId":"592","severity":1,"message":"615","line":9,"column":10,"nodeType":"594","messageId":"595","endLine":9,"endColumn":18},{"ruleId":"592","severity":1,"message":"616","line":10,"column":10,"nodeType":"594","messageId":"595","endLine":10,"endColumn":18},{"ruleId":"592","severity":1,"message":"617","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},{"ruleId":"592","severity":1,"message":"618","line":4,"column":8,"nodeType":"594","messageId":"595","endLine":4,"endColumn":19},{"ruleId":"592","severity":1,"message":"619","line":6,"column":8,"nodeType":"594","messageId":"595","endLine":6,"endColumn":16},{"ruleId":"592","severity":1,"message":"620","line":8,"column":10,"nodeType":"594","messageId":"595","endLine":8,"endColumn":21},{"ruleId":"592","severity":1,"message":"612","line":12,"column":10,"nodeType":"594","messageId":"595","endLine":12,"endColumn":15},{"ruleId":"592","severity":1,"message":"610","line":12,"column":17,"nodeType":"594","messageId":"595","endLine":12,"endColumn":21},{"ruleId":"592","severity":1,"message":"611","line":12,"column":23,"nodeType":"594","messageId":"595","endLine":12,"endColumn":32},{"ruleId":"592","severity":1,"message":"609","line":12,"column":34,"nodeType":"594","messageId":"595","endLine":12,"endColumn":40},{"ruleId":"592","severity":1,"message":"613","line":12,"column":42,"nodeType":"594","messageId":"595","endLine":12,"endColumn":47},{"ruleId":"592","severity":1,"message":"603","line":14,"column":20,"nodeType":"594","messageId":"595","endLine":14,"endColumn":26},{"ruleId":"592","severity":1,"message":"593","line":15,"column":3,"nodeType":"594","messageId":"595","endLine":15,"endColumn":9},{"ruleId":"592","severity":1,"message":"596","line":16,"column":3,"nodeType":"594","messageId":"595","endLine":16,"endColumn":8},{"ruleId":"592","severity":1,"message":"597","line":17,"column":3,"nodeType":"594","messageId":"595","endLine":17,"endColumn":7},{"ruleId":"592","severity":1,"message":"621","line":8,"column":8,"nodeType":"594","messageId":"595","endLine":8,"endColumn":14},{"ruleId":"592","severity":1,"message":"622","line":25,"column":27,"nodeType":"594","messageId":"595","endLine":25,"endColumn":45},{"ruleId":"592","severity":1,"message":"623","line":1,"column":38,"nodeType":"594","messageId":"595","endLine":1,"endColumn":44},{"ruleId":"592","severity":1,"message":"624","line":19,"column":17,"nodeType":"594","messageId":"595","endLine":19,"endColumn":25},{"ruleId":"592","severity":1,"message":"625","line":25,"column":9,"nodeType":"594","messageId":"595","endLine":25,"endColumn":17},{"ruleId":"592","severity":1,"message":"626","line":90,"column":7,"nodeType":"594","messageId":"595","endLine":90,"endColumn":14},{"ruleId":"605","severity":1,"message":"627","line":106,"column":6,"nodeType":"607","endLine":106,"endColumn":13,"suggestions":"628"},{"ruleId":"605","severity":1,"message":"629","line":110,"column":6,"nodeType":"607","endLine":110,"endColumn":26,"suggestions":"630"},{"ruleId":"605","severity":1,"message":"631","line":43,"column":6,"nodeType":"607","endLine":43,"endColumn":8,"suggestions":"632"},{"ruleId":"592","severity":1,"message":"633","line":1,"column":23,"nodeType":"594","messageId":"595","endLine":1,"endColumn":39},{"ruleId":"592","severity":1,"message":"634","line":10,"column":8,"nodeType":"594","messageId":"595","endLine":10,"endColumn":27},{"ruleId":"635","severity":1,"message":"636","line":14,"column":61,"nodeType":"637","endLine":14,"endColumn":76},{"ruleId":"592","severity":1,"message":"610","line":2,"column":39,"nodeType":"594","messageId":"595","endLine":2,"endColumn":43},{"ruleId":"592","severity":1,"message":"638","line":3,"column":10,"nodeType":"594","messageId":"595","endLine":3,"endColumn":17},{"ruleId":"592","severity":1,"message":"639","line":4,"column":10,"nodeType":"594","messageId":"595","endLine":4,"endColumn":25},{"ruleId":"592","severity":1,"message":"640","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},{"ruleId":"592","severity":1,"message":"609","line":5,"column":31,"nodeType":"594","messageId":"595","endLine":5,"endColumn":37},{"ruleId":"592","severity":1,"message":"610","line":5,"column":39,"nodeType":"594","messageId":"595","endLine":5,"endColumn":43},{"ruleId":"599","replacedBy":"641"},{"ruleId":"601","replacedBy":"642"},{"ruleId":"592","severity":1,"message":"624","line":15,"column":17,"nodeType":"594","messageId":"595","endLine":15,"endColumn":25},{"ruleId":"592","severity":1,"message":"626","line":16,"column":10,"nodeType":"594","messageId":"595","endLine":16,"endColumn":17},{"ruleId":"605","severity":1,"message":"629","line":62,"column":6,"nodeType":"607","endLine":62,"endColumn":16,"suggestions":"643"},{"ruleId":"592","severity":1,"message":"633","line":1,"column":23,"nodeType":"594","messageId":"595","endLine":1,"endColumn":39},{"ruleId":"592","severity":1,"message":"604","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":25},{"ruleId":"592","severity":1,"message":"617","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},{"ruleId":"592","severity":1,"message":"593","line":8,"column":3,"nodeType":"594","messageId":"595","endLine":8,"endColumn":9},{"ruleId":"592","severity":1,"message":"596","line":9,"column":3,"nodeType":"594","messageId":"595","endLine":9,"endColumn":8},{"ruleId":"592","severity":1,"message":"597","line":10,"column":3,"nodeType":"594","messageId":"595","endLine":10,"endColumn":7},{"ruleId":"592","severity":1,"message":"598","line":11,"column":3,"nodeType":"594","messageId":"595","endLine":11,"endColumn":13},{"ruleId":"599","replacedBy":"644"},{"ruleId":"601","replacedBy":"645"},{"ruleId":"592","severity":1,"message":"646","line":6,"column":10,"nodeType":"594","messageId":"595","endLine":6,"endColumn":19},{"ruleId":"592","severity":1,"message":"603","line":8,"column":20,"nodeType":"594","messageId":"595","endLine":8,"endColumn":26},{"ruleId":"592","severity":1,"message":"604","line":13,"column":17,"nodeType":"594","messageId":"595","endLine":13,"endColumn":25},{"ruleId":"605","severity":1,"message":"647","line":58,"column":6,"nodeType":"607","endLine":58,"endColumn":8,"suggestions":"648"},{"ruleId":"592","severity":1,"message":"633","line":1,"column":23,"nodeType":"594","messageId":"595","endLine":1,"endColumn":39},{"ruleId":"592","severity":1,"message":"633","line":1,"column":23,"nodeType":"594","messageId":"595","endLine":1,"endColumn":39},{"ruleId":"592","severity":1,"message":"621","line":3,"column":8,"nodeType":"594","messageId":"595","endLine":3,"endColumn":14},{"ruleId":"592","severity":1,"message":"621","line":15,"column":8,"nodeType":"594","messageId":"595","endLine":15,"endColumn":14},{"ruleId":"592","severity":1,"message":"617","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},{"ruleId":"592","severity":1,"message":"649","line":3,"column":8,"nodeType":"594","messageId":"595","endLine":3,"endColumn":14},{"ruleId":"592","severity":1,"message":"612","line":12,"column":10,"nodeType":"594","messageId":"595","endLine":12,"endColumn":15},{"ruleId":"592","severity":1,"message":"610","line":12,"column":17,"nodeType":"594","messageId":"595","endLine":12,"endColumn":21},{"ruleId":"592","severity":1,"message":"611","line":12,"column":23,"nodeType":"594","messageId":"595","endLine":12,"endColumn":32},{"ruleId":"592","severity":1,"message":"609","line":12,"column":34,"nodeType":"594","messageId":"595","endLine":12,"endColumn":40},{"ruleId":"592","severity":1,"message":"613","line":12,"column":42,"nodeType":"594","messageId":"595","endLine":12,"endColumn":47},{"ruleId":"605","severity":1,"message":"631","line":43,"column":6,"nodeType":"607","endLine":43,"endColumn":8,"suggestions":"650"},{"ruleId":"592","severity":1,"message":"623","line":1,"column":38,"nodeType":"594","messageId":"595","endLine":1,"endColumn":44},{"ruleId":"592","severity":1,"message":"624","line":21,"column":17,"nodeType":"594","messageId":"595","endLine":21,"endColumn":25},{"ruleId":"592","severity":1,"message":"625","line":30,"column":9,"nodeType":"594","messageId":"595","endLine":30,"endColumn":17},{"ruleId":"605","severity":1,"message":"627","line":110,"column":6,"nodeType":"607","endLine":110,"endColumn":13,"suggestions":"651"},{"ruleId":"605","severity":1,"message":"629","line":114,"column":6,"nodeType":"607","endLine":114,"endColumn":26,"suggestions":"652"},{"ruleId":"605","severity":1,"message":"653","line":125,"column":6,"nodeType":"607","endLine":125,"endColumn":18,"suggestions":"654"},{"ruleId":"635","severity":1,"message":"636","line":14,"column":59,"nodeType":"637","endLine":14,"endColumn":74},{"ruleId":"592","severity":1,"message":"604","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":25},{"ruleId":"592","severity":1,"message":"621","line":8,"column":8,"nodeType":"594","messageId":"595","endLine":8,"endColumn":14},{"ruleId":"592","severity":1,"message":"622","line":25,"column":27,"nodeType":"594","messageId":"595","endLine":25,"endColumn":45},{"ruleId":"592","severity":1,"message":"624","line":17,"column":17,"nodeType":"594","messageId":"595","endLine":17,"endColumn":25},{"ruleId":"592","severity":1,"message":"626","line":18,"column":10,"nodeType":"594","messageId":"595","endLine":18,"endColumn":17},{"ruleId":"605","severity":1,"message":"629","line":64,"column":6,"nodeType":"607","endLine":64,"endColumn":16,"suggestions":"655"},{"ruleId":"592","severity":1,"message":"640","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},{"ruleId":"592","severity":1,"message":"609","line":5,"column":31,"nodeType":"594","messageId":"595","endLine":5,"endColumn":37},{"ruleId":"592","severity":1,"message":"610","line":5,"column":39,"nodeType":"594","messageId":"595","endLine":5,"endColumn":43},{"ruleId":"592","severity":1,"message":"593","line":8,"column":3,"nodeType":"594","messageId":"595","endLine":8,"endColumn":9},{"ruleId":"592","severity":1,"message":"596","line":9,"column":3,"nodeType":"594","messageId":"595","endLine":9,"endColumn":8},{"ruleId":"592","severity":1,"message":"597","line":10,"column":3,"nodeType":"594","messageId":"595","endLine":10,"endColumn":7},{"ruleId":"592","severity":1,"message":"598","line":11,"column":3,"nodeType":"594","messageId":"595","endLine":11,"endColumn":13},{"ruleId":"592","severity":1,"message":"603","line":6,"column":27,"nodeType":"594","messageId":"595","endLine":6,"endColumn":33},{"ruleId":"592","severity":1,"message":"604","line":7,"column":17,"nodeType":"594","messageId":"595","endLine":7,"endColumn":25},{"ruleId":"605","severity":1,"message":"606","line":46,"column":6,"nodeType":"607","endLine":46,"endColumn":8,"suggestions":"656"},{"ruleId":"592","severity":1,"message":"633","line":1,"column":23,"nodeType":"594","messageId":"595","endLine":1,"endColumn":39},{"ruleId":"592","severity":1,"message":"633","line":1,"column":23,"nodeType":"594","messageId":"595","endLine":1,"endColumn":39},{"ruleId":"592","severity":1,"message":"621","line":3,"column":8,"nodeType":"594","messageId":"595","endLine":3,"endColumn":14},{"ruleId":"592","severity":1,"message":"617","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},{"ruleId":"592","severity":1,"message":"618","line":4,"column":8,"nodeType":"594","messageId":"595","endLine":4,"endColumn":19},{"ruleId":"592","severity":1,"message":"619","line":6,"column":8,"nodeType":"594","messageId":"595","endLine":6,"endColumn":16},{"ruleId":"592","severity":1,"message":"620","line":8,"column":10,"nodeType":"594","messageId":"595","endLine":8,"endColumn":21},{"ruleId":"592","severity":1,"message":"621","line":15,"column":8,"nodeType":"594","messageId":"595","endLine":15,"endColumn":14},{"ruleId":"592","severity":1,"message":"617","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},{"ruleId":"605","severity":1,"message":"631","line":43,"column":6,"nodeType":"607","endLine":43,"endColumn":8,"suggestions":"657"},{"ruleId":"592","severity":1,"message":"623","line":1,"column":38,"nodeType":"594","messageId":"595","endLine":1,"endColumn":44},{"ruleId":"592","severity":1,"message":"624","line":21,"column":17,"nodeType":"594","messageId":"595","endLine":21,"endColumn":25},{"ruleId":"592","severity":1,"message":"625","line":30,"column":9,"nodeType":"594","messageId":"595","endLine":30,"endColumn":17},{"ruleId":"605","severity":1,"message":"627","line":110,"column":6,"nodeType":"607","endLine":110,"endColumn":13,"suggestions":"658"},{"ruleId":"605","severity":1,"message":"629","line":114,"column":6,"nodeType":"607","endLine":114,"endColumn":26,"suggestions":"659"},{"ruleId":"605","severity":1,"message":"653","line":125,"column":6,"nodeType":"607","endLine":125,"endColumn":18,"suggestions":"660"},{"ruleId":"592","severity":1,"message":"634","line":10,"column":8,"nodeType":"594","messageId":"595","endLine":10,"endColumn":27},{"ruleId":"592","severity":1,"message":"649","line":3,"column":8,"nodeType":"594","messageId":"595","endLine":3,"endColumn":14},{"ruleId":"592","severity":1,"message":"612","line":12,"column":10,"nodeType":"594","messageId":"595","endLine":12,"endColumn":15},{"ruleId":"592","severity":1,"message":"610","line":12,"column":17,"nodeType":"594","messageId":"595","endLine":12,"endColumn":21},{"ruleId":"592","severity":1,"message":"611","line":12,"column":23,"nodeType":"594","messageId":"595","endLine":12,"endColumn":32},{"ruleId":"592","severity":1,"message":"609","line":12,"column":34,"nodeType":"594","messageId":"595","endLine":12,"endColumn":40},{"ruleId":"592","severity":1,"message":"613","line":12,"column":42,"nodeType":"594","messageId":"595","endLine":12,"endColumn":47},{"ruleId":"635","severity":1,"message":"636","line":14,"column":61,"nodeType":"637","endLine":14,"endColumn":76},{"ruleId":"592","severity":1,"message":"604","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":25},{"ruleId":"592","severity":1,"message":"621","line":8,"column":8,"nodeType":"594","messageId":"595","endLine":8,"endColumn":14},{"ruleId":"592","severity":1,"message":"622","line":25,"column":27,"nodeType":"594","messageId":"595","endLine":25,"endColumn":45},{"ruleId":"592","severity":1,"message":"624","line":16,"column":17,"nodeType":"594","messageId":"595","endLine":16,"endColumn":25},{"ruleId":"592","severity":1,"message":"626","line":17,"column":10,"nodeType":"594","messageId":"595","endLine":17,"endColumn":17},{"ruleId":"605","severity":1,"message":"629","line":63,"column":6,"nodeType":"607","endLine":63,"endColumn":16,"suggestions":"661"},{"ruleId":"592","severity":1,"message":"640","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},{"ruleId":"592","severity":1,"message":"609","line":5,"column":31,"nodeType":"594","messageId":"595","endLine":5,"endColumn":37},{"ruleId":"592","severity":1,"message":"610","line":5,"column":39,"nodeType":"594","messageId":"595","endLine":5,"endColumn":43},{"ruleId":"605","severity":1,"message":"662","line":26,"column":6,"nodeType":"607","endLine":26,"endColumn":17,"suggestions":"663"},{"ruleId":"592","severity":1,"message":"598","line":4,"column":10,"nodeType":"594","messageId":"595","endLine":4,"endColumn":20},{"ruleId":"664","severity":1,"message":"665","line":17,"column":38,"nodeType":"666","messageId":"667","endLine":17,"endColumn":39,"suggestions":"668"},{"ruleId":"664","severity":1,"message":"665","line":17,"column":63,"nodeType":"666","messageId":"667","endLine":17,"endColumn":64,"suggestions":"669"},{"ruleId":"664","severity":1,"message":"665","line":17,"column":72,"nodeType":"666","messageId":"667","endLine":17,"endColumn":73,"suggestions":"670"},{"ruleId":"664","severity":1,"message":"665","line":17,"column":76,"nodeType":"666","messageId":"667","endLine":17,"endColumn":77,"suggestions":"671"},{"ruleId":"592","severity":1,"message":"617","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},{"ruleId":"592","severity":1,"message":"617","line":1,"column":17,"nodeType":"594","messageId":"595","endLine":1,"endColumn":26},"no-unused-vars","'Switch' is defined but never used.","Identifier","unusedVar","'Route' is defined but never used.","'Link' is defined but never used.","'useHistory' is defined but never used.","no-native-reassign",["672"],"no-negated-in-lhs",["673"],"'Router' is defined but never used.","'useState' is defined but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'getUserDataIfLoggedIn'. Either include it or remove the dependency array.","ArrayExpression",["674"],"'Button' is defined but never used.","'Form' is defined but never used.","'FormGroup' is defined but never used.","'Label' is defined but never used.","'Input' is defined but never used.","'FormText' is defined but never used.","'userName' is assigned a value but never used.","'passWord' is assigned a value but never used.","'Component' is defined but never used.","'ProfileCard' is defined but never used.","'NewsFeed' is defined but never used.","'useSelector' is defined but never used.","'imgSrc' is defined but never used.","'setCommentTileFlag' is assigned a value but never used.","'useRef' is defined but never used.","'setLimit' is assigned a value but never used.","'sortList' is assigned a value but never used.","'loading' is assigned a value but never used.","React Hook useEffect has a missing dependency: 'postSet'. Either include it or remove the dependency array.",["675"],"React Hook useEffect has a missing dependency: 'getPostsFromBackend'. Either include it or remove the dependency array.",["676"],"React Hook useEffect has a missing dependency: 'getNews'. Either include it or remove the dependency array.",["677"],"'createAsyncThunk' is defined but never used.","'UserPostDisplayPage' is defined but never used.","react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener","JSXAttribute","'faImage' is defined but never used.","'FontAwesomeIcon' is defined but never used.","'useEffect' is defined but never used.",["672"],["673"],["678"],["672"],["673"],"'useParams' is defined but never used.","React Hook useEffect has missing dependencies: 'getUserDataIfLoggedIn' and 'urlFromMail'. Either include them or remove the dependency array.",["679"],"'ImgSrc' is defined but never used.",["680"],["681"],["682"],"React Hook useEffect has a missing dependency: 'postList.length'. Either include it or remove the dependency array.",["683"],["684"],["685"],["686"],["687"],["688"],["689"],["690"],"React Hook useEffect has a missing dependency: 'password'. Either include it or remove the dependency array.",["691"],"no-useless-escape","Unnecessary escape character: \\\".","Literal","unnecessaryEscape",["692","693"],["694","695"],["696","697"],["698","699"],"no-global-assign","no-unsafe-negation",{"desc":"700","fix":"701"},{"desc":"702","fix":"703"},{"desc":"704","fix":"705"},{"desc":"706","fix":"707"},{"desc":"708","fix":"709"},{"desc":"710","fix":"711"},{"desc":"706","fix":"712"},{"desc":"702","fix":"713"},{"desc":"704","fix":"714"},{"desc":"715","fix":"716"},{"desc":"708","fix":"717"},{"desc":"700","fix":"718"},{"desc":"706","fix":"719"},{"desc":"702","fix":"720"},{"desc":"704","fix":"721"},{"desc":"715","fix":"722"},{"desc":"708","fix":"723"},{"desc":"724","fix":"725"},{"messageId":"726","fix":"727","desc":"728"},{"messageId":"729","fix":"730","desc":"731"},{"messageId":"726","fix":"732","desc":"728"},{"messageId":"729","fix":"733","desc":"731"},{"messageId":"726","fix":"734","desc":"728"},{"messageId":"729","fix":"735","desc":"731"},{"messageId":"726","fix":"736","desc":"728"},{"messageId":"729","fix":"737","desc":"731"},"Update the dependencies array to be: [getUserDataIfLoggedIn]",{"range":"738","text":"739"},"Update the dependencies array to be: [postSet, posts]",{"range":"740","text":"741"},"Update the dependencies array to be: [userData, initFlag, getPostsFromBackend]",{"range":"742","text":"743"},"Update the dependencies array to be: [getNews]",{"range":"744","text":"745"},"Update the dependencies array to be: [getPostsFromBackend, initFlag]",{"range":"746","text":"747"},"Update the dependencies array to be: [getUserDataIfLoggedIn, urlFromMail]",{"range":"748","text":"749"},{"range":"750","text":"745"},{"range":"751","text":"741"},{"range":"752","text":"743"},"Update the dependencies array to be: [bottomFlag, postList.length]",{"range":"753","text":"754"},{"range":"755","text":"747"},{"range":"756","text":"739"},{"range":"757","text":"745"},{"range":"758","text":"741"},{"range":"759","text":"743"},{"range":"760","text":"754"},{"range":"761","text":"747"},"Update the dependencies array to be: [confirmPW, password]",{"range":"762","text":"763"},"removeEscape",{"range":"764","text":"765"},"Remove the `\\`. This maintains the current functionality.","escapeBackslash",{"range":"766","text":"767"},"Replace the `\\` with `\\\\` to include the actual backslash character.",{"range":"768","text":"765"},{"range":"769","text":"767"},{"range":"770","text":"765"},{"range":"771","text":"767"},{"range":"772","text":"765"},{"range":"773","text":"767"},[1628,1630],"[getUserDataIfLoggedIn]",[3697,3704],"[postSet, posts]",[3764,3784],"[userData, initFlag, getPostsFromBackend]",[1440,1442],"[getNews]",[2113,2123],"[getPostsFromBackend, initFlag]",[2068,2070],"[getUserDataIfLoggedIn, urlFromMail]",[1441,1443],[3952,3959],[4019,4039],[4290,4302],"[bottomFlag, postList.length]",[2212,2222],[1666,1668],[1441,1443],[3947,3954],[4014,4034],[4285,4297],[2153,2163],[1023,1034],"[confirmPW, password]",[753,754],"",[753,753],"\\",[778,779],[778,778],[787,788],[787,787],[791,792],[791,791]]