Skip to content

Commit

Permalink
feat: enable pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
superlbr committed Nov 14, 2018
1 parent 6917d6b commit d71c29e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .umirc.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ export default {
include: ['dva', 'dva/router', 'dva/saga', 'dva/fetch', 'antd/es'],
},
hardSource: /* isMac */ process.platform === 'darwin',
pwa: {
manifestOptions: {
srcPath: 'manifest.json'
},
}
},
],
],
Expand Down
20 changes: 20 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Antd-Admin",
"start_url": ".",
"display": "standalone",
"background_color": "#fff",
"description": "A front-end solution for enterprise applications built upon Ant Design and UmiJS",
"icons": [{
"src": "logo48x48.png",
"sizes": "48x48"
}, {
"src": "logo144x144.png",
"sizes": "144x144"
}, {
"src": "logo172x172.png",
"sizes": "172x172"
}],
"related_applications": [{
"platform": "web"
}]
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"description": "An admin dashboard application demo built upon Ant Design and UmiJS",
"dependencies": {
"@lingui/react": "^2.7.0",
"@lingui/react": "^2.7.1",
"ant-design-pro": "^2.1.1",
"antd": "^3.10.5",
"antd": "^3.10.7",
"axios": "^0.18.0",
"babel-core": "7.0.0-bridge.0",
"classnames": "^2.2.6",
Expand All @@ -28,7 +28,7 @@
"path-to-regexp": "^2.4.0",
"prop-types": "^15.6.2",
"qs": "^6.5.2",
"rc-tween-one": "^2.2.16",
"rc-tween-one": "^2.2.17",
"react-adsense": "^0.0.6",
"react-countup": "^4.0.0-alpha.6",
"react-draft-wysiwyg": "^1.12.13",
Expand All @@ -39,9 +39,9 @@
"store": "^2.0.12"
},
"devDependencies": {
"@lingui/babel-preset-react": "^2.7.0",
"@lingui/cli": "^2.7.0",
"@lingui/loader": "^2.7.0",
"@lingui/babel-preset-react": "^2.7.1",
"@lingui/cli": "^2.7.1",
"@lingui/loader": "^2.7.1",
"babel-eslint": "^10.0.1",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-import": "^1.10.0",
Expand All @@ -54,12 +54,12 @@
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.1.0",
"husky": "^1.1.3",
"husky": "^1.1.4",
"less-vars-to-js": "^1.3.0",
"lint-staged": "^8.0.4",
"mockjs": "^1.0.1-beta3",
"module": "^1.2.5",
"prettier": "^1.15.1",
"prettier": "^1.15.2",
"stylelint": "^9.8.0",
"stylelint-config-prettier": "^4.0.0",
"stylelint-config-standard": "^18.2.0",
Expand Down
Binary file added public/logo144x144.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 public/logo172x172.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 public/logo48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d71c29e

Please sign in to comment.