Remove TODOs, and set favicon.
This commit is contained in:
parent
49695dd393
commit
62ae230f70
@ -2,14 +2,14 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<link rel="icon" href="https://static.xinu.tv/favicon/gallery.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<link rel="apple-touch-icon" href="https://static.xinu.tv/favicon/gallery.png" />
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
|
||||
@ -3,19 +3,8 @@
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "logo512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
"src": "https://static.xinu.tv/favicon/gallery.png",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
|
||||
@ -67,7 +67,6 @@ type AlbumProps = {
|
||||
};
|
||||
type AlbumState = {
|
||||
error: any;
|
||||
// TODO(wathiede): define a MediaItem type.
|
||||
mediaItems: Array<MediaItem> | null;
|
||||
idx: number;
|
||||
showUI: boolean;
|
||||
@ -111,7 +110,6 @@ class Album extends React.Component<AlbumProps, AlbumState> {
|
||||
render() {
|
||||
// TODO(wathiede): fade transition.
|
||||
// TODO(wathiede): pair-up portrait orientation images.
|
||||
// TODO(wathiede): fetch an image that maintains the originals aspect ratio
|
||||
let w = window.innerWidth * window.devicePixelRatio;
|
||||
let h = window.innerHeight * window.devicePixelRatio;
|
||||
let ratio = w/h;
|
||||
@ -194,7 +192,6 @@ class Album extends React.Component<AlbumProps, AlbumState> {
|
||||
};
|
||||
let ui;
|
||||
if (showUI) {
|
||||
// TODO(wathiede): set image as background of the div in the style.
|
||||
ui = <div id="ui">
|
||||
<div
|
||||
style={leftPrefetchStyle}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user