Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Import the public part of the original code
Notice: This commit also includes changes which will not appear in the previous (paid version) history. This includes mostly cool features like * single record publishing * all record/files publishing * workflows * workflows for single records * TreeViewColors
- Loading branch information
1 parent
b96359b
commit 6502b65
Showing
287 changed files
with
36,501 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
msi.iws | ||
.idea/ | ||
nbproject/ | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
.svn | ||
.sass-cache | ||
.Build | ||
composer.lock | ||
|
||
Resources/Private/Clickdummy/Fonts | ||
Resources/Private/Clickdummy/typo3_src-6.2.9 | ||
Resources/Private/Clickdummy/zextensions.css |
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,131 @@ | ||
{ | ||
"fileExtensions": [".js"], | ||
"excludeFiles": [], | ||
"requireCurlyBraces": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"try", | ||
"catch", | ||
"case", | ||
"default" | ||
], | ||
"requireSpaceAfterKeywords": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"switch", | ||
"return", | ||
"try", | ||
"catch" | ||
], | ||
"disallowSpaceAfterKeywords": [], | ||
"requireSpaceBeforeBlockStatements": true, | ||
"requireParenthesesAroundIIFE": true, | ||
"requireSpacesInConditionalExpression": { | ||
"afterTest": true, | ||
"beforeConsequent": true, | ||
"afterConsequent": true, | ||
"beforeAlternate": true | ||
}, | ||
"requireSpacesInFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"disallowSpacesInFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"requireSpacesInAnonymousFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"disallowSpacesInAnonymousFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"requireSpacesInNamedFunctionExpression": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"disallowSpacesInNamedFunctionExpression": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"requireSpacesInFunctionDeclaration": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"disallowSpacesInFunctionDeclaration": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowMultipleVarDecl": true, | ||
"requireBlocksOnNewline": true, | ||
"disallowPaddingNewlinesInBlocks": true, | ||
"disallowEmptyBlocks": true, | ||
"disallowQuotedKeysInObjects": true, | ||
"disallowDanglingUnderscores": true, | ||
"disallowSpaceAfterObjectKeys": true, | ||
"requireCommaBeforeLineBreak": true, | ||
"requireOperatorBeforeLineBreak": true, | ||
"disallowSpaceAfterPrefixUnaryOperators": true, | ||
"requireSpaceAfterPrefixUnaryOperators": [], | ||
"disallowSpaceBeforePostfixUnaryOperators": true, | ||
"requireSpaceBeforePostfixUnaryOperators": [], | ||
"disallowSpaceBeforeBinaryOperators": [], | ||
"requireSpaceBeforeBinaryOperators": [ | ||
"=", | ||
"+", | ||
"-", | ||
"/", | ||
"*", | ||
"==", | ||
"===", | ||
"!=", | ||
"!==" | ||
], | ||
"disallowSpaceAfterBinaryOperators": [], | ||
"requireSpaceAfterBinaryOperators": [ | ||
"=", | ||
",", | ||
"+", | ||
"-", | ||
"/", | ||
"*", | ||
"==", | ||
"===", | ||
"!=", | ||
"!==" | ||
], | ||
"disallowImplicitTypeConversion": [ | ||
"numeric", | ||
"boolean", | ||
"binary", | ||
"string" | ||
], | ||
"requireCamelCaseOrUpperCaseIdentifiers": true, | ||
"disallowKeywords": [], | ||
"disallowMultipleLineStrings": true, | ||
"disallowMultipleLineBreaks": true, | ||
"validateLineBreaks": "LF", | ||
"validateQuoteMarks": true, | ||
"validateIndentation": "\t", | ||
"disallowMixedSpacesAndTabs": "smart", | ||
"disallowTrailingWhitespace": true, | ||
"disallowTrailingComma": true, | ||
"disallowKeywordsOnNewLine": [ | ||
"else" | ||
], | ||
"requireKeywordsOnNewLine": [], | ||
"requireLineFeedAtFileEnd": true, | ||
"maximumLineLength": 130, | ||
"requireCapitalizedConstructors": true, | ||
"safeContextKeyword": [ | ||
"that" | ||
], | ||
"requireDotNotation": true, | ||
"requireYodaConditions": true, | ||
"validateJSDoc": { | ||
"checkParamNames": true, | ||
"checkRedundantParams": true, | ||
"requireParamTypes": true | ||
}, | ||
"requireSpaceAfterLineComment": true | ||
} |
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,152 @@ | ||
{ | ||
/** | ||
* ----------------------------------------------------------------------------- | ||
* | ||
* Please contact roland.waldner@in2code.de before you modify this file. | ||
* | ||
* ----------------------------------------------------------------------------- | ||
* | ||
* This is the project's configuration file for the JavaScript linting/hinting | ||
* tool JSHint. It can be used when working with JSHint on the console, in | ||
* IDEs, with build tools or continuous integration enviroments. | ||
* | ||
* Stay awesome, use JSHint with this configuration file and create high quality | ||
* JavaScript code! | ||
* | ||
* http://www.jshint.com/about/ | ||
* | ||
* ----------------------------------------------------------------------------- | ||
* | ||
* Example 1: Usage in IDE | ||
* | ||
* Placing this file in the a PhpStorm project root folder enables PhpStorm | ||
* to use this configuraion when you enable these two settings: | ||
* | ||
* Project Settings > Inspections > JavaScript > Code Quality Tools > JSHint | ||
* Project Settings > JavaScript > Code Quality Tools > JSHint > Use config file | ||
* | ||
* Example 2: Usage on the Console | ||
* | ||
* Placing this file in the project's root directory or the user's home | ||
* directory on Mac OSX ensures that calling "jshint foobar.js" will respect the | ||
* settings configured in this file. | ||
* | ||
* ----------------------------------------------------------------------------- | ||
* | ||
* This setup is tested with JSHint 2.5.1 and should be re-evaluated and | ||
* compared from time to time with the supported options which can be found | ||
* in in the JSHint documentation and source code: | ||
* | ||
* http://www.jshint.com/docs/options/ | ||
* https://github.com/jshint/jshint/blob/master/src/jshint.js | ||
* | ||
* For detailed information about the possible configuration settings please | ||
* have a look at the documentation at http://www.jshint.com/docs/options/. | ||
* | ||
* Our company's most current version of this configuration file can most | ||
* probably be found in the CMS6-Distribution git repository - it may make sense | ||
* for various projects to always use most current version of this configuration | ||
* file: | ||
* | ||
* https://bitbucket.org/in2code/in2codegmbh-cms6-distribution | ||
* | ||
* Date of latest evaluation: 2014-08-07 | ||
* | ||
* ----------------------------------------------------------------------------- | ||
*/ | ||
|
||
// ======================== // | ||
// === Enforcing Options === // | ||
// ======================== // | ||
|
||
"bitwise" : true, | ||
"camelcase" : true, | ||
"curly" : true, | ||
"eqeqeq" : true, | ||
"es3" : false, | ||
"forin" : true, | ||
"freeze" : true, | ||
"immed" : true, | ||
// "ident" is (almost) ignored since JSHint 2.5.0 - https://github.com/jshint/jshint/releases/tag/2.5.0 | ||
"indent" : 4, | ||
"latedef" : true, | ||
"maxparams" : 3, | ||
"maxdepth" : 3, | ||
"maxstatements" : 10, | ||
"maxcomplexity" : 10, | ||
"maxlen" : 130, | ||
"newcap" : true, | ||
"noarg" : true, | ||
"noempty" : true, | ||
"nonbsp" : true, | ||
"nonew" : true, | ||
"plusplus" : false, | ||
"quotmark" : true, | ||
"regexp" : true, | ||
"undef" : true, | ||
"unused" : true, | ||
"strict" : true, | ||
|
||
// ======================== // | ||
// === Relaxing Options === // | ||
// ======================== // | ||
|
||
"asi" : false, | ||
"boss" : false, | ||
"debug" : false, | ||
"eqnull" : true, | ||
"esnext" : false, | ||
// If "evil" is set to "false" JSHint in PHPStorm notes that "'checkstate' is not defined" | ||
"evil" : true, | ||
"expr" : false, | ||
"funcscope" : false, | ||
"globalstrict" : false, | ||
"iterator" : false, | ||
"lastsemic" : false, | ||
"laxbreak" : false, | ||
"laxcomma" : false, | ||
"loopfunc" : false, | ||
"maxerr" : 50, | ||
"moz" : false, | ||
"multistr" : false, | ||
"notypeof" : false, | ||
"onecase" : false, | ||
"proto" : false, | ||
"regexdash" : false, | ||
"scripturl" : false, | ||
"shadow" : false, | ||
"sub" : false, | ||
"supernew" : false, | ||
"validthis" : false, | ||
"noyield" : false, | ||
|
||
// ==================== // | ||
// === Environments === // | ||
// ==================== // | ||
|
||
"browser" : true, | ||
"couch" : false, | ||
"devel" : true, | ||
"dojo" : false, | ||
"jquery" : true, | ||
"mootools" : false, | ||
"node" : false, | ||
"nonstandard" : false, | ||
"phantom" : false, | ||
"prototypejs" : false, | ||
"rhino" : false, | ||
"worker" : false, | ||
"wsh" : false, | ||
"yui" : false, | ||
|
||
// ============================ // | ||
// === Undocumented Options === // | ||
// ============================ // | ||
|
||
// Extra globals. | ||
"globals" : { | ||
//"exampleVar" : true, | ||
//"anotherCoolGlobal" : false, | ||
//"iLoveDouglas" : false | ||
} | ||
} |
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,78 @@ | ||
<?php | ||
namespace In2code\In2publishCore\Command; | ||
|
||
/*************************************************************** | ||
* Copyright notice | ||
* | ||
* (c) 2015 in2code.de | ||
* Alex Kellner <alexander.kellner@in2code.de>, | ||
* Oliver Eglseder <oliver.eglseder@in2code.de> | ||
* | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
* free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The GNU General Public License can be found at | ||
* http://www.gnu.org/copyleft/gpl.html. | ||
* | ||
* This script is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* This copyright notice MUST APPEAR in all copies of the script! | ||
***************************************************************/ | ||
|
||
use In2code\In2publishCore\Service\Context\ContextService; | ||
use TYPO3\CMS\Core\Log\Logger; | ||
use TYPO3\CMS\Core\Log\LogManager; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
use TYPO3\CMS\Extbase\Mvc\Controller\CommandController; | ||
|
||
/** | ||
* Class AbstractCommandController | ||
*/ | ||
abstract class AbstractCommandController extends CommandController | ||
{ | ||
const EXIT_NO_CONTEXT = 2110; | ||
const EXIT_WRONG_CONTEXT = 2111; | ||
|
||
/** | ||
* @var Logger | ||
*/ | ||
protected $logger = null; | ||
|
||
/** | ||
* AbstractCommandController constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->logger = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogManager')->getLogger(get_class($this)); | ||
} | ||
|
||
/** | ||
* Checks if the IN2PUBLISH_CONTEXT environment variable has been set | ||
* | ||
* @SuppressWarnings(PHPMD.ExitExpression) | ||
*/ | ||
protected function callCommandMethod() | ||
{ | ||
$context = getenv(ContextService::ENV_VAR_NAME); | ||
if (empty($context)) { | ||
$this->logger->notice( | ||
'The command controller ' . get_class($this) . ' was called over ' | ||
. php_sapi_name() . ' without the IN2PUBLISH_CONTEXT environment variable' | ||
); | ||
$this->outputLine( | ||
'You have to specify a context before running this ("Local" or "Foreign"). Example: ' | ||
. 'command like "IN2PUBLISH_CONTEXT=Local ./typo3/cli_dispatch.phpsh extbase help"' | ||
); | ||
$this->sendAndExit(self::EXIT_NO_CONTEXT); | ||
} | ||
parent::callCommandMethod(); | ||
} | ||
} |
Oops, something went wrong.