Skip to content

Commit

Permalink
Introduce icon shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
giancosta86 committed Nov 5, 2023
1 parent 84d4375 commit ded3a60
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solvenius",
"version": "4.8.0",
"version": "4.9.0",
"description": "Logic game in modern Elm",
"private": true,
"scripts": {
Expand Down
22 changes: 22 additions & 0 deletions src/manifest-extra.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"shortcuts": [
{
"name": "Play!",
"url": "game",
"description": "Play a game",
"icons": [{ "src": "../shortcuts/play.png", "sizes": "192x192" }]
},
{
"name": "Top score",
"url": "top-score",
"description": "Top score on this device",
"icons": [{ "src": "../shortcuts/top-score.png", "sizes": "192x192" }]
},
{
"name": "Help",
"url": "help",
"description": "Online help",
"icons": [{ "src": "../shortcuts/help.png", "sizes": "192x192" }]
}
]
}
Binary file added static/shortcuts/help.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 static/shortcuts/play.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 static/shortcuts/top-score.png
Loading
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 webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.exports = {
skipWaiting: true
}),
new FaviconsWebpackPlugin({
manifest: "./src/manifest-extra.json",
logo: "logo.svg",
logoMaskable: "maskable.svg",
cache: true,
Expand Down

0 comments on commit ded3a60

Please sign in to comment.