snipe-it/app/Http/Transformers
snipe 79367642b1
[WIP] Added #5957 - Flysystem support (#6262)
* Added AWS url to example env

* Upgrader - added check for new storage path and attempt to move

* Ignore symlink

* Updated paths for models

* Moved copy methods

* Added AWS_URL support

For some reasin, Flysystem was generating the wrong AWS url (with a region included)

* Switch to Flysystem for image uploads

* Nicer display of image preview

* Updated image preview on edit blades to use Flysystem

* Twiddled some more paths

* Working filesystems config

* Updated Asset Models and Departments to use Flysystem

* Janky workaround for differing S3/local urls/paths

* Try to smartly use S3 as public disk if S3 is configured

* Use public disk Storage options for public files

* Additional transformer edits for Flysystem

* Removed debugging

* Added missing use Storage directive

* Updated seeders to use Flysystem

* Default logo

* Set a default width

We can potentially override this in settings later

* Use Flysystem for logo upload

* Update downloadFile to use Flysystem

* Updated AssetFilesController to use Flysystem

* Updated acceptance signatures to use Flysystem

* Updated signature view to use Flysystem

This isn’t working 100% yet

* Use Flysystem facade for displaying asset image

* Set assets path

Should clean all these up when we’re done here

* Added Rackspace support for Flysystem

* Added Flysystem migrator console command

* Added use Storage directive for categories

* Added user avatars to Flysystem

* Added profile avatar to Flysystem

* Added the option to delete local files with the migrator

* Added a check to prevent people from trying to move from local to local

* Fixed the selectlists for Flysystem

* Fixed the getImageUrl method to reflect Flysystem

* Fixed AWS copy process

* Fixed models path

* More selectlist updates for Flysystem

* Updated example .envs with updated env variable names

* *sigh*

* Updated non-asset getImageUrl() methods to use Flysystem

* Removed S3 hardcoding

* Use Flysystem in email headers

* Fixed typo

* Removed camera support from asset file upload

We’ll find a way to add this in later (and add that support to all of the other image uploads as well)

* Fixed path for categories

* WIP - Switched to standard handleImages for asset upload.

This is currently broken as I refact the handleImages method. Because the assets store/create methods use their own Form Request, the handleImages method doesn’t exist in that Form Request so it wil error now.

* Fixed css URL error

* Updated Debugbar to latest version (#6265)

v3.2 adds support for Laravel 5.7

* Fixed: Missing CSS file in basic.blade.php (#6264)

* Fixed missing CSS file in basic.blade.php

* Added

* Changed stylesheet import for authorize.blade.php

* Updated composer lock

* Added AWS_BUCKET_ROOT as env variable

* Use nicer image preview for logo upload

* Removed AssetRequest form request

* Removed asset form request, moved custom field validation into model

* Added additional help text for logo upload

* Increased the size of the image resize - should make this a setting tho

* Few more formatting tweaks to logo section of branding blade preview

* Use Flysystem for asset/license file uploads

* Use Flysystem for removing images from models that have been deleted

* Enable backups to use Flysystem

This only handles part of the problem. This just makes it so we can ship files to S3 if we want, but does not account for how we backup files that are hosted on S3

* Use Flysystem to download license files

* Updated audits to use Flysystem
2018-09-29 21:33:52 -07:00
..
AccessoriesTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
ActionlogsTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
AssetMaintenancesTransformer.php Fixed #6027 - added model to asset maintenances listing 2018-08-01 18:24:52 -07:00
AssetModelsTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
AssetsTransformer.php De-normalize new counters from 4.3.0 (#5547) 2018-05-16 19:20:43 -07:00
CategoriesTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
CompaniesTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
ComponentsAssetsTransformer.php Added additional permissions for checkin/checkout buttons 2017-03-11 12:14:10 -08:00
ComponentsTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
ConsumablesTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
CustomFieldsetsTransformer.php Fixes #3775 - added missing created_at and updated_at fields 2017-07-29 17:01:03 -07:00
CustomFieldsTransformer.php Feature/custom fields default values (#5389) 2018-04-23 21:16:55 -07:00
DatatablesTransformer.php Additional API routes and controllers for models, suppliers, users, locations and status labels 2017-01-13 04:50:20 -08:00
DepartmentsTranformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
DepreciationsTransformer.php Fixes #3774 - fixes for inconsistent API responses (‘’ vs null) and adds escaping 2017-07-25 23:40:30 -07:00
GroupsTransformer.php Fixes #4043 - standardize groups API response 2017-09-27 15:18:29 -07:00
ImportsTransformer.php Add laravel routes to javascript (#4092) 2017-10-01 12:59:55 -07:00
LicenseSeatsTransformer.php Fixed license checkout gate 2018-07-18 05:33:14 -07:00
LicensesTransformer.php Added license categories 2018-05-04 21:01:38 -07:00
LocationsTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
LoginAttemptsTransformer.php Added attempted logins admin screen (#6018) 2018-08-01 03:51:59 -07:00
ManufacturersTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
SelectlistTransformer.php Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
StatuslabelsTransformer.php Fixed broken pagination on status labels API 2018-07-05 14:42:39 -07:00
SuppliersTransformer.php [WIP] Added #5957 - Flysystem support (#6262) 2018-09-29 21:33:52 -07:00
UsersTransformer.php Fixed #5964 - Feature: Group IDs can be passed to User Create. (#5990) 2018-07-27 12:01:59 -07:00