Skip to content

Commit

Permalink
version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
antoncorbn committed May 19, 2020
1 parent 06cedab commit 108466d
Show file tree
Hide file tree
Showing 111 changed files with 670 additions and 0 deletions.
99 changes: 99 additions & 0 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"files": {
"app.js": "/static/js/app.5d35e5de.chunk.js",
"app.js.map": "/static/js/app.5d35e5de.chunk.js.map",
"runtime~app.js": "/static/js/runtime~app.b3244af7.js",
"runtime~app.js.map": "/static/js/runtime~app.b3244af7.js.map",
"static/js/2.dd1c6eec.chunk.js": "/static/js/2.dd1c6eec.chunk.js",
"static/js/2.dd1c6eec.chunk.js.map": "/static/js/2.dd1c6eec.chunk.js.map",
"fonts/AntDesign.ttf": "/./fonts/AntDesign.ttf",
"fonts/Entypo.ttf": "/./fonts/Entypo.ttf",
"fonts/Feather.ttf": "/./fonts/Feather.ttf",
"fonts/FontAwesome.ttf": "/./fonts/FontAwesome.ttf",
"fonts/FontAwesome5_Brands.ttf": "/./fonts/FontAwesome5_Brands.ttf",
"fonts/FontAwesome5_Solid.ttf": "/./fonts/FontAwesome5_Solid.ttf",
"fonts/Foundation.ttf": "/./fonts/Foundation.ttf",
"fonts/Ionicons.ttf": "/./fonts/Ionicons.ttf",
"fonts/MaterialCommunityIcons.ttf": "/./fonts/MaterialCommunityIcons.ttf",
"fonts/MaterialIcons.ttf": "/./fonts/MaterialIcons.ttf",
"fonts/SimpleLineIcons.ttf": "/./fonts/SimpleLineIcons.ttf",
"favicon-16.png": "/favicon-16.png",
"favicon-32.png": "/favicon-32.png",
"favicon.ico": "/favicon.ico",
"index.html": "/index.html",
"manifest.json": "/manifest.json",
"serve.json": "/serve.json",
"static/media/add-contact-icon.png": "/static/media/add-contact-icon.678a9124.png",
"static/media/back-icon-mask.png": "/static/media/back-icon-mask.6165c9d7.png",
"static/media/backup-wallet-icon.png": "/static/media/backup-wallet-icon.0909734d.png",
"static/media/checkmark.png": "/static/media/checkmark.b1b5bac3.png",
"static/media/convert-icon.png": "/static/media/convert-icon.557f36e3.png",
"static/media/currency-icon.png": "/static/media/currency-icon.118583be.png",
"static/media/gradient-footer.png": "/static/media/gradient-footer.39a85596.png",
"static/media/gradient.png": "/static/media/gradient.83305b35.png",
"static/media/help-icon.png": "/static/media/help-icon.a0381efb.png",
"static/media/icon_coin_atom.png": "/static/media/icon_coin_atom.6aa91765.png",
"static/media/icon_coin_basicattentiontoken.png": "/static/media/icon_coin_basicattentiontoken.d3e2eaeb.png",
"static/media/icon_coin_bch.png": "/static/media/icon_coin_bch.265b5b7f.png",
"static/media/icon_coin_binancecoin.png": "/static/media/icon_coin_binancecoin.534dc014.png",
"static/media/icon_coin_cardano.png": "/static/media/icon_coin_cardano.25c11abb.png",
"static/media/icon_coin_chainlink.png": "/static/media/icon_coin_chainlink.6b41cb5c.png",
"static/media/icon_coin_dash.png": "/static/media/icon_coin_dash.5726ffd7.png",
"static/media/icon_coin_decred.png": "/static/media/icon_coin_decred.5999da16.png",
"static/media/icon_coin_eos.png": "/static/media/icon_coin_eos.7a5be2f2.png",
"static/media/icon_coin_factom.png": "/static/media/icon_coin_factom.78f12cd6.png",
"static/media/icon_coin_litecoin.png": "/static/media/icon_coin_litecoin.391dff92.png",
"static/media/icon_coin_monero.png": "/static/media/icon_coin_monero.7baaea84.png",
"static/media/icon_coin_pbtc.png": "/static/media/icon_coin_pbtc.a6467fd2.png",
"static/media/icon_coin_peg.png": "/static/media/icon_coin_peg.6270e058.png",
"static/media/icon_coin_peth.png": "/static/media/icon_coin_peth.3bfe6b73.png",
"static/media/icon_coin_raven.png": "/static/media/icon_coin_raven.6086dfe7.png",
"static/media/icon_coin_stellar.png": "/static/media/icon_coin_stellar.47b0b299.png",
"static/media/icon_coin_tezos.png": "/static/media/icon_coin_tezos.a78b4b61.png",
"static/media/icon_coin_zcash.png": "/static/media/icon_coin_zcash.51c8c03f.png",
"static/media/icon_com_gold.png": "/static/media/icon_com_gold.3d44a55f.png",
"static/media/icon_com_silver.png": "/static/media/icon_com_silver.eba8c767.png",
"static/media/icon_curr_ausdollar.png": "/static/media/icon_curr_ausdollar.39ba4a52.png",
"static/media/icon_curr_brazilreal.png": "/static/media/icon_curr_brazilreal.65cfadb7.png",
"static/media/icon_curr_candollar.png": "/static/media/icon_curr_candollar.c586b33c.png",
"static/media/icon_curr_euro.png": "/static/media/icon_curr_euro.4c05af1c.png",
"static/media/icon_curr_hkdollar.png": "/static/media/icon_curr_hkdollar.9e1dddbc.png",
"static/media/icon_curr_newzealanddollar.png": "/static/media/icon_curr_newzealanddollar.2a8bd66c.png",
"static/media/icon_curr_norwegiankrone.png": "/static/media/icon_curr_norwegiankrone.2a7d00e6.png",
"static/media/icon_curr_peso.png": "/static/media/icon_curr_peso.ab6c7cbd.png",
"static/media/icon_curr_philepinepeso.png": "/static/media/icon_curr_philepinepeso.47d50700.png",
"static/media/icon_curr_pound.png": "/static/media/icon_curr_pound.a832d2bb.png",
"static/media/icon_curr_ruble.png": "/static/media/icon_curr_ruble.23915501.png",
"static/media/icon_curr_rupee.png": "/static/media/icon_curr_rupee.fb072825.png",
"static/media/icon_curr_singaporedollar.png": "/static/media/icon_curr_singaporedollar.509ae014.png",
"static/media/icon_curr_southafricanrand.png": "/static/media/icon_curr_southafricanrand.26d2fdf8.png",
"static/media/icon_curr_swedishkrona.png": "/static/media/icon_curr_swedishkrona.0ba2bd8f.png",
"static/media/icon_curr_swissfranc.png": "/static/media/icon_curr_swissfranc.38a2f80a.png",
"static/media/icon_curr_usdollar.png": "/static/media/icon_curr_usdollar.3e37f9f7.png",
"static/media/icon_curr_won.png": "/static/media/icon_curr_won.4392f303.png",
"static/media/icon_curr_yen.png": "/static/media/icon_curr_yen.54f74d69.png",
"static/media/icon_curr_yuan.png": "/static/media/icon_curr_yuan.222740d1.png",
"static/media/language-icon.png": "/static/media/language-icon.c41784f5.png",
"static/media/lock-icon.png": "/static/media/lock-icon.a146664e.png",
"static/media/login-pin-icon.png": "/static/media/login-pin-icon.10dc3cbc.png",
"static/media/logo-white.png": "/static/media/logo-white.f5b3c9f3.png",
"static/media/notification-icon.png": "/static/media/notification-icon.cda51545.png",
"static/media/pin-icon.png": "/static/media/pin-icon.bd2c7459.png",
"static/media/power-icon.png": "/static/media/power-icon.42e787dd.png",
"static/media/profile-image.png": "/static/media/profile-image.11edcaa8.png",
"static/media/receive-icon.png": "/static/media/receive-icon.d8b92d28.png",
"static/media/send-icon.png": "/static/media/send-icon.b83d8834.png",
"static/media/share-icon.png": "/static/media/share-icon.029188df.png",
"static/media/sound-icon.png": "/static/media/sound-icon.60728633.png",
"static/media/topup-icon.png": "/static/media/topup-icon.98424cd2.png",
"static/media/touch-icon.png": "/static/media/touch-icon.dcd352d1.png",
"static/media/transaction-receive-icon.png": "/static/media/transaction-receive-icon.3e1975c4.png",
"static/media/transaction-send-icon.png": "/static/media/transaction-send-icon.c3fbb1ec.png",
"static/media/user-icon.png": "/static/media/user-icon.d2627263.png"
},
"entrypoints": [
"static/js/runtime~app.b3244af7.js",
"static/js/2.dd1c6eec.chunk.js",
"static/js/app.5d35e5de.chunk.js"
]
}
93 changes: 93 additions & 0 deletions expo-service-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/* eslint-env serviceworker */

