mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 20:38:46 +00:00
More code cleanup
This commit is contained in:
@@ -191,7 +191,7 @@ return [
|
||||
// 'si_LK' => ['name_locale' => 'සිංහල', 'name_english' => 'Sinhala (Sri Lanka)'],
|
||||
'sk_SK' => ['name_locale' => 'Slovenčina', 'name_english' => 'Slovak'],
|
||||
'sl_SI' => ['name_locale' => 'Slovenian', 'name_english' => 'Slovenian'],
|
||||
//// 'sr_CS' => ['name_locale' => 'Serbian (Latin)', 'name_english' => 'Serbian (Latin)'],
|
||||
// // 'sr_CS' => ['name_locale' => 'Serbian (Latin)', 'name_english' => 'Serbian (Latin)'],
|
||||
'sv_SE' => ['name_locale' => 'Svenska', 'name_english' => 'Swedish'],
|
||||
// // 'tlh_AA' => ['name_locale' => 'tlhIngan Hol', 'name_english' => 'Klingon'],
|
||||
'tr_TR' => ['name_locale' => 'Türkçe', 'name_english' => 'Turkish'],
|
||||
@@ -252,41 +252,41 @@ return [
|
||||
],
|
||||
'available_dark_modes' => ['light', 'dark', 'browser'],
|
||||
'bill_reminder_periods' => [90, 30, 14, 7, 0],
|
||||
'valid_view_ranges' => ['1D', '1W', '1M', '3M', '6M', '1Y',],
|
||||
'valid_view_ranges' => ['1D', '1W', '1M', '3M', '6M', '1Y'],
|
||||
'valid_url_protocols' => envNonEmpty('VALID_URL_PROTOCOLS', 'http,https,ftp,ftps,mailto'),
|
||||
'allowedMimes' => [
|
||||
/* plain files */
|
||||
// plain files
|
||||
'text/plain',
|
||||
|
||||
/* images */
|
||||
// images
|
||||
'image/jpeg',
|
||||
'image/svg+xml',
|
||||
'image/png',
|
||||
'image/heic',
|
||||
'image/heic-sequence',
|
||||
|
||||
/* PDF */
|
||||
// PDF
|
||||
'application/pdf',
|
||||
|
||||
/* Generic upload */
|
||||
// Generic upload
|
||||
'application/octet-stream',
|
||||
|
||||
/* MS word */
|
||||
// MS word
|
||||
'application/msword',
|
||||
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
||||
'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
|
||||
/* MS excel */
|
||||
// MS excel
|
||||
'application/vnd.ms-excel',
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
|
||||
/* MS powerpoint */
|
||||
// MS powerpoint
|
||||
'application/vnd.ms-powerpoint',
|
||||
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
||||
'application/vnd.openxmlformats-officedocument.presentationml.template',
|
||||
'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
|
||||
/* iWork */
|
||||
// iWork
|
||||
'application/x-iwork-pages-sffpages',
|
||||
/* open office */
|
||||
// open office
|
||||
'application/vnd.sun.xml.writer',
|
||||
'application/vnd.sun.xml.writer.template',
|
||||
'application/vnd.sun.xml.writer.global',
|
||||
@@ -318,15 +318,15 @@ return [
|
||||
'application/vnd.oasis.opendocument.database',
|
||||
'application/vnd.oasis.opendocument.image',
|
||||
|
||||
/* EML */
|
||||
// EML
|
||||
'message/rfc822',
|
||||
|
||||
/* JSON */
|
||||
// JSON
|
||||
'application/json',
|
||||
],
|
||||
'accountRoles' => ['defaultAsset', 'sharedAsset', 'savingAsset', 'ccAsset', 'cashWalletAsset'],
|
||||
'valid_liabilities' => [AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE],
|
||||
'ccTypes' => ['monthlyFull' => 'Full payment every month',],
|
||||
'ccTypes' => ['monthlyFull' => 'Full payment every month'],
|
||||
'credit_card_types' => ['monthlyFull'],
|
||||
|
||||
// "period must be in this list" values
|
||||
@@ -487,8 +487,6 @@ return [
|
||||
'userGroupAccount' => UserGroupAccount::class,
|
||||
'userGroupBill' => UserGroupBill::class,
|
||||
'userGroup' => UserGroup::class,
|
||||
|
||||
|
||||
],
|
||||
'rule-actions' => [
|
||||
'set_category' => SetCategory::class,
|
||||
@@ -545,7 +543,6 @@ return [
|
||||
'range' => 200,
|
||||
],
|
||||
|
||||
|
||||
// expected source types for each transaction type, in order of preference.
|
||||
'expected_source_types' => [
|
||||
'source' => [
|
||||
@@ -637,7 +634,6 @@ return [
|
||||
AccountType::RECONCILIATION => [AccountType::ASSET],
|
||||
AccountType::REVENUE => [AccountType::ASSET, AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE],
|
||||
AccountType::LIABILITY_CREDIT => [AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE],
|
||||
|
||||
],
|
||||
'destination' => [
|
||||
AccountType::ASSET => [
|
||||
@@ -679,7 +675,7 @@ return [
|
||||
],
|
||||
AccountType::RECONCILIATION => [AccountType::ASSET],
|
||||
AccountType::REVENUE => [], // is not allowed as a destination
|
||||
AccountType::LIABILITY_CREDIT => [],// is not allowed as a destination
|
||||
AccountType::LIABILITY_CREDIT => [], // is not allowed as a destination
|
||||
],
|
||||
],
|
||||
// depending on the account type, return the allowed transaction types:
|
||||
@@ -749,7 +745,6 @@ return [
|
||||
AccountType::RECONCILIATION => [TransactionTypeModel::RECONCILIATION],
|
||||
AccountType::LIABILITY_CREDIT => [], // is not allowed as a destination
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
// having the source + dest will tell you the transaction type.
|
||||
@@ -914,5 +909,5 @@ return [
|
||||
'allowed_sort_parameters' => ['order', 'name', 'iban'],
|
||||
|
||||
// preselected account lists possibilities:
|
||||
'preselected_accounts' => ['all','assets','liabilities'],
|
||||
'preselected_accounts' => ['all', 'assets', 'liabilities'],
|
||||
];
|
||||
|
Reference in New Issue
Block a user