1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-16 04:10:09 -07:00
This commit is contained in:
David Hübner 2017-04-13 18:58:52 +02:00
parent dd3bb0df17
commit aed7bbfc1f
4 changed files with 9 additions and 6 deletions

View File

@ -210,3 +210,6 @@ tech026: 2698c01
tech027: 2698c01
tech028: 2698c01
tech029: 2698c01
33299a: 33299
33299b: 33299

View File

@ -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 }

View File

@ -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']);
});

View File

@ -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();