Skip to content

Commit

Permalink
refs #2932 Added reload page when change assets
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Feb 3, 2025
1 parent 9b35767 commit e5a42cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<meta name="csrf_token" content="{{ csrf_token() }}" id="csrf_token">
<meta name="auth" content="{{ Auth::check() }}" id="auth">
@if(\Orchid\Support\Locale::isRtl())
<link rel="stylesheet" type="text/css" href="{{ mix('/css/orchid.rtl.css','vendor/orchid') }}">
<link rel="stylesheet" type="text/css" href="{{ mix('/css/orchid.rtl.css','vendor/orchid') }}" data-turbo-track="reload" >
@else
<link rel="stylesheet" type="text/css" href="{{ mix('/css/orchid.css','vendor/orchid') }}">
<link rel="stylesheet" type="text/css" href="{{ mix('/css/orchid.css','vendor/orchid') }}" data-turbo-track="reload" >
@endif

@stack('head')
Expand All @@ -31,18 +31,18 @@
<meta name="turbo-cache-control" content="no-cache">
@endif

<script src="{{ mix('/js/manifest.js','vendor/orchid') }}" type="text/javascript"></script>
<script src="{{ mix('/js/vendor.js','vendor/orchid') }}" type="text/javascript"></script>
<script src="{{ mix('/js/orchid.js','vendor/orchid') }}" type="text/javascript"></script>
@foreach(collect(['/js/manifest.js', '/js/vendor.js', '/js/orchid.js']) as $key)
<script src="{{ mix($key,'vendor/orchid') }}" data-turbo-track="reload" type="text/javascript"></script>
@endforeach

@foreach(Dashboard::getResource('stylesheets') as $stylesheet)
<link rel="stylesheet" href="{{ $stylesheet }}">
<link rel="stylesheet" href="{{ $stylesheet }}" data-turbo-track="reload">
@endforeach

@stack('stylesheets')

@foreach(Dashboard::getResource('scripts') as $scripts)
<script src="{{ $scripts }}" defer type="text/javascript"></script>
<script src="{{ $scripts }}" defer type="text/javascript" data-turbo-track="reload"></script>
@endforeach

@if(!empty(config('platform.vite', [])))
Expand Down

0 comments on commit e5a42cf

Please sign in to comment.