Skip to content

Commit

Permalink
Update manifest and browser config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dixin committed Sep 29, 2017
1 parent a17d866 commit 9a0d223
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 43 deletions.
2 changes: 1 addition & 1 deletion src/Etymology.Web/Client/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<meta property="og:url" content="http://hanziyuan.net" />
<meta property="og:image" content="http://hanziyuan.net/images/favicons/logo.png" />

<link rel="shortcut icon" href="favicon.ico" />
<link rel="shortcut icon" href="images/favicons/favicon.ico" />
<link rel="apple-touch-icon" sizes="57x57" href="images/favicons/apple-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="60x60" href="images/favicons/apple-icon-60x60.png" />
<link rel="apple-touch-icon" sizes="72x72" href="images/favicons/apple-icon-72x72.png" />
Expand Down
2 changes: 1 addition & 1 deletion src/Etymology.Web/Etymology.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="npm build$(Configuration)" />
<Exec Command="npm run build$(Configuration)" />
</Target>

</Project>
2 changes: 1 addition & 1 deletion src/Etymology.Web/Server/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"RefererHosts": [ "dixinyan.asuscomm.com", "hanziyuan.net", "etymology.azurewebsites.net" ],
"IndexPageUrls": [ "/", "/index.htm" ],
"ExposedPaths": [ "/error", "/images/favicon" ],
"ExposedPaths": [ "/error", "/images/favicons", "/browserconfig.xml", "/manifest.json" ],
"ApplicationInsights": {
"InstrumentationKey": "8264b36a-6dc9-444b-b08b-7435fad27c70"
}
Expand Down
2 changes: 1 addition & 1 deletion src/Etymology.Web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
},
"scripts": {
"buildDebug": "node_modules/.bin/webpack --config webpack.config.Debug.js --watch",
"buildRelease": "node_modules/.bin/webpack --config webpack.config.Release.js --watch"
"buildRelease": "node_modules/.bin/webpack --config webpack.config.Release.js"
}
}
11 changes: 11 additions & 0 deletions src/Etymology.Web/wwwroot/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="images/favicons/ms-icon-70x70.png"/>
<square150x150logo src="images/favicons/ms-icon-150x150.png"/>
<square310x310logo src="images/favicons/ms-icon-310x310.png"/>
<TileColor>#ffffff</TileColor>
</tile>
</msapplication>
</browserconfig>
File renamed without changes.
85 changes: 46 additions & 39 deletions src/Etymology.Web/wwwroot/manifest.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,48 @@
{
"name": "Chinese Etymology 字源",
"icons": [
{
"src": "images/favicons/android-icon-36x36.png",
"sizes": "36x36",
"type": "image/png",
"density": "0.75"
},
{
"src": "images/favicons/android-icon-48x48.png",
"sizes": "48x48",
"type": "image/png",
"density": "1.0"
},
{
"src": "images/favicons/android-icon-72x72.png",
"sizes": "72x72",
"type": "image/png",
"density": "1.5"
},
{
"src": "images/favicons/android-icon-96x96.png",
"sizes": "96x96",
"type": "image/png",
"density": "2.0"
},
{
"src": "images/favicons/android-icon-144x144.png",
"sizes": "144x144",
"type": "image/png",
"density": "3.0"
},
{
"src": "images/favicons/android-icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"density": "4.0"
}
]
"name": "Chinese Etymology 字源",
"short_name": "字源",
"lang": "zh",
"start_url": "http://hanziyuan.net",
"display": "standalone",
"background_color": "#fff",
"description": "Chinese Etymology 字源, Chinese character history and ancient Chinaese character (Orachle characters, Bronze characters, Seal characters, Shuowen Jiezi, Liushutong) analysis and research 汉字历史和古汉字(甲骨文, 金文, 篆字, 说文解字, 六书通)研究与分析. Search 100K+ ancient Chinese characters and etymology. 查询10万+古汉字和字源.",
"orientation": "portrait-primary",
"icons": [
{
"src": "images/favicons/android-icon-36x36.png",
"sizes": "36x36",
"type": "image/png",
"density": "0.75"
},
{
"src": "images/favicons/android-icon-48x48.png",
"sizes": "48x48",
"type": "image/png",
"density": "1.0"
},
{
"src": "images/favicons/android-icon-72x72.png",
"sizes": "72x72",
"type": "image/png",
"density": "1.5"
},
{
"src": "images/favicons/android-icon-96x96.png",
"sizes": "96x96",
"type": "image/png",
"density": "2.0"
},
{
"src": "images/favicons/android-icon-144x144.png",
"sizes": "144x144",
"type": "image/png",
"density": "3.0"
},
{
"src": "images/favicons/android-icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"density": "4.0"
}
]
}

0 comments on commit 9a0d223

Please sign in to comment.