Skip to content

Commit

Permalink
[TASK] Add editorconf and code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
elbebass committed Mar 4, 2022
1 parent 635b4cd commit 227793c
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 88 deletions.
51 changes: 51 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

# TS/JS-Files
[*.{ts,js}]
indent_size = 2

# JSON-Files
[*.json]
indent_style = tab

# ReST-Files
[*.rst]
indent_size = 3

# YAML-Files
[*.{yaml,yml}]
indent_size = 2

# package.json
# .travis.yml
[{package.json,.travis.yml}]
indent_size = 2

# TypoScript
[*.{typoscript,tsconfig}]
indent_size = 2

# XLF-Files
[*.xlf]
indent_style = tab

# SQL-Files
[*.sql]
indent_style = tab
indent_size = 2

# .htaccess
[{_.htaccess,.htaccess}]
indent_style = tab
8 changes: 4 additions & 4 deletions Configuration/PageTSconfig/Suggest.tsconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Translate currency labels in suggestions
# ***************************************************************************************
[siteLanguage("twoLetterIsoCode") == "cs"]
TCEFORM.sys_language.static_lang_isocode.suggest.default.additionalSearchFields = lg_name_cs
TCEFORM.sys_language.static_lang_isocode.suggest.default.orderBy = lg_name_cs
TCEFORM.static_countries.cn_currency_uid.suggest.default.additionalSearchFields = cu_name_cs
TCEFORM.static_countries.cn_currency_uid.suggest.default.orderBy = cu_name_cs
TCEFORM.sys_language.static_lang_isocode.suggest.default.additionalSearchFields = lg_name_cs
TCEFORM.sys_language.static_lang_isocode.suggest.default.orderBy = lg_name_cs
TCEFORM.static_countries.cn_currency_uid.suggest.default.additionalSearchFields = cu_name_cs
TCEFORM.static_countries.cn_currency_uid.suggest.default.orderBy = cu_name_cs
[global]
82 changes: 41 additions & 41 deletions Configuration/TypoScript/Extbase/setup.typoscript
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
config.tx_extbase {
persistence {
classes {
SJBR\StaticInfoTables\Domain\Model\Country {
mapping {
columns {
cn_short_cs.mapOnProperty = shortNameCs
cn_official_name_cs.mapOnProperty = officialNameCs
cn_capital_cs.mapOnProperty = capitalCs
}
}
}
persistence {
classes {
SJBR\StaticInfoTables\Domain\Model\Country {
mapping {
columns {
cn_short_cs.mapOnProperty = shortNameCs
cn_official_name_cs.mapOnProperty = officialNameCs
cn_capital_cs.mapOnProperty = capitalCs
}
}
}

SJBR\StaticInfoTables\Domain\Model\CountryZone {
mapping {
columns {
zn_name_cs.mapOnProperty = nameCs
}
}
}
SJBR\StaticInfoTables\Domain\Model\CountryZone {
mapping {
columns {
zn_name_cs.mapOnProperty = nameCs
}
}
}

SJBR\StaticInfoTables\Domain\Model\Currency {
mapping {
columns {
cu_name_cs.mapOnProperty = nameCs
cu_sub_name_cs.mapOnProperty = subdivisionNameCs
}
}
}
SJBR\StaticInfoTables\Domain\Model\Currency {
mapping {
columns {
cu_name_cs.mapOnProperty = nameCs
cu_sub_name_cs.mapOnProperty = subdivisionNameCs
}
}
}

SJBR\StaticInfoTables\Domain\Model\Language {
mapping {
columns {
lg_name_cs.mapOnProperty = nameCs
}
}
}
SJBR\StaticInfoTables\Domain\Model\Language {
mapping {
columns {
lg_name_cs.mapOnProperty = nameCs
}
}
}

SJBR\StaticInfoTables\Domain\Model\Territory {
mapping {
columns {
tr_name_cs.mapOnProperty = nameCs
}
}
}
SJBR\StaticInfoTables\Domain\Model\Territory {
mapping {
columns {
tr_name_cs.mapOnProperty = nameCs
}
}
}
}
}
}
}
84 changes: 42 additions & 42 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"name": "leuchtfeuer/static-info-tables-cs",
"description": "Czech (cs) language pack for the Static Info Tables providing localized names for countries, currencies and so on.",
"type": "typo3-cms-extension",
"license": "GPL-2.0-or-later",
"homepage": "https://www.Leuchtfeuer.com",
"authors": [
{
"name": "Florian Wessels",
"role": "Developer",
"email": "flo.wessels@gmail.com"
},
{
"name": "Max Rösch",
"role": "Developer",
"email": "m.roesch@Leuchtfeuer.com",
"homepage": "https://www.Leuchtfeuer.com"
}
],
"support": {
"issues": "https://github.com/Leuchtfeuer/static-info-tables-cs/issues",
"source": "https://github.com/Leuchtfeuer/static-info-tables-cs",
"email": "dev@Leuchtfeuer.com"
},
"replace": {
"bitmotion/static-info-tables-cs": "self.version",
"typo3-ter/static-info-tables-cs": "self.version"
},
"require": {
"typo3/cms-core": "^9.5 || ^10.4",
"typo3/cms-extbase": "^9.5 || ^10.4",
"sjbr/static-info-tables": "^6.9"
},
"autoload": {
"psr-4": {
"Bitmotion\\StaticInfoTablesCs\\": "Classes/"
}
},
"extra": {
"typo3/cms": {
"extension-key": "static_info_tables_cs"
}
}
"name": "leuchtfeuer/static-info-tables-cs",
"description": "Czech (cs) language pack for the Static Info Tables providing localized names for countries, currencies and so on.",
"type": "typo3-cms-extension",
"license": "GPL-2.0-or-later",
"homepage": "https://www.Leuchtfeuer.com",
"authors": [
{
"name": "Florian Wessels",
"role": "Developer",
"email": "flo.wessels@gmail.com"
},
{
"name": "Max Rösch",
"role": "Developer",
"email": "m.roesch@Leuchtfeuer.com",
"homepage": "https://www.Leuchtfeuer.com"
}
],
"support": {
"issues": "https://github.com/Leuchtfeuer/static-info-tables-cs/issues",
"source": "https://github.com/Leuchtfeuer/static-info-tables-cs",
"email": "dev@Leuchtfeuer.com"
},
"replace": {
"bitmotion/static-info-tables-cs": "self.version",
"typo3-ter/static-info-tables-cs": "self.version"
},
"require": {
"typo3/cms-core": "^9.5 || ^10.4",
"typo3/cms-extbase": "^9.5 || ^10.4",
"sjbr/static-info-tables": "^6.9"
},
"autoload": {
"psr-4": {
"Bitmotion\\StaticInfoTablesCs\\": "Classes/"
}
},
"extra": {
"typo3/cms": {
"extension-key": "static_info_tables_cs"
}
}
}
2 changes: 1 addition & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
defined('TYPO3_MODE') || die;

call_user_func(
function($extensionKey) {
function ($extensionKey) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $extensionKey . '/Configuration/TypoScript/Extbase/setup.typoscript">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $extensionKey . '/Configuration/PageTSconfig/Suggest.tsconfig">');
}, \Bitmotion\StaticInfoTablesCs\Extension::EXTENSION_KEY
Expand Down

0 comments on commit 227793c

Please sign in to comment.