Skip to content

Commit

Permalink
delete team avatars folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kreaweb.be committed May 24, 2024
1 parent f8485d9 commit a60fa50
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 40 deletions.
5 changes: 5 additions & 0 deletions app/Actions/Jetstream/DeleteTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ public function delete(Team $team): void
// delete team photo folder
// -----------------------------------------------------------------------
Storage::disk('photos')->deleteDirectory($team->id);

// -----------------------------------------------------------------------
// delete team avatars folder
// -----------------------------------------------------------------------
Storage::disk('avatars')->deleteDirectory($team->id);
// -----------------------------------------------------------------------

$team->purge();
Expand Down
13 changes: 11 additions & 2 deletions config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
'throw' => false,
],

//photos
// photos
'photos' => [
'driver' => 'local',
'root' => storage_path('app/public/photos'),
Expand All @@ -52,7 +52,16 @@
'throw' => false,
],

//profile-pictures
// avatars
'photos' => [
'driver' => 'local',
'root' => storage_path('app/public/avatars'),
'url' => env('APP_URL') . '/storage/avatars',
'visibility' => 'public',
'throw' => false,
],

// profile-pictures
'profiles' => [
'driver' => 'local',
'root' => storage_path('app/public/profiles'),
Expand Down
36 changes: 36 additions & 0 deletions lang/de/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,40 @@
'team_personal' => 'Persönliches Team',
'teams' => 'Teams',
'users' => 'Benutzer',

// Messages
'team_details' => 'Teamdetails',
'team_create_new' => 'Create a new team to collaborate with others.',
'team_create_new_gedcom' => 'Erstellen Sie ein neues Team, um mit anderen zusammenzuarbeiten.',
'team_gedcom_reference' => 'Referenz',
'team_gedcom_specifications' => 'GEDCOM-Spezifikationen',
'team_gedcom_version' => 'Maximale GEDCOM-Version 5.5.5',
'team_gedcom_hint' => 'Lassen Sie uns ein Team basierend auf einer GEDCOM-Datei erstellen.',
'team_gedcom_tip' => 'Ziehen Sie Ihre GEDCOM-Datei per Drag & Drop hierher',

'team_name' => 'Teamname',
'team_information' => 'Der Name und die Eigentümerinformationen des Teams.',
'team_add_member' => 'Teammitglied hinzufügen',
'team_add_member_message' => 'Fügen Sie Ihrem Team ein neues Teammitglied hinzu, damit es mit Ihnen zusammenarbeiten kann.',
'team_provide' => 'Bitte geben Sie die E-Mail-Adresse der Person an, die Sie diesem Team hinzufügen möchten.',
'email' => 'Email',
'role' => 'Rolle',

'team_pending' => 'Ausstehende Teameinladungen',
'team_pending_message' => 'Diese Personen wurden in Ihr Team eingeladen und haben eine Einladungs-E-Mail erhalten. Sie können dem Team beitreten, indem Sie die E-Mail-Einladung annehmen.',

'team_members' => 'Teammitglieder',
'team_members_message' => 'Alle Menschen, die Teil dieses Teams sind.',
'manage_role' => 'Rolle verwalten',
'leave' => 'Verlassen',
'leave_team' => 'Team verlassen',
'leave_team_sure' => 'Sind Sie sicher, dass Sie dieses Team verlassen möchten?',
'remove' => 'Entfernen',
'remove_member' => 'Teammitglied entfernen',
'remove_member_sure' => 'Sind Sie sicher, dass Sie diese Person aus dem Team entfernen möchten?',

'delete_team_meassage' => 'Dieses Team dauerhaft löschen.',
'delete_team_text' => 'Sobald ein Team gelöscht wird, werden alle seine Ressourcen und Daten dauerhaft gelöscht. Bevor Sie dieses Team löschen, laden Sie bitte alle Daten oder Informationen zu diesem Team herunter, die Sie behalten möchten.',
'delete_team_sure' => 'Sind Sie sicher, dass Sie dieses Team löschen möchten? Sobald ein Team gelöscht wird, werden alle seine Ressourcen und Daten dauerhaft gelöscht.',

];
37 changes: 37 additions & 0 deletions lang/en/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,41 @@
'team_personal' => 'Personal team',
'teams' => 'Teams',
'users' => 'Users',