/**
* Store notification icon string in service worker.
* Ref: https://stackoverflow.com/a/35729334/2603230
*/
self.addEventListener('message', event => {
let data;
if (typeof event.data === 'string') {
try {
data = JSON.parse(event.data);
} catch (e) {}
}

if (data && data.fromExpoWebClient) {
self.notificationIcon = data.fromExpoWebClient.notificationIcon;
}
});

/**
* Add support for push notification.
*/
self.addEventListener('push', event => {
let payload = {};
try {
payload = event.data.json();
} catch (e) {
// If `event.data.text()` is not a JSON object, we just treat it
// as a plain string and display it as the body.
payload = { title: '', body: event.data.text() };
}

const title = payload.title;
let options = {
body: payload.body,
data: payload.data || {},
};
options.icon = options.data._icon || self.notificationIcon || null;
if (options.data._tag) {
options.tag = options.data._tag;
options.renotify = options.data._renotify;
}
if (options.data._richContent && options.data._richContent.image) {
options.image = options.data._richContent.image;
}
event.waitUntil(self.registration.showNotification(title, options));
});

// https://developer.mozilla.org/en-US/docs/Web/API/Clients
self.addEventListener('notificationclick', event => {
event.notification.close();

event.waitUntil(
(async () => {
const allClients = await self.clients.matchAll({
includeUncontrolled: true,
});

let appClient;

let path = event.notification.data._webPath || '/';

// If we already have a window open, use it.
for (const client of allClients) {
const url = new URL(client.url);

if (url.pathname === path) {
client.focus();
appClient = client;
break;
}
}

// If there is no existing window, open a new one.
if (!appClient) {
appClient = await self.clients.openWindow(path);
}

// Message the client:
// `origin` will always be `'selected'` in this case.
// https://docs.expo.io/versions/latest/sdk/notifications/#notification
appClient.postMessage({
origin: 'selected',
data: event.notification.data,
remote: !event.notification._isLocal,
});
})()
);
});

