mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-14 12:43:24 +02:00
Cleanup old squeak page (#813)
* Delete old comments from squeak page * Delete old comments from squeak detail component * Update static build
This commit is contained in:
parent
cc4b0432d9
commit
6c0dc044d5
15 changed files with 30 additions and 166 deletions
|
|
@ -59,10 +59,6 @@ export default function SqueakDetailItem({
|
|||
hash,
|
||||
squeak,
|
||||
network,
|
||||
// handleReplyClick,
|
||||
// handleDeleteClick,
|
||||
// handleViewDetailsClick,
|
||||
// handleUnlockClick,
|
||||
reloadSqueak,
|
||||
...props
|
||||
}) {
|
||||
|
|
@ -78,7 +74,6 @@ export default function SqueakDetailItem({
|
|||
|
||||
|
||||
const blockDetailUrl = () => {
|
||||
// return "https://blockstream.info/testnet/block/" + squeak.getBlockHash();
|
||||
return getBlockDetailUrl(squeak.getBlockHash(), network);
|
||||
};
|
||||
|
||||
|
|
@ -131,7 +126,6 @@ export default function SqueakDetailItem({
|
|||
if (!squeak) {
|
||||
return;
|
||||
}
|
||||
// handleReplyClick();
|
||||
handleClickOpenReplyDialog();
|
||||
}
|
||||
|
||||
|
|
@ -141,7 +135,6 @@ export default function SqueakDetailItem({
|
|||
if (!squeak) {
|
||||
return;
|
||||
}
|
||||
// handleDeleteClick();
|
||||
handleClickOpenDeleteDialog();
|
||||
}
|
||||
|
||||
|
|
@ -151,9 +144,6 @@ export default function SqueakDetailItem({
|
|||
if (!squeak) {
|
||||
return;
|
||||
}
|
||||
//handleClickOpenDeleteDialog();
|
||||
// goToSqueakDetailPage();
|
||||
// handleViewDetailsClick();
|
||||
handleClickOpenViewDetailsDialog();
|
||||
}
|
||||
|
||||
|
|
@ -163,8 +153,6 @@ export default function SqueakDetailItem({
|
|||
if (!squeak) {
|
||||
return;
|
||||
}
|
||||
// goToBuyPage(squeak.getSqueakHash());
|
||||
// handleUnlockClick();
|
||||
handleClickOpenBuyDialog();
|
||||
}
|
||||
|
||||
|
|
@ -184,7 +172,6 @@ export default function SqueakDetailItem({
|
|||
};
|
||||
|
||||
const handlePaymentComplete = () => {
|
||||
// getSqueak(hash);
|
||||
reloadSqueak();
|
||||
setUnlockedSnackbarOpen(true);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -29,11 +29,6 @@ import SqueakDetailItem from "../../components/SqueakDetailItem";
|
|||
import SqueakThreadItem from "../../components/SqueakThreadItem";
|
||||
import SqueakUserAvatar from "../../components/SqueakUserAvatar";
|
||||
|
||||
// import MakeSqueakDialog from "../../components/MakeSqueakDialog";
|
||||
// import DeleteSqueakDialog from "../../components/DeleteSqueakDialog";
|
||||
// import BuySqueakDialog from "../../components/BuySqueakDialog";
|
||||
// import SqueakDetailsDialog from "../../components/SqueakDetailsDialog";
|
||||
|
||||
|
||||
import {
|
||||
getSqueakDisplayRequest,
|
||||
|
|
@ -46,11 +41,6 @@ import {
|
|||
} from "../../navigation/navigation"
|
||||
|
||||
|
||||
// function Alert(props) {
|
||||
// return <MuiAlert elevation={6} variant="filled" {...props} />;
|
||||
// }
|
||||
|
||||
|
||||
export default function SqueakPage() {
|
||||
var classes = useStyles();
|
||||
const history = useHistory();
|
||||
|
|
@ -60,12 +50,6 @@ export default function SqueakPage() {
|
|||
const [replySqueaks, setReplySqueaks] = useState([]);
|
||||
const [network, setNetwork] = useState("");
|
||||
|
||||
// const [replyDialogOpen, setReplyDialogOpen] = useState(false);
|
||||
// const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
|
||||
// const [buyDialogOpen, setBuyDialogOpen] = useState(false);
|
||||
// const [viewDetailsDialogOpen, setViewDetailsDialogOpen] = useState(false);
|
||||
// const [unlockedSnackbarOpen, setUnlockedSnackbarOpen] = useState(false);
|
||||
|
||||
const getSqueak = (hash) => {
|
||||
getSqueakDisplayRequest(hash, setSqueak);
|
||||
};
|
||||
|
|
@ -90,51 +74,6 @@ export default function SqueakPage() {
|
|||
return oldestKnownAncestor.getReplyTo();
|
||||
};
|
||||
|
||||
// const handleClickOpen = () => {
|
||||
// setReplyDialogOpen(true);
|
||||
// };
|
||||
//
|
||||
// const handleClose = () => {
|
||||
// setReplyDialogOpen(false);
|
||||
// };
|
||||
//
|
||||
// const handleClickOpenDeleteDialog = () => {
|
||||
// setDeleteDialogOpen(true);
|
||||
// console.log("deleteDialogOpen: " + deleteDialogOpen);
|
||||
// };
|
||||
//
|
||||
// const handleCloseDeleteDialog = () => {
|
||||
// setDeleteDialogOpen(false);
|
||||
// };
|
||||
//
|
||||
// const handleClickOpenBuyDialog = () => {
|
||||
// setBuyDialogOpen(true);
|
||||
// };
|
||||
//
|
||||
// const handleCloseBuyDialog = () => {
|
||||
// setBuyDialogOpen(false);
|
||||
// };
|
||||
//
|
||||
// const handleClickOpenViewDetailsDialog = () => {
|
||||
// setViewDetailsDialogOpen(true);
|
||||
// };
|
||||
//
|
||||
// const handleCloseViewDetailsDialog = () => {
|
||||
// setViewDetailsDialogOpen(false);
|
||||
// };
|
||||
|
||||
// const handleCloseUnlockedSnackbar = (event, reason) => {
|
||||
// if (reason === 'clickaway') {
|
||||
// return;
|
||||
// }
|
||||
// setUnlockedSnackbarOpen(false);
|
||||
// };
|
||||
//
|
||||
// const handlePaymentComplete = () => {
|
||||
// getSqueak(hash);
|
||||
// setUnlockedSnackbarOpen(true);
|
||||
// };
|
||||
|
||||
const getCurrentSqueak = () => {
|
||||
getSqueak(hash);
|
||||
};
|
||||
|
|
@ -318,68 +257,6 @@ export default function SqueakPage() {
|
|||
)
|
||||
}
|
||||
|
||||
//
|
||||
// function MakeSqueakDialogContent() {
|
||||
// return (
|
||||
// <>
|
||||
// <MakeSqueakDialog
|
||||
// open={replyDialogOpen}
|
||||
// handleClose={handleClose}
|
||||
// replytoSqueak={squeak}
|
||||
// ></MakeSqueakDialog>
|
||||
// </>
|
||||
// )
|
||||
// }
|
||||
//
|
||||
// function DeleteSqueakDialogContent() {
|
||||
// return (
|
||||
// <>
|
||||
// <DeleteSqueakDialog
|
||||
// open={deleteDialogOpen}
|
||||
// handleClose={handleCloseDeleteDialog}
|
||||
// squeakToDelete={squeak}
|
||||
// ></DeleteSqueakDialog>
|
||||
// </>
|
||||
// )
|
||||
// }
|
||||
//
|
||||
// function BuyDialogContent() {
|
||||
// return (
|
||||
// <>
|
||||
// <BuySqueakDialog
|
||||
// open={buyDialogOpen}
|
||||
// handleClose={handleCloseBuyDialog}
|
||||
// handlePaymentComplete={handlePaymentComplete}
|
||||
// hash={hash}
|
||||
// ></BuySqueakDialog>
|
||||
// </>
|
||||
// )
|
||||
// }
|
||||
//
|
||||
// function ViewDetailsDialogContent() {
|
||||
// return (
|
||||
// <>
|
||||
// <SqueakDetailsDialog
|
||||
// open={viewDetailsDialogOpen}
|
||||
// handleClose={handleCloseViewDetailsDialog}
|
||||
// hash={hash}
|
||||
// squeak={squeak}
|
||||
// ></SqueakDetailsDialog>
|
||||
// </>
|
||||
// )
|
||||
// }
|
||||
//
|
||||
//
|
||||
// function SqueakUnlockedContent() {
|
||||
// return (
|
||||
// <Snackbar open={unlockedSnackbarOpen} autoHideDuration={6000} onClose={handleCloseUnlockedSnackbar}>
|
||||
// <Alert onClose={handleCloseUnlockedSnackbar} severity="success">
|
||||
// Squeak unlocked!
|
||||
// </Alert>
|
||||
// </Snackbar>
|
||||
// )
|
||||
// }
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageTitle title="Squeak" />
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
{
|
||||
"files": {
|
||||
"main.js": "/static/js/main.6bec17f9.chunk.js",
|
||||
"main.js.map": "/static/js/main.6bec17f9.chunk.js.map",
|
||||
"main.js": "/static/js/main.f3825bc7.chunk.js",
|
||||
"main.js.map": "/static/js/main.f3825bc7.chunk.js.map",
|
||||
"runtime-main.js": "/static/js/runtime-main.9f0ba400.js",
|
||||
"runtime-main.js.map": "/static/js/runtime-main.9f0ba400.js.map",
|
||||
"static/css/2.15110fae.chunk.css": "/static/css/2.15110fae.chunk.css",
|
||||
"static/js/2.0730cb3f.chunk.js": "/static/js/2.0730cb3f.chunk.js",
|
||||
"static/js/2.0730cb3f.chunk.js.map": "/static/js/2.0730cb3f.chunk.js.map",
|
||||
"static/css/2.ea4ba2f0.chunk.css": "/static/css/2.ea4ba2f0.chunk.css",
|
||||
"static/js/2.beeb4ad8.chunk.js": "/static/js/2.beeb4ad8.chunk.js",
|
||||
"static/js/2.beeb4ad8.chunk.js.map": "/static/js/2.beeb4ad8.chunk.js.map",
|
||||
"index.html": "/index.html",
|
||||
"precache-manifest.3ca520d21d6c54a7d5b0bb7f09da1d86.js": "/precache-manifest.3ca520d21d6c54a7d5b0bb7f09da1d86.js",
|
||||
"precache-manifest.20c149ba6764b4de544763a3f5034b6a.js": "/precache-manifest.20c149ba6764b4de544763a3f5034b6a.js",
|
||||
"service-worker.js": "/service-worker.js",
|
||||
"static/css/2.15110fae.chunk.css.map": "/static/css/2.15110fae.chunk.css.map",
|
||||
"static/js/2.0730cb3f.chunk.js.LICENSE.txt": "/static/js/2.0730cb3f.chunk.js.LICENSE.txt",
|
||||
"static/css/2.ea4ba2f0.chunk.css.map": "/static/css/2.ea4ba2f0.chunk.css.map",
|
||||
"static/js/2.beeb4ad8.chunk.js.LICENSE.txt": "/static/js/2.beeb4ad8.chunk.js.LICENSE.txt",
|
||||
"static/media/font-awesome.min.css": "/static/media/fontawesome-webfont.fee66e71.woff",
|
||||
"static/media/google.svg": "/static/media/google.695a3160.svg",
|
||||
"static/media/logo.svg": "/static/media/logo.a0185b04.svg"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/js/runtime-main.9f0ba400.js",
|
||||
"static/css/2.15110fae.chunk.css",
|
||||
"static/js/2.0730cb3f.chunk.js",
|
||||
"static/js/main.6bec17f9.chunk.js"
|
||||
"static/css/2.ea4ba2f0.chunk.css",
|
||||
"static/js/2.beeb4ad8.chunk.js",
|
||||
"static/js/main.f3825bc7.chunk.js"
|
||||
]
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>Squeak Node</title><meta name="description" content="Squeak Node is a frontend for accessing a squeak node"><meta name="keywords" content="squeak, bitcoin, lightning"><meta name="author" content="Flatlogic LLC."><link href="/static/css/2.15110fae.chunk.css" rel="stylesheet"></head><body style="font-family:Roboto,sans-serif"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,f,l=r[0],a=r[1],i=r[2],c=0,s=[];c<l.length;c++)f=l[c],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&s.push(o[f][0]),o[f]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++){var a=t[l];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={1:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var l=this["webpackJsonpsqueak-node-frontend"]=this["webpackJsonpsqueak-node-frontend"]||[],a=l.push.bind(l);l.push=r,l=l.slice();for(var i=0;i<l.length;i++)r(l[i]);var p=a;t()}([])</script><script src="/static/js/2.0730cb3f.chunk.js"></script><script src="/static/js/main.6bec17f9.chunk.js"></script></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>Squeak Node</title><meta name="description" content="Squeak Node is a frontend for accessing a squeak node"><meta name="keywords" content="squeak, bitcoin, lightning"><meta name="author" content="Flatlogic LLC."><link href="/static/css/2.ea4ba2f0.chunk.css" rel="stylesheet"></head><body style="font-family:Roboto,sans-serif"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,f,l=r[0],a=r[1],i=r[2],c=0,s=[];c<l.length;c++)f=l[c],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&s.push(o[f][0]),o[f]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++){var a=t[l];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={1:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var l=this["webpackJsonpsqueak-node-frontend"]=this["webpackJsonpsqueak-node-frontend"]||[],a=l.push.bind(l);l.push=r,l=l.slice();for(var i=0;i<l.length;i++)r(l[i]);var p=a;t()}([])</script><script src="/static/js/2.beeb4ad8.chunk.js"></script><script src="/static/js/main.f3825bc7.chunk.js"></script></body></html>
|
||||
|
|
@ -1,23 +1,23 @@
|
|||
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
||||
{
|
||||
"revision": "aa56f07a2e96bf2e6bd530574a814d8a",
|
||||
"revision": "d842eb9d57b831c9c548d613541ab01d",
|
||||
"url": "/index.html"
|
||||
},
|
||||
{
|
||||
"revision": "6b11e9073fc53930c2fe",
|
||||
"url": "/static/css/2.15110fae.chunk.css"
|
||||
"revision": "a662b8077491b3919d10",
|
||||
"url": "/static/css/2.ea4ba2f0.chunk.css"
|
||||
},
|
||||
{
|
||||
"revision": "6b11e9073fc53930c2fe",
|
||||
"url": "/static/js/2.0730cb3f.chunk.js"
|
||||
"revision": "a662b8077491b3919d10",
|
||||
"url": "/static/js/2.beeb4ad8.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "7156b2c9571000777b9be03b3c6006ee",
|
||||
"url": "/static/js/2.0730cb3f.chunk.js.LICENSE.txt"
|
||||
"url": "/static/js/2.beeb4ad8.chunk.js.LICENSE.txt"
|
||||
},
|
||||
{
|
||||
"revision": "9b3cddbef0b73ca9c223",
|
||||
"url": "/static/js/main.6bec17f9.chunk.js"
|
||||
"revision": "0c1469d53f41f8d136fd",
|
||||
"url": "/static/js/main.f3825bc7.chunk.js"
|
||||
},
|
||||
{
|
||||
"revision": "cc9816de5a8639d377ea",
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||
|
||||
importScripts(
|
||||
"/precache-manifest.3ca520d21d6c54a7d5b0bb7f09da1d86.js"
|
||||
"/precache-manifest.20c149ba6764b4de544763a3f5034b6a.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
Loading…
Add table
Add a link
Reference in a new issue