// Messages
'team_details' => 'Team Details',
'team_create_new' => 'Create a new team to collaborate with others.',
'team_create_new_gedcom' => 'Create a new team, imported from a GEDCOM file, to collaborate with others.',
'team_gedcom_reference' => 'Reference',
'team_gedcom_specifications' => 'GEDCOM Specifications',
'team_gedcom_version' => 'Maximal GEDCOM version 5.5.5',
'team_gedcom_hint' => 'Let\'s create a team based on a GEDCOM file',
'team_gedcom_tip' => 'Drag and drop your GEDCOM file here',

'team_name' => 'Team Name',
'team_information' => 'The team\'s name and owner information.',
'team_add_member' => 'Add Team Member',
'team_add_member_message' => 'Add a new team member to your team, allowing them to collaborate with you.',
'team_provide' => 'Please provide the email address of the person you would like to add to this team.',
'email' => 'Email',
'role' => 'Role',

'team_pending' => 'Pending Team Invitations',
'team_pending_message' => 'These people have been invited to your team and have been sent an invitation email. They may join the team by accepting the email invitation.',

'team_members' => 'Team members',
'team_members_message' => 'All of the people that are part of this team.',
'manage_role' => 'Manage role',
'leave' => 'Leave',
'leave_team' => 'Leave Team',
'leave_team_sure' => 'Are you sure you would like to leave this team?',
'remove' => 'Remove',
'remove_member' => 'Remove Team Member',
'remove_member_sure' => 'Are you sure you would like to remove this person from the team?',


'delete_team_meassage' => 'Permanently delete this team.',
'delete_team_text' => 'Once a team is deleted, all of its resources and data will be permanently deleted. Before deleting this team, please download any data or information regarding this team that you wish to retain.',
'delete_team_sure' => 'Are you sure you want to delete this team? Once a team is deleted, all of its resources and data will be permanently deleted.',

];
36 changes: 36 additions & 0 deletions lang/nl/team.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,40 @@
'team_personal' => 'Persoonlijk team',
'teams' => 'Teams',
'users' => 'Gebruikers',

// Messages
'team_details' => 'Teamdetails',
'team_create_new' => 'Creëer een nieuw team om met anderen samen te werken.',
'team_create_new_gedcom' => 'Creëer een nieuw team, geïmporteerd uit een GEDCOM-bestand, om met anderen samen te werken.',
'team_gedcom_reference' => 'Referentie',
'team_gedcom_specifications' => 'GEDCOM Specificaties',
'team_gedcom_version' => 'Maximaal GEDCOM versie 5.5.5',
'team_gedcom_hint' => 'Laten we een team creëren op basis van een GEDCOM-bestand',
'team_gedcom_tip' => 'Sleep uw GEDCOM-bestand hierheen',

'team_name' => 'Teamnaam',
'team_information' => 'De naam van het team en informatie over de eigenaar.',
'team_add_member' => 'Teamlid toevoegen',
'team_add_member_message' => 'Voeg een nieuw teamlid toe aan uw team, zodat deze met u kan samenwerken.',
'team_provide' => 'Geef het e-mailadres op van de persoon die u aan dit team wilt toevoegen.',
'email' => 'E-mail',
'role' => 'Rol',

'team_pending' => 'Teamuitnodigingen in behandeling',
'team_pending_message' => 'Deze mensen zijn uitgenodigd voor uw team en hebben een uitnodigingsmail ontvangen. Ze kunnen lid worden van het team door de uitnodiging in de e-mail te accepteren.',

'team_members' => 'Leden van het team',
'team_members_message' => 'Alle personen die deel uitmaken van dit team.',
'manage_role' => 'Rol beheren',
'leave' => 'Verlaten',
'leave_team' => 'Verlaat team',
'leave_team_sure' => 'Weet je zeker dat je dit team wilt verlaten?',
'remove' => 'Verwijder',
'remove_member' => 'Teamlid verwijderen',
'remove_member_sure' => 'Weet u zeker dat u deze persoon uit het team wilt verwijderen?',

