-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
current state for deleting a relation from model
- Loading branch information
Philipp Kuhlmay
committed
Jan 30, 2024
1 parent
7813ab6
commit 98c01fa
Showing
13 changed files
with
4,600 additions
and
123 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
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
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
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,47 @@ | ||
const modelProperty = { | ||
name: '', | ||
type: '', | ||
description: '', | ||
isRequired: false, | ||
isNullable: false, | ||
isExcludeField: false, | ||
isl10nModeExlude: false, | ||
typeSelect: { | ||
selectboxValues: "", | ||
renderType: "selectSingle", | ||
foreignTable: "", | ||
}, | ||
typeText: { | ||
enableRichtext: false, | ||
}, | ||
typeNumber: { | ||
enableSlider: false, | ||
steps: 1, | ||
setRange: false, | ||
upperRange: 255, | ||
lowerRange: 0, | ||
}, | ||
typeColor: { | ||
setValuesColorPicker: false, | ||
colorPickerValues: '', | ||
}, | ||
typeBoolean: { | ||
renderType: "default", | ||
booleanValues: "", | ||
}, | ||
typePassword: { | ||
renderPasswordGenerator: false, | ||
}, | ||
typeDateTime: { | ||
dbTypeDateTime: "", | ||
formatDateTime: "", | ||
}, | ||
typeFile: { | ||
allowedFileTypes: "", | ||
}, | ||
size: "", | ||
minItems: "", | ||
maxItems: "", | ||
} | ||
|
||
export default modelProperty; |
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,16 @@ | ||
[ | ||
{ | ||
"source": "dndnode_0", | ||
"sourceHandle": "relation-dndnode_0-1", | ||
"target": "dndnode_2", | ||
"targetHandle": "customModelNode-dndnode_2", | ||
"id": "reactflow__edge-dndnode_0relation-dndnode_0-1-dndnode_2customModelNode-dndnode_2" | ||
}, | ||
{ | ||
"source": "dndnode_0", | ||
"sourceHandle": "relation-dndnode_0-0", | ||
"target": "dndnode_1", | ||
"targetHandle": "customModelNode-dndnode_1", | ||
"id": "reactflow__edge-dndnode_0relation-dndnode_0-0-dndnode_1customModelNode-dndnode_1" | ||
} | ||
] |
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,16 @@ | ||
[ | ||
{ | ||
"source": "dndnode_0", | ||
"sourceHandle": "relation-dndnode_0-0", | ||
"target": "dndnode_1", | ||
"targetHandle": "customModelNode-dndnode_1", | ||
"id": "reactflow__edge-dndnode_0relation-dndnode_0-0-dndnode_1customModelNode-dndnode_1" | ||
}, | ||
{ | ||
"source": "dndnode_0", | ||
"sourceHandle": "relation-dndnode_0-1", | ||
"target": "dndnode_2", | ||
"targetHandle": "customModelNode-dndnode_2", | ||
"id": "reactflow__edge-dndnode_0relation-dndnode_0-1-dndnode_2customModelNode-dndnode_2" | ||
} | ||
] |
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,24 @@ | ||
[ | ||
{ | ||
"source": "dndnode_0", | ||
"sourceHandle": "relation-dndnode_0-1", | ||
"target": "dndnode_2", | ||
"targetHandle": "customModelNode-dndnode_2", | ||
"id": "reactflow__edge-dndnode_0relation-dndnode_0-1-dndnode_2customModelNode-dndnode_2" | ||
} | ||
] | ||
|
||
|
||
// Oberes gelöscht | ||
|
||
|
||
// eins neu | ||
[ | ||
{ | ||
"source": "dndnode_0", | ||
"sourceHandle": "relation-dndnode_0-1", | ||
"target": "dndnode_2", | ||
"targetHandle": "customModelNode-dndnode_2", | ||
"id": "reactflow__edge-dndnode_0relation-dndnode_0-1-dndnode_2customModelNode-dndnode_2" | ||
} | ||
] |
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,61 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS project. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* The TYPO3 project - inspiring people to share! | ||
*/ | ||
|
||
namespace EBT\ExtensionBuilder\Command; | ||
|
||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Input\InputOption; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
class MigrateExtensionCommand extends Command | ||
{ | ||
public function __construct( | ||
) { | ||
parent::__construct(); | ||
} | ||
|
||
protected function configure(): void | ||
{ | ||
$this->addOption( | ||
'extension', | ||
'e', | ||
InputOption::VALUE_OPTIONAL, | ||
'Extension which should be migrated' | ||
); | ||
} | ||
|
||
protected function execute(InputInterface $input, OutputInterface $output): int | ||
{ | ||
// get all given parameters | ||
$extension = $input->getOption('extension'); | ||
|
||
// first check, if all given parameters are valid | ||
if ($extension === null || $extension === '') { | ||
$output->writeln('<error>No extension key is give. You must provide an extension key for migration.</error>'); | ||
return Command::INVALID; | ||
} | ||
// Get a list of all available extensions | ||
|
||
// compare the list, if the given extension is available | ||
|
||
// if yes, then migrate the extension | ||
|
||
// if succeeded, then show a success message | ||
return Command::SUCCESS; | ||
} | ||
} |
Oops, something went wrong.