Add main bundle resources

This commit is contained in:
Luigy Leon 2023-01-19 14:08:25 -05:00
parent b4bdfebf7c
commit f033e285a3
103 changed files with 1378 additions and 1 deletions

BIN
config.files Normal file

Binary file not shown.

7
config/common/env.js Normal file
View File

@ -0,0 +1,7 @@
{
"support": {
"url": "https://lodewallet.io/support",
"maxBodyLength": 1500
},
"proxyUrl": "https://lodeproxy.dev.obsidian.systems"
}

1
config/common/example Normal file
View File

@ -0,0 +1 @@
This string comes from config/common/example

1
config/common/route Normal file
View File

@ -0,0 +1 @@
http://localhost:8000

1
config/common/version Normal file
View File

@ -0,0 +1 @@
1.2.3

9
config/readme.md Normal file
View File

@ -0,0 +1,9 @@
### Config
Obelisk projects should contain a config folder with the following subfolders: common, frontend, and backend.
Things that should never be transmitted to the frontend belong in backend/ (e.g., email credentials)
Frontend-only configuration belongs in frontend/.
Shared configuration files (e.g., the route config) belong in common/

6
index.html Normal file
View File

@ -0,0 +1,6 @@
<html>
<head>
</head>
<body>
</body>
</html>

View File

@ -13,6 +13,10 @@
2B0EF84A2960573400F8EF57 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2B0EF8482960573400F8EF57 /* LaunchScreen.storyboard */; }; 2B0EF84A2960573400F8EF57 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2B0EF8482960573400F8EF57 /* LaunchScreen.storyboard */; };
2B1E80212978D192006EC199 /* include in Resources */ = {isa = PBXBuildFile; fileRef = 2B1E80202978D192006EC199 /* include */; }; 2B1E80212978D192006EC199 /* include in Resources */ = {isa = PBXBuildFile; fileRef = 2B1E80202978D192006EC199 /* include */; };
2B1E802629799276006EC199 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B1E802529799276006EC199 /* main.m */; }; 2B1E802629799276006EC199 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B1E802529799276006EC199 /* main.m */; };
2B1E802B2979BA05006EC199 /* index.html in Resources */ = {isa = PBXBuildFile; fileRef = 2B1E80272979BA04006EC199 /* index.html */; };
2B1E802C2979BA05006EC199 /* config in Resources */ = {isa = PBXBuildFile; fileRef = 2B1E80282979BA04006EC199 /* config */; };
2B1E802D2979BA05006EC199 /* static in Resources */ = {isa = PBXBuildFile; fileRef = 2B1E80292979BA05006EC199 /* static */; };
2B1E802E2979BA05006EC199 /* config.files in Resources */ = {isa = PBXBuildFile; fileRef = 2B1E802A2979BA05006EC199 /* config.files */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
@ -27,6 +31,10 @@
2B1E80202978D192006EC199 /* include */ = {isa = PBXFileReference; lastKnownFileType = folder; path = include; sourceTree = "<group>"; }; 2B1E80202978D192006EC199 /* include */ = {isa = PBXFileReference; lastKnownFileType = folder; path = include; sourceTree = "<group>"; };
2B1E80232978D410006EC199 /* frontend.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = frontend.a; path = ../../frontend.a; sourceTree = "<group>"; }; 2B1E80232978D410006EC199 /* frontend.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = frontend.a; path = ../../frontend.a; sourceTree = "<group>"; };
2B1E802529799276006EC199 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; 2B1E802529799276006EC199 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
2B1E80272979BA04006EC199 /* index.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = index.html; sourceTree = "<group>"; };
2B1E80282979BA04006EC199 /* config */ = {isa = PBXFileReference; lastKnownFileType = folder; path = config; sourceTree = "<group>"; };
2B1E80292979BA05006EC199 /* static */ = {isa = PBXFileReference; lastKnownFileType = folder; path = static; sourceTree = "<group>"; };
2B1E802A2979BA05006EC199 /* config.files */ = {isa = PBXFileReference; lastKnownFileType = file; path = config.files; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
@ -43,6 +51,10 @@
2B0EF82E2960573400F8EF57 = { 2B0EF82E2960573400F8EF57 = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
2B1E80282979BA04006EC199 /* config */,
2B1E802A2979BA05006EC199 /* config.files */,
2B1E80272979BA04006EC199 /* index.html */,
2B1E80292979BA05006EC199 /* static */,
2B0EF8392960573400F8EF57 /* lodewallet */, 2B0EF8392960573400F8EF57 /* lodewallet */,
2B0EF8382960573400F8EF57 /* Products */, 2B0EF8382960573400F8EF57 /* Products */,
2B1E80222978D410006EC199 /* Frameworks */, 2B1E80222978D410006EC199 /* Frameworks */,
@ -149,6 +161,10 @@
isa = PBXResourcesBuildPhase; isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
2B1E802B2979BA05006EC199 /* index.html in Resources */,
2B1E802C2979BA05006EC199 /* config in Resources */,
2B1E802D2979BA05006EC199 /* static in Resources */,
2B1E802E2979BA05006EC199 /* config.files in Resources */,
2B0EF84A2960573400F8EF57 /* LaunchScreen.storyboard in Resources */, 2B0EF84A2960573400F8EF57 /* LaunchScreen.storyboard in Resources */,
2B0EF8472960573400F8EF57 /* Assets.xcassets in Resources */, 2B0EF8472960573400F8EF57 /* Assets.xcassets in Resources */,
2B1E80212978D192006EC199 /* include in Resources */, 2B1E80212978D192006EC199 /* include in Resources */,

View File

@ -1,7 +1,7 @@
{ {
"images" : [ "images" : [
{ {
"filename" : "Icon-1024-noalpha.png", "filename" : "Icon-1024.png",
"idiom" : "universal", "idiom" : "universal",
"platform" : "ios", "platform" : "ios",
"size" : "1024x1024" "size" : "1024x1024"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

View File

@ -0,0 +1,4 @@
[ "LodeWallet now supports signData, expanding the range of things you can sign!"
, "We now support more dApp URL schemes"
, "We've also made some other UI and UX improvements on the send, sign, and submit screens"
]

View File

@ -0,0 +1,42 @@
{
"manifest_version": 3,
"name": "LodeWallet",
"version": "0.0.0.0",
"content_scripts": [
{ "matches": [
"<all_urls>"
],
"js": ["/content.js"]
}
],
"description": "The functional Cardano wallet.",
"web_accessible_resources": [
{
"resources": ["injected.js"],
"matches": ["http://*/*", "https://*/*", "<all_urls>"]
}
],
"background": {
"service_worker": "/background.jsexe/all.js"
},
"permissions": ["storage","unlimitedStorage"],
"action": {
"default_popup": "/popup.jsexe/popup.html",
"default_icon": {
"16": "/static/images/LD-Icon-16.png",
"32": "/static/images/LD-Icon-32.png",
"48": "/static/images/LD-Icon-48.png",
"128": "/static/images/LD-Icon-128.png"
}
},
"icons": {
"16": "/static/images/LD-Icon-16.png",
"32": "/static/images/LD-Icon-32.png",
"48": "/static/images/LD-Icon-48.png",
"128": "/static/images/LD-Icon-128.png"
},
"content_security_policy": {
"script-src": "self",
"object-src": "self"
}
}

View File

@ -0,0 +1,40 @@
{
"manifest_version": 2,
"name": "LodeWallet",
"version": "0.0.0.0",
"content_scripts": [
{ "matches": [
"<all_urls>"
],
"js": ["/content.js"]
}
],
"description": "The functional Cardano wallet.",
"web_accessible_resources": [
"injected.js"
],
"background": {
"scripts": [
"/background.jsexe/env.js",
"/background.jsexe/all.js",
"background.jsexe/sodium.js"
]
},
"permissions": ["storage","unlimitedStorage"],
"browser_action": {
"default_popup": "/popup.jsexe/popup.html",
"default_icon": {
"16": "/static/images/LD-Icon-16.png",
"32": "/static/images/LD-Icon-32.png",
"48": "/static/images/LD-Icon-48.png",
"128": "/static/images/LD-Icon-128.png"
}
},
"icons": {
"16": "/static/images/LD-Icon-16.png",
"32": "/static/images/LD-Icon-32.png",
"48": "/static/images/LD-Icon-48.png",
"128": "/static/images/LD-Icon-128.png"
},
"content_security_policy": "script-src 'self'; object-src 'self'"
}

4
static/changelog.json Normal file
View File

@ -0,0 +1,4 @@
[ "LodeWallet now supports signData, expanding the range of things you can sign!"
, "We now support more dApp URL schemes"
, "We've also made some other UI and UX improvements on the send, sign, and submit screens"
]

View File

@ -0,0 +1,124 @@
.bx-container {
display: flex;
height: 100%;
width: 100%;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: linear-gradient(to right, #7f1cb1, #000000);
justify-content: space-between;
}
.bx-browser {
display: flex;
margin: 10px;
flex-direction: column;
width: 50%;
height: 80%;
border: 1px solid rgb(128 128 128 / 50%);
border-radius: 4px;
box-shadow: 0 0.1em 1em 0 rgba(0, 0, 0, 0.4);
background: rgb(255 255 255 / 85%);
}
.bx-title-bar {
flex: 0 0 40px;
display: flex;
}
.bx-wm-button-container {
display: flex;
flex: 0 0 75px;
align-items: center;
justify-content: flex-start;
}
.bx-wm-buttons {
flex: 0 0 auto;
content: '';
width: 0.5em;
height: 0.5em;
margin-left: 10px;
border-radius: 50%;
background-color: #f44;
box-shadow: 0 0 0 2px #f44, 1.5em 0 0 2px #9b3, 3em 0 0 2px #fb5;
}
.bx-page {
background: white;
flex: 1 1 auto;
overflow: auto;
}
.bx-address-bar {
flex: 1 1 auto;
margin: 10px 0px 10px 0px;
background: white;
border-radius: 2px;
}
.bx-extensions {
flex: 0 1 auto;
display: flex;
align-items: center;
justify-content: center;
margin: 10px;
}
a.bx-extension-launcher {
flex: 0 0 20px;
display: flex;
cursor: pointer;
}
.bx-extension-launcher img {
height: 20px;
width: 20px;
}
.bx-extension {
position: absolute;
top: 40px;
background: white;
border: 1px solid rgb(128 128 128 / 50%);
border-radius: 4px;
box-shadow: 0 0.1em 1em 0 rgb(0 0 0 / 40%);
}
.bx-extension-popup {
position: absolute;
top: 80px;
left: 55%;
background: white;
border: 1px solid rgb(128 128 128 / 50%);
border-radius: 4px;
box-shadow: 0 0.1em 1em 0 rgb(0 0 0 / 40%);
}
/* Logging */
.bx-log {
display: flex;
flex-direction: column;
flex: 0 0 25%;
background: rgb(255 255 255 / 50%);
overflow-y: auto;
flex-flow: reverse;
font-family: monospace;
}
.bx-log-entry {
display: flex;
flex-direction: row;
}
span.bx-timestamp {
flex: 0 0 0px;
margin-right: 0.5em;
}
span.bx-log-message {
flex: 1 1 auto;
}

View File

@ -0,0 +1 @@
@font-face{font-family:proza libre;font-style:normal;font-weight:400;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-regular.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-regular.woff)format('woff')}@font-face{font-family:proza libre;font-style:normal;font-weight:500;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-500.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-500.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:400;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-italic.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:500;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-500italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-500italic.woff)format('woff')}@font-face{font-family:proza libre;font-style:normal;font-weight:600;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-600.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-600.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:600;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-600italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-600italic.woff)format('woff')}@font-face{font-family:proza libre;font-style:normal;font-weight:700;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-700.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-700.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:700;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-700italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-700italic.woff)format('woff')}@font-face{font-family:proza libre;font-style:normal;font-weight:800;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-800.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-800.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:800;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-800italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-800italic.woff)format('woff')}@font-face{font-family:krona one;font-style:normal;font-weight:400;src:local(''),url(../fonts/krona-one-v14-latin-ext_latin-regular.woff2)format('woff2'),url(../fonts/krona-one-v14-latin-ext_latin-regular.woff)format('woff')}

File diff suppressed because one or more lines are too long

1
static/css/fonts.css Normal file
View File

@ -0,0 +1 @@
@font-face{font-family:proza libre;font-style:normal;font-weight:400;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-regular.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-regular.woff)format('woff')}@font-face{font-family:proza libre;font-style:normal;font-weight:500;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-500.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-500.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:400;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-italic.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:500;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-500italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-500italic.woff)format('woff')}@font-face{font-family:proza libre;font-style:normal;font-weight:600;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-600.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-600.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:600;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-600italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-600italic.woff)format('woff')}@font-face{font-family:proza libre;font-style:normal;font-weight:700;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-700.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-700.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:700;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-700italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-700italic.woff)format('woff')}@font-face{font-family:proza libre;font-style:normal;font-weight:800;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-800.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-800.woff)format('woff')}@font-face{font-family:proza libre;font-style:italic;font-weight:800;src:local(''),url(../fonts/proza-libre-v9-latin-ext_latin-800italic.woff2)format('woff2'),url(../fonts/proza-libre-v9-latin-ext_latin-800italic.woff)format('woff')}@font-face{font-family:krona one;font-style:normal;font-weight:400;src:local(''),url(../fonts/krona-one-v14-latin-ext_latin-regular.woff2)format('woff2'),url(../fonts/krona-one-v14-latin-ext_latin-regular.woff)format('woff')}

