Skip to content

Commit

Permalink
add : GalleryJsonMedia form field
Browse files Browse the repository at this point in the history
  • Loading branch information
webplusmultimedia committed Feb 26, 2024
1 parent c3fbceb commit ea436ad
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 80 deletions.
8 changes: 2 additions & 6 deletions resources/css/index.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/*@import '../../vendor/filament/filament/resources/css/theme.css';*/
@tailwind utilities;
.wm-json-media-dropzone{
@apply flex items-center justify-center w-full py-3 border border-dashed rounded-lg border-gray-300 text-gray-400 transition
hover:border-primary-400 dark:border-gray-400/50 dark:bg-gray-800 dark:hover:border-primary-600 dark:text-white/80;
&.wm-dropzone{
@apply border-primary-600 text-primary-600
}
.wm-json-media-dropzone.wm-dropzone{
@apply border-primary-600 text-primary-600 dark:border-primary-600 dark:text-primary-600;
}
.wm-btn{
@apply transition text-gray-800/40 hover:text-gray-800 p-1 rounded-full border border-gray-800/40 hover:border-gray-800 dark:text-gray-300/40 dark:hover:text-gray-300 dark:rounded-full dark:border dark:border-gray-300/40 dark:hover:border-gray-300;
Expand Down
2 changes: 1 addition & 1 deletion resources/dist/gallery-json-media.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/lang/en/gallery-json-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

// translations for GalleryJsonMedia/FilamentJsonMedia
return [
//
'Drag&Drop' => 'Drag & Drop or Click Here',
];
2 changes: 1 addition & 1 deletion resources/lang/fr/gallery-json-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

// translations for GalleryJsonMedia/FilamentJsonMedia
return [
//
'Drag&Drop' => 'Drag & Drop ou cliquer ICI',
];
5 changes: 3 additions & 2 deletions resources/views/forms/gallery-file-upload.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class="hidden"
accept="{{ implode(',',Arr::wrap($getAcceptedFileTypes())) }}"
>
<div @class([
"wm-json-media-dropzone",
"wm-json-media-dropzone flex items-center justify-center w-full py-3 border border-dashed rounded-lg border-gray-300 text-gray-400 transition
hover:border-primary-400 dark:border-gray-400/50 dark:bg-gray-800 dark:hover:border-primary-600 dark:text-white/80",
])
:class="{'pointer-events-none opacity-40' : startUpload}"

Expand All @@ -73,7 +74,7 @@ class="hidden"
<div class="flex gap-3 pointer-events-none" x-ref="ladroptitle">
@svg(name: 'heroicon-o-document-arrow-up',class:"w-10 h-auto text-slate-500" )
<div class="flex flex-col x-space-y-2">
<span>Drag & Drop ou cliquer ICI</span>
<span>{{ trans('gallery-json-media::gallery-json-media.Drag&Drop') }}</span>
<span x-text="@js($getAcceptFileText())"></span>
</div>
</div>
Expand Down
69 changes: 0 additions & 69 deletions src/Form/Concerns/HasExtensionFile.php

This file was deleted.

1 change: 1 addition & 0 deletions src/GalleryJsonMediaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function configurePackage(Package $package): void
*/
$package->name(static::$name)
->hasCommands($this->getCommands())
->hasTranslations()
->hasInstallCommand(function (InstallCommand $command) {
$command
->publishConfigFile()
Expand Down

0 comments on commit ea436ad

Please sign in to comment.