Uploading content

This commit is contained in:
David
2025-03-12 00:41:31 -04:00
parent b192e57eb5
commit f70ef52f9e
108 changed files with 13255 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<div>
<a href="" wire:click.prevent = "$dispatch('edit')">Edit</a>
<a href="">Delete</a>
<a href="">Details</a>
</div>

View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="row g-3">
<div class="col-12">
<h1 class="text-center p-3 bg-secondary-subtle">Basic example</h1>
</div>
<div class="col-12">
@yield('content')
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>

View File

@@ -0,0 +1,8 @@
<div class="position-absolute top-0 start-0 w-100 h-100" style="display:none; background: rgba(0, 0, 0, 0.5)" id = "generic_table_loader">
<div class="d-flex h-100">
<div class="m-auto d-flex flex-column">
<div class="spinner-border mx-auto text-primary" role="status"></div>
<div class="text-white">Loading</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<div>
If you want to use this view overwrite the render method in PHP Livewire component
</div>

View File

@@ -0,0 +1,21 @@
<div>
<div class="card my-5">
<div class="card-header p-3">
<h4>Content</h4>
</div>
<div class="card-body">
<ul>
<li><a href="{{ route('table_no_settings') }}">Table with no settings needed</a></li>
<li><a href="{{ route('exportbale') }}">Exprtable</a></li>
<li><a href="{{ route('action_column') }}">Action Columns</a></li>
<li><a href="{{ route('with_filters') }}">Filters</a></li>
<li><a href="{{ route('with_column_formatters') }}">Formatters</a></li>
<li><a href="{{ route('with_binded_routes') }}">Binding Routes</a></li>
<li><a href="{{ route('with_pagination_settings') }}">Pagination Settings</a></li>
<li><a href="{{ route('with_drag_drop_ordering') }}">Drag and Drop Ordering</a></li>
<li><a href="{{ route('with_bulk_actions') }}">Bulk Actions</a></li>
<li><a href="{{ route('with_relationships') }}">Relationships</a></li>
</ul>
</div>
</div>
</div>

View File

@@ -0,0 +1,3 @@
<div>
@generic_table($table)
</div>

View File

@@ -0,0 +1,3 @@
<div>
@generic_table($table)
</div>

View File

@@ -0,0 +1,3 @@
<div>
@generic_table($table)
</div>

View File

@@ -0,0 +1,3 @@
<div>
@livewire('generic_table', ['table' => $table])
</div>

View File

@@ -0,0 +1,13 @@
<div class="container-fluid">
<div class="row">
<div class="col-auto">
<button wire:click = "$set('tab', 1)" class="w-100 btn btn-{{ $tab == 1 ? 'primary' : 'light' }}">Pendientes</button>
</div>
<div class="col-auto">
<button wire:click = "$set('tab', 2)" class="w-100 btn btn-{{ $tab == 2 ? 'primary' : 'light' }}">Pagados</button>
</div>
</div>
@generic_table($table, ['tabView' => $tab])
</div>

View File

@@ -0,0 +1,3 @@
<div>
@generic_table($noSettingsTable)
</div>

View File

@@ -0,0 +1,3 @@
<div>
@generic_table($table)
</div>

View File

@@ -0,0 +1,3 @@
<div>
@generic_table($table)
</div>

View File

@@ -0,0 +1,3 @@
<div>
@livewire('generic_table', ['table' => $table])
</div>

View File

@@ -0,0 +1,3 @@
<div>
@generic_table($table)
</div>

View File

@@ -0,0 +1,3 @@
<div>
@generic_table($table)
</div>

View File

@@ -0,0 +1,14 @@
<div>
You id is {{ $id }}
<button wire:click ="doSome">Hit child</button>
</div>
@script
<script>
// After the first "Hit parent" this will gives youn the error of no component found
// due the lack of hability of livewire to track correctly the previous component events
@this.on('did', () => {
alert('did it')
})
</script>
@endscript

View File

@@ -0,0 +1,4 @@
<div>
<button wire:click = "counting">Hit parent</button>
<livewire:test.child-component :id="$count" :key="$count">
</div>

View File

@@ -0,0 +1,5 @@
<div>
<a href="" wire:click.prevent = "$dispatch('edit', {productId:{{ $productId }}})">Edit</a>
<a href="" wire:click.prevent = "dispatcher({productId: {{ $productId }}})">Details</a>
<a href="">Delete</a>
</div>

File diff suppressed because one or more lines are too long