Commit Graph

341 Commits

Author SHA1 Message Date
merdan 9489f49958 home page start 2021-03-11 15:16:57 +05:00
Ben Thomson d7d6faeedb
Generate random password for seeded admin account through october:up (#4866) 2020-11-20 03:43:33 -06:00
Ben Thomson 50816a9556
Add support for defining quick actions in the Backend's main nav (#5344)
Plugins now have the ability to define quick actions through a "registerQuickActions" method, which follows the same configuration as the "registerNavigation" method. It is still recommended and preferred that most plugin functionality be defined in their own main menu items, but this will allow a plugin to easily define a shortcut (or remove one).
2020-11-10 12:53:17 +08:00
Luke Towers 86496ff818
Support disks that can't be serialized in ImageResizer. (#5324)
Requires https://github.com/octobercms/library/pull/532
2020-10-22 13:20:19 -06:00
Luke Towers a9d54eaa97 Warn about unsupported cache drivers being used for image resizing 2020-10-15 09:48:46 -06:00
Luke Towers 0101e1f96b Fix issue with image resizer URLs that contain URL-encoded characters (i.e. spaces)
Don't double decode the URL when validating it because the routing engine already decoded it once
2020-09-19 14:07:23 -06:00
Luke Towers 15ca68c22d No need to throw exceptions when generating MediaLibrary URLs 2020-09-18 16:01:02 -06:00
Luke Towers fe2ca6c15e Fix issue where resized images were not correctly identified as already having been resized when atomic (blue/green) deployment strategies are used in conjunction with files being stored on the local filesystem in a shared symlinked storage folder. 2020-09-18 00:11:11 -06:00
Luke Towers 618e2b58ab
Ignore images that can't be processed by the resizer 2020-09-17 22:53:49 -06:00
Luke Towers 2c4d3c9f98 Fix issue where URLs generated by the ImageResizer were not correctly encoded.
Related https://github.com/laravel/framework/issues/34199
2020-09-08 16:04:40 -06:00
Ben Thomson 5bceda9496
Add "changes" option for "october:version" command.
Will include a list of added/modified/removed files when detecting the October CMS build.
2020-09-03 11:48:35 +08:00
Ben Thomson 4141646105
Implement improved "set build" replacement (#5087)
This change implements an improved "set build" utility through the "october:version" Artisan command that, instead of checking the October CMS server for the latest build, checks the module files against a source manifest kept on GitHub.

This check allows us to accurately determine the build based on the module files in the October CMS installation, and can even detect versions if the module files are modified (except in the cases of extreme modification).

An additional utility has been implemented, "october:manifest", which will build the manifest JSON file in order to provide the maintainers with a way of generating this manifest file as required.

Replaces #4615.
2020-09-02 14:48:08 +08:00
Luke Towers 812c0552e8 Avoid logging SystemExceptions twice
SystemExceptions are already logged when the System ServiceProvider listens to the Message Logged event, this code used to be for ApplicationExceptions to bypass the fact that they were explicitly ignored by October's core exception handler.

ApplicationExceptions were added 27 Jan 2015 in 6a68036260
ApplicationExceptions were explicitly ignored in the core exception handler on 16 Feb 2015 in 237d97d87a (diff-b6bf0348130fdd1311473a97536310cdR20) and were explicitly logged in the System exception handler on the same day in 7b52e07b65 (diff-547f5794a63e9f138c33b20de8649b7eR20-R31)

Not sure why that was originally the case, but we've made the decision that ApplicationExceptions shouldn't be logged by default as they should occur semi-regularly in a healthy application (mostly as an expression of complex logical validation that triggers them based on bad user input): https://github.com/octobercms/october/pull/4569#issuecomment-550172508

Fixes octobercms/october#5253.
2020-08-28 13:57:12 -06:00
Luke Towers 6b214edf1f Add getAllPlugins() method to PluginManager 2020-08-27 15:47:42 -06:00
Luke Towers 19ebc8854e Remove unnecessary $sourceDisk & $sourcePath variables.
The $resizer instance provides access to the necessary data.
2020-08-25 11:06:38 -06:00
Luke Towers 0eac129003 Improve support for invalid inputs provided to the resize filter. 2020-08-24 15:24:40 -06:00
Luke Towers 2126cd3a0b Added $sourceDisk and $sourcePath as parameters to the image resizing events for better logging 2020-08-24 11:00:54 -06:00
Luke Towers c1c728e413
Merge pull request #5231 from octobercms/wip/image-resizing
Implement core support for `| resize(width, height, options)` filter
2020-08-21 18:01:47 -06:00
Luke Towers 38718e0b5d Fixed bug where FileModel images wouldn't properly store their config after being retrieved from the cache 2020-08-21 17:53:28 -06:00
Luke Towers a25567c750 Use the same resizing process for FileModels that's used for everything else. 2020-08-21 16:22:14 -06:00
Luke Towers 825075a19b Fix support for Windows 2020-08-21 16:07:48 -06:00
Luke Towers 1e6573cc62 Cleaned up inline docs for ImageResizer, fixed tests 2020-08-21 14:07:23 -06:00
Luke Towers 444069da00 Finished implement imageWidth & imageHeight filters 2020-08-21 13:39:45 -06:00
Luke Towers 3864e5b1c6 Allow plugin view & configuration files to be registered on protected routes
Fixes #5245
2020-08-19 09:57:57 -06:00
Luke Towers 3f58951855 wip on imageWidth / imageHeight filter 2020-08-19 09:49:13 -06:00
Luke Towers 05731b1069 Fix bug 2020-08-18 13:41:53 -06:00
Ben Thomson 0020809634
Additional work on tests, should pass now 2020-08-17 16:41:49 +08:00
Ben Thomson 1fd9529786
Add 'auto' height and width options 2020-08-17 12:07:52 +08:00
Ben Thomson c25e41d51a
Remove unneeded use case 2020-08-17 10:32:52 +08:00
Luke Towers f346312266 Minor improvements 2020-08-15 00:55:17 -06:00
Luke Towers 288918a7d7 Finished initial implementation of resizer for all supported input image sources, added the storage/app/resized directory to the mirror command 2020-08-14 15:39:30 -06:00
Luke Towers 2351f2104d Implemented resizing logic for File models, fixed bugs 2020-08-13 20:58:48 -06:00
Luke Towers 17664dce6c Reorganized the ImageResizer class 2020-08-13 03:10:30 -06:00
Luke Towers 9cb8a0861b Finished implementing support for retrieving thumb URLs from FileModels, initial support for detecting completed resize operations 2020-08-13 03:02:06 -06:00
Luke Towers b4dd25534e Merge branch 'develop' into wip/image-resizing 2020-08-09 04:26:48 -06:00
Luke Towers a992fb44bc Support the resized URL as a route param instead of GET variable, initial WIP on supporting File models 2020-08-09 03:07:07 -06:00
Luke Towers 6926908dad required code from last commit 2020-08-08 20:18:11 -06:00
Luke Towers 7b9408e394 More WIP, moved logic in the appropriate locations 2020-08-07 23:27:32 -06:00
Luke Towers ad69711634 Merge branch 'develop' into wip/laravel-6 2020-06-11 10:38:29 -06:00
Ben Thomson 8dba43ba0b
Allow plugin autoloaders to load on restricted pages and actions (#5120)
Allow plugin autoloaders to load, even on restricted pages. This allows (enabled) plugins to load their autoloaders on any pages, allowing includes in migration files to run.

Fixes #5110.
2020-06-09 21:46:17 -06:00
Luke Towers 252c9b7f58 Merge branch 'develop' into wip/laravel-6 2020-05-27 12:44:54 -06:00
Nick Khaetsky ce7335f6cb
Add warning with missing dependencies on Updates page (#5077)
Fixes #4843.
2020-05-26 10:05:40 -06:00
Dieter Holvoet 40d8bb453e
Get file and folder metadata for media items using a single network call if possible (#5046)
Co-Authored-By: Ben Thomson <ben@abweb.com.au>. Fixes #5045.
2020-05-26 03:20:41 -06:00
Luke Towers e78d5fe2bf Merge branch 'develop' into wip/laravel-6
# Conflicts:
#	modules/system/classes/UpdateManager.php
#	modules/system/classes/VersionManager.php
2020-04-29 16:58:58 -06:00
Kallef Alexandre b4c65e9feb
Added plugin:rollback command (#4389) 2020-04-11 09:46:22 -06:00
Luke Towers 44cc5d371b Merge branch 'develop' into wip/laravel-6 2020-04-04 02:32:16 -06:00
Luke Towers 8b9c001b9a Allow disabled plugin's translations to load for display translations on system pages 2020-04-02 22:15:30 -06:00
LeMaX10 ea42de9181
Use plugin & theme path helpers in the update manager (#4770) 2020-04-02 10:52:23 -06:00
Luke Towers ccb2c372bb Only force absolute URLs for media items if cms.linkPolicy = force
This fixes #4082 & rainlab/pages-plugin#405. Reverts a previous breaking change from Build 444 (introduced in #3536) by limiting the scope to which it applies.
2020-04-02 10:18:23 -06:00
Marc Jauvin b1d41caf03
Improve PluginManager code (#5023) 2020-04-02 09:30:15 -06:00