'delete_team_meassage' => 'Verwijder dit team definitief.',
'delete_team_text' => 'Zodra een team is verwijderd, worden alle bronnen en gegevens permanent verwijderd. Voordat u dit team verwijdert, downloadt u alle gegevens of informatie over dit team die u wilt behouden.',
'delete_team_sure' => 'Weet u zeker dat u dit team wilt verwijderen? Zodra een team is verwijderd, worden alle bronnen en gegevens permanent verwijderd.',

];
15 changes: 6 additions & 9 deletions resources/views/livewire/gedcom/import.blade.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<x-form-section submit="createTeam">
<x-slot name="title">
<div class="dark:text-gray-400">
{{ __('Team Details') }}
{{ __('team.team_details') }}
</div>
</x-slot>

<x-slot name="description">
<div class="dark:text-gray-100">
{{ __('Create a new team, imported from a GEDCOM file, to collaborate with others.') }}
{{ __('team.team_create_new_gedcom') }}
</div>

<div class="dark:text-gray-100">
<br />
<p>Reference :
<x-link href="https://gedcom.io/specs/" target="_blank" title="GEDCOM Specifications">
<p>{{ __('team.team_gedcom_reference') }} :
<x-link href="https://gedcom.io/specs/" target="_blank" title="{{ __('team.team_gedcom_specifications') }}">
<x-svg.gedcom class="size-36 dark:fill-white hover:fill-primary-300 dark:hover:fill-primary-300" alt="gedcom" />
</x-link>
</p>
Expand Down Expand Up @@ -50,12 +50,9 @@

{{-- gedcom file input --}}
<div class="col-span-6 sm:col-span-4">
<x-ts-upload accept=".ged" wire:model="file" label="{{ __('team.gedcom_file') }} *" hint="Let's create a team based on your GEDCOM file" tip="Drag and drop your GEDCOM file here"
required>
<x-ts-upload accept=".ged" wire:model="file" label="{{ __('team.gedcom_file') }} *" hint="{{ __('team.team_gedcom_hint') }}" tip="{{ __('team.team_gedcom_tip') }}" required>
<x-slot:footer>
<x-button class="w-full">
Maximal GEDCOM version 5.5.5
</x-button>
<x-button class="w-full">{{ __('team.team_gedcom_version') }}</x-button>
</x-slot:footer>
</x-ts-upload>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/teams/create-team-form.blade.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<x-form-section submit="createTeam">
<x-slot name="title">
<div class="dark:text-gray-400">
{{ __('Team Details') }}
{{ __('team.team_details') }}
</div>
</x-slot>

<x-slot name="description">
<div class="dark:text-gray-100">
{{ __('Create a new team to collaborate with others.') }}
{{ __('team.team_create_new') }}
</div>
</x-slot>

Expand Down
6 changes: 3 additions & 3 deletions resources/views/teams/delete-team-form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<x-slot name="description">
<div class="dark:text-gray-100">
{{ __('Permanently delete this team.') }}
{{ __('team.delete_team_meassage') }}
</div>
</x-slot>

Expand All @@ -27,7 +27,7 @@
<x-hr.normal />

<div class="max-w-xl text-sm text-gray-600">
{{ __('Once a team is deleted, all of its resources and data will be permanently deleted. Before deleting this team, please download any data or information regarding this team that you wish to retain.') }}
{{ __('team.delete_team_text') }}
</div>

<div class="mt-5">
Expand All @@ -43,7 +43,7 @@
</x-slot>

<x-slot name="content">
{{ __('Are you sure you want to delete this team? Once a team is deleted, all of its resources and data will be permanently deleted.') }}
{{ __('team.delete_team_sure') }}
</x-slot>

<x-slot name="footer">
Expand Down
Loading

0 comments on commit a60fa50

Please sign in to comment.