diff --git a/.docker/Dockerfile b/.docker/Dockerfile index f69b4c6..0e04438 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14 as builder +FROM node:16 as builder ARG APP_ENV ARG APP_EXPLORER_API_URL diff --git a/.ncurc.js b/.ncurc.js new file mode 100644 index 0000000..f7a03e1 --- /dev/null +++ b/.ncurc.js @@ -0,0 +1,24 @@ +module.exports = { + format: [ + 'group', + 'repo', + 'ownerChanged', + ], + reject: [ + // requires backend update + 'centrifuge', + // vue 3 + 'nuxt', + 'vuex', + '@nuxt/content', + 'qrcode.vue', + // nuxt 3 (webpack5) + 'less-loader', + // es modules + 'beeper', + 'camelcase-keys', + 'del', + 'gulp-imagemin', + 'imagemin-mozjpeg', + ], +}; diff --git a/components/Search.vue b/components/Search.vue index 5c387fe..d59b438 100644 --- a/components/Search.vue +++ b/components/Search.vue @@ -13,6 +13,9 @@ if (!query.length) { return; } + if (query.slice(0, 2) === '0x' && query.length === 42) { + query = query.replace('0x', 'Mx'); + } if (query.slice(0, 2) === 'Mx') { this.$router.push('/address/' + query); diff --git a/layouts/default.vue b/layouts/default.vue index b6819da..01f82ce 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -2,14 +2,14 @@ import Snackbar from '~/components/common/Snackbar'; import HeaderMenu from '~/components/HeaderMenu'; import Search from '~/components/Search'; - import Footer from '~/layouts/_footer.vue'; + import TheFooter from '~/layouts/_footer.vue'; export default { components: { Snackbar, HeaderMenu, Search, - Footer, + TheFooter, }, data() { return { @@ -48,7 +48,7 @@ -