From c8445617338e798eb9ecfa6c388e9a9541213fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 5 Dec 2018 14:15:03 +0800 Subject: [PATCH] Perfect pwa support --- public/icons/icon-512x512.png | Bin 0 -> 15724 bytes src/manifest.json | 8 ++++++-- src/pages/document.ejs | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 public/icons/icon-512x512.png diff --git a/public/icons/icon-512x512.png b/public/icons/icon-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..f6b1991bf919d4f2b3e77ba4ad8c51fe444fdbb2 GIT binary patch literal 15724 zcmeHuWm}YO)b7nNgn$AfAX1~0NOzYANJythmvp1l%%CVfgdj*ss&orTGayKpbcfR2 z3=A>*9-nuA*!v&6$MNuGg6qC=t#zGio#*_ct*LUI2EP5EFtg zM=wV(;0vC&uF6B8q@Q6O0A$!zA1Ua+#M_=FO1-5t)v+Iz%Bs?(5}W#n;`kSpg2FWt zc73SQBZ$O{t?dch5!#rArIg|Q*U-|=zqTz0YHdhNB}~K2LYrY|GvLL zLIE(iNV2hj-xI^+0ZV4w0~GSj3V0CY>nFLk|Mox(Y~lZXmRS70Jm68b{xS03&hU`I zf7=6iLM~%n z&@B76JremE0tJXtG`s#CkOG(>`nw7W4{ao{U^&c5_iqOf;QW6U^xq=Dt^V&M{xc`g zvH$al|Dw}>A@+aMJu&H8dbWf*u1dW9I9Mf`DLyomRrRq(WDpxW6J~K$CJ^0&iArIy z*c5dM51MbVt7nk$pGlqd_ufxJ z7WREL2o#C5q&x8mvDx5x<=&LR!_ux9J4l84nAWr-8O-MPx4U=$fZeh8y0B(9 z|3k%buaqS6wv@@+AlbJ@gu0M@DX=GsGO&fE`QT!uXq0@x^Mbk?qJS zr@+LW6dc-^p;~w(zjG{oi`uBv&_o$7Essh&O-?m!^1Hv%%L)RL5dLcvK+6aZ(dyJz z3%lTpDe<$tZKJH-NjAn?nK+08yNw5t=P!xe_$r^kZL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Pp*$#10)|T) z4^dF!vqKDq+gJ{Z(~OblGtZQx&Rf!2z82}5j=FdyOYdJe$HpYxT7Etw!vpTwQ^6UW z#O;)|%xc(h{nr_ItJvD{4xB%$ax?^!7jkRI-5j zhS`K#NkbKv1Eq9!-+a*d>&n`zlXp>~*8fC-Rw&xQSNUbfBUol6VF}H{t=YMmA17r0pm?s)@c#< zh#Fj{8jkr8)%%Gcz*TY@71^Bnj;9_3E$?usaG}O&31KFd=lvEeL=Ee&=kACVaWGDQ zkG-)`sM~hXRTzpnue+XN3r2ClhrxYmP465qZ+(U_0Kd;qam75n4CQ+&H90qI){9d{ zS6iOUawHaP=2!f*uzVkY9I=Q#+TgjqF{W>o`Mt8KJbR?bT;wXQr!8TI`0G}i#VV_u|Z7FAx52{^ZDPJF?e@T5F5gr6S#HjS0skAbb|9i zlzLJ8P$J*>v&&K-s7At{JS~|Gv;}FO4VHiuyVsbcxq|PTpvVW8WKwbX^U@IqAYb1E zAV2M%{|*RSFhK$f$>G#E-vFhpDoDUmi!UGg@Aw1YE9u?C}F_Fu=<0)Dr5QP3Xs(nqUOR0)4+%n4Sq^D*S+@d_~~Hm z{BMc>o#KCn`kycU7jFKa;QwDl{qNHFUwHMO%E>A8L`Xe$Z2-VORVB?wB@ZoM{T~TF B3NHWv literal 0 HcmV?d00001 diff --git a/src/manifest.json b/src/manifest.json index 42db46a1..839bc5b5 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { - "name": "ant-design-pro", - "short_name": "antd-pro", + "name": "Ant Design Pro", + "short_name": "Ant Design Pro", "display": "standalone", "start_url": "./?utm_source=homescreen", "theme_color": "#002140", @@ -13,6 +13,10 @@ { "src": "icons/icon-128x128.png", "sizes": "128x128" + }, + { + "src": "icons/icon-512x512.png", + "sizes": "512x512" } ] } diff --git a/src/pages/document.ejs b/src/pages/document.ejs index e3aeb263..720928c1 100644 --- a/src/pages/document.ejs +++ b/src/pages/document.ejs @@ -9,6 +9,7 @@ +
-- GitLab