Fix warnings frontend 3 (#2121)

* Remove dotenv javascript lib

* Run npm audit fix

* Run npm audit fix --force

* Update frontend build
This commit is contained in:
Jonathan Zernik 2022-04-12 00:46:01 -04:00 committed by GitHub
parent b8384e33cf
commit 1f602ea44e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 29156 additions and 30162 deletions

41598
frontend/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,6 @@
"@testing-library/user-event": "^7.2.1",
"axios": "^0.21.2",
"darkreader": "^4.9.10",
"dotenv": "^8.2.0",
"google-protobuf": "^3.12.4",
"informed": "^4.6.1",
"jwt-decode": "^2.2.0",
@ -20,10 +19,10 @@
"react-redux": "^7.2.1",
"react-responsive": "^8.1.0",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
"react-scripts": "^5.0.0",
"react-select": "^5.2.2",
"sass": "^1.49.7",
"serve": "^11.3.2",
"serve": "^13.0.2",
"socket.io-client": "^2.3.0"
},
"scripts": {

View file

@ -1,6 +1,5 @@
import React, { Suspense, lazy } from 'react'
import { Route, Switch, HashRouter, Redirect, withRouter } from 'react-router-dom'
import 'dotenv/config'
import './App.scss'
import './informed-style.css'
import Loader from './components/Loader'

File diff suppressed because it is too large Load diff

View file

@ -1,35 +1,26 @@
{
"files": {
"main.css": "/static/css/main.be11d9c8.chunk.css",
"main.js": "/static/js/main.6a7c927e.chunk.js",
"main.js.map": "/static/js/main.6a7c927e.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.05610a5d.js",
"runtime-main.js.map": "/static/js/runtime-main.05610a5d.js.map",
"static/js/2.34efa20b.chunk.js": "/static/js/2.34efa20b.chunk.js",
"static/js/2.34efa20b.chunk.js.map": "/static/js/2.34efa20b.chunk.js.map",
"static/css/3.1f6bb621.chunk.css": "/static/css/3.1f6bb621.chunk.css",
"static/js/3.2d2d34d3.chunk.js": "/static/js/3.2d2d34d3.chunk.js",
"static/js/3.2d2d34d3.chunk.js.map": "/static/js/3.2d2d34d3.chunk.js.map",
"static/css/4.6512f3a3.chunk.css": "/static/css/4.6512f3a3.chunk.css",
"static/js/4.13c6f568.chunk.js": "/static/js/4.13c6f568.chunk.js",
"static/js/4.13c6f568.chunk.js.map": "/static/js/4.13c6f568.chunk.js.map",
"static/css/5.3aaab79d.chunk.css": "/static/css/5.3aaab79d.chunk.css",
"static/js/5.2d635141.chunk.js": "/static/js/5.2d635141.chunk.js",
"static/js/5.2d635141.chunk.js.map": "/static/js/5.2d635141.chunk.js.map",
"main.css": "/static/css/main.206389cd.css",
"main.js": "/static/js/main.8639e5b0.js",
"static/css/306.7f7715a0.chunk.css": "/static/css/306.7f7715a0.chunk.css",
"static/js/306.dc556745.chunk.js": "/static/js/306.dc556745.chunk.js",
"static/css/900.1c240409.chunk.css": "/static/css/900.1c240409.chunk.css",
"static/js/900.1b104345.chunk.js": "/static/js/900.1b104345.chunk.js",
"static/css/841.693c3c31.chunk.css": "/static/css/841.693c3c31.chunk.css",
"static/js/841.8faa8984.chunk.js": "/static/js/841.8faa8984.chunk.js",
"static/media/icon.svg": "/static/media/icon.982210ec9275956e4d3cc77fa90167fd.svg",
"index.html": "/index.html",
"precache-manifest.dd47f226d16dea85b0faa073346e53cb.js": "/precache-manifest.dd47f226d16dea85b0faa073346e53cb.js",
"service-worker.js": "/service-worker.js",
"static/css/3.1f6bb621.chunk.css.map": "/static/css/3.1f6bb621.chunk.css.map",
"static/css/4.6512f3a3.chunk.css.map": "/static/css/4.6512f3a3.chunk.css.map",
"static/css/5.3aaab79d.chunk.css.map": "/static/css/5.3aaab79d.chunk.css.map",
"static/css/main.be11d9c8.chunk.css.map": "/static/css/main.be11d9c8.chunk.css.map",
"static/js/2.34efa20b.chunk.js.LICENSE.txt": "/static/js/2.34efa20b.chunk.js.LICENSE.txt",
"static/media/icon.a0c2d343.svg": "/static/media/icon.a0c2d343.svg"
"main.206389cd.css.map": "/static/css/main.206389cd.css.map",
"main.8639e5b0.js.map": "/static/js/main.8639e5b0.js.map",
"306.7f7715a0.chunk.css.map": "/static/css/306.7f7715a0.chunk.css.map",
"306.dc556745.chunk.js.map": "/static/js/306.dc556745.chunk.js.map",
"900.1c240409.chunk.css.map": "/static/css/900.1c240409.chunk.css.map",
"900.1b104345.chunk.js.map": "/static/js/900.1b104345.chunk.js.map",
"841.693c3c31.chunk.css.map": "/static/css/841.693c3c31.chunk.css.map",
"841.8faa8984.chunk.js.map": "/static/js/841.8faa8984.chunk.js.map"
},
"entrypoints": [
"static/js/runtime-main.05610a5d.js",
"static/js/2.34efa20b.chunk.js",
"static/css/main.be11d9c8.chunk.css",
"static/js/main.6a7c927e.chunk.js"
"static/css/main.206389cd.css",
"static/js/main.8639e5b0.js"
]
}

View file

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#1da1f2"/><meta nam="description" content="Squeaknode!"/><meta name="og:title" content="Squeaknode"/><meta name="og:description" content="check out my the Squeaknode I made"/><link href="https://fonts.googleapis.com/css2?family=Assistant&display=swap" rel="stylesheet"><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Squeaknode</title><link href="/static/css/main.be11d9c8.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],s=0,d=[];s<i.length;s++)o=i[s],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);d.length;)d.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,o=1;o<r.length;o++){var c=r[o];0!==a[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},a={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{3:1,4:1,5:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{3:"1f6bb621",4:"6512f3a3",5:"3aaab79d"}[e]+".chunk.css",a=i.p+n,u=document.getElementsByTagName("link"),c=0;c<u.length;c++){var l=(f=u[c]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(l===n||l===a))return t()}var s=document.getElementsByTagName("style");for(c=0;c<s.length;c++){var f;if((l=(f=s[c]).getAttribute("data-href"))===n||l===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=n,delete o[e],d.parentNode.removeChild(d),r(u)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var u,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"2d2d34d3",4:"13c6f568",5:"2d635141"}[e]+".chunk.js"}(e);var l=new Error;u=function(t){c.onerror=c.onload=null,clearTimeout(s);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,r[1](l)}a[e]=void 0}};var s=setTimeout((function(){u({type:"timeout",target:c})}),12e4);c.onerror=c.onload=u,document.head.appendChild(c)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var c=this["webpackJsonptwitter-frontend"]=this["webpackJsonptwitter-frontend"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var s=0;s<c.length;s++)t(c[s]);var f=l;r()}([])</script><script src="/static/js/2.34efa20b.chunk.js"></script><script src="/static/js/main.6a7c927e.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#1da1f2"/><meta nam="description" content="Squeaknode!"/><meta name="og:title" content="Squeaknode"/><meta name="og:description" content="check out my the Squeaknode I made"/><link href="https://fonts.googleapis.com/css2?family=Assistant&display=swap" rel="stylesheet"><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Squeaknode</title><script defer="defer" src="/static/js/main.8639e5b0.js"></script><link href="/static/css/main.206389cd.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

View file

@ -1,54 +0,0 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "18bdf187ee95230950f194530b73c2c4",
"url": "/index.html"
},
{
"revision": "b231ad02f3f1cc4d806e",
"url": "/static/css/3.1f6bb621.chunk.css"
},
{
"revision": "73f49a16160afba90031",
"url": "/static/css/4.6512f3a3.chunk.css"
},
{
"revision": "8671e1a9be8d91740510",
"url": "/static/css/5.3aaab79d.chunk.css"
},
{
"revision": "8f5e1c1f2d6d6f4df7e1",
"url": "/static/css/main.be11d9c8.chunk.css"
},
{
"revision": "d847f8d7fccd469909c7",
"url": "/static/js/2.34efa20b.chunk.js"
},
{
"revision": "a569361d31625f49e7e30aea21628ed5",
"url": "/static/js/2.34efa20b.chunk.js.LICENSE.txt"
},
{
"revision": "b231ad02f3f1cc4d806e",
"url": "/static/js/3.2d2d34d3.chunk.js"
},
{
"revision": "73f49a16160afba90031",
"url": "/static/js/4.13c6f568.chunk.js"
},
{
"revision": "8671e1a9be8d91740510",
"url": "/static/js/5.2d635141.chunk.js"
},
{
"revision": "8f5e1c1f2d6d6f4df7e1",
"url": "/static/js/main.6a7c927e.chunk.js"
},
{
"revision": "a02b2d7c374aeb856b49",
"url": "/static/js/runtime-main.05610a5d.js"
},
{
"revision": "a0c2d343127a93b025409da6fd970700",
"url": "/static/media/icon.a0c2d343.svg"
}
]);

