Skip to content

Commit

Permalink
[resources/components]: Revert adding type='module' on components scr…
Browse files Browse the repository at this point in the history
…ipts to support VITE (#1313)
  • Loading branch information
dfsmania authored Oct 15, 2024
1 parent 9ce9ef6 commit 4dafd79
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/form/date-range.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>
$(() => {
let usrCfg = _AdminLTE_DateRange.parseCfg( @json($config) );
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-color.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>
$(() => {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-date.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>
$(() => {
let usrCfg = _AdminLTE_InputDate.parseCfg( @json($config) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{{-- Add the plugin initialization code --}}

@push('js')
<script type="module">
<script>
$(() => {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-file.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@once
@push('js')
<script type="module">
<script>
$(() => {
bsCustomFileInput.init();
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-slider.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>
$(() => {
let usrCfg = @json($config);
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/input-switch.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>
$(() => {
$('#{{ $id }}').bootstrapSwitch( @json($config) );
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/select-bs.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>
$(() => {
$('#{{ $id }}').selectpicker( @json($config) );
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@if($errors->any() && $enableOldSupport)
@push('js')
<script type="module">
<script>
$(() => {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/select2.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>
$(() => {
$('#{{ $id }}').select2( @json($config) );
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/form/text-editor.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>
$(() => {
let usrCfg = @json($config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@once
@push('js')
<script type="module">
<script>
$(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

@if (! is_null($makeUpdateUrl()) && $makeUpdatePeriod() > 0)
@push('js')
<script type="module">
<script>
$(() => {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/tool/datatable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{{-- Add plugin initialization and configuration code --}}

@push('js')
<script type="module">
<script>
$(() => {
$('#{{ $id }}').DataTable( @json($config) );
Expand Down

0 comments on commit 4dafd79

Please sign in to comment.