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 { | |
promises as fs | |
} from 'fs' | |
import fetch from 'node-fetch' | |
const POKEMON_API_BASE_URL = 'https://pokeapi.co/api/v2' | |
function extractPokemonIdFromUrl(url) { | |
return new URL(url).pathname.split('/').at(-2) ?? '' | |
} |
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
<template> | |
<div class="custom-input"> | |
<label class="custom-input__label" :for="`input-${id}`"> | |
<slot>Input</slot> | |
</label> | |
<div class="mt-1"> | |
<input | |
:id="`custom-input-${id}`" | |
:type="type" | |
:required="required" |
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
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |