From aed7bbfc1fb57fe0965bbe94411602b5261da67f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=BCbner?= Date: Thu, 13 Apr 2017 18:58:52 +0200 Subject: [PATCH] FIxtures --- app/Resources/relations/part_model.yml | 3 +++ app/config/config.yml | 6 +++--- gulpfile.js | 2 +- src/AppBundle/Service/Loader/ModelLoaderService.php | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/Resources/relations/part_model.yml b/app/Resources/relations/part_model.yml index 3d38b35..5edac4f 100644 --- a/app/Resources/relations/part_model.yml +++ b/app/Resources/relations/part_model.yml @@ -210,3 +210,6 @@ tech026: 2698c01 tech027: 2698c01 tech028: 2698c01 tech029: 2698c01 + +33299a: 33299 +33299b: 33299 \ No newline at end of file diff --git a/app/config/config.yml b/app/config/config.yml index d32cff2..c6f65ad 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -108,7 +108,7 @@ liip_imagine: data_loader: media cache: ~ quality: 80 - default_image: '/resources/images/unknown_image_min.png' + default_image: '/resources/images/unknown_image.png' filters: thumbnail: { size: [200, 200], mode: inset } background: { size: [250, 250], position: center, color: '#FFFFFF' } @@ -125,13 +125,13 @@ liip_imagine: quality: 80 data_loader: rebrickable cache: ~ - default_image: '/resources/images/unknown_image_min.png' + default_image: '/resources/images/unknown_image.png' filters: thumbnail: { size: [250, 250], mode: inset } rebrickable_set_min: quality: 80 data_loader: rebrickable - default_image: '/resources/images/unknown_image_min.png' + default_image: '/resources/images/unknown_image.png' cache: ~ filters: thumbnail: { size: [250, 250], mode: inset } diff --git a/gulpfile.js b/gulpfile.js index bc7a03b..5dfb49a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -62,5 +62,5 @@ gulp.task('watch', ['js', 'css', 'three'], function () { }); gulp.task('default', function () { - return gulp.start(['files', 'js', 'css', 'three']); + return gulp.start(['files:semantic', 'files:images', 'js', 'css', 'three']); }); \ No newline at end of file diff --git a/src/AppBundle/Service/Loader/ModelLoaderService.php b/src/AppBundle/Service/Loader/ModelLoaderService.php index 2d5ba87..bbab54d 100644 --- a/src/AppBundle/Service/Loader/ModelLoaderService.php +++ b/src/AppBundle/Service/Loader/ModelLoaderService.php @@ -71,14 +71,14 @@ class ModelLoaderService extends BaseLoaderService $this->LDViewService->setLdrawFilesystem($this->ldrawLibraryContext); } - public function loadFileContext($file) { + public function setFileContext($file) { $adapter = new Local($file); $this->fileContext = new Filesystem($adapter); } public function loadAllModels() { - $files = $this->finder->in(['/home/hubnedav/Documents/ldraw'])->path('parts/')->name('*.dat')->depth(1)->files(); + $files = $this->finder->in([$this->ldrawLibraryContext->getAdapter()->getPathPrefix()])->path('parts/')->name('*.dat')->depth(1)->files(); $modelManager = $this->ldrawService->getModelManager();