Refactoring
Core
- Throw proper errors when thumbnails cannot be generated
- Removed
config/blueprintsdirectory with dead block blueprints and moved default blueprints for site, page and file to in-code arrays inKirby\Cms\Core::blueprints() - Removed
Kirby\Toolkit\Propertiestrait fromKirby\Api\Api,Kirby\Cms\Api,Kirby\Email\Email,Kirby\Email\Body,Kirby\Cms\Auth\Status,Kirby\Cms\App,Kirby\Cms\ContentTranslation,Kirby\Cms\ModelWithContent,Kirby\Toolkit\Pagination,Kirby\Http\Uri,Kirby\Cms\FileVersion,Kirby\Filesystem\Asset,Kirby\Filesystem\File,Kirby\Image\Imageclasses andKirby\Filesystem\IsFiletrait Kirby\Cms\Language,Kirby\Cms\Plugin,Kirby\Cms\RoleandKirby\Cms\StructureObjectdon't extendKirby\Cms\Model(and thus also don't use theKirby\Toolkit\Propertiestrait) anymoreKirby\Cms\StructureextendsKirby\Cms\ItemsandKirby\Cms\StructureObjectextendsKirby\Cms\Item- New
Contentnamespace- Moved the
Content,ContentTranslationandFieldclasses into the new namespace (compatibility aliases are provided for now) - New internal
ContentStorageclass that currently holds more of the storage related business logic - New internal
ContentStorageHandlerinterface and internalPlainTextContentStorageHandlerclass to bundle all low-level content logic in one place
- Moved the
- Whoops is now generally disabled during PHPUnit test runs to reduce memory usage during tests
Panel
- More frontend unit tests
- Cleaned up
k-toolbarcomponent - New drawer component structure:
<k-overlay type="drawer"> <form class="k-drawer" method="dialog"> <k-drawer-notification /> <k-drawer-header /> <k-drawer-body> <k-drawer-fields /> </k-drawer-body> </form> </k-overlay> - Portals: Dialogs, Drawers and other Overlays are now separated into different portals. This is done by setting the overlay type:
<k-overlay type="dialog"><k-overlay type="drawer"><k-overlay>
An overlay without a type will use the default overlay portal. Separating them into different portals gives us more control overz-indexand layering of elements.
- Removed
v-modelfromk-formandk-fieldset - Removed
$listenersusage fromk-draggable,k-buttonand subcomponents,k-link,k-headline,k-form,k-block,k-block-title,k-box,k-image,k-content-item - Made
k-bubblemore flexible - Use the Vue object syntax for dynamic
:styleattributes to enhance the robustness and security - Reduce JS forEach usage