From 615dbbe448f8adfcdc2b21089634082f3b8afabc Mon Sep 17 00:00:00 2001 From: shrpne Date: Tue, 3 Jan 2023 14:28:11 +0300 Subject: [PATCH] update deps, improve search for eth addresses --- .docker/Dockerfile | 2 +- .ncurc.js | 24 + components/Search.vue | 2 +- layouts/default.vue | 6 +- package-lock.json | 5097 ++++++++++++++++++++++++++++++++++++----- package.json | 16 +- 6 files changed, 4590 insertions(+), 557 deletions(-) create mode 100644 .ncurc.js 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..bbdd890 100644 --- a/components/Search.vue +++ b/components/Search.vue @@ -14,7 +14,7 @@ return; } - if (query.slice(0, 2) === 'Mx') { + if (query.slice(0, 2) === 'Mx' || (query.slice(0, 2) === '0x' && query.length === 42)) { this.$router.push('/address/' + query); } else if (query.slice(0, 2) === 'Mp') { this.$router.push('/validators/' + 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 @@ -