Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Mar 1, 2024
1 parent 89b97ec commit abc21e8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 117 deletions.
51 changes: 0 additions & 51 deletions app/Livewire/Table/AllUrlTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ final class AllUrlTable extends PowerGridComponent

public string $sortDirection = 'desc';

/*
|--------------------------------------------------------------------------
| Features Setup
|--------------------------------------------------------------------------
| Setup Table's general features
|
*/
public function setUp(): array
{
return [
Expand All @@ -41,44 +34,11 @@ public function setUp(): array
];
}

/*
|--------------------------------------------------------------------------
| Datasource
|--------------------------------------------------------------------------
| Provides data to your Table using a Model or Collection
|
*/
public function datasource(): ?Builder
{
return Url::query();
}

/*
|--------------------------------------------------------------------------
| Relationship Search
|--------------------------------------------------------------------------
| Configure here relationships to be used by the Search and Table Filters.
|
*/

/**
* Relationship search.
*
* @return array<string, array<int, string>>
*/
public function relationSearch(): array
{
return [];
}

/*
|--------------------------------------------------------------------------
| Add Column
|--------------------------------------------------------------------------
| Make Datasource fields available to be used as columns.
| You can pass a closure to transform/modify the data.
|
*/
public function addColumns(): PowerGridColumns
{
return PowerGrid::columns()
Expand Down Expand Up @@ -134,18 +94,7 @@ class="btn btn-secondary btn-sm hover:text-red-600 active:text-red-700"
});
}

/*
|--------------------------------------------------------------------------
| Include Columns
|--------------------------------------------------------------------------
| Include the columns added columns, making them visible on the Table.
| Each column can be configured with properties, filters, actions...
|
*/

/**
* PowerGrid Columns.
*
* @return array<int, Column>
*/
public function columns(): array
Expand Down
33 changes: 0 additions & 33 deletions app/Livewire/Table/MyUrlTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ final class MyUrlTable extends PowerGridComponent

public string $sortDirection = 'desc';

/*
|--------------------------------------------------------------------------
| Features Setup
|--------------------------------------------------------------------------
| Setup Table's general features
|
*/
public function setUp(): array
{
return [
Expand All @@ -41,26 +34,11 @@ public function setUp(): array
];
}

/*
|--------------------------------------------------------------------------
| Datasource
|--------------------------------------------------------------------------
| Provides data to your Table using a Model or Collection
|
*/
public function datasource(): ?Builder
{
return Url::whereUserId(auth()->id());
}

/*
|--------------------------------------------------------------------------
| Add Column
|--------------------------------------------------------------------------
| Make Datasource fields available to be used as columns.
| You can pass a closure to transform/modify the data.
|
*/
public function addColumns(): PowerGridColumns
{
return PowerGrid::columns()
Expand Down Expand Up @@ -111,18 +89,7 @@ class="btn btn-secondary btn-sm hover:text-red-600 active:text-red-700"
});
}

/*
|--------------------------------------------------------------------------
| Include Columns
|--------------------------------------------------------------------------
| Include the columns added columns, making them visible on the Table.
| Each column can be configured with properties, filters, actions...
|
*/

/**
* PowerGrid Columns.
*
* @return array<int, Column>
*/
public function columns(): array
Expand Down
33 changes: 0 additions & 33 deletions app/Livewire/Table/UserTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ final class UserTable extends PowerGridComponent

public string $sortDirection = 'desc';

/*
|--------------------------------------------------------------------------
| Features Setup
|--------------------------------------------------------------------------
| Setup Table's general features
|
*/
public function setUp(): array
{
return [
Expand All @@ -38,26 +31,11 @@ public function setUp(): array
];
}

/*
|--------------------------------------------------------------------------
| Datasource
|--------------------------------------------------------------------------
| Provides data to your Table using a Model or Collection
|
*/
public function datasource(): ?Builder
{
return User::query();
}

/*
|--------------------------------------------------------------------------
| Add Column
|--------------------------------------------------------------------------
| Make Datasource fields available to be used as columns.
| You can pass a closure to transform/modify the data.
|
*/
public function addColumns(): PowerGridColumns
{
return PowerGrid::columns()
Expand Down Expand Up @@ -88,18 +66,7 @@ class="btn btn-secondary btn-sm"
});
}

/*
|--------------------------------------------------------------------------
| Include Columns
|--------------------------------------------------------------------------
| Include the columns added columns, making them visible on the Table.
| Each column can be configured with properties, filters, actions...
|
*/

/**
* PowerGrid Columns.
*
* @return array<int, Column>
*/
public function columns(): array
Expand Down

0 comments on commit abc21e8

Please sign in to comment.