From ab56fe99171ef550d8ea56fe6306d1925c46238a Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sun, 1 Nov 2020 17:57:06 +0100 Subject: [PATCH] split front and api parts --- .gitignore | 18 ------- .env.dist => api/.env.dist | 0 api/.gitignore | 16 +++++++ {docker/php => api}/Dockerfile | 0 {bin => api/bin}/console | 0 composer.json => api/composer.json | 0 composer.lock => api/composer.lock | 0 {config => api/config}/bundles.php | 0 .../config}/packages/dev/jms_serializer.yaml | 0 .../config}/packages/dev/monolog.yaml | 0 .../config}/packages/dev/routing.yaml | 0 .../config}/packages/dev/web_profiler.yaml | 0 {config => api/config}/packages/doctrine.yaml | 0 .../config}/packages/doctrine_migrations.yaml | 0 .../config}/packages/framework.yaml | 0 .../config}/packages/jms_serializer.yaml | 0 .../config}/packages/nelmio_api_doc.yaml | 0 .../config}/packages/prod/doctrine.yaml | 0 .../config}/packages/prod/jms_serializer.yaml | 0 .../config}/packages/prod/monolog.yaml | 0 {config => api/config}/packages/routing.yaml | 0 .../packages/sensio_framework_extra.yaml | 0 .../config}/packages/test/framework.yaml | 0 .../config}/packages/test/monolog.yaml | 0 .../config}/packages/test/web_profiler.yaml | 0 .../config}/packages/translation.yaml | 0 {config => api/config}/packages/twig.yaml | 0 {config => api/config}/routes.yaml | 0 .../config}/routes/annotations.yaml | 0 {config => api/config}/routes/dev/twig.yaml | 0 .../config}/routes/dev/web_profiler.yaml | 0 .../config}/routes/nelmio_api_doc.yaml | 0 {config => api/config}/services.yaml | 0 {public => api/public}/index.php | 0 ruleset.xml => api/ruleset.xml | 0 .../Asset/ModifiedTimeVersionStrategy.php | 0 {src => api/src}/Command/UpdateCommand.php | 0 {src => api/src}/Controller/.gitignore | 0 .../Api/v1/DeparturesController.php | 0 .../Controller/Api/v1/MessagesController.php | 0 .../Controller/Api/v1/ProviderController.php | 0 .../Controller/Api/v1/StopsController.php | 0 .../Controller/Api/v1/TracksController.php | 0 .../src}/Controller/Api/v1/TripController.php | 0 {src => api/src}/Controller/Controller.php | 0 .../src}/Controller/MainController.php | 0 .../src}/Doctrine/CarbonDateTimeType.php | 0 {src => api/src}/Entity/Entity.php | 0 {src => api/src}/Entity/LineEntity.php | 0 {src => api/src}/Entity/OperatorEntity.php | 0 {src => api/src}/Entity/ProviderEntity.php | 0 .../src}/Entity/ProviderReferenceTrait.php | 0 .../src}/Entity/ReferableEntityTrait.php | 0 {src => api/src}/Entity/StopEntity.php | 0 {src => api/src}/Entity/TrackEntity.php | 0 {src => api/src}/Entity/TrackStopEntity.php | 0 {src => api/src}/Entity/TripEntity.php | 0 {src => api/src}/Entity/TripStopEntity.php | 0 {src => api/src}/Event/DataUpdateEvent.php | 0 .../Event/HandleDatabaseModifierEvent.php | 0 .../src}/Event/HandleModifierEvent.php | 0 {src => api/src}/Event/PostProcessEvent.php | 0 .../Exception/InvalidArgumentException.php | 0 .../Exception/NonExistentServiceException.php | 0 .../src}/Exception/NotSupportedException.php | 0 .../UnsupportedModifierException.php | 0 {src => api/src}/Functions/helpers.php | 0 {src => api/src}/Functions/index.php | 0 .../Database/FieldFilterDatabaseHandler.php | 0 .../Database/GenericWithDatabaseHandler.php | 0 .../Database/IdFilterDatabaseHandler.php | 0 .../Handler/Database/LimitDatabaseHandler.php | 0 .../RelatedFilterDatabaseGenericHandler.php | 0 .../Database/TrackByStopDatabaseHandler.php | 0 .../WithDestinationsDatabaseHandler.php | 0 {src => api/src}/Handler/ModifierHandler.php | 0 .../src}/Handler/PostProcessingHandler.php | 0 {src => api/src}/Kernel.php | 0 {src => api/src}/Migrations/.gitignore | 0 .../src}/Migrations/Version20180907212032.php | 0 .../src}/Migrations/Version20181027124203.php | 0 .../src}/Migrations/Version20190111212909.php | 0 .../src}/Migrations/Version20200103160747.php | 0 .../src}/Migrations/Version20200103170517.php | 0 .../src}/Migrations/Version20200131151757.php | 0 .../src}/Migrations/Version20200206183956.php | 0 .../src}/Migrations/Version20200314112552.php | 0 {src => api/src}/Model/Departure.php | 0 {src => api/src}/Model/Destination.php | 0 {src => api/src}/Model/FillTrait.php | 0 {src => api/src}/Model/Fillable.php | 0 {src => api/src}/Model/JustReference.php | 0 {src => api/src}/Model/Line.php | 0 {src => api/src}/Model/Location.php | 0 {src => api/src}/Model/Message.php | 0 {src => api/src}/Model/Operator.php | 0 {src => api/src}/Model/Provider.php | 0 {src => api/src}/Model/Referable.php | 0 {src => api/src}/Model/ReferableTrait.php | 0 {src => api/src}/Model/ScheduledStop.php | 0 {src => api/src}/Model/Stop.php | 0 {src => api/src}/Model/StopGroup.php | 0 {src => api/src}/Model/Track.php | 0 {src => api/src}/Model/TrackStop.php | 0 {src => api/src}/Model/Trip.php | 0 {src => api/src}/Model/Vehicle.php | 0 {src => api/src}/Modifier/FieldFilter.php | 0 {src => api/src}/Modifier/IdFilter.php | 0 {src => api/src}/Modifier/Limit.php | 0 {src => api/src}/Modifier/Modifier.php | 0 {src => api/src}/Modifier/RelatedFilter.php | 0 {src => api/src}/Modifier/With.php | 0 .../Provider/Database/DatabaseRepository.php | 0 .../Database/GenericLineRepository.php | 0 .../Database/GenericOperatorRepository.php | 0 .../Database/GenericScheduleRepository.php | 0 .../Database/GenericStopRepository.php | 0 .../Database/GenericTrackRepository.php | 0 .../Database/GenericTripRepository.php | 0 .../src}/Provider/DepartureRepository.php | 0 .../Dummy/DummyDepartureRepository.php | 0 .../Provider/Dummy/DummyMessageRepository.php | 0 .../src}/Provider/Dummy/DummyProvider.php | 0 .../Provider/Dummy/DummyStopRepository.php | 0 .../src}/Provider/FluentRepository.php | 0 {src => api/src}/Provider/LineRepository.php | 0 .../src}/Provider/MessageRepository.php | 0 .../src}/Provider/OperatorRepository.php | 0 {src => api/src}/Provider/Provider.php | 0 {src => api/src}/Provider/Repository.php | 0 .../src}/Provider/ScheduleRepository.php | 0 {src => api/src}/Provider/StopRepository.php | 0 {src => api/src}/Provider/TrackRepository.php | 0 {src => api/src}/Provider/TripRepository.php | 0 .../ZtmGdanskDataUpdateSubscriber.php | 0 .../ZtmGdanskDepartureRepository.php | 0 .../ZtmGdansk/ZtmGdanskMessageRepository.php | 0 .../ZtmGdanskMessageTypeClassifier.php | 0 .../Provider/ZtmGdansk/ZtmGdanskProvider.php | 0 .../src}/Serialization/CarbonHandler.php | 0 .../LaravelCollectionHandler.php | 0 .../src}/Serialization/SerializeAs.php | 0 .../src}/Service/AggregateConverter.php | 0 .../src}/Service/CacheableConverter.php | 0 {src => api/src}/Service/Converter.php | 0 {src => api/src}/Service/DataUpdater.php | 0 {src => api/src}/Service/EntityConverter.php | 0 .../src}/Service/EntityReferenceFactory.php | 0 {src => api/src}/Service/HandlerProvider.php | 0 {src => api/src}/Service/IdUtils.php | 0 {src => api/src}/Service/IterableUtils.php | 0 {src => api/src}/Service/ModifierUtils.php | 0 .../Normalizer/JustReferenceNormalizer.php | 0 .../Service/Normalizer/StopNormalizer.php | 0 .../src}/Service/ProviderConverter.php | 0 .../Service/ProviderParameterConverter.php | 0 {src => api/src}/Service/ProviderResolver.php | 0 .../src}/Service/Proxy/ReferenceFactory.php | 0 .../Proxy/ReferenceObjectGenerator.php | 0 .../src}/Service/RecursiveConverter.php | 0 .../src}/Service/RecursiveConverterTrait.php | 0 .../Service/RepositoryParameterConverter.php | 0 .../src}/Service/ScheduledStopConverter.php | 0 .../src}/Service/SerializerContextFactory.php | 0 {src => api/src}/Service/VersionExtension.php | 0 .../JustReferenceSerializationSubscriber.php | 0 symfony.lock => api/symfony.lock | 0 {templates => api/templates}/app.html.twig | 0 {templates => api/templates}/base.html.twig | 8 ++-- .../SwaggerUi/index.html.twig | 0 {templates => api/templates}/choose.html.twig | 0 .../templates}/manifest.json.twig | 0 {translations => api/translations}/.gitignore | 0 docker-compose.yml | 11 ++--- docker/nginx/czydojade | 44 ++++++++++-------- front/.gitignore | 5 ++ package.json => front/package.json | 0 front/public/.gitkeep | 0 .../resources}/components/departures.html | 0 .../components/departures/departure.html | 0 .../resources}/components/favourites.html | 0 .../components/favourites/save.html | 0 .../resources}/components/finder.html | 0 .../resources}/components/fold.html | 0 .../resources}/components/lazy.html | 0 .../resources}/components/line.html | 0 .../resources}/components/messages.html | 0 .../resources}/components/page/providers.html | 0 .../resources}/components/picker/stop.html | 0 .../components/settings/departures.html | 0 .../components/settings/messages.html | 0 .../resources}/components/stop.html | 0 .../resources}/components/stop/details.html | 0 .../resources}/components/stop/history.html | 0 .../resources}/components/stop/map.html | 0 .../resources}/components/tooltip.html | 0 .../resources}/components/trip.html | 0 .../resources}/components/ui/dialog.html | 0 .../resources}/components/ui/icon.html | 0 .../resources}/components/ui/numeric.html | 0 .../resources}/components/ui/switch.html | 0 .../resources}/icons/light/bus.svg | 0 .../resources}/icons/light/icons.ai | 0 .../resources}/icons/light/metro.svg | 0 .../resources}/icons/light/train.svg | 0 .../resources}/icons/light/tram.svg | 0 .../resources}/icons/light/trolleybus.svg | 0 .../resources}/icons/light/unknown.svg | 0 .../resources}/images/app-icon.ai | 0 .../resources}/images/background-2x.png | Bin .../resources}/images/background.png | Bin .../resources}/images/favicon-2x.png | Bin .../resources}/images/favicon-72.png | Bin .../resources}/images/favicon.ai | 0 .../resources}/images/favicon.ico | Bin .../resources}/images/favicon.png | Bin .../resources}/images/icon-128.png | Bin .../resources}/images/icon-192.png | Bin .../resources}/images/icon-256.png | Bin .../resources}/images/icon-512.png | Bin .../resources}/images/icon-64.png | Bin .../resources}/images/icon-96.png | Bin .../resources}/images/icon-maskable.png | Bin .../resources}/images/icon-monochrome.png | Bin .../resources}/images/ios-192.png | Bin .../resources}/images/ios-80.png | Bin {resources => front/resources}/images/ios.png | Bin .../resources}/images/kadet-net-logo.png | Bin .../resources}/images/logo-cojedzie.ai | 0 .../resources}/images/logo-concepts.ai | 0 .../resources}/images/logo-superhi.png | Bin .../resources}/images/logo-vector.svg | 0 {resources => front/resources}/images/logo.ai | 0 .../resources}/images/logo.png | Bin .../resources}/styles/_animations.scss | 0 .../resources}/styles/_common.scss | 0 .../resources}/styles/_controls.scss | 0 .../resources}/styles/_departure.scss | 0 .../resources}/styles/_dragscroll.scss | 0 .../resources}/styles/_favourites.scss | 0 .../resources}/styles/_form.scss | 0 .../resources}/styles/_line.scss | 0 .../resources}/styles/_map.scss | 0 .../resources}/styles/_stop.scss | 0 .../resources}/styles/_trigonometry.scss | 0 .../resources}/styles/_trip.scss | 0 .../resources}/styles/api.scss | 0 .../resources}/styles/main.scss | 0 .../styles/page/_provider-picker.scss | 0 .../resources}/styles/ui/_modal.scss | 0 .../resources}/styles/ui/_popup.scss | 0 .../resources}/styles/ui/_switch.scss | 0 .../resources}/svg-icon-loader.js | 0 {resources => front/resources}/ts/app.ts | 0 .../resources}/ts/components/app.ts | 0 .../resources}/ts/components/departures.ts | 0 .../resources}/ts/components/favourites.ts | 0 .../resources}/ts/components/history.ts | 0 .../resources}/ts/components/index.ts | 0 .../resources}/ts/components/line.ts | 0 .../resources}/ts/components/map.ts | 0 .../resources}/ts/components/messages.ts | 0 .../resources}/ts/components/page/index.ts | 0 .../ts/components/page/providers.ts | 0 .../resources}/ts/components/picker.ts | 0 .../ts/components/settings/departures.ts | 0 .../ts/components/settings/index.ts | 0 .../ts/components/settings/messages.ts | 0 .../resources}/ts/components/stop.ts | 0 .../resources}/ts/components/tooltip.ts | 0 .../resources}/ts/components/trip.ts | 0 .../resources}/ts/components/ui/dialog.ts | 0 .../resources}/ts/components/ui/icon.ts | 0 .../resources}/ts/components/ui/index.ts | 0 .../ts/components/ui/numeric-input.ts | 0 .../resources}/ts/components/ui/switch.ts | 0 .../resources}/ts/components/utils.ts | 0 .../resources}/ts/decorators.ts | 0 {resources => front/resources}/ts/filters.ts | 0 {resources => front/resources}/ts/icons.ts | 0 .../resources}/ts/model/common.ts | 0 .../resources}/ts/model/departure.ts | 0 .../resources}/ts/model/error.ts | 0 .../resources}/ts/model/identity.ts | 0 .../resources}/ts/model/index.ts | 0 .../resources}/ts/model/line.ts | 0 .../resources}/ts/model/message.ts | 0 .../resources}/ts/model/provider.ts | 0 .../resources}/ts/model/stop.ts | 0 .../resources}/ts/model/trip.ts | 0 .../resources}/ts/store/common.ts | 0 .../resources}/ts/store/departures.ts | 0 .../resources}/ts/store/favourites.ts | 0 .../resources}/ts/store/history.ts | 0 .../resources}/ts/store/index.ts | 0 .../resources}/ts/store/messages.ts | 0 .../resources}/ts/store/migrations.ts | 0 .../resources}/ts/store/root.ts | 0 .../ts/store/settings/departures.ts | 0 .../resources}/ts/store/settings/messages.ts | 0 .../resources}/ts/types/webpack.d.ts | 0 {resources => front/resources}/ts/urls.ts | 0 {resources => front/resources}/ts/utils.ts | 0 tsconfig.json => front/tsconfig.json | 0 webpack.config.js => front/webpack.config.js | 0 yarn.lock => front/yarn.lock | 0 306 files changed, 55 insertions(+), 47 deletions(-) rename .env.dist => api/.env.dist (100%) create mode 100644 api/.gitignore rename {docker/php => api}/Dockerfile (100%) rename {bin => api/bin}/console (100%) rename composer.json => api/composer.json (100%) rename composer.lock => api/composer.lock (100%) rename {config => api/config}/bundles.php (100%) rename {config => api/config}/packages/dev/jms_serializer.yaml (100%) rename {config => api/config}/packages/dev/monolog.yaml (100%) rename {config => api/config}/packages/dev/routing.yaml (100%) rename {config => api/config}/packages/dev/web_profiler.yaml (100%) rename {config => api/config}/packages/doctrine.yaml (100%) rename {config => api/config}/packages/doctrine_migrations.yaml (100%) rename {config => api/config}/packages/framework.yaml (100%) rename {config => api/config}/packages/jms_serializer.yaml (100%) rename {config => api/config}/packages/nelmio_api_doc.yaml (100%) rename {config => api/config}/packages/prod/doctrine.yaml (100%) rename {config => api/config}/packages/prod/jms_serializer.yaml (100%) rename {config => api/config}/packages/prod/monolog.yaml (100%) rename {config => api/config}/packages/routing.yaml (100%) rename {config => api/config}/packages/sensio_framework_extra.yaml (100%) rename {config => api/config}/packages/test/framework.yaml (100%) rename {config => api/config}/packages/test/monolog.yaml (100%) rename {config => api/config}/packages/test/web_profiler.yaml (100%) rename {config => api/config}/packages/translation.yaml (100%) rename {config => api/config}/packages/twig.yaml (100%) rename {config => api/config}/routes.yaml (100%) rename {config => api/config}/routes/annotations.yaml (100%) rename {config => api/config}/routes/dev/twig.yaml (100%) rename {config => api/config}/routes/dev/web_profiler.yaml (100%) rename {config => api/config}/routes/nelmio_api_doc.yaml (100%) rename {config => api/config}/services.yaml (100%) rename {public => api/public}/index.php (100%) rename ruleset.xml => api/ruleset.xml (100%) rename {src => api/src}/Asset/ModifiedTimeVersionStrategy.php (100%) rename {src => api/src}/Command/UpdateCommand.php (100%) rename {src => api/src}/Controller/.gitignore (100%) rename {src => api/src}/Controller/Api/v1/DeparturesController.php (100%) rename {src => api/src}/Controller/Api/v1/MessagesController.php (100%) rename {src => api/src}/Controller/Api/v1/ProviderController.php (100%) rename {src => api/src}/Controller/Api/v1/StopsController.php (100%) rename {src => api/src}/Controller/Api/v1/TracksController.php (100%) rename {src => api/src}/Controller/Api/v1/TripController.php (100%) rename {src => api/src}/Controller/Controller.php (100%) rename {src => api/src}/Controller/MainController.php (100%) rename {src => api/src}/Doctrine/CarbonDateTimeType.php (100%) rename {src => api/src}/Entity/Entity.php (100%) rename {src => api/src}/Entity/LineEntity.php (100%) rename {src => api/src}/Entity/OperatorEntity.php (100%) rename {src => api/src}/Entity/ProviderEntity.php (100%) rename {src => api/src}/Entity/ProviderReferenceTrait.php (100%) rename {src => api/src}/Entity/ReferableEntityTrait.php (100%) rename {src => api/src}/Entity/StopEntity.php (100%) rename {src => api/src}/Entity/TrackEntity.php (100%) rename {src => api/src}/Entity/TrackStopEntity.php (100%) rename {src => api/src}/Entity/TripEntity.php (100%) rename {src => api/src}/Entity/TripStopEntity.php (100%) rename {src => api/src}/Event/DataUpdateEvent.php (100%) rename {src => api/src}/Event/HandleDatabaseModifierEvent.php (100%) rename {src => api/src}/Event/HandleModifierEvent.php (100%) rename {src => api/src}/Event/PostProcessEvent.php (100%) rename {src => api/src}/Exception/InvalidArgumentException.php (100%) rename {src => api/src}/Exception/NonExistentServiceException.php (100%) rename {src => api/src}/Exception/NotSupportedException.php (100%) rename {src => api/src}/Exception/UnsupportedModifierException.php (100%) rename {src => api/src}/Functions/helpers.php (100%) rename {src => api/src}/Functions/index.php (100%) rename {src => api/src}/Handler/Database/FieldFilterDatabaseHandler.php (100%) rename {src => api/src}/Handler/Database/GenericWithDatabaseHandler.php (100%) rename {src => api/src}/Handler/Database/IdFilterDatabaseHandler.php (100%) rename {src => api/src}/Handler/Database/LimitDatabaseHandler.php (100%) rename {src => api/src}/Handler/Database/RelatedFilterDatabaseGenericHandler.php (100%) rename {src => api/src}/Handler/Database/TrackByStopDatabaseHandler.php (100%) rename {src => api/src}/Handler/Database/WithDestinationsDatabaseHandler.php (100%) rename {src => api/src}/Handler/ModifierHandler.php (100%) rename {src => api/src}/Handler/PostProcessingHandler.php (100%) rename {src => api/src}/Kernel.php (100%) rename {src => api/src}/Migrations/.gitignore (100%) rename {src => api/src}/Migrations/Version20180907212032.php (100%) rename {src => api/src}/Migrations/Version20181027124203.php (100%) rename {src => api/src}/Migrations/Version20190111212909.php (100%) rename {src => api/src}/Migrations/Version20200103160747.php (100%) rename {src => api/src}/Migrations/Version20200103170517.php (100%) rename {src => api/src}/Migrations/Version20200131151757.php (100%) rename {src => api/src}/Migrations/Version20200206183956.php (100%) rename {src => api/src}/Migrations/Version20200314112552.php (100%) rename {src => api/src}/Model/Departure.php (100%) rename {src => api/src}/Model/Destination.php (100%) rename {src => api/src}/Model/FillTrait.php (100%) rename {src => api/src}/Model/Fillable.php (100%) rename {src => api/src}/Model/JustReference.php (100%) rename {src => api/src}/Model/Line.php (100%) rename {src => api/src}/Model/Location.php (100%) rename {src => api/src}/Model/Message.php (100%) rename {src => api/src}/Model/Operator.php (100%) rename {src => api/src}/Model/Provider.php (100%) rename {src => api/src}/Model/Referable.php (100%) rename {src => api/src}/Model/ReferableTrait.php (100%) rename {src => api/src}/Model/ScheduledStop.php (100%) rename {src => api/src}/Model/Stop.php (100%) rename {src => api/src}/Model/StopGroup.php (100%) rename {src => api/src}/Model/Track.php (100%) rename {src => api/src}/Model/TrackStop.php (100%) rename {src => api/src}/Model/Trip.php (100%) rename {src => api/src}/Model/Vehicle.php (100%) rename {src => api/src}/Modifier/FieldFilter.php (100%) rename {src => api/src}/Modifier/IdFilter.php (100%) rename {src => api/src}/Modifier/Limit.php (100%) rename {src => api/src}/Modifier/Modifier.php (100%) rename {src => api/src}/Modifier/RelatedFilter.php (100%) rename {src => api/src}/Modifier/With.php (100%) rename {src => api/src}/Provider/Database/DatabaseRepository.php (100%) rename {src => api/src}/Provider/Database/GenericLineRepository.php (100%) rename {src => api/src}/Provider/Database/GenericOperatorRepository.php (100%) rename {src => api/src}/Provider/Database/GenericScheduleRepository.php (100%) rename {src => api/src}/Provider/Database/GenericStopRepository.php (100%) rename {src => api/src}/Provider/Database/GenericTrackRepository.php (100%) rename {src => api/src}/Provider/Database/GenericTripRepository.php (100%) rename {src => api/src}/Provider/DepartureRepository.php (100%) rename {src => api/src}/Provider/Dummy/DummyDepartureRepository.php (100%) rename {src => api/src}/Provider/Dummy/DummyMessageRepository.php (100%) rename {src => api/src}/Provider/Dummy/DummyProvider.php (100%) rename {src => api/src}/Provider/Dummy/DummyStopRepository.php (100%) rename {src => api/src}/Provider/FluentRepository.php (100%) rename {src => api/src}/Provider/LineRepository.php (100%) rename {src => api/src}/Provider/MessageRepository.php (100%) rename {src => api/src}/Provider/OperatorRepository.php (100%) rename {src => api/src}/Provider/Provider.php (100%) rename {src => api/src}/Provider/Repository.php (100%) rename {src => api/src}/Provider/ScheduleRepository.php (100%) rename {src => api/src}/Provider/StopRepository.php (100%) rename {src => api/src}/Provider/TrackRepository.php (100%) rename {src => api/src}/Provider/TripRepository.php (100%) rename {src => api/src}/Provider/ZtmGdansk/ZtmGdanskDataUpdateSubscriber.php (100%) rename {src => api/src}/Provider/ZtmGdansk/ZtmGdanskDepartureRepository.php (100%) rename {src => api/src}/Provider/ZtmGdansk/ZtmGdanskMessageRepository.php (100%) rename {src => api/src}/Provider/ZtmGdansk/ZtmGdanskMessageTypeClassifier.php (100%) rename {src => api/src}/Provider/ZtmGdansk/ZtmGdanskProvider.php (100%) rename {src => api/src}/Serialization/CarbonHandler.php (100%) rename {src => api/src}/Serialization/LaravelCollectionHandler.php (100%) rename {src => api/src}/Serialization/SerializeAs.php (100%) rename {src => api/src}/Service/AggregateConverter.php (100%) rename {src => api/src}/Service/CacheableConverter.php (100%) rename {src => api/src}/Service/Converter.php (100%) rename {src => api/src}/Service/DataUpdater.php (100%) rename {src => api/src}/Service/EntityConverter.php (100%) rename {src => api/src}/Service/EntityReferenceFactory.php (100%) rename {src => api/src}/Service/HandlerProvider.php (100%) rename {src => api/src}/Service/IdUtils.php (100%) rename {src => api/src}/Service/IterableUtils.php (100%) rename {src => api/src}/Service/ModifierUtils.php (100%) rename {src => api/src}/Service/Normalizer/JustReferenceNormalizer.php (100%) rename {src => api/src}/Service/Normalizer/StopNormalizer.php (100%) rename {src => api/src}/Service/ProviderConverter.php (100%) rename {src => api/src}/Service/ProviderParameterConverter.php (100%) rename {src => api/src}/Service/ProviderResolver.php (100%) rename {src => api/src}/Service/Proxy/ReferenceFactory.php (100%) rename {src => api/src}/Service/Proxy/ReferenceObjectGenerator.php (100%) rename {src => api/src}/Service/RecursiveConverter.php (100%) rename {src => api/src}/Service/RecursiveConverterTrait.php (100%) rename {src => api/src}/Service/RepositoryParameterConverter.php (100%) rename {src => api/src}/Service/ScheduledStopConverter.php (100%) rename {src => api/src}/Service/SerializerContextFactory.php (100%) rename {src => api/src}/Service/VersionExtension.php (100%) rename {src => api/src}/Subscriber/JustReferenceSerializationSubscriber.php (100%) rename symfony.lock => api/symfony.lock (100%) rename {templates => api/templates}/app.html.twig (100%) rename {templates => api/templates}/base.html.twig (88%) rename {templates => api/templates}/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig (100%) rename {templates => api/templates}/choose.html.twig (100%) rename {templates => api/templates}/manifest.json.twig (100%) rename {translations => api/translations}/.gitignore (100%) create mode 100644 front/.gitignore rename package.json => front/package.json (100%) create mode 100644 front/public/.gitkeep rename {resources => front/resources}/components/departures.html (100%) rename {resources => front/resources}/components/departures/departure.html (100%) rename {resources => front/resources}/components/favourites.html (100%) rename {resources => front/resources}/components/favourites/save.html (100%) rename {resources => front/resources}/components/finder.html (100%) rename {resources => front/resources}/components/fold.html (100%) rename {resources => front/resources}/components/lazy.html (100%) rename {resources => front/resources}/components/line.html (100%) rename {resources => front/resources}/components/messages.html (100%) rename {resources => front/resources}/components/page/providers.html (100%) rename {resources => front/resources}/components/picker/stop.html (100%) rename {resources => front/resources}/components/settings/departures.html (100%) rename {resources => front/resources}/components/settings/messages.html (100%) rename {resources => front/resources}/components/stop.html (100%) rename {resources => front/resources}/components/stop/details.html (100%) rename {resources => front/resources}/components/stop/history.html (100%) rename {resources => front/resources}/components/stop/map.html (100%) rename {resources => front/resources}/components/tooltip.html (100%) rename {resources => front/resources}/components/trip.html (100%) rename {resources => front/resources}/components/ui/dialog.html (100%) rename {resources => front/resources}/components/ui/icon.html (100%) rename {resources => front/resources}/components/ui/numeric.html (100%) rename {resources => front/resources}/components/ui/switch.html (100%) rename {resources => front/resources}/icons/light/bus.svg (100%) rename {resources => front/resources}/icons/light/icons.ai (100%) rename {resources => front/resources}/icons/light/metro.svg (100%) rename {resources => front/resources}/icons/light/train.svg (100%) rename {resources => front/resources}/icons/light/tram.svg (100%) rename {resources => front/resources}/icons/light/trolleybus.svg (100%) rename {resources => front/resources}/icons/light/unknown.svg (100%) rename {resources => front/resources}/images/app-icon.ai (100%) rename {resources => front/resources}/images/background-2x.png (100%) rename {resources => front/resources}/images/background.png (100%) rename {resources => front/resources}/images/favicon-2x.png (100%) rename {resources => front/resources}/images/favicon-72.png (100%) rename {resources => front/resources}/images/favicon.ai (100%) rename {resources => front/resources}/images/favicon.ico (100%) rename {resources => front/resources}/images/favicon.png (100%) rename {resources => front/resources}/images/icon-128.png (100%) rename {resources => front/resources}/images/icon-192.png (100%) rename {resources => front/resources}/images/icon-256.png (100%) rename {resources => front/resources}/images/icon-512.png (100%) rename {resources => front/resources}/images/icon-64.png (100%) rename {resources => front/resources}/images/icon-96.png (100%) rename {resources => front/resources}/images/icon-maskable.png (100%) rename {resources => front/resources}/images/icon-monochrome.png (100%) rename {resources => front/resources}/images/ios-192.png (100%) rename {resources => front/resources}/images/ios-80.png (100%) rename {resources => front/resources}/images/ios.png (100%) rename {resources => front/resources}/images/kadet-net-logo.png (100%) rename {resources => front/resources}/images/logo-cojedzie.ai (100%) rename {resources => front/resources}/images/logo-concepts.ai (100%) rename {resources => front/resources}/images/logo-superhi.png (100%) rename {resources => front/resources}/images/logo-vector.svg (100%) rename {resources => front/resources}/images/logo.ai (100%) rename {resources => front/resources}/images/logo.png (100%) rename {resources => front/resources}/styles/_animations.scss (100%) rename {resources => front/resources}/styles/_common.scss (100%) rename {resources => front/resources}/styles/_controls.scss (100%) rename {resources => front/resources}/styles/_departure.scss (100%) rename {resources => front/resources}/styles/_dragscroll.scss (100%) rename {resources => front/resources}/styles/_favourites.scss (100%) rename {resources => front/resources}/styles/_form.scss (100%) rename {resources => front/resources}/styles/_line.scss (100%) rename {resources => front/resources}/styles/_map.scss (100%) rename {resources => front/resources}/styles/_stop.scss (100%) rename {resources => front/resources}/styles/_trigonometry.scss (100%) rename {resources => front/resources}/styles/_trip.scss (100%) rename {resources => front/resources}/styles/api.scss (100%) rename {resources => front/resources}/styles/main.scss (100%) rename {resources => front/resources}/styles/page/_provider-picker.scss (100%) rename {resources => front/resources}/styles/ui/_modal.scss (100%) rename {resources => front/resources}/styles/ui/_popup.scss (100%) rename {resources => front/resources}/styles/ui/_switch.scss (100%) rename {resources => front/resources}/svg-icon-loader.js (100%) rename {resources => front/resources}/ts/app.ts (100%) rename {resources => front/resources}/ts/components/app.ts (100%) rename {resources => front/resources}/ts/components/departures.ts (100%) rename {resources => front/resources}/ts/components/favourites.ts (100%) rename {resources => front/resources}/ts/components/history.ts (100%) rename {resources => front/resources}/ts/components/index.ts (100%) rename {resources => front/resources}/ts/components/line.ts (100%) rename {resources => front/resources}/ts/components/map.ts (100%) rename {resources => front/resources}/ts/components/messages.ts (100%) rename {resources => front/resources}/ts/components/page/index.ts (100%) rename {resources => front/resources}/ts/components/page/providers.ts (100%) rename {resources => front/resources}/ts/components/picker.ts (100%) rename {resources => front/resources}/ts/components/settings/departures.ts (100%) rename {resources => front/resources}/ts/components/settings/index.ts (100%) rename {resources => front/resources}/ts/components/settings/messages.ts (100%) rename {resources => front/resources}/ts/components/stop.ts (100%) rename {resources => front/resources}/ts/components/tooltip.ts (100%) rename {resources => front/resources}/ts/components/trip.ts (100%) rename {resources => front/resources}/ts/components/ui/dialog.ts (100%) rename {resources => front/resources}/ts/components/ui/icon.ts (100%) rename {resources => front/resources}/ts/components/ui/index.ts (100%) rename {resources => front/resources}/ts/components/ui/numeric-input.ts (100%) rename {resources => front/resources}/ts/components/ui/switch.ts (100%) rename {resources => front/resources}/ts/components/utils.ts (100%) rename {resources => front/resources}/ts/decorators.ts (100%) rename {resources => front/resources}/ts/filters.ts (100%) rename {resources => front/resources}/ts/icons.ts (100%) rename {resources => front/resources}/ts/model/common.ts (100%) rename {resources => front/resources}/ts/model/departure.ts (100%) rename {resources => front/resources}/ts/model/error.ts (100%) rename {resources => front/resources}/ts/model/identity.ts (100%) rename {resources => front/resources}/ts/model/index.ts (100%) rename {resources => front/resources}/ts/model/line.ts (100%) rename {resources => front/resources}/ts/model/message.ts (100%) rename {resources => front/resources}/ts/model/provider.ts (100%) rename {resources => front/resources}/ts/model/stop.ts (100%) rename {resources => front/resources}/ts/model/trip.ts (100%) rename {resources => front/resources}/ts/store/common.ts (100%) rename {resources => front/resources}/ts/store/departures.ts (100%) rename {resources => front/resources}/ts/store/favourites.ts (100%) rename {resources => front/resources}/ts/store/history.ts (100%) rename {resources => front/resources}/ts/store/index.ts (100%) rename {resources => front/resources}/ts/store/messages.ts (100%) rename {resources => front/resources}/ts/store/migrations.ts (100%) rename {resources => front/resources}/ts/store/root.ts (100%) rename {resources => front/resources}/ts/store/settings/departures.ts (100%) rename {resources => front/resources}/ts/store/settings/messages.ts (100%) rename {resources => front/resources}/ts/types/webpack.d.ts (100%) rename {resources => front/resources}/ts/urls.ts (100%) rename {resources => front/resources}/ts/utils.ts (100%) rename tsconfig.json => front/tsconfig.json (100%) rename webpack.config.js => front/webpack.config.js (100%) rename yarn.lock => front/yarn.lock (100%) diff --git a/.gitignore b/.gitignore index 429897d..85e7c1d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,19 +1 @@ - -###> symfony/framework-bundle ### -/.env -/public/bundles/ -/var/ -/vendor/ -###< symfony/framework-bundle ### - -###> symfony/web-server-bundle ### -/.web-server-pid -###< symfony/web-server-bundle ### - -/node_modules/ /.idea/ -/public/* -!/public/index.php -!/public/manifest.jso - -/yarn-error.log diff --git a/.env.dist b/api/.env.dist similarity index 100% rename from .env.dist rename to api/.env.dist diff --git a/api/.gitignore b/api/.gitignore new file mode 100644 index 0000000..5e19b63 --- /dev/null +++ b/api/.gitignore @@ -0,0 +1,16 @@ + +###> symfony/framework-bundle ### +/.env +/public/bundles/ +/var/ +/vendor/ +###< symfony/framework-bundle ### + +###> symfony/web-server-bundle ### +/.web-server-pid +###< symfony/web-server-bundle ### + +/node_modules/ +/public/* +!/public/index.php + diff --git a/docker/php/Dockerfile b/api/Dockerfile similarity index 100% rename from docker/php/Dockerfile rename to api/Dockerfile diff --git a/bin/console b/api/bin/console similarity index 100% rename from bin/console rename to api/bin/console diff --git a/composer.json b/api/composer.json similarity index 100% rename from composer.json rename to api/composer.json diff --git a/composer.lock b/api/composer.lock similarity index 100% rename from composer.lock rename to api/composer.lock diff --git a/config/bundles.php b/api/config/bundles.php similarity index 100% rename from config/bundles.php rename to api/config/bundles.php diff --git a/config/packages/dev/jms_serializer.yaml b/api/config/packages/dev/jms_serializer.yaml similarity index 100% rename from config/packages/dev/jms_serializer.yaml rename to api/config/packages/dev/jms_serializer.yaml diff --git a/config/packages/dev/monolog.yaml b/api/config/packages/dev/monolog.yaml similarity index 100% rename from config/packages/dev/monolog.yaml rename to api/config/packages/dev/monolog.yaml diff --git a/config/packages/dev/routing.yaml b/api/config/packages/dev/routing.yaml similarity index 100% rename from config/packages/dev/routing.yaml rename to api/config/packages/dev/routing.yaml diff --git a/config/packages/dev/web_profiler.yaml b/api/config/packages/dev/web_profiler.yaml similarity index 100% rename from config/packages/dev/web_profiler.yaml rename to api/config/packages/dev/web_profiler.yaml diff --git a/config/packages/doctrine.yaml b/api/config/packages/doctrine.yaml similarity index 100% rename from config/packages/doctrine.yaml rename to api/config/packages/doctrine.yaml diff --git a/config/packages/doctrine_migrations.yaml b/api/config/packages/doctrine_migrations.yaml similarity index 100% rename from config/packages/doctrine_migrations.yaml rename to api/config/packages/doctrine_migrations.yaml diff --git a/config/packages/framework.yaml b/api/config/packages/framework.yaml similarity index 100% rename from config/packages/framework.yaml rename to api/config/packages/framework.yaml diff --git a/config/packages/jms_serializer.yaml b/api/config/packages/jms_serializer.yaml similarity index 100% rename from config/packages/jms_serializer.yaml rename to api/config/packages/jms_serializer.yaml diff --git a/config/packages/nelmio_api_doc.yaml b/api/config/packages/nelmio_api_doc.yaml similarity index 100% rename from config/packages/nelmio_api_doc.yaml rename to api/config/packages/nelmio_api_doc.yaml diff --git a/config/packages/prod/doctrine.yaml b/api/config/packages/prod/doctrine.yaml similarity index 100% rename from config/packages/prod/doctrine.yaml rename to api/config/packages/prod/doctrine.yaml diff --git a/config/packages/prod/jms_serializer.yaml b/api/config/packages/prod/jms_serializer.yaml similarity index 100% rename from config/packages/prod/jms_serializer.yaml rename to api/config/packages/prod/jms_serializer.yaml diff --git a/config/packages/prod/monolog.yaml b/api/config/packages/prod/monolog.yaml similarity index 100% rename from config/packages/prod/monolog.yaml rename to api/config/packages/prod/monolog.yaml diff --git a/config/packages/routing.yaml b/api/config/packages/routing.yaml similarity index 100% rename from config/packages/routing.yaml rename to api/config/packages/routing.yaml diff --git a/config/packages/sensio_framework_extra.yaml b/api/config/packages/sensio_framework_extra.yaml similarity index 100% rename from config/packages/sensio_framework_extra.yaml rename to api/config/packages/sensio_framework_extra.yaml diff --git a/config/packages/test/framework.yaml b/api/config/packages/test/framework.yaml similarity index 100% rename from config/packages/test/framework.yaml rename to api/config/packages/test/framework.yaml diff --git a/config/packages/test/monolog.yaml b/api/config/packages/test/monolog.yaml similarity index 100% rename from config/packages/test/monolog.yaml rename to api/config/packages/test/monolog.yaml diff --git a/config/packages/test/web_profiler.yaml b/api/config/packages/test/web_profiler.yaml similarity index 100% rename from config/packages/test/web_profiler.yaml rename to api/config/packages/test/web_profiler.yaml diff --git a/config/packages/translation.yaml b/api/config/packages/translation.yaml similarity index 100% rename from config/packages/translation.yaml rename to api/config/packages/translation.yaml diff --git a/config/packages/twig.yaml b/api/config/packages/twig.yaml similarity index 100% rename from config/packages/twig.yaml rename to api/config/packages/twig.yaml diff --git a/config/routes.yaml b/api/config/routes.yaml similarity index 100% rename from config/routes.yaml rename to api/config/routes.yaml diff --git a/config/routes/annotations.yaml b/api/config/routes/annotations.yaml similarity index 100% rename from config/routes/annotations.yaml rename to api/config/routes/annotations.yaml diff --git a/config/routes/dev/twig.yaml b/api/config/routes/dev/twig.yaml similarity index 100% rename from config/routes/dev/twig.yaml rename to api/config/routes/dev/twig.yaml diff --git a/config/routes/dev/web_profiler.yaml b/api/config/routes/dev/web_profiler.yaml similarity index 100% rename from config/routes/dev/web_profiler.yaml rename to api/config/routes/dev/web_profiler.yaml diff --git a/config/routes/nelmio_api_doc.yaml b/api/config/routes/nelmio_api_doc.yaml similarity index 100% rename from config/routes/nelmio_api_doc.yaml rename to api/config/routes/nelmio_api_doc.yaml diff --git a/config/services.yaml b/api/config/services.yaml similarity index 100% rename from config/services.yaml rename to api/config/services.yaml diff --git a/public/index.php b/api/public/index.php similarity index 100% rename from public/index.php rename to api/public/index.php diff --git a/ruleset.xml b/api/ruleset.xml similarity index 100% rename from ruleset.xml rename to api/ruleset.xml diff --git a/src/Asset/ModifiedTimeVersionStrategy.php b/api/src/Asset/ModifiedTimeVersionStrategy.php similarity index 100% rename from src/Asset/ModifiedTimeVersionStrategy.php rename to api/src/Asset/ModifiedTimeVersionStrategy.php diff --git a/src/Command/UpdateCommand.php b/api/src/Command/UpdateCommand.php similarity index 100% rename from src/Command/UpdateCommand.php rename to api/src/Command/UpdateCommand.php diff --git a/src/Controller/.gitignore b/api/src/Controller/.gitignore similarity index 100% rename from src/Controller/.gitignore rename to api/src/Controller/.gitignore diff --git a/src/Controller/Api/v1/DeparturesController.php b/api/src/Controller/Api/v1/DeparturesController.php similarity index 100% rename from src/Controller/Api/v1/DeparturesController.php rename to api/src/Controller/Api/v1/DeparturesController.php diff --git a/src/Controller/Api/v1/MessagesController.php b/api/src/Controller/Api/v1/MessagesController.php similarity index 100% rename from src/Controller/Api/v1/MessagesController.php rename to api/src/Controller/Api/v1/MessagesController.php diff --git a/src/Controller/Api/v1/ProviderController.php b/api/src/Controller/Api/v1/ProviderController.php similarity index 100% rename from src/Controller/Api/v1/ProviderController.php rename to api/src/Controller/Api/v1/ProviderController.php diff --git a/src/Controller/Api/v1/StopsController.php b/api/src/Controller/Api/v1/StopsController.php similarity index 100% rename from src/Controller/Api/v1/StopsController.php rename to api/src/Controller/Api/v1/StopsController.php diff --git a/src/Controller/Api/v1/TracksController.php b/api/src/Controller/Api/v1/TracksController.php similarity index 100% rename from src/Controller/Api/v1/TracksController.php rename to api/src/Controller/Api/v1/TracksController.php diff --git a/src/Controller/Api/v1/TripController.php b/api/src/Controller/Api/v1/TripController.php similarity index 100% rename from src/Controller/Api/v1/TripController.php rename to api/src/Controller/Api/v1/TripController.php diff --git a/src/Controller/Controller.php b/api/src/Controller/Controller.php similarity index 100% rename from src/Controller/Controller.php rename to api/src/Controller/Controller.php diff --git a/src/Controller/MainController.php b/api/src/Controller/MainController.php similarity index 100% rename from src/Controller/MainController.php rename to api/src/Controller/MainController.php diff --git a/src/Doctrine/CarbonDateTimeType.php b/api/src/Doctrine/CarbonDateTimeType.php similarity index 100% rename from src/Doctrine/CarbonDateTimeType.php rename to api/src/Doctrine/CarbonDateTimeType.php diff --git a/src/Entity/Entity.php b/api/src/Entity/Entity.php similarity index 100% rename from src/Entity/Entity.php rename to api/src/Entity/Entity.php diff --git a/src/Entity/LineEntity.php b/api/src/Entity/LineEntity.php similarity index 100% rename from src/Entity/LineEntity.php rename to api/src/Entity/LineEntity.php diff --git a/src/Entity/OperatorEntity.php b/api/src/Entity/OperatorEntity.php similarity index 100% rename from src/Entity/OperatorEntity.php rename to api/src/Entity/OperatorEntity.php diff --git a/src/Entity/ProviderEntity.php b/api/src/Entity/ProviderEntity.php similarity index 100% rename from src/Entity/ProviderEntity.php rename to api/src/Entity/ProviderEntity.php diff --git a/src/Entity/ProviderReferenceTrait.php b/api/src/Entity/ProviderReferenceTrait.php similarity index 100% rename from src/Entity/ProviderReferenceTrait.php rename to api/src/Entity/ProviderReferenceTrait.php diff --git a/src/Entity/ReferableEntityTrait.php b/api/src/Entity/ReferableEntityTrait.php similarity index 100% rename from src/Entity/ReferableEntityTrait.php rename to api/src/Entity/ReferableEntityTrait.php diff --git a/src/Entity/StopEntity.php b/api/src/Entity/StopEntity.php similarity index 100% rename from src/Entity/StopEntity.php rename to api/src/Entity/StopEntity.php diff --git a/src/Entity/TrackEntity.php b/api/src/Entity/TrackEntity.php similarity index 100% rename from src/Entity/TrackEntity.php rename to api/src/Entity/TrackEntity.php diff --git a/src/Entity/TrackStopEntity.php b/api/src/Entity/TrackStopEntity.php similarity index 100% rename from src/Entity/TrackStopEntity.php rename to api/src/Entity/TrackStopEntity.php diff --git a/src/Entity/TripEntity.php b/api/src/Entity/TripEntity.php similarity index 100% rename from src/Entity/TripEntity.php rename to api/src/Entity/TripEntity.php diff --git a/src/Entity/TripStopEntity.php b/api/src/Entity/TripStopEntity.php similarity index 100% rename from src/Entity/TripStopEntity.php rename to api/src/Entity/TripStopEntity.php diff --git a/src/Event/DataUpdateEvent.php b/api/src/Event/DataUpdateEvent.php similarity index 100% rename from src/Event/DataUpdateEvent.php rename to api/src/Event/DataUpdateEvent.php diff --git a/src/Event/HandleDatabaseModifierEvent.php b/api/src/Event/HandleDatabaseModifierEvent.php similarity index 100% rename from src/Event/HandleDatabaseModifierEvent.php rename to api/src/Event/HandleDatabaseModifierEvent.php diff --git a/src/Event/HandleModifierEvent.php b/api/src/Event/HandleModifierEvent.php similarity index 100% rename from src/Event/HandleModifierEvent.php rename to api/src/Event/HandleModifierEvent.php diff --git a/src/Event/PostProcessEvent.php b/api/src/Event/PostProcessEvent.php similarity index 100% rename from src/Event/PostProcessEvent.php rename to api/src/Event/PostProcessEvent.php diff --git a/src/Exception/InvalidArgumentException.php b/api/src/Exception/InvalidArgumentException.php similarity index 100% rename from src/Exception/InvalidArgumentException.php rename to api/src/Exception/InvalidArgumentException.php diff --git a/src/Exception/NonExistentServiceException.php b/api/src/Exception/NonExistentServiceException.php similarity index 100% rename from src/Exception/NonExistentServiceException.php rename to api/src/Exception/NonExistentServiceException.php diff --git a/src/Exception/NotSupportedException.php b/api/src/Exception/NotSupportedException.php similarity index 100% rename from src/Exception/NotSupportedException.php rename to api/src/Exception/NotSupportedException.php diff --git a/src/Exception/UnsupportedModifierException.php b/api/src/Exception/UnsupportedModifierException.php similarity index 100% rename from src/Exception/UnsupportedModifierException.php rename to api/src/Exception/UnsupportedModifierException.php diff --git a/src/Functions/helpers.php b/api/src/Functions/helpers.php similarity index 100% rename from src/Functions/helpers.php rename to api/src/Functions/helpers.php diff --git a/src/Functions/index.php b/api/src/Functions/index.php similarity index 100% rename from src/Functions/index.php rename to api/src/Functions/index.php diff --git a/src/Handler/Database/FieldFilterDatabaseHandler.php b/api/src/Handler/Database/FieldFilterDatabaseHandler.php similarity index 100% rename from src/Handler/Database/FieldFilterDatabaseHandler.php rename to api/src/Handler/Database/FieldFilterDatabaseHandler.php diff --git a/src/Handler/Database/GenericWithDatabaseHandler.php b/api/src/Handler/Database/GenericWithDatabaseHandler.php similarity index 100% rename from src/Handler/Database/GenericWithDatabaseHandler.php rename to api/src/Handler/Database/GenericWithDatabaseHandler.php diff --git a/src/Handler/Database/IdFilterDatabaseHandler.php b/api/src/Handler/Database/IdFilterDatabaseHandler.php similarity index 100% rename from src/Handler/Database/IdFilterDatabaseHandler.php rename to api/src/Handler/Database/IdFilterDatabaseHandler.php diff --git a/src/Handler/Database/LimitDatabaseHandler.php b/api/src/Handler/Database/LimitDatabaseHandler.php similarity index 100% rename from src/Handler/Database/LimitDatabaseHandler.php rename to api/src/Handler/Database/LimitDatabaseHandler.php diff --git a/src/Handler/Database/RelatedFilterDatabaseGenericHandler.php b/api/src/Handler/Database/RelatedFilterDatabaseGenericHandler.php similarity index 100% rename from src/Handler/Database/RelatedFilterDatabaseGenericHandler.php rename to api/src/Handler/Database/RelatedFilterDatabaseGenericHandler.php diff --git a/src/Handler/Database/TrackByStopDatabaseHandler.php b/api/src/Handler/Database/TrackByStopDatabaseHandler.php similarity index 100% rename from src/Handler/Database/TrackByStopDatabaseHandler.php rename to api/src/Handler/Database/TrackByStopDatabaseHandler.php diff --git a/src/Handler/Database/WithDestinationsDatabaseHandler.php b/api/src/Handler/Database/WithDestinationsDatabaseHandler.php similarity index 100% rename from src/Handler/Database/WithDestinationsDatabaseHandler.php rename to api/src/Handler/Database/WithDestinationsDatabaseHandler.php diff --git a/src/Handler/ModifierHandler.php b/api/src/Handler/ModifierHandler.php similarity index 100% rename from src/Handler/ModifierHandler.php rename to api/src/Handler/ModifierHandler.php diff --git a/src/Handler/PostProcessingHandler.php b/api/src/Handler/PostProcessingHandler.php similarity index 100% rename from src/Handler/PostProcessingHandler.php rename to api/src/Handler/PostProcessingHandler.php diff --git a/src/Kernel.php b/api/src/Kernel.php similarity index 100% rename from src/Kernel.php rename to api/src/Kernel.php diff --git a/src/Migrations/.gitignore b/api/src/Migrations/.gitignore similarity index 100% rename from src/Migrations/.gitignore rename to api/src/Migrations/.gitignore diff --git a/src/Migrations/Version20180907212032.php b/api/src/Migrations/Version20180907212032.php similarity index 100% rename from src/Migrations/Version20180907212032.php rename to api/src/Migrations/Version20180907212032.php diff --git a/src/Migrations/Version20181027124203.php b/api/src/Migrations/Version20181027124203.php similarity index 100% rename from src/Migrations/Version20181027124203.php rename to api/src/Migrations/Version20181027124203.php diff --git a/src/Migrations/Version20190111212909.php b/api/src/Migrations/Version20190111212909.php similarity index 100% rename from src/Migrations/Version20190111212909.php rename to api/src/Migrations/Version20190111212909.php diff --git a/src/Migrations/Version20200103160747.php b/api/src/Migrations/Version20200103160747.php similarity index 100% rename from src/Migrations/Version20200103160747.php rename to api/src/Migrations/Version20200103160747.php diff --git a/src/Migrations/Version20200103170517.php b/api/src/Migrations/Version20200103170517.php similarity index 100% rename from src/Migrations/Version20200103170517.php rename to api/src/Migrations/Version20200103170517.php diff --git a/src/Migrations/Version20200131151757.php b/api/src/Migrations/Version20200131151757.php similarity index 100% rename from src/Migrations/Version20200131151757.php rename to api/src/Migrations/Version20200131151757.php diff --git a/src/Migrations/Version20200206183956.php b/api/src/Migrations/Version20200206183956.php similarity index 100% rename from src/Migrations/Version20200206183956.php rename to api/src/Migrations/Version20200206183956.php diff --git a/src/Migrations/Version20200314112552.php b/api/src/Migrations/Version20200314112552.php similarity index 100% rename from src/Migrations/Version20200314112552.php rename to api/src/Migrations/Version20200314112552.php diff --git a/src/Model/Departure.php b/api/src/Model/Departure.php similarity index 100% rename from src/Model/Departure.php rename to api/src/Model/Departure.php diff --git a/src/Model/Destination.php b/api/src/Model/Destination.php similarity index 100% rename from src/Model/Destination.php rename to api/src/Model/Destination.php diff --git a/src/Model/FillTrait.php b/api/src/Model/FillTrait.php similarity index 100% rename from src/Model/FillTrait.php rename to api/src/Model/FillTrait.php diff --git a/src/Model/Fillable.php b/api/src/Model/Fillable.php similarity index 100% rename from src/Model/Fillable.php rename to api/src/Model/Fillable.php diff --git a/src/Model/JustReference.php b/api/src/Model/JustReference.php similarity index 100% rename from src/Model/JustReference.php rename to api/src/Model/JustReference.php diff --git a/src/Model/Line.php b/api/src/Model/Line.php similarity index 100% rename from src/Model/Line.php rename to api/src/Model/Line.php diff --git a/src/Model/Location.php b/api/src/Model/Location.php similarity index 100% rename from src/Model/Location.php rename to api/src/Model/Location.php diff --git a/src/Model/Message.php b/api/src/Model/Message.php similarity index 100% rename from src/Model/Message.php rename to api/src/Model/Message.php diff --git a/src/Model/Operator.php b/api/src/Model/Operator.php similarity index 100% rename from src/Model/Operator.php rename to api/src/Model/Operator.php diff --git a/src/Model/Provider.php b/api/src/Model/Provider.php similarity index 100% rename from src/Model/Provider.php rename to api/src/Model/Provider.php diff --git a/src/Model/Referable.php b/api/src/Model/Referable.php similarity index 100% rename from src/Model/Referable.php rename to api/src/Model/Referable.php diff --git a/src/Model/ReferableTrait.php b/api/src/Model/ReferableTrait.php similarity index 100% rename from src/Model/ReferableTrait.php rename to api/src/Model/ReferableTrait.php diff --git a/src/Model/ScheduledStop.php b/api/src/Model/ScheduledStop.php similarity index 100% rename from src/Model/ScheduledStop.php rename to api/src/Model/ScheduledStop.php diff --git a/src/Model/Stop.php b/api/src/Model/Stop.php similarity index 100% rename from src/Model/Stop.php rename to api/src/Model/Stop.php diff --git a/src/Model/StopGroup.php b/api/src/Model/StopGroup.php similarity index 100% rename from src/Model/StopGroup.php rename to api/src/Model/StopGroup.php diff --git a/src/Model/Track.php b/api/src/Model/Track.php similarity index 100% rename from src/Model/Track.php rename to api/src/Model/Track.php diff --git a/src/Model/TrackStop.php b/api/src/Model/TrackStop.php similarity index 100% rename from src/Model/TrackStop.php rename to api/src/Model/TrackStop.php diff --git a/src/Model/Trip.php b/api/src/Model/Trip.php similarity index 100% rename from src/Model/Trip.php rename to api/src/Model/Trip.php diff --git a/src/Model/Vehicle.php b/api/src/Model/Vehicle.php similarity index 100% rename from src/Model/Vehicle.php rename to api/src/Model/Vehicle.php diff --git a/src/Modifier/FieldFilter.php b/api/src/Modifier/FieldFilter.php similarity index 100% rename from src/Modifier/FieldFilter.php rename to api/src/Modifier/FieldFilter.php diff --git a/src/Modifier/IdFilter.php b/api/src/Modifier/IdFilter.php similarity index 100% rename from src/Modifier/IdFilter.php rename to api/src/Modifier/IdFilter.php diff --git a/src/Modifier/Limit.php b/api/src/Modifier/Limit.php similarity index 100% rename from src/Modifier/Limit.php rename to api/src/Modifier/Limit.php diff --git a/src/Modifier/Modifier.php b/api/src/Modifier/Modifier.php similarity index 100% rename from src/Modifier/Modifier.php rename to api/src/Modifier/Modifier.php diff --git a/src/Modifier/RelatedFilter.php b/api/src/Modifier/RelatedFilter.php similarity index 100% rename from src/Modifier/RelatedFilter.php rename to api/src/Modifier/RelatedFilter.php diff --git a/src/Modifier/With.php b/api/src/Modifier/With.php similarity index 100% rename from src/Modifier/With.php rename to api/src/Modifier/With.php diff --git a/src/Provider/Database/DatabaseRepository.php b/api/src/Provider/Database/DatabaseRepository.php similarity index 100% rename from src/Provider/Database/DatabaseRepository.php rename to api/src/Provider/Database/DatabaseRepository.php diff --git a/src/Provider/Database/GenericLineRepository.php b/api/src/Provider/Database/GenericLineRepository.php similarity index 100% rename from src/Provider/Database/GenericLineRepository.php rename to api/src/Provider/Database/GenericLineRepository.php diff --git a/src/Provider/Database/GenericOperatorRepository.php b/api/src/Provider/Database/GenericOperatorRepository.php similarity index 100% rename from src/Provider/Database/GenericOperatorRepository.php rename to api/src/Provider/Database/GenericOperatorRepository.php diff --git a/src/Provider/Database/GenericScheduleRepository.php b/api/src/Provider/Database/GenericScheduleRepository.php similarity index 100% rename from src/Provider/Database/GenericScheduleRepository.php rename to api/src/Provider/Database/GenericScheduleRepository.php diff --git a/src/Provider/Database/GenericStopRepository.php b/api/src/Provider/Database/GenericStopRepository.php similarity index 100% rename from src/Provider/Database/GenericStopRepository.php rename to api/src/Provider/Database/GenericStopRepository.php diff --git a/src/Provider/Database/GenericTrackRepository.php b/api/src/Provider/Database/GenericTrackRepository.php similarity index 100% rename from src/Provider/Database/GenericTrackRepository.php rename to api/src/Provider/Database/GenericTrackRepository.php diff --git a/src/Provider/Database/GenericTripRepository.php b/api/src/Provider/Database/GenericTripRepository.php similarity index 100% rename from src/Provider/Database/GenericTripRepository.php rename to api/src/Provider/Database/GenericTripRepository.php diff --git a/src/Provider/DepartureRepository.php b/api/src/Provider/DepartureRepository.php similarity index 100% rename from src/Provider/DepartureRepository.php rename to api/src/Provider/DepartureRepository.php diff --git a/src/Provider/Dummy/DummyDepartureRepository.php b/api/src/Provider/Dummy/DummyDepartureRepository.php similarity index 100% rename from src/Provider/Dummy/DummyDepartureRepository.php rename to api/src/Provider/Dummy/DummyDepartureRepository.php diff --git a/src/Provider/Dummy/DummyMessageRepository.php b/api/src/Provider/Dummy/DummyMessageRepository.php similarity index 100% rename from src/Provider/Dummy/DummyMessageRepository.php rename to api/src/Provider/Dummy/DummyMessageRepository.php diff --git a/src/Provider/Dummy/DummyProvider.php b/api/src/Provider/Dummy/DummyProvider.php similarity index 100% rename from src/Provider/Dummy/DummyProvider.php rename to api/src/Provider/Dummy/DummyProvider.php diff --git a/src/Provider/Dummy/DummyStopRepository.php b/api/src/Provider/Dummy/DummyStopRepository.php similarity index 100% rename from src/Provider/Dummy/DummyStopRepository.php rename to api/src/Provider/Dummy/DummyStopRepository.php diff --git a/src/Provider/FluentRepository.php b/api/src/Provider/FluentRepository.php similarity index 100% rename from src/Provider/FluentRepository.php rename to api/src/Provider/FluentRepository.php diff --git a/src/Provider/LineRepository.php b/api/src/Provider/LineRepository.php similarity index 100% rename from src/Provider/LineRepository.php rename to api/src/Provider/LineRepository.php diff --git a/src/Provider/MessageRepository.php b/api/src/Provider/MessageRepository.php similarity index 100% rename from src/Provider/MessageRepository.php rename to api/src/Provider/MessageRepository.php diff --git a/src/Provider/OperatorRepository.php b/api/src/Provider/OperatorRepository.php similarity index 100% rename from src/Provider/OperatorRepository.php rename to api/src/Provider/OperatorRepository.php diff --git a/src/Provider/Provider.php b/api/src/Provider/Provider.php similarity index 100% rename from src/Provider/Provider.php rename to api/src/Provider/Provider.php diff --git a/src/Provider/Repository.php b/api/src/Provider/Repository.php similarity index 100% rename from src/Provider/Repository.php rename to api/src/Provider/Repository.php diff --git a/src/Provider/ScheduleRepository.php b/api/src/Provider/ScheduleRepository.php similarity index 100% rename from src/Provider/ScheduleRepository.php rename to api/src/Provider/ScheduleRepository.php diff --git a/src/Provider/StopRepository.php b/api/src/Provider/StopRepository.php similarity index 100% rename from src/Provider/StopRepository.php rename to api/src/Provider/StopRepository.php diff --git a/src/Provider/TrackRepository.php b/api/src/Provider/TrackRepository.php similarity index 100% rename from src/Provider/TrackRepository.php rename to api/src/Provider/TrackRepository.php diff --git a/src/Provider/TripRepository.php b/api/src/Provider/TripRepository.php similarity index 100% rename from src/Provider/TripRepository.php rename to api/src/Provider/TripRepository.php diff --git a/src/Provider/ZtmGdansk/ZtmGdanskDataUpdateSubscriber.php b/api/src/Provider/ZtmGdansk/ZtmGdanskDataUpdateSubscriber.php similarity index 100% rename from src/Provider/ZtmGdansk/ZtmGdanskDataUpdateSubscriber.php rename to api/src/Provider/ZtmGdansk/ZtmGdanskDataUpdateSubscriber.php diff --git a/src/Provider/ZtmGdansk/ZtmGdanskDepartureRepository.php b/api/src/Provider/ZtmGdansk/ZtmGdanskDepartureRepository.php similarity index 100% rename from src/Provider/ZtmGdansk/ZtmGdanskDepartureRepository.php rename to api/src/Provider/ZtmGdansk/ZtmGdanskDepartureRepository.php diff --git a/src/Provider/ZtmGdansk/ZtmGdanskMessageRepository.php b/api/src/Provider/ZtmGdansk/ZtmGdanskMessageRepository.php similarity index 100% rename from src/Provider/ZtmGdansk/ZtmGdanskMessageRepository.php rename to api/src/Provider/ZtmGdansk/ZtmGdanskMessageRepository.php diff --git a/src/Provider/ZtmGdansk/ZtmGdanskMessageTypeClassifier.php b/api/src/Provider/ZtmGdansk/ZtmGdanskMessageTypeClassifier.php similarity index 100% rename from src/Provider/ZtmGdansk/ZtmGdanskMessageTypeClassifier.php rename to api/src/Provider/ZtmGdansk/ZtmGdanskMessageTypeClassifier.php diff --git a/src/Provider/ZtmGdansk/ZtmGdanskProvider.php b/api/src/Provider/ZtmGdansk/ZtmGdanskProvider.php similarity index 100% rename from src/Provider/ZtmGdansk/ZtmGdanskProvider.php rename to api/src/Provider/ZtmGdansk/ZtmGdanskProvider.php diff --git a/src/Serialization/CarbonHandler.php b/api/src/Serialization/CarbonHandler.php similarity index 100% rename from src/Serialization/CarbonHandler.php rename to api/src/Serialization/CarbonHandler.php diff --git a/src/Serialization/LaravelCollectionHandler.php b/api/src/Serialization/LaravelCollectionHandler.php similarity index 100% rename from src/Serialization/LaravelCollectionHandler.php rename to api/src/Serialization/LaravelCollectionHandler.php diff --git a/src/Serialization/SerializeAs.php b/api/src/Serialization/SerializeAs.php similarity index 100% rename from src/Serialization/SerializeAs.php rename to api/src/Serialization/SerializeAs.php diff --git a/src/Service/AggregateConverter.php b/api/src/Service/AggregateConverter.php similarity index 100% rename from src/Service/AggregateConverter.php rename to api/src/Service/AggregateConverter.php diff --git a/src/Service/CacheableConverter.php b/api/src/Service/CacheableConverter.php similarity index 100% rename from src/Service/CacheableConverter.php rename to api/src/Service/CacheableConverter.php diff --git a/src/Service/Converter.php b/api/src/Service/Converter.php similarity index 100% rename from src/Service/Converter.php rename to api/src/Service/Converter.php diff --git a/src/Service/DataUpdater.php b/api/src/Service/DataUpdater.php similarity index 100% rename from src/Service/DataUpdater.php rename to api/src/Service/DataUpdater.php diff --git a/src/Service/EntityConverter.php b/api/src/Service/EntityConverter.php similarity index 100% rename from src/Service/EntityConverter.php rename to api/src/Service/EntityConverter.php diff --git a/src/Service/EntityReferenceFactory.php b/api/src/Service/EntityReferenceFactory.php similarity index 100% rename from src/Service/EntityReferenceFactory.php rename to api/src/Service/EntityReferenceFactory.php diff --git a/src/Service/HandlerProvider.php b/api/src/Service/HandlerProvider.php similarity index 100% rename from src/Service/HandlerProvider.php rename to api/src/Service/HandlerProvider.php diff --git a/src/Service/IdUtils.php b/api/src/Service/IdUtils.php similarity index 100% rename from src/Service/IdUtils.php rename to api/src/Service/IdUtils.php diff --git a/src/Service/IterableUtils.php b/api/src/Service/IterableUtils.php similarity index 100% rename from src/Service/IterableUtils.php rename to api/src/Service/IterableUtils.php diff --git a/src/Service/ModifierUtils.php b/api/src/Service/ModifierUtils.php similarity index 100% rename from src/Service/ModifierUtils.php rename to api/src/Service/ModifierUtils.php diff --git a/src/Service/Normalizer/JustReferenceNormalizer.php b/api/src/Service/Normalizer/JustReferenceNormalizer.php similarity index 100% rename from src/Service/Normalizer/JustReferenceNormalizer.php rename to api/src/Service/Normalizer/JustReferenceNormalizer.php diff --git a/src/Service/Normalizer/StopNormalizer.php b/api/src/Service/Normalizer/StopNormalizer.php similarity index 100% rename from src/Service/Normalizer/StopNormalizer.php rename to api/src/Service/Normalizer/StopNormalizer.php diff --git a/src/Service/ProviderConverter.php b/api/src/Service/ProviderConverter.php similarity index 100% rename from src/Service/ProviderConverter.php rename to api/src/Service/ProviderConverter.php diff --git a/src/Service/ProviderParameterConverter.php b/api/src/Service/ProviderParameterConverter.php similarity index 100% rename from src/Service/ProviderParameterConverter.php rename to api/src/Service/ProviderParameterConverter.php diff --git a/src/Service/ProviderResolver.php b/api/src/Service/ProviderResolver.php similarity index 100% rename from src/Service/ProviderResolver.php rename to api/src/Service/ProviderResolver.php diff --git a/src/Service/Proxy/ReferenceFactory.php b/api/src/Service/Proxy/ReferenceFactory.php similarity index 100% rename from src/Service/Proxy/ReferenceFactory.php rename to api/src/Service/Proxy/ReferenceFactory.php diff --git a/src/Service/Proxy/ReferenceObjectGenerator.php b/api/src/Service/Proxy/ReferenceObjectGenerator.php similarity index 100% rename from src/Service/Proxy/ReferenceObjectGenerator.php rename to api/src/Service/Proxy/ReferenceObjectGenerator.php diff --git a/src/Service/RecursiveConverter.php b/api/src/Service/RecursiveConverter.php similarity index 100% rename from src/Service/RecursiveConverter.php rename to api/src/Service/RecursiveConverter.php diff --git a/src/Service/RecursiveConverterTrait.php b/api/src/Service/RecursiveConverterTrait.php similarity index 100% rename from src/Service/RecursiveConverterTrait.php rename to api/src/Service/RecursiveConverterTrait.php diff --git a/src/Service/RepositoryParameterConverter.php b/api/src/Service/RepositoryParameterConverter.php similarity index 100% rename from src/Service/RepositoryParameterConverter.php rename to api/src/Service/RepositoryParameterConverter.php diff --git a/src/Service/ScheduledStopConverter.php b/api/src/Service/ScheduledStopConverter.php similarity index 100% rename from src/Service/ScheduledStopConverter.php rename to api/src/Service/ScheduledStopConverter.php diff --git a/src/Service/SerializerContextFactory.php b/api/src/Service/SerializerContextFactory.php similarity index 100% rename from src/Service/SerializerContextFactory.php rename to api/src/Service/SerializerContextFactory.php diff --git a/src/Service/VersionExtension.php b/api/src/Service/VersionExtension.php similarity index 100% rename from src/Service/VersionExtension.php rename to api/src/Service/VersionExtension.php diff --git a/src/Subscriber/JustReferenceSerializationSubscriber.php b/api/src/Subscriber/JustReferenceSerializationSubscriber.php similarity index 100% rename from src/Subscriber/JustReferenceSerializationSubscriber.php rename to api/src/Subscriber/JustReferenceSerializationSubscriber.php diff --git a/symfony.lock b/api/symfony.lock similarity index 100% rename from symfony.lock rename to api/symfony.lock diff --git a/templates/app.html.twig b/api/templates/app.html.twig similarity index 100% rename from templates/app.html.twig rename to api/templates/app.html.twig diff --git a/templates/base.html.twig b/api/templates/base.html.twig similarity index 88% rename from templates/base.html.twig rename to api/templates/base.html.twig index 20775bb..e123df6 100644 --- a/templates/base.html.twig +++ b/api/templates/base.html.twig @@ -3,7 +3,7 @@ - + @@ -51,18 +51,18 @@ {% block javascripts %}{% endblock %} - + diff --git a/templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig b/api/templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig similarity index 100% rename from templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig rename to api/templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig diff --git a/templates/choose.html.twig b/api/templates/choose.html.twig similarity index 100% rename from templates/choose.html.twig rename to api/templates/choose.html.twig diff --git a/templates/manifest.json.twig b/api/templates/manifest.json.twig similarity index 100% rename from templates/manifest.json.twig rename to api/templates/manifest.json.twig diff --git a/translations/.gitignore b/api/translations/.gitignore similarity index 100% rename from translations/.gitignore rename to api/translations/.gitignore diff --git a/docker-compose.yml b/docker-compose.yml index 8e724d0..a3a6004 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,19 +6,18 @@ services: ports: - "8080:80" volumes: - - ./:/var/www:cached + - ./front:/var/www/front:cached + - ./api:/var/www/api:cached - ./docker/nginx/czydojade:/etc/nginx/conf.d/czydojade.conf - php: - build: docker/php + api: + build: ./api env_file: - ./docker/php/.env volumes: - - ./:/var/www:cached + - ./api:/var/www:cached - ./docker/php/log.conf:/usr/local/etc/php-fpm.d/zz-log.conf - - blackfire: image: blackfire/blackfire ports: ["8707"] diff --git a/docker/nginx/czydojade b/docker/nginx/czydojade index dbd1fe7..5b9ea65 100644 --- a/docker/nginx/czydojade +++ b/docker/nginx/czydojade @@ -1,29 +1,35 @@ server { - root /var/www/public/; - server_name czydojade.localhost; + root /var/www/front/public/; + server_name cojedzie.localhost; index index.php; - location / { - try_files $uri $uri/ /index.php?$args; + location ~ \.(js|css)$ { + expires 1y; + } - location ~ \.(js|css)$ { - expires 1y; - } + location / { + try_files $uri $uri/ /index.php?$args; + } - location ~ ^/index\.php(/|$) { - fastcgi_pass php:9000; - fastcgi_split_path_info ^(.+\.php)(/.*)$; + location = / { + root /var/www/api/public/; + } - include fastcgi_params; - fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; - fastcgi_param DOCUMENT_ROOT $realpath_root; + location ~ (.+).php(/|$) { + root /var/www/api/public/; - fastcgi_param APP_ENV "dev"; - fastcgi_param DATABASE_URL "sqlite:///%kernel.project_dir%/var/app.db"; - fastcgi_param GTM_TAG "GTM-00000"; + fastcgi_pass api:9000; + fastcgi_split_path_info ^(.+\.php)(/.*)$; - internal; - } - } + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME /var/www/public/$fastcgi_script_name; + fastcgi_param DOCUMENT_ROOT /var/www/public/; + + fastcgi_param APP_ENV "dev"; + fastcgi_param DATABASE_URL "sqlite:///%kernel.project_dir%/var/app.db"; + fastcgi_param GTM_TAG "GTM-00000"; + + internal; + } } diff --git a/front/.gitignore b/front/.gitignore new file mode 100644 index 0000000..fec845e --- /dev/null +++ b/front/.gitignore @@ -0,0 +1,5 @@ +yarn-error.log + +/public/* +!/public/.gitkeep +/node_modules/ diff --git a/package.json b/front/package.json similarity index 100% rename from package.json rename to front/package.json diff --git a/front/public/.gitkeep b/front/public/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/resources/components/departures.html b/front/resources/components/departures.html similarity index 100% rename from resources/components/departures.html rename to front/resources/components/departures.html diff --git a/resources/components/departures/departure.html b/front/resources/components/departures/departure.html similarity index 100% rename from resources/components/departures/departure.html rename to front/resources/components/departures/departure.html diff --git a/resources/components/favourites.html b/front/resources/components/favourites.html similarity index 100% rename from resources/components/favourites.html rename to front/resources/components/favourites.html diff --git a/resources/components/favourites/save.html b/front/resources/components/favourites/save.html similarity index 100% rename from resources/components/favourites/save.html rename to front/resources/components/favourites/save.html diff --git a/resources/components/finder.html b/front/resources/components/finder.html similarity index 100% rename from resources/components/finder.html rename to front/resources/components/finder.html diff --git a/resources/components/fold.html b/front/resources/components/fold.html similarity index 100% rename from resources/components/fold.html rename to front/resources/components/fold.html diff --git a/resources/components/lazy.html b/front/resources/components/lazy.html similarity index 100% rename from resources/components/lazy.html rename to front/resources/components/lazy.html diff --git a/resources/components/line.html b/front/resources/components/line.html similarity index 100% rename from resources/components/line.html rename to front/resources/components/line.html diff --git a/resources/components/messages.html b/front/resources/components/messages.html similarity index 100% rename from resources/components/messages.html rename to front/resources/components/messages.html diff --git a/resources/components/page/providers.html b/front/resources/components/page/providers.html similarity index 100% rename from resources/components/page/providers.html rename to front/resources/components/page/providers.html diff --git a/resources/components/picker/stop.html b/front/resources/components/picker/stop.html similarity index 100% rename from resources/components/picker/stop.html rename to front/resources/components/picker/stop.html diff --git a/resources/components/settings/departures.html b/front/resources/components/settings/departures.html similarity index 100% rename from resources/components/settings/departures.html rename to front/resources/components/settings/departures.html diff --git a/resources/components/settings/messages.html b/front/resources/components/settings/messages.html similarity index 100% rename from resources/components/settings/messages.html rename to front/resources/components/settings/messages.html diff --git a/resources/components/stop.html b/front/resources/components/stop.html similarity index 100% rename from resources/components/stop.html rename to front/resources/components/stop.html diff --git a/resources/components/stop/details.html b/front/resources/components/stop/details.html similarity index 100% rename from resources/components/stop/details.html rename to front/resources/components/stop/details.html diff --git a/resources/components/stop/history.html b/front/resources/components/stop/history.html similarity index 100% rename from resources/components/stop/history.html rename to front/resources/components/stop/history.html diff --git a/resources/components/stop/map.html b/front/resources/components/stop/map.html similarity index 100% rename from resources/components/stop/map.html rename to front/resources/components/stop/map.html diff --git a/resources/components/tooltip.html b/front/resources/components/tooltip.html similarity index 100% rename from resources/components/tooltip.html rename to front/resources/components/tooltip.html diff --git a/resources/components/trip.html b/front/resources/components/trip.html similarity index 100% rename from resources/components/trip.html rename to front/resources/components/trip.html diff --git a/resources/components/ui/dialog.html b/front/resources/components/ui/dialog.html similarity index 100% rename from resources/components/ui/dialog.html rename to front/resources/components/ui/dialog.html diff --git a/resources/components/ui/icon.html b/front/resources/components/ui/icon.html similarity index 100% rename from resources/components/ui/icon.html rename to front/resources/components/ui/icon.html diff --git a/resources/components/ui/numeric.html b/front/resources/components/ui/numeric.html similarity index 100% rename from resources/components/ui/numeric.html rename to front/resources/components/ui/numeric.html diff --git a/resources/components/ui/switch.html b/front/resources/components/ui/switch.html similarity index 100% rename from resources/components/ui/switch.html rename to front/resources/components/ui/switch.html diff --git a/resources/icons/light/bus.svg b/front/resources/icons/light/bus.svg similarity index 100% rename from resources/icons/light/bus.svg rename to front/resources/icons/light/bus.svg diff --git a/resources/icons/light/icons.ai b/front/resources/icons/light/icons.ai similarity index 100% rename from resources/icons/light/icons.ai rename to front/resources/icons/light/icons.ai diff --git a/resources/icons/light/metro.svg b/front/resources/icons/light/metro.svg similarity index 100% rename from resources/icons/light/metro.svg rename to front/resources/icons/light/metro.svg diff --git a/resources/icons/light/train.svg b/front/resources/icons/light/train.svg similarity index 100% rename from resources/icons/light/train.svg rename to front/resources/icons/light/train.svg diff --git a/resources/icons/light/tram.svg b/front/resources/icons/light/tram.svg similarity index 100% rename from resources/icons/light/tram.svg rename to front/resources/icons/light/tram.svg diff --git a/resources/icons/light/trolleybus.svg b/front/resources/icons/light/trolleybus.svg similarity index 100% rename from resources/icons/light/trolleybus.svg rename to front/resources/icons/light/trolleybus.svg diff --git a/resources/icons/light/unknown.svg b/front/resources/icons/light/unknown.svg similarity index 100% rename from resources/icons/light/unknown.svg rename to front/resources/icons/light/unknown.svg diff --git a/resources/images/app-icon.ai b/front/resources/images/app-icon.ai similarity index 100% rename from resources/images/app-icon.ai rename to front/resources/images/app-icon.ai diff --git a/resources/images/background-2x.png b/front/resources/images/background-2x.png similarity index 100% rename from resources/images/background-2x.png rename to front/resources/images/background-2x.png diff --git a/resources/images/background.png b/front/resources/images/background.png similarity index 100% rename from resources/images/background.png rename to front/resources/images/background.png diff --git a/resources/images/favicon-2x.png b/front/resources/images/favicon-2x.png similarity index 100% rename from resources/images/favicon-2x.png rename to front/resources/images/favicon-2x.png diff --git a/resources/images/favicon-72.png b/front/resources/images/favicon-72.png similarity index 100% rename from resources/images/favicon-72.png rename to front/resources/images/favicon-72.png diff --git a/resources/images/favicon.ai b/front/resources/images/favicon.ai similarity index 100% rename from resources/images/favicon.ai rename to front/resources/images/favicon.ai diff --git a/resources/images/favicon.ico b/front/resources/images/favicon.ico similarity index 100% rename from resources/images/favicon.ico rename to front/resources/images/favicon.ico diff --git a/resources/images/favicon.png b/front/resources/images/favicon.png similarity index 100% rename from resources/images/favicon.png rename to front/resources/images/favicon.png diff --git a/resources/images/icon-128.png b/front/resources/images/icon-128.png similarity index 100% rename from resources/images/icon-128.png rename to front/resources/images/icon-128.png diff --git a/resources/images/icon-192.png b/front/resources/images/icon-192.png similarity index 100% rename from resources/images/icon-192.png rename to front/resources/images/icon-192.png diff --git a/resources/images/icon-256.png b/front/resources/images/icon-256.png similarity index 100% rename from resources/images/icon-256.png rename to front/resources/images/icon-256.png diff --git a/resources/images/icon-512.png b/front/resources/images/icon-512.png similarity index 100% rename from resources/images/icon-512.png rename to front/resources/images/icon-512.png diff --git a/resources/images/icon-64.png b/front/resources/images/icon-64.png similarity index 100% rename from resources/images/icon-64.png rename to front/resources/images/icon-64.png diff --git a/resources/images/icon-96.png b/front/resources/images/icon-96.png similarity index 100% rename from resources/images/icon-96.png rename to front/resources/images/icon-96.png diff --git a/resources/images/icon-maskable.png b/front/resources/images/icon-maskable.png similarity index 100% rename from resources/images/icon-maskable.png rename to front/resources/images/icon-maskable.png diff --git a/resources/images/icon-monochrome.png b/front/resources/images/icon-monochrome.png similarity index 100% rename from resources/images/icon-monochrome.png rename to front/resources/images/icon-monochrome.png diff --git a/resources/images/ios-192.png b/front/resources/images/ios-192.png similarity index 100% rename from resources/images/ios-192.png rename to front/resources/images/ios-192.png diff --git a/resources/images/ios-80.png b/front/resources/images/ios-80.png similarity index 100% rename from resources/images/ios-80.png rename to front/resources/images/ios-80.png diff --git a/resources/images/ios.png b/front/resources/images/ios.png similarity index 100% rename from resources/images/ios.png rename to front/resources/images/ios.png diff --git a/resources/images/kadet-net-logo.png b/front/resources/images/kadet-net-logo.png similarity index 100% rename from resources/images/kadet-net-logo.png rename to front/resources/images/kadet-net-logo.png diff --git a/resources/images/logo-cojedzie.ai b/front/resources/images/logo-cojedzie.ai similarity index 100% rename from resources/images/logo-cojedzie.ai rename to front/resources/images/logo-cojedzie.ai diff --git a/resources/images/logo-concepts.ai b/front/resources/images/logo-concepts.ai similarity index 100% rename from resources/images/logo-concepts.ai rename to front/resources/images/logo-concepts.ai diff --git a/resources/images/logo-superhi.png b/front/resources/images/logo-superhi.png similarity index 100% rename from resources/images/logo-superhi.png rename to front/resources/images/logo-superhi.png diff --git a/resources/images/logo-vector.svg b/front/resources/images/logo-vector.svg similarity index 100% rename from resources/images/logo-vector.svg rename to front/resources/images/logo-vector.svg diff --git a/resources/images/logo.ai b/front/resources/images/logo.ai similarity index 100% rename from resources/images/logo.ai rename to front/resources/images/logo.ai diff --git a/resources/images/logo.png b/front/resources/images/logo.png similarity index 100% rename from resources/images/logo.png rename to front/resources/images/logo.png diff --git a/resources/styles/_animations.scss b/front/resources/styles/_animations.scss similarity index 100% rename from resources/styles/_animations.scss rename to front/resources/styles/_animations.scss diff --git a/resources/styles/_common.scss b/front/resources/styles/_common.scss similarity index 100% rename from resources/styles/_common.scss rename to front/resources/styles/_common.scss diff --git a/resources/styles/_controls.scss b/front/resources/styles/_controls.scss similarity index 100% rename from resources/styles/_controls.scss rename to front/resources/styles/_controls.scss diff --git a/resources/styles/_departure.scss b/front/resources/styles/_departure.scss similarity index 100% rename from resources/styles/_departure.scss rename to front/resources/styles/_departure.scss diff --git a/resources/styles/_dragscroll.scss b/front/resources/styles/_dragscroll.scss similarity index 100% rename from resources/styles/_dragscroll.scss rename to front/resources/styles/_dragscroll.scss diff --git a/resources/styles/_favourites.scss b/front/resources/styles/_favourites.scss similarity index 100% rename from resources/styles/_favourites.scss rename to front/resources/styles/_favourites.scss diff --git a/resources/styles/_form.scss b/front/resources/styles/_form.scss similarity index 100% rename from resources/styles/_form.scss rename to front/resources/styles/_form.scss diff --git a/resources/styles/_line.scss b/front/resources/styles/_line.scss similarity index 100% rename from resources/styles/_line.scss rename to front/resources/styles/_line.scss diff --git a/resources/styles/_map.scss b/front/resources/styles/_map.scss similarity index 100% rename from resources/styles/_map.scss rename to front/resources/styles/_map.scss diff --git a/resources/styles/_stop.scss b/front/resources/styles/_stop.scss similarity index 100% rename from resources/styles/_stop.scss rename to front/resources/styles/_stop.scss diff --git a/resources/styles/_trigonometry.scss b/front/resources/styles/_trigonometry.scss similarity index 100% rename from resources/styles/_trigonometry.scss rename to front/resources/styles/_trigonometry.scss diff --git a/resources/styles/_trip.scss b/front/resources/styles/_trip.scss similarity index 100% rename from resources/styles/_trip.scss rename to front/resources/styles/_trip.scss diff --git a/resources/styles/api.scss b/front/resources/styles/api.scss similarity index 100% rename from resources/styles/api.scss rename to front/resources/styles/api.scss diff --git a/resources/styles/main.scss b/front/resources/styles/main.scss similarity index 100% rename from resources/styles/main.scss rename to front/resources/styles/main.scss diff --git a/resources/styles/page/_provider-picker.scss b/front/resources/styles/page/_provider-picker.scss similarity index 100% rename from resources/styles/page/_provider-picker.scss rename to front/resources/styles/page/_provider-picker.scss diff --git a/resources/styles/ui/_modal.scss b/front/resources/styles/ui/_modal.scss similarity index 100% rename from resources/styles/ui/_modal.scss rename to front/resources/styles/ui/_modal.scss diff --git a/resources/styles/ui/_popup.scss b/front/resources/styles/ui/_popup.scss similarity index 100% rename from resources/styles/ui/_popup.scss rename to front/resources/styles/ui/_popup.scss diff --git a/resources/styles/ui/_switch.scss b/front/resources/styles/ui/_switch.scss similarity index 100% rename from resources/styles/ui/_switch.scss rename to front/resources/styles/ui/_switch.scss diff --git a/resources/svg-icon-loader.js b/front/resources/svg-icon-loader.js similarity index 100% rename from resources/svg-icon-loader.js rename to front/resources/svg-icon-loader.js diff --git a/resources/ts/app.ts b/front/resources/ts/app.ts similarity index 100% rename from resources/ts/app.ts rename to front/resources/ts/app.ts diff --git a/resources/ts/components/app.ts b/front/resources/ts/components/app.ts similarity index 100% rename from resources/ts/components/app.ts rename to front/resources/ts/components/app.ts diff --git a/resources/ts/components/departures.ts b/front/resources/ts/components/departures.ts similarity index 100% rename from resources/ts/components/departures.ts rename to front/resources/ts/components/departures.ts diff --git a/resources/ts/components/favourites.ts b/front/resources/ts/components/favourites.ts similarity index 100% rename from resources/ts/components/favourites.ts rename to front/resources/ts/components/favourites.ts diff --git a/resources/ts/components/history.ts b/front/resources/ts/components/history.ts similarity index 100% rename from resources/ts/components/history.ts rename to front/resources/ts/components/history.ts diff --git a/resources/ts/components/index.ts b/front/resources/ts/components/index.ts similarity index 100% rename from resources/ts/components/index.ts rename to front/resources/ts/components/index.ts diff --git a/resources/ts/components/line.ts b/front/resources/ts/components/line.ts similarity index 100% rename from resources/ts/components/line.ts rename to front/resources/ts/components/line.ts diff --git a/resources/ts/components/map.ts b/front/resources/ts/components/map.ts similarity index 100% rename from resources/ts/components/map.ts rename to front/resources/ts/components/map.ts diff --git a/resources/ts/components/messages.ts b/front/resources/ts/components/messages.ts similarity index 100% rename from resources/ts/components/messages.ts rename to front/resources/ts/components/messages.ts diff --git a/resources/ts/components/page/index.ts b/front/resources/ts/components/page/index.ts similarity index 100% rename from resources/ts/components/page/index.ts rename to front/resources/ts/components/page/index.ts diff --git a/resources/ts/components/page/providers.ts b/front/resources/ts/components/page/providers.ts similarity index 100% rename from resources/ts/components/page/providers.ts rename to front/resources/ts/components/page/providers.ts diff --git a/resources/ts/components/picker.ts b/front/resources/ts/components/picker.ts similarity index 100% rename from resources/ts/components/picker.ts rename to front/resources/ts/components/picker.ts diff --git a/resources/ts/components/settings/departures.ts b/front/resources/ts/components/settings/departures.ts similarity index 100% rename from resources/ts/components/settings/departures.ts rename to front/resources/ts/components/settings/departures.ts diff --git a/resources/ts/components/settings/index.ts b/front/resources/ts/components/settings/index.ts similarity index 100% rename from resources/ts/components/settings/index.ts rename to front/resources/ts/components/settings/index.ts diff --git a/resources/ts/components/settings/messages.ts b/front/resources/ts/components/settings/messages.ts similarity index 100% rename from resources/ts/components/settings/messages.ts rename to front/resources/ts/components/settings/messages.ts diff --git a/resources/ts/components/stop.ts b/front/resources/ts/components/stop.ts similarity index 100% rename from resources/ts/components/stop.ts rename to front/resources/ts/components/stop.ts diff --git a/resources/ts/components/tooltip.ts b/front/resources/ts/components/tooltip.ts similarity index 100% rename from resources/ts/components/tooltip.ts rename to front/resources/ts/components/tooltip.ts diff --git a/resources/ts/components/trip.ts b/front/resources/ts/components/trip.ts similarity index 100% rename from resources/ts/components/trip.ts rename to front/resources/ts/components/trip.ts diff --git a/resources/ts/components/ui/dialog.ts b/front/resources/ts/components/ui/dialog.ts similarity index 100% rename from resources/ts/components/ui/dialog.ts rename to front/resources/ts/components/ui/dialog.ts diff --git a/resources/ts/components/ui/icon.ts b/front/resources/ts/components/ui/icon.ts similarity index 100% rename from resources/ts/components/ui/icon.ts rename to front/resources/ts/components/ui/icon.ts diff --git a/resources/ts/components/ui/index.ts b/front/resources/ts/components/ui/index.ts similarity index 100% rename from resources/ts/components/ui/index.ts rename to front/resources/ts/components/ui/index.ts diff --git a/resources/ts/components/ui/numeric-input.ts b/front/resources/ts/components/ui/numeric-input.ts similarity index 100% rename from resources/ts/components/ui/numeric-input.ts rename to front/resources/ts/components/ui/numeric-input.ts diff --git a/resources/ts/components/ui/switch.ts b/front/resources/ts/components/ui/switch.ts similarity index 100% rename from resources/ts/components/ui/switch.ts rename to front/resources/ts/components/ui/switch.ts diff --git a/resources/ts/components/utils.ts b/front/resources/ts/components/utils.ts similarity index 100% rename from resources/ts/components/utils.ts rename to front/resources/ts/components/utils.ts diff --git a/resources/ts/decorators.ts b/front/resources/ts/decorators.ts similarity index 100% rename from resources/ts/decorators.ts rename to front/resources/ts/decorators.ts diff --git a/resources/ts/filters.ts b/front/resources/ts/filters.ts similarity index 100% rename from resources/ts/filters.ts rename to front/resources/ts/filters.ts diff --git a/resources/ts/icons.ts b/front/resources/ts/icons.ts similarity index 100% rename from resources/ts/icons.ts rename to front/resources/ts/icons.ts diff --git a/resources/ts/model/common.ts b/front/resources/ts/model/common.ts similarity index 100% rename from resources/ts/model/common.ts rename to front/resources/ts/model/common.ts diff --git a/resources/ts/model/departure.ts b/front/resources/ts/model/departure.ts similarity index 100% rename from resources/ts/model/departure.ts rename to front/resources/ts/model/departure.ts diff --git a/resources/ts/model/error.ts b/front/resources/ts/model/error.ts similarity index 100% rename from resources/ts/model/error.ts rename to front/resources/ts/model/error.ts diff --git a/resources/ts/model/identity.ts b/front/resources/ts/model/identity.ts similarity index 100% rename from resources/ts/model/identity.ts rename to front/resources/ts/model/identity.ts diff --git a/resources/ts/model/index.ts b/front/resources/ts/model/index.ts similarity index 100% rename from resources/ts/model/index.ts rename to front/resources/ts/model/index.ts diff --git a/resources/ts/model/line.ts b/front/resources/ts/model/line.ts similarity index 100% rename from resources/ts/model/line.ts rename to front/resources/ts/model/line.ts diff --git a/resources/ts/model/message.ts b/front/resources/ts/model/message.ts similarity index 100% rename from resources/ts/model/message.ts rename to front/resources/ts/model/message.ts diff --git a/resources/ts/model/provider.ts b/front/resources/ts/model/provider.ts similarity index 100% rename from resources/ts/model/provider.ts rename to front/resources/ts/model/provider.ts diff --git a/resources/ts/model/stop.ts b/front/resources/ts/model/stop.ts similarity index 100% rename from resources/ts/model/stop.ts rename to front/resources/ts/model/stop.ts diff --git a/resources/ts/model/trip.ts b/front/resources/ts/model/trip.ts similarity index 100% rename from resources/ts/model/trip.ts rename to front/resources/ts/model/trip.ts diff --git a/resources/ts/store/common.ts b/front/resources/ts/store/common.ts similarity index 100% rename from resources/ts/store/common.ts rename to front/resources/ts/store/common.ts diff --git a/resources/ts/store/departures.ts b/front/resources/ts/store/departures.ts similarity index 100% rename from resources/ts/store/departures.ts rename to front/resources/ts/store/departures.ts diff --git a/resources/ts/store/favourites.ts b/front/resources/ts/store/favourites.ts similarity index 100% rename from resources/ts/store/favourites.ts rename to front/resources/ts/store/favourites.ts diff --git a/resources/ts/store/history.ts b/front/resources/ts/store/history.ts similarity index 100% rename from resources/ts/store/history.ts rename to front/resources/ts/store/history.ts diff --git a/resources/ts/store/index.ts b/front/resources/ts/store/index.ts similarity index 100% rename from resources/ts/store/index.ts rename to front/resources/ts/store/index.ts diff --git a/resources/ts/store/messages.ts b/front/resources/ts/store/messages.ts similarity index 100% rename from resources/ts/store/messages.ts rename to front/resources/ts/store/messages.ts diff --git a/resources/ts/store/migrations.ts b/front/resources/ts/store/migrations.ts similarity index 100% rename from resources/ts/store/migrations.ts rename to front/resources/ts/store/migrations.ts diff --git a/resources/ts/store/root.ts b/front/resources/ts/store/root.ts similarity index 100% rename from resources/ts/store/root.ts rename to front/resources/ts/store/root.ts diff --git a/resources/ts/store/settings/departures.ts b/front/resources/ts/store/settings/departures.ts similarity index 100% rename from resources/ts/store/settings/departures.ts rename to front/resources/ts/store/settings/departures.ts diff --git a/resources/ts/store/settings/messages.ts b/front/resources/ts/store/settings/messages.ts similarity index 100% rename from resources/ts/store/settings/messages.ts rename to front/resources/ts/store/settings/messages.ts diff --git a/resources/ts/types/webpack.d.ts b/front/resources/ts/types/webpack.d.ts similarity index 100% rename from resources/ts/types/webpack.d.ts rename to front/resources/ts/types/webpack.d.ts diff --git a/resources/ts/urls.ts b/front/resources/ts/urls.ts similarity index 100% rename from resources/ts/urls.ts rename to front/resources/ts/urls.ts diff --git a/resources/ts/utils.ts b/front/resources/ts/utils.ts similarity index 100% rename from resources/ts/utils.ts rename to front/resources/ts/utils.ts diff --git a/tsconfig.json b/front/tsconfig.json similarity index 100% rename from tsconfig.json rename to front/tsconfig.json diff --git a/webpack.config.js b/front/webpack.config.js similarity index 100% rename from webpack.config.js rename to front/webpack.config.js diff --git a/yarn.lock b/front/yarn.lock similarity index 100% rename from yarn.lock rename to front/yarn.lock