mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Make sell price configurable (#1963)
* Make sell price configurable in frontend * Update frontend build
This commit is contained in:
parent
9a0cbab7aa
commit
67dea0adf5
19 changed files with 150 additions and 42 deletions
|
|
@ -20,11 +20,13 @@ import {
|
|||
const Nav = ({history}) => {
|
||||
const { state, actions } = useContext(StoreContext)
|
||||
|
||||
const { session } = state
|
||||
const { sellPrice, session } = state
|
||||
const [moreMenu, setMoreMenu] = useState(false)
|
||||
const [theme, setTheme] = useState(true)
|
||||
const [modalOpen, setModalOpen] = useState(false)
|
||||
const [sellPriceModalOpen, setSellPriceModalOpen] = useState(false)
|
||||
const [styleBody, setStyleBody] = useState(false)
|
||||
const [newSellPriceMsat, setNewSellPriceMsat] = useState('')
|
||||
|
||||
const isInitialMount = useRef(true);
|
||||
useEffect(() => {
|
||||
|
|
@ -45,6 +47,7 @@ const Nav = ({history}) => {
|
|||
}else if(!localStorage.getItem('Theme')){
|
||||
localStorage.setItem('Theme', 'light')
|
||||
}
|
||||
actions.getSellPrice();
|
||||
}, [])
|
||||
|
||||
const path = history.location.pathname.slice(4,9)
|
||||
|
|
@ -60,6 +63,12 @@ const Nav = ({history}) => {
|
|||
setTimeout(()=>{ setModalOpen(!modalOpen) },20)
|
||||
}
|
||||
|
||||
const toggleSellPriceModal = (param, type) => {
|
||||
setStyleBody(!styleBody)
|
||||
setTimeout(()=>{ setSellPriceModalOpen(!sellPriceModalOpen) },20)
|
||||
}
|
||||
|
||||
|
||||
const handleModalClick = (e) => {
|
||||
e.stopPropagation()
|
||||
}
|
||||
|
|
@ -75,6 +84,20 @@ const Nav = ({history}) => {
|
|||
}
|
||||
}
|
||||
|
||||
const updateSellPrice = () => {
|
||||
let values = {
|
||||
sellPriceMsat: newSellPriceMsat,
|
||||
}
|
||||
actions.setSellPrice(values)
|
||||
toggleSellPriceModal()
|
||||
}
|
||||
|
||||
const setSellPriceToDefault = () => {
|
||||
actions.clearSellPrice()
|
||||
toggleSellPriceModal()
|
||||
}
|
||||
|
||||
|
||||
return(
|
||||
<div className="Nav-component">
|
||||
<div className="Nav-width">
|
||||
|
|
@ -125,11 +148,15 @@ const Nav = ({history}) => {
|
|||
<div onClick={()=>openMore()} style={{display: moreMenu ? 'block' : 'none'}} className="more-menu-background">
|
||||
<div className="more-modal-wrapper">
|
||||
{moreMenu ?
|
||||
<div style={{top: `${document.getElementById('moremenu').getBoundingClientRect().top - 40}px`, left: `${document.getElementById('moremenu').getBoundingClientRect().left}px`, height: !session ? '104px' : null }} onClick={(e)=>handleMenuClick(e)} className="more-menu-content">
|
||||
<div style={{top: `${document.getElementById('moremenu').getBoundingClientRect().top - 40}px`, left: `${document.getElementById('moremenu').getBoundingClientRect().left}px`, height: '154px' }} onClick={(e)=>handleMenuClick(e)} className="more-menu-content">
|
||||
<div onClick={changeTheme} className="more-menu-item">
|
||||
<span>Change Theme</span>
|
||||
<span>{theme ? <ICON_DARK/> : <ICON_LIGHT />}</span>
|
||||
</div>
|
||||
<div onClick={toggleSellPriceModal} className="more-menu-item">
|
||||
<span>Update Sell Price</span>
|
||||
<span><ICON_HASH /></span>
|
||||
</div>
|
||||
<div onClick={()=>actions.logout()} className="more-menu-item">
|
||||
Log out
|
||||
</div>
|
||||
|
|
@ -171,6 +198,46 @@ const Nav = ({history}) => {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{/* Modal for set sell price */}
|
||||
<div onClick={()=>toggleSellPriceModal()} style={{display: sellPriceModalOpen ? 'block' : 'none'}} className="modal-edit">
|
||||
<div onClick={(e)=>handleModalClick(e)} className="modal-content">
|
||||
<div className="modal-header">
|
||||
<div className="modal-closeIcon">
|
||||
<div onClick={()=>toggleSellPriceModal()} className="modal-closeIcon-wrap">
|
||||
<ICON_CLOSE />
|
||||
</div>
|
||||
</div>
|
||||
<p className="modal-title">'Sell Price'</p>
|
||||
<div className="save-modal-wrapper">
|
||||
<div onClick={updateSellPrice} className="save-modal-btn">
|
||||
Save
|
||||
</div>
|
||||
</div>
|
||||
<div className="save-modal-wrapper">
|
||||
<div onClick={setSellPriceToDefault} className="save-modal-btn">
|
||||
Reset To Default
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{sellPrice &&
|
||||
<div className="modal-body">
|
||||
<form className="edit-form">
|
||||
<div className="edit-input-wrap">
|
||||
<div className="edit-input-content">
|
||||
<label>Sell Price (msats)</label>
|
||||
<input defaultValue={sellPrice.getPriceMsatIsSet() ? sellPrice.getPriceMsat() : sellPrice.getDefaultPriceMsat()} onChange={(e)=>setNewSellPriceMsat(e.target.value)} type="text" name="sellPrice" className="edit-input"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -195,6 +195,18 @@ export const useActions = (state, dispatch) => ({
|
|||
dispatch({type: types.SET_STATE, payload: {loading: true}})
|
||||
dispatch({type: types.GET_EXTERNAL_ADDRESS, payload: data})
|
||||
},
|
||||
getSellPrice: data => {
|
||||
dispatch({type: types.SET_STATE, payload: {loading: true}})
|
||||
dispatch({type: types.GET_SELL_PRICE, payload: data})
|
||||
},
|
||||
setSellPrice: data => {
|
||||
dispatch({type: types.SET_STATE, payload: {loading: true}})
|
||||
dispatch({type: types.SET_SELL_PRICE, payload: data})
|
||||
},
|
||||
clearSellPrice: data => {
|
||||
dispatch({type: types.SET_STATE, payload: {loading: true}})
|
||||
dispatch({type: types.CLEAR_SELL_PRICE, payload: data})
|
||||
},
|
||||
connectPeer: data => {
|
||||
dispatch({type: types.CONNECT_PEER, payload: data})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -45,6 +45,9 @@ import {
|
|||
getPeerRequest,
|
||||
getExternalAddressRequest,
|
||||
getSearchSqueakDisplaysRequest,
|
||||
getSellPriceRequest,
|
||||
setSellPriceRequest,
|
||||
clearSellPriceRequest,
|
||||
} from '../squeakclient/requests';
|
||||
|
||||
export const token = () => {
|
||||
|
|
@ -381,14 +384,10 @@ export const applyMiddleware = dispatch => action => {
|
|||
// .then(res=>dispatch({ type: types.SEARCH, payload: res.data }))
|
||||
// .catch(err=>dispatch({ type: types.ERROR, payload: err.response.data }))
|
||||
|
||||
console.log(action.payload);
|
||||
let searchText = action.payload.searchText
|
||||
let lastSearchSqueak = action.payload.lastSqueak
|
||||
console.log(lastSearchSqueak);
|
||||
return getSearchSqueakDisplaysRequest(searchText, 10, lastSearchSqueak, (resp) => {
|
||||
console.log(resp);
|
||||
let payload = {"searchSqueaks": resp };
|
||||
console.log(payload);
|
||||
dispatch({ type: types.SEARCH, payload: payload })
|
||||
});
|
||||
|
||||
|
|
@ -534,6 +533,29 @@ export const applyMiddleware = dispatch => action => {
|
|||
dispatch({ type: types.GET_EXTERNAL_ADDRESS, payload: payload, data: action.payload });
|
||||
});
|
||||
|
||||
case types.GET_SELL_PRICE:
|
||||
return getSellPriceRequest((resp) => {
|
||||
let payload = {"sellPrice": resp };
|
||||
dispatch({ type: types.GET_SELL_PRICE, payload: payload, data: action.payload });
|
||||
});
|
||||
|
||||
case types.SET_SELL_PRICE:
|
||||
let newSellPriceMsat = action.payload.sellPriceMsat;
|
||||
return setSellPriceRequest(newSellPriceMsat, (resp) => {
|
||||
return getSellPriceRequest((resp) => {
|
||||
let payload = {"sellPrice": resp };
|
||||
dispatch({ type: types.GET_SELL_PRICE, payload: payload, data: action.payload });
|
||||
});
|
||||
});
|
||||
|
||||
case types.CLEAR_SELL_PRICE:
|
||||
return clearSellPriceRequest((resp) => {
|
||||
return getSellPriceRequest((resp) => {
|
||||
let payload = {"sellPrice": resp };
|
||||
dispatch({ type: types.GET_SELL_PRICE, payload: payload, data: action.payload });
|
||||
});
|
||||
});
|
||||
|
||||
case types.SAVE_PEER:
|
||||
let savePeerName = action.payload.name;
|
||||
let savePeerNetwork = action.payload.network;
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ const initialState = {
|
|||
receivedPayments: [],
|
||||
privateKey: null,
|
||||
externalAddress: null,
|
||||
sellPrice: null,
|
||||
error: false
|
||||
}
|
||||
|
||||
|
|
@ -212,6 +213,9 @@ const reducer = (state = initialState, action) => {
|
|||
case type.GET_EXTERNAL_ADDRESS:
|
||||
return {...state, ...action.payload}
|
||||
|
||||
case type.GET_SELL_PRICE:
|
||||
return {...state, ...action.payload}
|
||||
|
||||
case type.DELETE_TWEET:
|
||||
let deletedSqueakHash = action.payload.squeakHash
|
||||
let userSqueaksD = state.userSqueaks
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@ export default {
|
|||
CONNECT_PEER: 'CONNECT_PEER',
|
||||
DISCONNECT_PEER: 'DISCONNECT_PEER',
|
||||
GET_EXTERNAL_ADDRESS: 'GET_EXTERNAL_ADDRESS',
|
||||
GET_SELL_PRICE: 'GET_SELL_PRICE',
|
||||
SET_SELL_PRICE: 'SET_SELL_PRICE',
|
||||
CLEAR_SELL_PRICE: 'CLEAR_SELL_PRICE',
|
||||
SAVE_PEER: 'SAVE_PEER',
|
||||
GET_CONNECTED_PEERS: 'GET_CONNECTED_PEERS',
|
||||
GET_PEERS: 'GET_PEERS',
|
||||
|
|
|
|||
|
|
@ -1,23 +1,23 @@
|
|||
{
|
||||
"files": {
|
||||
"main.css": "/static/css/main.f60a9de3.chunk.css",
|
||||
"main.js": "/static/js/main.f95c5c83.chunk.js",
|
||||
"main.js.map": "/static/js/main.f95c5c83.chunk.js.map",
|
||||
"runtime-main.js": "/static/js/runtime-main.9240de99.js",
|
||||
"runtime-main.js.map": "/static/js/runtime-main.9240de99.js.map",
|
||||
"main.js": "/static/js/main.516cc67d.chunk.js",
|
||||
"main.js.map": "/static/js/main.516cc67d.chunk.js.map",
|
||||
"runtime-main.js": "/static/js/runtime-main.ea3d56fa.js",
|
||||
"runtime-main.js.map": "/static/js/runtime-main.ea3d56fa.js.map",
|
||||
"static/js/2.b3688b8c.chunk.js": "/static/js/2.b3688b8c.chunk.js",
|
||||
"static/js/2.b3688b8c.chunk.js.map": "/static/js/2.b3688b8c.chunk.js.map",
|
||||
"static/css/3.1f6bb621.chunk.css": "/static/css/3.1f6bb621.chunk.css",
|
||||
"static/js/3.686cdeb7.chunk.js": "/static/js/3.686cdeb7.chunk.js",
|
||||
"static/js/3.686cdeb7.chunk.js.map": "/static/js/3.686cdeb7.chunk.js.map",
|
||||
"static/css/4.6512f3a3.chunk.css": "/static/css/4.6512f3a3.chunk.css",
|
||||
"static/js/4.04dd649a.chunk.js": "/static/js/4.04dd649a.chunk.js",
|
||||
"static/js/4.04dd649a.chunk.js.map": "/static/js/4.04dd649a.chunk.js.map",
|
||||
"static/js/4.fd5df940.chunk.js": "/static/js/4.fd5df940.chunk.js",
|
||||
"static/js/4.fd5df940.chunk.js.map": "/static/js/4.fd5df940.chunk.js.map",
|
||||
"static/css/5.3aaab79d.chunk.css": "/static/css/5.3aaab79d.chunk.css",
|
||||
"static/js/5.6b67b257.chunk.js": "/static/js/5.6b67b257.chunk.js",
|
||||
"static/js/5.6b67b257.chunk.js.map": "/static/js/5.6b67b257.chunk.js.map",
|
||||
"static/js/5.4cdbf38d.chunk.js": "/static/js/5.4cdbf38d.chunk.js",
|
||||
"static/js/5.4cdbf38d.chunk.js.map": "/static/js/5.4cdbf38d.chunk.js.map",
|
||||
"index.html": "/index.html",
|
||||
"precache-manifest.b2ed0a44fa26408c775e7fc6bc6af37e.js": "/precache-manifest.b2ed0a44fa26408c775e7fc6bc6af37e.js",
|
||||
"precache-manifest.d07d3066511bdd271082f1ee45aab170.js": "/precache-manifest.d07d3066511bdd271082f1ee45aab170.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",
|
||||
|
|
@ -27,9 +27,9 @@
|
|||
"static/media/icon.a0c2d343.svg": "/static/media/icon.a0c2d343.svg"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/js/runtime-main.9240de99.js",
|
||||
"static/js/runtime-main.ea3d56fa.js",
|
||||
"static/js/2.b3688b8c.chunk.js",
|
||||
"static/css/main.f60a9de3.chunk.css",
|
||||
"static/js/main.f95c5c83.chunk.js"
|
||||
"static/js/main.516cc67d.chunk.js"
|
||||
]
|
||||
}
|
||||
|
|
@ -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.f60a9de3.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:"686cdeb7",4:"04dd649a",5:"6b67b257"}[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.b3688b8c.chunk.js"></script><script src="/static/js/main.f95c5c83.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><link href="/static/css/main.f60a9de3.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],f=0,d=[];f<i.length;f++)o=i[f],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(s&&s(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=(s=u[c]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===n||l===a))return t()}var f=document.getElementsByTagName("style");for(c=0;c<f.length;c++){var s;if((l=(s=f[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:"686cdeb7",4:"fd5df940",5:"4cdbf38d"}[e]+".chunk.js"}(e);var l=new Error;u=function(t){c.onerror=c.onload=null,clearTimeout(f);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 f=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 f=0;f<c.length;f++)t(c[f]);var s=l;r()}([])</script><script src="/static/js/2.b3688b8c.chunk.js"></script><script src="/static/js/main.516cc67d.chunk.js"></script></body></html>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
||||
{
|
||||
"revision": "45c81d88d8e412b6b335141c2db7bfbe",
|
||||
"revision": "cb5cb11983447bec47373914e224b52d",
|
||||
"url": "/index.html"
|
||||
},
|
||||
{
|
||||
|
|
@ -8,15 +8,15 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||
"url": "/static/css/3.1f6bb621.chunk.css"
|
||||
},
|
||||
{
|
||||
"revision": "f11a5bdfebea5d14e77a",
|
||||
"revision": "2b0caa439baadb979112",
|
||||
"url": "/static/css/4.6512f3a3.chunk.css"
|
||||
},
|
||||
{
|
||||
"revision": "e6c0845bcb9aa532caa6",
|
||||
"revision": "efa04bd042409fd06c65",
|
||||
"url": "/static/css/5.3aaab79d.chunk.css"
|
||||
},
|
||||
{
|
||||
"revision": "f2797e8f1fa8d04f8b6e",
|
||||
"revision": "4ba42573e4286c26515c",
|
||||
"url": "/static/css/main.f60a9de3.chunk.css"
|
||||
},
|
||||
{
|
||||
|
|
@ -32,20 +32,20 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||
"url": "/static/js/3.686cdeb7.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "f11a5bdfebea5d14e77a",
|
||||
"url": "/static/js/4.04dd649a.chunk.js"
|
||||
"revision": "2b0caa439baadb979112",
|
||||
"url": "/static/js/4.fd5df940.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "e6c0845bcb9aa532caa6",
|
||||
"url": "/static/js/5.6b67b257.chunk.js"
|
||||
"revision": "efa04bd042409fd06c65",
|
||||
"url": "/static/js/5.4cdbf38d.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "f2797e8f1fa8d04f8b6e",
|
||||
"url": "/static/js/main.f95c5c83.chunk.js"
|
||||
"revision": "4ba42573e4286c26515c",
|
||||
"url": "/static/js/main.516cc67d.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "0e3f27bd22910e4b49e8",
|
||||
"url": "/static/js/runtime-main.9240de99.js"
|
||||
"revision": "86ccd1dc1dee9e93587f",
|
||||
"url": "/static/js/runtime-main.ea3d56fa.js"
|
||||
},
|
||||
{
|
||||
"revision": "a0c2d343127a93b025409da6fd970700",
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||
|
||||
importScripts(
|
||||
"/precache-manifest.b2ed0a44fa26408c775e7fc6bc6af37e.js"
|
||||
"/precache-manifest.d07d3066511bdd271082f1ee45aab170.js"
|
||||
);
|
||||
|
||||
self.addEventListener('message', (event) => {
|
||||
|
|
|
|||
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
|
|
@ -1,2 +1,2 @@
|
|||
!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:"686cdeb7",4:"04dd649a",5:"6b67b257"}[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.9240de99.js.map
|
||||
!function(e){function t(t){for(var n,o,i=t[0],c=t[1],l=t[2],f=0,d=[];f<i.length;f++)o=i[f],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(s&&s(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=(s=u[c]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===n||l===a))return t()}var f=document.getElementsByTagName("style");for(c=0;c<f.length;c++){var s;if((l=(s=f[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:"686cdeb7",4:"fd5df940",5:"4cdbf38d"}[e]+".chunk.js"}(e);var l=new Error;u=function(t){c.onerror=c.onload=null,clearTimeout(f);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 f=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 f=0;f<c.length;f++)t(c[f]);var s=l;r()}([]);
|
||||
//# sourceMappingURL=runtime-main.ea3d56fa.js.map
|
||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue