Various fixes and cleanup

This commit is contained in:
James Cole 2023-01-29 15:29:42 +01:00
parent 1cbb644d65
commit 413a4f3d9c
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
276 changed files with 3119 additions and 2894 deletions

View File

@ -780,16 +780,16 @@
},
{
"name": "symfony/console",
"version": "v6.2.3",
"version": "v6.2.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "0f579613e771dba2dbb8211c382342a641f5da06"
"reference": "3e294254f2191762c1d137aed4b94e966965e985"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/0f579613e771dba2dbb8211c382342a641f5da06",
"reference": "0f579613e771dba2dbb8211c382342a641f5da06",
"url": "https://api.github.com/repos/symfony/console/zipball/3e294254f2191762c1d137aed4b94e966965e985",
"reference": "3e294254f2191762c1d137aed4b94e966965e985",
"shasum": ""
},
"require": {
@ -856,7 +856,7 @@
"terminal"
],
"support": {
"source": "https://github.com/symfony/console/tree/v6.2.3"
"source": "https://github.com/symfony/console/tree/v6.2.5"
},
"funding": [
{
@ -872,7 +872,7 @@
"type": "tidelift"
}
],
"time": "2022-12-28T14:26:22+00:00"
"time": "2023-01-01T08:38:09+00:00"
},
{
"name": "symfony/deprecation-contracts",
@ -943,16 +943,16 @@
},
{
"name": "symfony/event-dispatcher",
"version": "v6.2.2",
"version": "v6.2.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
"reference": "3ffeb31139b49bf6ef0bc09d1db95eac053388d1"
"reference": "f02d108b5e9fd4a6245aa73a9d2df2ec060c3e68"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/3ffeb31139b49bf6ef0bc09d1db95eac053388d1",
"reference": "3ffeb31139b49bf6ef0bc09d1db95eac053388d1",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f02d108b5e9fd4a6245aa73a9d2df2ec060c3e68",
"reference": "f02d108b5e9fd4a6245aa73a9d2df2ec060c3e68",
"shasum": ""
},
"require": {
@ -1006,7 +1006,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/event-dispatcher/tree/v6.2.2"
"source": "https://github.com/symfony/event-dispatcher/tree/v6.2.5"
},
"funding": [
{
@ -1022,7 +1022,7 @@
"type": "tidelift"
}
],
"time": "2022-12-14T16:11:27+00:00"
"time": "2023-01-01T08:38:09+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
@ -1105,16 +1105,16 @@
},
{
"name": "symfony/filesystem",
"version": "v6.2.0",
"version": "v6.2.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
"reference": "50b2523c874605cf3d4acf7a9e2b30b6a440a016"
"reference": "e59e8a4006afd7f5654786a83b4fcb8da98f4593"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/50b2523c874605cf3d4acf7a9e2b30b6a440a016",
"reference": "50b2523c874605cf3d4acf7a9e2b30b6a440a016",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/e59e8a4006afd7f5654786a83b4fcb8da98f4593",
"reference": "e59e8a4006afd7f5654786a83b4fcb8da98f4593",
"shasum": ""
},
"require": {
@ -1148,7 +1148,7 @@
"description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/filesystem/tree/v6.2.0"
"source": "https://github.com/symfony/filesystem/tree/v6.2.5"
},
"funding": [
{
@ -1164,20 +1164,20 @@
"type": "tidelift"
}
],
"time": "2022-11-20T13:01:27+00:00"
"time": "2023-01-20T17:45:48+00:00"
},
{
"name": "symfony/finder",
"version": "v6.2.3",
"version": "v6.2.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "81eefbddfde282ee33b437ba5e13d7753211ae8e"
"reference": "c90dc446976a612e3312a97a6ec0069ab0c2099c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/81eefbddfde282ee33b437ba5e13d7753211ae8e",
"reference": "81eefbddfde282ee33b437ba5e13d7753211ae8e",
"url": "https://api.github.com/repos/symfony/finder/zipball/c90dc446976a612e3312a97a6ec0069ab0c2099c",
"reference": "c90dc446976a612e3312a97a6ec0069ab0c2099c",
"shasum": ""
},
"require": {
@ -1212,7 +1212,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/finder/tree/v6.2.3"
"source": "https://github.com/symfony/finder/tree/v6.2.5"
},
"funding": [
{
@ -1228,20 +1228,20 @@
"type": "tidelift"
}
],
"time": "2022-12-22T17:55:15+00:00"
"time": "2023-01-20T17:45:48+00:00"
},
{
"name": "symfony/options-resolver",
"version": "v6.2.0",
"version": "v6.2.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/options-resolver.git",
"reference": "d28f02acde71ff75e957082cd36e973df395f626"
"reference": "e8324d44f5af99ec2ccec849934a242f64458f86"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/d28f02acde71ff75e957082cd36e973df395f626",
"reference": "d28f02acde71ff75e957082cd36e973df395f626",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/e8324d44f5af99ec2ccec849934a242f64458f86",
"reference": "e8324d44f5af99ec2ccec849934a242f64458f86",
"shasum": ""
},
"require": {
@ -1279,7 +1279,7 @@
"options"
],
"support": {
"source": "https://github.com/symfony/options-resolver/tree/v6.2.0"
"source": "https://github.com/symfony/options-resolver/tree/v6.2.5"
},
"funding": [
{
@ -1295,7 +1295,7 @@
"type": "tidelift"
}
],
"time": "2022-11-02T09:08:04+00:00"
"time": "2023-01-01T08:38:09+00:00"
},
{
"name": "symfony/polyfill-ctype",
@ -1791,16 +1791,16 @@
},
{
"name": "symfony/process",
"version": "v6.2.0",
"version": "v6.2.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
"reference": "ba6e55359f8f755fe996c58a81e00eaa67a35877"
"reference": "9ead139f63dfa38c4e4a9049cc64a8b2748c83b7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/ba6e55359f8f755fe996c58a81e00eaa67a35877",
"reference": "ba6e55359f8f755fe996c58a81e00eaa67a35877",
"url": "https://api.github.com/repos/symfony/process/zipball/9ead139f63dfa38c4e4a9049cc64a8b2748c83b7",
"reference": "9ead139f63dfa38c4e4a9049cc64a8b2748c83b7",
"shasum": ""
},
"require": {
@ -1832,7 +1832,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/process/tree/v6.2.0"
"source": "https://github.com/symfony/process/tree/v6.2.5"
},
"funding": [
{
@ -1848,7 +1848,7 @@
"type": "tidelift"
}
],
"time": "2022-11-02T09:08:04+00:00"
"time": "2023-01-01T08:38:09+00:00"
},
{
"name": "symfony/service-contracts",
@ -1937,16 +1937,16 @@
},
{
"name": "symfony/stopwatch",
"version": "v6.2.0",
"version": "v6.2.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/stopwatch.git",
"reference": "266636bb8f3fbdccc302491df7b3a1b9a8c238a7"
"reference": "00b6ac156aacffc53487c930e0ab14587a6607f6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/stopwatch/zipball/266636bb8f3fbdccc302491df7b3a1b9a8c238a7",
"reference": "266636bb8f3fbdccc302491df7b3a1b9a8c238a7",
"url": "https://api.github.com/repos/symfony/stopwatch/zipball/00b6ac156aacffc53487c930e0ab14587a6607f6",
"reference": "00b6ac156aacffc53487c930e0ab14587a6607f6",
"shasum": ""
},
"require": {
@ -1979,7 +1979,7 @@
"description": "Provides a way to profile code",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/stopwatch/tree/v6.2.0"
"source": "https://github.com/symfony/stopwatch/tree/v6.2.5"
},
"funding": [
{
@ -1995,20 +1995,20 @@
"type": "tidelift"
}
],
"time": "2022-09-28T16:00:52+00:00"
"time": "2023-01-01T08:36:55+00:00"
},
{
"name": "symfony/string",
"version": "v6.2.2",
"version": "v6.2.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
"reference": "863219fd713fa41cbcd285a79723f94672faff4d"
"reference": "b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/863219fd713fa41cbcd285a79723f94672faff4d",
"reference": "863219fd713fa41cbcd285a79723f94672faff4d",
"url": "https://api.github.com/repos/symfony/string/zipball/b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0",
"reference": "b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0",
"shasum": ""
},
"require": {
@ -2065,7 +2065,7 @@
"utf8"
],
"support": {
"source": "https://github.com/symfony/string/tree/v6.2.2"
"source": "https://github.com/symfony/string/tree/v6.2.5"
},
"funding": [
{
@ -2081,7 +2081,7 @@
"type": "tidelift"
}
],
"time": "2022-12-14T16:11:27+00:00"
"time": "2023-01-01T08:38:09+00:00"
}
],
"packages-dev": [],

View File

@ -73,12 +73,12 @@ class NetWorth implements NetWorthInterface
$cache->addProperty('net-worth-by-currency');
$cache->addProperty(implode(',', $accounts->pluck('id')->toArray()));
if ($cache->has()) {
// return $cache->get();
return $cache->get();
}
$netWorth = [];
$result = [];
Log::debug(sprintf('Now in getNetWorthByCurrency(%s)', $date->format('Y-m-d')));
// Log::debug(sprintf('Now in getNetWorthByCurrency(%s)', $date->format('Y-m-d')));
// get default currency
$default = app('amount')->getDefaultCurrencyByUser($this->user);
@ -89,16 +89,16 @@ class NetWorth implements NetWorthInterface
// get the preferred currency for this account
/** @var Account $account */
foreach ($accounts as $account) {
Log::debug(sprintf('Now at account #%d: "%s"', $account->id, $account->name));
// Log::debug(sprintf('Now at account #%d: "%s"', $account->id, $account->name));
$currencyId = (int)$this->accountRepository->getMetaValue($account, 'currency_id');
$currencyId = 0 === $currencyId ? $default->id : $currencyId;
Log::debug(sprintf('Currency ID is #%d', $currencyId));
// Log::debug(sprintf('Currency ID is #%d', $currencyId));
// balance in array:
$balance = $balances[$account->id] ?? '0';
Log::debug(sprintf('Balance for %s is %s', $date->format('Y-m-d'), $balance));
//Log::debug(sprintf('Balance for %s is %s', $date->format('Y-m-d'), $balance));
// always subtract virtual balance.
$virtualBalance = (string)$account->virtual_balance;
@ -106,14 +106,14 @@ class NetWorth implements NetWorthInterface
$balance = bcsub($balance, $virtualBalance);
}
Log::debug(sprintf('Balance corrected to %s because of virtual balance (%s)', $balance, $virtualBalance));
// Log::debug(sprintf('Balance corrected to %s because of virtual balance (%s)', $balance, $virtualBalance));
if (!array_key_exists($currencyId, $netWorth)) {
$netWorth[$currencyId] = '0';
}
$netWorth[$currencyId] = bcadd($balance, $netWorth[$currencyId]);
Log::debug(sprintf('Total net worth for currency #%d is %s', $currencyId, $netWorth[$currencyId]));
// Log::debug(sprintf('Total net worth for currency #%d is %s', $currencyId, $netWorth[$currencyId]));
}
ksort($netWorth);

View File

