This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs') | |
| const translationsGroups = [ | |
| ['fr_FR','fr_CA'], | |
| ['es_ES','es_MX','es_CL','es_CO','eu_ES','es_UY','es_VE','gl_ES'], | |
| ['pt_BR','pt_PT'], | |
| ['zh_CN','zh_TW','zh_HK'] | |
| ] | |
| const copyTranslation = (inputCountryCode, outputCountryCode, file) => fs.copyFileSync(file, file.replace(inputCountryCode, outputCountryCode, fs.constants.COPYFILE_EXCL)) | |
| const copyTranslationForGroup = (file, translationsGroup, inputCountryCode) => translationsGroup.forEach(translation => copyTranslation(inputCountryCode, translation, file)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs') | |
| const translationsGroups = [ | |
| ['fr_FR','fr_CA'], | |
| ['es_ES','es_MX','es_CL','es_CO','eu_ES','es_VE','gl_ES'], | |
| ['pt_BR','pt_PT'], | |
| ['zh_CN','zh_TW','zh_HK'] | |
| ] | |
| const copyTranslation = (inCountryCode, outCountryCode, file) => fs.copyFileSync(file, file.replace(inCountryCode, outCountryCode, fs.constants.COPYFILE_EXCL)) | |
| const copyTranslationForGroup = (file, translationsGroup, inCountryCode) => translationsGroup.forEach(translation => copyTranslation(inCountryCode, translation, file)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const lodash = require('lodash/util.js'); | |
| const puppeteer = require('puppeteer-extra'); | |
| const StealthPlugin = require('puppeteer-extra-plugin-stealth'); | |
| puppeteer.use(StealthPlugin()); | |
| const cheerio = require('cheerio'); | |
| export default async function handler(req, res) { | |
| console.time('handler'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import AnkrProvider from '@ankr.com/ankr.js'; | |
| const provider = new AnkrProvider(); | |
| export default async function handler(req,res) { | |
| const owners = await provider.getNFTHolders({ | |
| contractAddress: '0x47749c5b970e63f3a0ed57cd6cef773e74fafe9d', | |
| blockchain: 'polygon', | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios" | |
| import _ from "lodash" | |
| import * as cheerio from "cheerio" | |
| export default async function handler(req, res) { | |
| const {address, start, end} = req.query | |
| const tokenIds = _.range(start, end) | |
| const urls = tokenIds.map((tokenId) => polygonScanUrlGenerator(address, tokenId)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios" | |
| import _ from "lodash" | |
| import * as cheerio from "cheerio" | |
| export default async function handler(req, res) { | |
| const {address, start, end} = req.query | |
| const tokenIds = _.range(start, end) | |
| const urls = tokenIds.map((tokenId) => polygonScanUrlGenerator(address, tokenId)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| {{ partial:head }} | |
| <body class="font-sans antialiased"> | |
| {{ yield:after_body }} | |
| <div id="main" @dragover.prevent @drop.prevent> | |
| <the-header | |
| :transparent="Boolean({{ alternate_header }})" | |
| {{ if show_notice }} | |
| :notice="{text: '{{ notice | smartypants }}', target: '{{ notice_target }}', color: '{{ notice_color }}'}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| {{ partial:head }} | |
| <body class="font-sans antialiased"> | |
| {{ yield:after_body }} | |
| <div id="main" @dragover.prevent @drop.prevent> | |
| <the-header | |
| :transparent="Boolean({{ alternate_header }})" | |
| {{ if show_notice }} | |
| :notice="{text: '{{ notice | smartypants }}', target: '{{ notice_target }}', color: '{{ notice_color }}'}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Image from "next/image"; | |
| import useSWR from "swr"; | |
| import {useInView} from "react-intersection-observer"; | |
| const fetcher = (url) => fetch(url).then((res) => res.json()) | |
| export default function Collection({name, items, slug}) { | |
| const {ref, inView} = useInView({ | |
| rootMargin: '500px', | |
| triggerOnce: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "private": true, | |
| "scripts": { | |
| "dev": "nuxi dev", | |
| "build": "nuxi build", | |
| "start": "node .output/server/index.mjs", | |
| "send": "git commit -am 'update' && git push" | |
| }, | |
| "devDependencies": { | |
| "autoprefixer": "^10.4.12", |