-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3682 from neos/feature/multi-app/01-foundation
!!!FEATURE: Reform foundation and boot process of the UI
- Loading branch information
Showing
35 changed files
with
1,360 additions
and
698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Classes/Domain/InitialData/CacheConfigurationVersionProviderInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Neos.Neos.Ui package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\Neos\Ui\Domain\InitialData; | ||
|
||
/** | ||
* Retrieves the current version identifier for the configuration cache so it | ||
* can be used as a cache busting parameter for resources fetched on client | ||
* side. | ||
* | ||
* @internal | ||
*/ | ||
interface CacheConfigurationVersionProviderInterface | ||
{ | ||
public function getCacheConfigurationVersion(): string; | ||
} |
37 changes: 37 additions & 0 deletions
37
Classes/Domain/InitialData/ConfigurationProviderInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Neos.Neos.Ui package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\Neos\Ui\Domain\InitialData; | ||
|
||
use Neos\ContentRepository\Core\ContentRepository; | ||
use Neos\Flow\Mvc\Routing\UriBuilder; | ||
|
||
/** | ||
* Retrieves the `nodeTree` and `structureTree` segments from | ||
* `Neos.Neos.userInterface.navigateComponent` settings, | ||
* `allowedTargetWorkspaces` from the ContentRepository's `WorkspaceService` | ||
* as well as the `nodeTypeSchema` and `translations` endpoints. | ||
* | ||
* @internal | ||
*/ | ||
interface ConfigurationProviderInterface | ||
{ | ||
/** | ||
* @return array{nodeTree:mixed,structureTree:mixed,allowedTargetWorkspaces:mixed,endpoints:array{nodeTypeSchema:string,translations:string}} | ||
*/ | ||
public function getConfiguration( | ||
ContentRepository $contentRepository, | ||
UriBuilder $uriBuilder, | ||
): array; | ||
} |
32 changes: 32 additions & 0 deletions
32
Classes/Domain/InitialData/FrontendConfigurationProviderInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Neos.Neos.Ui package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\Neos\Ui\Domain\InitialData; | ||
|
||
use Neos\Flow\Mvc\Controller\ControllerContext; | ||
|
||
/** | ||
* Reads and preprocesses the `Neos.Neos.Ui.frontendConfiguration` settings | ||
* that are mostly used by third-party plugins to share data between server | ||
* and client. | ||
* | ||
* @internal | ||
*/ | ||
interface FrontendConfigurationProviderInterface | ||
{ | ||
/** @return array<mixed> */ | ||
public function getFrontendConfiguration( | ||
ControllerContext $controllerContext | ||
): array; | ||
} |
38 changes: 38 additions & 0 deletions
38
Classes/Domain/InitialData/InitialStateProviderInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Neos.Neos.Ui package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\Neos\Ui\Domain\InitialData; | ||
|
||
use Neos\ContentRepository\Core\Factory\ContentRepositoryId; | ||
use Neos\ContentRepository\Core\Projection\ContentGraph\Node; | ||
use Neos\Flow\Mvc\Controller\ControllerContext; | ||
use Neos\Neos\Domain\Model\User; | ||
|
||
/** | ||
* Reads and preprocesses the `Neos.Neos.Ui.initialState` settings that are | ||
* used to hydrate the UI's redux store. | ||
* | ||
* @internal | ||
*/ | ||
interface InitialStateProviderInterface | ||
{ | ||
/** @return array<mixed> */ | ||
public function getInitialState( | ||
ControllerContext $controllerContext, | ||
ContentRepositoryId $contentRepositoryId, | ||
?Node $documentNode, | ||
?Node $site, | ||
User $user, | ||
): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Neos.Neos.Ui package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\Neos\Ui\Domain\InitialData; | ||
|
||
use Neos\Flow\Mvc\Controller\ControllerContext; | ||
|
||
/** | ||
* Retrieves all data needed to render the main burger menu located in the | ||
* top left corner of the UI. | ||
* | ||
* @internal | ||
*/ | ||
interface MenuProviderInterface | ||
{ | ||
/** | ||
* @return array<int,array{label:string,icon:string,uri:string,target:string,children:array<int,array{icon:string,label:string,uri:string,position?:string,isActive:bool,target:string,skipI18n:bool}>}> | ||
*/ | ||
public function getMenu(ControllerContext $controllerContext): array; | ||
} |
32 changes: 32 additions & 0 deletions
32
Classes/Domain/InitialData/NodeTypeGroupsAndRolesProviderInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Neos.Neos.Ui package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\Neos\Ui\Domain\InitialData; | ||
|
||
/** | ||
* Retrieves information about node type roles and node type groups. | ||
* | ||
* Roles are a dedicated UI-concept that is meant to distinguish between | ||
* document, content and collection nodes. | ||
* Groups refer the grouping of node types in the creation dialog. | ||
* | ||
* @internal | ||
*/ | ||
interface NodeTypeGroupsAndRolesProviderInterface | ||
{ | ||
/** | ||
* @return array{roles:mixed,groups:mixed} | ||
*/ | ||
public function getNodeTypes(): array; | ||
} |
Oops, something went wrong.