kopia lustrzana https://github.com/badgen/badgen.net
Make standard happy
rodzic
722ed1038b
commit
846721bf2d
6
index.ts
6
index.ts
|
@ -31,10 +31,10 @@ const isStatic = (url) => {
|
|||
|
||||
const serveStaticHeaders = [
|
||||
{
|
||||
source: "**/*",
|
||||
source: '**/*',
|
||||
headers: [{
|
||||
key: "Cache-Control",
|
||||
value: "public, max-age=86400, s-maxage=604800, stale-while-revalidate=86400"
|
||||
key: 'Cache-Control',
|
||||
value: 'public, max-age=86400, s-maxage=604800, stale-while-revalidate=86400'
|
||||
}]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -14,8 +14,11 @@ export default class BuilderPage extends React.Component {
|
|||
}
|
||||
|
||||
setBlur = () => this.setState({ focus: false })
|
||||
|
||||
setFocus = () => this.setState({ focus: true })
|
||||
|
||||
setBadgeURL = badgeURL => this.setState({ badgeURL })
|
||||
|
||||
selectExample = exampleURL => this.setState({ badgeURL: exampleURL })
|
||||
|
||||
componentDidMount () {
|
||||
|
|
|
@ -6,8 +6,8 @@ import Footer from '../components/footer.js'
|
|||
import examples from '../static/.meta/badges.json'
|
||||
|
||||
const Index = () => {
|
||||
const [ tab, setTab ] = useState('live')
|
||||
const [ host, setHost ] = useState()
|
||||
const [tab, setTab] = useState('live')
|
||||
const [host, setHost] = useState()
|
||||
const badges = examples[tab]
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Ładowanie…
Reference in New Issue