update dapp, add disclaimer

This commit is contained in:
Iuri Matias 2019-02-03 13:47:26 -05:00 committed by Richard Ramos
parent 16c1b96690
commit ba9fd1202d
9 changed files with 46 additions and 16 deletions

View File

@ -1,4 +1,22 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). ## Status Web Chat
[Click here to access status-web](https://status-im.github.io/chat/build/). note that no plugins are required, just a compatible browser. Currently recommended is Chrome.
**Note: This is a proof of concept, and an alpha version. There will be bugs. If you you're looking for something more stable try the [status desktop app](https://status.im/get_desktop/).**
known issues:
- Desktop *Chrome* only for now. There is an UI issue in firefox which causes the page to reload.
- Reportedly works on android mobile browsers but not on ios (to be confirmed). In theory it should work on any webrtc enabled browser.
- Direct chats and chat history is currently disabled.
what you can do:
- Join other status channels, this bridges with devp2p network.
- see who is online in the channel (applicable to other status-web users)
- see who is typing in the channel (applicable to other status-web users)
- see previews for images, spotify (e.g `spotify:track:0vnfZAVW1Suiet6wtUMdg9`)
- code formatting(e.g ``js` var a = 3;``)
- upload files
- emojis support
## Available Scripts ## Available Scripts

View File

@ -1,7 +1,7 @@
{ {
"main.css": "./static/css/main.9a6004a0.chunk.css", "main.css": "./static/css/main.9a6004a0.chunk.css",
"main.js": "./static/js/main.00af481e.chunk.js", "main.js": "./static/js/main.e0745bc2.chunk.js",
"main.js.map": "./static/js/main.00af481e.chunk.js.map", "main.js.map": "./static/js/main.e0745bc2.chunk.js.map",
"static/css/1.b4a31a49.chunk.css": "./static/css/1.b4a31a49.chunk.css", "static/css/1.b4a31a49.chunk.css": "./static/css/1.b4a31a49.chunk.css",
"static/js/1.85aad662.chunk.js": "./static/js/1.85aad662.chunk.js", "static/js/1.85aad662.chunk.js": "./static/js/1.85aad662.chunk.js",
"static/js/1.85aad662.chunk.js.map": "./static/js/1.85aad662.chunk.js.map", "static/js/1.85aad662.chunk.js.map": "./static/js/1.85aad662.chunk.js.map",
@ -11,6 +11,6 @@
"static/media/logo.svg": "./static/media/logo.5d5d9eef.svg", "static/media/logo.svg": "./static/media/logo.5d5d9eef.svg",
"static/css/main.9a6004a0.chunk.css.map": "./static/css/main.9a6004a0.chunk.css.map", "static/css/main.9a6004a0.chunk.css.map": "./static/css/main.9a6004a0.chunk.css.map",
"index.html": "./index.html", "index.html": "./index.html",
"precache-manifest.8ef72375e14c217baaf2fd1018cd4a4c.js": "./precache-manifest.8ef72375e14c217baaf2fd1018cd4a4c.js", "precache-manifest.8b0bdca8d1e6282298a11eee0441a525.js": "./precache-manifest.8b0bdca8d1e6282298a11eee0441a525.js",
"service-worker.js": "./service-worker.js" "service-worker.js": "./service-worker.js"
} }

View File

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="https://status.im/img/logo-32.png"/><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>Status Web</title><link href="./static/css/1.b4a31a49.chunk.css" rel="stylesheet"><link href="./static/css/main.9a6004a0.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={2:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,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(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.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 r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="./static/js/1.85aad662.chunk.js"></script><script src="./static/js/main.00af481e.chunk.js"></script></body></html> <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="https://status.im/img/logo-32.png"/><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>Status Web</title><link href="./static/css/1.b4a31a49.chunk.css" rel="stylesheet"><link href="./static/css/main.9a6004a0.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={2:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,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(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.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 r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="./static/js/1.85aad662.chunk.js"></script><script src="./static/js/main.e0745bc2.chunk.js"></script></body></html>

View File

@ -8,15 +8,15 @@ self.__precacheManifest = [
"url": "./static/js/runtime~main.4a686d48.js" "url": "./static/js/runtime~main.4a686d48.js"
}, },
{ {
"revision": "00af481e8346574f23c8", "revision": "e0745bc2020e46921c59",
"url": "./static/js/main.00af481e.chunk.js" "url": "./static/js/main.e0745bc2.chunk.js"
}, },
{ {
"revision": "85aad662b0e90e4880fc", "revision": "85aad662b0e90e4880fc",
"url": "./static/js/1.85aad662.chunk.js" "url": "./static/js/1.85aad662.chunk.js"
}, },
{ {
"revision": "00af481e8346574f23c8", "revision": "e0745bc2020e46921c59",
"url": "./static/css/main.9a6004a0.chunk.css" "url": "./static/css/main.9a6004a0.chunk.css"
}, },
{ {
@ -24,7 +24,7 @@ self.__precacheManifest = [
"url": "./static/css/1.b4a31a49.chunk.css" "url": "./static/css/1.b4a31a49.chunk.css"
}, },
{ {
"revision": "9c3549d3158eec2a8f010bb0fc98e4de", "revision": "ba6780ce56e841843c1047edde5cff1d",
"url": "./index.html" "url": "./index.html"
} }
]; ];

View File

@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts( importScripts(
"./precache-manifest.8ef72375e14c217baaf2fd1018cd4a4c.js" "./precache-manifest.8b0bdca8d1e6282298a11eee0441a525.js"
); );
workbox.clientsClaim(); workbox.clientsClaim();

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

@ -22,6 +22,7 @@ const Login = ({ setupKeyringController, keyStore, wipeKeyStore, connect }) => (
direction="column" direction="column"
style={{ height: '100%' }} style={{ height: '100%' }}
> >
<Formik <Formik
initialValues={{ password: '', seed: '' }} initialValues={{ password: '', seed: '' }}
onSubmit={(values, { resetForm, setFieldError }) => { onSubmit={(values, { resetForm, setFieldError }) => {
@ -42,6 +43,20 @@ const Login = ({ setupKeyringController, keyStore, wipeKeyStore, connect }) => (
}) => ( }) => (
<form onSubmit={handleSubmit} style={containerStyle}> <form onSubmit={handleSubmit} style={containerStyle}>
<StatusJSLogo /> <StatusJSLogo />
<div>
<strong>Note: This is a proof of concept, and an alpha version. There will be bugs. If you you're looking for something more stable try the <a href="https://status.im/get_desktop/">status desktop app</a>.</strong>
<br />known issues:
<br />- Desktop <strong>Chrome</strong> only for now. There is an UI issue in firefox which causes the page to reload.
<br />- Reportedly works on android mobile browsers but not on ios (to be confirmed). In theory it should work on any webrtc enabled browser.
<br />- Direct chats and chat history is currently disabled.
</div>
<Button size="large" variant="outlined" color="primary" onClick={() => connect()}>
USE A ONE TIME RANDOM ACCOUNT (Recommended)
</Button>
<div> or for dev purposes:</div>
{isNull(keyStore) && <TextField {isNull(keyStore) && <TextField
id="seed" id="seed"
type="text" type="text"
@ -68,9 +83,6 @@ const Login = ({ setupKeyringController, keyStore, wipeKeyStore, connect }) => (
onBlur={handleBlur} onBlur={handleBlur}
onChange={handleChange} onChange={handleChange}
/> />
<Button size="large" variant="outlined" color="primary" onClick={() => connect()}>
USE A ONE TIME RANDOM ACCOUNT
</Button>
{!isNull(keyStore) && <Button size="large" variant="outlined" color="secondary" onClick={wipeKeyStore}> {!isNull(keyStore) && <Button size="large" variant="outlined" color="secondary" onClick={wipeKeyStore}>
RESET ACCOUNT RESET ACCOUNT
</Button>} </Button>}