Skip to content

Commit 2d4850f

Browse files
committed
[TASK] TypoScript cleanup
Thx to typoscript linter
1 parent 7eb2f3e commit 2d4850f

File tree

9 files changed

+1402
-1400
lines changed

9 files changed

+1402
-1400
lines changed

.project/tests/typoscript-lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
paths:
2+
- ./
3+
filePatterns:
4+
- "*.tsconfig"
5+
- "*.typoscript"
6+
sniffs:
7+
- class: Indentation
8+
parameters:
9+
useSpaces: true
10+
indentPerLevel: 2
11+
indentConditions: false
12+
- class: DeadCode
13+
disabled: true
14+
- class: OperatorWhitespace
15+
- class: RepeatingRValue
16+
disabled: true
17+
- class: EmptySection
18+
- class: NestingConsistency
19+
parameters:
20+
commonPathPrefixThreshold: 1
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
mod.wizards.newContentElement.wizardItems.plugins {
2-
elements {
3-
powermail {
4-
iconIdentifier = extension-powermail-main
5-
title = LLL:EXT:powermail/Resources/Private/Language/locallang_mod.xlf:pluginWizardTitle
6-
description = LLL:EXT:powermail/Resources/Private/Language/locallang_mod.xlf:pluginWizardDescription
7-
tt_content_defValues {
8-
CType = list
9-
list_type = powermail_pi1
10-
}
11-
}
12-
}
2+
elements {
3+
powermail {
4+
iconIdentifier = extension-powermail-main
5+
title = LLL:EXT:powermail/Resources/Private/Language/locallang_mod.xlf:pluginWizardTitle
6+
description = LLL:EXT:powermail/Resources/Private/Language/locallang_mod.xlf:pluginWizardDescription
7+
tt_content_defValues {
8+
CType = list
9+
list_type = powermail_pi1
10+
}
11+
}
12+
}
1313
}

