mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
fix(#10): differentiate between plugins and receipts for more consistent naming
This commit is contained in:
parent
e2fa5c1340
commit
7b9e0991d2
6 changed files with 17 additions and 11 deletions
|
|
@ -22,7 +22,7 @@
|
|||
</flux:navbar.item>
|
||||
<flux:navbar.item icon="puzzle-piece" href="{{ route('plugins.index') }}" wire:navigate
|
||||
:current="request()->routeIs(['plugins.index', 'plugins.markup', 'plugins.api', 'plugins.receipt'])">
|
||||
Plugins
|
||||
Plugins & Receipts
|
||||
</flux:navbar.item>
|
||||
<flux:navbar.item icon="play" href="{{ route('playlists.index') }}" wire:navigate
|
||||
:current="request()->routeIs('playlists.index')">
|
||||
|
|
@ -102,7 +102,7 @@
|
|||
</flux:navbar.item>
|
||||
<flux:navbar.item icon="puzzle-piece" href="{{ route('plugins.index') }}" wire:navigate
|
||||
:current="request()->routeIs('plugins.index')" class="m-2">
|
||||
Plugins
|
||||
Plugins & Receipts
|
||||
</flux:navbar.item>
|
||||
<flux:navbar.item icon="play" href="{{ route('playlists.index') }}" wire:navigate
|
||||
:current="request()->routeIs('playlists.index')" class="m-2">
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ new class extends Component {
|
|||
<tr>
|
||||
<th class="py-3 px-3 first:pl-0 last:pr-0 text-left text-sm font-medium text-zinc-800 dark:text-white"
|
||||
data-flux-column>
|
||||
<div class="whitespace-nowrap flex">Plugin</div>
|
||||
<div class="whitespace-nowrap flex">Plugin / Receipt</div>
|
||||
</th>
|
||||
<th class="py-3 px-3 first:pl-0 last:pr-0 text-left text-sm font-medium text-zinc-800 dark:text-white"
|
||||
data-flux-column>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,9 @@ new class extends Component {
|
|||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="flex justify-between items-center mb-6">
|
||||
<h2 class="text-2xl font-semibold dark:text-gray-100">API</h2>
|
||||
<h2 class="text-2xl font-semibold dark:text-gray-100">API
|
||||
<flux:badge size="sm" class="ml-2">Plugin</flux:badge>
|
||||
</h2>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -71,17 +71,17 @@ new class extends Component {
|
|||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="flex justify-between items-center mb-6">
|
||||
<h2 class="text-2xl font-semibold dark:text-gray-100">Plugins</h2>
|
||||
<h2 class="text-2xl font-semibold dark:text-gray-100">Plugins & Receipts</h2>
|
||||
|
||||
<flux:button.group>
|
||||
<flux:modal.trigger name="add-plugin">
|
||||
<flux:button icon="plus" variant="primary">Add Plugin</flux:button>
|
||||
<flux:button icon="plus" variant="primary">Add Receipt</flux:button>
|
||||
</flux:modal.trigger>
|
||||
|
||||
<flux:dropdown>
|
||||
<flux:button icon="chevron-down" variant="primary"></flux:button>
|
||||
<flux:menu>
|
||||
<flux:menu.item icon="beaker" wire:click="seedExamplePlugins">Seed Example Plugins</flux:menu.item>
|
||||
<flux:menu.item icon="beaker" wire:click="seedExamplePlugins">Seed Example Receipts</flux:menu.item>
|
||||
{{-- <flux:menu.separator/>--}}
|
||||
{{-- <flux:modal.trigger name="import-receipt">--}}
|
||||
{{-- <flux:menu.item icon="paper-clip">Import Receipt ZIP File</flux:menu.item>--}}
|
||||
|
|
@ -100,7 +100,7 @@ new class extends Component {
|
|||
<flux:modal name="add-plugin" class="md:w-96">
|
||||
<div class="space-y-6">
|
||||
<div>
|
||||
<flux:heading size="lg">Add Plugin</flux:heading>
|
||||
<flux:heading size="lg">Add Receipt</flux:heading>
|
||||
</div>
|
||||
|
||||
<form wire:submit="addPlugin">
|
||||
|
|
@ -142,7 +142,7 @@ new class extends Component {
|
|||
|
||||
<div class="flex">
|
||||
<flux:spacer/>
|
||||
<flux:button type="submit" variant="primary">Create Plugin</flux:button>
|
||||
<flux:button type="submit" variant="primary">Create Receipt</flux:button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -142,7 +142,9 @@ HTML;
|
|||
|
||||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<h2 class="text-2xl font-semibold dark:text-gray-100">Markup</h2>
|
||||
<h2 class="text-2xl font-semibold dark:text-gray-100">Markup
|
||||
<flux:badge size="sm" class="ml-2">Plugin</flux:badge>
|
||||
</h2>
|
||||
|
||||
{{-- <div class="flex justify-between items-center mb-6">--}}
|
||||
|
||||
|
|
|
|||
|
|
@ -201,7 +201,9 @@ HTML;
|
|||
<div class="py-12">
|
||||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
|
||||
<div class="flex justify-between items-center mb-6">
|
||||
<h2 class="text-2xl font-semibold dark:text-gray-100">{{$plugin->name}}</h2>
|
||||
<h2 class="text-2xl font-semibold dark:text-gray-100">{{$plugin->name}}
|
||||
<flux:badge size="sm" class="ml-2">Receipt</flux:badge>
|
||||
</h2>
|
||||
|
||||
<flux:button.group>
|
||||
<flux:modal.trigger name="add-to-playlist">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue