Skip to content

Commit

Permalink
Added many icons to support (almost) every browser/device/feature
Browse files Browse the repository at this point in the history
  • Loading branch information
l0ll098 committed Nov 30, 2017
1 parent 24bf34c commit 5acf58c
Show file tree
Hide file tree
Showing 19 changed files with 137 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Client/src/.angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
"assets/",
"browserconfig.xml",
"manifest.json"
],
"index": "index.html",
"main": "main.ts",
Expand Down
Empty file removed Client/src/assets/.gitkeep
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Client/src/assets/icons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Client/src/assets/icons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Client/src/assets/icons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Client/src/assets/icons/favicon.ico
Binary file not shown.
Binary file added Client/src/assets/icons/mstile-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Client/src/assets/icons/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Client/src/assets/icons/mstile-310x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Client/src/assets/icons/mstile-310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Client/src/assets/icons/mstile-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Client/src/assets/icons/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions Client/src/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="/assets/icons/mstile-70x70.png"/>
<square150x150logo src="/assets/icons/mstile-150x150.png"/>
<square310x310logo src="/assets/icons/mstile-310x310.png"/>
<wide310x150logo src="/assets/icons/mstile-310x150.png"/>
<TileColor>#603cba</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file removed Client/src/favicon.ico
Binary file not shown.
12 changes: 11 additions & 1 deletion Client/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@
<title>TwitterHashtagsCounter</title>
<base href="/">

<link rel="apple-touch-icon" sizes="180x180" href="/assets/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/icons/favicon-16x16.png">
<link rel="manifest" href="/assets/icons/manifest.json">
<link rel="mask-icon" href="/assets/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/assets/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#603cba">
<meta name="msapplication-TileImage" content="/assets/icons/mstile-144x144.png">
<meta name="msapplication-config" content="/assets/icons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
Expand Down
15 changes: 15 additions & 0 deletions Client/src/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"background_color": "#ffffff",
"display": "standalone",
"icons": [
{
"src": "/assets/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
],
"name": "Twitter Hashtags Counter",
"short_name": "TwitterHashtagsCounter",
"start_url": "/",
"theme_color": "#ffffff"
}
4 changes: 3 additions & 1 deletion TwitterHashtagsCounter.njsproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,17 @@
<Content Include="Client\src\.angular-cli.json" />
<Content Include="Client\src\app\app.component.css" />
<Content Include="Client\src\app\app.component.html" />
<Content Include="Client\src\favicon.ico" />
<Content Include="Client\src\browserconfig.xml" />
<Content Include="Client\src\index.html" />
<Content Include="Client\src\manifest.json" />
<Content Include="Client\src\package.json" />
<Content Include="Client\src\styles.css" />
<Content Include="Client\src\tsconfig.app.json" />
<Content Include="Client\src\tsconfig.json" />
<Content Include="Client\src\tsconfig.spec.json" />
<Content Include="Client\tsconfig.json" />
<Content Include="package.json" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
<Folder Include="Client\" />
Expand Down
72 changes: 72 additions & 0 deletions Web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This configuration file is required if iisnode is used to run node processes behind
IIS or IIS Express. For more information, visit:
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config
-->

<configuration>
<system.webServer>
<!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
<webSocket enabled="true" />
<handlers>
<!-- Indicates that the server.js file is a node.js site to be handled by the iisnode module -->
<add name="iisnode" path="server.js" verb="*" modules="iisnode" />
</handlers>
<rewrite>
<rules>
<!-- Do not interfere with requests for node-inspector debugging -->
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^server.js\/debug[\/]?" />
</rule>

<!-- First we consider whether the incoming URL matches a physical file in the /public folder -->
<rule name="StaticContent">
<action type="Rewrite" url="public{REQUEST_URI}" />
</rule>

<!-- All other URLs are mapped to the node.js site entry point -->
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True" />
</conditions>
<action type="Rewrite" url="server.js" />
</rule>

<!-- Force Https -->
<rule name="Redirect to https" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="off" />
<add input="{HTTP_HOST}" pattern="localhost" negate="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
<!-- End Force HTTPS -->
</rules>
</rewrite>

<!-- 'bin' directory has no special meaning in node.js and apps can be placed in it -->
<security>
<requestFiltering>
<hiddenSegments>
<remove segment="bin" />
</hiddenSegments>
</requestFiltering>
</security>

<!-- Make sure error responses are left untouched -->
<httpErrors existingResponse="PassThrough" />

<!--
You can control how Node is hosted within IIS using the following options:
* watchedFiles: semi-colon separated list of files that will be watched for changes to restart the server
* node_env: will be propagated to node as NODE_ENV environment variable
* debuggingEnabled - controls whether the built-in debugger is enabled
See https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config for a full list of options
-->
<!--<iisnode watchedFiles="web.config;*.js"/>-->
</system.webServer>
</configuration>

0 comments on commit 5acf58c

Please sign in to comment.