This file contains 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
{ | |
"Wisconsin-Counties": [ | |
{ | |
"name": "Adams County", | |
"countySeat": "Friendship", | |
"zipCodes": [ | |
"53910", | |
"53934", | |
"53936", | |
"54613", |
This file contains 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 { initializeApp } = require('firebase/app'); | |
const { getFirestore, collection, addDoc } = require('firebase/firestore'); | |
const fs = require('fs'); | |
// Firebase configuration from your Firebase project | |
const firebaseConfig = { | |
apiKey: "XX", | |
authDomain: "XX", | |
projectId: "XX", | |
storageBucket: "XX", |
This file contains 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
{ | |
"Wisconsin": { | |
"State Parks": [ | |
{ | |
"name": "Amnicon Falls State Park", | |
"type": "State Park", | |
"county": "Douglas County", | |
"parking": { | |
"latitude": 46.6082, | |
"longitude": -91.8922, |
This file contains 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> | |
<router-view/> | |
<h1>Cocktails</h1> | |
<ul> | |
<li v-for="cocktail in cocktails" :key="cocktail.url_slug"> | |
<router-link :to="`/${level}/${cocktail.url_slug}`">{{ cocktail.name }}</router-link> | |
</li> | |
</ul> |
This file contains 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 { ref, onMounted } from 'vue'; | |
import simpleCocktails from '../data/simple_cocktails.json'; | |
import intermediateCocktails from '../data/intermediate_cocktails.json'; | |
import advancedCocktails from '../data/advanced_cocktails.json'; | |
export default function useCocktails(level) { | |
const cocktails = ref([]); | |
onMounted(() => { | |
switch(level) { |
This file contains 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
{ | |
"cocktails": [ | |
{ | |
"name": "Classic Margarita", | |
"ingredients": ["2 oz Tequila", "1 oz Triple sec", "1 oz Lime juice"], | |
"instructions": "Shake all ingredients with ice and strain into a salt-rimmed glass.", | |
"characteristics": ["Tangy", "Citrusy", "Refreshing"] | |
}, | |
{ | |
"name": "Mojito", |
This file contains 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
[ | |
{ | |
"title": "Joe's Vacation", | |
"start": "2022-06-15", | |
"end": "2022-06-29" | |
}, | |
{ | |
"title": "Sam's Vacation", | |
"start": "2022-06-20", | |
"end": "2022-07-05" |
This file contains 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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
function getUrlVars(url) { | |
var vars = {}; | |
var parts = url.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { | |
vars[key] = value; | |
}); | |
return vars; |
This file has been truncated, but you can view the full file.
This file contains 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
[ | |
{ | |
"state": "AL", | |
"city": "Abanda CDP", | |
"latitude": 33.091627, | |
"longitude": -85.527029 | |
}, | |
{ | |
"state": "AL", | |
"city": "Abbeville city", |
This file has been truncated, but you can view the full file.
This file contains 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
[ | |
{ | |
"zip": 601, | |
"latitude": 18.180555, | |
"longitude": -66.749961 | |
}, | |
{ | |
"zip": 602, | |
"latitude": 18.361945, | |
"longitude": -67.175597 |