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 axios = require("axios"); | |
| const axiosRetry = require("axios-retry"); | |
| const FormData = require("form-data"); | |
| const jwt = `Bearer PASTE_YOUR_JWT` | |
| const uploadToPinata = async (sourceUrl) => { | |
| const axiosInstance = axios.create(); | 
  
    
      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 axios = require('axios'); | |
| let pinIds = [] | |
| //Use your JWT from app.pinata.cloud/keys | |
| const JWT = `Bearer PASTE_YOUR_JWT` | |
| //replace with your own dedicated gateway domain, this is an example | |
| const GATEWAY_DOMAIN = `somegatewayexample.mypinata.cloud` | |
| //This function will return the shortened link after we get the file ID | 
  
    
      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 { useState } from "react" | |
| import axios from "axios" | |
| const FolderUpload = () => { | |
| const [selectedFile, setSelectedFile] = useState(); | |
| const changeHandler = (event) => { | |
| setSelectedFile(event.target.files); | |
| }; | 
  
    
      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 fs from "fs" | |
| import FormData from "form-data" | |
| import rfs from "recursive-fs" | |
| import basePathConverter from "base-path-converter" | |
| import got from 'got' | |
| const pinDirectoryToPinata = async () => { | |
| const url = `https://api.pinata.cloud/pinning/pinFileToIPFS`; | |
| const src = "PATH_TO_FOLDER"; | |
| var status = 0; | 
  
    
      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 './App.css'; | |
| function App() { | |
| let imageIds = [] | |
| for (let id = 1; id <= 8; id++){ | |
| imageIds.push(id) | |
| } | 
  
    
      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 PINATA_JWT = 'Bearer YOUR_JWT_HERE' | |
| const PIN_QUERY = `https://api.pinata.cloud/data/pinList?status=pinned&pageLimit=1000&includeCount=false` | |
| const fetch = require('node-fetch') | |
| const wait = (milliseconds) => { | |
| return new Promise((resolve) => { | |
| setTimeout(resolve, milliseconds); | |
| }); | |
| }; | 
  
    
      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 { useState } from "react" | |
| import axios from "axios" | |
| const FileUpload = () => { | |
| const [selectedFile, setSelectedFile] = useState(); | |
| const changeHandler = (event) => { | |
| setSelectedFile(event.target.files[0]); | |
| }; | 
  
    
      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 { useState, useEffect } from "react" | |
| import "./Aerial.css" | |
| import axios from "axios"; | |
| import Lottie from "react-lottie" | |
| import co2 from "./co2.json" | |
| const Aerial = () => { | |
| const [emissionsData, setEmissionsData] = useState([]) | 
  
    
      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 { useState, useEffect } from "react" | |
| import axios from "axios" | |
| const Aerial = () => { | |
| const [emissionsData, setEmissionsData] = useState([]) | |
| const [isLoading, setIsLoading] = useState(false) | |
| const getEmissionsData = async () => { | |
| try{ | 
  
    
      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 { useEffect } from "react"; | |
| import axios from "axios"; | |
| const Aerial = () => { | |
| const getEmissionsData = async () => { | |
| try{ | |
| const response = await axios.get("https://aerial.is/_nft/0x2acab3dea77832c09420663b0e1cb386031ba17b") | |
| console.log(response.data) | |
| } catch (error) { | 
NewerOlder