-
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.
- Loading branch information
Showing
17 changed files
with
201 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
/* | ||
* 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! | ||
*/ | ||
|
||
return [ | ||
'dependencies' => ['core', 'backend'], | ||
'imports' => [ | ||
'@friendsoftypo3/extension-builder/' => 'EXT:extension_builder/Resources/Public/JavaScript/', | ||
'@WireIt/js-domain-modeling/' => 'EXT:extension_builder/Resources/Public/jsDomainModeling/', | ||
], | ||
]; |
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,17 @@ | ||
console.log("example.js"); | ||
|
||
if(typeof extbaseModeling_wiringEditorLanguage !== 'undefined') { | ||
var extbaseModeling_wiringEditorLanguage = { | ||
parentEl: 'domainModelEditor', | ||
languageName: 'extbaseModeling', | ||
smdUrl: TYPO3.settings.ajaxUrls['ExtensionBuilder::wiringEditorSmdEndpoint'], | ||
layerOptions: {}, | ||
modules: [] | ||
}; | ||
} | ||
|
||
console.log(TYPO3); | ||
console.log(TYPO3.settings.extensionBuilder._LOCAL_LANG.add); | ||
console.log(YAHOO); | ||
console.log("extbaseModeling_wiringEditorLanguage", extbaseModeling_wiringEditorLanguage); | ||
console.log("-------"); |
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,51 @@ | ||
// InputEx needs a correct path to this image | ||
console.log("extensibionbuilder.js"); | ||
|
||
if(typeof extbaseModeling_wiringEditorLanguage !== 'undefined') { | ||
var extbaseModeling_wiringEditorLanguage = { | ||
parentEl: 'domainModelEditor', | ||
languageName: 'extbaseModeling', | ||
smdUrl: TYPO3.settings.ajaxUrls['ExtensionBuilder::wiringEditorSmdEndpoint'], | ||
layerOptions: {}, | ||
modules: [] | ||
}; | ||
} | ||
|
||
// console.log("extbaseModeling.js", extbaseModeling_wiringEditorLanguage); | ||
|
||
// if(typeof YAHOO !== 'undefined') | ||
// console.log(YAHOO); | ||
// else | ||
// console.log('YAHOO is undefined'); | ||
// | ||
// if(typeof TYPO3 !== 'undefined') | ||
// console.log(TYPO3); | ||
// else | ||
// console.log('TYPO3 is undefined'); | ||
// | ||
// if(typeof inputEx !== 'undefined') | ||
// console.log(inputEx); | ||
// else | ||
// console.log('inputEx is undefined'); | ||
|
||
console.log("--------"); | ||
|
||
inputEx.spacerUrl = TYPO3.settings.extensionBuilder.publicResourcesUrl + '/jsDomainModeling/wireit/lib/inputex/images/space.gif'; | ||
|
||
// console.log(inputEx.spacerUrl); | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
// Annahme: WireIt und extbaseModeling_wiringEditorLanguage sind bereits definiert oder werden woanders importiert | ||
const editor = new WireIt.WiringEditor(extbaseModeling_wiringEditorLanguage); | ||
|
||
// Hier müssen Sie die initialWarnings als normales JavaScript-Array definieren | ||
const initialWarnings = [ | ||
"TODO: Warnung 1", | ||
"TODO: Warnung 2", | ||
"TODO: Warnung 3" | ||
]; | ||
|
||
if (initialWarnings.length > 0) { | ||
editor.alert('Warning', initialWarnings.join('<br />')); | ||
} | ||
}); |
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,13 @@ | ||
console.log("init.js"); | ||
// console.log(TYPO3); | ||
|
||
export let extbaseModeling_wiringEditorLanguage = { | ||
parentEl: 'domainModelEditor', | ||
languageName: 'extbaseModeling', | ||
smdUrl: TYPO3.settings.ajaxUrls['ExtensionBuilder::wiringEditorSmdEndpoint'], | ||
layerOptions: {}, | ||
modules: [] | ||
}; | ||
|
||
// console.log(extbaseModeling_wiringEditorLanguage); | ||
console.log("init.js ENDE"); |
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
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
Oops, something went wrong.