Skip to content

Commit

Permalink
Merge pull request #160 from aeternity/develop
Browse files Browse the repository at this point in the history
Release 0.0.16
  • Loading branch information
mradkov authored Apr 12, 2020
2 parents 8932cc8 + e3a9158 commit cf81a87
Show file tree
Hide file tree
Showing 29 changed files with 364 additions and 283 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.superhero.cordova" version="0.0.15" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.superhero.cordova" version="0.0.16" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>SuperHero</name>
<description>SuperHero wallet</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Expand Down
32 changes: 13 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superhero-wallet",
"version": "0.0.15",
"version": "0.0.16",
"description": "Superhero wallet",
"author": "SuperHero",
"license": "MIT",
Expand Down
9 changes: 5 additions & 4 deletions src/common/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ $bg-color: #16161D;
$white-color: #F1F1F1;
$border-color: #34343B;
$input-bg-color: #121217;
$button-color: #3F4048;
$button-text-color: #CFCFCF;
$button-color: #2A9CFF;
$button-text-color: #FFFFFF;
$modal-background: #1B1B23;
$placeholder-color: #67676D;
$text-color: #BCBCC4;
$accent-color: #67f7b8;
$secondary-color: #2a9cff;
$nav-bg-color: #21212A;
$input-focus-color: #67f7b8;
$input-error-color: #2a9cff;
$input-focus-color: #2a9cff;
$input-error-color: #FF5857;
$transactions-bg: #12121b;
$nav-border-color: #3A3A47;
$tx-border-color: #33343e;
Expand Down
Binary file modified src/icons/icon_128.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 modified src/icons/icon_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 16 additions & 8 deletions src/popup/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"wholeTransaction": "Whole transaction history",
"latestTransactions": "Latest transactions",
"noTransactionsFound": "No transactions found!",
"tipSomeone": "Send Tips",
"tipSomeone": "Send Tip",
"howToClaim": "How to claim AE",
"balance": "Balance",
"copied": "Copied!",
Expand Down Expand Up @@ -187,9 +187,6 @@
"recentTransactions": {
"recentActivity": "Recent Activity",
"viewAll": "View all",
"pendingStatus": "Pending",
"sentStatus": "Sent",
"receivedStatus": "Received",
"noTransactionsFound": "No transactions found!"
},
"addFungibleToken": {
Expand Down Expand Up @@ -597,6 +594,7 @@
},
"tipPage": {
"back": "Back",
"OkButton": "OK",
"noImage": "No Image",
"domainVerified": "Verified",
"domainNotVerified": "Not verified",
Expand All @@ -610,6 +608,9 @@
"tipDetails": "Details",
"tipWebsite": "Website",
"heading": "Send",
"sendTipConfirmationHeader": "Send Tip Confirmation",
"sendTipConfirmationBody": "You are going to send tip to untrusted URL. Third party issues prevent us to ensure that tips will be directly delivered to the URL owner.",
"sendTipConfirmationQstn":"Are you sure you would like to send the tip anyway?",
"headingSending": "Sending",
"selectTip": "Select amount to tip",
"tipDomain": "Tip domain",
Expand All @@ -621,15 +622,19 @@
"title": "Title",
"titlePlaceholder": "Send a message of #support along with your donation...",
"account": "Account",
"next": "Send Tips",
"url": "Send a tip to",
"next": "Send Tip",
"url": "Send Tip to",
"to": "to",
"amountPlaceholder": "Enter amount",
"amountLabel": "Amount",
"availableLabel": "Available",
"confirm": "Confirm",
"cancel": "Cancel",
"edit": "Edit AE Details"
"edit": "Edit AE Details",
"whatIsVerifieddUrl": "What is \"Verified\" URL?",
"whatIsUntrustedUrl": "What is \"Untrusted\" URL?",
"untrustedUrlInfo": "Third party issues prevent us to ensure that tips will be directly delivered to the URL owner. You are sending the tip at your own risk.",
"verifiedUrlInfo": "If a URL is marked as verified, it means the owner of this URL is already a fellow Superhero — and that is awesome! An AE address has been included in the URL and tips can be claimed."
},
"successTip": {
"sendMore": "Send More AE",
Expand Down Expand Up @@ -707,7 +712,10 @@
"nameUpdate": "name update tx",
"createTx": "create tx",
"clear": "Clear filter",
"apply": "Apply filter"
"apply": "Apply filter",
"sent": "Sent",
"received": "Received",
"pending": "Pending"
},
"utilities": {
"heading": "Utilities",
Expand Down
5 changes: 5 additions & 0 deletions src/popup/router/components/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
small: Boolean,
third: Boolean,
onboarding: Boolean,
dark: Boolean,
},
computed: {
getClasses() {
Expand All @@ -23,6 +24,7 @@ export default {
if (this.small) c.push('small');
if (this.third) c.push('third');
if (this.onboarding) c.push('onboarding');
if (this.dark) c.push('dark');
return c.join(' ');
},
},
Expand Down Expand Up @@ -61,6 +63,9 @@ export default {
width: 48% !important;
margin: 0 !important;
}
.primary-button.dark {
background: $box-button-color !important;
}
.primary-button.small {
width: auto !important;
line-height: 1px !important;
Expand Down
1 change: 0 additions & 1 deletion src/popup/router/components/CheckBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default {
.checkbox-container {
display: flex;
position: relative;
padding-left: 15px;
height: 20px;
cursor: pointer;
justify-content: start;
Expand Down
31 changes: 19 additions & 12 deletions src/popup/router/components/Loader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,40 +37,47 @@ export default {
.fadeOut-leave-active {
transition: all 0.5s ease-in-out;
}
.fadeOut-leave-to {
opacity: 0;
}
.ae-loader {
border: 0.2em solid $secondary-color !important;
border-left-color: transparent !important;
border-right-color: transparent !important;
}
.mainLoader {
position: fixed;
width: 100%;
height: 100%;
background-color: $bg-color;
top: 0;
z-index: 6;
}
.mainLoader .ae-loader {
position: absolute;
top: 50%;
left: 50%;
margin: -1.5em;
width: 3em !important;
height: 3em !important;
border-radius: 3em !important;
padding-top: 50px;
padding-top: calc(50px + env(safe-area-inset-top));
.ae-loader {
position: absolute;
top: 50%;
left: 50%;
margin: -1.5em;
width: 3em !important;
height: 3em !important;
border-radius: 3em !important;
}
&.mainLoaderTransparent {
opacity: 0.6;
}
}
.mainLoader.mainLoaderTransparent {
opacity: 0.6;
}
.loader .loading {
width: 32px;
margin-right: 15px;
}
.center {
position: relative;
z-index: 5;
Expand Down
96 changes: 51 additions & 45 deletions src/popup/router/components/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div class="popup">
<transition name="modal">
<div class="modal--mask">
<div class="modal--wrapper" @click="$emit('close')">
<div class="modal--wrapper">
<div class="modal--container">
<!-- <Close class="modal--close" @click="$emit('close')" /> -->
<Close class="modal--close" @click="$emit('close')" />
<div class="modal--header">
<slot name="header" />
</div>
Expand All @@ -22,7 +22,12 @@
</template>

<script>
import Close from '../../../icons/close.svg?vue-component';
export default {
components: {
Close,
},
mounted() {
if (document.body.style.overflow) return;
document.body.style.overflow = 'hidden';
Expand All @@ -32,6 +37,7 @@ export default {
},
};
</script>

<style lang="scss" scoped>
@import '../../../common/variables';
.modal--mask {
Expand All @@ -41,50 +47,50 @@ export default {
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
background-color: rgba(0, 0, 0, 0.7);
display: table;
transition: opacity 0.3s ease;
}
.modal--wrapper {
display: table-cell;
vertical-align: middle;
}
.modal--container {
position: relative;
width: 90%;
margin: 0 auto;
padding: 20px;
background: #fff;
border: 1px solid $tx-border-color;
border-radius: 5px;
transition: all 0.3s ease;
}
.modal--close {
position: absolute;
right: 10px;
top: 10px;
cursor: pointer;
}
.modal--header {
color: $white-color;
font-size: 16px;
}
.modal--body {
margin: 20px 0;
color: $text-color;
font-size: 14px;
word-break: break-word;
text-align: left;
}
.modal--enter {
opacity: 0;
}
.modal--leave--active {
opacity: 0;
}
.modal--enter .modal--container,
.modal--leave--active .modal--container {
-webkit-transform: scale(1.1);
transform: scale(1.1);
.modal--wrapper {
display: table-cell;
vertical-align: middle;
}
.modal--container {
position: relative;
width: 87%;
margin: 0 auto;
padding: 62px 25px 30px;
background: $modal-background;
border: 1px solid $tx-border-color;
border-radius: 5px;
transition: all 0.3s ease;
}
.modal--close {
position: absolute;
right: 10px;
top: 10px;
cursor: pointer;
}
.modal--header {
color: $white-color;
font-size: 16px;
}
.modal--body {
margin: 20px 0;
color: $text-color;
font-size: 14px;
word-break: break-word;
text-align: left;
}
.modal--enter {
opacity: 0;
}
.modal--leave--active {
opacity: 0;
}
.modal--enter .modal--container,
.modal--leave--active .modal--container {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
}
</style>
Loading

1 comment on commit cf81a87

@davidyuk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.