Skip to content

Commit

Permalink
update deps, improve search for eth addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Jan 3, 2023
1 parent 77699e4 commit c804246
Show file tree
Hide file tree
Showing 6 changed files with 4,592 additions and 556 deletions.
2 changes: 1 addition & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14 as builder
FROM node:16 as builder

ARG APP_ENV
ARG APP_EXPLORER_API_URL
Expand Down
24 changes: 24 additions & 0 deletions .ncurc.js
Original file line number Diff line number Diff line change
@@ -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',
],
};
3 changes: 3 additions & 0 deletions components/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -48,7 +48,7 @@
<nuxt/>
</main>

<Footer/>
<TheFooter/>

<Snackbar/>
</div>
Expand Down
Loading

0 comments on commit c804246

Please sign in to comment.