mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-15 12:50:47 +02:00
Fix missing key frontend issue (#743)
* Fix missing key from timeline items * Update static build for fix missing timeline key
This commit is contained in:
parent
d2828fb52b
commit
4c004a60bd
12 changed files with 27 additions and 23 deletions
|
|
@ -19,31 +19,25 @@ export default function SqueakUserAvatar({
|
|||
};
|
||||
|
||||
const handleAvatarClick = () => {
|
||||
console.log("Avatar clicked with squeak: " + squeak);
|
||||
if (squeak) {
|
||||
goToSqueakAddressPage(squeak.getAuthorAddress());
|
||||
}
|
||||
};
|
||||
|
||||
const getAuthorImage = () => {
|
||||
console.log(squeak);
|
||||
console.log("squeak image: " + squeak.getAuthorImage());
|
||||
return squeak.getAuthorImage();
|
||||
}
|
||||
|
||||
function ImageSrcString() {
|
||||
console.log("getAuthorImage" + getAuthorImage());
|
||||
return "data:image/jpeg;base64," + getAuthorImage();
|
||||
}
|
||||
|
||||
function AvatarImage() {
|
||||
console.log("ImageSrcString: " + ImageSrcString());
|
||||
return (
|
||||
<Avatar alt="Remy Sharp" src={`${ImageSrcString()}`} />
|
||||
<Avatar src={`${ImageSrcString()}`} />
|
||||
)
|
||||
}
|
||||
|
||||
console.log("show avatar");
|
||||
return (
|
||||
<TimelineDot
|
||||
onClick={handleAvatarClick}
|
||||
|
|
|
|||
|
|
@ -214,7 +214,9 @@ export default function SqueakPage() {
|
|||
{ancestorSqueaks.slice(0, -1)
|
||||
//.reverse()
|
||||
.map(ancestorSqueak =>
|
||||
<TimelineItem>
|
||||
<TimelineItem
|
||||
key={ancestorSqueak.getSqueakHash()}
|
||||
>
|
||||
<TimelineOppositeContent
|
||||
className={classes.oppositeContent}
|
||||
color="textSecondary"
|
||||
|
|
@ -277,7 +279,9 @@ export default function SqueakPage() {
|
|||
<>
|
||||
{replySqueaks
|
||||
.map(replySqueak =>
|
||||
<TimelineItem>
|
||||
<TimelineItem
|
||||
key={replySqueak.getSqueakHash()}
|
||||
>
|
||||
<TimelineOppositeContent
|
||||
className={classes.oppositeContent}
|
||||
color="textSecondary"
|
||||
|
|
|
|||
|
|
@ -129,7 +129,10 @@ export default function SqueakAddressPage() {
|
|||
<>
|
||||
<div>
|
||||
{squeaks.map(squeak =>
|
||||
<Timeline align="left">
|
||||
<Timeline
|
||||
align="left"
|
||||
key={squeak.getSqueakHash()}
|
||||
>
|
||||
|
||||
<TimelineItem>
|
||||
<TimelineOppositeContent
|
||||
|
|
|
|||
|
|
@ -124,7 +124,10 @@ export default function TimelinePage() {
|
|||
<>
|
||||
<div>
|
||||
{squeaks.map(squeak =>
|
||||
<Timeline align="left">
|
||||
<Timeline
|
||||
align="left"
|
||||
key={squeak.getSqueakHash()}
|
||||
>
|
||||
|
||||
<TimelineItem>
|
||||
<TimelineOppositeContent
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"files": {
|
||||
"main.js": "/static/js/main.653971ea.chunk.js",
|
||||
"main.js.map": "/static/js/main.653971ea.chunk.js.map",
|
||||
"main.js": "/static/js/main.f2fa9b7c.chunk.js",
|
||||
"main.js.map": "/static/js/main.f2fa9b7c.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.512b36c8.chunk.js": "/static/js/2.512b36c8.chunk.js",
|
||||
"static/js/2.512b36c8.chunk.js.map": "/static/js/2.512b36c8.chunk.js.map",
|
||||
"index.html": "/index.html",
|
||||
"precache-manifest.cb54be695719fef6fc803a54a2985e6c.js": "/precache-manifest.cb54be695719fef6fc803a54a2985e6c.js",
|
||||
"precache-manifest.6e53207a6dd8cd0d578adbaed6f25f3a.js": "/precache-manifest.6e53207a6dd8cd0d578adbaed6f25f3a.js",
|
||||
"service-worker.js": "/service-worker.js",
|
||||
"static/css/2.15110fae.chunk.css.map": "/static/css/2.15110fae.chunk.css.map",
|
||||
"static/js/2.512b36c8.chunk.js.LICENSE.txt": "/static/js/2.512b36c8.chunk.js.LICENSE.txt",
|
||||
|
|
@ -20,6 +20,6 @@
|
|||
"static/js/runtime-main.9f0ba400.js",
|
||||
"static/css/2.15110fae.chunk.css",
|
||||
"static/js/2.512b36c8.chunk.js",
|
||||
"static/js/main.653971ea.chunk.js"
|
||||
"static/js/main.f2fa9b7c.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.512b36c8.chunk.js"></script><script src="/static/js/main.653971ea.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.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.512b36c8.chunk.js"></script><script src="/static/js/main.f2fa9b7c.chunk.js"></script></body></html>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
||||
{
|
||||
"revision": "a149cfe7714fee57c901418f8229bf08",
|
||||
"revision": "68fceb97d760a53374bb6a7df7330827",
|
||||
"url": "/index.html"
|
||||
},
|
||||
{
|
||||
|
|
@ -16,8 +16,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||
"url": "/static/js/2.512b36c8.chunk.js.LICENSE.txt"
|
||||
},
|
||||
{
|
||||
"revision": "feec0f8737ab8fa18c95",
|
||||
"url": "/static/js/main.653971ea.chunk.js"
|
||||
"revision": "c3f2e5a49a3fd6358f47",
|
||||
"url": "/static/js/main.f2fa9b7c.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.cb54be695719fef6fc803a54a2985e6c.js"
|
||||
"/precache-manifest.6e53207a6dd8cd0d578adbaed6f25f3a.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
Loading…
Add table
Add a link
Reference in a new issue