Skip to content

Commit

Permalink
Merge pull request #106 from mostafaznv/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mostafaznv authored Dec 24, 2023
2 parents f6fa30c + b3080da commit c1a7f11
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions resources/js/components/media-browser/MediaBrowserInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ function secondsToHms(seconds) {
display: flex;
flex-direction: column;
margin-top: 16px;
padding-bottom: 16px;
&--item {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
</form>


<span class="pagination__info inline-block mr-2">{{ __('of') }} {{ total }}</span>
<span class="pagination__info inline-block mr-2">
{{ __('of') }} {{ total > 0 ? total : 1 }}
</span>

<button
@click="updatePage(modelValue + 1)"
Expand Down
4 changes: 4 additions & 0 deletions stubs/resources/Video.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace App\Nova\Resources;

use App\Nova\Resource;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\DateTime;
use Laravel\Nova\Fields\Text;
use Mostafaznv\NovaCkEditor\VideoUpload;
use App\Models\Video as VideoModel;
Expand Down Expand Up @@ -36,6 +37,9 @@ class Video extends Resource
VideoMeta::make(self::ATTACHMENT_NAME)->width(),
VideoMeta::make(self::ATTACHMENT_NAME)->height(),
VideoMeta::make(self::ATTACHMENT_NAME)->duration(),

DateTime::make(trans('Created At'), 'created_at')->readonly(),
DateTime::make(trans('Updated At'), 'updated_at')->readonly()
];
}

Expand Down

0 comments on commit c1a7f11

Please sign in to comment.