Skip to content

Instantly share code, notes, and snippets.

View ihorbond's full-sized avatar
💻
Coding

Ihor Bodnarchuk ihorbond

💻
Coding
View GitHub Profile
@ihorbond
ihorbond / wallet.js
Last active December 24, 2022 11:56
Metamask dApp NuxtJS plugin
import Vue from 'vue'
import { ethers } from 'ethers'
import MetaMaskOnboarding from '@metamask/onboarding'
export default async ({env}, inject) => {
const wallet = Vue.observable({
account: null,
accountCompact: null,
network: null,
@ihorbond
ihorbond / nuxt.config.js
Created April 13, 2022 21:57
Add a script tag with callback to NuxtJS
head: {
title: 'Zero Code NFT Wizard',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, // mobile responsive https://search.google.com/test/mobile-friendly
{ name: 'format-detection', content: 'telephone=no' },
{
hid: 'description',
name: 'description',
content: 'Drop your NFT collection with ZERO coding skills',