From 00f32ae5a8b151c39ae3ec7d509341c2f2953ce5 Mon Sep 17 00:00:00 2001 From: Brendan Date: Tue, 5 Mar 2024 11:01:45 +0000 Subject: [PATCH 1/3] Add PWA shortcuts, for Meal Planner and Shopping List --- frontend/nuxt.config.js | 30 ++++++++++++++++++ .../static/icons/android-chrome-96x96.jpg | Bin 0 -> 5696 bytes 2 files changed, 30 insertions(+) create mode 100644 frontend/static/icons/android-chrome-96x96.jpg diff --git a/frontend/nuxt.config.js b/frontend/nuxt.config.js index ce63574c4ba..50765e3e4fb 100644 --- a/frontend/nuxt.config.js +++ b/frontend/nuxt.config.js @@ -379,6 +379,36 @@ export default { purpose: "maskable", }, ], + "shortcuts": [ + { + "name": "Shopping Lists", + "short_name": "Shopping Lists", + "description": "Open the shopping lists", + "url": "/shopping-lists", + "icons": [ + { + src: "/icons/android-chrome-96x96.png", + sizes: "96x96", + type: "image/png", + purpose: "any", + }, + ], + }, + { + "name": "Meal Planner", + "short_name": "Meal Planner", + "description": "Open the meal planner", + "url": "/group/mealplan/planner/view", + "icons": [ + { + src: "/icons/android-chrome-96x96.png", + sizes: "96x96", + type: "image/png", + purpose: "any", + }, + ], + }, + ], }, icon: false, // disables the icon module }, diff --git a/frontend/static/icons/android-chrome-96x96.jpg b/frontend/static/icons/android-chrome-96x96.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fa10886f88b5faf4d51aabfef8de70c4531b1459 GIT binary patch literal 5696 zcmbtY^;Z<$w;j4;Bt$@@Q$S+yLraH*bdSW)AWD~jgCISU4oC?yg20eNgXGZ742^V$ zbSjUJ-}nB2_uf7~-L?1KcinZ?J@=k_J9WDVpw?8?PzB)N-~iO`0&qJEQ2KZD|H8i} z|1X1oC*QULfW!c6fHfWtI{+7mg9pU9?F2jo-~jOc2H<}{OhQUPNQ8rncSj3S190$h z@a{lxXYsEB|BfIa1P~De@6ph*v6Ik=(sOW%h%4MTypuEI0B~^#{_6hQjgXiGfQL^& zgnP&G0s**q0NlU8`zyl5!@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9g zR-pyY__URWbAz5_t`}OxPBn#B*5lPaeYjbEt^+pLLZoT)33Hg255s&Py^}VMv#I&a zvawyEnYz)KkD4+*Tr$3(4AP@(CTIe09mZ{s=ev$b2ZqzZ{ONOLcUTKl6LbO znYjFEhW${B+H7*P;3k{ec@X%1+rBLY7g@+^Q(xWyA6l7ng(we=PWoDV5$0n7_+CQ5oGrWCVtAKVn>}WDbN0=A+P+ z=DEmCq4w;C83dY;8rVkN1u5618P(I%3xc1W_0q;eDrA!?U>;(KQj}&O{6p!h=V>mU z=D1xTtp|jHvHyIuouXm4)?-%^<)WbxIiAVr6nXWWLP#Ur5c5DV#vgttTm6A z+<{n=-PYEYXU%#KHvZJ(N&FUS$iv+%&3(;AX?l?X6epamw+lWWxTxG(_kb=p#HgZE zm1>)Xr1O*Z3fs6D$A%Mue<8)rQ_0SA5|wjEqb<(W;ZFrzq}?A~HbuSJ*<1*T?@_C- zICzszOp~eQv15dnGFD7PTnIl=Cr>8slXQH#CbK**-INa=s@l}oCQUkchX3Umt}_1% z=$~tD>YX%Bdu*26p6DqtVTN=5BWTWlzUGeSM`v~g{C^b(6Ui3FEI=28y)V!{&ZDT! zhs_Ex-A!aKSWZ9c=d1CksY?Qfm{;S)A1_aiAJa}*qE}@4-NT0~pSeGWc{up%ggy4n zVlEWyWgAMcJ33erA$@9WDDG=acectRT*91ewG z_T>6LA-U;1ooh5MkDVS~(QEA*US;Zsk{tzX2)3`x%2)`zT9XmnA{ooekD~X78Mm8> f2o}*#;>M1eVy;oGdX9T9TL1lH6u)3QzMcLrSd6^x literal 0 HcmV?d00001 From 1a158d13e1ed0bd3c1c05f9bd962eb4eb8c74430 Mon Sep 17 00:00:00 2001 From: Brendan Date: Tue, 5 Mar 2024 11:24:33 +0000 Subject: [PATCH 2/3] Remove icons from shortcuts - they don't seem to work with nuxt --- frontend/nuxt.config.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/frontend/nuxt.config.js b/frontend/nuxt.config.js index 50765e3e4fb..9e01cb343bf 100644 --- a/frontend/nuxt.config.js +++ b/frontend/nuxt.config.js @@ -385,28 +385,12 @@ export default { "short_name": "Shopping Lists", "description": "Open the shopping lists", "url": "/shopping-lists", - "icons": [ - { - src: "/icons/android-chrome-96x96.png", - sizes: "96x96", - type: "image/png", - purpose: "any", - }, - ], }, { "name": "Meal Planner", "short_name": "Meal Planner", "description": "Open the meal planner", "url": "/group/mealplan/planner/view", - "icons": [ - { - src: "/icons/android-chrome-96x96.png", - sizes: "96x96", - type: "image/png", - purpose: "any", - }, - ], }, ], }, From 24fab91afa1aa73b4c94f9a47faf0f7141e36d83 Mon Sep 17 00:00:00 2001 From: Brendan Date: Tue, 5 Mar 2024 11:26:26 +0000 Subject: [PATCH 3/3] Remove icon --- frontend/static/icons/android-chrome-96x96.jpg | Bin 5696 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 frontend/static/icons/android-chrome-96x96.jpg diff --git a/frontend/static/icons/android-chrome-96x96.jpg b/frontend/static/icons/android-chrome-96x96.jpg deleted file mode 100644 index fa10886f88b5faf4d51aabfef8de70c4531b1459..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5696 zcmbtY^;Z<$w;j4;Bt$@@Q$S+yLraH*bdSW)AWD~jgCISU4oC?yg20eNgXGZ742^V$ zbSjUJ-}nB2_uf7~-L?1KcinZ?J@=k_J9WDVpw?8?PzB)N-~iO`0&qJEQ2KZD|H8i} z|1X1oC*QULfW!c6fHfWtI{+7mg9pU9?F2jo-~jOc2H<}{OhQUPNQ8rncSj3S190$h z@a{lxXYsEB|BfIa1P~De@6ph*v6Ik=(sOW%h%4MTypuEI0B~^#{_6hQjgXiGfQL^& zgnP&G0s**q0NlU8`zyl5!@<8>3wRGeLrlviLdVXbpeK4e10cVnae;V1fIQ$QI>R-x zsi#mRQB9hovFHnVBQ-yP&~mHhXis%D7u0xCK_sbz8Ifri7p4H;(3VNqi%&2Fr_Es4 z95yPP_0byf&N0{u*l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