// TODO: Consider cache: https://github.com/expo/expo-cli/pull/844#issuecomment-515619883
// Import the script generated by workbox.
self.importScripts('service-worker.js');
Binary file added favicon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon.ico
Binary file not shown.
Binary file added fonts/AntDesign.ttf
Binary file not shown.
Binary file added fonts/Entypo.ttf
Binary file not shown.
Binary file added fonts/Feather.ttf
Binary file not shown.
Binary file added fonts/FontAwesome.ttf
Binary file not shown.
Binary file added fonts/FontAwesome5_Brands.ttf
Binary file not shown.
Binary file added fonts/FontAwesome5_Solid.ttf
Binary file not shown.
Binary file added fonts/Foundation.ttf
Binary file not shown.
Binary file added fonts/Ionicons.ttf
Binary file not shown.
Binary file added fonts/MaterialCommunityIcons.ttf
Binary file not shown.
Binary file added fonts/MaterialIcons.ttf
Binary file not shown.
Binary file added fonts/SimpleLineIcons.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta httpequiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1.00001,viewport-fit=cover"/><title>pWallet</title><style>#root,body,html{width:100%;-webkit-overflow-scrolling:touch;margin:0;padding:0;min-height:100%}#root{flex-shrink:0;flex-basis:auto;flex-grow:1;display:flex;flex:1}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;height:100%}body{display:flex;overflow-y:auto;overscroll-behavior-y:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-ms-overflow-style:scrollbar}</style><meta name="description" content="This is beta version"><link rel="manifest" href="/manifest.json"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png"><link rel="shortcut icon" href="/favicon.ico"><meta name="mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-touch-fullscreen" content="yes"><meta name="apple-mobile-web-app-title" content="pWallet"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><link rel="apple-touch-icon" sizes="180x180" href="/pwa/apple-touch-icon/apple-touch-icon-180.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-640x1136.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-1242x2688.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-828x1792.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-1125x2436.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-1242x2208.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-750x1334.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-2048x2732.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-1668x2388.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-1668x2224.png"><link rel="apple-touch-startup-image" media="screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/pwa/apple-touch-startup-image/apple-touch-startup-image-1536x2048.png"></head><body><noscript><form action="" style="background-color:#fff;position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999"><div style="font-size:18px;font-family:Helvetica,sans-serif;line-height:24px;margin:10%;width:80%"><p>Oh no! It looks like JavaScript is not enabled in your browser.</p><p style="margin:20px 0"><button type="submit" style="background-color:#4630eb;border-radius:100px;border:none;box-shadow:none;color:#fff;cursor:pointer;font-weight:700;line-height:20px;padding:6px 16px">Reload</button></p></div></form></noscript><div id="root"></div><script src="/static/js/runtime~app.b3244af7.js"></script><script src="/static/js/2.dd1c6eec.chunk.js"></script><script src="/static/js/app.5d35e5de.chunk.js"></script></body></html>
38 changes: 38 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"description": "This is beta version",
"display": "standalone",
"lang": "en",
"name": "pWallet",
"short_name": "pWallet",
"start_url": "/?utm_source=web_app_manifest",
"orientation": "portrait",
"related_applications": [
{
"platform": "itunes",
"id": "com.pegnet.pegnetmobile"
},
{
"platform": "play",
"url": "http://play.google.com/store/apps/details?id=com.pegnet.pegnetmobile",
"id": "com.pegnet.pegnetmobile"
}
],
"prefer_related_applications": true,
"icons": [
{
"src": "/pwa/chrome-icon/chrome-icon-144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "/pwa/chrome-icon/chrome-icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/pwa/chrome-icon/chrome-icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
Loading

0 comments on commit 108466d

Please sign in to comment.