Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Leantime/leantime
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Jan 18, 2024
2 parents 4431e7c + 6e53766 commit cebaa0a
Show file tree
Hide file tree
Showing 46 changed files with 671 additions and 54 deletions.
9 changes: 6 additions & 3 deletions app/Core/Support/Cast.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use Illuminate\Support\Str;

/**
* @todo the cast to method needs to be refactored to have better support of constructor params
**/
class Cast
{
protected array $mappings;
Expand Down Expand Up @@ -153,7 +156,7 @@ public static function castEnum(mixed $value, string $enumClass): mixed
* @param array $mappings
* @return array|object
**/
protected function handleIterator(array|object $iterator, array $mappings = []): array|object {
protected function handleIterator(iterable $iterator, array $mappings = []): array|object {
$result = is_object($iterator) ? new \stdClass : [];

foreach ($iterator as $key => $value) {
Expand Down Expand Up @@ -195,8 +198,8 @@ protected function handleIterator(array|object $iterator, array $mappings = []):
protected function getMatchingMappings(array $mappings, string $propName): array
{
return collect($mappings)
->filter(fn ($mapping) => Str::startsWith($mapping, "$propName.") || Str::startsWith($mapping, "*."))
->map(fn ($mapping) => Str::after('.', $mapping))
->filter(fn ($mapping, $key) => Str::startsWith($key, "$propName.") || Str::startsWith($key, '*.'))
->mapWithKeys(fn ($mapping, $key) => [Str::after($key, '.') => $mapping])
->all();
}
}
2 changes: 1 addition & 1 deletion app/Domain/Api/Services/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function jsonResponse(int $id, ?array $result): void
public function getCaseCorrectPathFromManifest(string $filepath): string|false
{
$manifest = mix()->getManifest();
$clone = array_change_key_case(collect(Arr::dot(mix()->getManifest()))
$clone = array_change_key_case(collect(Arr::dot($manifest))
->mapWithKeys(fn ($value, $key) => [Str::of($key)->replaceFirst('./', '/')->lower()->toString() => $value])
->all());

Expand Down
17 changes: 16 additions & 1 deletion app/Language/ar-SA.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="To search type and hit enter..."
input.placeholders.zulip_url="Example: https://company.zulipchat.com"
input.placeholders.discord_url="Example: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Filter by Board..."
input.placeholders.enter_title_for_board="Enter a title for your new canvas"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Describe your hypothesis in a few words"
input.placeholders.describe_assumption="What are your assumptions"
input.placeholders.describe_data="What data do you have to validate your hypothesis"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/cs-CZ.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="To search type and hit enter..."
input.placeholders.zulip_url="Example: https://company.zulipchat.com"
input.placeholders.discord_url="Example: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Filter by Board..."
input.placeholders.enter_title_for_board="Enter a title for your new canvas"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Describe your hypothesis in a few words"
input.placeholders.describe_assumption="What are your assumptions"
input.placeholders.describe_data="What data do you have to validate your hypothesis"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/da-DK.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="For at søge, skriv og tryk enter..."
input.placeholders.zulip_url="Eksempel: https://company.zulipchat.com"
input.placeholders.discord_url="Eksempel: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Filtrer efter tavle..."
input.placeholders.enter_title_for_board="Indtast en titel til din nye tavle"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Beskriv din hypotese med få ord"
input.placeholders.describe_assumption="Hvad er dine antagelser"
input.placeholders.describe_data="Hvilke data har du for at validere din hypotese"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/de-DE-inf.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="Gebe zum Suchen etwas ein und drücken
input.placeholders.zulip_url="Beispiel: https://company.zulipchat.com"
input.placeholders.discord_url="Beispiel: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Nach Board filtern..."
input.placeholders.enter_title_for_board="Gebe einen Titel für dein neues Board an"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Beschreibe deine Hypothese in wenigen Worten"
input.placeholders.describe_assumption="Was sind deine Annahmen"
input.placeholders.describe_data="Mit welchen Daten stützt du deine Hypothese"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/de-DE.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="Geben Sie zum Suchen etwas ein und dr
input.placeholders.zulip_url="Beispiel: https://company.zulipchat.com"
input.placeholders.discord_url="Beispiel: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Nach Board filtern..."
input.placeholders.enter_title_for_board="Geben Sie einen Titel für Ihr neues Board an"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Beschreiben Sie Ihre Hypothese in wenigen Worten"
input.placeholders.describe_assumption="Was sind Ihre Annahmen"
input.placeholders.describe_data="Mit welchen Daten stützen Sie Ihre Hypothese"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/el-GR.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="Για να αναζητήσετε τ
input.placeholders.zulip_url="Παράδειγμα: https://company.zulipchat.com"
input.placeholders.discord_url="Παράδειγμα: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Φιλτράρισμα ανά πίνακα..."
input.placeholders.enter_title_for_board="Εισάγετε έναν τίτλο για το νέο καμβά σας"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Περιγράψτε την υπόθεσή σας με λίγα λόγια"
input.placeholders.describe_assumption="Ποιες είναι οι υποθέσεις σας"
input.placeholders.describe_data="Ποια δεδομένα πρέπει να επικυρώσετε την υπόθεσή σας"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Ο πίνακας στόχων εν
menu.connector_tooltip="Σύνδεσμος"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

15 changes: 15 additions & 0 deletions app/Language/en-GB.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/en-PT.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="To search type and hit enter..."
input.placeholders.zulip_url="Example: https://company.zulipchat.com"
input.placeholders.discord_url="Example: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Filter by Board..."
input.placeholders.enter_title_for_board="Enter a title for your new canvas"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Describe your hypothesis in a few words"
input.placeholders.describe_assumption="What are your assumptions"
input.placeholders.describe_data="What data do you have to validate your hypothesis"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/en-UD.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="To search type and hit enter..."
input.placeholders.zulip_url="Example: https://company.zulipchat.com"
input.placeholders.discord_url="Example: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Filter by Board..."
input.placeholders.enter_title_for_board="Enter a title for your new canvas"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Describe your hypothesis in a few words"
input.placeholders.describe_assumption="What are your assumptions"
input.placeholders.describe_data="What data do you have to validate your hypothesis"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/es-419.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="To search type and hit enter..."
input.placeholders.zulip_url="Example: https://company.zulipchat.com"
input.placeholders.discord_url="Example: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Filter by Board..."
input.placeholders.enter_title_for_board="Enter a title for your new canvas"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Describe your hypothesis in a few words"
input.placeholders.describe_assumption="What are your assumptions"
input.placeholders.describe_data="What data do you have to validate your hypothesis"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/es-ES.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="Para buscar escribe y pulsa intro..."
input.placeholders.zulip_url="Ejemplo: https://company.zulipchat.com"
input.placeholders.discord_url="Ejemplo: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Filtrar por tablero..."
input.placeholders.enter_title_for_board="Introduce un título para tu nuevo panel"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Describe tu hipótesis en pocas palabras"
input.placeholders.describe_assumption="Cuáles son los supuestos"
input.placeholders.describe_data="Qué datos tienes para validar la hipótesis"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Tablero de objetivos actualizado co
menu.connector_tooltip="Conector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/es-MX.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="To search type and hit enter..."
input.placeholders.zulip_url="Example: https://company.zulipchat.com"
input.placeholders.discord_url="Example: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Filter by Board..."
input.placeholders.enter_title_for_board="Enter a title for your new canvas"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Describe your hypothesis in a few words"
input.placeholders.describe_assumption="What are your assumptions"
input.placeholders.describe_data="What data do you have to validate your hypothesis"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

17 changes: 16 additions & 1 deletion app/Language/et-EE.ini
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ input.placeholders.search_type_hit_enter="Otsimiseks kirjuta ja vajuta sisestusk
input.placeholders.zulip_url="Näide: https://company.zulipchat.com"
input.placeholders.discord_url="Näide: https://discord.com/api/webhooks/123/abc"
input.placeholders.filter_by_board="Filtreeri tahvli järgi..."
input.placeholders.enter_title_for_board="Sisesta oma uue lõuendi pealkiri"
input.placeholders.enter_title_for_board="Enter a title for your board"
input.placeholders.describe_hypothesis="Kirjeldage mõne sõnaga oma hüpoteesi"
input.placeholders.describe_assumption="Millised on teie eeldused"
input.placeholders.describe_data="Milliseid andmeid on teil oma hüpoteesi kinnitamiseks"
Expand Down Expand Up @@ -2349,3 +2349,18 @@ notification.goalboard_updated_successfully="Goal Board updated successfully"
menu.connector_tooltip="Connector"
widgets.title.pomodoro="🍅 Pomodoro Timer"

text.step_1="Step 1"
text.step_2="Step 2"
text.step_3="Step 3"
text.step_4="Step 4"
text.step_5="Step 5"
text.step_6="Step 6"
text.step_7="Step 7"
text.step_8="Step 8"

label.edit_project="Edit Project"
links.edit="Edit"

label.title_new="Title of your board"
buttons.save_board="Save Board"

Loading

0 comments on commit cebaa0a

Please sign in to comment.