Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Merge bd9a6da into 6ee639c
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jun 4, 2019
2 parents 6ee639c + bd9a6da commit 94e6dde
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 1 deletion.
16 changes: 16 additions & 0 deletions index.js
Expand Up @@ -118,6 +118,22 @@ const REFERRER_HEADER = 'no-referrer, strict-origin-when-cross-origin';
}
});

server.route({
method: 'GET',
path: '/favicon.ico',
handler: (request, h) => {
return h.redirect('/favicons/favicon.ico').permanent();
}
});

server.route({
method: 'GET',
path: '/apple-touch-icon.png',
handler: (request, h) => {
return h.redirect('/favicons/apple-touch-icon.png').permanent();
}
});

await server.start();
console.log(`Server running at: ${server.info.uri}`);
} catch (error) {
Expand Down
Binary file removed public/favicon.ico
Binary file not shown.
Binary file added public/favicons/android-chrome-192x192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicons/android-chrome-512x512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicons/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/favicons/browserconfig.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/favicons/mstile-150x150.png"/>
<TileColor>#333333</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added public/favicons/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicons/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicons/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions public/favicons/manifest.json
@@ -0,0 +1,19 @@
{
"name": "SRI Hash Generator",
"short_name": "SRI Hash",
"icons": [
{
"src": "/favicons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/favicons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#333333",
"background_color": "#333333",
"display": "standalone"
}
Binary file added public/favicons/mstile-150x150.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/favicons/safari-pinned-tab.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion templates/index.html
Expand Up @@ -12,7 +12,18 @@
<link rel="stylesheet" href="/badge/badge.css" integrity="{{sri './public/badge/badge.css'}}">
<link rel="stylesheet" href="/badge/will-pass.css">
<link rel="stylesheet" href="/badge/must-fail.css" integrity="sha384-INVALIDHASH">
<link rel="icon" href="/favicon.ico" type="image/x-icon">

<link rel="apple-touch-icon" href="/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="/favicons/manifest.json">
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#333333">
<link rel="shortcut icon" href="/favicons/favicon.ico">
<meta name="apple-mobile-web-app-title" content="SRI Hash Generator">
<meta name="application-name" content="SRI Hash Generator">
<meta name="msapplication-TileColor" content="#333333">
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
<meta name="theme-color" content="#333333">
</head>
<body>
<!-- Nav -->
Expand Down

0 comments on commit 94e6dde

Please sign in to comment.