From 31082b89fd66764ff64c485d3901f2ceeaac9c55 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 28 May 2022 12:44:49 -0700 Subject: Move resources to src --- .../src/common/components/LocalizationProvider.js | 108 ++++++++++----------- modern/src/map/core/preloadImages.js | 44 ++++----- modern/src/resources/alarm.mp3 | Bin 0 -> 4642 bytes modern/src/resources/images/background.svg | 10 ++ modern/src/resources/images/icon/animal.svg | 2 + modern/src/resources/images/icon/bicycle.svg | 2 + modern/src/resources/images/icon/boat.svg | 2 + modern/src/resources/images/icon/bus.svg | 2 + modern/src/resources/images/icon/car.svg | 2 + modern/src/resources/images/icon/crane.svg | 2 + modern/src/resources/images/icon/default.svg | 2 + modern/src/resources/images/icon/helicopter.svg | 2 + modern/src/resources/images/icon/motorcycle.svg | 2 + modern/src/resources/images/icon/offroad.svg | 2 + modern/src/resources/images/icon/person.svg | 2 + modern/src/resources/images/icon/pickup.svg | 2 + modern/src/resources/images/icon/plane.svg | 2 + modern/src/resources/images/icon/scooter.svg | 2 + modern/src/resources/images/icon/ship.svg | 2 + modern/src/resources/images/icon/tractor.svg | 2 + modern/src/resources/images/icon/train.svg | 2 + modern/src/resources/images/icon/tram.svg | 2 + modern/src/resources/images/icon/trolleybus.svg | 2 + modern/src/resources/images/icon/truck.svg | 2 + modern/src/resources/images/icon/van.svg | 2 + modern/src/resources/images/logo.svg | 24 +++++ modern/src/resources/l10n | 1 + 27 files changed, 153 insertions(+), 76 deletions(-) create mode 100644 modern/src/resources/alarm.mp3 create mode 100644 modern/src/resources/images/background.svg create mode 100644 modern/src/resources/images/icon/animal.svg create mode 100644 modern/src/resources/images/icon/bicycle.svg create mode 100644 modern/src/resources/images/icon/boat.svg create mode 100644 modern/src/resources/images/icon/bus.svg create mode 100644 modern/src/resources/images/icon/car.svg create mode 100644 modern/src/resources/images/icon/crane.svg create mode 100644 modern/src/resources/images/icon/default.svg create mode 100644 modern/src/resources/images/icon/helicopter.svg create mode 100644 modern/src/resources/images/icon/motorcycle.svg create mode 100644 modern/src/resources/images/icon/offroad.svg create mode 100644 modern/src/resources/images/icon/person.svg create mode 100644 modern/src/resources/images/icon/pickup.svg create mode 100644 modern/src/resources/images/icon/plane.svg create mode 100644 modern/src/resources/images/icon/scooter.svg create mode 100644 modern/src/resources/images/icon/ship.svg create mode 100644 modern/src/resources/images/icon/tractor.svg create mode 100644 modern/src/resources/images/icon/train.svg create mode 100644 modern/src/resources/images/icon/tram.svg create mode 100644 modern/src/resources/images/icon/trolleybus.svg create mode 100644 modern/src/resources/images/icon/truck.svg create mode 100644 modern/src/resources/images/icon/van.svg create mode 100644 modern/src/resources/images/logo.svg create mode 120000 modern/src/resources/l10n (limited to 'modern/src') diff --git a/modern/src/common/components/LocalizationProvider.js b/modern/src/common/components/LocalizationProvider.js index db3e1fb9..9cc1d65a 100644 --- a/modern/src/common/components/LocalizationProvider.js +++ b/modern/src/common/components/LocalizationProvider.js @@ -5,60 +5,60 @@ import React, { import moment from 'moment'; import 'moment/min/locales.min'; -import af from '../../../../web/l10n/af.json'; -import ar from '../../../../web/l10n/ar.json'; -import az from '../../../../web/l10n/az.json'; -import bg from '../../../../web/l10n/bg.json'; -import bn from '../../../../web/l10n/bn.json'; -import cs from '../../../../web/l10n/cs.json'; -import da from '../../../../web/l10n/da.json'; -import de from '../../../../web/l10n/de.json'; -import el from '../../../../web/l10n/el.json'; -import en from '../../../../web/l10n/en.json'; -import es from '../../../../web/l10n/es.json'; -import fa from '../../../../web/l10n/fa.json'; -import fi from '../../../../web/l10n/fi.json'; -import fr from '../../../../web/l10n/fr.json'; -import he from '../../../../web/l10n/he.json'; -import hi from '../../../../web/l10n/hi.json'; -import hr from '../../../../web/l10n/hr.json'; -import hu from '../../../../web/l10n/hu.json'; -import id from '../../../../web/l10n/id.json'; -import it from '../../../../web/l10n/it.json'; -import ja from '../../../../web/l10n/ja.json'; -import ka from '../../../../web/l10n/ka.json'; -import kk from '../../../../web/l10n/kk.json'; -import km from '../../../../web/l10n/km.json'; -import ko from '../../../../web/l10n/ko.json'; -import lo from '../../../../web/l10n/lo.json'; -import lt from '../../../../web/l10n/lt.json'; -import lv from '../../../../web/l10n/lv.json'; -import ml from '../../../../web/l10n/ml.json'; -import mn from '../../../../web/l10n/mn.json'; -import ms from '../../../../web/l10n/ms.json'; -import nb from '../../../../web/l10n/nb.json'; -import ne from '../../../../web/l10n/ne.json'; -import nl from '../../../../web/l10n/nl.json'; -import nn from '../../../../web/l10n/nn.json'; -import pl from '../../../../web/l10n/pl.json'; -import pt from '../../../../web/l10n/pt.json'; -import ptBR from '../../../../web/l10n/pt_BR.json'; -import ro from '../../../../web/l10n/ro.json'; -import ru from '../../../../web/l10n/ru.json'; -import si from '../../../../web/l10n/si.json'; -import sk from '../../../../web/l10n/sk.json'; -import sl from '../../../../web/l10n/sl.json'; -import sq from '../../../../web/l10n/sq.json'; -import sr from '../../../../web/l10n/sr.json'; -import sv from '../../../../web/l10n/sv.json'; -import ta from '../../../../web/l10n/ta.json'; -import th from '../../../../web/l10n/th.json'; -import tr from '../../../../web/l10n/tr.json'; -import uk from '../../../../web/l10n/uk.json'; -import uz from '../../../../web/l10n/uz.json'; -import vi from '../../../../web/l10n/vi.json'; -import zh from '../../../../web/l10n/zh.json'; -import zhTW from '../../../../web/l10n/zh_TW.json'; +import af from '../../resources/l10n/af.json'; +import ar from '../../resources/l10n/ar.json'; +import az from '../../resources/l10n/az.json'; +import bg from '../../resources/l10n/bg.json'; +import bn from '../../resources/l10n/bn.json'; +import cs from '../../resources/l10n/cs.json'; +import da from '../../resources/l10n/da.json'; +import de from '../../resources/l10n/de.json'; +import el from '../../resources/l10n/el.json'; +import en from '../../resources/l10n/en.json'; +import es from '../../resources/l10n/es.json'; +import fa from '../../resources/l10n/fa.json'; +import fi from '../../resources/l10n/fi.json'; +import fr from '../../resources/l10n/fr.json'; +import he from '../../resources/l10n/he.json'; +import hi from '../../resources/l10n/hi.json'; +import hr from '../../resources/l10n/hr.json'; +import hu from '../../resources/l10n/hu.json'; +import id from '../../resources/l10n/id.json'; +import it from '../../resources/l10n/it.json'; +import ja from '../../resources/l10n/ja.json'; +import ka from '../../resources/l10n/ka.json'; +import kk from '../../resources/l10n/kk.json'; +import km from '../../resources/l10n/km.json'; +import ko from '../../resources/l10n/ko.json'; +import lo from '../../resources/l10n/lo.json'; +import lt from '../../resources/l10n/lt.json'; +import lv from '../../resources/l10n/lv.json'; +import ml from '../../resources/l10n/ml.json'; +import mn from '../../resources/l10n/mn.json'; +import ms from '../../resources/l10n/ms.json'; +import nb from '../../resources/l10n/nb.json'; +import ne from '../../resources/l10n/ne.json'; +import nl from '../../resources/l10n/nl.json'; +import nn from '../../resources/l10n/nn.json'; +import pl from '../../resources/l10n/pl.json'; +import pt from '../../resources/l10n/pt.json'; +import ptBR from '../../resources/l10n/pt_BR.json'; +import ro from '../../resources/l10n/ro.json'; +import ru from '../../resources/l10n/ru.json'; +import si from '../../resources/l10n/si.json'; +import sk from '../../resources/l10n/sk.json'; +import sl from '../../resources/l10n/sl.json'; +import sq from '../../resources/l10n/sq.json'; +import sr from '../../resources/l10n/sr.json'; +import sv from '../../resources/l10n/sv.json'; +import ta from '../../resources/l10n/ta.json'; +import th from '../../resources/l10n/th.json'; +import tr from '../../resources/l10n/tr.json'; +import uk from '../../resources/l10n/uk.json'; +import uz from '../../resources/l10n/uz.json'; +import vi from '../../resources/l10n/vi.json'; +import zh from '../../resources/l10n/zh.json'; +import zhTW from '../../resources/l10n/zh_TW.json'; import usePersistedState from '../util/usePersistedState'; const languages = { diff --git a/modern/src/map/core/preloadImages.js b/modern/src/map/core/preloadImages.js index 24538146..e0cf42f2 100644 --- a/modern/src/map/core/preloadImages.js +++ b/modern/src/map/core/preloadImages.js @@ -1,28 +1,28 @@ import palette from '../../common/theme/palette'; import { loadImage, prepareIcon } from './mapUtil'; -import backgroundSvg from '../../../public/images/background.svg'; -import animalSvg from '../../../public/images/icon/animal.svg'; -import bicycleSvg from '../../../public/images/icon/bicycle.svg'; -import boatSvg from '../../../public/images/icon/boat.svg'; -import busSvg from '../../../public/images/icon/bus.svg'; -import carSvg from '../../../public/images/icon/car.svg'; -import craneSvg from '../../../public/images/icon/crane.svg'; -import defaultSvg from '../../../public/images/icon/default.svg'; -import helicopterSvg from '../../../public/images/icon/helicopter.svg'; -import motorcycleSvg from '../../../public/images/icon/motorcycle.svg'; -import offroadSvg from '../../../public/images/icon/offroad.svg'; -import personSvg from '../../../public/images/icon/person.svg'; -import pickupSvg from '../../../public/images/icon/pickup.svg'; -import planeSvg from '../../../public/images/icon/plane.svg'; -import scooterSvg from '../../../public/images/icon/scooter.svg'; -import shipSvg from '../../../public/images/icon/ship.svg'; -import tractorSvg from '../../../public/images/icon/tractor.svg'; -import trainSvg from '../../../public/images/icon/train.svg'; -import tramSvg from '../../../public/images/icon/tram.svg'; -import trolleybusSvg from '../../../public/images/icon/trolleybus.svg'; -import truckSvg from '../../../public/images/icon/truck.svg'; -import vanSvg from '../../../public/images/icon/van.svg'; +import backgroundSvg from '../../resources/images/background.svg'; +import animalSvg from '../../resources/images/icon/animal.svg'; +import bicycleSvg from '../../resources/images/icon/bicycle.svg'; +import boatSvg from '../../resources/images/icon/boat.svg'; +import busSvg from '../../resources/images/icon/bus.svg'; +import carSvg from '../../resources/images/icon/car.svg'; +import craneSvg from '../../resources/images/icon/crane.svg'; +import defaultSvg from '../../resources/images/icon/default.svg'; +import helicopterSvg from '../../resources/images/icon/helicopter.svg'; +import motorcycleSvg from '../../resources/images/icon/motorcycle.svg'; +import offroadSvg from '../../resources/images/icon/offroad.svg'; +import personSvg from '../../resources/images/icon/person.svg'; +import pickupSvg from '../../resources/images/icon/pickup.svg'; +import planeSvg from '../../resources/images/icon/plane.svg'; +import scooterSvg from '../../resources/images/icon/scooter.svg'; +import shipSvg from '../../resources/images/icon/ship.svg'; +import tractorSvg from '../../resources/images/icon/tractor.svg'; +import trainSvg from '../../resources/images/icon/train.svg'; +import tramSvg from '../../resources/images/icon/tram.svg'; +import trolleybusSvg from '../../resources/images/icon/trolleybus.svg'; +import truckSvg from '../../resources/images/icon/truck.svg'; +import vanSvg from '../../resources/images/icon/van.svg'; export const mapIcons = { animal: animalSvg, diff --git a/modern/src/resources/alarm.mp3 b/modern/src/resources/alarm.mp3 new file mode 100644 index 00000000..43d3687e Binary files /dev/null and b/modern/src/resources/alarm.mp3 differ diff --git a/modern/src/resources/images/background.svg b/modern/src/resources/images/background.svg new file mode 100644 index 00000000..3dcb6870 --- /dev/null +++ b/modern/src/resources/images/background.svg @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/modern/src/resources/images/icon/animal.svg b/modern/src/resources/images/icon/animal.svg new file mode 100644 index 00000000..5a239349 --- /dev/null +++ b/modern/src/resources/images/icon/animal.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/bicycle.svg b/modern/src/resources/images/icon/bicycle.svg new file mode 100644 index 00000000..a473f4bc --- /dev/null +++ b/modern/src/resources/images/icon/bicycle.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/boat.svg b/modern/src/resources/images/icon/boat.svg new file mode 100644 index 00000000..33bfe27d --- /dev/null +++ b/modern/src/resources/images/icon/boat.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/bus.svg b/modern/src/resources/images/icon/bus.svg new file mode 100644 index 00000000..5e881481 --- /dev/null +++ b/modern/src/resources/images/icon/bus.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/car.svg b/modern/src/resources/images/icon/car.svg new file mode 100644 index 00000000..f919e0be --- /dev/null +++ b/modern/src/resources/images/icon/car.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/crane.svg b/modern/src/resources/images/icon/crane.svg new file mode 100644 index 00000000..23db0916 --- /dev/null +++ b/modern/src/resources/images/icon/crane.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/default.svg b/modern/src/resources/images/icon/default.svg new file mode 100644 index 00000000..a4ba881f --- /dev/null +++ b/modern/src/resources/images/icon/default.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/helicopter.svg b/modern/src/resources/images/icon/helicopter.svg new file mode 100644 index 00000000..2849ee8d --- /dev/null +++ b/modern/src/resources/images/icon/helicopter.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/motorcycle.svg b/modern/src/resources/images/icon/motorcycle.svg new file mode 100644 index 00000000..0289a346 --- /dev/null +++ b/modern/src/resources/images/icon/motorcycle.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/offroad.svg b/modern/src/resources/images/icon/offroad.svg new file mode 100644 index 00000000..b0072b69 --- /dev/null +++ b/modern/src/resources/images/icon/offroad.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/person.svg b/modern/src/resources/images/icon/person.svg new file mode 100644 index 00000000..805ba442 --- /dev/null +++ b/modern/src/resources/images/icon/person.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/pickup.svg b/modern/src/resources/images/icon/pickup.svg new file mode 100644 index 00000000..db4494b7 --- /dev/null +++ b/modern/src/resources/images/icon/pickup.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/plane.svg b/modern/src/resources/images/icon/plane.svg new file mode 100644 index 00000000..5210e4c9 --- /dev/null +++ b/modern/src/resources/images/icon/plane.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/scooter.svg b/modern/src/resources/images/icon/scooter.svg new file mode 100644 index 00000000..ea23f9fa --- /dev/null +++ b/modern/src/resources/images/icon/scooter.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/ship.svg b/modern/src/resources/images/icon/ship.svg new file mode 100644 index 00000000..b8c563c8 --- /dev/null +++ b/modern/src/resources/images/icon/ship.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/tractor.svg b/modern/src/resources/images/icon/tractor.svg new file mode 100644 index 00000000..3a9e9f25 --- /dev/null +++ b/modern/src/resources/images/icon/tractor.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/train.svg b/modern/src/resources/images/icon/train.svg new file mode 100644 index 00000000..125b468e --- /dev/null +++ b/modern/src/resources/images/icon/train.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/tram.svg b/modern/src/resources/images/icon/tram.svg new file mode 100644 index 00000000..f54084f7 --- /dev/null +++ b/modern/src/resources/images/icon/tram.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/trolleybus.svg b/modern/src/resources/images/icon/trolleybus.svg new file mode 100644 index 00000000..46ecc712 --- /dev/null +++ b/modern/src/resources/images/icon/trolleybus.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/truck.svg b/modern/src/resources/images/icon/truck.svg new file mode 100644 index 00000000..df5c164c --- /dev/null +++ b/modern/src/resources/images/icon/truck.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/icon/van.svg b/modern/src/resources/images/icon/van.svg new file mode 100644 index 00000000..a3ee13c7 --- /dev/null +++ b/modern/src/resources/images/icon/van.svg @@ -0,0 +1,2 @@ + + diff --git a/modern/src/resources/images/logo.svg b/modern/src/resources/images/logo.svg new file mode 100644 index 00000000..8183831f --- /dev/null +++ b/modern/src/resources/images/logo.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modern/src/resources/l10n b/modern/src/resources/l10n new file mode 120000 index 00000000..11bf5a89 --- /dev/null +++ b/modern/src/resources/l10n @@ -0,0 +1 @@ +../../../web/l10n \ No newline at end of file -- cgit v1.2.3