@ -90,7 +90,7 @@ trait ConvertsDataTypes
if (null === $string) {
return null;
}
if('' === $string) {
if ('' === $string) {
return '';
}
$search = [
@ -154,7 +154,7 @@ trait ConvertsDataTypes
if (null === $string) {
return null;
}
if('' === $string) {
if ('' === $string) {
return '';
}
return trim($string);

View File

@ -368,9 +368,10 @@ class User extends Authenticatable
* @return int
* @throws FireflyException
*/
public function getAdministrationId(): int {
public function getAdministrationId(): int
{
$groupId = (int)$this->user_group_id;
if(0 === $groupId) {
if (0 === $groupId) {
throw new FireflyException('User has no administration ID.');
}
return $groupId;

View File

@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
/*
* ValidatesAdministrationAccess.php
* Copyright (c) 2023 james@firefly-iii.org

View File

@ -46,7 +46,7 @@ trait CurrencyValidation
$transactions = $this->getTransactionsArray($validator);
foreach ($transactions as $index => $transaction) {
if(!is_array($transaction)) {
if (!is_array($transaction)) {
continue;
}
// if foreign amount is present, then the currency must be as well.

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "\u0417\u0430\u0434\u044a\u043b\u0436\u0435\u043d\u0438\u044f"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f",
"edit": "\u041f\u0440\u043e\u043c\u0435\u043d\u0438",
"delete": "\u0418\u0437\u0442\u0440\u0438\u0439",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Passius"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Accions",
"edit": "Editar",
"delete": "Eliminar",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Liabilities"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Akce",
"edit": "Upravit",
"delete": "Odstranit",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "G\u00e6ld"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Handlinger",
"edit": "Rediger",
"delete": "Slet",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Verbindlichkeiten"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Aktionen",
"edit": "Bearbeiten",
"delete": "L\u00f6schen",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "\u03a5\u03c0\u03bf\u03c7\u03c1\u03b5\u03ce\u03c3\u03b5\u03b9\u03c2"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "\u0395\u03bd\u03ad\u03c1\u03b3\u03b5\u03b9\u03b5\u03c2",
"edit": "\u0395\u03c0\u03b5\u03be\u03b5\u03c1\u03b3\u03b1\u03c3\u03af\u03b1",
"delete": "\u0394\u03b9\u03b1\u03b3\u03c1\u03b1\u03c6\u03ae",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Liabilities"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Actions",
"edit": "Edit",
"delete": "Delete",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Liabilities"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Actions",
"edit": "Edit",
"delete": "Delete",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Pasivos"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Acciones",
"edit": "Editar",
"delete": "Eliminar",
@ -72,7 +73,7 @@ export default {
"submission_options": "Submission options",
"apply_rules_checkbox": "Apply rules",
"fire_webhooks_checkbox": "Fire webhooks",
"newDeposit": "Nuevo deposito",
"newDeposit": "Nuevo ingreso",
"newWithdrawal": "Nuevo gasto",
"bills_paid": "Facturas pagadas",
"left_to_spend": "Disponible para gastar",
@ -161,7 +162,7 @@ export default {
"rule_action_clear_notes_choice": "Eliminar cualquier nota",
"rule_action_set_notes_choice": "Set notes to ..",
"rule_action_link_to_bill_choice": "Link to a bill ..",
"rule_action_convert_deposit_choice": "Convierta esta transacci\u00f3n en un dep\u00f3sito",
"rule_action_convert_deposit_choice": "Convertir transacci\u00f3n en un ingreso",
"rule_action_convert_withdrawal_choice": "Convierta esta transacci\u00f3n en un gasto",
"rule_action_convert_transfer_choice": "Convierta la transacci\u00f3n a una transferencia",
"placeholder": "[Placeholder]",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Lainat"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Toiminnot",
"edit": "Muokkaa",
"delete": "Poista",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Passifs"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Actions",
"edit": "Modifier",
"delete": "Supprimer",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Liabilities"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "M\u0171veletek",
"edit": "Szerkeszt\u00e9s",
"delete": "T\u00f6rl\u00e9s",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Kewajiban"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Tindakan",
"edit": "Edit",
"delete": "Menghapus",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Passivit\u00e0"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Azioni",
"edit": "Modifica",
"delete": "Elimina",
@ -84,10 +85,10 @@ export default {
"rule_trigger_source_account_ends_choice": "Il nome del conto di origine termina con..",
"rule_trigger_source_account_is_choice": "Il nome del conto di origine \u00e8..",
"rule_trigger_source_account_contains_choice": "Il nome del conto di origine contiene...",
"rule_trigger_account_id_choice": "Either account ID is exactly..",
"rule_trigger_account_id_choice": "Entrambi gli ID del conto sono esattamente..",
"rule_trigger_source_account_id_choice": "L'ID del conto di origine \u00e8 esattamente...",
"rule_trigger_destination_account_id_choice": "L'ID del conto di destinazione \u00e8 esattamente...",
"rule_trigger_account_is_cash_choice": "Either account is cash",
"rule_trigger_account_is_cash_choice": "Entrambi i conti sono contanti",
"rule_trigger_source_is_cash_choice": "Il conte di origine \u00e8 un conto (in contanti)",
"rule_trigger_destination_is_cash_choice": "Il conto destinazione \u00e8 un conto (in contanti)",
"rule_trigger_source_account_nr_starts_choice": "Il numero del conto di origine \/ l'IBAN inizia con...",
@ -105,13 +106,13 @@ export default {
"rule_trigger_transaction_type_choice": "La transazione \u00e8 di tipo...",
"rule_trigger_category_is_choice": "La categoria \u00e8...",
"rule_trigger_amount_less_choice": "L'importo \u00e8 inferiore a...",
"rule_trigger_amount_is_choice": "Amount is..",
"rule_trigger_amount_is_choice": "L'importo \u00e8..",
"rule_trigger_amount_more_choice": "L'importo \u00e8 pi\u00f9 di...",
"rule_trigger_description_starts_choice": "La descrizione inizia con...",
"rule_trigger_description_ends_choice": "La descrizione termina con...",
"rule_trigger_description_contains_choice": "La descrizione contiene...",
"rule_trigger_description_is_choice": "La descrizione \u00e8...",
"rule_trigger_date_on_choice": "Transaction date is..",
"rule_trigger_date_on_choice": "La data della transizione \u00e8..",
"rule_trigger_date_before_choice": "La data della transazione \u00e8 antecedente al...",
"rule_trigger_date_after_choice": "La data della transazione \u00e8 successiva al...",
"rule_trigger_created_at_on_choice": "Transaction was made on..",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "\u8ca0\u50b5"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "\u64cd\u4f5c",
"edit": "\u7de8\u96c6",
"delete": "\u524a\u9664",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Gjeld"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Handlinger",
"edit": "Rediger",
"delete": "Slett",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Passiva"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Acties",
"edit": "Wijzig",
"delete": "Verwijder",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Zobowi\u0105zania"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Akcje",
"edit": "Modyfikuj",
"delete": "Usu\u0144",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Passivos"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "A\u00e7\u00f5es",
"edit": "Editar",
"delete": "Apagar",
@ -74,12 +75,12 @@ export default {
"fire_webhooks_checkbox": "Acionar webhooks",
"newDeposit": "Novo dep\u00f3sito",
"newWithdrawal": "Nova despesa",
"bills_paid": "Contas pagas",
"bills_paid": "Faturas pagas",
"left_to_spend": "Restante para gastar",
"no_budget": "(sem or\u00e7amento)",
"budgeted": "Or\u00e7ado",
"spent": "Gasto",
"no_bill": "(sem conta)",
"no_bill": "(sem fatura)",
"rule_trigger_source_account_starts_choice": "Nome da conta de origem come\u00e7a com..",
"rule_trigger_source_account_ends_choice": "O nome da conta de origem termina com..",
"rule_trigger_source_account_is_choice": "Nome da conta de origem \u00e9..",
@ -126,7 +127,7 @@ export default {
"rule_trigger_has_no_budget_choice": "N\u00e3o tem or\u00e7amento",
"rule_trigger_has_any_budget_choice": "Tem um or\u00e7amento (qualquer)",
"rule_trigger_has_no_bill_choice": "N\u00e3o tem nenhuma conta",
"rule_trigger_has_any_bill_choice": "Tem uma conta (qualquer)",
"rule_trigger_has_any_bill_choice": "Tem uma fatura (qualquer)",
"rule_trigger_has_no_tag_choice": "N\u00e3o tem tag(s)",
"rule_trigger_has_any_tag_choice": "Tem uma ou mais tags (qualquer)",
"rule_trigger_any_notes_choice": "Tem notas (qualquer)",
@ -135,32 +136,32 @@ export default {
"rule_trigger_notes_contains_choice": "As notas cont\u00eam..",
"rule_trigger_notes_starts_choice": "As notas come\u00e7am com..",
"rule_trigger_notes_ends_choice": "As notas terminam com..",
"rule_trigger_bill_is_choice": "Conta \u00e9..",
"rule_trigger_bill_is_choice": "Fatura \u00e9..",
"rule_trigger_external_id_is_choice": "ID externo \u00e9..",
"rule_trigger_internal_reference_is_choice": "Refer\u00eancia interna \u00e9..",
"rule_trigger_journal_id_choice": "ID do livro de transa\u00e7\u00e3o \u00e9..",
"rule_trigger_any_external_url_choice": "A transa\u00e7\u00e3o tem um link externo",
"rule_trigger_no_external_url_choice": "A transa\u00e7\u00e3o n\u00e3o tem um link externo",
"rule_trigger_id_choice": "O identificador da transa\u00e7\u00e3o \u00e9..",
"rule_action_delete_transaction_choice": "DELETE transaction(!)",
"rule_action_set_category_choice": "Set category to ..",
"rule_action_delete_transaction_choice": "EXCLUIR transa\u00e7\u00e3o(!)",
"rule_action_set_category_choice": "Definir a categoria para ..",
"rule_action_clear_category_choice": "Limpar qualquer categoria",
"rule_action_set_budget_choice": "Set budget to ..",
"rule_action_set_budget_choice": "Definir or\u00e7amento para ..",
"rule_action_clear_budget_choice": "Limpar qualquer or\u00e7amento",
"rule_action_add_tag_choice": "Add tag ..",
"rule_action_remove_tag_choice": "Remove tag ..",
"rule_action_add_tag_choice": "Adicionar tag ..",
"rule_action_remove_tag_choice": "Remover tag ..",
"rule_action_remove_all_tags_choice": "Remover todas as tags",
"rule_action_set_description_choice": "Set description to ..",
"rule_action_update_piggy_choice": "Add \/ remove transaction amount in piggy bank ..",
"rule_action_append_description_choice": "Append description with ..",
"rule_action_prepend_description_choice": "Prepend description with ..",
"rule_action_set_source_account_choice": "Set source account to ..",
"rule_action_set_destination_account_choice": "Set destination account to ..",
"rule_action_append_notes_choice": "Append notes with ..",
"rule_action_prepend_notes_choice": "Prepend notes with ..",
"rule_action_set_description_choice": "Definir descri\u00e7\u00e3o para ..",
"rule_action_update_piggy_choice": "Adicionar \/ remover o valor da transa\u00e7\u00e3o no cofrinho ..",
"rule_action_append_description_choice": "Adicionar descri\u00e7\u00e3o com ..",
"rule_action_prepend_description_choice": "Adicionar (ao come\u00e7o) descri\u00e7\u00e3o com ..",
"rule_action_set_source_account_choice": "Definir a conta de origem para ..",
"rule_action_set_destination_account_choice": "Definir a conta de destino para ..",
"rule_action_append_notes_choice": "Adicionar notas com ..",
"rule_action_prepend_notes_choice": "Adicionar (ao come\u00e7o) notas com ..",
"rule_action_clear_notes_choice": "Remover quaisquer notas",
"rule_action_set_notes_choice": "Set notes to ..",
"rule_action_link_to_bill_choice": "Link to a bill ..",
"rule_action_set_notes_choice": "Defina notas para..",
"rule_action_link_to_bill_choice": "Vincular a uma fatura ..",
"rule_action_convert_deposit_choice": "Converter esta transfer\u00eancia em entrada",
"rule_action_convert_withdrawal_choice": "Converter esta transa\u00e7\u00e3o para uma sa\u00edda",
"rule_action_convert_transfer_choice": "Converter esta transa\u00e7\u00e3o para transfer\u00eancia",
@ -214,7 +215,7 @@ export default {
"budgets": "Or\u00e7amentos",
"subscriptions": "Assinaturas",
"welcome_back": "O que est\u00e1 acontecendo?",
"bills_to_pay": "Contas a pagar",
"bills_to_pay": "Faturas a pagar",
"net_worth": "Valor L\u00edquido",
"pref_last365": "Ano passado",
"pref_last90": "\u00daltimos 90 dias",

View File

@ -54,15 +54,16 @@ export default {
"title_deposit": "Receita \/ renda",
"title_transfer": "Transfer\u00eancias",
"title_transfers": "Transfer\u00eancias",
"asset_accounts": "Conta de activos",
"asset_accounts": "Conta de ativos",
"expense_accounts": "Conta de despesas",
"revenue_accounts": "Conta de receitas",
"liabilities_accounts": "Passivos"
"liabilities_accounts": "Conta de passivos"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "A\u00e7\u00f5es",
"edit": "Alterar",
"delete": "Apagar",
"edit": "Editar",
"delete": "Eliminar",
"reconcile": "Reconciliar",
"create_new_asset": "Criar nova conta de activos",
"confirm_action": "Confirmar a\u00e7\u00e3o",
@ -180,10 +181,10 @@ export default {
"repeat_freq_quarterly": "trimestral",
"repeat_freq_monthly": "mensalmente",
"repeat_freq_weekly": "semanalmente",
"single_split": "Dividir",
"single_split": "Divis\u00e3o",
"asset_accounts": "Conta de activos",
"expense_accounts": "Conta de despesas",
"liabilities_accounts": "Passivos",
"liabilities_accounts": "Conta de passivos",
"undefined_accounts": "Accounts",
"name": "Nome",
"revenue_accounts": "Conta de receitas",
@ -213,7 +214,7 @@ export default {
"balance": "Saldo",
"budgets": "Or\u00e7amentos",
"subscriptions": "Subscri\u00e7\u00f5es",
"welcome_back": "Tudo bem?",
"welcome_back": "Painel de controlo",
"bills_to_pay": "Faturas a pagar",
"net_worth": "Patrim\u00f3nio liquido",
"pref_last365": "Last year",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Liabilities"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Ac\u021biuni",
"edit": "Editeaz\u0103",
"delete": "\u0218terge",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "\u0414\u043e\u043b\u0433\u0438"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f",
"edit": "\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c",
"delete": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Liabilities"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Akcie",
"edit": "Upravi\u0165",
"delete": "Odstr\u00e1ni\u0165",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Obveznosti"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Dejanja",
"edit": "uredi",
"delete": "izbri\u0161i",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Skulder"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "\u00c5tg\u00e4rder",
"edit": "Redigera",
"delete": "Ta bort",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Sorumluluk"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "Eylemler",
"edit": "D\u00fczenle",
"delete": "Sil",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "\u0417\u043e\u0431\u043e\u0432'\u044f\u0437\u0430\u043d\u043d\u044f"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "\u0414\u0456\u0457",
"edit": "\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438",
"delete": "\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "N\u1ee3 ph\u1ea3i tr\u1ea3"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "H\u00e0nh \u0111\u1ed9ng",
"edit": "S\u1eeda",
"delete": "X\u00f3a",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "\u503a\u52a1"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "\u64cd\u4f5c",
"edit": "\u7f16\u8f91",
"delete": "\u5220\u9664",

View File

@ -60,6 +60,7 @@ export default {
"liabilities_accounts": "Liabilities"
},
"firefly": {
"administration_index": "Financial administration",
"actions": "\u64cd\u4f5c",
"edit": "\u7de8\u8f2f",
"delete": "\u522a\u9664",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -159,18 +159,20 @@ function listLengthInitial() {
function triggerList(e) {
"use strict";
var link = $(e.target);
var table = link.parent().parent().parent().parent();
var table = $(link.parent().parent().parent().parent());
if (table.attr('data-hidden') === 'no') {
// hide all elements, return false.
table.find('.overListLength').hide();
table.attr('data-hidden', 'yes');
link.text(showFullList);
return false;
}
if (table.attr('data-hidden') !== 'no') {
// show all, return false
table.find('.overListLength').show();
table.attr('data-hidden', 'no');
link.text(showOnlyTop);
return false;
}
return false;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -478,6 +478,7 @@
.table-hover > tbody > tr:hover {
background-color: #2a2f34;
}
.table > tfoot > tr > td.active {background: #353c42;}
.ti-autocomplete {background: #353c42 !important;color:#fff;}
.ti-input {border: 1px solid #353c42 !important;}
.vue-tags-input {background: #353c42 !important;}

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
<!DOCTYPE html><html><head><base href=/v3/ ><title>Firefly III</title><meta charset=utf-8><meta content="Personal finances manager" name=description><meta content="telephone=no" name=format-detection><meta content=no name=msapplication-tap-highlight><meta content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width" name=viewport><link href=favicon-32x32.png rel=icon sizes=32x32 type=image/png><link href=favicon-16x16.png rel=icon sizes=16x16 type=image/png><link href=maskable76.png rel=apple-touch-icon sizes=76x76><link href=maskable120.png rel=apple-touch-icon sizes=120x120><link href=maskable152.png rel=apple-touch-icon sizes=152x152><link href=apple-touch-icon.png rel=apple-touch-icon sizes=180x180><link color=#3c8dbc href=safari-pinned-tab.svg rel=mask-icon><link href=maskable192.png rel=icon sizes=192x192><link href=maskable128.png rel=icon sizes=128x128><link href=manifest.webmanifest rel=manifest><meta content=#1e6581 name=msapplication-TileColor><meta content=maskable512.png name=msapplication-TileImage><meta content=no name=msapplication-tap-highlight><meta content="Firefly III" name=application-name><meta content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir" name=robots><meta content=yes name=apple-mobile-web-app-capable><meta content="Firefly III" name=apple-mobile-web-app-title><meta content="Firefly III" name=application-name><meta content=#3c8dbc name=msapplication-TileColor><meta content="mstile-144x144.png?v=3e8AboOwbd" name=msapplication-TileImage><meta content=#3c8dbc name=theme-color><script defer src=/v3/js/vendor.d3cd5447.js></script><script defer src=/v3/js/app.10076613.js></script><link href=/v3/css/vendor.f7c69d0d.css rel=stylesheet><link href=/v3/css/app.50c7ba73.css rel=stylesheet></head><body><div id=q-app></div></body></html>
<!DOCTYPE html><html><head><base href=/v3/ ><title>Firefly III</title><meta charset=utf-8><meta content="Personal finances manager" name=description><meta content="telephone=no" name=format-detection><meta content=no name=msapplication-tap-highlight><meta content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width" name=viewport><link href=favicon-32x32.png rel=icon sizes=32x32 type=image/png><link href=favicon-16x16.png rel=icon sizes=16x16 type=image/png><link href=maskable76.png rel=apple-touch-icon sizes=76x76><link href=maskable120.png rel=apple-touch-icon sizes=120x120><link href=maskable152.png rel=apple-touch-icon sizes=152x152><link href=apple-touch-icon.png rel=apple-touch-icon sizes=180x180><link color=#3c8dbc href=safari-pinned-tab.svg rel=mask-icon><link href=maskable192.png rel=icon sizes=192x192><link href=maskable128.png rel=icon sizes=128x128><link href=manifest.webmanifest rel=manifest><meta content=#1e6581 name=msapplication-TileColor><meta content=maskable512.png name=msapplication-TileImage><meta content=no name=msapplication-tap-highlight><meta content="Firefly III" name=application-name><meta content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir" name=robots><meta content=yes name=apple-mobile-web-app-capable><meta content="Firefly III" name=apple-mobile-web-app-title><meta content="Firefly III" name=application-name><meta content=#3c8dbc name=msapplication-TileColor><meta content="mstile-144x144.png?v=3e8AboOwbd" name=msapplication-TileImage><meta content=#3c8dbc name=theme-color><script defer src=/v3/js/vendor.57fa50ec.js></script><script defer src=/v3/js/app.8c507c7d.js></script><link href=/v3/css/vendor.4da34a2f.css rel=stylesheet><link href=/v3/css/app.50c7ba73.css rel=stylesheet></head><body><div id=q-app></div></body></html>

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1019],{1019:(e,s,t)=>{t.r(s),t.d(s,{default:()=>V});var r=t(9835),i=t(6970);const l={class:"row q-mx-md"},o={class:"col-12"},a={class:"row q-mx-md q-mt-md"},u={class:"col-12"},n=(0,r._)("div",{class:"text-h6"},"Edit rule group",-1),d={class:"row"},c={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},m={class:"col-12"},p={class:"row"},b={class:"col-12 text-right"},f={class:"row"},g={class:"col-12 text-right"};function w(e,s,t,w,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),R=(0,r.up)("q-card-section"),x=(0,r.up)("q-input"),k=(0,r.up)("q-card"),C=(0,r.up)("q-checkbox"),S=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(S,null,{default:(0,r.w5)((()=>[(0,r._)("div",l,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,class:"bg-orange text-white","inline-actions":"",rounded:""},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",label:"Dismiss",onClick:v.dismissBanner},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",u,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[n])),_:1}),(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(x,{modelValue:_.title,"onUpdate:modelValue":s[0]||(s[0]=e=>_.title=e),disable:v.disabledInput,error:_.hasSubmissionErrors.title,"error-message":_.submissionErrors.title,label:e.$t("form.title"),"bottom-slots":"",clearable:"",outlined:"",type:"text"},null,8,["modelValue","disable","error","error-message","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",m,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",p,[(0,r._)("div",b,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitRuleGroup},null,8,["disable","onClick"])])]),(0,r._)("div",f,[(0,r._)("div",g,[(0,r.Wm)(C,{modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),disable:v.disabledInput,label:"Return here","left-label":""},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(6739),v=t(1569);class q{post(e,s){let t="/api/v1/rule_groups/"+e;return v.api.put(t,s)}}var E=t(3555);const R={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,title:"",store:null}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.store=(0,E.S)(),this.collectRuleGroup()},methods:{collectRuleGroup:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseRuleGroup(e)))},parseRuleGroup:function(e){this.title=e.data.data.attributes.title},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRuleGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRuleGroup();(new q).post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildRuleGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.store.refreshCacheKey(),!e)return;this.submitting=!1;let s={level:"success",text:"Rule group is is updated",show:!0,action:{show:!0,text:"Go to rule group",link:{name:"rule.index"}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var x=t(1639),k=t(9885),C=t(7128),S=t(8879),G=t(4458),W=t(3190),Z=t(6611),y=t(1221),I=t(9984),Q=t.n(I);const M=(0,x.Z)(R,[["render",w]]),V=M;Q()(R,"components",{QPage:k.Z,QBanner:C.Z,QBtn:S.Z,QCard:G.Z,QCardSection:W.Z,QInput:Z.Z,QCheckbox:y.Z})}}]);

1
public/v3/js/1019.ebc4d223.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[1019],{1019:(e,s,t)=>{t.r(s),t.d(s,{default:()=>V});var r=t(9835),i=t(6970);const l={class:"row q-mx-md"},o={class:"col-12"},a={class:"row q-mx-md q-mt-md"},u={class:"col-12"},n=(0,r._)("div",{class:"text-h6"},"Edit rule group",-1),d={class:"row"},c={class:"col-12 q-mb-xs"},h={class:"row q-mx-md"},m={class:"col-12"},p={class:"row"},b={class:"col-12 text-right"},g={class:"row"},f={class:"col-12 text-right"};function w(e,s,t,w,_,v){const q=(0,r.up)("q-btn"),E=(0,r.up)("q-banner"),R=(0,r.up)("q-card-section"),x=(0,r.up)("q-input"),k=(0,r.up)("q-card"),C=(0,r.up)("q-checkbox"),S=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(S,null,{default:(0,r.w5)((()=>[(0,r._)("div",l,[(0,r._)("div",o,[""!==_.errorMessage?((0,r.wg)(),(0,r.j4)(E,{key:0,class:"bg-orange text-white","inline-actions":"",rounded:""},{action:(0,r.w5)((()=>[(0,r.Wm)(q,{flat:"",label:"Dismiss",onClick:v.dismissBanner},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(_.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",u,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[n])),_:1}),(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(x,{modelValue:_.title,"onUpdate:modelValue":s[0]||(s[0]=e=>_.title=e),disable:v.disabledInput,error:_.hasSubmissionErrors.title,"error-message":_.submissionErrors.title,label:e.$t("form.title"),"bottom-slots":"",clearable:"",outlined:"",type:"text"},null,8,["modelValue","disable","error","error-message","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",h,[(0,r._)("div",m,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(R,null,{default:(0,r.w5)((()=>[(0,r._)("div",p,[(0,r._)("div",b,[(0,r.Wm)(q,{disable:v.disabledInput,color:"primary",label:"Update",onClick:v.submitRuleGroup},null,8,["disable","onClick"])])]),(0,r._)("div",g,[(0,r._)("div",f,[(0,r.Wm)(C,{modelValue:_.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>_.doReturnHere=e),disable:v.disabledInput,label:"Return here","left-label":""},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var _=t(6739),v=t(1569);class q{post(e,s){let t="/api/v1/rule_groups/"+e;return v.api.put(t,s)}}var E=t(3555);const R={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,title:"",store:null}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.store=(0,E.S)(),this.collectRuleGroup()},methods:{collectRuleGroup:function(){let e=new _.Z;e.get(this.id).then((e=>this.parseRuleGroup(e)))},parseRuleGroup:function(e){this.title=e.data.data.attributes.title},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRuleGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRuleGroup();(new q).post(this.id,e).catch(this.processErrors).then(this.processSuccess)},buildRuleGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(this.store.refreshCacheKey(),!e)return;this.submitting=!1;let s={level:"success",text:"Rule group is is updated",show:!0,action:{show:!0,text:"Go to rule group",link:{name:"rule.index"}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var x=t(1639),k=t(9885),C=t(7128),S=t(8879),G=t(4458),W=t(3190),Z=t(6611),y=t(1221),I=t(9984),Q=t.n(I);const M=(0,x.Z)(R,[["render",w]]),V=M;Q()(R,"components",{QPage:k.Z,QBanner:C.Z,QBtn:S.Z,QCard:G.Z,QCardSection:W.Z,QInput:Z.Z,QCheckbox:y.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1198],{1198:(e,s,t)=>{t.r(s),t.d(s,{default:()=>k});var r=t(9835),a=t(6970);const i={class:"row q-mx-md"},n={class:"col-12"},o={class:"text-h6"},u={class:"row"},l={class:"col-12 q-mb-xs"},c=(0,r._)("br",null,null,-1),p={class:"row q-mt-sm"},d={class:"col-12"};function w(e,s,t,w,g,h){const m=(0,r.up)("q-card-section"),b=(0,r.up)("q-card"),f=(0,r.up)("LargeTable"),_=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(_,null,{default:(0,r.w5)((()=>[(0,r._)("div",i,[(0,r._)("div",n,[(0,r.Wm)(b,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,(0,a.zw)(g.subscription.name),1)])),_:1}),(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",l,[(0,r.Uk)(" Name: "+(0,a.zw)(g.subscription.name),1),c])])])),_:1})])),_:1})])]),(0,r._)("div",p,[(0,r._)("div",d,[(0,r.Wm)(f,{ref:"table",loading:e.loading,page:g.page,rows:g.rows,"rows-number":g.rowsNumber,"rows-per-page":g.rowsPerPage,title:"Transactions",onOnRequest:h.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","onOnRequest"])])])])),_:1})}var g=t(4643),h=t(3684),m=t(3247);const b={name:"Show",data(){return{subscription:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getSubscription()},components:{LargeTable:g.Z},methods:{onRequest:function(e){this.page=e.page,this.getSubscription()},getSubscription:function(){let e=new h.Z;e.get(this.id).then((e=>this.parseSubscription(e))),this.loading=!0;const s=new m.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let t=s.parseResponse(e);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseSubscription:function(e){this.subscription={name:e.data.data.attributes.name}}}};var f=t(1639),_=t(9885),q=t(4458),v=t(3190),P=t(9984),S=t.n(P);const Z=(0,f.Z)(b,[["render",w]]),k=Z;S()(b,"components",{QPage:_.Z,QCard:q.Z,QCardSection:v.Z})}}]);

1
public/v3/js/1198.c340ed87.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[1198],{1198:(s,e,t)=>{t.r(e),t.d(e,{default:()=>k});var r=t(9835),a=t(6970);const i={class:"row q-mx-md"},n={class:"col-12"},o={class:"text-h6"},u={class:"row"},l={class:"col-12 q-mb-xs"},c=(0,r._)("br",null,null,-1),p={class:"row q-mt-sm"},d={class:"col-12"};function w(s,e,t,w,g,h){const b=(0,r.up)("q-card-section"),m=(0,r.up)("q-card"),f=(0,r.up)("LargeTable"),_=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(_,null,{default:(0,r.w5)((()=>[(0,r._)("div",i,[(0,r._)("div",n,[(0,r.Wm)(m,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(b,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,(0,a.zw)(g.subscription.name),1)])),_:1}),(0,r.Wm)(b,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",l,[(0,r.Uk)(" Name: "+(0,a.zw)(g.subscription.name),1),c])])])),_:1})])),_:1})])]),(0,r._)("div",p,[(0,r._)("div",d,[(0,r.Wm)(f,{ref:"table",loading:s.loading,page:g.page,rows:g.rows,"rows-number":g.rowsNumber,"rows-per-page":g.rowsPerPage,title:"Transactions",onOnRequest:h.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","onOnRequest"])])])])),_:1})}var g=t(7454),h=t(3684),b=t(3247);const m={name:"Show",data(){return{subscription:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getSubscription()},components:{LargeTable:g.Z},methods:{onRequest:function(s){this.page=s.page,this.getSubscription()},getSubscription:function(){let s=new h.Z;s.get(this.id).then((s=>this.parseSubscription(s))),this.loading=!0;const e=new b.Z;this.rows=[],s.transactions(this.id,this.page,this.getCacheKey).then((s=>{let t=e.parseResponse(s);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseSubscription:function(s){this.subscription={name:s.data.data.attributes.name}}}};var f=t(1639),_=t(9885),q=t(4458),v=t(3190),P=t(9984),S=t.n(P);const Z=(0,f.Z)(m,[["render",w]]),k=Z;S()(m,"components",{QPage:_.Z,QCard:q.Z,QCardSection:v.Z})}}]);

1
public/v3/js/1221.bb21f046.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1238],{1238:(e,r,s)=>{s.r(r),s.d(r,{default:()=>k});var a=s(9835),t=s(6970);const n={class:"row q-mx-md"},o={class:"col-12"},c={class:"text-h6"},u={class:"row"},i={class:"col-12 q-mb-xs"},l=(0,a._)("br",null,null,-1),d=(0,a._)("br",null,null,-1),w={class:"row q-mt-sm"},g={class:"col-12"};function h(e,r,s,h,p,m){const b=(0,a.up)("q-card-section"),f=(0,a.up)("q-card"),_=(0,a.up)("LargeTable"),y=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(y,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a._)("div",o,[(0,a.Wm)(f,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("div",c,(0,t.zw)(p.currency.name),1)])),_:1}),(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("div",u,[(0,a._)("div",i,[(0,a.Uk)(" Name: "+(0,t.zw)(p.currency.name),1),l,(0,a.Uk)(" Code: "+(0,t.zw)(p.currency.code),1),d])])])),_:1})])),_:1})])]),(0,a._)("div",w,[(0,a._)("div",g,[(0,a.Wm)(_,{ref:"table",loading:e.loading,page:p.page,rows:p.rows,"rows-number":p.rowsNumber,"rows-per-page":p.rowsPerPage,title:"Transactions",onOnRequest:m.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","onOnRequest"])])])])),_:1})}var p=s(4643),m=s(1484),b=s(3247);const f={name:"Show",data(){return{currency:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1,code:""}},created(){this.code=this.$route.params.code,this.getCurrency()},components:{LargeTable:p.Z},methods:{onRequest:function(e){this.page=e.page,this.getCurrency()},getCurrency:function(){let e=new m.Z;e.get(this.code).then((e=>this.parseCurrency(e))),this.loading=!0;const r=new b.Z;this.rows=[],e.transactions(this.code,this.page,this.getCacheKey).then((e=>{let s=r.parseResponse(e);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},parseCurrency:function(e){this.currency={name:e.data.data.attributes.name,code:e.data.data.attributes.code}}}};var _=s(1639),y=s(9885),C=s(4458),q=s(3190),v=s(9984),P=s.n(v);const Z=(0,_.Z)(f,[["render",h]]),k=Z;P()(f,"components",{QPage:y.Z,QCard:C.Z,QCardSection:q.Z})}}]);

1
public/v3/js/1238.79b1c2c0.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[1238],{1238:(e,r,s)=>{s.r(r),s.d(r,{default:()=>k});var a=s(9835),t=s(6970);const n={class:"row q-mx-md"},o={class:"col-12"},c={class:"text-h6"},i={class:"row"},u={class:"col-12 q-mb-xs"},l=(0,a._)("br",null,null,-1),d=(0,a._)("br",null,null,-1),w={class:"row q-mt-sm"},g={class:"col-12"};function h(e,r,s,h,p,m){const b=(0,a.up)("q-card-section"),_=(0,a.up)("q-card"),f=(0,a.up)("LargeTable"),y=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(y,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a._)("div",o,[(0,a.Wm)(_,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("div",c,(0,t.zw)(p.currency.name),1)])),_:1}),(0,a.Wm)(b,null,{default:(0,a.w5)((()=>[(0,a._)("div",i,[(0,a._)("div",u,[(0,a.Uk)(" Name: "+(0,t.zw)(p.currency.name),1),l,(0,a.Uk)(" Code: "+(0,t.zw)(p.currency.code),1),d])])])),_:1})])),_:1})])]),(0,a._)("div",w,[(0,a._)("div",g,[(0,a.Wm)(f,{ref:"table",loading:e.loading,page:p.page,rows:p.rows,"rows-number":p.rowsNumber,"rows-per-page":p.rowsPerPage,title:"Transactions",onOnRequest:m.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","onOnRequest"])])])])),_:1})}var p=s(7454),m=s(1484),b=s(3247);const _={name:"Show",data(){return{currency:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1,code:""}},created(){this.code=this.$route.params.code,this.getCurrency()},components:{LargeTable:p.Z},methods:{onRequest:function(e){this.page=e.page,this.getCurrency()},getCurrency:function(){let e=new m.Z;e.get(this.code).then((e=>this.parseCurrency(e))),this.loading=!0;const r=new b.Z;this.rows=[],e.transactions(this.code,this.page,this.getCacheKey).then((e=>{let s=r.parseResponse(e);this.rowsPerPage=s.rowsPerPage,this.rowsNumber=s.rowsNumber,this.rows=s.rows,this.loading=!1}))},parseCurrency:function(e){this.currency={name:e.data.data.attributes.name,code:e.data.data.attributes.code}}}};var f=s(1639),y=s(9885),C=s(4458),q=s(3190),v=s(9984),P=s.n(v);const Z=(0,f.Z)(_,[["render",h]]),k=Z;P()(_,"components",{QPage:y.Z,QCard:C.Z,QCardSection:q.Z})}}]);

File diff suppressed because one or more lines are too long

1
public/v3/js/159.f93b425d.js vendored Normal file

File diff suppressed because one or more lines are too long

1
public/v3/js/1800.73a958f8.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[1800],{1800:(e,s,t)=>{t.r(s),t.d(s,{default:()=>y});var r=t(9835),l=t(6970);const o={class:"row q-mx-md"},i={class:"col-12"},a={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Info for new rule group",-1),d={class:"row q-mx-md"},c={class:"col-12"},m={class:"row"},b={class:"col-12 text-right"},h={class:"row"},p={class:"col-12 text-right"},f=(0,r._)("br",null,null,-1);function g(e,s,t,g,w,_){const v=(0,r.up)("q-btn"),q=(0,r.up)("q-banner"),E=(0,r.up)("q-card-section"),R=(0,r.up)("q-input"),k=(0,r.up)("q-card"),x=(0,r.up)("q-checkbox"),C=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(C,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,[(0,r._)("div",i,[""!==w.errorMessage?((0,r.wg)(),(0,r.j4)(q,{key:0,class:"bg-orange text-white","inline-actions":"",rounded:""},{action:(0,r.w5)((()=>[(0,r.Wm)(v,{flat:"",label:"Dismiss",onClick:_.dismissBanner},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,l.zw)(w.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",n,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[(0,r.Wm)(R,{modelValue:w.title,"onUpdate:modelValue":s[0]||(s[0]=e=>w.title=e),disable:_.disabledInput,error:w.hasSubmissionErrors.title,"error-message":w.submissionErrors.title,label:e.$t("form.title"),"bottom-slots":"",clearable:"",outlined:"",type:"text"},null,8,["modelValue","disable","error","error-message","label"])])),_:1})])),_:1})])]),(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[(0,r._)("div",m,[(0,r._)("div",b,[(0,r.Wm)(v,{disable:_.disabledInput,color:"primary",label:"Submit",onClick:_.submitRuleGroup},null,8,["disable","onClick"])])]),(0,r._)("div",h,[(0,r._)("div",p,[(0,r.Wm)(x,{modelValue:w.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>w.doReturnHere=e),disable:_.disabledInput,label:"Return here to create another one","left-label":""},null,8,["modelValue","disable"]),f,(0,r.Wm)(x,{modelValue:w.doResetForm,"onUpdate:modelValue":s[2]||(s[2]=e=>w.doResetForm=e),disable:!w.doReturnHere||_.disabledInput,label:"Reset form after submission","left-label":""},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var w=t(1569);class _{post(e){let s="/api/v1/rule_groups";return w.api.post(s,e)}}const v={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",title:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.resetForm()},methods:{resetForm:function(){this.title="",this.resetErrors()},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRuleGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRuleGroup();(new _).post(e).catch(this.processErrors).then(this.processSuccess)},buildRuleGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new rule group",show:!0,action:{show:!0,text:"Go to piggy",link:{name:"rule-groups.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var q=t(1639),E=t(9885),R=t(7128),k=t(8879),x=t(4458),C=t(3190),I=t(6611),S=t(1221),W=t(9984),V=t.n(W);const Z=(0,q.Z)(v,[["render",g]]),y=Z;V()(v,"components",{QPage:E.Z,QBanner:R.Z,QBtn:k.Z,QCard:x.Z,QCardSection:C.Z,QInput:I.Z,QCheckbox:S.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[1800],{1800:(e,s,t)=>{t.r(s),t.d(s,{default:()=>y});var r=t(9835),l=t(6970);const o={class:"row q-mx-md"},i={class:"col-12"},a={class:"row q-mx-md q-mt-md"},n={class:"col-12"},u=(0,r._)("div",{class:"text-h6"},"Info for new rule group",-1),d={class:"row q-mx-md"},c={class:"col-12"},m={class:"row"},b={class:"col-12 text-right"},h={class:"row"},p={class:"col-12 text-right"},f=(0,r._)("br",null,null,-1);function g(e,s,t,g,w,_){const v=(0,r.up)("q-btn"),q=(0,r.up)("q-banner"),E=(0,r.up)("q-card-section"),R=(0,r.up)("q-input"),k=(0,r.up)("q-card"),x=(0,r.up)("q-checkbox"),C=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(C,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,[(0,r._)("div",i,[""!==w.errorMessage?((0,r.wg)(),(0,r.j4)(q,{key:0,class:"bg-orange text-white","inline-actions":"",rounded:""},{action:(0,r.w5)((()=>[(0,r.Wm)(v,{flat:"",label:"Dismiss",onClick:_.dismissBanner},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,l.zw)(w.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",a,[(0,r._)("div",n,[(0,r.Wm)(k,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[u])),_:1}),(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[(0,r.Wm)(R,{modelValue:w.title,"onUpdate:modelValue":s[0]||(s[0]=e=>w.title=e),disable:_.disabledInput,error:w.hasSubmissionErrors.title,"error-message":w.submissionErrors.title,label:e.$t("form.title"),"bottom-slots":"",clearable:"",outlined:"",type:"text"},null,8,["modelValue","disable","error","error-message","label"])])),_:1})])),_:1})])]),(0,r._)("div",d,[(0,r._)("div",c,[(0,r.Wm)(k,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(E,null,{default:(0,r.w5)((()=>[(0,r._)("div",m,[(0,r._)("div",b,[(0,r.Wm)(v,{disable:_.disabledInput,color:"primary",label:"Submit",onClick:_.submitRuleGroup},null,8,["disable","onClick"])])]),(0,r._)("div",h,[(0,r._)("div",p,[(0,r.Wm)(x,{modelValue:w.doReturnHere,"onUpdate:modelValue":s[1]||(s[1]=e=>w.doReturnHere=e),disable:_.disabledInput,label:"Return here to create another one","left-label":""},null,8,["modelValue","disable"]),f,(0,r.Wm)(x,{modelValue:w.doResetForm,"onUpdate:modelValue":s[2]||(s[2]=e=>w.doResetForm=e),disable:!w.doReturnHere||_.disabledInput,label:"Reset form after submission","left-label":""},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var w=t(1569);class _{post(e){let s="/api/v1/rule_groups";return w.api.post(s,e)}}const v={name:"Create",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",title:""}},computed:{disabledInput:function(){return this.submitting}},created(){this.resetForm()},methods:{resetForm:function(){this.title="",this.resetErrors()},resetErrors:function(){this.submissionErrors={title:""},this.hasSubmissionErrors={title:!1}},submitRuleGroup:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const e=this.buildRuleGroup();(new _).post(e).catch(this.processErrors).then(this.processSuccess)},buildRuleGroup:function(){return{title:this.title}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(e){if(!e)return;this.submitting=!1;let s={level:"success",text:"I am new rule group",show:!0,action:{show:!0,text:"Go to piggy",link:{name:"rule-groups.show",params:{id:parseInt(e.data.data.id)}}}};this.$q.localStorage.set("flash",s),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(e){if(e.response){let s=e.response.data;this.errorMessage=s.message,console.log(s);for(let e in s.errors)s.errors.hasOwnProperty(e)&&(this.submissionErrors[e]=s.errors[e][0],this.hasSubmissionErrors[e]=!0)}this.submitting=!1}}};var q=t(1639),E=t(9885),R=t(7128),k=t(8879),x=t(4458),C=t(3190),I=t(6611),S=t(1221),W=t(9984),V=t.n(W);const Z=(0,q.Z)(v,[["render",g]]),y=Z;V()(v,"components",{QPage:E.Z,QBanner:R.Z,QBtn:k.Z,QCard:x.Z,QCardSection:C.Z,QInput:I.Z,QCheckbox:S.Z})}}]);

1
public/v3/js/1872.235df0c5.js vendored Normal file

File diff suppressed because one or more lines are too long

1
public/v3/js/2255.106372da.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[2255],{2255:(e,t,a)=>{a.r(t),a.d(t,{default:()=>h});var i=a(9835);const l={class:"q-ma-md"},n={class:"row q-mb-sm"},s={class:"col"},r={class:"q-mt-sm q-mr-sm"},d=(0,i._)("strong",null,"Financial administration",-1),u=(0,i._)("p",null," Bla bla bla List of groups. Edit members, edit group, delete group. add new administration. switch to new administration. ",-1);function m(e,t,a,m,o,c){const p=(0,i.up)("q-item-label"),_=(0,i.up)("q-item-section"),f=(0,i.up)("q-item"),w=(0,i.up)("q-separator"),b=(0,i.up)("q-card-section"),q=(0,i.up)("q-card");return(0,i.wg)(),(0,i.iD)("div",null,[(0,i._)("div",l,[(0,i._)("div",n,[(0,i._)("div",s,[(0,i._)("div",r,[(0,i.Wm)(q,{bordered:""},{default:(0,i.w5)((()=>[(0,i.Wm)(f,null,{default:(0,i.w5)((()=>[(0,i.Wm)(_,null,{default:(0,i.w5)((()=>[(0,i.Wm)(p,null,{default:(0,i.w5)((()=>[d])),_:1})])),_:1})])),_:1}),(0,i.Wm)(w),(0,i.Wm)(b,null,{default:(0,i.w5)((()=>[u])),_:1})])),_:1})])])])])])}const o={name:"Index"};var c=a(1639),p=a(4458),_=a(490),f=a(1233),w=a(3115),b=a(926),q=a(3190),g=a(9984),v=a.n(g);const Z=(0,c.Z)(o,[["render",m]]),h=Z;v()(o,"components",{QCard:p.Z,QItem:_.Z,QItemSection:f.Z,QItemLabel:w.Z,QSeparator:b.Z,QCardSection:q.Z})}}]);

1
public/v3/js/2306.12ac1e37.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[2306],{2306:(e,t,a)=>{a.r(t),a.d(t,{default:()=>D});var s=a(9835);const o={key:0},l={key:1};function n(e,t,a,n,i,r){const c=(0,s.up)("NewUser"),u=(0,s.up)("Dashboard"),d=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(d,null,{default:(0,s.w5)((()=>[0===e.assetCount?((0,s.wg)(),(0,s.iD)("div",o,[(0,s.Wm)(c,{onCreatedAccounts:e.refreshThenCount},null,8,["onCreatedAccounts"])])):(0,s.kq)("",!0),e.assetCount>0?((0,s.wg)(),(0,s.iD)("div",l,[(0,s.Wm)(u)])):(0,s.kq)("",!0)])),_:1})}var i=a(3836),r=a(3555);const c={class:"row"},u={class:"col-xl-4 col-lg-4 col-md-6 q-pr-sm"},d={class:"col-xl-4 col-lg-4 col-md-6 q-px-sm"},m={class:"col-xl-4 col-lg-4 col-md-6 q-pl-sm"},p={class:"row"},h={class:"col-12 q-pt-sm q-pb-sm"},f={class:"row"},g={class:"col"},b={class:"row"},w={class:"col"},_=(0,s._)("div",{class:"col"}," Category box ",-1),v=(0,s._)("div",{class:"row"},[(0,s._)("div",{class:"col"}," Expense Box "),(0,s._)("div",{class:"col"}," Revenue Box ")],-1),y=(0,s._)("div",{class:"row"},[(0,s._)("div",{class:"col"}," Piggy box "),(0,s._)("div",{class:"col"}," Bill box ")],-1);function C(e,t,a,o,l,n){const i=(0,s.up)("BillInsightBox"),r=(0,s.up)("SpendInsightBox"),C=(0,s.up)("NetWorthInsightBox"),x=(0,s.up)("AccountChart"),q=(0,s.up)("TransactionLists"),W=(0,s.up)("BudgetBox"),B=(0,s.up)("q-fab-action"),A=(0,s.up)("q-fab"),P=(0,s.up)("q-page-sticky"),k=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(k,{class:"q-ma-md"},{default:(0,s.w5)((()=>[(0,s._)("div",c,[(0,s._)("div",u,[(0,s.Wm)(i)]),(0,s._)("div",d,[(0,s.Wm)(r)]),(0,s._)("div",m,[(0,s.Wm)(C)])]),(0,s._)("div",p,[(0,s._)("div",h,[(0,s.Wm)(x)])]),(0,s._)("div",f,[(0,s._)("div",g,[(0,s.Wm)(q)])]),(0,s._)("div",b,[(0,s._)("div",w,[(0,s.Wm)(W)]),_]),v,y,(0,s.Wm)(P,{offset:[18,18],position:"bottom-right"},{default:(0,s.w5)((()=>[(0,s.Wm)(A,{color:"green",direction:"up",icon:"fas fa-chevron-up",label:"Actions","label-position":"left",square:"","vertical-actions-align":"right"},{default:(0,s.w5)((()=>[(0,s.Wm)(B,{label:e.$t("firefly.new_budget"),to:{name:"budgets.create"},color:"primary",icon:"fas fa-chart-pie",square:""},null,8,["label","to"]),(0,s.Wm)(B,{label:e.$t("firefly.new_asset_account"),to:{name:"accounts.create",params:{type:"asset"}},color:"primary",icon:"far fa-money-bill-alt",square:""},null,8,["label","to"]),(0,s.Wm)(B,{label:e.$t("firefly.newTransfer"),to:{name:"transactions.create",params:{type:"transfer"}},color:"primary",icon:"fas fa-exchange-alt",square:""},null,8,["label","to"]),(0,s.Wm)(B,{label:e.$t("firefly.newDeposit"),to:{name:"transactions.create",params:{type:"deposit"}},color:"primary",icon:"fas fa-long-arrow-alt-right",square:""},null,8,["label","to"]),(0,s.Wm)(B,{label:e.$t("firefly.newWithdrawal"),to:{name:"transactions.create",params:{type:"withdrawal"}},color:"primary",icon:"fas fa-long-arrow-alt-left",square:""},null,8,["label","to"])])),_:1})])),_:1})])),_:1})}const x={name:"Dashboard",components:{TransactionLists:(0,s.RC)((()=>a.e(936).then(a.bind(a,936)))),AccountChart:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(7700)]).then(a.bind(a,7700)))),NetWorthInsightBox:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(4777)]).then(a.bind(a,4777)))),BillInsightBox:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(7889)]).then(a.bind(a,7889)))),SpendInsightBox:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(8135)]).then(a.bind(a,8135)))),BudgetBox:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(7886)]).then(a.bind(a,8482))))}};var q=a(1639),W=a(9885),B=a(3388),A=a(9361),P=a(935),k=a(9984),Z=a.n(k);const I=(0,q.Z)(x,[["render",C]]),R=I;Z()(x,"components",{QPage:W.Z,QPageSticky:B.Z,QFab:A.Z,QFabAction:P.Z});const $=(0,s.aZ)({name:"PageIndex",components:{Dashboard:R,NewUser:(0,s.RC)((()=>Promise.all([a.e(4736),a.e(3064),a.e(5389)]).then(a.bind(a,5389))))},data(){return{assetCount:1,$store:null}},mounted(){this.countAssetAccounts()},methods:{refreshThenCount:function(){this.$store=(0,r.S)(),this.$store.refreshCacheKey(),this.countAssetAccounts()},countAssetAccounts:function(){let e=new i.Z;e.list("asset",1,this.getCacheKey).then((e=>{this.assetCount=parseInt(e.data.meta.pagination.total)}))}}}),T=(0,q.Z)($,[["render",n]]),D=T;Z()($,"components",{QPage:W.Z})}}]);

1
public/v3/js/2372.0c493e6d.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[2372],{2372:(t,e,i)=>{i.r(e),i.d(e,{default:()=>q});var a=i(9835),r=i(6970);const s={class:"row q-mx-md"},u={class:"col-12"},l={class:"text-h6"},n={class:"row"},o={class:"col-12 q-mb-xs"},d=(0,a._)("br",null,null,-1);function c(t,e,i,c,p,h){const g=(0,a.up)("q-card-section"),f=(0,a.up)("q-card"),w=(0,a.up)("q-page");return(0,a.wg)(),(0,a.j4)(w,null,{default:(0,a.w5)((()=>[(0,a._)("div",s,[(0,a._)("div",u,[(0,a.Wm)(f,{bordered:""},{default:(0,a.w5)((()=>[(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a._)("div",l,(0,r.zw)(p.group.title),1)])),_:1}),(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a._)("div",o,[(0,a.Uk)(" Title: "+(0,r.zw)(p.group.title),1),d])])])),_:1})])),_:1})])])])),_:1})}var p=i(1741);const h={name:"Show",data(){return{group:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getGroup()},components:{},methods:{onRequest:function(t){this.page=t.page,this.getGroup()},getGroup:function(){let t=new p.Z;t.get(this.id).then((t=>this.parseGroup(t)))},parseGroup:function(t){this.group={title:t.data.data.attributes.title}}}};var g=i(1639),f=i(9885),w=i(4458),_=i(3190),m=i(9984),b=i.n(m);const v=(0,g.Z)(h,[["render",c]]),q=v;b()(h,"components",{QPage:f.Z,QCard:w.Z,QCardSection:_.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2372],{2372:(t,e,i)=>{i.r(e),i.d(e,{default:()=>q});var r=i(9835),s=i(6970);const a={class:"row q-mx-md"},u={class:"col-12"},n={class:"text-h6"},l={class:"row"},o={class:"col-12 q-mb-xs"},d=(0,r._)("br",null,null,-1);function c(t,e,i,c,p,f){const h=(0,r.up)("q-card-section"),g=(0,r.up)("q-card"),w=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(w,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",u,[(0,r.Wm)(g,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(h,null,{default:(0,r.w5)((()=>[(0,r._)("div",n,(0,s.zw)(p.group.title),1)])),_:1}),(0,r.Wm)(h,null,{default:(0,r.w5)((()=>[(0,r._)("div",l,[(0,r._)("div",o,[(0,r.Uk)(" Title: "+(0,s.zw)(p.group.title),1),d])])])),_:1})])),_:1})])])])),_:1})}var p=i(1741);const f={name:"Show",data(){return{group:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getGroup()},components:{},methods:{onRequest:function(t){this.page=t.page,this.getGroup()},getGroup:function(){let t=new p.Z;t.get(this.id).then((t=>this.parseGroup(t)))},parseGroup:function(t){this.group={title:t.data.data.attributes.title}}}};var h=i(1639),g=i(9885),w=i(4458),_=i(3190),m=i(9984),v=i.n(m);const b=(0,h.Z)(f,[["render",c]]),q=b;v()(f,"components",{QPage:g.Z,QCard:w.Z,QCardSection:_.Z})}}]);

1
public/v3/js/2382.a6898a70.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2564],{2564:(e,t,a)=>{a.r(t),a.d(t,{default:()=>R});var n=a(9835);const r=(0,n._)("p",null," ",-1),s=(0,n._)("p",null," ",-1),i=(0,n._)("p",null," ",-1),l=(0,n._)("p",null," ",-1);function o(e,t,a,o,g,u){const p=(0,n.up)("LargeTable"),c=(0,n.up)("q-fab-action"),d=(0,n.up)("q-fab"),f=(0,n.up)("q-page-sticky"),m=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(m,null,{default:(0,n.w5)((()=>[(0,n.Wm)(p,{ref:"table",loading:g.loading,page:g.page,rows:g.rows,"rows-number":g.rowsNumber,"rows-per-page":g.rowsPerPage,title:e.$t("firefly.title_"+this.type),onOnRequest:u.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","title","onOnRequest"]),r,s,i,l,(0,n.Wm)(f,{offset:[18,18],position:"bottom-right"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{color:"green",direction:"up",icon:"fas fa-chevron-up",label:"Actions","label-position":"left",square:"","vertical-actions-align":"right"},{default:(0,n.w5)((()=>[(0,n.Wm)(c,{to:{name:"transactions.create",params:{type:"transfer"}},color:"primary",icon:"fas fa-exchange-alt",label:"New transfer",square:""},null,8,["to"]),(0,n.Wm)(c,{to:{name:"transactions.create",params:{type:"deposit"}},color:"primary",icon:"fas fa-long-arrow-alt-right",label:"New deposit",square:""},null,8,["to"]),(0,n.Wm)(c,{to:{name:"transactions.create",params:{type:"withdrawal"}},color:"primary",icon:"fas fa-long-arrow-alt-left",label:"New withdrawal",square:""},null,8,["to"])])),_:1})])),_:1})])),_:1})}var g=a(1569);class u{list(e,t,a){let n="api/v1/transactions";return g.api.get(n,{params:{page:t,cache:a,type:e}})}}var p=a(4643),c=a(3247);const d={name:"Index",components:{LargeTable:p.Z},watch:{$route(e){"transactions.index"===e.name&&(this.type=e.params.type,this.page=1,this.triggerUpdate())}},data(){return{loading:!1,rows:[],columns:[{name:"type",label:" ",field:"type",style:"width: 30px"},{name:"description",label:"Description",field:"description",align:"left"},{name:"amount",label:"Amount",field:"amount"},{name:"date",label:"Date",field:"date",align:"left"},{name:"source",label:"Source",field:"source",align:"left"},{name:"destination",label:"Destination",field:"destination",align:"left"},{name:"category",label:"Category",field:"category",align:"left"},{name:"budget",label:"Budget",field:"budget",align:"left"},{name:"menu",label:" ",field:"menu",align:"left"}],type:"withdrawal",page:1,rowsPerPage:50,rowsNumber:100,range:{start:null,end:null}}},computed:{},created(){this.rowsPerPage=this.getListPageSize},mounted(){this.type=this.$route.params.type,null!==this.store.getRange.start&&null!==this.store.getRange.end||this.store.$onAction((({name:e,$store:t,args:a,after:n,onError:r})=>{n((t=>{"setRange"===e&&(this.range=t,this.triggerUpdate())}))})),null!==this.store.getRange.start&&null!==this.store.getRange.end&&(this.range={start:this.store.getRange.start,end:this.store.getRange.end},this.triggerUpdate())},methods:{onRequest:function(e){this.page=e.page,this.triggerUpdate()},formatAmount:function(e,t){return Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)},gotoTransaction:function(e,t){this.$router.push({name:"transactions.show",params:{id:1}})},triggerUpdate:function(){if(this.loading)return;if(null===this.range.start||null===this.range.end)return;this.loading=!0;const e=new u,t=new c.Z;this.rows=[],e.list(this.type,this.page,this.getCacheKey).then((e=>{let a=t.parseResponse(e);this.rowsPerPage=a.rowsPerPage,this.rowsNumber=a.rowsNumber,this.rows=a.rows,this.loading=!1}))}}};var f=a(1639),m=a(9885),h=a(3388),w=a(9361),b=a(935),y=a(9984),P=a.n(y);const q=(0,f.Z)(d,[["render",o]]),R=q;P()(d,"components",{QPage:m.Z,QPageSticky:h.Z,QFab:w.Z,QFabAction:b.Z})}}]);

1
public/v3/js/2769.435f626d.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[2769],{2769:(e,t,l)=>{l.r(t),l.d(t,{default:()=>d});var n=l(9835);const i={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},o=(0,n._)("div",{style:{"font-size":"30vh"}}," 404 ",-1),s=(0,n._)("div",{class:"text-h2",style:{opacity:".4"}}," Oops. Nothing here... ",-1);function c(e,t,l,c,r,a){const u=(0,n.up)("q-btn");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",null,[o,s,(0,n.Wm)(u,{class:"q-mt-xl",color:"white",label:"Go Home","no-caps":"","text-color":"blue",to:"/",unelevated:""})])])}const r=(0,n.aZ)({name:"Error404"});var a=l(1639),u=l(8879),h=l(9984),f=l.n(h);const b=(0,a.Z)(r,[["render",c]]),d=b;f()(r,"components",{QBtn:u.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2769],{2769:(e,t,l)=>{l.r(t),l.d(t,{default:()=>p});var n=l(9835);const s={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},i=(0,n._)("div",{style:{"font-size":"30vh"}}," 404 ",-1),o=(0,n._)("div",{class:"text-h2",style:{opacity:".4"}}," Oops. Nothing here... ",-1);function c(e,t,l,c,r,a){const u=(0,n.up)("q-btn");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("div",null,[i,o,(0,n.Wm)(u,{class:"q-mt-xl",color:"white",label:"Go Home","no-caps":"","text-color":"blue",to:"/",unelevated:""})])])}const r=(0,n.aZ)({name:"Error404"});var a=l(1639),u=l(8879),f=l(9984),d=l.n(f);const h=(0,a.Z)(r,[["render",c]]),p=h;d()(r,"components",{QBtn:u.Z})}}]);

1
public/v3/js/3576.5e70097a.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[3576],{3576:(a,e,t)=>{t.r(e),t.d(e,{default:()=>B});var n=t(9835),i=t(6970);const s={class:"row q-mx-md"},g={class:"col-12"},r={class:"text-h6"},d={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,n._)("br",null,null,-1);function c(a,e,t,c,o,p){const h=(0,n.up)("q-card-section"),m=(0,n.up)("q-card"),k=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(k,null,{default:(0,n.w5)((()=>[(0,n._)("div",s,[(0,n._)("div",g,[(0,n.Wm)(m,{bordered:""},{default:(0,n.w5)((()=>[(0,n.Wm)(h,null,{default:(0,n.w5)((()=>[(0,n._)("div",r,(0,i.zw)(o.piggyBank.name),1)])),_:1}),(0,n.Wm)(h,null,{default:(0,n.w5)((()=>[(0,n._)("div",d,[(0,n._)("div",l,[(0,n.Uk)(" Name: "+(0,i.zw)(o.piggyBank.name),1),u])])])),_:1})])),_:1})])])])),_:1})}var o=t(670);const p={name:"Show",data(){return{piggyBank:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getPiggyBank()},methods:{onRequest:function(a){this.page=a.page,this.getPiggyBank()},getPiggyBank:function(){(new o.Z).get(this.id).then((a=>this.parsePiggyBank(a)))},parsePiggyBank:function(a){this.piggyBank={name:a.data.data.attributes.name}}}};var h=t(1639),m=t(9885),k=t(4458),f=t(3190),w=t(9984),_=t.n(w);const y=(0,h.Z)(p,[["render",c]]),B=y;_()(p,"components",{QPage:m.Z,QCard:k.Z,QCardSection:f.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[3576],{3576:(a,e,t)=>{t.r(e),t.d(e,{default:()=>B});var n=t(9835),i=t(6970);const s={class:"row q-mx-md"},r={class:"col-12"},d={class:"text-h6"},g={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,n._)("br",null,null,-1);function c(a,e,t,c,o,p){const f=(0,n.up)("q-card-section"),h=(0,n.up)("q-card"),m=(0,n.up)("q-page");return(0,n.wg)(),(0,n.j4)(m,null,{default:(0,n.w5)((()=>[(0,n._)("div",s,[(0,n._)("div",r,[(0,n.Wm)(h,{bordered:""},{default:(0,n.w5)((()=>[(0,n.Wm)(f,null,{default:(0,n.w5)((()=>[(0,n._)("div",d,(0,i.zw)(o.piggyBank.name),1)])),_:1}),(0,n.Wm)(f,null,{default:(0,n.w5)((()=>[(0,n._)("div",g,[(0,n._)("div",l,[(0,n.Uk)(" Name: "+(0,i.zw)(o.piggyBank.name),1),u])])])),_:1})])),_:1})])])])),_:1})}var o=t(670);const p={name:"Show",data(){return{piggyBank:{},id:0}},created(){this.id=parseInt(this.$route.params.id),this.getPiggyBank()},methods:{onRequest:function(a){this.page=a.page,this.getPiggyBank()},getPiggyBank:function(){(new o.Z).get(this.id).then((a=>this.parsePiggyBank(a)))},parsePiggyBank:function(a){this.piggyBank={name:a.data.data.attributes.name}}}};var f=t(1639),h=t(9885),m=t(4458),k=t(3190),w=t(9984),_=t.n(w);const y=(0,f.Z)(p,[["render",c]]),B=y;_()(p,"components",{QPage:h.Z,QCard:m.Z,QCardSection:k.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[3611],{9286:(e,a,t)=>{t.r(a),t.d(a,{default:()=>C});var s=t(9835),r=t(6970);const n={class:"row q-mx-md"},o={class:"col-12"},i={class:"text-h6"},g={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,s._)("br",null,null,-1),c={class:"row q-mt-sm"},d={class:"col-12"};function w(e,a,t,w,p,h){const m=(0,s.up)("q-card-section"),f=(0,s.up)("q-card"),b=(0,s.up)("LargeTable"),_=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(_,null,{default:(0,s.w5)((()=>[(0,s._)("div",n,[(0,s._)("div",o,[(0,s.Wm)(f,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[(0,s._)("div",i,(0,r.zw)(p.tag.tag),1)])),_:1}),(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[(0,s._)("div",g,[(0,s._)("div",l,[(0,s.Uk)(" Tag: "+(0,r.zw)(p.tag.tag),1),u])])])),_:1})])),_:1})])]),(0,s._)("div",c,[(0,s._)("div",d,[(0,s.Wm)(b,{ref:"table",loading:e.loading,page:p.page,rows:p.rows,"rows-number":p.rowsNumber,"rows-per-page":p.rowsPerPage,title:"Transactions",onOnRequest:h.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","onOnRequest"])])])])),_:1})}var p=t(1569);class h{get(e){let a="/api/v1/tags/"+e;return p.api.get(a)}transactions(e,a,t){let s="/api/v1/tags/"+e+"/transactions";return p.api.get(s,{params:{page:a,cache:t}})}}var m=t(4643),f=t(3247);const b={name:"Show",data(){return{tag:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getTag()},mounted(){},components:{LargeTable:m.Z},methods:{onRequest:function(e){this.page=e.page,this.getTag()},getTag:function(){let e=new h;e.get(this.id).then((e=>this.parseTag(e))),this.loading=!0;const a=new f.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let t=a.parseResponse(e);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseTag:function(e){this.tag={tag:e.data.data.attributes.tag}}}};var _=t(1639),v=t(9885),q=t(4458),P=t(3190),T=t(9984),Z=t.n(T);const k=(0,_.Z)(b,[["render",w]]),C=k;Z()(b,"components",{QPage:v.Z,QCard:q.Z,QCardSection:P.Z})}}]);

1
public/v3/js/3611.e9821d78.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[3611],{9286:(a,e,t)=>{t.r(e),t.d(e,{default:()=>C});var s=t(9835),r=t(6970);const n={class:"row q-mx-md"},o={class:"col-12"},i={class:"text-h6"},g={class:"row"},l={class:"col-12 q-mb-xs"},u=(0,s._)("br",null,null,-1),c={class:"row q-mt-sm"},d={class:"col-12"};function w(a,e,t,w,p,h){const m=(0,s.up)("q-card-section"),b=(0,s.up)("q-card"),f=(0,s.up)("LargeTable"),_=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(_,null,{default:(0,s.w5)((()=>[(0,s._)("div",n,[(0,s._)("div",o,[(0,s.Wm)(b,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[(0,s._)("div",i,(0,r.zw)(p.tag.tag),1)])),_:1}),(0,s.Wm)(m,null,{default:(0,s.w5)((()=>[(0,s._)("div",g,[(0,s._)("div",l,[(0,s.Uk)(" Tag: "+(0,r.zw)(p.tag.tag),1),u])])])),_:1})])),_:1})])]),(0,s._)("div",c,[(0,s._)("div",d,[(0,s.Wm)(f,{ref:"table",loading:a.loading,page:p.page,rows:p.rows,"rows-number":p.rowsNumber,"rows-per-page":p.rowsPerPage,title:"Transactions",onOnRequest:h.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","onOnRequest"])])])])),_:1})}var p=t(1569);class h{get(a){let e="/api/v1/tags/"+a;return p.api.get(e)}transactions(a,e,t){let s="/api/v1/tags/"+a+"/transactions";return p.api.get(s,{params:{page:e,cache:t}})}}var m=t(7454),b=t(3247);const f={name:"Show",data(){return{tag:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getTag()},mounted(){},components:{LargeTable:m.Z},methods:{onRequest:function(a){this.page=a.page,this.getTag()},getTag:function(){let a=new h;a.get(this.id).then((a=>this.parseTag(a))),this.loading=!0;const e=new b.Z;this.rows=[],a.transactions(this.id,this.page,this.getCacheKey).then((a=>{let t=e.parseResponse(a);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseTag:function(a){this.tag={tag:a.data.data.attributes.tag}}}};var _=t(1639),v=t(9885),T=t(4458),q=t(3190),P=t(9984),Z=t.n(P);const k=(0,_.Z)(f,[["render",w]]),C=k;Z()(f,"components",{QPage:v.Z,QCard:T.Z,QCardSection:q.Z})}}]);

File diff suppressed because one or more lines are too long

1
public/v3/js/3726.efae2175.js vendored Normal file

File diff suppressed because one or more lines are too long

1
public/v3/js/3912.55920040.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
public/v3/js/4036.7d57aee0.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[4216],{4216:(s,e,t)=>{t.r(e),t.d(e,{default:()=>M});var r=t(9835),i=t(6970);const a={class:"row q-mx-md"},n={class:"col-12"},o={class:"row q-mx-md q-mt-md"},l={class:"col-12"},d=(0,r._)("div",{class:"text-h6"},"Edit piggy bank",-1),u={class:"row"},c={class:"col-12 q-mb-xs"},m={class:"row q-mx-md"},h={class:"col-12"},g={class:"row"},b={class:"col-12 text-right"},p={class:"row"},f={class:"col-12 text-right"};function w(s,e,t,w,k,_){const v=(0,r.up)("q-btn"),y=(0,r.up)("q-banner"),q=(0,r.up)("q-card-section"),E=(0,r.up)("q-input"),x=(0,r.up)("q-card"),B=(0,r.up)("q-checkbox"),C=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(C,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",n,[""!==k.errorMessage?((0,r.wg)(),(0,r.j4)(y,{key:0,class:"bg-orange text-white","inline-actions":"",rounded:""},{action:(0,r.w5)((()=>[(0,r.Wm)(v,{flat:"",label:"Dismiss",onClick:_.dismissBanner},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(k.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",o,[(0,r._)("div",l,[(0,r.Wm)(x,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[d])),_:1}),(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",c,[(0,r.Wm)(E,{modelValue:k.name,"onUpdate:modelValue":e[0]||(e[0]=s=>k.name=s),disable:_.disabledInput,error:k.hasSubmissionErrors.name,"error-message":k.submissionErrors.name,label:s.$t("form.name"),"bottom-slots":"",clearable:"",outlined:"",type:"text"},null,8,["modelValue","disable","error","error-message","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",m,[(0,r._)("div",h,[(0,r.Wm)(x,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[(0,r._)("div",g,[(0,r._)("div",b,[(0,r.Wm)(v,{disable:_.disabledInput,color:"primary",label:"Update",onClick:_.submitPiggyBank},null,8,["disable","onClick"])])]),(0,r._)("div",p,[(0,r._)("div",f,[(0,r.Wm)(B,{modelValue:k.doReturnHere,"onUpdate:modelValue":e[1]||(e[1]=s=>k.doReturnHere=s),disable:_.disabledInput,label:"Return here","left-label":""},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var k=t(670),_=t(1569);class v{post(s,e){let t="/api/v1/piggy_banks/"+s;return _.api.put(t,e)}}var y=t(3555);const q={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,name:"",store:null}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectPiggyBank(),this.store=(0,y.S)()},methods:{collectPiggyBank:function(){let s=new k.Z;s.get(this.id).then((s=>this.parsePiggyBank(s)))},parsePiggyBank:function(s){this.name=s.data.data.attributes.name},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitPiggyBank:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const s=this.buildPiggyBank();(new v).post(this.id,s).catch(this.processErrors).then(this.processSuccess)},buildPiggyBank:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(s){if(this.store.refreshCacheKey(),!s)return;this.submitting=!1;let e={level:"success",text:"Piggy is updated",show:!0,action:{show:!0,text:"Go to piggy",link:{name:"piggy-banks.show",params:{id:parseInt(s.data.data.id)}}}};this.$q.localStorage.set("flash",e),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(s){if(s.response){let e=s.response.data;this.errorMessage=e.message,console.log(e);for(let s in e.errors)e.errors.hasOwnProperty(s)&&(this.submissionErrors[s]=e.errors[s][0],this.hasSubmissionErrors[s]=!0)}this.submitting=!1}}};var E=t(1639),x=t(9885),B=t(7128),C=t(8879),P=t(4458),S=t(3190),W=t(6611),Z=t(1221),I=t(9984),Q=t.n(I);const R=(0,E.Z)(q,[["render",w]]),M=R;Q()(q,"components",{QPage:x.Z,QBanner:B.Z,QBtn:C.Z,QCard:P.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:Z.Z})}}]);

1
public/v3/js/4216.13049863.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[4216],{4216:(s,e,t)=>{t.r(e),t.d(e,{default:()=>M});var r=t(9835),i=t(6970);const a={class:"row q-mx-md"},n={class:"col-12"},o={class:"row q-mx-md q-mt-md"},l={class:"col-12"},d=(0,r._)("div",{class:"text-h6"},"Edit piggy bank",-1),u={class:"row"},c={class:"col-12 q-mb-xs"},m={class:"row q-mx-md"},h={class:"col-12"},g={class:"row"},b={class:"col-12 text-right"},p={class:"row"},f={class:"col-12 text-right"};function w(s,e,t,w,k,_){const v=(0,r.up)("q-btn"),y=(0,r.up)("q-banner"),q=(0,r.up)("q-card-section"),E=(0,r.up)("q-input"),x=(0,r.up)("q-card"),B=(0,r.up)("q-checkbox"),C=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(C,null,{default:(0,r.w5)((()=>[(0,r._)("div",a,[(0,r._)("div",n,[""!==k.errorMessage?((0,r.wg)(),(0,r.j4)(y,{key:0,class:"bg-orange text-white","inline-actions":"",rounded:""},{action:(0,r.w5)((()=>[(0,r.Wm)(v,{flat:"",label:"Dismiss",onClick:_.dismissBanner},null,8,["onClick"])])),default:(0,r.w5)((()=>[(0,r.Uk)((0,i.zw)(k.errorMessage)+" ",1)])),_:1})):(0,r.kq)("",!0)])]),(0,r._)("div",o,[(0,r._)("div",l,[(0,r.Wm)(x,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[d])),_:1}),(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",c,[(0,r.Wm)(E,{modelValue:k.name,"onUpdate:modelValue":e[0]||(e[0]=s=>k.name=s),disable:_.disabledInput,error:k.hasSubmissionErrors.name,"error-message":k.submissionErrors.name,label:s.$t("form.name"),"bottom-slots":"",clearable:"",outlined:"",type:"text"},null,8,["modelValue","disable","error","error-message","label"])])])])),_:1})])),_:1})])]),(0,r._)("div",m,[(0,r._)("div",h,[(0,r.Wm)(x,{class:"q-mt-xs"},{default:(0,r.w5)((()=>[(0,r.Wm)(q,null,{default:(0,r.w5)((()=>[(0,r._)("div",g,[(0,r._)("div",b,[(0,r.Wm)(v,{disable:_.disabledInput,color:"primary",label:"Update",onClick:_.submitPiggyBank},null,8,["disable","onClick"])])]),(0,r._)("div",p,[(0,r._)("div",f,[(0,r.Wm)(B,{modelValue:k.doReturnHere,"onUpdate:modelValue":e[1]||(e[1]=s=>k.doReturnHere=s),disable:_.disabledInput,label:"Return here","left-label":""},null,8,["modelValue","disable"])])])])),_:1})])),_:1})])])])),_:1})}var k=t(670),_=t(1569);class v{post(s,e){let t="/api/v1/piggy_banks/"+s;return _.api.put(t,e)}}var y=t(3555);const q={name:"Edit",data(){return{submissionErrors:{},hasSubmissionErrors:{},submitting:!1,doReturnHere:!1,doResetForm:!1,errorMessage:"",id:0,name:"",store:null}},computed:{disabledInput:function(){return this.submitting}},created(){this.id=parseInt(this.$route.params.id),this.collectPiggyBank(),this.store=(0,y.S)()},methods:{collectPiggyBank:function(){let s=new k.Z;s.get(this.id).then((s=>this.parsePiggyBank(s)))},parsePiggyBank:function(s){this.name=s.data.data.attributes.name},resetErrors:function(){this.submissionErrors={name:""},this.hasSubmissionErrors={name:!1}},submitPiggyBank:function(){this.submitting=!0,this.errorMessage="",this.resetErrors();const s=this.buildPiggyBank();(new v).post(this.id,s).catch(this.processErrors).then(this.processSuccess)},buildPiggyBank:function(){return{name:this.name}},dismissBanner:function(){this.errorMessage=""},processSuccess:function(s){if(this.store.refreshCacheKey(),!s)return;this.submitting=!1;let e={level:"success",text:"Piggy is updated",show:!0,action:{show:!0,text:"Go to piggy",link:{name:"piggy-banks.show",params:{id:parseInt(s.data.data.id)}}}};this.$q.localStorage.set("flash",e),this.doReturnHere&&window.dispatchEvent(new CustomEvent("flash",{detail:{flash:this.$q.localStorage.getItem("flash")}})),this.doReturnHere||this.$router.go(-1)},processErrors:function(s){if(s.response){let e=s.response.data;this.errorMessage=e.message,console.log(e);for(let s in e.errors)e.errors.hasOwnProperty(s)&&(this.submissionErrors[s]=e.errors[s][0],this.hasSubmissionErrors[s]=!0)}this.submitting=!1}}};var E=t(1639),x=t(9885),B=t(7128),C=t(8879),P=t(4458),S=t(3190),W=t(6611),Z=t(1221),I=t(9984),Q=t.n(I);const R=(0,E.Z)(q,[["render",w]]),M=R;Q()(q,"components",{QPage:x.Z,QBanner:B.Z,QBtn:C.Z,QCard:P.Z,QCardSection:S.Z,QInput:W.Z,QCheckbox:Z.Z})}}]);

1
public/v3/js/4355.044e2646.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[4568],{4568:(t,e,n)=>{n.r(e),n.d(e,{default:()=>M});var i=n(9835),a=n(6970);const s={class:"q-mr-sm"},r=["title"],o=(0,i.Uk)(": "),u=["title"],d={key:0},l=(0,i._)("br",null,null,-1),p=["title"],m=["title"],c={key:0};function h(t,e,n,h,f,g){const v=(0,i.up)("q-item-label"),_=(0,i.up)("q-item-section"),w=(0,i.up)("q-item"),y=(0,i.up)("q-separator"),A=(0,i.up)("q-circular-progress"),k=(0,i.up)("q-card-section"),b=(0,i.up)("q-card");return(0,i.wg)(),(0,i.iD)("div",s,[(0,i.Wm)(b,{bordered:""},{default:(0,i.w5)((()=>[(0,i.Wm)(w,null,{default:(0,i.w5)((()=>[(0,i.Wm)(_,null,{default:(0,i.w5)((()=>[(0,i.Wm)(v,null,{default:(0,i.w5)((()=>[(0,i._)("strong",null,(0,a.zw)(t.$t("firefly.bills_to_pay")),1)])),_:1})])),_:1})])),_:1}),(0,i.Wm)(y),(0,i.Wm)(k,{horizontal:""},{default:(0,i.w5)((()=>[(0,i.Wm)(k,null,{default:(0,i.w5)((()=>[(0,i.Wm)(A,{thickness:.22,value:g.percentage,color:"positive",size:"50px","track-color":"negative"},null,8,["thickness","value"])])),_:1}),(0,i.Wm)(y,{vertical:""}),0===f.unpaid.length&&0===f.paid.length?((0,i.wg)(),(0,i.j4)(k,{key:0},{default:(0,i.w5)((()=>[(0,i.Uk)((0,a.zw)(t.$t("firefly.no_bill")),1)])),_:1})):(0,i.kq)("",!0),f.unpaid.length>0||f.paid.length>0?((0,i.wg)(),(0,i.j4)(k,{key:1},{default:(0,i.w5)((()=>[(0,i._)("span",{title:g.formatAmount(this.currency,this.unpaidAmount)},(0,a.zw)(t.$t("firefly.bills_to_pay")),9,r),o,((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(f.unpaid,((t,e)=>((0,i.wg)(),(0,i.iD)("span",null,[(0,i._)("span",{title:g.formatAmount(t.native_code,t.native_sum)},[(0,i.Uk)((0,a.zw)(g.formatAmount(t.code,t.sum)),1),e+1!==f.unpaid.length?((0,i.wg)(),(0,i.iD)("span",d," + ")):(0,i.kq)("",!0)],8,u)])))),256)),l,f.paid.length>0?((0,i.wg)(),(0,i.iD)("span",{key:0,title:g.formatAmount(this.currency,this.paidAmount)},(0,a.zw)(t.$t("firefly.bills_paid"))+":",9,p)):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(f.paid,((t,e)=>((0,i.wg)(),(0,i.iD)("span",null,[(0,i._)("span",{title:g.formatAmount(t.native_code,t.native_sum)},(0,a.zw)(g.formatAmount(t.code,t.sum)),9,m),e+1!==f.paid.length?((0,i.wg)(),(0,i.iD)("span",c," + ")):(0,i.kq)("",!0)])))),256))])),_:1})):(0,i.kq)("",!0)])),_:1})])),_:1})])}var f=n(3555),g=n(1569),v=n(8898);class _{unpaid(t,e){let n="api/v2/bills/sum/unpaid",i=(0,v.Z)(t,"y-MM-dd"),a=(0,v.Z)(e,"y-MM-dd");return g.api.get(n,{params:{start:i,end:a}})}paid(t,e){let n="api/v2/bills/sum/paid",i=(0,v.Z)(t,"y-MM-dd"),a=(0,v.Z)(e,"y-MM-dd");return g.api.get(n,{params:{start:i,end:a}})}}const w={data(){return{store:null,unpaid:[],paid:[],currency:"EUR",unpaidAmount:0,paidAmount:0}},name:"BillInsightBox",computed:{percentage:function(){if(0===this.unpaidAmount)return 100;if(0===this.paidAmount)return 0;const t=this.paidAmount+this.unpaidAmount,e=this.paidAmount/t*100;return e>100?100:e}},mounted(){this.store=(0,f.S)(),this.store.$onAction((({name:t,$store:e,args:n,after:i,onError:a})=>{i((e=>{"setRange"===t&&this.triggerUpdate()}))})),this.triggerUpdate()},methods:{triggerUpdate:function(){if(null!==this.store.getRange.start&&null!==this.store.getRange.end){this.unpaid=[];const t=new Date(this.store.getRange.start),e=new Date(this.store.getRange.end),n=new _;this.currency=this.store.getCurrencyCode,n.unpaid(t,e).then((t=>this.parseUnpaidResponse(t.data))),n.paid(t,e).then((t=>this.parsePaidResponse(t.data)))}},formatAmount:function(t,e){return Intl.NumberFormat(this.store.getLocale,{style:"currency",currency:t}).format(e)},parseUnpaidResponse:function(t){for(let e in t)if(t.hasOwnProperty(e)){const n=t[e],i=n.converted&&n.native_id!==n.id&&0!==parseFloat(n.native_sum);this.unpaid.push({sum:n.sum,code:n.code,native_sum:n.converted?n.native_sum:n.sum,native_code:n.converted?n.native_code:n.code,native:i}),n.converted&&(i||n.native_id===n.id)&&(this.unpaidAmount=this.unpaidAmount+parseFloat(n.native_sum)),n.converted||(this.unpaidAmount=this.unpaidAmount+parseFloat(n.sum))}},parsePaidResponse:function(t){for(let e in t)if(t.hasOwnProperty(e)){const n=t[e],i=n.converted&&n.native_id!==n.id&&0!==parseFloat(n.native_sum);this.paid.push({sum:n.sum,code:n.code,native_sum:n.converted?n.native_sum:n.sum,native_code:n.converted?n.native_code:n.code,native:i}),n.converted&&(i||n.native_id===n.id)&&(this.paidAmount=this.paidAmount+-1*parseFloat(n.native_sum)),n.converted||(this.paidAmount=this.paidAmount+-1*parseFloat(n.sum))}}}};var y=n(1639),A=n(4458),k=n(490),b=n(1233),q=n(3115),Z=n(926),D=n(3190),R=n(3302),U=n(9984),W=n.n(U);const z=(0,y.Z)(w,[["render",h]]),M=z;W()(w,"components",{QCard:A.Z,QItem:k.Z,QItemSection:b.Z,QItemLabel:q.Z,QSeparator:Z.Z,QCardSection:D.Z,QCircularProgress:R.Z})}}]);

View File

@ -1 +0,0 @@
"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[4575],{4575:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N});var s=a(9835),n=a(6970);const r={class:"row q-mx-md"},o={class:"col-12"},i={class:"text-h6"},c={class:"row"},u={class:"col-12 q-mb-xs"},l=(0,s._)("br",null,null,-1),d=(0,s._)("br",null,null,-1),w={class:"row q-mt-sm"},g={class:"col-12"};function p(e,t,a,p,m,h){const b=(0,s.up)("q-card-section"),f=(0,s.up)("q-card"),_=(0,s.up)("LargeTable"),q=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(q,null,{default:(0,s.w5)((()=>[(0,s._)("div",r,[(0,s._)("div",o,[(0,s.Wm)(f,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[(0,s._)("div",i,(0,n.zw)(m.account.name),1)])),_:1}),(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[(0,s._)("div",c,[(0,s._)("div",u,[(0,s.Uk)(" Name: "+(0,n.zw)(m.account.name),1),l,(0,s.Uk)(" IBAN: "+(0,n.zw)(m.account.iban),1),d])])])),_:1})])),_:1})])]),(0,s._)("div",w,[(0,s._)("div",g,[(0,s.Wm)(_,{ref:"table",loading:e.loading,page:m.page,rows:m.rows,"rows-number":m.rowsNumber,"rows-per-page":m.rowsPerPage,title:"Transactions",onOnRequest:h.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","onOnRequest"])])])])),_:1})}var m=a(160),h=a(4643),b=a(3247);const f={name:"Show",data(){return{account:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getAccount()},mounted(){},components:{LargeTable:h.Z},methods:{onRequest:function(e){this.page=e.page,this.getAccount()},getAccount:function(){let e=new m.Z;e.get(this.id).then((e=>this.parseAccount(e))),this.loading=!0;const t=new b.Z;this.rows=[],e.transactions(this.id,this.page).then((e=>{let a=t.parseResponse(e);this.rowsPerPage=a.rowsPerPage,this.rowsNumber=a.rowsNumber,this.rows=a.rows,this.loading=!1}))},parseAccount:function(e){this.account={name:e.data.data.attributes.name,iban:e.data.data.attributes.iban}}}};var _=a(1639),q=a(9885),v=a(4458),P=a(3190),Z=a(9984),k=a.n(Z);const A=(0,_.Z)(f,[["render",p]]),N=A;k()(f,"components",{QPage:q.Z,QCard:v.Z,QCardSection:P.Z})}}]);

1
public/v3/js/4575.cc4b02ec.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[4575],{4575:(e,a,t)=>{t.r(a),t.d(a,{default:()=>N});var s=t(9835),n=t(6970);const o={class:"row q-mx-md"},r={class:"col-12"},i={class:"text-h6"},c={class:"row"},u={class:"col-12 q-mb-xs"},l=(0,s._)("br",null,null,-1),d=(0,s._)("br",null,null,-1),w={class:"row q-mt-sm"},g={class:"col-12"};function p(e,a,t,p,h,m){const b=(0,s.up)("q-card-section"),_=(0,s.up)("q-card"),f=(0,s.up)("LargeTable"),q=(0,s.up)("q-page");return(0,s.wg)(),(0,s.j4)(q,null,{default:(0,s.w5)((()=>[(0,s._)("div",o,[(0,s._)("div",r,[(0,s.Wm)(_,{bordered:""},{default:(0,s.w5)((()=>[(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[(0,s._)("div",i,(0,n.zw)(h.account.name),1)])),_:1}),(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[(0,s._)("div",c,[(0,s._)("div",u,[(0,s.Uk)(" Name: "+(0,n.zw)(h.account.name),1),l,(0,s.Uk)(" IBAN: "+(0,n.zw)(h.account.iban),1),d])])])),_:1})])),_:1})])]),(0,s._)("div",w,[(0,s._)("div",g,[(0,s.Wm)(f,{ref:"table",loading:e.loading,page:h.page,rows:h.rows,"rows-number":h.rowsNumber,"rows-per-page":h.rowsPerPage,title:"Transactions",onOnRequest:m.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","onOnRequest"])])])])),_:1})}var h=t(160),m=t(7454),b=t(3247);const _={name:"Show",data(){return{account:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getAccount()},mounted(){},components:{LargeTable:m.Z},methods:{onRequest:function(e){this.page=e.page,this.getAccount()},getAccount:function(){let e=new h.Z;e.get(this.id).then((e=>this.parseAccount(e))),this.loading=!0;const a=new b.Z;this.rows=[],e.transactions(this.id,this.page).then((e=>{let t=a.parseResponse(e);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseAccount:function(e){this.account={name:e.data.data.attributes.name,iban:e.data.data.attributes.iban}}}};var f=t(1639),q=t(9885),v=t(4458),P=t(3190),Z=t(9984),k=t.n(Z);const A=(0,f.Z)(_,[["render",p]]),N=A;k()(_,"components",{QPage:q.Z,QCard:v.Z,QCardSection:P.Z})}}]);

1
public/v3/js/4647.0380c870.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[4647],{4647:(t,e,a)=>{a.r(e),a.d(e,{default:()=>P});var i=a(9835),s=a(6970);const r=(0,i.Uk)("Edit"),o=(0,i.Uk)("Delete");function n(t,e,a,n,l,p){const u=(0,i.up)("q-th"),g=(0,i.up)("q-tr"),d=(0,i.up)("router-link"),h=(0,i.up)("q-td"),m=(0,i.up)("q-item-label"),c=(0,i.up)("q-item-section"),w=(0,i.up)("q-item"),f=(0,i.up)("q-list"),b=(0,i.up)("q-btn-dropdown"),y=(0,i.up)("q-table"),_=(0,i.up)("q-page"),k=(0,i.Q2)("close-popup");return(0,i.wg)(),(0,i.j4)(_,null,{default:(0,i.w5)((()=>[(0,i.Wm)(y,{pagination:l.pagination,"onUpdate:pagination":e[0]||(e[0]=t=>l.pagination=t),columns:l.columns,loading:l.loading,rows:l.rows,title:t.$t("firefly.object_groups"),class:"q-ma-md","row-key":"id",onRequest:p.onRequest},{header:(0,i.w5)((t=>[(0,i.Wm)(g,{props:t},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(t.cols,(e=>((0,i.wg)(),(0,i.j4)(u,{key:e.name,props:t},{default:(0,i.w5)((()=>[(0,i.Uk)((0,s.zw)(e.label),1)])),_:2},1032,["props"])))),128))])),_:2},1032,["props"])])),body:(0,i.w5)((t=>[(0,i.Wm)(g,{props:t},{default:(0,i.w5)((()=>[(0,i.Wm)(h,{key:"title",props:t},{default:(0,i.w5)((()=>[(0,i.Wm)(d,{to:{name:"groups.show",params:{id:t.row.id}},class:"text-primary"},{default:(0,i.w5)((()=>[(0,i.Uk)((0,s.zw)(t.row.title),1)])),_:2},1032,["to"])])),_:2},1032,["props"]),(0,i.Wm)(h,{key:"menu",props:t},{default:(0,i.w5)((()=>[(0,i.Wm)(b,{color:"primary",label:"Actions",size:"sm"},{default:(0,i.w5)((()=>[(0,i.Wm)(f,null,{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(w,{to:{name:"groups.edit",params:{id:t.row.id}},clickable:""},{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[r])),_:1})])),_:1})])),_:2},1032,["to"])),[[k]]),(0,i.wy)(((0,i.wg)(),(0,i.j4)(w,{clickable:"",onClick:e=>p.deleteGroup(t.row.id,t.row.title)},{default:(0,i.w5)((()=>[(0,i.Wm)(c,null,{default:(0,i.w5)((()=>[(0,i.Wm)(m,null,{default:(0,i.w5)((()=>[o])),_:1})])),_:1})])),_:2},1032,["onClick"])),[[k]])])),_:2},1024)])),_:2},1024)])),_:2},1032,["props"])])),_:2},1032,["props"])])),_:1},8,["pagination","columns","loading","rows","title","onRequest"])])),_:1})}var l=a(7913),p=a(1569);class u{list(t,e,a){let i="/api/v1/object_groups";return p.api.get(i,{params:{page:e,cache:a,type:t}})}}var g=a(3555);const d={name:"Index",watch:{$route(t){"groups.index"===t.name&&(this.page=1,this.updateBreadcrumbs(),this.triggerUpdate())}},data(){return{rows:[],pagination:{sortBy:"desc",descending:!1,page:1,rowsPerPage:5,rowsNumber:100},loading:!1,columns:[{name:"title",label:"Title",field:"title",align:"left"},{name:"menu",label:" ",field:"menu",align:"right"}],store:null}},computed:{},created(){this.pagination.rowsPerPage=this.getListPageSize,this.store=(0,g.S)()},mounted(){this.type=this.$route.params.type,null!==this.store.getRange.start&&null!==this.store.getRange.end||this.store.$onAction((({name:t,$store:e,args:a,after:i,onError:s})=>{i((e=>{"setRange"===t&&(this.range=e,this.triggerUpdate())}))})),null!==this.store.getRange.start&&null!==this.store.getRange.end&&(this.range={start:this.store.getRange.start,end:this.store.getRange.end},this.triggerUpdate())},methods:{deleteGroup:function(t,e){this.$q.dialog({title:"Confirm",message:'Do you want to delete group "'+e+'"? Any resources in this group will be saved.',cancel:!0,persistent:!0}).onOk((()=>{this.destroyGroup(t)}))},destroyGroup:function(t){new l.Z("object_groups").destroy(t).then((()=>{this.store.refreshCacheKey(),this.triggerUpdate()}))},updateBreadcrumbs:function(){this.$route.meta.pageTitle="firefly.groups",this.$route.meta.breadcrumbs=[{title:"groups"}]},onRequest:function(t){this.page=t.pagination.page,this.triggerUpdate()},triggerUpdate:function(){if(this.loading)return;if(null===this.range.start||null===this.range.end)return;this.loading=!0;const t=new u;this.rows=[],t.list(this.page,this.getCacheKey).then((t=>{this.pagination.rowsPerPage=t.data.meta.pagination.per_page,this.pagination.rowsNumber=t.data.meta.pagination.total,this.pagination.page=this.page;for(let e in t.data.data)if(t.data.data.hasOwnProperty(e)){let a=t.data.data[e],i={id:a.id,title:a.attributes.title};this.rows.push(i)}this.loading=!1}))}}};var h=a(1639),m=a(9885),c=a(9497),w=a(3532),f=a(1682),b=a(7220),y=a(2045),_=a(3246),k=a(490),q=a(1233),Z=a(3115),W=a(2146),Q=a(9984),R=a.n(Q);const U=(0,h.Z)(d,[["render",n]]),P=U;R()(d,"components",{QPage:m.Z,QTable:c.Z,QTr:w.Z,QTh:f.Z,QTd:b.Z,QBtnDropdown:y.Z,QList:_.Z,QItem:k.Z,QItemSection:q.Z,QItemLabel:Z.Z}),R()(d,"directives",{ClosePopup:W.Z})}}]);

Some files were not shown because too many files have changed in this diff Show More