From 4f64204ff0629860144d88e469436dced8315ef1 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Mon, 30 Jul 2018 23:08:10 +0200 Subject: [PATCH] Add beep and vibration when coming close to a known report --- README.md | 3 +++ src/assets/beep.mp3 | Bin 0 -> 5869 bytes src/components/ReportCard.vue | 24 +++++++++++++++++++++++- src/constants.js | 3 +++ src/i18n/en.json | 2 +- 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 src/assets/beep.mp3 diff --git a/README.md b/README.md index 2286c19..ce77ee9 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,9 @@ Icons are made from the original works: * [Accident icon](https://www.flaticon.com/free-icon/car-running-over-a-bicycle_91680) is coming from Flaticon. +Beep sound is provided under CC0 license and coming from +[freesound.org](https://freesound.org/people/thisusernameis/sounds/426888/). + The map background is using tiles from Carto.com or Thunderforest, thanks to F)QLp6Qwy4P^-;-~t|FBO?_;NeuuH zZMy&`DH#z-F%dBo>aW(n5BL*w$Nvfcu4;HXc@b)aegGQ)z&Ze0T3S{DJOqS=g{256 z5>QuHHy~h1z=42=herT`FamLLamfUp5-2V%t|9P}Ks$jCA3lr`m?f~ZwDgO>J^?%) ze=##5Nr#IhWiNt%fcQrR))8BL`S7m@f1=+FKso?WF(HHlfFu?Gh_sb-R3t>?UN)1b<@KZ4>!VKF9=0WWKxxfJZ?hN zFhk&Bgg#qxYaRF+$h9dFR!{;fi941(3LBaU$_OT@W(HXT0&uU9@EunYu>-=n1Pfdc&XRM=>`%zc#^5*;ot8e6YRjGvY<{NNDZH?xhR;8$v!V*4 zp5-69ue&N8R_YX(cmBe#-sExHC~m4q6zG?KL>o{&J}OtLU;ZY`y#I%Pd1(W|{*{arSlNk19;DKq>7f^h*2jMhn3PFXI6*q+W6A?_FzO%*J&_f{XSAcv|EiS?Bk7b zfiS@yG#40zNk>^Ov_In z;LoHGxK~O775lvH`{$h+-Ua{wP%PV-*XZ#sT?lPsVY;-?mfKjcIEKfW1PfU5)Y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a{~s(LCtcG(NXF-^SksK?4O7IgcH=j(Ft zmRAnDtV;J>2;Bmp?5|X+t98EWCb=kNbOkfsmdjh>$U!^XRh<)ymnnVA6dtX^4{Mo zpmxME*vS*O0`?+1LethZmz8#rB+V?URVs6wll`>&ZM>mj7T$PfPsDabbKSs?SeVe_ zIp6}^7P zDie2*m4Q}xdG>Fc(UAIA$rx^DlLVrfkvfL#zN1J)>oB?f%&1LG_lL%ZGA;h+MIl^O zCK*`@3l~B`0Mxx%sruU5JGGRRii{@NLH&)et(R<;I^3Q_pr;AUeTT8OrFWbtf{oRU zuZmRqE465BTRI;4#Y<4m8!r|asC5qnN=PdTs5L%p_1G0*8M4 zzXOtb>T~!p{(sz#`)9|mQs|5D+cR*P{P=Ot+09DxEDh0A;Q+AnbBSs!5fN`_jGMcg>0N^P9L0HF$n!m~&A*KcQxgC!!n25#uuZ z0s^GjtUiS)7xsU8p&+hNeX5&U+Z7gOFo%Q2t5BQXOt#>c8K4 z;~{q;l!S%aMk`jgRlL(ma;b=s{FD17{T&i7fF_pXr2YP!e?5@VdyI6D{MkNfk>R_k zF>1apVK6<%iA*JN;T)QLH-V2){8N1&RO(Zdxq671v28RCL=JOYYo7|AI{6f8!TR}hB5%RTB^p&;T-yf|K@4`YKZ?t+r;3!?l_10UAo|e`4VO))*H;|L?!te=C{)#Jv9lW&H=C literal 0 HcmV?d00001 diff --git a/src/components/ReportCard.vue b/src/components/ReportCard.vue index d540f09..189a38e 100644 --- a/src/components/ReportCard.vue +++ b/src/components/ReportCard.vue @@ -51,7 +51,8 @@