Updates
This commit is contained in:
parent
5b39620554
commit
c05277499a
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"files": {
|
"files": {
|
||||||
"main.css": "/eth-pm/static/css/main.dbff2295.css",
|
"main.css": "/eth-pm/static/css/main.dbff2295.css",
|
||||||
"main.js": "/eth-pm/static/js/main.8f0cbea4.js",
|
"main.js": "/eth-pm/static/js/main.309156ae.js",
|
||||||
"static/media/roboto-all-400-normal.woff": "/eth-pm/static/media/roboto-all-400-normal.b5a0a0df312d3423493b.woff",
|
"static/media/roboto-all-400-normal.woff": "/eth-pm/static/media/roboto-all-400-normal.b5a0a0df312d3423493b.woff",
|
||||||
"static/media/roboto-latin-400-normal.woff2": "/eth-pm/static/media/roboto-latin-400-normal.176f8f5bd5f02b3abfcf.woff2",
|
"static/media/roboto-latin-400-normal.woff2": "/eth-pm/static/media/roboto-latin-400-normal.176f8f5bd5f02b3abfcf.woff2",
|
||||||
"static/media/roboto-cyrillic-ext-400-normal.woff2": "/eth-pm/static/media/roboto-cyrillic-ext-400-normal.dd55ea0a2e90d5d86e15.woff2",
|
"static/media/roboto-cyrillic-ext-400-normal.woff2": "/eth-pm/static/media/roboto-cyrillic-ext-400-normal.dd55ea0a2e90d5d86e15.woff2",
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
},
|
},
|
||||||
"entrypoints": [
|
"entrypoints": [
|
||||||
"static/css/main.dbff2295.css",
|
"static/css/main.dbff2295.css",
|
||||||
"static/js/main.8f0cbea4.js"
|
"static/js/main.309156ae.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/eth-pm/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="End-to-end encrypted communication between two Ethereum addresses."/><link rel="apple-touch-icon" href="/eth-pm/favicon.png"/><link rel="manifest" href="/eth-pm/manifest.json"/><title>Ethereum Private Messaging</title><script defer="defer" src="/eth-pm/static/js/main.8f0cbea4.js"></script><link href="/eth-pm/static/css/main.dbff2295.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/eth-pm/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="End-to-end encrypted communication between two Ethereum addresses."/><link rel="apple-touch-icon" href="/eth-pm/favicon.png"/><link rel="manifest" href="/eth-pm/manifest.json"/><title>Ethereum Private Messaging</title><script defer="defer" src="/eth-pm/static/js/main.309156ae.js"></script><link href="/eth-pm/static/css/main.dbff2295.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
File diff suppressed because one or more lines are too long
|
@ -1,10 +1,11 @@
|
||||||
import * as utils from "https://unpkg.com/@waku/utils@0.0.5/bundle/bytes.js";
|
|
||||||
import * as wakuCreate from "https://unpkg.com/@waku/create@0.0.13/bundle/index.js";
|
|
||||||
import {
|
import {
|
||||||
|
createLightNode,
|
||||||
|
bytesToUtf8,
|
||||||
|
utf8ToBytes,
|
||||||
waitForRemotePeer,
|
waitForRemotePeer,
|
||||||
createDecoder,
|
createDecoder,
|
||||||
createEncoder,
|
createEncoder,
|
||||||
} from "https://unpkg.com/@waku/core@0.0.17/bundle/index.js";
|
} from "https://unpkg.com/@waku/sdk@0.0.16/bundle/index.js";
|
||||||
|
|
||||||
const CONTENT_TOPIC = "/toy-chat/2/huilong/proto";
|
const CONTENT_TOPIC = "/toy-chat/2/huilong/proto";
|
||||||
|
|
||||||
|
@ -47,7 +48,7 @@ async function initWakuContext({ contentTopic, onMessageReceived }) {
|
||||||
.add(new protobuf.Field("nick", 2, "string"))
|
.add(new protobuf.Field("nick", 2, "string"))
|
||||||
.add(new protobuf.Field("text", 3, "bytes"));
|
.add(new protobuf.Field("text", 3, "bytes"));
|
||||||
|
|
||||||
const node = await wakuCreate.createLightNode({ defaultBootstrap: true });
|
const node = await createLightNode({ defaultBootstrap: true });
|
||||||
|
|
||||||
await node.start();
|
await node.start();
|
||||||
await waitForRemotePeer(node);
|
await waitForRemotePeer(node);
|
||||||
|
@ -59,7 +60,7 @@ async function initWakuContext({ contentTopic, onMessageReceived }) {
|
||||||
const messageObj = ChatMessage.decode(wakuMessage.payload);
|
const messageObj = ChatMessage.decode(wakuMessage.payload);
|
||||||
onMessageReceived({
|
onMessageReceived({
|
||||||
...messageObj,
|
...messageObj,
|
||||||
text: utils.bytesToUtf8(messageObj.text),
|
text: bytesToUtf8(messageObj.text),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -84,7 +85,7 @@ async function initWakuContext({ contentTopic, onMessageReceived }) {
|
||||||
const protoMessage = ChatMessage.create({
|
const protoMessage = ChatMessage.create({
|
||||||
nick,
|
nick,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
text: utils.utf8ToBytes(text),
|
text: utf8ToBytes(text),
|
||||||
});
|
});
|
||||||
|
|
||||||
await node.lightPush.send(Encoder, {
|
await node.lightPush.send(Encoder, {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"files": {
|
"files": {
|
||||||
"main.css": "/relay-reactjs-chat/static/css/main.4efb37a3.css",
|
"main.css": "/relay-reactjs-chat/static/css/main.4efb37a3.css",
|
||||||
"main.js": "/relay-reactjs-chat/static/js/main.6c153e62.js",
|
"main.js": "/relay-reactjs-chat/static/js/main.485e5d2c.js",
|
||||||
"index.html": "/relay-reactjs-chat/index.html"
|
"index.html": "/relay-reactjs-chat/index.html"
|
||||||
},
|
},
|
||||||
"entrypoints": [
|
"entrypoints": [
|
||||||
"static/css/main.4efb37a3.css",
|
"static/css/main.4efb37a3.css",
|
||||||
"static/js/main.6c153e62.js"
|
"static/js/main.485e5d2c.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/relay-reactjs-chat/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A barebone chat app to illustrate the ReactJS Relay guide."/><link rel="apple-touch-icon" href="/relay-reactjs-chat/favicon.png"/><link rel="manifest" href="/relay-reactjs-chat/manifest.json"/><title>React Relay</title><script defer="defer" src="/relay-reactjs-chat/static/js/main.6c153e62.js"></script><link href="/relay-reactjs-chat/static/css/main.4efb37a3.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/relay-reactjs-chat/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A barebone chat app to illustrate the ReactJS Relay guide."/><link rel="apple-touch-icon" href="/relay-reactjs-chat/favicon.png"/><link rel="manifest" href="/relay-reactjs-chat/manifest.json"/><title>React Relay</title><script defer="defer" src="/relay-reactjs-chat/static/js/main.485e5d2c.js"></script><link href="/relay-reactjs-chat/static/css/main.4efb37a3.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,12 @@
|
||||||
|
/*
|
||||||
|
* [hi-base32]{@link https://github.com/emn178/hi-base32}
|
||||||
|
*
|
||||||
|
* @version 0.5.0
|
||||||
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
||||||
|
* @copyright Chen, Yi-Cyuan 2015-2018
|
||||||
|
* @license MIT
|
||||||
|
*/
|
||||||
|
|
||||||
/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
||||||
|
|
||||||
/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
File diff suppressed because one or more lines are too long
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
"files": {
|
"files": {
|
||||||
"main.css": "/store-reactjs-chat/static/css/main.e6c13ad2.css",
|
"main.css": "/store-reactjs-chat/static/css/main.e6c13ad2.css",
|
||||||
"main.js": "/store-reactjs-chat/static/js/main.b60814de.js",
|
"main.js": "/store-reactjs-chat/static/js/main.2ab11b7a.js",
|
||||||
"static/media/rpc.cjs": "/store-reactjs-chat/static/media/rpc.3ba5ca7bdb004060d5e2.cjs",
|
"static/media/rpc.cjs": "/store-reactjs-chat/static/media/rpc.3ba5ca7bdb004060d5e2.cjs",
|
||||||
"index.html": "/store-reactjs-chat/index.html",
|
"index.html": "/store-reactjs-chat/index.html",
|
||||||
"main.e6c13ad2.css.map": "/store-reactjs-chat/static/css/main.e6c13ad2.css.map",
|
"main.e6c13ad2.css.map": "/store-reactjs-chat/static/css/main.e6c13ad2.css.map",
|
||||||
"main.b60814de.js.map": "/store-reactjs-chat/static/js/main.b60814de.js.map"
|
"main.2ab11b7a.js.map": "/store-reactjs-chat/static/js/main.2ab11b7a.js.map"
|
||||||
},
|
},
|
||||||
"entrypoints": [
|
"entrypoints": [
|
||||||
"static/css/main.e6c13ad2.css",
|
"static/css/main.e6c13ad2.css",
|
||||||
"static/js/main.b60814de.js"
|
"static/js/main.2ab11b7a.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/store-reactjs-chat/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A simple app that retrieves chat messages using Waku Store to illustrate the Retrieve Messages Using Waku Store With ReactJS guide."/><link rel="apple-touch-icon" href="/store-reactjs-chat/favicon.png"/><link rel="manifest" href="/store-reactjs-chat/manifest.json"/><title>React Store</title><script defer="defer" src="/store-reactjs-chat/static/js/main.b60814de.js"></script><link href="/store-reactjs-chat/static/css/main.e6c13ad2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/store-reactjs-chat/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A simple app that retrieves chat messages using Waku Store to illustrate the Retrieve Messages Using Waku Store With ReactJS guide."/><link rel="apple-touch-icon" href="/store-reactjs-chat/favicon.png"/><link rel="manifest" href="/store-reactjs-chat/manifest.json"/><title>React Store</title><script defer="defer" src="/store-reactjs-chat/static/js/main.2ab11b7a.js"></script><link href="/store-reactjs-chat/static/css/main.e6c13ad2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,12 @@
|
||||||
|
/*
|
||||||
|
* [hi-base32]{@link https://github.com/emn178/hi-base32}
|
||||||
|
*
|
||||||
|
* @version 0.5.0
|
||||||
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
||||||
|
* @copyright Chen, Yi-Cyuan 2015-2018
|
||||||
|
* @license MIT
|
||||||
|
*/
|
||||||
|
|
||||||
/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
||||||
|
|
||||||
/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
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…
Reference in New Issue