Skip to content

Commit

Permalink
manual lint
Browse files Browse the repository at this point in the history
  • Loading branch information
awcodes committed Feb 6, 2024
1 parent 2875254 commit bbfd526
Show file tree
Hide file tree
Showing 36 changed files with 420 additions and 416 deletions.
60 changes: 32 additions & 28 deletions database/factories/MediaFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,34 @@ class MediaFactory extends Factory
public function definition(): array
{
$fileName = collect([
'alberto-restifo-Ni4NgA64TFQ-unsplash',
'blake-verdoorn-cssvEZacHvQ-unsplash',
'daniel-roe-lpjb_UMOyx8-unsplash',
'dave-hoefler-lsoogGC_5dg-unsplash',
'david-marcu-78A265wPiO4-unsplash',
'dawid-zawila--G3rw6Y02D0-unsplash',
'eberhard-grossgasteiger-pBgnT4KH8d4-unsplash',
'eberhard-grossgasteiger-y2azHvupCVo-unsplash',
'fabian-quintero-UWQP2mh5YJI-unsplash',
'federico-respini-sYffw0LNr7s-unsplash',
'felix-mittermeier-L4-16dmZ-1c-unsplash',
'guillaume-briard-QegnXyECDfw-unsplash',
'henry-be-IicyiaPYGGI-unsplash',
'igor-kasalovic-tNDvFkxkBHo-unsplash',
'joel-vodell-TApAkERW5pQ-unsplash',
'kees-streefkerk-Adl90-aXYwA-unsplash',
'luca-bravo-zAjdgNXsMeg-unsplash',
'lukasz-szmigiel-jFCViYFYcus-unsplash',
'niko-photos-tGTVxeOr_Rs-unsplash',
'robert-lukeman-_RBcxo9AU-U-unsplash',
'robert-lukeman-zNN6ubHmruI-unsplash',
'tim-swaan-eOpewngf68w-unsplash',
])->random() . '.jpg';
'alberto-restifo-Ni4NgA64TFQ-unsplash',
'blake-verdoorn-cssvEZacHvQ-unsplash',
'daniel-roe-lpjb_UMOyx8-unsplash',
'dave-hoefler-lsoogGC_5dg-unsplash',
'david-marcu-78A265wPiO4-unsplash',
'dawid-zawila--G3rw6Y02D0-unsplash',
'eberhard-grossgasteiger-pBgnT4KH8d4-unsplash',
'eberhard-grossgasteiger-y2azHvupCVo-unsplash',
'fabian-quintero-UWQP2mh5YJI-unsplash',
'federico-respini-sYffw0LNr7s-unsplash',
'felix-mittermeier-L4-16dmZ-1c-unsplash',
'guillaume-briard-QegnXyECDfw-unsplash',
'henry-be-IicyiaPYGGI-unsplash',
'igor-kasalovic-tNDvFkxkBHo-unsplash',
'joel-vodell-TApAkERW5pQ-unsplash',
'kees-streefkerk-Adl90-aXYwA-unsplash',
'luca-bravo-zAjdgNXsMeg-unsplash',
'lukasz-szmigiel-jFCViYFYcus-unsplash',
'niko-photos-tGTVxeOr_Rs-unsplash',
'robert-lukeman-_RBcxo9AU-U-unsplash',
'robert-lukeman-zNN6ubHmruI-unsplash',
'tim-swaan-eOpewngf68w-unsplash',
])->random() . '.jpg';

$directory = config('curator.directory');
$disk = config('curator.disk');

