Skip to content

Commit 847e464

Browse files
committed
TASK: Remove VIE schema
This was required for the Aloha editor which is not supported by Neos anymore.
1 parent 771a5c2 commit 847e464

File tree

10 files changed

+3
-468
lines changed

10 files changed

+3
-468
lines changed

Neos.Media.Browser/Resources/Private/Layouts/Default.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
<f:for each="{settings.styles}" as="style">
1313
<link rel="stylesheet" href="{f:uri.resource(path: style)}"/>
1414
</f:for>
15-
<link
16-
rel="neos-vieschema"
17-
href="{f:uri.action(action: 'vieSchema', controller: 'Backend\Schema', package: 'Neos.Neos', absolute: true, arguments: {version: '{neos:backend.configurationCacheVersion()}'})}"
18-
/>
1915
<link
2016
rel="neos-xliff"
2117
href="{f:uri.action(action: 'xliffAsJson', arguments: {locale: '{neos:backend.interfaceLanguage()}', version: '{neos:backend.xliffCacheVersion()}'}, controller: 'Backend\Backend', package: 'Neos.Neos', absolute: true) -> f:format.raw()}"

Neos.Neos/Classes/Controller/Backend/SchemaController.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@
1717
use Neos\Flow\Annotations as Flow;
1818
use Neos\Flow\Mvc\Controller\ActionController;
1919
use Neos\Neos\Service\NodeTypeSchemaBuilder;
20-
use Neos\Neos\Service\VieSchemaBuilder;
2120

2221
/**
2322
* @Flow\Scope("singleton")
2423
*/
2524
class SchemaController extends ActionController
2625
{
27-
/**
28-
* @var VieSchemaBuilder
29-
* @Flow\Inject
30-
*/
31-
protected $vieSchemaBuilder;
3226

3327
/**
3428
* @var NodeTypeSchemaBuilder
@@ -42,29 +36,6 @@ class SchemaController extends ActionController
4236
*/
4337
protected $nodeTypeSchemaCache;
4438

45-
/**
46-
* Generate and renders the JSON schema for the node types for VIE.
47-
* Schema format example: http://schema.rdfs.org/all.json
48-
*
49-
* @return string
50-
*/
51-
public function vieSchemaAction(): string
52-
{
53-
$version = $this->request->hasArgument('version') ? $this->request->getArgument('version') : '';
54-
$cacheIdentifier = 'vieSchema_' . $version;
55-
56-
$this->response->setContentType('application/json');
57-
$this->response->setHttpHeader('Cache-Control', 'max-age=' . (3600 * 24 * 7));
58-
59-
$vieSchema = $this->nodeTypeSchemaCache->get($cacheIdentifier);
60-
if (!$vieSchema) {
61-
$vieSchema = json_encode($this->vieSchemaBuilder->generateVieSchema());
62-
$this->nodeTypeSchemaCache->flushByTag('vie');
63-
$this->nodeTypeSchemaCache->set($cacheIdentifier, $vieSchema, ['vie']);
64-
}
65-
return $vieSchema;
66-
}
67-
6839
/**
6940
* Get the node type configuration schema for the Neos UI
7041
*

Neos.Neos/Classes/Service/VieSchemaBuilder.php

Lines changed: 0 additions & 250 deletions
This file was deleted.

Neos.Neos/Configuration/Policy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ privilegeTargets:
4141

4242
'Neos.Neos:Backend.Content.Services':
4343
label: Access to content service APIs
44-
matcher: 'method(Neos\Neos\Controller\Backend\SchemaController->(nodeTypeSchema|vieSchema)Action()) || method(Neos\Neos\Controller\Backend\SettingsController->editPreviewAction())'
44+
matcher: 'method(Neos\Neos\Controller\Backend\SchemaController->(nodeTypeSchema)Action()) || method(Neos\Neos\Controller\Backend\SettingsController->editPreviewAction())'
4545

4646
'Neos.Neos:Backend.PersonalWorkspaceReadAccess.NodeConverter':
4747
label: Access to own personal workspace

Neos.Neos/Configuration/Routes.Backend.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,6 @@
5555
'@controller': 'Backend\Content'
5656
'@action': 'masterPlugins'
5757

58-
-
59-
name: 'Schema - VIE'
60-
uriPattern: 'schema/vie'
61-
defaults:
62-
'@controller': 'Backend\Schema'
63-
'@action': 'vieSchema'
64-
appendExceedingArguments: true
65-
6658
-
6759
name: 'Schema - NodeType'
6860
uriPattern: 'schema/node-type'

Neos.Neos/Resources/Private/Templates/Backend/Module/Index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
{neos:backend.javascriptConfiguration()}
3737
</script>
3838

39-
<link
40-
rel="neos-vieschema"
41-
href="{f:uri.action(action: 'vieSchema', controller: 'Backend\Schema', package: 'Neos.Neos', absolute: true, arguments: {version: '{neos:backend.configurationCacheVersion()}'})}"
42-
/>
4339
<link
4440
rel="neos-xliff"
4541
href="{f:uri.action(action: 'xliffAsJson', arguments: {locale: '{neos:backend.interfaceLanguage()}', version: '{neos:backend.xliffCacheVersion()}'}, controller: 'Backend\Backend', package: 'Neos.Neos', absolute: true) -> f:format.raw()}"

Neos.Neos/Resources/Public/JavaScript/Main.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Neos.Neos/Resources/Public/JavaScript/Services/Configuration.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ const init = () => {
1111
window.NeosCMS.Configuration = {};
1212
}
1313

14-
// append vie schema
15-
const schemaLink = document.querySelector('link[rel="neos-vieschema"]');
16-
if (!isNil(schemaLink)) {
17-
window.NeosCMS.Configuration.VieSchemaUri = schemaLink.getAttribute("href");
18-
}
19-
2014
// append xliff uri
2115
const xliffLink = document.querySelector('link[rel="neos-xliff"]');
2216
if (!isNil(xliffLink)) {

Neos.Neos/Resources/Public/JavaScript/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Configuration.init();
2020
Notification.init();
2121
Localization.init();
2222

23-
// preload vieSchema
24-
const vieSchema = cachedFetch(Configuration.get("VieSchemaUri"));
2523
cachedFetch(Configuration.get("XliffUri")).then((xliffData) => {
2624
if (xliffData) {
2725
Localization.initTranslations(xliffData);

0 commit comments

Comments
 (0)