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 { decode } from "blurhash" | |
export function blurHashToDataURL(hash: string | undefined): string | undefined { | |
if (!hash) return undefined | |
const pixels = decode(hash, 32, 32) | |
const dataURL = parsePixels(pixels, 32, 32) | |
return dataURL | |
} |
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
declare module "amazon-paapi" { | |
export type AmazonCommonParameters = { | |
/** Api access key */ | |
AccessKey: string | |
/** Api secret key */ | |
SecretKey: string | |
/** Partner ID (eg: yourtag-20) */ | |
PartnerTag?: string | |
/** | |
* Marketplace url. |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="shortcut icon" href="%PUBLIC_URL%/images/icon.png" /> | |
<link rel="apple-touch-icon" href="%PUBLIC_URL%/images/icon-192.png" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<script> | |
var path = window.location.pathname; | |
var bzzPattern = /\/bzz:\/([^/]+)/; |
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
declare module "bootstrap.native/dist/bootstrap-native-v4" { | |
/** ALERT */ | |
export class Alert { | |
constructor(element?: string | HTMLElement); | |
close(): void; | |
} | |
/** BUTTON */ | |
export class Button { | |
constructor(element?: string | HTMLElement); |