mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
fix(#12): correct mispelled word recipe
fix(#12): correct mispelled word recipe
This commit is contained in:
parent
302730c81e
commit
f530875210
17 changed files with 93 additions and 46 deletions
|
|
@ -21,8 +21,8 @@
|
|||
Devices
|
||||
</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 & Receipts
|
||||
:current="request()->routeIs(['plugins.index', 'plugins.markup', 'plugins.api', 'plugins.recipe'])">
|
||||
Plugins & Recipes
|
||||
</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 & Receipts
|
||||
Plugins & Recipes
|
||||
</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 / Receipt</div>
|
||||
<div class="whitespace-nowrap flex">Plugin / Recipe</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>
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ new class extends Component {
|
|||
|
||||
public function seedExamplePlugins(): void
|
||||
{
|
||||
// \Artisan::call('db:seed', ['--class' => 'ExampleReceiptsSeeder']);
|
||||
\Artisan::call(\App\Console\Commands\ExampleReceiptsSeederCommand::class, ['user_id' => auth()->id()]);
|
||||
// \Artisan::call('db:seed', ['--class' => 'ExampleRecipesSeeder']);
|
||||
\Artisan::call(\App\Console\Commands\ExampleRecipesSeederCommand::class, ['user_id' => auth()->id()]);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -71,20 +71,20 @@ 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 & Receipts</h2>
|
||||
<h2 class="text-2xl font-semibold dark:text-gray-100">Plugins & Recipes</h2>
|
||||
|
||||
<flux:button.group>
|
||||
<flux:modal.trigger name="add-plugin">
|
||||
<flux:button icon="plus" variant="primary">Add Receipt</flux:button>
|
||||
<flux:button icon="plus" variant="primary">Add Recipe</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 Receipts</flux:menu.item>
|
||||
<flux:menu.item icon="beaker" wire:click="seedExamplePlugins">Seed Example Recipes</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>--}}
|
||||
{{-- <flux:modal.trigger name="import-recipe">--}}
|
||||
{{-- <flux:menu.item icon="paper-clip">Import Recipe ZIP File</flux:menu.item>--}}
|
||||
{{-- </flux:modal.trigger>--}}
|
||||
{{-- <flux:menu.separator/>--}}
|
||||
{{-- <flux:modal.trigger name="add-native-plugin">--}}
|
||||
|
|
@ -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 Receipt</flux:heading>
|
||||
<flux:heading size="lg">Add Recipe</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 Receipt</flux:button>
|
||||
<flux:button type="submit" variant="primary">Create Recipe</flux:button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -152,7 +152,7 @@ new class extends Component {
|
|||
@foreach($plugins as $plugin)
|
||||
<div
|
||||
class="rounded-xl border bg-white dark:bg-stone-950 dark:border-stone-800 text-stone-800 shadow-xs">
|
||||
<a href="{{ ($plugin['detail_view_route']) ? route($plugin['detail_view_route']) : route('plugins.receipt', ['plugin' => $plugin['id']]) }}"
|
||||
<a href="{{ ($plugin['detail_view_route']) ? route($plugin['detail_view_route']) : route('plugins.recipe', ['plugin' => $plugin['id']]) }}"
|
||||
class="block">
|
||||
<div class="flex items-center space-x-4 px-10 py-8">
|
||||
<flux:icon name="{{$plugin['flux_icon_name'] ?? 'puzzle-piece'}}"
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ HTML;
|
|||
<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}}
|
||||
<flux:badge size="sm" class="ml-2">Receipt</flux:badge>
|
||||
<flux:badge size="sm" class="ml-2">Recipe</flux:badge>
|
||||
</h2>
|
||||
|
||||
<flux:button.group>
|
||||
Loading…
Add table
Add a link
Reference in a new issue