Uploading content
This commit is contained in:
3
resources/css/app.css
Normal file
3
resources/css/app.css
Normal file
@@ -0,0 +1,3 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
1
resources/js/app.js
Normal file
1
resources/js/app.js
Normal file
@@ -0,0 +1 @@
|
||||
import './bootstrap';
|
||||
4
resources/js/bootstrap.js
vendored
Normal file
4
resources/js/bootstrap.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import axios from 'axios';
|
||||
window.axios = axios;
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
5
resources/views/action-column.blade.php
Normal file
5
resources/views/action-column.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<div>
|
||||
<a href="" wire:click.prevent = "$dispatch('edit')">Edit</a>
|
||||
<a href="">Delete</a>
|
||||
<a href="">Details</a>
|
||||
</div>
|
||||
25
resources/views/components/layouts/app.blade.php
Normal file
25
resources/views/components/layouts/app.blade.php
Normal 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>
|
||||
8
resources/views/custom-loader.blade.php
Normal file
8
resources/views/custom-loader.blade.php
Normal 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>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
If you want to use this view overwrite the render method in PHP Livewire component
|
||||
</div>
|
||||
21
resources/views/livewire/examples/frame-component.blade.php
Normal file
21
resources/views/livewire/examples/frame-component.blade.php
Normal 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>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@livewire('generic_table', ['table' => $table])
|
||||
</div>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($noSettingsTable)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@livewire('generic_table', ['table' => $table])
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
14
resources/views/livewire/test/child-component.blade.php
Normal file
14
resources/views/livewire/test/child-component.blade.php
Normal 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
|
||||
4
resources/views/livewire/test/parent-component.blade.php
Normal file
4
resources/views/livewire/test/parent-component.blade.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<div>
|
||||
<button wire:click = "counting">Hit parent</button>
|
||||
<livewire:test.child-component :id="$count" :key="$count">
|
||||
</div>
|
||||
@@ -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>
|
||||
176
resources/views/welcome.blade.php
Normal file
176
resources/views/welcome.blade.php
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user