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 React, { useEffect, useState } from 'react' | |
import * as gcs from '@google-cloud/storage'; | |
const SpaceRemaining = () => { | |
const [totalBytes, setTotalBytes] = useState(null); | |
const [limitBytes, setLimitBytes] = useState(null); | |
const [error, setError] = useState(null); | |
useEffect(() => { | |
const fetchBucketInfo = async () => { |
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 svelte from 'rollup-plugin-svelte'; | |
import resolve from 'rollup-plugin-node-resolve'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import livereload from 'rollup-plugin-livereload'; | |
import { terser } from 'rollup-plugin-terser'; | |
import postcss from 'rollup-plugin-postcss'; | |
import autoPreprocess from 'svelte-preprocess'; | |
const production = !process.env.ROLLUP_WATCH; |