MedicOneSystems / MedicOneSystems/livewire-datatables
Dark Mode Support and Authentication
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
I did not see this in your docs, I am curious if you support dark mode or not. If not, is there some way I can add it with out editing the vendor files for future updates?
I also noticed the table will not work, that is you cannot use pagination if you are logged out. For example:
namespace App\Flare\View\Livewire;
use App\Flare\Models\Item;
use Mediconesystems\LivewireDatatables\Column;
use Mediconesystems\LivewireDatatables\Http\Livewire\LivewireDatatable;
use Mediconesystems\LivewireDatatables\NumberColumn;
class ItemsTable extends LivewireDatatable
{
public function builder()
{
return Item::query()->whereNotIn('type', ['quest', 'alchemy'])->whereNull('item_prefix_id')->whereNull('item_suffix_id');
}
public function columns()
{
return [
NumberColumn::name('id')
->label('ID'),
Column::name('name')
->label('Name'),
NumberColumn::name('cost')
->label('Gold Cost'),
];
}
}
This will load when logged out, but clicking on the pagination gives me a 302 and states I have to login. Is there a way to disable that? Or maybe it's a user error of some kind? Once I login the table works fully, but I also need it to work when the user is not logged in.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the logged-out pagination request with the ItemsTable example, focusing on the builder, columns, and redirect to login. Then identify the package entry points for pagination and styling; done means pagination works for logged-out users and dark mode can be added without editing vendor files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php, tailwindcss
- Domain
- authentication, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100