View file

@ -1,39 +0,0 @@
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/precache-manifest.dd47f226d16dea85b0faa073346e53cb.js"
);
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
workbox.core.clientsClaim();
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});

View file

@ -1,2 +0,0 @@
.Home-wrapper{max-width:600px;border-right:1px solid #e6ecf0;width:100%;display:flex;flex-direction:column;min-height:2000px}.Home-header-wrapper{position:-webkit-sticky;position:sticky;border-bottom:1px solid #e6ecf0;border-left:1px solid #e6ecf0;background-color:#fff;z-index:3;top:0;display:flex;align-items:center;cursor:pointer;height:53px;min-height:53px;padding-left:15px;padding-right:15px;max-width:1000px;margin:0 auto;width:100%}.Home-header{font-weight:800;font-size:19px;color:#14171a;line-height:1.3125}.blue{color:#1da1f2}
/*# sourceMappingURL=3.1f6bb621.chunk.css.map */

View file

@ -1 +0,0 @@
{"version":3,"sources":["style.scss"],"names":[],"mappings":"AAAA,cACI,eAAA,CACA,8BAAA,CACA,UAAA,CAGA,YAAA,CACA,qBAAA,CACA,iBAAA,CAGJ,qBACI,uBAAA,CAAA,eAAA,CACA,+BAAA,CACA,6BAAA,CACA,qBAAA,CACA,SAAA,CACA,KAAA,CACA,YAAA,CACA,kBAAA,CACA,cAAA,CACA,WAAA,CACA,eAAA,CACA,iBAAA,CACA,kBAAA,CACA,gBAAA,CACA,aAAA,CACA,UAAA,CAGJ,aACI,eAAA,CACA,cAAA,CACA,aAAA,CACA,kBAAA,CAGJ,MACI,aAAA","file":"3.1f6bb621.chunk.css","sourcesContent":[".Home-wrapper{\r\n max-width: 600px;\r\n border-right: 1px solid rgb(230, 236, 240);\r\n width: 100%;\r\n //but doesnt show when there are less elements\r\n // height: 100vh;\r\n display: flex;\r\n flex-direction: column;\r\n min-height: 2000px;\r\n}\r\n\r\n.Home-header-wrapper{\r\n position: sticky;\r\n border-bottom: 1px solid rgb(230, 236, 240);\r\n border-left: 1px solid rgb(230, 236, 240);\r\n background-color: rgb(255, 255, 255);\r\n z-index: 3;\r\n top: 0px;\r\n display: flex;\r\n align-items: center;\r\n cursor: pointer;\r\n height: 53px;\r\n min-height: 53px;\r\n padding-left: 15px;\r\n padding-right: 15px;\r\n max-width: 1000px;\r\n margin: 0 auto;\r\n width: 100%;\r\n}\r\n\r\n.Home-header{\r\n font-weight: 800;\r\n font-size: 19px;\r\n color: rgb(20, 23, 26);\r\n line-height: 1.3125;\r\n}\r\n\r\n.blue{\r\n color: rgb(29, 161, 242);\r\n}"]}

View file

@ -0,0 +1,2 @@
.Home-wrapper{border-right:1px solid #e6ecf0;display:flex;flex-direction:column;max-width:600px;min-height:2000px;width:100%}.Home-header-wrapper{align-items:center;background-color:#fff;border-bottom:1px solid #e6ecf0;border-left:1px solid #e6ecf0;cursor:pointer;display:flex;height:53px;margin:0 auto;max-width:1000px;min-height:53px;padding-left:15px;padding-right:15px;position:-webkit-sticky;position:sticky;top:0;width:100%;z-index:3}.Home-header{color:#14171a;font-size:19px;font-weight:800;line-height:1.3125}.blue{color:#1da1f2}
/*# sourceMappingURL=306.7f7715a0.chunk.css.map*/

View file

@ -0,0 +1 @@
{"version":3,"file":"static/css/306.7f7715a0.chunk.css","mappings":"AAAA,cAEI,+BAIA,aACA,sBANA,gBAOA,kBALA,UAKA,CAGJ,qBAQI,mBAJA,sBAFA,gCACA,8BAMA,eAFA,aAGA,YAKA,cADA,iBAHA,gBACA,kBACA,mBAZA,wCAKA,MAUA,WAXA,SAWA,CAGJ,aAGI,cADA,eADA,gBAGA,mBAGJ,MACI","sources":["components/Home/style.scss"],"sourcesContent":[".Home-wrapper{\r\n max-width: 600px;\r\n border-right: 1px solid rgb(230, 236, 240);\r\n width: 100%;\r\n //but doesnt show when there are less elements\r\n // height: 100vh;\r\n display: flex;\r\n flex-direction: column;\r\n min-height: 2000px;\r\n}\r\n\r\n.Home-header-wrapper{\r\n position: sticky;\r\n border-bottom: 1px solid rgb(230, 236, 240);\r\n border-left: 1px solid rgb(230, 236, 240);\r\n background-color: rgb(255, 255, 255);\r\n z-index: 3;\r\n top: 0px;\r\n display: flex;\r\n align-items: center;\r\n cursor: pointer;\r\n height: 53px;\r\n min-height: 53px;\r\n padding-left: 15px;\r\n padding-right: 15px;\r\n max-width: 1000px;\r\n margin: 0 auto;\r\n width: 100%;\r\n}\r\n\r\n.Home-header{\r\n font-weight: 800;\r\n font-size: 19px;\r\n color: rgb(20, 23, 26);\r\n line-height: 1.3125;\r\n}\r\n\r\n.blue{\r\n color: rgb(29, 161, 242);\r\n}"],"names":[],"sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
.profile-wrapper{max-width:600px;border-right:1px solid #e6ecf0;width:100%;display:flex;flex-direction:column;min-height:2000px}.profile-header-wrapper{position:-webkit-sticky;position:sticky;border-bottom:1px solid #e6ecf0;border-left:1px solid #e6ecf0;background-color:#fff;z-index:8;top:0;display:flex;align-items:center;cursor:pointer;height:53px;min-height:53px;padding-left:15px;padding-right:15px;max-width:1000px;margin:0 auto;width:100%}.profile-header-back{min-width:55px;min-height:30px;justify-content:center;align-items:flex-start}.header-back-wrapper{margin-left:-5px;width:39px;height:39px;transition:.2s ease-in-out;will-change:background-color;border:1px solid transparent;border-radius:9999px;display:flex;justify-content:center;align-items:center}.header-back-wrapper svg{height:1.5em;fill:#1da1f2}.header-back-wrapper:hover{background-color:rgba(29,161,242,.1)}.profile-header-content{display:flex;flex-direction:column}.profile-header-name{font-weight:800;font-size:19px}.profile-header-squeaks{font-size:14px;line-height:19.6875px;color:#657786}.profile-banner-wrapper{max-width:600px;height:200px;position:relative}.profile-banner-wrapper img{width:100%;height:100%;object-fit:cover}.profile-details-wrapper{padding:10px 15px 15px}.profile-options{display:flex;justify-content:flex-end;align-items:center;position:relative}.profile-image-wrapper{position:absolute;left:0;bottom:-30px;width:134px;min-width:49px;border:4px solid #fff;border-radius:50%;height:134px;z-index:5}.profile-image-wrapper img{border-radius:50%;width:100%;height:100%;object-fit:cover}.profile-edit-button{min-height:39px;min-width:98.8px;transition:.2s ease-in-out;cursor:pointer;border:1px solid #1da1f2;border-radius:9999px;display:flex;justify-content:center;align-items:center;margin-left:7px;padding-left:1em;padding-right:1em}.profile-edit-button span{text-align:center;font-weight:800;color:#1da1f2;width:100%}.profile-edit-button:hover{background-color:rgba(29,161,242,.1)}.unfollow-switch{background-color:#1da1f2}.unfollow-switch span{color:#fff!important}.unfollow-switch:hover{background-color:#ca2055!important;border:1px solid transparent}.unfollow-switch:hover span{color:#fff}.unfollow-switch:hover span span{display:none}.unfollow-switch:hover span:before{content:"Unfollow"}.profile-details-box{margin-top:40px}.profile-name{font-weight:800;font-size:19px}.profile-username{font-size:15px;color:#657786}.profile-bio{margin-bottom:10px;margin-top:10px}.profile-info-box{display:flex;margin-top:10px}.profile-info-box svg{margin-right:5px;fill:#657786;height:18.75px}.profile-date,.profile-location{color:#657786;margin-right:10px}.profile-social-box{display:flex;margin-top:7px}.profile-social-box div{display:flex;cursor:pointer}.profile-social-box div:hover{text-decoration:underline}.follow-num{font-weight:700;margin-right:3px;cursor:pointer}.follow-text{color:#657786;margin-right:20px;cursor:pointer}.profile-nav-menu{display:flex;justify-content:space-around;align-items:center;border-bottom:1px solid #e6ecf0}.profile-nav-item{white-space:nowrap;overflow:hidden;padding:15px;width:100%;text-align:center;cursor:pointer;font-weight:700;color:#657786;transition:.2s;will-change:background-color;border-bottom:2px solid transparent}.profile-nav-item:hover{background-color:rgba(29,161,242,.1);color:#1da1f2}.activeTab{border-bottom:2px solid #1da1f2;color:#1da1f2}.new-msg{border-radius:999px;display:flex;align-items:center;justify-content:center;padding:10px;transition:.2s ease-in-out;cursor:pointer}.new-msg:hover{background-color:rgba(29,161,242,.1)}.new-msg:hover svg{fill:#1da1f2}.new-msg svg{width:25px;height:25px;display:flex;align-items:center;fill:#000;transition:.2s ease-in-out}
/*# sourceMappingURL=5.3aaab79d.chunk.css.map */

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
.profile-wrapper{border-right:1px solid #e6ecf0;display:flex;flex-direction:column;max-width:600px;min-height:2000px;width:100%}.profile-header-wrapper{align-items:center;background-color:#fff;border-bottom:1px solid #e6ecf0;border-left:1px solid #e6ecf0;cursor:pointer;display:flex;height:53px;margin:0 auto;max-width:1000px;min-height:53px;padding-left:15px;padding-right:15px;position:-webkit-sticky;position:sticky;top:0;width:100%;z-index:8}.profile-header-back{align-items:flex-start;justify-content:center;min-height:30px;min-width:55px}.header-back-wrapper{align-items:center;border:1px solid transparent;border-radius:9999px;display:flex;height:39px;justify-content:center;margin-left:-5px;transition:.2s ease-in-out;width:39px;will-change:background-color}.header-back-wrapper svg{fill:#1da1f2;height:1.5em}.header-back-wrapper:hover{background-color:rgba(29,161,242,.1)}.profile-header-content{display:flex;flex-direction:column}.profile-header-name{font-size:19px;font-weight:800}.profile-header-squeaks{color:#657786;font-size:14px;line-height:19.6875px}.profile-banner-wrapper{height:200px;max-width:600px;position:relative}.profile-banner-wrapper img{height:100%;object-fit:cover;width:100%}.profile-details-wrapper{padding:10px 15px 15px}.profile-options{align-items:center;display:flex;justify-content:flex-end;position:relative}.profile-image-wrapper{border:4px solid #fff;border-radius:50%;bottom:-30px;height:134px;left:0;min-width:49px;position:absolute;width:134px;z-index:5}.profile-image-wrapper img{border-radius:50%;height:100%;object-fit:cover;width:100%}.profile-edit-button{align-items:center;border:1px solid #1da1f2;border-radius:9999px;cursor:pointer;display:flex;justify-content:center;margin-left:7px;min-height:39px;min-width:98.8px;padding-left:1em;padding-right:1em;transition:.2s ease-in-out}.profile-edit-button span{color:#1da1f2;font-weight:800;text-align:center;width:100%}.profile-edit-button:hover{background-color:rgba(29,161,242,.1)}.unfollow-switch{background-color:#1da1f2}.unfollow-switch span{color:#fff!important}.unfollow-switch:hover{background-color:#ca2055!important;border:1px solid transparent}.unfollow-switch:hover span{color:#fff}.unfollow-switch:hover span span{display:none}.unfollow-switch:hover span:before{content:"Unfollow"}.profile-details-box{margin-top:40px}.profile-name{font-size:19px;font-weight:800}.profile-username{color:#657786;font-size:15px}.profile-bio{margin-bottom:10px;margin-top:10px}.profile-info-box{display:flex;margin-top:10px}.profile-info-box svg{fill:#657786;height:18.75px;margin-right:5px}.profile-date,.profile-location{color:#657786;margin-right:10px}.profile-social-box{display:flex;margin-top:7px}.profile-social-box div{cursor:pointer;display:flex}.profile-social-box div:hover{text-decoration:underline}.follow-num{cursor:pointer;font-weight:700;margin-right:3px}.follow-text{color:#657786;cursor:pointer;margin-right:20px}.profile-nav-menu{align-items:center;border-bottom:1px solid #e6ecf0;display:flex;justify-content:space-around}.profile-nav-item{border-bottom:2px solid transparent;color:#657786;cursor:pointer;font-weight:700;overflow:hidden;padding:15px;text-align:center;transition:.2s;white-space:nowrap;width:100%;will-change:background-color}.profile-nav-item:hover{background-color:rgba(29,161,242,.1);color:#1da1f2}.activeTab{border-bottom:2px solid #1da1f2;color:#1da1f2}.new-msg{align-items:center;border-radius:999px;cursor:pointer;display:flex;justify-content:center;padding:10px;transition:.2s ease-in-out}.new-msg:hover{background-color:rgba(29,161,242,.1)}.new-msg:hover svg{fill:#1da1f2}.new-msg svg{fill:#000;align-items:center;display:flex;height:25px;transition:.2s ease-in-out;width:25px}
/*# sourceMappingURL=900.1c240409.chunk.css.map*/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
(this["webpackJsonptwitter-frontend"]=this["webpackJsonptwitter-frontend"]||[]).push([[3],{141:function(e,t,a){},146:function(e,t,a){"use strict";a.r(t);var n=a(0),c=a.n(n),l=(a(141),a(42),a(37),a(7),a(41),a(13)),r=a(19),s=a(35),i=a(3),u=a(11),o=(a(44),function(){var e=Object(i.c)(u.C),t=Object(i.c)(u.D),a=Object(i.c)(u.t),s=Object(i.b)();Object(n.useEffect)((function(){window.scrollTo(0,0),console.log("fetchTodos"),s(Object(u.c)()),s(Object(u.k)({limit:10,lastSqueak:null}))}),[]);var o=e.map((function(e){return c.a.createElement(r.a,{squeak:e,key:e.getSqueakHash(),id:e.getSqueakHash(),user:e.getAuthor()})}));return c.a.createElement(c.a.Fragment,null,c.a.createElement("ul",{className:"todo-list"},o),"loading"===t?c.a.createElement("div",{className:"todo-list"},c.a.createElement(l.a,null)):c.a.createElement("div",{onClick:function(){s(Object(u.k)({limit:10,lastSqueak:a}))},className:"squeak-btn-side squeak-btn-active"},"LOAD MORE"))});t.default=function(){return c.a.createElement("div",{className:"Home-wrapper"},c.a.createElement("div",{className:"Home-header-wrapper"},c.a.createElement("h2",{className:"Home-header"},"Latest Squeaks")),c.a.createElement(s.a,null),c.a.createElement("div",{className:"Squeak-input-divider"}),c.a.createElement(o,null))}}}]);
//# sourceMappingURL=3.2d2d34d3.chunk.js.map

View file

@ -1 +0,0 @@
{"version":3,"sources":["features/squeaks/Timeline.js","components/Home/index.js"],"names":["Timeline","squeaks","useSelector","selectTimelineSqueaks","loadingStatus","selectTimelineSqueaksStatus","lastSqueak","selectLastTimelineSqueak","dispatch","useDispatch","useEffect","window","scrollTo","console","log","clearTimeline","fetchTimeline","limit","renderedListItems","map","squeak","SqueakCard","key","getSqueakHash","id","user","getAuthor","className","Loader","onClick","Home","MakeSqueak"],"mappings":"oPA+DeA,G,MA5CE,WACf,IAAMC,EAAUC,YAAYC,KACtBC,EAAgBF,YAAYG,KAC5BC,EAAaJ,YAAYK,KACzBC,EAAWC,cAEjBC,qBAAU,WACNC,OAAOC,SAAS,EAAG,GACnBC,QAAQC,IAAI,cACZN,EAASO,eACTP,EAASQ,YAAc,CACrBC,MAAO,GACPX,WAAY,UAEf,IAEH,IAQMY,EAAoBjB,EAAQkB,KAAI,SAACC,GACrC,OAAO,kBAACC,EAAA,EAAD,CAAYD,OAAQA,EAAQE,IAAKF,EAAOG,gBAAiBC,GAAIJ,EAAOG,gBAAiBE,KAAML,EAAOM,iBAG3G,OAAO,oCACC,wBAAIC,UAAU,aAAaT,GAER,YAAlBd,EACD,yBAAKuB,UAAU,aACb,kBAACC,EAAA,EAAD,OAGF,yBAAKC,QAAS,WAnBpBrB,EAASQ,YAAc,CACrBC,MAAO,GACPX,WAAYA,MAiByBqB,UAAU,qCAA3C,gBCtBKG,UAlBF,WAET,OACI,yBAAKH,UAAU,gBACX,yBAAKA,UAAU,uBACX,wBAAIA,UAAU,eAAd,mBAIJ,kBAACI,EAAA,EAAD,MACA,yBAAKJ,UAAU,yBAEf,kBAAC,EAAD","file":"static/js/3.2d2d34d3.chunk.js","sourcesContent":["import React, { useEffect } from 'react'\nimport { useSelector } from 'react-redux'\nimport { useDispatch } from 'react-redux'\n\nimport SqueakCard from '../../components/SqueakCard'\nimport Loader from '../../components/Loader'\n\n\nimport {\n fetchTimeline,\n selectTimelineSqueaks,\n selectTimelineSqueaksStatus,\n selectLastTimelineSqueak,\n clearTimeline,\n} from '../squeaks/squeaksSlice'\n\nimport store from '../../store'\n\n\nconst Timeline = () => {\n const squeaks = useSelector(selectTimelineSqueaks);\n const loadingStatus = useSelector(selectTimelineSqueaksStatus)\n const lastSqueak = useSelector(selectLastTimelineSqueak)\n const dispatch = useDispatch()\n\n useEffect(() => {\n window.scrollTo(0, 0)\n console.log('fetchTodos');\n dispatch(clearTimeline());\n dispatch(fetchTimeline({\n limit: 10,\n lastSqueak: null,\n }));\n }, [])\n\n const fetchMore = () => {\n dispatch(fetchTimeline({\n limit: 10,\n lastSqueak: lastSqueak,\n }));\n }\n\n\n const renderedListItems = squeaks.map((squeak) => {\n return <SqueakCard squeak={squeak} key={squeak.getSqueakHash()} id={squeak.getSqueakHash()} user={squeak.getAuthor()} />\n })\n\n return <>\n <ul className=\"todo-list\">{renderedListItems}</ul>\n\n {loadingStatus === 'loading' ?\n <div className=\"todo-list\">\n <Loader />\n </div>\n :\n <div onClick={() => fetchMore()} className='squeak-btn-side squeak-btn-active'>\n LOAD MORE\n </div>\n }\n\n </>\n}\n\nexport default Timeline\n","import React, { useEffect, useState, useContext, useRef } from 'react'\r\nimport './style.scss'\r\nimport axios from 'axios'\r\nimport ContentEditable from 'react-contenteditable'\r\nimport { ICON_IMGUPLOAD } from '../../Icons'\r\nimport { Link } from 'react-router-dom'\r\nimport { API_URL } from '../../config'\r\nimport Loader from '../Loader'\r\nimport SqueakCard from '../SqueakCard'\r\n//import MakeSqueak from '../MakeSqueak'\r\nimport MakeSqueak from '../../features/squeaks/MakeSqueak'\r\nimport Timeline from '../../features/squeaks/Timeline'\r\n\r\n\r\n\r\nconst Home = () => {\r\n\r\n return (\r\n <div className=\"Home-wrapper\">\r\n <div className=\"Home-header-wrapper\">\r\n <h2 className=\"Home-header\">\r\n Latest Squeaks\r\n </h2>\r\n </div>\r\n <MakeSqueak />\r\n <div className=\"Squeak-input-divider\"></div>\r\n\r\n <Timeline />\r\n\r\n </div>\r\n )\r\n}\r\n\r\nexport default Home\r\n"],"sourceRoot":""}

View file

@ -0,0 +1,2 @@
"use strict";(self.webpackChunktwitter_frontend=self.webpackChunktwitter_frontend||[]).push([[306],{9306:function(e,t,a){a.r(t),a.d(t,{default:function(){return o}});var n=a(2791),l=(a(4569),a(6059),a(8619),a(8608)),r=a(6238),s=a(2989),c=a(6789),u=a(6515),i=(a(8026),function(){var e=(0,c.v9)(u.kg),t=(0,c.v9)(u.y1),a=(0,c.v9)(u.b5),s=(0,c.I0)();(0,n.useEffect)((function(){window.scrollTo(0,0),console.log("fetchTodos"),s((0,u.lq)()),s((0,u.kh)({limit:10,lastSqueak:null}))}),[]);var i=e.map((function(e){return n.createElement(r.Z,{squeak:e,key:e.getSqueakHash(),id:e.getSqueakHash(),user:e.getAuthor()})}));return n.createElement(n.Fragment,null,n.createElement("ul",{className:"todo-list"},i),"loading"===t?n.createElement("div",{className:"todo-list"},n.createElement(l.Z,null)):n.createElement("div",{onClick:function(){s((0,u.kh)({limit:10,lastSqueak:a}))},className:"squeak-btn-side squeak-btn-active"},"LOAD MORE"))}),o=function(){return n.createElement("div",{className:"Home-wrapper"},n.createElement("div",{className:"Home-header-wrapper"},n.createElement("h2",{className:"Home-header"},"Latest Squeaks")),n.createElement(s.Z,null),n.createElement("div",{className:"Squeak-input-divider"}),n.createElement(i,null))}}}]);
//# sourceMappingURL=306.dc556745.chunk.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"static/js/306.dc556745.chunk.js","mappings":"gQA+DA,G,QA5CiB,WACf,IAAMA,GAAUC,EAAAA,EAAAA,IAAYC,EAAAA,IACtBC,GAAgBF,EAAAA,EAAAA,IAAYG,EAAAA,IAC5BC,GAAaJ,EAAAA,EAAAA,IAAYK,EAAAA,IACzBC,GAAWC,EAAAA,EAAAA,OAEjBC,EAAAA,EAAAA,YAAU,WACNC,OAAOC,SAAS,EAAG,GACnBC,QAAQC,IAAI,cACZN,GAASO,EAAAA,EAAAA,OACTP,GAASQ,EAAAA,EAAAA,IAAc,CACrBC,MAAO,GACPX,WAAY,UAEf,IAEH,IAQMY,EAAoBjB,EAAQkB,KAAI,SAACC,GACrC,OAAO,gBAACC,EAAA,EAAD,CAAYD,OAAQA,EAAQE,IAAKF,EAAOG,gBAAiBC,GAAIJ,EAAOG,gBAAiBE,KAAML,EAAOM,iBAG3G,OAAO,gCACC,sBAAIC,UAAU,aAAaT,GAER,YAAlBd,EACD,uBAAKuB,UAAU,aACb,gBAACC,EAAA,EAAD,OAGF,uBAAKC,QAAS,WAnBpBrB,GAASQ,EAAAA,EAAAA,IAAc,CACrBC,MAAO,GACPX,WAAYA,MAiByBqB,UAAU,qCAA3C,gBCtBV,EAlBa,WAET,OACI,uBAAKA,UAAU,gBACX,uBAAKA,UAAU,uBACX,sBAAIA,UAAU,eAAd,mBAIJ,gBAACG,EAAA,EAAD,MACA,uBAAKH,UAAU,yBAEf,gBAAC,EAAD","sources":["features/squeaks/Timeline.js","components/Home/index.js"],"sourcesContent":["import React, { useEffect } from 'react'\nimport { useSelector } from 'react-redux'\nimport { useDispatch } from 'react-redux'\n\nimport SqueakCard from '../../components/SqueakCard'\nimport Loader from '../../components/Loader'\n\n\nimport {\n fetchTimeline,\n selectTimelineSqueaks,\n selectTimelineSqueaksStatus,\n selectLastTimelineSqueak,\n clearTimeline,\n} from '../squeaks/squeaksSlice'\n\nimport store from '../../store'\n\n\nconst Timeline = () => {\n const squeaks = useSelector(selectTimelineSqueaks);\n const loadingStatus = useSelector(selectTimelineSqueaksStatus)\n const lastSqueak = useSelector(selectLastTimelineSqueak)\n const dispatch = useDispatch()\n\n useEffect(() => {\n window.scrollTo(0, 0)\n console.log('fetchTodos');\n dispatch(clearTimeline());\n dispatch(fetchTimeline({\n limit: 10,\n lastSqueak: null,\n }));\n }, [])\n\n const fetchMore = () => {\n dispatch(fetchTimeline({\n limit: 10,\n lastSqueak: lastSqueak,\n }));\n }\n\n\n const renderedListItems = squeaks.map((squeak) => {\n return <SqueakCard squeak={squeak} key={squeak.getSqueakHash()} id={squeak.getSqueakHash()} user={squeak.getAuthor()} />\n })\n\n return <>\n <ul className=\"todo-list\">{renderedListItems}</ul>\n\n {loadingStatus === 'loading' ?\n <div className=\"todo-list\">\n <Loader />\n </div>\n :\n <div onClick={() => fetchMore()} className='squeak-btn-side squeak-btn-active'>\n LOAD MORE\n </div>\n }\n\n </>\n}\n\nexport default Timeline\n","import React, { useEffect, useState, useContext, useRef } from 'react'\r\nimport './style.scss'\r\nimport axios from 'axios'\r\nimport ContentEditable from 'react-contenteditable'\r\nimport { ICON_IMGUPLOAD } from '../../Icons'\r\nimport { Link } from 'react-router-dom'\r\nimport { API_URL } from '../../config'\r\nimport Loader from '../Loader'\r\nimport SqueakCard from '../SqueakCard'\r\n//import MakeSqueak from '../MakeSqueak'\r\nimport MakeSqueak from '../../features/squeaks/MakeSqueak'\r\nimport Timeline from '../../features/squeaks/Timeline'\r\n\r\n\r\n\r\nconst Home = () => {\r\n\r\n return (\r\n <div className=\"Home-wrapper\">\r\n <div className=\"Home-header-wrapper\">\r\n <h2 className=\"Home-header\">\r\n Latest Squeaks\r\n </h2>\r\n </div>\r\n <MakeSqueak />\r\n <div className=\"Squeak-input-divider\"></div>\r\n\r\n <Timeline />\r\n\r\n </div>\r\n )\r\n}\r\n\r\nexport default Home\r\n"],"names":["squeaks","useSelector","selectTimelineSqueaks","loadingStatus","selectTimelineSqueaksStatus","lastSqueak","selectLastTimelineSqueak","dispatch","useDispatch","useEffect","window","scrollTo","console","log","clearTimeline","fetchTimeline","limit","renderedListItems","map","squeak","SqueakCard","key","getSqueakHash","id","user","getAuthor","className","Loader","onClick","MakeSqueak"],"sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -4,13 +4,6 @@ object-assign
@license MIT
*/
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@ -59,3 +52,5 @@ object-assign
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
//! moment.js

File diff suppressed because one or more lines are too long

View file

@ -1,2 +0,0 @@
!function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],s=0,d=[];s<i.length;s++)o=i[s],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);d.length;)d.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,o=1;o<r.length;o++){var c=r[o];0!==a[c]&&(n=!1)}n&&(u.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={1:0},a={1:0},u=[];function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{3:1,4:1,5:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{3:"1f6bb621",4:"6512f3a3",5:"3aaab79d"}[e]+".chunk.css",a=i.p+n,u=document.getElementsByTagName("link"),c=0;c<u.length;c++){var l=(f=u[c]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(l===n||l===a))return t()}var s=document.getElementsByTagName("style");for(c=0;c<s.length;c++){var f;if((l=(f=s[c]).getAttribute("data-href"))===n||l===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=n,delete o[e],d.parentNode.removeChild(d),r(u)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var u,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"2d2d34d3",4:"13c6f568",5:"2d635141"}[e]+".chunk.js"}(e);var l=new Error;u=function(t){c.onerror=c.onload=null,clearTimeout(s);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,r[1](l)}a[e]=void 0}};var s=setTimeout((function(){u({type:"timeout",target:c})}),12e4);c.onerror=c.onload=u,document.head.appendChild(c)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var c=this["webpackJsonptwitter-frontend"]=this["webpackJsonptwitter-frontend"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var s=0;s<c.length;s++)t(c[s]);var f=l;r()}([]);
//# sourceMappingURL=runtime-main.05610a5d.js.map

File diff suppressed because one or more lines are too long