Configuration/TSConfig/WebList.typoscript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ mod.web_list.tableDisplayOrder {
22
tx_powermail_domain_model_answer {
33
after = tx_powermail_domain_model_mail
44
}
5+
56
tx_powermail_domain_model_page {
67
after = tx_powermail_domain_model_form
78
}
9+
810
tx_powermail_domain_model_field {
911
after = tx_powermail_domain_model_page
1012
}
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
plugin.tx_powermail {
2-
settings {
3-
BasicCss = EXT:powermail/Resources/Public/Css/Basic.css
2+
settings {
3+
BasicCss = EXT:powermail/Resources/Public/Css/Basic.css
44

5-
styles {
6-
bootstrap {
7-
# cat=powermail_styles//0000; type=boolean; label= Enable loading of bootstrap.min.css from powermail
8-
addBootstrap = 0
5+
styles {
6+
bootstrap {
7+
# cat=powermail_styles//0000; type=boolean; label= Enable loading of bootstrap.min.css from powermail
8+
addBootstrap = 0
99

10-
# cat=powermail_styles//0010; type=text; label= Define path Bootsrap.css
11-
bootstrapPath = EXT:powermail/Resources/Public/Css/Bootstrap.css
10+
# cat=powermail_styles//0010; type=text; label= Define path Bootsrap.css
11+
bootstrapPath = EXT:powermail/Resources/Public/Css/Bootstrap.css
1212

13-
# cat=powermail_styles//0020; type=int+; label= Number of columns
14-
numberOfColumns = 2
13+
# cat=powermail_styles//0020; type=int+; label= Number of columns
14+
numberOfColumns = 2
1515

16-
# cat=powermail_styles//0100; type=text; label= Framework classname(s) for row containers
17-
rowClasses = row
16+
# cat=powermail_styles//0100; type=text; label= Framework classname(s) for row containers
17+
rowClasses = row
1818

19-
# cat=powermail_styles//0105; type=text; label= Framework classname(s) for form "form-horizontal"
20-
formClasses = form-horizontal
19+
# cat=powermail_styles//0105; type=text; label= Framework classname(s) for form "form-horizontal"
20+
formClasses = form-horizontal
2121

22-
# cat=powermail_styles//0110; type=text; label= Framework classname(s) for overall wrapping container of a field/label pair e.g. "row form-group"
23-
fieldAndLabelWrappingClasses = form-group col-md-6
22+
# cat=powermail_styles//0110; type=text; label= Framework classname(s) for overall wrapping container of a field/label pair e.g. "row form-group"
23+
fieldAndLabelWrappingClasses = form-group col-md-6
2424

25-
# cat=powermail_styles//0120; type=text; label= Framework classname(s) for wrapping container of a field e.g. "row form-group"
26-
fieldWrappingClasses = col-sm-10
25+
# cat=powermail_styles//0120; type=text; label= Framework classname(s) for wrapping container of a field e.g. "row form-group"
26+
fieldWrappingClasses = col-sm-10
2727

28-
# cat=powermail_styles//0130; type=text; label= Framework classname(s) for fieldlabels e.g. "col-md-2 col-md-3"
29-
labelClasses = control-label col-sm-2
28+
# cat=powermail_styles//0130; type=text; label= Framework classname(s) for fieldlabels e.g. "col-md-2 col-md-3"
29+
labelClasses = control-label col-sm-2
3030

31-
# cat=powermail_styles//0140; type=text; label= Framework classname(s) for fields e.g. "form-control"
32-
fieldClasses = form-control
31+
# cat=powermail_styles//0140; type=text; label= Framework classname(s) for fields e.g. "form-control"
32+
fieldClasses = form-control
3333

34-
# cat=powermail_styles//0150; type=text; label= Framework classname(s) for fields with an offset e.g. "col-sm-offset-2"
35-
offsetClasses = col-sm-offset-2
34+
# cat=powermail_styles//0150; type=text; label= Framework classname(s) for fields with an offset e.g. "col-sm-offset-2"
35+
offsetClasses = col-sm-offset-2
3636

37-
# cat=powermail_styles//0160; type=text; label= Framework classname(s) especially for radiobuttons e.g. "radio"
38-
radioClasses = radio
37+
# cat=powermail_styles//0160; type=text; label= Framework classname(s) especially for radiobuttons e.g. "radio"
38+
radioClasses = radio
3939

40-
# cat=powermail_styles//0170; type=text; label= Framework classname(s) especially for checkboxes e.g. "check"
41-
checkClasses = checkbox
40+
# cat=powermail_styles//0170; type=text; label= Framework classname(s) especially for checkboxes e.g. "check"
41+
checkClasses = checkbox
4242

43-
# cat=powermail_styles//0180; type=text; label= Framework classname(s) for the submit button e.g. "btn btn-primary"
44-
submitClasses = btn btn-primary
43+
# cat=powermail_styles//0180; type=text; label= Framework classname(s) for the submit button e.g. "btn btn-primary"
44+
submitClasses = btn btn-primary
4545

46-
# cat=powermail_styles//0190; type=text; label= Framework classname(s) for "create" message after submit
47-
createClasses = powermail_create
46+
# cat=powermail_styles//0190; type=text; label= Framework classname(s) for "create" message after submit
47+
createClasses = powermail_create
4848

4949
# cat=powermail_styles//0200; type=boolean; label= Activate bootstrap classes (constants in {$plugin.tx_powermail.settings.styles.bootstrap.*} override {$plugin.tx_powermail.settings.styles.framework.*})
50-
important = 1
51-
}
52-
}
53-
}
50+
important = 1
51+
}
52+
}
53+
}
5454
}

Configuration/TypoScript/BootstrapClassesAndLayout/setup.typoscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ page.includeCSS.powermailBasicCss = {$plugin.tx_powermail.settings.BasicCss}
22

33
# add bootstrap.min.css from maxcdn.bootstrapcdn.com
44
[{$plugin.tx_powermail.settings.styles.bootstrap.addBootstrap} == 1]
5-
page.includeCSS.powermailBootstrapPath = {$plugin.tx_powermail.settings.styles.bootstrap.bootstrapPath}
5+
page.includeCSS.powermailBootstrapPath = {$plugin.tx_powermail.settings.styles.bootstrap.bootstrapPath}
66
[end]
77

88
# Overwrite classes if bootstrap classes given

0 commit comments

Comments
 (0)