if (!Storage::disk($disk)->exists($directory . '/' . $fileName)) {
if (! Storage::disk($disk)->exists($directory . '/' . $fileName)) {
$fileContents = file_get_contents('https://res.cloudinary.com/aw-codes/image/upload/curator/seed-data/' . $fileName);
Storage::disk($disk)->put($directory . '/' . $fileName, $fileContents);
}
Expand Down Expand Up @@ -79,10 +79,14 @@ public function randomTimestamps(): MediaFactory
{
return $this->state(function (array $attributes) {
return [
'created_at' => \Carbon\Carbon::now()->addDays(rand(-800, 0))->addMinutes(rand(0,
60 * 23))->addSeconds(rand(0, 60)),
'updated_at' => \Carbon\Carbon::now()->addDays(rand(-799, 0))->addMinutes(rand(0,
60 * 23))->addSeconds(rand(0, 60))
'created_at' => \Carbon\Carbon::now()->addDays(rand(-800, 0))->addMinutes(rand(
0,
60 * 23
))->addSeconds(rand(0, 60)),
'updated_at' => \Carbon\Carbon::now()->addDays(rand(-799, 0))->addMinutes(rand(
0,
60 * 23
))->addSeconds(rand(0, 60)),
];
});
}
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/en/views.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
'download' => 'Download',
'remove' => 'Remove',
'deselect_all' => 'Deselect All',
'add_multiple_file' => 'Cmd + Click to select multiple files.'
'add_multiple_file' => 'Cmd + Click to select multiple files.',
],
'curation' => [
'heading' => 'Curating',
Expand Down
60 changes: 30 additions & 30 deletions resources/lang/es/forms.php
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<?php

return [
'sections' => [
'details' => 'Detalles',
'exif' => 'Datos Exif',
'file' => 'Archivo',
'meta' => 'Meta',
'preview' => 'Previsualización',
'upload_new' => 'Subir Nuevo',
'upload_new_helper' => 'Si tiene alguna curación para este medio, posiblemente necesite recrearla, no sucederá automáticamente.',
'curation' => 'Curación',
],
'fields' => [
'alt' => 'Texto Alt',
'alt_hint' => 'Alt?',
'caption' => 'Pié de foto',
'description' => 'Descripción',
'file' => 'Archivo',
'title' => 'Título',
'name' => 'Nombre',
],
'notices' => [
'success' => 'El ítem ha sido actualizado',
],
'curations' => [
'button_label' => 'Crear Curación',
],
'multi_upload' => [
'action_label' => 'Subida múltiple',
'modal_heading' => 'Subida múltiple de archivos',
'modal_file_label' => 'Archivos',
],
'sections' => [
'details' => 'Detalles',
'exif' => 'Datos Exif',
'file' => 'Archivo',
'meta' => 'Meta',
'preview' => 'Previsualización',
'upload_new' => 'Subir Nuevo',
'upload_new_helper' => 'Si tiene alguna curación para este medio, posiblemente necesite recrearla, no sucederá automáticamente.',
'curation' => 'Curación',
],
'fields' => [
'alt' => 'Texto Alt',
'alt_hint' => 'Alt?',
'caption' => 'Pié de foto',
'description' => 'Descripción',
'file' => 'Archivo',
'title' => 'Título',
'name' => 'Nombre',
],
'notices' => [
'success' => 'El ítem ha sido actualizado',
],
'curations' => [
'button_label' => 'Crear Curación',
],
'multi_upload' => [
'action_label' => 'Subida múltiple',
'modal_heading' => 'Subida múltiple de archivos',
'modal_file_label' => 'Archivos',
],
];
8 changes: 4 additions & 4 deletions resources/lang/es/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<?php

return [
'update_success' => 'El registro ha sido actualizado.',
'update_error' => 'Ha ocurrido un error al actualizar el registro.',
'delete_success' => 'El registro ha sido eliminado.',
'delete_error' => 'Ha ocurrido un error al eliminar el registro.',
'update_success' => 'El registro ha sido actualizado.',
'update_error' => 'Ha ocurrido un error al actualizar el registro.',
'delete_success' => 'El registro ha sido eliminado.',
'delete_error' => 'Ha ocurrido un error al eliminar el registro.',
];
24 changes: 12 additions & 12 deletions resources/lang/es/tables.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

return [
'columns' => [
'url' => 'URL',
'name' => 'Nombre',
'ext' => 'Extensión',
'disk' => 'Disco',
'directory' => 'Directorio',
'created_at' => 'Creado En',
],
'actions' => [
'toggle_table_grid' => 'Cuadricula',
'toggle_table_list' => 'Listado',
],
'columns' => [
'url' => 'URL',
'name' => 'Nombre',
'ext' => 'Extensión',
'disk' => 'Disco',
'directory' => 'Directorio',
'created_at' => 'Creado En',
],
'actions' => [
'toggle_table_grid' => 'Cuadricula',
'toggle_table_list' => 'Listado',
],
];
2 changes: 1 addition & 1 deletion resources/lang/fa/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
'curations' => [
'button_label' => 'ساختن Curation',
],
'multi_upload' => [
'multi_upload' => [
'action_label' => 'بارگذاری چندتایی',
'modal_heading' => 'بارگذاری چند فایل',
'modal_file_label' => 'فایلها',
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/fa/views.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
'download' => 'دانلود',
'remove' => 'حذف',
'deselect_all' => 'لغو انتخاب همه',
'add_multiple' => 'استفاده کنید Cmd + Click برای انتخاب چند فایل از.'
'add_multiple' => 'استفاده کنید Cmd + Click برای انتخاب چند فایل از.',
],
'curation' => [
'heading' => 'Curating',
Expand Down
68 changes: 34 additions & 34 deletions resources/lang/it/forms.php
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<?php

return [
'sections' => [
'details' => 'Dettagli',
'exif' => 'Dati Exif',
'file' => 'File',
'meta' => 'Metadati',
'preview' => 'Anteprima',
'upload_new' => 'Carica Nuovo',
'upload_new_helper' => 'Se hai delle modifiche da apportare a questo supporto, potrebbe essere necessario ricrearle manualmente; non verranno generate automaticamente.',
'curation' => 'Curation',
],
'fields' => [
'alt' => 'Testo Alt',
'alt_hint' => 'Alt?',
'caption' => 'Didascalia',
'description' => 'Descrizione',
'file' => 'File',
'title' => 'Titolo',
'name' => 'Nome',
],
'notices' => [
'success' => 'Elemento aggiornato con successo.',
],
'curations' => [
'button_label' => 'Crea Curation',
],
'multi_upload' => [
'action_label' => 'Carica Multipli',
'modal_heading' => 'Carica File Multipli',
'modal_file_label' => 'File',
],
];
<?php

return [
'sections' => [
'details' => 'Dettagli',
'exif' => 'Dati Exif',
'file' => 'File',
'meta' => 'Metadati',
'preview' => 'Anteprima',
'upload_new' => 'Carica Nuovo',
'upload_new_helper' => 'Se hai delle modifiche da apportare a questo supporto, potrebbe essere necessario ricrearle manualmente; non verranno generate automaticamente.',
'curation' => 'Curation',
],
'fields' => [
'alt' => 'Testo Alt',
'alt_hint' => 'Alt?',
'caption' => 'Didascalia',
'description' => 'Descrizione',
'file' => 'File',
'title' => 'Titolo',
'name' => 'Nome',
],
'notices' => [
'success' => 'Elemento aggiornato con successo.',
],
'curations' => [
'button_label' => 'Crea Curation',
],
'multi_upload' => [
'action_label' => 'Carica Multipli',
'modal_heading' => 'Carica File Multipli',
'modal_file_label' => 'File',
],
];
18 changes: 9 additions & 9 deletions resources/lang/it/notifications.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

return [
'update_success' => 'Il record è stato aggiornato con successo.',
'update_error' => 'Si è verificato un errore durante l\'aggiornamento del record.',
'delete_success' => 'Il record è stato eliminato con successo.',
'delete_error' => 'Si è verificato un errore durante l\'eliminazione del record.'
];
<?php

return [
'update_success' => 'Il record è stato aggiornato con successo.',
'update_error' => 'Si è verificato un errore durante l\'aggiornamento del record.',
'delete_success' => 'Il record è stato eliminato con successo.',
'delete_error' => 'Si è verificato un errore durante l\'eliminazione del record.',

];
32 changes: 16 additions & 16 deletions resources/lang/it/tables.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

return [
'columns' => [
'url' => 'URL',
'name' => 'Nome',
'ext' => 'Estensione',
'disk' => 'Disco',
'directory' => 'Cartella',
'created_at' => 'Creato il',
],
'actions' => [
'toggle_table_grid' => 'Vista Griglia',
'toggle_table_list' => 'Vista Elenco',
],
];
<?php

return [
'columns' => [
'url' => 'URL',
'name' => 'Nome',
'ext' => 'Estensione',
'disk' => 'Disco',
'directory' => 'Cartella',
'created_at' => 'Creato il',
],
'actions' => [
'toggle_table_grid' => 'Vista Griglia',
'toggle_table_list' => 'Vista Elenco',
],
];
Loading

0 comments on commit bbfd526

Please sign in to comment.