124
static/css/simulator.css Normal file
View File

@ -0,0 +1,124 @@
.bx-container {
display: flex;
height: 100%;
width: 100%;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: linear-gradient(to right, #7f1cb1, #000000);
justify-content: space-between;
}
.bx-browser {
display: flex;
margin: 10px;
flex-direction: column;
width: 50%;
height: 80%;
border: 1px solid rgb(128 128 128 / 50%);
border-radius: 4px;
box-shadow: 0 0.1em 1em 0 rgba(0, 0, 0, 0.4);
background: rgb(255 255 255 / 85%);
}
.bx-title-bar {
flex: 0 0 40px;
display: flex;
}
.bx-wm-button-container {
display: flex;
flex: 0 0 75px;
align-items: center;
justify-content: flex-start;
}
.bx-wm-buttons {
flex: 0 0 auto;
content: '';
width: 0.5em;
height: 0.5em;
margin-left: 10px;
border-radius: 50%;
background-color: #f44;
box-shadow: 0 0 0 2px #f44, 1.5em 0 0 2px #9b3, 3em 0 0 2px #fb5;
}
.bx-page {
background: white;
flex: 1 1 auto;
overflow: auto;
}
.bx-address-bar {
flex: 1 1 auto;
margin: 10px 0px 10px 0px;
background: white;
border-radius: 2px;
}
.bx-extensions {
flex: 0 1 auto;
display: flex;
align-items: center;
justify-content: center;
margin: 10px;
}
a.bx-extension-launcher {
flex: 0 0 20px;
display: flex;
cursor: pointer;
}
.bx-extension-launcher img {
height: 20px;
width: 20px;
}
.bx-extension {
position: absolute;
top: 40px;
background: white;
border: 1px solid rgb(128 128 128 / 50%);
border-radius: 4px;
box-shadow: 0 0.1em 1em 0 rgb(0 0 0 / 40%);
}
.bx-extension-popup {
position: absolute;
top: 80px;
left: 55%;
background: white;
border: 1px solid rgb(128 128 128 / 50%);
border-radius: 4px;
box-shadow: 0 0.1em 1em 0 rgb(0 0 0 / 40%);
}
/* Logging */
.bx-log {
display: flex;
flex-direction: column;
flex: 0 0 25%;
background: rgb(255 255 255 / 50%);
overflow-y: auto;
flex-flow: reverse;
font-family: monospace;
}
.bx-log-entry {
display: flex;
flex-direction: row;
}
span.bx-timestamp {
flex: 0 0 0px;
margin-right: 0.5em;
}
span.bx-log-message {
flex: 1 1 auto;
}

1
static/css/styles.css Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<link href="css/fonts.css" rel="stylesheet" type="text/css">
<script language="javascript" src="sodium.js"></script>
<script language="javascript" src="main.js" defer></script>
<script language="javascript" src="all.js" defer></script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script language="javascript" src="sodium.js"></script>
<script language="javascript" src="main.js" defer></script>
<script language="javascript" src="all.js" defer></script>
<link href="css/styles.css" rel="stylesheet" type="text/css">
<link href="css/fonts.css" rel="stylesheet" type="text/css">
</head>
<body style="width:360px;height:600px;">
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script language="javascript" src="sodium.js"></script>
<script language="javascript" src="all.js"></script>
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script language="javascript" src="sodium.js"></script>
<script language="javascript" src="all.js"></script>
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script language="javascript" src="sodium.js"></script>
<script language="javascript" src="main.js" defer></script>
<script language="javascript" src="all.js" defer></script>
<link href="css/styles.css" rel="stylesheet" type="text/css">
<link href="css/fonts.css" rel="stylesheet" type="text/css">
</head>
<body style="width:360px;height:600px;">
</body>
</html>

13
static/html/popup.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<link href="css/fonts.css" rel="stylesheet" type="text/css">
<script language="javascript" src="sodium.js"></script>
<script language="javascript" src="main.js" defer></script>
<script language="javascript" src="all.js" defer></script>
</head>
<body>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="66.519783mm" height="66.519783mm" viewBox="0 0 15.605595 67.255818" version="1.1" id="svg501" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs18"/>
<g id="g7" transform="translate(-25.825113)">
<path style="fill:#ffffff;fill-opacity:1;stroke-width:0.227303" d="m 128.97657,61.41792 c -5.5076,7.035601 -10.67759,14.356788 -16.02644,21.523227 -10.60919,14.500392 -21.347094,28.913803 -31.776403,43.542193 -0.839343,1.20088 0.971093,2.54573 1.839732,1.33274 10.037094,-8.67346 19.814391,-17.64198 29.796201,-26.37867 -2.02418,6.92658 -3.76874,13.99112 -7.01654,20.47839 -0.96789,2.31741 -2.20754,4.54856 -3.01231,6.91915 -0.0301,1.31478 1.69407,1.34947 2.31076,0.45149 2.61435,-2.329 5.0861,-4.81267 7.63152,-7.21597 5.58306,-0.51852 11.20068,-0.80331 16.75869,-1.51787 1.43059,-0.90777 -0.0731,-2.4985 -0.35443,-3.63762 -1.5663,-3.6759 -3.23686,-7.30629 -4.81049,-10.97901 4.6895,-2.96881 9.64351,-5.63806 14.31253,-8.629099 0.79399,-1.200954 -0.16753,-2.831438 -0.11976,-4.197518 -0.41517,-3.080487 -0.8468,-6.158805 -1.24362,-9.241733 7.57045,7.524699 14.77689,15.470177 22.48078,22.88522 0.80162,1.06616 2.67328,0.0829 1.88901,-1.17248 -10.30497,-14.724994 -20.73023,-29.369033 -31.26878,-43.927591 -0.41324,-0.409414 -0.86317,-0.484652 -1.39045,-0.234849 z" id="path3320" transform="scale(0.26458333)"/>
<path style="fill:#ffffff;fill-opacity:1;stroke-width:0.227303" d="M 126.20587,12.376458 C 103.9167,12.620181 81.640316,19.275895 63.220091,31.912324 44.126519,44.656455 29.072008,63.279146 20.564242,84.596587 13.973128,101.04891 11.24875,119.0764 12.79688,136.73594 c -0.117962,1.1551 1.220966,2.22572 2.127019,1.16839 13.570289,-10.95938 26.983506,-22.17308 40.601463,-33.03606 7.492943,4.64737 14.729663,9.79123 22.374671,14.21574 1.55527,0.27965 2.022124,-1.87668 2.965595,-2.73157 15.891091,-21.870326 31.664512,-43.826269 47.627032,-65.644833 17.34555,23.676164 34.37872,47.572461 51.62747,71.321133 1.29128,1.10852 2.69234,-0.62457 3.75077,-1.27732 10.38745,-8.1979 20.51021,-16.72717 30.91557,-24.902903 8.43438,7.683193 16.40298,15.937723 24.87323,23.604863 1.04978,0.90625 2.20277,-0.47394 1.77751,-1.56617 C 239.31405,90.152983 226.51101,63.471249 206.39178,44.293039 185.12523,23.761292 155.77134,12.055216 126.20587,12.376458 Z" id="path3398" transform="scale(0.26458333)"/>
<path style="fill:#ffffff;fill-opacity:1;stroke-width:0.227303" d="m 214.77493,102.26893 c -4.5495,2.94446 -8.67989,6.52709 -13.02757,9.76785 -7.5068,5.89669 -15.20971,11.55464 -22.58261,17.61592 -1.16919,0.85828 0.0622,2.57794 1.27725,1.91432 5.93252,-1.46845 11.83679,-3.21643 17.72295,-4.74939 -1.88644,2.62436 -3.99461,5.10296 -5.72252,7.83396 -0.38045,1.24128 1.20204,1.71528 2.0331,1.02968 6.91855,-2.90465 13.72481,-6.06912 20.64257,-8.97551 5.23432,4.04557 10.11634,8.54774 15.39488,12.52562 1.25414,0.51176 1.95418,-1.16933 1.17514,-2.05416 -1.39541,-2.91903 -2.64567,-5.9312 -4.18024,-8.76936 -3.49841,-3.08636 -7.06201,-6.09758 -10.61131,-9.12496 2.05729,-0.25734 4.25147,0.0577 6.21398,-0.59534 0.79842,-1.37006 -0.82192,-2.70347 -1.15609,-4.02142 -2.01709,-4.00821 -3.64806,-8.24678 -6.04036,-12.04871 -0.28453,-0.34233 -0.71591,-0.43308 -1.13917,-0.3485 z" id="path3437" transform="scale(0.26458333)"/>
<path style="fill:#e4c21e;fill-opacity:1;stroke-width:0.227303" d="m 140.47977,89.853852 c -1.4813,0.707706 -0.35758,2.515689 -0.3259,3.70839 0.26979,1.43294 0.63699,2.850853 0.80315,4.301369 -4.12388,2.615959 -8.46363,4.941769 -12.54331,7.586769 -0.86922,1.18253 0.5883,2.58827 0.80522,3.82052 3.1712,7.97885 6.39027,15.93844 9.58892,23.90633 -6.00158,11.41813 -12.0029,22.83639 -18.00397,34.25479 -4.11692,1.83673 -8.23383,3.6735 -12.35071,5.51032 -1.5651,-0.73806 -3.10719,-1.91987 -4.92644,-1.30157 -1.9277,0.32737 -3.973752,0.21385 -5.824274,0.82876 -2.214517,1.84236 -4.311763,3.88662 -6.597549,5.60616 -2.646003,1.03828 -5.493076,1.6933 -7.968918,3.10549 -1.055448,1.05209 0.444436,2.47058 1.604882,1.86059 3.26986,-0.88566 6.614177,-1.68744 9.772312,-2.86021 1.578235,-1.68297 3.062825,-3.4186 4.682724,-5.0612 2.878113,0.63016 5.713483,1.63965 8.618413,2.03196 3.51203,-1.05354 7.01088,-2.15228 10.53984,-3.1485 1.11175,8.80816 1.96018,17.69032 3.10943,26.4972 3.35062,6.73614 6.79281,13.48452 10.04483,20.23173 -2.9093,3.98814 -5.81261,7.98983 -9.06855,11.71951 -1.31566,0.64998 -1.16969,2.20402 0.0287,2.89128 2.44391,2.37848 4.56762,5.13802 7.26141,7.23602 1.16475,0.66005 2.21212,-1.05035 1.24484,-1.901 -1.52037,-2.37081 -3.42506,-4.65363 -4.80577,-7.00909 3.87543,-4.80066 8.03316,-9.41157 11.84931,-14.2313 0.39047,-1.35015 -1.11742,-2.4651 -1.5407,-3.69287 -3.15222,-5.72828 -6.62982,-11.29417 -9.45667,-17.19278 -0.65435,-8.73523 -1.42215,-17.46177 -2.13806,-26.1922 3.09918,-4.18959 6.19839,-8.37916 9.29766,-12.56869 2.25392,2.18202 4.25344,4.71687 6.66489,6.68058 3.25536,0.12357 6.61359,-0.31838 9.90846,-0.41101 2.35445,-0.0905 4.76519,-0.33042 7.07412,-0.31708 2.17172,1.66424 4.27339,3.40382 6.19312,5.36248 1.40733,5.00635 2.33886,10.15466 3.92053,15.10454 0.63726,1.1491 2.52648,0.44167 2.19178,-0.84529 -0.20854,-2.71978 -0.51663,-5.43376 -0.92075,-8.1314 1.35399,-0.55468 2.70046,-1.47905 4.17996,-0.76797 1.87578,0.24298 3.73688,1.10109 5.62291,0.92646 1.99401,-1.26292 4.29731,-2.14858 6.04528,-3.75227 0.73975,-1.19797 -0.9061,-2.27276 -1.90677,-1.47569 -1.49983,0.53265 -2.96432,1.55801 -4.46354,1.82042 -2.28911,-0.69949 -4.46894,-2.02041 -6.8319,-2.30211 -0.94438,0.33551 -1.91379,0.79829 -2.85282,1.04462 -0.63763,-1.62139 -0.62311,-3.60655 -1.69579,-5.04134 -2.5024,-2.03402 -4.89501,-4.2595 -7.46442,-6.17668 -2.15005,-0.3211 -4.42116,0.21715 -6.61594,0.21392 -3.54498,0.2143 -7.08995,0.42878 -10.63493,0.64318 -2.11007,-2.0428 -4.26558,-4.01737 -6.28501,-6.12874 3.68544,-7.49826 7.87421,-14.75622 11.30698,-22.37334 -0.3409,-2.38354 -1.59304,-4.62419 -2.29118,-6.94885 -2.26849,-6.29072 -4.61808,-12.55087 -6.75209,-18.89042 2.93283,-2.56939 6.36789,-4.56535 9.09832,-7.35404 0.46509,-1.279641 -0.4421,-2.656136 -0.49435,-3.965746 -0.18185,-2.113504 -2.36976,-3.127907 -3.59132,-4.648231 -0.97599,-0.711769 -1.76866,-2.27045 -3.10633,-2.203771 z" id="path3476" transform="scale(0.26458333)"/>
<path style="fill:#ffffff;fill-opacity:1;stroke-width:0.227303" d="m 55.323363,109.93152 c -7.34388,5.76936 -14.388086,11.94047 -21.602228,17.88115 -3.885652,3.31834 -7.928087,6.47366 -11.662555,9.95856 -0.755314,1.10079 0.747242,2.19578 1.751385,1.56315 9.011129,-2.4075 18.050194,-4.70946 27.086767,-7.01931 -3.444207,2.30196 -7.0893,4.35043 -10.366694,6.87813 -0.762641,1.309 0.942448,1.87448 1.943541,1.84043 10.539763,1.32919 21.11975,2.40506 31.683951,3.46789 1.375302,-0.27236 0.919719,-1.92467 0.239734,-2.66592 -5.96883,-10.47961 -11.861598,-21.00251 -17.833946,-31.4801 -0.383981,-0.42839 -0.675506,-0.52391 -1.239955,-0.42398 z" id="path3515" transform="scale(0.26458333)"/>
</g>
<g id="layer1" transform="translate(104.81245,70.574596)" style="display:inline">
<g id="g66" transform="matrix(0.35277777,0,0,-0.35277777,-21.034783,-35.033058)"/>
<g id="g162" transform="matrix(0.35277777,0,0,-0.35277777,-94.300623,-12.849404)">
<path d="M 0,0 -0.152,0.621 0.006,-0.634 Z" style="fill:#e4c21d;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path164"/>
</g>
<g id="g170" transform="matrix(0.27941297,0,0,-0.27941297,-73.784006,-45.566576)">
<path d="m 0,0 -31.962,-26.006 -49.84,69.013 -47.612,-65.78 -21.597,14.097 L -190.455,-41 c -0.314,3.342 -0.482,6.727 -0.482,10.15 0,59.449 48.366,107.813 107.814,107.813 57.018,0 103.831,-44.492 107.565,-100.581 z m 0.401,-29.425 -21.533,-9.538 7.483,9.881 -21.171,-5.851 35.221,27.247 6.919,-14.633 -7.538,-0.404 11.542,-9.835 4.709,-9.947 z m -73.099,27.365 -14.151,-8.376 6.001,-13.497 -16.2,-1.342 -8.866,-8.48 6.192,13.743 4.744,16.132 -32.835,-29.346 46.965,64.345 32.382,-45.668 -25.446,26.349 -0.702,0.357 z m 38.308,-75.721 -6.411,1.358 -3.358,-1.373 1.902,-15.145 0.152,-0.622 0.005,-0.634 -0.157,1.256 -5.117,20.889 -6.167,5.522 -16.511,-0.833 -6.365,6.786 -0.09,0.017 -9.571,-12.944 2.127,-25.825 10.531,-18.564 -11.705,-13.87 8.067,-11.345 -9.746,10.202 -0.953,0.998 1.677,1.486 8.167,10.821 -9.793,19.47 -2.934,25.999 -11.018,-3.338 -8.24,2.075 -4.608,-5.137 -22.938,-6.512 20.749,7.213 6.289,5.408 6.614,0.734 2.962,-1.493 12.313,5.483 17.381,33.05 -3.317,8.249 -1.492,3.711 -0.986,2.452 -4.525,11.253 12.453,7.425 -1.587,7.749 5.401,-5.243 0.961,-4.541 -9.147,-6.868 9.038,-24.805 -11.154,-21.348 6.795,-6.497 16.206,1.008 7.139,-5.99 1.337,-5.108 3.599,1.377 6.365,-2.383 11.865,5.35 z m -148.575,35.654 32.246,26.946 17.713,-31.338 -32.247,3.407 14.988,9.537 z M 37.229,-30.85 c 0,66.469 -53.883,120.352 -120.352,120.352 -66.469,0 -120.352,-53.883 -120.352,-120.352 0,-66.468 53.883,-120.352 120.352,-120.352 15.076,0 29.5,2.781 42.8,7.843 0.229,0.087 0.458,0.172 0.686,0.26 0.536,0.208 1.07,0.422 1.602,0.637 0.449,0.18 0.896,0.362 1.342,0.548 0.325,0.136 0.65,0.275 0.974,0.414 0.653,0.279 1.302,0.563 1.948,0.853 0.13,0.058 0.26,0.117 0.39,0.176 40.234,18.221 68.656,57.935 70.61,104.497 l -0.112,0.108 c 0.068,1.664 0.112,3.335 0.112,5.016" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path172"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 375 346.5" style="enable-background:new 0 0 375 346.5;" xml:space="preserve">
<style type="text/css">
.st0{fill:#0033AD;}
</style>
<g id="Layer_2_1_">
<g id="Layer_1-2">
<path class="st0" d="M102.8,172c-0.8,13.9,9.9,25.8,23.8,26.6c0.5,0,1,0,1.5,0c14,0,25.3-11.3,25.2-25.3c0-14-11.3-25.3-25.3-25.2
C114.6,148.1,103.5,158.6,102.8,172z"/>
<path class="st0" d="M8.6,165.5c-4.5-0.3-8.4,3.2-8.6,7.7s3.2,8.4,7.7,8.6c4.5,0.3,8.3-3.2,8.6-7.7
C16.6,169.6,13.1,165.8,8.6,165.5C8.6,165.5,8.6,165.5,8.6,165.5z"/>
<path class="st0" d="M101.2,25.4c4-2,5.6-7,3.6-11c-2-4-7-5.6-11-3.6c-4,2-5.6,6.9-3.6,10.9C92.2,25.8,97.1,27.5,101.2,25.4
C101.1,25.4,101.2,25.4,101.2,25.4z"/>
<path class="st0" d="M126.8,70.1c6.2-3.1,8.7-10.7,5.6-16.9s-10.7-8.7-16.9-5.6c-6.2,3.1-8.7,10.7-5.6,16.9
C113,70.7,120.6,73.2,126.8,70.1z"/>
<path class="st0" d="M40.6,100.8c4.8,3.1,11.2,1.8,14.4-3c3.1-4.8,1.8-11.2-3-14.4c-4.8-3.1-11.2-1.8-14.4,3c0,0,0,0,0,0
C34.4,91.2,35.8,97.7,40.6,100.8z"/>
<path class="st0" d="M55.9,161c-7-0.4-12.9,4.9-13.3,11.9s4.9,12.9,11.9,13.3c7,0.4,12.9-4.9,13.3-11.9c0,0,0,0,0,0
C68.2,167.4,62.9,161.4,55.9,161z"/>
<path class="st0" d="M42,245.7c-5.1,2.6-7.2,8.8-4.6,14c2.6,5.1,8.8,7.2,14,4.6c5.1-2.6,7.2-8.8,4.6-14c0,0,0,0,0,0
C53.4,245.2,47.1,243.1,42,245.7C42,245.7,42,245.7,42,245.7z"/>
<path class="st0" d="M91,134.9c6.9,4.5,16.1,2.6,20.5-4.3c4.5-6.9,2.6-16.1-4.3-20.5c-6.9-4.5-16.1-2.6-20.5,4.3
C82.2,121.2,84.1,130.4,91,134.9C91,134.9,91,134.9,91,134.9z"/>
<path class="st0" d="M246.5,69.1c5.8,3.8,13.7,2.2,17.5-3.6s2.2-13.7-3.6-17.5c-5.8-3.8-13.7-2.2-17.5,3.6c0,0,0,0,0,0
C239,57.5,240.6,65.3,246.5,69.1C246.5,69.1,246.5,69.1,246.5,69.1z"/>
<path class="st0" d="M272.3,24.6c3.8,2.5,8.8,1.4,11.3-2.4s1.4-8.8-2.4-11.3c-3.8-2.5-8.8-1.4-11.3,2.3
C267.5,17,268.6,22.1,272.3,24.6C272.3,24.6,272.3,24.6,272.3,24.6z"/>
<path class="st0" d="M248.4,147.9c-13.9-0.8-25.9,9.9-26.6,23.8c-0.8,13.9,9.9,25.9,23.8,26.6c0.5,0,1,0,1.4,0
c13.9,0,25.2-11.3,25.2-25.3C272.3,159.7,261.8,148.6,248.4,147.9L248.4,147.9z"/>
<path class="st0" d="M135.1,133.1c4.3,8.5,13,13.9,22.6,13.9c13.9,0,25.2-11.3,25.2-25.3c0-3.9-0.9-7.8-2.7-11.4
c-6.3-12.5-21.5-17.5-33.9-11.2C133.8,105.5,128.8,120.7,135.1,133.1L135.1,133.1z"/>
<path class="st0" d="M333,100.8c5.1-2.6,7.1-8.9,4.5-14c-2.6-5.1-8.9-7.1-14-4.5c-5.1,2.6-7.1,8.8-4.6,13.9
C321.6,101.3,327.8,103.4,333,100.8C333,100.8,333,100.8,333,100.8z"/>
<path class="st0" d="M269,108.8c-7.3,3.7-10.3,12.6-6.6,19.9c3.7,7.3,12.6,10.3,19.9,6.6c7.3-3.7,10.3-12.6,6.6-19.9
C285.2,108.1,276.3,105.2,269,108.8z"/>
<path class="st0" d="M186.5,20.8c5.7,0.3,10.6-4.1,11-9.8s-4.1-10.6-9.8-11c-5.7-0.3-10.6,4-11,9.7
C176.4,15.5,180.8,20.4,186.5,20.8C186.5,20.8,186.5,20.8,186.5,20.8z"/>
<path class="st0" d="M186.4,86.1c8.2,0.5,15.2-5.8,15.6-14c0.5-8.2-5.8-15.2-14-15.6c-8.2-0.5-15.2,5.8-15.6,14
C172,78.7,178.2,85.7,186.4,86.1C186.4,86.1,186.4,86.1,186.4,86.1z"/>
<path class="st0" d="M106,237.7c7.3-3.7,10.3-12.6,6.6-19.9c-3.7-7.3-12.6-10.3-19.9-6.6c-7.3,3.7-10.3,12.6-6.6,19.9
C89.8,238.4,98.7,241.4,106,237.7z"/>
<path class="st0" d="M196,107.8c-7.6,11.7-4.4,27.3,7.3,34.9c11.7,7.6,27.3,4.4,34.9-7.3c7.6-11.7,4.4-27.3-7.3-34.9
c-4.1-2.7-8.9-4.1-13.8-4.1C208.6,96.4,200.7,100.7,196,107.8z"/>
<path class="st0" d="M239.9,213.4c-6.3-12.5-21.5-17.5-33.9-11.2c-12.5,6.3-17.5,21.5-11.2,33.9c6.3,12.5,21.5,17.5,33.9,11.2
c0,0,0,0,0,0c12.4-6.2,17.5-21.2,11.3-33.7C240,213.5,240,213.5,239.9,213.4z"/>
<path class="st0" d="M284,211.6c-6.9-4.5-16.1-2.6-20.5,4.3c-4.5,6.9-2.6,16.1,4.3,20.5c6.9,4.5,16.1,2.6,20.5-4.3
C292.8,225.3,290.9,216.1,284,211.6C284,211.6,284,211.6,284,211.6z"/>
<path class="st0" d="M332.4,173.7c0.4-7-4.9-12.9-11.9-13.3c-7-0.4-12.9,4.9-13.3,11.9c-0.4,7,4.9,12.9,11.9,13.3c0,0,0,0,0,0
C326,186,332,180.6,332.4,173.7z"/>
<path class="st0" d="M367.3,164.7c-4.5-0.3-8.4,3.2-8.6,7.7s3.2,8.4,7.7,8.6c4.5,0.3,8.3-3.2,8.6-7.7
C375.2,168.8,371.8,165,367.3,164.7z"/>
<path class="st0" d="M334.4,245.7c-4.8-3.1-11.2-1.8-14.4,3c-3.1,4.8-1.8,11.2,3,14.4c4.8,3.1,11.2,1.8,14.4-3
C340.6,255.3,339.2,248.8,334.4,245.7C334.4,245.7,334.4,245.7,334.4,245.7z"/>
<path class="st0" d="M102.6,321.9c-3.8-2.5-8.8-1.4-11.3,2.3c-2.5,3.8-1.4,8.8,2.3,11.3c3.8,2.5,8.8,1.4,11.3-2.3c0,0,0,0,0,0
C107.5,329.5,106.4,324.4,102.6,321.9z"/>
<path class="st0" d="M273.8,321.1c-4,2-5.6,7-3.6,11c2,4,7,5.6,11,3.6c4-2,5.6-6.9,3.6-10.9C282.8,320.7,277.9,319,273.8,321.1
C273.9,321.1,273.8,321.1,273.8,321.1z"/>
<path class="st0" d="M179,238.7c7.6-11.7,4.4-27.3-7.3-35c-11.7-7.6-27.3-4.4-35,7.3s-4.4,27.3,7.3,35c4.1,2.7,8.9,4.1,13.8,4.1
C166.4,250.2,174.3,245.9,179,238.7z"/>
<path class="st0" d="M128.5,277.4c-5.8-3.8-13.7-2.2-17.5,3.6c-3.8,5.8-2.2,13.7,3.6,17.5s13.7,2.2,17.5-3.6c0,0,0,0,0,0
C136,289.1,134.4,281.2,128.5,277.4z"/>
<path class="st0" d="M187.4,325.7c-5.7-0.3-10.6,4.1-11,9.8s4.1,10.6,9.8,11c5.7,0.3,10.6-4,11-9.7
C197.5,331,193.1,326.1,187.4,325.7C187.4,325.7,187.4,325.7,187.4,325.7z"/>
<path class="st0" d="M187.5,260.4c-8.2-0.5-15.2,5.8-15.6,14c-0.5,8.2,5.8,15.2,14,15.6c8.2,0.4,15.2-5.8,15.6-14
C202,267.9,195.7,260.8,187.5,260.4C187.5,260.4,187.5,260.4,187.5,260.4z"/>
<path class="st0" d="M248.2,276.4c-6.2,3.2-8.7,10.8-5.5,17c3.2,6.2,10.8,8.7,17,5.5c6.2-3.1,8.7-10.7,5.6-16.9
C262.1,275.8,254.5,273.2,248.2,276.4C248.2,276.4,248.2,276.4,248.2,276.4z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 KiB

BIN
static/images/bg.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 375 346.5" style="enable-background:new 0 0 375 346.5;" xml:space="preserve">
<style type="text/css">
.st0{fill:#0033AD;}
</style>
<g id="Layer_2_1_">
<g id="Layer_1-2">
<path class="st0" d="M102.8,172c-0.8,13.9,9.9,25.8,23.8,26.6c0.5,0,1,0,1.5,0c14,0,25.3-11.3,25.2-25.3c0-14-11.3-25.3-25.3-25.2
C114.6,148.1,103.5,158.6,102.8,172z"/>
<path class="st0" d="M8.6,165.5c-4.5-0.3-8.4,3.2-8.6,7.7s3.2,8.4,7.7,8.6c4.5,0.3,8.3-3.2,8.6-7.7
C16.6,169.6,13.1,165.8,8.6,165.5C8.6,165.5,8.6,165.5,8.6,165.5z"/>
<path class="st0" d="M101.2,25.4c4-2,5.6-7,3.6-11c-2-4-7-5.6-11-3.6c-4,2-5.6,6.9-3.6,10.9C92.2,25.8,97.1,27.5,101.2,25.4
C101.1,25.4,101.2,25.4,101.2,25.4z"/>
<path class="st0" d="M126.8,70.1c6.2-3.1,8.7-10.7,5.6-16.9s-10.7-8.7-16.9-5.6c-6.2,3.1-8.7,10.7-5.6,16.9
C113,70.7,120.6,73.2,126.8,70.1z"/>
<path class="st0" d="M40.6,100.8c4.8,3.1,11.2,1.8,14.4-3c3.1-4.8,1.8-11.2-3-14.4c-4.8-3.1-11.2-1.8-14.4,3c0,0,0,0,0,0
C34.4,91.2,35.8,97.7,40.6,100.8z"/>
<path class="st0" d="M55.9,161c-7-0.4-12.9,4.9-13.3,11.9s4.9,12.9,11.9,13.3c7,0.4,12.9-4.9,13.3-11.9c0,0,0,0,0,0
C68.2,167.4,62.9,161.4,55.9,161z"/>
<path class="st0" d="M42,245.7c-5.1,2.6-7.2,8.8-4.6,14c2.6,5.1,8.8,7.2,14,4.6c5.1-2.6,7.2-8.8,4.6-14c0,0,0,0,0,0
C53.4,245.2,47.1,243.1,42,245.7C42,245.7,42,245.7,42,245.7z"/>
<path class="st0" d="M91,134.9c6.9,4.5,16.1,2.6,20.5-4.3c4.5-6.9,2.6-16.1-4.3-20.5c-6.9-4.5-16.1-2.6-20.5,4.3
C82.2,121.2,84.1,130.4,91,134.9C91,134.9,91,134.9,91,134.9z"/>
<path class="st0" d="M246.5,69.1c5.8,3.8,13.7,2.2,17.5-3.6s2.2-13.7-3.6-17.5c-5.8-3.8-13.7-2.2-17.5,3.6c0,0,0,0,0,0
C239,57.5,240.6,65.3,246.5,69.1C246.5,69.1,246.5,69.1,246.5,69.1z"/>
<path class="st0" d="M272.3,24.6c3.8,2.5,8.8,1.4,11.3-2.4s1.4-8.8-2.4-11.3c-3.8-2.5-8.8-1.4-11.3,2.3
C267.5,17,268.6,22.1,272.3,24.6C272.3,24.6,272.3,24.6,272.3,24.6z"/>
<path class="st0" d="M248.4,147.9c-13.9-0.8-25.9,9.9-26.6,23.8c-0.8,13.9,9.9,25.9,23.8,26.6c0.5,0,1,0,1.4,0
c13.9,0,25.2-11.3,25.2-25.3C272.3,159.7,261.8,148.6,248.4,147.9L248.4,147.9z"/>
<path class="st0" d="M135.1,133.1c4.3,8.5,13,13.9,22.6,13.9c13.9,0,25.2-11.3,25.2-25.3c0-3.9-0.9-7.8-2.7-11.4
c-6.3-12.5-21.5-17.5-33.9-11.2C133.8,105.5,128.8,120.7,135.1,133.1L135.1,133.1z"/>
<path class="st0" d="M333,100.8c5.1-2.6,7.1-8.9,4.5-14c-2.6-5.1-8.9-7.1-14-4.5c-5.1,2.6-7.1,8.8-4.6,13.9
C321.6,101.3,327.8,103.4,333,100.8C333,100.8,333,100.8,333,100.8z"/>
<path class="st0" d="M269,108.8c-7.3,3.7-10.3,12.6-6.6,19.9c3.7,7.3,12.6,10.3,19.9,6.6c7.3-3.7,10.3-12.6,6.6-19.9
C285.2,108.1,276.3,105.2,269,108.8z"/>
<path class="st0" d="M186.5,20.8c5.7,0.3,10.6-4.1,11-9.8s-4.1-10.6-9.8-11c-5.7-0.3-10.6,4-11,9.7
C176.4,15.5,180.8,20.4,186.5,20.8C186.5,20.8,186.5,20.8,186.5,20.8z"/>
<path class="st0" d="M186.4,86.1c8.2,0.5,15.2-5.8,15.6-14c0.5-8.2-5.8-15.2-14-15.6c-8.2-0.5-15.2,5.8-15.6,14
C172,78.7,178.2,85.7,186.4,86.1C186.4,86.1,186.4,86.1,186.4,86.1z"/>
<path class="st0" d="M106,237.7c7.3-3.7,10.3-12.6,6.6-19.9c-3.7-7.3-12.6-10.3-19.9-6.6c-7.3,3.7-10.3,12.6-6.6,19.9
C89.8,238.4,98.7,241.4,106,237.7z"/>
<path class="st0" d="M196,107.8c-7.6,11.7-4.4,27.3,7.3,34.9c11.7,7.6,27.3,4.4,34.9-7.3c7.6-11.7,4.4-27.3-7.3-34.9
c-4.1-2.7-8.9-4.1-13.8-4.1C208.6,96.4,200.7,100.7,196,107.8z"/>
<path class="st0" d="M239.9,213.4c-6.3-12.5-21.5-17.5-33.9-11.2c-12.5,6.3-17.5,21.5-11.2,33.9c6.3,12.5,21.5,17.5,33.9,11.2
c0,0,0,0,0,0c12.4-6.2,17.5-21.2,11.3-33.7C240,213.5,240,213.5,239.9,213.4z"/>
<path class="st0" d="M284,211.6c-6.9-4.5-16.1-2.6-20.5,4.3c-4.5,6.9-2.6,16.1,4.3,20.5c6.9,4.5,16.1,2.6,20.5-4.3
C292.8,225.3,290.9,216.1,284,211.6C284,211.6,284,211.6,284,211.6z"/>
<path class="st0" d="M332.4,173.7c0.4-7-4.9-12.9-11.9-13.3c-7-0.4-12.9,4.9-13.3,11.9c-0.4,7,4.9,12.9,11.9,13.3c0,0,0,0,0,0
C326,186,332,180.6,332.4,173.7z"/>
<path class="st0" d="M367.3,164.7c-4.5-0.3-8.4,3.2-8.6,7.7s3.2,8.4,7.7,8.6c4.5,0.3,8.3-3.2,8.6-7.7
C375.2,168.8,371.8,165,367.3,164.7z"/>
<path class="st0" d="M334.4,245.7c-4.8-3.1-11.2-1.8-14.4,3c-3.1,4.8-1.8,11.2,3,14.4c4.8,3.1,11.2,1.8,14.4-3
C340.6,255.3,339.2,248.8,334.4,245.7C334.4,245.7,334.4,245.7,334.4,245.7z"/>
<path class="st0" d="M102.6,321.9c-3.8-2.5-8.8-1.4-11.3,2.3c-2.5,3.8-1.4,8.8,2.3,11.3c3.8,2.5,8.8,1.4,11.3-2.3c0,0,0,0,0,0
C107.5,329.5,106.4,324.4,102.6,321.9z"/>
<path class="st0" d="M273.8,321.1c-4,2-5.6,7-3.6,11c2,4,7,5.6,11,3.6c4-2,5.6-6.9,3.6-10.9C282.8,320.7,277.9,319,273.8,321.1
C273.9,321.1,273.8,321.1,273.8,321.1z"/>
<path class="st0" d="M179,238.7c7.6-11.7,4.4-27.3-7.3-35c-11.7-7.6-27.3-4.4-35,7.3s-4.4,27.3,7.3,35c4.1,2.7,8.9,4.1,13.8,4.1
C166.4,250.2,174.3,245.9,179,238.7z"/>
<path class="st0" d="M128.5,277.4c-5.8-3.8-13.7-2.2-17.5,3.6c-3.8,5.8-2.2,13.7,3.6,17.5s13.7,2.2,17.5-3.6c0,0,0,0,0,0
C136,289.1,134.4,281.2,128.5,277.4z"/>
<path class="st0" d="M187.4,325.7c-5.7-0.3-10.6,4.1-11,9.8s4.1,10.6,9.8,11c5.7,0.3,10.6-4,11-9.7
C197.5,331,193.1,326.1,187.4,325.7C187.4,325.7,187.4,325.7,187.4,325.7z"/>
<path class="st0" d="M187.5,260.4c-8.2-0.5-15.2,5.8-15.6,14c-0.5,8.2,5.8,15.2,14,15.6c8.2,0.4,15.2-5.8,15.6-14
C202,267.9,195.7,260.8,187.5,260.4C187.5,260.4,187.5,260.4,187.5,260.4z"/>
<path class="st0" d="M248.2,276.4c-6.2,3.2-8.7,10.8-5.5,17c3.2,6.2,10.8,8.7,17,5.5c6.2-3.1,8.7-10.7,5.6-16.9
C262.1,275.8,254.5,273.2,248.2,276.4C248.2,276.4,248.2,276.4,248.2,276.4z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.6 KiB

20
static/images/lode.svg Normal file
View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="66.519783mm" height="66.519783mm" viewBox="0 0 15.605595 67.255818" version="1.1" id="svg501" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs18"/>
<g id="g7" transform="translate(-25.825113)">
<path style="fill:#ffffff;fill-opacity:1;stroke-width:0.227303" d="m 128.97657,61.41792 c -5.5076,7.035601 -10.67759,14.356788 -16.02644,21.523227 -10.60919,14.500392 -21.347094,28.913803 -31.776403,43.542193 -0.839343,1.20088 0.971093,2.54573 1.839732,1.33274 10.037094,-8.67346 19.814391,-17.64198 29.796201,-26.37867 -2.02418,6.92658 -3.76874,13.99112 -7.01654,20.47839 -0.96789,2.31741 -2.20754,4.54856 -3.01231,6.91915 -0.0301,1.31478 1.69407,1.34947 2.31076,0.45149 2.61435,-2.329 5.0861,-4.81267 7.63152,-7.21597 5.58306,-0.51852 11.20068,-0.80331 16.75869,-1.51787 1.43059,-0.90777 -0.0731,-2.4985 -0.35443,-3.63762 -1.5663,-3.6759 -3.23686,-7.30629 -4.81049,-10.97901 4.6895,-2.96881 9.64351,-5.63806 14.31253,-8.629099 0.79399,-1.200954 -0.16753,-2.831438 -0.11976,-4.197518 -0.41517,-3.080487 -0.8468,-6.158805 -1.24362,-9.241733 7.57045,7.524699 14.77689,15.470177 22.48078,22.88522 0.80162,1.06616 2.67328,0.0829 1.88901,-1.17248 -10.30497,-14.724994 -20.73023,-29.369033 -31.26878,-43.927591 -0.41324,-0.409414 -0.86317,-0.484652 -1.39045,-0.234849 z" id="path3320" transform="scale(0.26458333)"/>
<path style="fill:#ffffff;fill-opacity:1;stroke-width:0.227303" d="M 126.20587,12.376458 C 103.9167,12.620181 81.640316,19.275895 63.220091,31.912324 44.126519,44.656455 29.072008,63.279146 20.564242,84.596587 13.973128,101.04891 11.24875,119.0764 12.79688,136.73594 c -0.117962,1.1551 1.220966,2.22572 2.127019,1.16839 13.570289,-10.95938 26.983506,-22.17308 40.601463,-33.03606 7.492943,4.64737 14.729663,9.79123 22.374671,14.21574 1.55527,0.27965 2.022124,-1.87668 2.965595,-2.73157 15.891091,-21.870326 31.664512,-43.826269 47.627032,-65.644833 17.34555,23.676164 34.37872,47.572461 51.62747,71.321133 1.29128,1.10852 2.69234,-0.62457 3.75077,-1.27732 10.38745,-8.1979 20.51021,-16.72717 30.91557,-24.902903 8.43438,7.683193 16.40298,15.937723 24.87323,23.604863 1.04978,0.90625 2.20277,-0.47394 1.77751,-1.56617 C 239.31405,90.152983 226.51101,63.471249 206.39178,44.293039 185.12523,23.761292 155.77134,12.055216 126.20587,12.376458 Z" id="path3398" transform="scale(0.26458333)"/>
<path style="fill:#ffffff;fill-opacity:1;stroke-width:0.227303" d="m 214.77493,102.26893 c -4.5495,2.94446 -8.67989,6.52709 -13.02757,9.76785 -7.5068,5.89669 -15.20971,11.55464 -22.58261,17.61592 -1.16919,0.85828 0.0622,2.57794 1.27725,1.91432 5.93252,-1.46845 11.83679,-3.21643 17.72295,-4.74939 -1.88644,2.62436 -3.99461,5.10296 -5.72252,7.83396 -0.38045,1.24128 1.20204,1.71528 2.0331,1.02968 6.91855,-2.90465 13.72481,-6.06912 20.64257,-8.97551 5.23432,4.04557 10.11634,8.54774 15.39488,12.52562 1.25414,0.51176 1.95418,-1.16933 1.17514,-2.05416 -1.39541,-2.91903 -2.64567,-5.9312 -4.18024,-8.76936 -3.49841,-3.08636 -7.06201,-6.09758 -10.61131,-9.12496 2.05729,-0.25734 4.25147,0.0577 6.21398,-0.59534 0.79842,-1.37006 -0.82192,-2.70347 -1.15609,-4.02142 -2.01709,-4.00821 -3.64806,-8.24678 -6.04036,-12.04871 -0.28453,-0.34233 -0.71591,-0.43308 -1.13917,-0.3485 z" id="path3437" transform="scale(0.26458333)"/>
<path style="fill:#e4c21e;fill-opacity:1;stroke-width:0.227303" d="m 140.47977,89.853852 c -1.4813,0.707706 -0.35758,2.515689 -0.3259,3.70839 0.26979,1.43294 0.63699,2.850853 0.80315,4.301369 -4.12388,2.615959 -8.46363,4.941769 -12.54331,7.586769 -0.86922,1.18253 0.5883,2.58827 0.80522,3.82052 3.1712,7.97885 6.39027,15.93844 9.58892,23.90633 -6.00158,11.41813 -12.0029,22.83639 -18.00397,34.25479 -4.11692,1.83673 -8.23383,3.6735 -12.35071,5.51032 -1.5651,-0.73806 -3.10719,-1.91987 -4.92644,-1.30157 -1.9277,0.32737 -3.973752,0.21385 -5.824274,0.82876 -2.214517,1.84236 -4.311763,3.88662 -6.597549,5.60616 -2.646003,1.03828 -5.493076,1.6933 -7.968918,3.10549 -1.055448,1.05209 0.444436,2.47058 1.604882,1.86059 3.26986,-0.88566 6.614177,-1.68744 9.772312,-2.86021 1.578235,-1.68297 3.062825,-3.4186 4.682724,-5.0612 2.878113,0.63016 5.713483,1.63965 8.618413,2.03196 3.51203,-1.05354 7.01088,-2.15228 10.53984,-3.1485 1.11175,8.80816 1.96018,17.69032 3.10943,26.4972 3.35062,6.73614 6.79281,13.48452 10.04483,20.23173 -2.9093,3.98814 -5.81261,7.98983 -9.06855,11.71951 -1.31566,0.64998 -1.16969,2.20402 0.0287,2.89128 2.44391,2.37848 4.56762,5.13802 7.26141,7.23602 1.16475,0.66005 2.21212,-1.05035 1.24484,-1.901 -1.52037,-2.37081 -3.42506,-4.65363 -4.80577,-7.00909 3.87543,-4.80066 8.03316,-9.41157 11.84931,-14.2313 0.39047,-1.35015 -1.11742,-2.4651 -1.5407,-3.69287 -3.15222,-5.72828 -6.62982,-11.29417 -9.45667,-17.19278 -0.65435,-8.73523 -1.42215,-17.46177 -2.13806,-26.1922 3.09918,-4.18959 6.19839,-8.37916 9.29766,-12.56869 2.25392,2.18202 4.25344,4.71687 6.66489,6.68058 3.25536,0.12357 6.61359,-0.31838 9.90846,-0.41101 2.35445,-0.0905 4.76519,-0.33042 7.07412,-0.31708 2.17172,1.66424 4.27339,3.40382 6.19312,5.36248 1.40733,5.00635 2.33886,10.15466 3.92053,15.10454 0.63726,1.1491 2.52648,0.44167 2.19178,-0.84529 -0.20854,-2.71978 -0.51663,-5.43376 -0.92075,-8.1314 1.35399,-0.55468 2.70046,-1.47905 4.17996,-0.76797 1.87578,0.24298 3.73688,1.10109 5.62291,0.92646 1.99401,-1.26292 4.29731,-2.14858 6.04528,-3.75227 0.73975,-1.19797 -0.9061,-2.27276 -1.90677,-1.47569 -1.49983,0.53265 -2.96432,1.55801 -4.46354,1.82042 -2.28911,-0.69949 -4.46894,-2.02041 -6.8319,-2.30211 -0.94438,0.33551 -1.91379,0.79829 -2.85282,1.04462 -0.63763,-1.62139 -0.62311,-3.60655 -1.69579,-5.04134 -2.5024,-2.03402 -4.89501,-4.2595 -7.46442,-6.17668 -2.15005,-0.3211 -4.42116,0.21715 -6.61594,0.21392 -3.54498,0.2143 -7.08995,0.42878 -10.63493,0.64318 -2.11007,-2.0428 -4.26558,-4.01737 -6.28501,-6.12874 3.68544,-7.49826 7.87421,-14.75622 11.30698,-22.37334 -0.3409,-2.38354 -1.59304,-4.62419 -2.29118,-6.94885 -2.26849,-6.29072 -4.61808,-12.55087 -6.75209,-18.89042 2.93283,-2.56939 6.36789,-4.56535 9.09832,-7.35404 0.46509,-1.279641 -0.4421,-2.656136 -0.49435,-3.965746 -0.18185,-2.113504 -2.36976,-3.127907 -3.59132,-4.648231 -0.97599,-0.711769 -1.76866,-2.27045 -3.10633,-2.203771 z" id="path3476" transform="scale(0.26458333)"/>
<path style="fill:#ffffff;fill-opacity:1;stroke-width:0.227303" d="m 55.323363,109.93152 c -7.34388,5.76936 -14.388086,11.94047 -21.602228,17.88115 -3.885652,3.31834 -7.928087,6.47366 -11.662555,9.95856 -0.755314,1.10079 0.747242,2.19578 1.751385,1.56315 9.011129,-2.4075 18.050194,-4.70946 27.086767,-7.01931 -3.444207,2.30196 -7.0893,4.35043 -10.366694,6.87813 -0.762641,1.309 0.942448,1.87448 1.943541,1.84043 10.539763,1.32919 21.11975,2.40506 31.683951,3.46789 1.375302,-0.27236 0.919719,-1.92467 0.239734,-2.66592 -5.96883,-10.47961 -11.861598,-21.00251 -17.833946,-31.4801 -0.383981,-0.42839 -0.675506,-0.52391 -1.239955,-0.42398 z" id="path3515" transform="scale(0.26458333)"/>
</g>
<g id="layer1" transform="translate(104.81245,70.574596)" style="display:inline">
<g id="g66" transform="matrix(0.35277777,0,0,-0.35277777,-21.034783,-35.033058)"/>
<g id="g162" transform="matrix(0.35277777,0,0,-0.35277777,-94.300623,-12.849404)">
<path d="M 0,0 -0.152,0.621 0.006,-0.634 Z" style="fill:#e4c21d;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path164"/>
</g>
<g id="g170" transform="matrix(0.27941297,0,0,-0.27941297,-73.784006,-45.566576)">
<path d="m 0,0 -31.962,-26.006 -49.84,69.013 -47.612,-65.78 -21.597,14.097 L -190.455,-41 c -0.314,3.342 -0.482,6.727 -0.482,10.15 0,59.449 48.366,107.813 107.814,107.813 57.018,0 103.831,-44.492 107.565,-100.581 z m 0.401,-29.425 -21.533,-9.538 7.483,9.881 -21.171,-5.851 35.221,27.247 6.919,-14.633 -7.538,-0.404 11.542,-9.835 4.709,-9.947 z m -73.099,27.365 -14.151,-8.376 6.001,-13.497 -16.2,-1.342 -8.866,-8.48 6.192,13.743 4.744,16.132 -32.835,-29.346 46.965,64.345 32.382,-45.668 -25.446,26.349 -0.702,0.357 z m 38.308,-75.721 -6.411,1.358 -3.358,-1.373 1.902,-15.145 0.152,-0.622 0.005,-0.634 -0.157,1.256 -5.117,20.889 -6.167,5.522 -16.511,-0.833 -6.365,6.786 -0.09,0.017 -9.571,-12.944 2.127,-25.825 10.531,-18.564 -11.705,-13.87 8.067,-11.345 -9.746,10.202 -0.953,0.998 1.677,1.486 8.167,10.821 -9.793,19.47 -2.934,25.999 -11.018,-3.338 -8.24,2.075 -4.608,-5.137 -22.938,-6.512 20.749,7.213 6.289,5.408 6.614,0.734 2.962,-1.493 12.313,5.483 17.381,33.05 -3.317,8.249 -1.492,3.711 -0.986,2.452 -4.525,11.253 12.453,7.425 -1.587,7.749 5.401,-5.243 0.961,-4.541 -9.147,-6.868 9.038,-24.805 -11.154,-21.348 6.795,-6.497 16.206,1.008 7.139,-5.99 1.337,-5.108 3.599,1.377 6.365,-2.383 11.865,5.35 z m -148.575,35.654 32.246,26.946 17.713,-31.338 -32.247,3.407 14.988,9.537 z M 37.229,-30.85 c 0,66.469 -53.883,120.352 -120.352,120.352 -66.469,0 -120.352,-53.883 -120.352,-120.352 0,-66.468 53.883,-120.352 120.352,-120.352 15.076,0 29.5,2.781 42.8,7.843 0.229,0.087 0.458,0.172 0.686,0.26 0.536,0.208 1.07,0.422 1.602,0.637 0.449,0.18 0.896,0.362 1.342,0.548 0.325,0.136 0.65,0.275 0.974,0.414 0.653,0.279 1.302,0.563 1.948,0.853 0.13,0.058 0.26,0.117 0.39,0.176 40.234,18.221 68.656,57.935 70.61,104.497 l -0.112,0.108 c 0.068,1.664 0.112,3.335 0.112,5.016" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none" id="path172"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.1 KiB

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,89 @@
// This content script acts as a relay to send messages to and from the
// background script. Webpage scripts can call `window.postMessage` to send a
// message to the content script which will be caught by this handler, which
// will then forward that message to the background script using inter-script
// message passing.
//
// When the content script receives a response from the background script, it
// will use the same `window.postMessage` api to send that message back to the
// client page (which should also have a message event listener that filters
// for events with the property `event.data.responseFromExtension == true`).
//
// To ensure that the content script doesn't send its own message (intended for
// the webpage script) to the background script, it creates an envelope with
// two fields: `responseFromExtension` and `response`. `responseFromExtension`
// will be set to true, indicating that this shouldn't be forwarded to the
// background script. The `response` field will contain whatever data the
// background script sent in response to the initial message.
window.addEventListener("message", async function(event) {
log("CONTENT MSG EVENT")
log(event.data)
var d = event.data;
if (event.source == window && d) { // Ignore events with no data field and coming from other sources
if (d._sourceIsExtension) { // If the message we just received came from the extension, don't relay
} else { // If the message didn't come from the extension, relay it to the background script
if (d.target == "lode") { // MESSAGE SEND BY DAPP
log("CONTENT SEND MSG")
if (!checkIsPublic(d.data)) {
const isEnabled = await (
new Promise((res) => {
chrome.runtime.sendMessage(["LodePublic_IsEnabled", "stub"], (response) => res(response.response))
})
);
if (!isEnabled) {
const error = { code: -3, info: "Site not enabled." };
window.postMessage({_sourceIsExtension: true, id: d.id, response: undefined, error: error }, "*");
return;
}
}
chrome.runtime.sendMessage(d.data, function(response) {
log("CONTENT RESPONSE")
log(response)
window.postMessage({_sourceIsExtension: true, id: d.id, response: response ? response.response : undefined, error: response ? (response.error ? response.error.external : undefined) : undefined }, "*");
});
}
}
}
})
const PUBLIC_API = new Set(["LodePublic_Enable", "LodePublic_IsEnabled", "LodePublic_GetWalletIdentity"])
const checkIsPublic = (request) => {
if (Array.isArray(request) && request.length == 2) {
return PUBLIC_API.has(request[0]);
}
return false;
};
const VERBOSE = false;
const log = (msg) => VERBOSE && console.log(msg);
const injectScript = () => {
const script = document.createElement('script');
script.async = false;
script.src = chrome.runtime.getURL('injected.js');
script.onload = function () {
this.remove();
};
(document.head || document.documentElement).appendChild(script);
};
function shouldInject() {
const documentElement = document.documentElement.nodeName;
const docElemCheck = documentElement
? documentElement.toLowerCase() === 'html'
: true;
const { docType } = window.document;
const docTypeCheck = docType ? docType.name === 'html' : true;
return docElemCheck && docTypeCheck;
}
if (shouldInject()) {
injectScript();
}
// TODO clean-up this mess ; quick means to tell the tab to reset its wallet endpoint
chrome.runtime.onMessage.addListener(request => {
window.postMessage({_sourceIsExtension: true, id: null, prompt: "LodePrompt_CheckWalletIdentity"}, "*");
return;
});

View File

@ -0,0 +1,54 @@
// readFile :: FileEntry -> IO Text
async function readFile(de) {
return new Promise((resolve) =>
de.file((f) => {
var r = new FileReader();
r.onloadend = function(c) { resolve(this.result); };
r.readAsText(f);
})
);
};
// getDirectoryConfigs :: DirectoryEntry -> IO (Map Text Text)
async function getDirectoryConfigs(dir) {
return new Promise(async (resolve) => {
var r = dir.createReader();
r.readEntries(async (results) => {
var res = new Map();
await Promise.all(results.map(async (de) => {
if (de.isFile) {
let contents = await readFile(de);
res.set(de.name, contents);
} else if (de.isDirectory) {
let subConfigs = await getDirectoryConfigs(de);
// update the subconfigs keys relative to configs path
let cs = mapKeys((p) => `${de.name}/${p}`, subConfigs);
// update result with subconfigs
cs.forEach((v,k) => { res.set(k,v); });
}
}));
resolve(res);
});
});
}
// readExtensionConfigs :: IO (Map Text Text)
async function readExtensionConfigs() {
return new Promise((resolve) => {
chrome.runtime.getPackageDirectoryEntry((root) => {
root.getDirectory('config', {create: false}, async (dir) => {
let configs = await getDirectoryConfigs(dir);
resolve(Object.fromEntries(configs));
})
});
})
}
// mapKeys :: (k -> k') -> Map k v -> Map k' v
function mapKeys(f, m) {
let newM = new Map();
m.forEach((val, key) => {
newM.set(f(key), val);
});
return newM;
}

View File

@ -0,0 +1,3 @@
/* Loads additional files required by the service worker and modifies service worker environment */
delete WebAssembly; /* This deletion is here to force sodium.js to use its pure js implementation */
importScripts('sodium.js');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
/* Modifies the popup's environment _before_ loading the all.js executable */
delete WebAssembly; /* This deletion is here to force sodium.js to use its pure js implementation */

54
static/js/bx-extra.js Normal file
View File

@ -0,0 +1,54 @@
// readFile :: FileEntry -> IO Text
async function readFile(de) {
return new Promise((resolve) =>
de.file((f) => {
var r = new FileReader();
r.onloadend = function(c) { resolve(this.result); };
r.readAsText(f);
})
);
};
// getDirectoryConfigs :: DirectoryEntry -> IO (Map Text Text)
async function getDirectoryConfigs(dir) {
return new Promise(async (resolve) => {
var r = dir.createReader();
r.readEntries(async (results) => {
var res = new Map();
await Promise.all(results.map(async (de) => {
if (de.isFile) {
let contents = await readFile(de);
res.set(de.name, contents);
} else if (de.isDirectory) {
let subConfigs = await getDirectoryConfigs(de);
// update the subconfigs keys relative to configs path
let cs = mapKeys((p) => `${de.name}/${p}`, subConfigs);
// update result with subconfigs
cs.forEach((v,k) => { res.set(k,v); });
}
}));
resolve(res);
});
});
}
// readExtensionConfigs :: IO (Map Text Text)
async function readExtensionConfigs() {
return new Promise((resolve) => {
chrome.runtime.getPackageDirectoryEntry((root) => {
root.getDirectory('config', {create: false}, async (dir) => {
let configs = await getDirectoryConfigs(dir);
resolve(Object.fromEntries(configs));
})
});
})
}
// mapKeys :: (k -> k') -> Map k v -> Map k' v
function mapKeys(f, m) {
let newM = new Map();
m.forEach((val, key) => {
newM.set(f(key), val);
});
return newM;
}

89
static/js/content.js Normal file
View File

@ -0,0 +1,89 @@
// This content script acts as a relay to send messages to and from the
// background script. Webpage scripts can call `window.postMessage` to send a
// message to the content script which will be caught by this handler, which
// will then forward that message to the background script using inter-script
// message passing.
//
// When the content script receives a response from the background script, it
// will use the same `window.postMessage` api to send that message back to the
// client page (which should also have a message event listener that filters
// for events with the property `event.data.responseFromExtension == true`).
//
// To ensure that the content script doesn't send its own message (intended for
// the webpage script) to the background script, it creates an envelope with
// two fields: `responseFromExtension` and `response`. `responseFromExtension`
// will be set to true, indicating that this shouldn't be forwarded to the
// background script. The `response` field will contain whatever data the
// background script sent in response to the initial message.
window.addEventListener("message", async function(event) {
log("CONTENT MSG EVENT")
log(event.data)
var d = event.data;
if (event.source == window && d) { // Ignore events with no data field and coming from other sources
if (d._sourceIsExtension) { // If the message we just received came from the extension, don't relay
} else { // If the message didn't come from the extension, relay it to the background script
if (d.target == "lode") { // MESSAGE SEND BY DAPP
log("CONTENT SEND MSG")
if (!checkIsPublic(d.data)) {
const isEnabled = await (
new Promise((res) => {
chrome.runtime.sendMessage(["LodePublic_IsEnabled", "stub"], (response) => res(response.response))
})
);
if (!isEnabled) {
const error = { code: -3, info: "Site not enabled." };
window.postMessage({_sourceIsExtension: true, id: d.id, response: undefined, error: error }, "*");
return;
}
}
chrome.runtime.sendMessage(d.data, function(response) {
log("CONTENT RESPONSE")
log(response)
window.postMessage({_sourceIsExtension: true, id: d.id, response: response ? response.response : undefined, error: response ? (response.error ? response.error.external : undefined) : undefined }, "*");
});
}
}
}
})
const PUBLIC_API = new Set(["LodePublic_Enable", "LodePublic_IsEnabled", "LodePublic_GetWalletIdentity"])
const checkIsPublic = (request) => {
if (Array.isArray(request) && request.length == 2) {
return PUBLIC_API.has(request[0]);
}
return false;
};
const VERBOSE = false;
const log = (msg) => VERBOSE && console.log(msg);
const injectScript = () => {
const script = document.createElement('script');
script.async = false;
script.src = chrome.runtime.getURL('injected.js');
script.onload = function () {
this.remove();
};
(document.head || document.documentElement).appendChild(script);
};
function shouldInject() {
const documentElement = document.documentElement.nodeName;
const docElemCheck = documentElement
? documentElement.toLowerCase() === 'html'
: true;
const { docType } = window.document;
const docTypeCheck = docType ? docType.name === 'html' : true;
return docElemCheck && docTypeCheck;
}
if (shouldInject()) {
injectScript();
}
// TODO clean-up this mess ; quick means to tell the tab to reset its wallet endpoint
chrome.runtime.onMessage.addListener(request => {
window.postMessage({_sourceIsExtension: true, id: null, prompt: "LodePrompt_CheckWalletIdentity"}, "*");
return;
});

176
static/js/injected.js Normal file

File diff suppressed because one or more lines are too long

2
static/js/main.js Normal file

File diff suppressed because one or more lines are too long

2
static/js/popup-env.js Normal file
View File

@ -0,0 +1,2 @@
/* Modifies the popup's environment _before_ loading the all.js executable */
delete WebAssembly; /* This deletion is here to force sodium.js to use its pure js implementation */

1
static/js/sodium.js Normal file

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More