Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnetwork committed Sep 18, 2024
1 parent e845a7f commit fdfca57
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 69 deletions.
48 changes: 12 additions & 36 deletions mrt_wallet/web/index.html
Original file line number Diff line number Diff line change
@@ -1,60 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="$FLUTTER_BASE_HREF">

<base href="/">
<meta http-equiv="Content-Security-Policy" content="">
<html style="height: 600px; width: 350px">
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="MRT Wallet.">

<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="MRT Wallet">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>

<title>MRT Wallet</title>
<link rel="manifest" href="manifest.json">
<title>MRT wallet</title>
<style>
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
flex-direction: column; /* Stack image and loading spinner vertically */
flex-direction: column;
}

img {
width: 256px;
height: 256px;
/* Additional styles for positioning or styling the image */
}

#loadingSpinner {
border: 8px solid #f3f3f3; /* Light gray border */
border-top: 8px solid #3498db; /* Blue border for spinning effect */
border: 8px solid #f3f3f3;
border-top: 8px solid #3498db;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite; /* Animation for spinning effect */
margin-top: 10px; /* Adjust as needed */
animation: spin 1s linear infinite;
margin-top: 10px;
}

@keyframes spin {
Expand All @@ -66,6 +40,8 @@
<body>
<img id="centeredImage" src="icons/Icon-512.png" />
<div id="loadingSpinner"></div>
<script src="flutter_bootstrap.js" async></script>
<script src="main.dart.js"></script>
</body>

</html>

80 changes: 47 additions & 33 deletions mrt_wallet/web/manifest.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,49 @@
{
"manifest_version": 3,
"name": "MRT Wallet",
"short_name": "MRT",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "MRT Wallet web application.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
{
"src": "icons/Icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icons/Icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
"version": "0.2",
"description": "MRT Wallet Chrome extension.",
"action": {
"default_popup": "popup.html",
"default_icon": {
"16": "icons/16.png",
"48": "icons/48.png",
"128": "icons/128.png"
}
},
"icons": {
"16": "icons/16.png",
"48": "icons/48.png",
"128": "icons/128.png"
},
"permissions": [
"activeTab",
"storage",
"tabs"
],
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
},
"web_accessible_resources": [{
"resources": ["canvaskit/canvaskit.wasm","canvaskit/skwasm.wasm","canvaskit/chromium/canvaskit.wasm","assets/assets/wasm/crypto.wasm","page.js"],
"matches": ["<all_urls>"]
}],


"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["content.js"],
"world":"ISOLATED"
},
{
"world": "MAIN",
"matches": ["<all_urls>"],
"js": ["bn.js","tron_web.js","page.js"]
}
],
"background": {
"scripts": ["background.js"]
}
}

0 comments on commit fdfca57

Please sign in to comment.