Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/3.0.0-milestone2-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bigomby committed May 5, 2020
2 parents 9e4e269 + ad5a1d5 commit 8f07507
Show file tree
Hide file tree
Showing 13 changed files with 1,444 additions and 1,529 deletions.
875 changes: 201 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions components/chart-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ export default {
return this.last - this.first;
},
iconDirection: function() {
return this.last - this.first > 0
if (this.last - this.first === 0) return "";
return this.last - this.first >= 0
? "far fa-thumbs-up"
: "far fa-thumbs-down";
},
textClass: function() {
return this.last - this.first > 0
return this.last - this.first >= 0
? "change text-success ml-3"
: "change text-danger ml-3";
}
Expand Down
16 changes: 10 additions & 6 deletions components/identicon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
v-clipboard:copy="value"
class="clipboard"
:title="title"
@click="makeToast(toastText, 'Notification', 'success', true)"
@click="showToast"
>
<Identicon :value="value" :size="size" :theme="theme" class="identicon" />
</a>
</template>

<script>
import Identicon from "@polkadot/vue-identicon";
export default {
components: {
Identicon: Identicon
Expand All @@ -30,11 +31,14 @@ export default {
};
},
methods: {
makeToast(content = "", title = "", variant = null, solid = false) {
this.$bvToast.toast(content, {
title: title,
variant: variant,
solid: solid
showToast() {
this.$toast.success(this.title, {
action: {
icon: "X",
onClick: (e, toastObject) => {
toastObject.goAway(0);
}
}
});
}
}
Expand Down
3 changes: 2 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@
"produced_block": "Produced Block",
"status": "Status",
"date_time": "Date and Time",
"charts": "Charts"
"charts": "Charts",
"produced_blocks": "Produced blocks"
}
}
}
5 changes: 3 additions & 2 deletions locales/es.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"components": {
"identicon": {
"copy_address": "Copiar dirección ",
"copy_address": "Se ha copiado la dirección ",
"to_clipboard": " al portapapeles",
"address": "Dirección ",
"copied_to_the_clipboard": " copiada al portapapeles"
Expand Down Expand Up @@ -389,7 +389,8 @@
"produced_block": "Bloques producidos",
"status": "Status",
"date_time": "Día y hora",
"charts": "Gráficas"
"charts": "Gráficas",
"produced_blocks": "Bloques producidos"
}
}
}
16 changes: 15 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export default {
"nuxt-clipboard2",
// https://www.npmjs.com/package/cookie-universal-nuxt
["cookie-universal-nuxt", { alias: "cookies" }],
["@nuxtjs/apollo"]
["@nuxtjs/apollo"],
"@nuxtjs/toast"
],
buildModules: [
// https://github.com/nuxt-community/analytics-module
Expand Down Expand Up @@ -83,5 +84,18 @@ export default {
},
router: {
middleware: "i18n"
},
toast: {
position: "top-right"
// register: [
// // Register custom toasts
// {
// name: "my-error",
// message: "Oops...Something went wrong",
// options: {
// type: "error"
// }
// }
// ]
}
};
Loading

0 comments on commit 8f07507

Please sign in to comment.