From 990cba61095abbb22223810ad443f07f1abcc5c7 Mon Sep 17 00:00:00 2001 From: Aaron Hans Date: Tue, 10 Mar 2020 15:29:08 -0700 Subject: [PATCH] Foodtranslations (#627) * move contact us into es5 bundle * build simplification * fix road closures lookup Co-authored-by: Aaron Hans --- src/js/alerts/index.js | 1 + src/js/alerts/zips.js | 4 ---- src/js/roads/getobstructions.js | 3 +++ src/js/roads/index.js | 2 +- src/lang-global.csv | 3 +++ webpack.config.js | 17 ++++++++--------- 6 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 src/js/alerts/zips.js diff --git a/src/js/alerts/index.js b/src/js/alerts/index.js index 36107f30..9fd4d090 100644 --- a/src/js/alerts/index.js +++ b/src/js/alerts/index.js @@ -16,6 +16,7 @@ if (document.querySelector('body.js-alerts')) { const awesompleteSettings = { list: awesompleteList, + autoFirst: true, filter: function (text, input) { return Awesomplete.FILTER_CONTAINS(text, input.match(/[^,]*$/)[0]); }, diff --git a/src/js/alerts/zips.js b/src/js/alerts/zips.js deleted file mode 100644 index ddc8857a..00000000 --- a/src/js/alerts/zips.js +++ /dev/null @@ -1,4 +0,0 @@ -export default function getZips () { - const zips = ['92274', '92276', '92277', '92278', '95191', '90847', '90848', '93526', '95220', '93510', '93446', '92301', '96006', '93523', '93765', '95920', '96140', '91301', '91376', '91377', '95476', '91350', '91390', '92536', '93601', '93545', '94501', '94502', '94507', '94706', '94707', '94710', '95410', '95511', '91801', '91802', '91803', '91804', '91896', '91899', '93905', '92653', '92656', '92698', '95910', '95688', '93219', '95947', '93201', '91901', '91903', '93561', '96145', '96146', '95701', '95715', '95945', '91701', '91737', '91001', '91003', '95221', '96101', '95002', '95601', '95646', '91123', '91129', '92304', '94503', '94589', '92801', '92802', '92803', '92804', '92805', '92806', '92807', '92808', '92809', '92812', '92814', '92815', '92816', '92817', '92825', '92850', '92899', '95445', '96007', '95461', '95641', '95222', '92305', '94508', '94576', '95412', '95843', '94509', '94531', '92539', '92307', '92308', '95703', '95001', '95003', '95961', '95912', '91006', '91007', '91066', '91077', '95518', '95521', '90071', '93562', '91331', '91334', '92503', '93202', '95223', '95004', '92382', '92407', '93420', '93421', '90701', '90702', '90703', '95913', '93203', '95425', '92147', '93422', '93423', '94027', '95301', '92811', '93602', '95602', '95603', '95604', '95614', '90044', '90051', '90059', '90061', '90704', '93204', '95224', '93424', '91121', '91702', '95416', '93603', '92309', '92364', '95631', '93301', '93302', '93303', '93304', '93305', '93306', '93307', '93308', '93309', '93311', '93312', '93313', '93314', '93380', '93383', '93384', '93385', '93386', '93387', '93388', '93389', '93390', '93260', '92662', '90008', '90056', '91706', '93463', '95303', '95914', '94161', '92220', '95304', '92222', '92262', '90049', '90077', '92310', '92311', '92312', '92410', '93604', '93669', '91746', '96125', '94565', '95943', '95524', '93402', '92648', '95903', '92223', '96129', '94949', '94920', '95915', '95980', '90201', '90202', '91307', '90270', '96008', '90706', '90707', '94002', '90803', '95005', '94510', '93512', '93637', '94701', '94702', '94703', '94704', '94705', '94708', '94709', '94712', '94720', '92203', '95916', '94511', '90209', '90210', '90211', '90212', '90213', '90048', '96009', '96010', '95006', '92315', '92314', '92386', '96011', '93605', '95305', '95977', '93513', '92242', '93920', '95917', '96156', '93606', '90639', '94512', '94585', '93514', '93515', '90807', '92267', '94945', '94506', '96103', '95514', '94952', '92316', '94040', '94659', '91470', '92317', '95525', '95976', '92225', '92226', '92280', '96161', '94922', '94923', '93205', '90846', '94924', '92257', '92250', '91902', '91908', '95060', '92003', '95415', '93516', '93596', '92004', '92021', '91905', '91304', '92507', '90033', '91008', '91010', '93426', '93064', '95417', '92227', '92821', '92822', '92823', '94513', '93517', '95526', '94553', '94005', '92703', '94015', '90003', '96143', '95605', '95007', '95606', '95918', '95919', '92318', '95667', '95971', '93427', '90620', '90621', '90622', '90623', '90624', '95634', '91501', '91502', '91503', '91504', '91505', '91506', '91507', '91508', '91510', '91521', '91522', '91523', '91526', '94010', '94011', '96013', '95527', '93607', '95225', '95928', '95942', '95965', '93206', '94505', '94514', '90747', '90840', '94294', '95894', '94278', '95929', '93740', '91330', '92096', '92230', '92282', '90810', '93247', '93407', '93410', '91125', '91126', '91302', '91372', '92231', '92232', '93518', '93504', '93505', '93207', '96130', '93409', '95194', '92320', '92233', '94515', '96014', '95418', '96124', '93725', '93745', '95640', '93010', '93011', '93012', '93428', '95682', '95709', '95419', '93208', '92054', '92055', '93451', '95008', '95009', '95011', '91906', '95226', '95922', '96015', '91303', '91305', '91306', '91308', '91309', '91396', '93519', '93608', '94516', '91351', '91386', '91387', '95923', '92587', '95607', '95713', '92624', '95010', '92007', '95528', '92008', '92009', '92010', '92011', '92013', '92018', '93921', '93922', '93923', '93924', '95608', '95609', '93013', '93014', '90745', '90746', '90749', '90895', '93549', '93609', '92504', '93001', '93429', '95420', '96016', '91310', '91384', '96017', '94546', '94552', '95012', '92234', '92235', '95306', '93430', '95421', '92321', '92322', '95924', '96104', '93657', '96019', '96079', '90067', '95307', '95925', '91724', '91311', '91313', '92363', '95959', '96020', '94529', '95712', '95926', '95927', '95973', '96105', '93555', '95309', '91708', '91710', '91709', '92201', '93461', '93610', '93925', '91909', '91910', '91911', '91912', '91913', '91914', '91915', '91921', '92323', '90018', '95728', '90189', '95610', '95611', '95621', '92418', '91199', '90601', '91714', '91715', '91716', '91732', '91744', '91745', '91748', '91789', '92522', '93551', '91711', '95612', '95638', '94517', '96137', '95422', '95423', '95424', '95227', '95437', '95642', '96106', '95930', '93611', '93612', '93613', '93619', '94520', '92236', '93210', '93614', '95426', '95970', '95335', '96107', '94014', '95613', '92324', '95310', '95932', '90022', '90023', '90040', '90091', '90220', '90221', '90222', '90223', '90224', '94518', '94519', '94521', '94522', '94523', '94524', '94527', '93662', '95228', '93212', '93282', '96021', '96029', '92877', '92878', '92879', '92880', '92881', '92882', '92883', '92625', '92118', '92178', '93908', '95076', '94925', '94976', '92626', '92627', '92628', '94926', '94927', '94928', '94931', '92679', '96022', '95311', '95615', '95428', '91722', '91723', '92705', '95013', '95531', '95532', '95538', '95934', '95312', '92326', '92325', '93432', '94525', '93546', '95313', '96120', '93544', '91729', '91730', '90066', '90230', '90231', '90232', '90233', '95014', '95015', '93615', '95534', '93254', '90630', '90720', '92327', '96080', '94016', '94017', '92629', '94526', '95364', '93522', '95017', '95616', '95617', '95618', '96108', '92328', '92014', '93950', '93616', '93940', '92404', '92413', '93534', '93536', '90015', '93215', '93216', '95315', '96122', '91482', '95316', '90842', '91916', '92239', '92241', '92240', '94528', '95363', '92704', '91765', '95619', '94929', '93618', '95620', '95935', '90007', '90090', '96162', '96023', '93620', '95429', '91320', '96024', '95229', '90239', '90240', '90241', '90242', '95936', '96109', '95699', '91009', '94568', '93218', '91917', '95430', '93621', '95937', '96025', '95938', '95958', '95714', '90041', '95690', '96110', '93933', '95948', '92650', '90804', '95659', '93647', '94303', '91752', '94649', '95721', '90026', '96094', '93220', '93524', '92019', '92020', '92022', '92243', '92244', '94530', '95623', '95762', '94018', '91731', '91733', '91734', '91735', '95317', '95318', '90245', '94803', '94820', '92609', '92610', '92630', '95433', '93286', '95431', '92029', '92078', '93532', '95432', '95939', '95624', '95757', '95758', '95759', '95625', '95626', '94062', '94608', '94662', '95319', '92023', '92024', '91316', '91335', '91416', '91426', '91436', '95320', '92025', '92026', '92027', '92030', '92033', '92046', '95627', '92332', '91739', '96027', '95501', '95502', '95503', '93221', '95628', '95684', '94930', '94978', '94533', '94534', '94535', '96028', '92028', '92088', '96151', '92339', '90036', '93099', '93223', '95230', '92333', '95940', '90012', '90013', '92283', '93224', '95018', '95536', '95629', '95537', '93015', '93016', '95435', '93622', '94998', '90001', '94139', '93623', '93624', '90057', '91011', '96111', '95630', '95763', '95671', '92331', '92334', '92335', '92336', '92337', '95941', '94933', '95436', '96031', '96112', '93928', '96032', '90731', '95450', '95540', '94404', '92708', '92728', '95979', '93625', '90017', '94267', '95840', '94240', '95867', '93222', '93225', '95019', '95472', '94536', '94537', '94538', '94539', '94555', '93501', '95231', '96033', '95726', '93650', '93701', '93702', '93703', '93704', '93705', '93706', '93707', '93708', '93709', '93710', '93711', '93712', '93714', '93715', '93716', '93717', '93718', '93720', '93721', '93722', '93723', '93724', '93726', '93727', '93728', '93729', '93730', '93737', '93741', '93744', '93747', '93750', '93755', '93760', '93761', '93764', '93771', '93772', '93773', '93774', '93775', '93776', '93777', '93778', '93779', '93786', '93790', '93791', '93792', '93793', '93794', '93844', '93888', '93626', '91321', '95820', '95988', '91182', '92831', '92832', '92833', '92834', '92835', '92836', '92837', '92838', '95439', '95632', '95542', '92840', '92841', '92842', '92843', '92844', '92845', '92846', '95633', '90247', '90248', '90249', '93454', '93554', '95543', '93117', '96034', '95983', '92394', '96035', '95441', '92583', '95020', '95021', '90065', '95442', '95232', '91201', '91202', '91203', '91204', '91205', '91206', '91207', '91208', '91209', '91210', '91214', '91221', '91222', '91224', '91225', '91226', '91740', '91741', '95443', '93226', '95670', '95717', '93110', '93111', '93116', '93118', '93160', '93199', '93926', '95944', '93243', '93227', '91344', '91394', '92313', '95746', '93633', '95949', '95444', '90037', '92341', '94904', '94914', '93927', '96037', '95635', '96038', '90039', '95950', '95636', '95321', '93433', '93483', '93434', '91743', '91931', '95446', '95637', '95322', '94019', '95901', '95951', '93230', '93232', '96039', '90710', '93435', '96040', '95233', '90716', '90250', '90251', '96041', '94540', '94541', '94542', '94543', '94544', '94545', '94557', '90063', '95448', '92249', '96048', '92342', '93627', '92543', '92544', '92545', '92546', '94547', '96113', '90254', '92340', '92344', '92345', '93535', '95323', '91361', '95467', '92346', '90042', '94806', '95324', '96044', '92347', '95023', '95024', '90027', '90028', '90038', '90068', '90078', '95234', '95026', '95044', '92548', '96141', '95545', '95639', '95546', '95449', '95325', '96050', '95326', '93628', '92646', '92605', '92615', '92647', '92649', '90255', '93234', '96046', '95547', '95193', '92549', '96047', '92251', '91932', '91933', '92210', '92202', '90301', '90302', '90303', '90304', '90305', '90306', '90307', '90308', '90309', '90310', '90311', '90312', '94937', '93527', '94151', '92602', '92603', '92604', '92606', '92612', '92614', '92616', '92617', '92618', '92619', '92620', '92623', '92697', '93235', '91329', '91189', '95654', '91934', '95327', '91935', '96114', '93528', '93558', '92285', '92252', '92036', '93529', '93543', '93553', '92509', '91342', '91188', '94666', '93237', '93530', '93531', '95427', '95451', '95409', '95452', '93630', '93238', '96001', '93239', '95328', '92706', '93930', '93631', '95644', '95548', '95549', '95361', '95645', '94548', '95550', '95720', '91012', '95329', '90631', '90632', '90633', '94020', '90899', '92037', '92038', '92039', '92092', '92093', '91941', '91942', '91943', '91944', '90637', '90638', '91747', '91749', '92247', '92248', '92253', '92505', '90043', '91352', '91750', '92694', '94549', '92607', '92651', '92652', '92654', '92677', '92637', '94938', '92352', '91406', '96115', '92530', '92531', '92532', '93240', '93550', '93591', '92570', '92069', '95946', '96051', '96070', '95453', '93634', '92040', '92567', '90711', '90712', '90713', '90714', '90715', '90805', '93241', '93539', '93584', '93586', '95403', '94939', '94977', '96063', '95330', '93242', '96134', '90260', '90261', '95454', '95333', '93541', '95987', '95585', '95587', '93244', '91945', '91946', '93245', '93246', '96052', '96116', '95648', '91947', '91950', '90031', '95236', '96117', '93542', '95456', '96056', '95953', '94550', '94551', '95334', '95237', '93599', '93932', '95240', '95241', '95242', '95551', '92350', '92354', '92357', '94021', '90717', '93436', '93437', '93438', '90755', '90801', '90802', '90806', '90808', '90809', '90813', '90814', '90815', '90822', '90831', '90832', '90833', '90834', '90835', '90844', '90853', '96054', '95650', '90721', '93440', '94022', '94023', '94024', '90002', '90004', '90005', '90006', '90009', '90010', '90011', '90014', '90016', '90019', '90020', '90021', '90024', '90025', '90029', '90030', '90032', '90034', '90035', '90045', '90046', '90047', '90050', '90052', '90053', '90054', '90055', '90058', '90060', '90062', '90064', '90069', '90070', '90072', '90073', '90074', '90075', '90076', '90079', '90080', '90081', '90082', '90083', '90084', '90086', '90087', '90088', '90089', '90093', '90094', '90095', '90096', '90099', '90101', '93635', '95030', '95031', '95032', '95033', '96055', '90606', '90610', '93441', '93412', '93249', '95651', '95457', '96118', '95458', '92356', '92338', '90262', '95296', '92358', '96058', '95552', '96119', '93636', '93638', '93639', '95653', '95954', '90263', '90264', '90265', '95459', '90266', '90267', '95336', '95337', '96059', '92518', '94592', '93252', '92373', '94965', '90292', '90295', '94903', '95338', '94940', '95655', '95955', '93250', '93251', '95652', '96057', '95519', '92140', '95956', '95722', '92254', '96142', '93023', '95460', '93640', '92584', '92585', '92586', '92596', '94025', '94026', '94028', '92359', '95340', '95341', '95343', '95344', '95348', '95957', '96155', '95346', '95345', '92655', '96121', '96061', '94941', '94942', '94030', '96062', '95035', '95036', '93641', '95553', '91345', '91346', '91395', '94915', '92675', '92690', '92691', '92692', '95347', '95350', '95351', '95352', '95353', '95354', '95355', '95356', '95357', '95358', '95397', '92676', '94035', '93502', '95245', '93642', '91016', '91017', '91756', '96064', '94037', '91762', '91763', '95462', '90640', '93108', '93150', '93942', '93943', '93944', '91754', '91755', '96065', '91020', '91021', '93020', '93021', '95212', '94556', '94570', '94575', '92551', '92552', '92553', '92554', '92555', '92556', '92557', '95037', '95038', '92256', '93442', '93443', '94038', '95039', '95656', '95675', '95140', '95041', '91948', '96067', '91023', '92561', '95391', '92366', '95246', '94039', '94041', '94042', '94043', '91759', '95247', '92562', '92563', '92564', '95554', '94558', '94559', '94581', '92145', '92135', '91951', '93042', '92155', '93041', '93043', '93044', '92134', '92136', '92132', '95463', '93654', '92153', '95042', '95043', '94560', '92365', '91319', '95658', '91322', '91381', '95360', '92657', '92658', '92659', '92660', '92661', '92663', '95963', '94946', '95464', '93444', '92258', '92860', '95724', '93643', '95660', '91343', '91393', '91601', '91602', '91603', '91604', '91605', '91606', '91607', '91608', '91609', '91610', '91611', '91612', '91614', '91615', '91616', '91617', '91618', '94801', '95815', '95960', '91324', '91325', '91326', '91327', '91328', '90650', '90651', '90652', '94947', '94948', '96068', '93645', '92399', '96069', '93022', '93644', '94601', '94602', '94603', '94604', '94605', '94606', '94607', '94609', '94610', '94611', '94612', '94613', '94614', '94615', '94617', '94618', '94619', '94620', '94621', '94622', '94623', '94624', '94660', '94661', '94561', '94562', '95465', '92107', '93445', '93475', '92049', '92051', '92052', '92056', '92057', '92058', '92068', '92259', '93024', '96071', '94950', '94088', '91758', '91761', '91764', '93255', '92856', '92857', '92859', '92861', '92862', '92863', '92864', '92865', '92866', '92867', '92868', '92869', '93646', '93675', '95662', '93455', '93457', '95962', '95555', '94563', '95556', '92368', '95966', '93030', '93031', '93032', '93033', '93034', '93035', '93036', '92109', '94177', '90272', '94044', '91333', '92059', '92061', '95968', '92211', '92255', '92260', '92261', '92263', '92264', '93552', '93590', '94301', '94302', '94304', '94305', '94306', '94309', '96073', '92266', '92060', '90274', '90275', '91402', '91412', '95967', '95969', '90723', '93648', '91101', '91102', '91103', '91104', '91105', '91106', '91107', '91108', '91109', '91110', '91114', '91115', '91116', '91117', '91118', '91124', '91184', '91185', '96074', '93447', '92369', '96075', '93563', '93953', '94951', '95663', '92571', '92572', '92599', '94060', '94953', '94954', '94955', '94975', '94999', '95558', '92329', '92371', '91766', '95559', '95466', '90660', '90661', '90662', '93649', '91371', '95664', '95665', '91962', '95375', '94564', '92372', '95666', '92268', '93040', '93448', '93449', '93256', '92870', '92871', '95365', '96076', '90291', '90293', '90296', '95668', '94566', '94588', '95669', '95468', '94956', '91767', '91768', '91769', '94567', '93257', '94569', '93258', '94497', '91963', '95469', '92064', '92074', '93453', '93651', '94129', '96078', '93907', '95972', '93452', '95248', '93652', '92065', '92066', '92128', '92589', '92590', '92591', '92592', '92593', '95741', '95742', '92270', '95683', '92067', '92091', '92688', '96123', '93653', '95569', '96002', '96003', '96049', '96099', '92374', '92375', '90277', '90278', '95560', '94061', '94063', '94064', '94065', '95470', '95672', '91337', '92376', '92377', '93261', '94802', '94804', '94805', '94807', '94808', '94850', '95974', '93556', '92378', '95562', '95673', '95471', '95674', '94571', '95366', '95367', '93656', '92501', '92502', '92506', '92508', '92513', '92514', '92515', '92516', '92517', '92519', '92521', '95676', '95677', '95765', '95488', '94572', '93560', '95407', '91770', '91771', '91772', '95661', '95678', '95747', '94957', '95975', '96084', '95679', '94573', '95680', '94203', '94204', '94205', '94206', '94207', '94208', '94209', '94211', '94229', '94230', '94232', '94234', '94235', '94236', '94237', '94239', '94244', '94245', '94246', '94247', '94248', '94249', '94250', '94252', '94254', '94256', '94257', '94258', '94259', '94261', '94262', '94263', '94268', '94269', '94271', '94273', '94274', '94277', '94279', '94280', '94282', '94283', '94284', '94285', '94286', '94287', '94288', '94289', '94290', '94291', '94293', '94295', '94296', '94297', '94298', '94299', '95811', '95812', '95813', '95814', '95816', '95817', '95818', '95819', '95821', '95822', '95823', '95824', '95825', '95826', '95827', '95828', '95829', '95830', '95831', '95832', '95833', '95834', '95835', '95836', '95837', '95838', '95841', '95842', '95851', '95852', '95853', '95860', '95864', '95865', '95866', '95887', '95899', '94574', '95368', '93901', '93902', '93906', '93912', '93915', '93962', '92275', '95563', '95564', '95249', '94901', '94960', '94979', '93450', '92401', '92402', '92403', '92405', '92406', '92408', '92411', '92412', '92415', '92423', '92427', '94066', '93003', '93004', '94070', '92672', '92673', '92674', '92101', '92102', '92103', '92104', '92105', '92106', '92108', '92110', '92111', '92112', '92113', '92114', '92115', '92116', '92117', '92119', '92120', '92121', '92122', '92123', '92124', '92126', '92127', '92129', '92130', '92131', '92137', '92138', '92139', '92142', '92143', '92149', '92150', '92152', '92154', '92158', '92159', '92160', '92161', '92163', '92164', '92165', '92166', '92167', '92168', '92169', '92170', '92171', '92172', '92173', '92174', '92175', '92176', '92177', '92179', '92182', '92186', '92187', '92190', '92191', '92192', '92193', '92195', '92196', '92197', '92198', '92199', '91773', '91340', '91341', '94102', '94103', '94104', '94105', '94107', '94108', '94109', '94110', '94111', '94112', '94114', '94115', '94116', '94117', '94118', '94119', '94120', '94121', '94122', '94123', '94124', '94125', '94126', '94127', '94128', '94130', '94131', '94132', '94133', '94134', '94137', '94140', '94141', '94142', '94143', '94144', '94145', '94146', '94147', '94158', '94159', '94160', '94163', '94164', '94172', '94188', '91775', '91776', '91778', '94963', '94074', '92581', '92582', '93660', '95101', '95103', '95106', '95108', '95109', '95110', '95111', '95112', '95113', '95115', '95116', '95117', '95118', '95119', '95120', '95121', '95122', '95123', '95124', '95125', '95126', '95127', '95128', '95129', '95130', '95131', '95132', '95133', '95134', '95135', '95136', '95138', '95139', '95141', '95148', '95150', '95151', '95152', '95153', '95154', '95155', '95156', '95157', '95158', '95159', '95160', '95161', '95164', '95170', '95172', '95173', '95190', '95192', '95196', '95045', '92693', '94577', '94578', '94579', '94580', '93954', '93401', '93403', '93405', '93406', '93408', '92079', '95046', '94401', '94402', '94403', '90732', '90733', '90734', '94964', '94974', '94912', '94913', '94582', '94583', '93955', '92701', '92702', '92707', '92711', '92712', '92735', '92799', '93101', '93102', '93103', '93105', '93106', '93107', '93109', '93120', '93121', '93130', '93140', '93190', '95050', '95051', '95052', '95053', '95054', '95055', '95056', '91354', '91355', '91380', '91382', '91383', '91385', '95061', '95062', '95063', '95064', '95065', '95066', '95067', '90670', '90671', '93456', '93458', '90401', '90402', '90403', '90404', '90405', '90406', '90407', '90408', '90409', '90410', '90411', '93060', '93061', '93661', '95401', '95402', '95404', '95405', '95406', '93063', '93460', '92070', '92071', '92072', '95070', '95071', '94966', '95565', '96085', '90740', '95473', '92273', '96086', '93262', '91040', '93263', '96087', '96089', '93664', '95589', '95681', '91401', '91403', '91411', '91413', '91423', '91495', '96088', '92384', '91024', '91025', '96126', '93062', '93065', '93094', '92385', '95567', '95369', '92075', '93960', '93464', '95568', '93066', '95370', '95373', '95073', '95372', '93665', '90280', '96150', '96152', '96154', '96157', '96158', '91030', '91031', '94080', '94083', '91976', '91977', '91978', '91979', '92395', '93265', '96128', '90680', '95374', '95480', '94970', '95978', '95201', '95202', '95203', '95204', '95205', '95206', '95207', '95208', '95209', '95210', '95211', '95213', '95215', '95219', '95267', '95269', '95297', '93266', '93267', '95981', '93666', '93067', '91353', '91041', '94085', '94086', '94087', '94089', '94586', '90742', '90743', '96127', '95982', '95685', '91392', '93268', '96148', '95481', '91356', '91357', '91980', '91987', '92389', '93581', '96090', '91780', '93465', '96132', '93270', '95497', '95686', '91358', '91359', '91360', '91362', '93271', '95991', '93272', '93667', '94971', '90290', '96133', '90501', '90502', '90503', '90504', '90505', '90506', '90507', '90508', '90509', '90510', '92678', '95376', '95377', '95378', '93668', '93673', '95075', '95570', '96091', '93592', '96160', '91042', '91043', '93274', '93275', '95379', '95389', '93276', '95380', '95381', '95382', '92780', '92781', '92782', '95984', '95383', '95735', '92391', '95482', '94587', '91784', '91785', '91786', '95485', '95493', '91496', '95687', '95696', '95251', '94590', '94591', '92082', '94972', '91405', '95252', '91404', '91407', '91408', '91409', '91410', '91499', '90294', '93002', '93005', '93006', '93007', '93009', '91046', '95385', '95253', '92392', '92393', '95486', '96092', '95487', '96135', '93277', '93278', '93279', '93290', '93291', '93292', '92081', '92083', '92084', '92085', '95689', '95254', '91788', '94595', '94596', '94597', '94598', '92086', '93280', '95986', '95386', '95077', '96093', '95736', '93283', '96136', '95571', '91790', '91791', '91792', '91793', '95255', '95691', '95798', '95799', '95387', '92683', '92684', '92685', '92281', '95692', '96095', '96096', '90602', '90603', '90604', '90605', '90607', '90608', '90609', '92595', '95490', '95573', '90744', '90748', '95257', '95693', '95492', '95694', '95388', '93285', '94973', '95258', '95695', '95776', '91364', '91365', '91367', '93287', '92397', '92398', '93670', '95697', '92885', '92886', '92887', '95494', '94599', '96097', '95992', '95993', '92284', '92286', '95698', '95595']; - return zips; -} diff --git a/src/js/roads/getobstructions.js b/src/js/roads/getobstructions.js index aeae4dbb..3170c58d 100644 --- a/src/js/roads/getobstructions.js +++ b/src/js/roads/getobstructions.js @@ -63,5 +63,8 @@ export default async function getObstructions (stepMap, coords, callback) { callback(finalObstructions); } } + + // call checkout here in case we have 0 steps with highways + checkOut(); // reverted promise.all version which didn't include proper catch logic because sometimes routes can be missing } diff --git a/src/js/roads/index.js b/src/js/roads/index.js index 81ce0b8c..f79c658a 100644 --- a/src/js/roads/index.js +++ b/src/js/roads/index.js @@ -40,7 +40,7 @@ export default function addListeners () { const endPlace = document.querySelector('.js-geocoder-start input').value; const startCoords = await getLatLon(endPlace); const errorSelector = document.querySelector('.error2'); - if (startCoords.status !== 200) { + if (startCoords.status !== '200') { errorSelector.innerHTML = startCoords.message; errorSelector.style.display = 'block'; } else { diff --git a/src/lang-global.csv b/src/lang-global.csv index 42791c0e..2341843d 100644 --- a/src/lang-global.csv +++ b/src/lang-global.csv @@ -256,6 +256,9 @@ path,token,en,es,zh /find-minimum-wage-your-city,,employees,empleados,员工 /find-minimum-wage-your-city,,Employers with,Los empleadores con,与雇主 /find-minimum-wage-your-city,,for employers with,para los empleadores con,雇主 +/find-food-banks-near-you,,Find food banks near you,Encuentre bancos de alimentos más cercanos,查找附近的粮食银行 +/find-food-banks-near-you,,We'll help you find the food banks and pantries closest to you.,Nosotros le ayudaremos a encontrar los bancos de alimentos y despensas más cercanos a tu.,我们将帮助您寻找食物银行和最接近茶水间给你。 +/find-food-banks-near-you,,Please enter your city or zip code:,"Por favor, introduzca su ciudad o código postal:",请输入您的城市或邮政编码: /find-food-banks-near-you,,Other resources,Otros recursos,其他资源 /find-food-banks-near-you,,Text us to find food close to you,Envíe un mensaje de texto para encontrar comida cerca de usted,发送短信去寻找食物靠近你 /find-food-banks-near-you,,Text us anytime at,Envíenos un mensaje de texto en cualquier momento al,在任何时候发送短信 diff --git a/webpack.config.js b/webpack.config.js index 32eadd07..a0cd6bfc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -26,13 +26,12 @@ const minificationOptions = { const minificationOptionsWithComments = JSON.parse(JSON.stringify(minificationOptions)); minificationOptionsWithComments.removeComments = false; -const excludedChunks = ['roads', 'shelters', 'lifeline']; const allChunks = ['style', 'roads', 'shelters', 'lifeline']; // usage // excludeChunks: excludeChucksExcept("roads"), // excludeChunks: excludeChucksExcept("roads","alerts"), -const excludeChucksExcept = (...args) => excludedChunks.filter(x => !args.includes(x)); +const excludeChucksExcept = (...args) => allChunks.filter(x => !args.includes(x)); module.exports = { entry: { @@ -253,43 +252,43 @@ module.exports = { new HtmlWebpackPlugin({ filename: 'en/apply-for-unemployment-insurance/index.html', template: 'src/services/apply-for-unemployment-insurance/index.html', - excludeChunks: excludedChunks, + excludeChunks: allChunks, minify: minificationOptions }), new HtmlWebpackPlugin({ filename: 'en/apply-for-unemployment-insurance/after-you-apply/index.html', template: 'src/services/apply-for-unemployment-insurance/after-you-apply/index.html', - excludeChunks: excludedChunks, + excludeChunks: allChunks, minify: minificationOptions }), new HtmlWebpackPlugin({ filename: 'en/apply-for-unemployment-insurance/how-to-apply/index.html', template: 'src/services/apply-for-unemployment-insurance/how-to-apply/index.html', - excludeChunks: excludedChunks, + excludeChunks: allChunks, minify: minificationOptions }), new HtmlWebpackPlugin({ filename: 'en/apply-for-unemployment-insurance/update-us-every-two-weeks/index.html', template: 'src/services/apply-for-unemployment-insurance/update-us-every-two-weeks/index.html', - excludeChunks: excludedChunks, + excludeChunks: allChunks, minify: minificationOptions }), new HtmlWebpackPlugin({ filename: 'en/apply-for-unemployment-insurance/what-you-need-before-you-apply/index.html', template: 'src/services/apply-for-unemployment-insurance/what-you-need-before-you-apply/index.html', - excludeChunks: excludedChunks, + excludeChunks: allChunks, minify: minificationOptions }), new HtmlWebpackPlugin({ filename: 'en/apply-for-unemployment-insurance/when-to-apply/index.html', template: 'src/services/apply-for-unemployment-insurance/when-to-apply/index.html', - excludeChunks: excludedChunks, + excludeChunks: allChunks, minify: minificationOptions }), new HtmlWebpackPlugin({ filename: 'en/office-of-digital-innovation/index.html', template: 'src/office-of-digital-innovation/index.html', - excludeChunks: excludedChunks, + excludeChunks: allChunks, minify: minificationOptions }),