Skip to content

Commit

Permalink
feat: updated whats new messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleySuira committed Jun 18, 2024
1 parent 9608383 commit 0b2f267
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 104 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liquality-wallet",
"version": "0.88.0",
"version": "0.88.2",
"private": true,
"author": "Liquality <[email protected]>",
"scripts": {
Expand Down
9 changes: 2 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,8 @@ export default {
await this.setLocalePreference({ locale: _locale })
}
if (
this.whatsNewModalVersion !== this.appVersion ||
process.env.VUE_APP_SHOW_WHATS_NEW_ALWAYS
) {
const content = await import(`@/locales/${this.currentLocale}/whats_new.json`)
this.setWhatsNewModalContent({ content: content.default })
}
const content = await import(`@/locales/${this.currentLocale}/whats_new.json`)
this.setWhatsNewModalContent({ content: content.default })
this.localesLoaded = true
}, 1000)
}
Expand Down
56 changes: 21 additions & 35 deletions src/components/WhatsNewModal.vue
Original file line number Diff line number Diff line change
@@ -1,55 +1,42 @@
<template>
<Modal
v-if="open"
@close="close"
body-class=""
type="modal-lg"
isFullHeight
:closeId="'wats_new_close_btn'"
>
<Modal v-if="open" @close="close" body-class="" type="modal-lg" isFullHeight :closeId="'wats_new_close_btn'">
<template #header>
<Logo />
</template>
<h6 class="modal-header mt-4 text-uppercase">
{{ $t('components.whatsNew.title') }} &#124; v {{ appVersion }}
</h6>
<template>
<h3 style="color: red">This Wallet has been Discontinued</h3>
<div v-for="item in whatsNewModalContent" :key="item.page">
<div v-if="item.page == currentView">
<h2 class="page-title">{{ item.title }}</h2>
<p v-if="item.description" class="mt-3" v-html="item.description"></p>
<ul v-if="item.content">
<li v-for="(listItem, index) in item.content" v-html="listItem" :key="index"></li>
</ul>
<p>Best, The Liquality Team</p>
<p>
<button class="btn btn-primary btn-lg btn-block" @click="close">
I have my Seed Phrase
</button>
</p>
</div>
</div>
</template>
<template #footer v-if="whatsNewModalContent.length > 1">
<div class="footer">
<div class="carousel">
<span
v-for="(line, index) in carouselLines"
:key="line"
class="carousel-line"
:class="index + 1 == currentView ? 'active' : ''"
@click="currentView = index + 1"
></span>
<span v-for="(line, index) in carouselLines" :key="line" class="carousel-line"
:class="index + 1 == currentView ? 'active' : ''" @click="currentView = index + 1"></span>
</div>
<div class="footer-buttons">
<button
class="icon-wrapper"
:class="currentView === whatsNewModalContent.length ? 'active' : ''"
@click="currentView -= 1"
:disabled="currentView === 1"
>
<button class="icon-wrapper" :class="currentView === whatsNewModalContent.length ? 'active' : ''"
@click="currentView -= 1" :disabled="currentView === 1">
<ArrowLeftIcon />
</button>
<button
class="icon-wrapper"
:class="currentView < whatsNewModalContent.length ? 'active' : ''"
@click="currentView += 1"
:disabled="currentView === whatsNewModalContent.length"
>
<button class="icon-wrapper" :class="currentView < whatsNewModalContent.length ? 'active' : ''"
@click="currentView += 1" :disabled="currentView === whatsNewModalContent.length">
<ArrowRightIcon />
</button>
</div>
Expand Down Expand Up @@ -98,13 +85,8 @@ export default {
}
},
created() {
if (
this.whatsNewModalVersion !== this.appVersion ||
process.env.VUE_APP_SHOW_WHATS_NEW_ALWAYS
) {
this.open = true
this.setWhatsNewModalVersion({ version: this.appVersion })
}
this.open = true
this.setWhatsNewModalVersion({ version: this.appVersion })
}
}
</script>
Expand All @@ -128,6 +110,7 @@ ul {
width: 100%;
align-items: center;
}
.modal-header {
font-weight: 600;
font-size: 12px;
Expand All @@ -136,13 +119,15 @@ ul {
color: $color-text-grey;
padding-left: 0 !important;
}
.page-title {
font-weight: 600;
font-size: 32px;
line-height: 36px;
letter-spacing: 1px;
color: $color-text-grey;
}
.footer {
position: fixed;
bottom: 0;
Expand Down Expand Up @@ -172,6 +157,7 @@ ul {
}
}
}
.footer-buttons {
display: flex;
align-items: center;
Expand All @@ -194,7 +180,7 @@ ul {
border: 1px solid #9742fb;
svg {
> path {
>path {
fill: #fff;
}
}
Expand Down
16 changes: 6 additions & 10 deletions src/locales/cb/whats_new.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
[
{
"page": "1",
"title": "What's New?",
"title": "Dear Liquality Wallet User",
"content": [
"Fixes Sign Message Dapp requests."
]
},
{
"page": "2",
"title": "Did you know you can...",
"content": [
"Derive more addresses for your wallet in each network using the new multi-account feature in the top-right hamburger button",
"Set your preferred Custom RPC URL for EVM networks in Settings so your balances in that chain are checked using your Custom RPC"
"Effective June 15th 2024 this wallet has been discontinued.",
"Your funds are secure.",
"Please ensure you have your seed phrase and private keys, and restore a new wallet using these credentials.",
"We recommend Phantom for most supported chains.",
"For RBTC use the Defiant wallet."
]
}
]
16 changes: 6 additions & 10 deletions src/locales/en/whats_new.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
[
{
"page": "1",
"title": "What's New?",
"title": "Dear Liquality Wallet User",
"content": [
"Fixes Sign Message Dapp requests."
]
},
{
"page": "2",
"title": "Did you know you can...",
"content": [
"Derive more addresses for your wallet in each network using the new multi-account feature in the top-right hamburger button",
"Set your preferred Custom RPC URL for EVM networks in Settings so your balances in that chain are checked using your Custom RPC"
"Effective June 15th 2024 this wallet has been discontinued.",
"Your funds are secure.",
"Please ensure you have your seed phrase and private keys, and restore a new wallet using these credentials.",
"We recommend Phantom for most supported chains.",
"For RBTC use the Defiant wallet."
]
}
]
16 changes: 6 additions & 10 deletions src/locales/es/whats_new.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
[
{
"page": "1",
"title": "What's New?",
"title": "Dear Liquality Wallet User",
"content": [
"Fixes Sign Message Dapp requests."
]
},
{
"page": "2",
"title": "Did you know you can...",
"content": [
"Derive more addresses for your wallet in each network using the new multi-account feature in the top-right hamburger button",
"Set your preferred Custom RPC URL for EVM networks in Settings so your balances in that chain are checked using your Custom RPC"
"Effective June 15th 2024 this wallet has been discontinued.",
"Your funds are secure.",
"Please ensure you have your seed phrase and private keys, and restore a new wallet using these credentials.",
"We recommend Phantom for most supported chains.",
"For RBTC use the Defiant wallet."
]
}
]
16 changes: 6 additions & 10 deletions src/locales/ph/whats_new.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
[
{
"page": "1",
"title": "What's New?",
"title": "Dear Liquality Wallet User",
"content": [
"Fixes Sign Message Dapp requests."
]
},
{
"page": "2",
"title": "Did you know you can...",
"content": [
"Derive more addresses for your wallet in each network using the new multi-account feature in the top-right hamburger button",
"Set your preferred Custom RPC URL for EVM networks in Settings so your balances in that chain are checked using your Custom RPC"
"Effective June 15th 2024 this wallet has been discontinued.",
"Your funds are secure.",
"Please ensure you have your seed phrase and private keys, and restore a new wallet using these credentials.",
"We recommend Phantom for most supported chains.",
"For RBTC use the Defiant wallet."
]
}
]
16 changes: 6 additions & 10 deletions src/locales/pt/whats_new.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
[
{
"page": "1",
"title": "What's New?",
"title": "Dear Liquality Wallet User",
"content": [
"Fixes Sign Message Dapp requests."
]
},
{
"page": "2",
"title": "Did you know you can...",
"content": [
"Derive more addresses for your wallet in each network using the new multi-account feature in the top-right hamburger button",
"Set your preferred Custom RPC URL for EVM networks in Settings so your balances in that chain are checked using your Custom RPC"
"Effective June 15th 2024 this wallet has been discontinued.",
"Your funds are secure.",
"Please ensure you have your seed phrase and private keys, and restore a new wallet using these credentials.",
"We recommend Phantom for most supported chains.",
"For RBTC use the Defiant wallet."
]
}
]
16 changes: 6 additions & 10 deletions src/locales/zh/whats_new.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
[
{
"page": "1",
"title": "What's New?",
"title": "Dear Liquality Wallet User",
"content": [
"Fixes Sign Message Dapp requests."
]
},
{
"page": "2",
"title": "Did you know you can...",
"content": [
"Derive more addresses for your wallet in each network using the new multi-account feature in the top-right hamburger button",
"Set your preferred Custom RPC URL for EVM networks in Settings so your balances in that chain are checked using your Custom RPC"
"Effective June 15th 2024 this wallet has been discontinued.",
"Your funds are secure.",
"Please ensure you have your seed phrase and private keys, and restore a new wallet using these credentials.",
"We recommend Phantom for most supported chains.",
"For RBTC use the Defiant wallet."
]
}
]
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"manifest_version": 2,
"version": "0.88.0",
"version": "0.88.2",
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"default_locale": "en",
Expand Down

0 comments on commit 0b2f267

Please sign in to comment.