tests / feature (8.5) (push) Successful in 1m14s
tests / lint (push) Successful in 1m1s
tests / feature (8.4) (push) Successful in 1m9s
tests / browser (chrome, chromium) (push) Successful in 3m22s
tests / browser (firefox, firefox) (push) Successful in 4m37s
tests / browser (safari, webkit) (push) Successful in 5m4s
A search app bar looks through every section, example and component, opens the section, or the example at its anchor on its page, and is reached from anywhere with / or Ctrl+K. Section pages now carry their own heading. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
28 lines
1.2 KiB
PHP
28 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use NoNameWeb\LivewireMaterial\Http\Controllers\ShowcaseController;
|
|
use NoNameWeb\LivewireMaterial\Http\Controllers\ShowcasePageController;
|
|
use NoNameWeb\LivewireMaterial\Http\Controllers\ShowcaseSymbolController;
|
|
use NoNameWeb\LivewireMaterial\Showcase\Sections;
|
|
|
|
Route::get('/', [ShowcaseController::class, 'index'])->name('showcase');
|
|
|
|
Route::get('symbols.json', [ShowcaseSymbolController::class, 'index'])->name('symbols');
|
|
Route::get('symbols/{style}/{name}.svg', [ShowcaseSymbolController::class, 'show'])->name('symbol');
|
|
|
|
Route::view('shell/{page?}', 'livewire-material::showcase.shell')
|
|
->whereIn('page', ['inbox', 'starred', 'sent', 'drafts', 'travel', 'receipts'])
|
|
->name('shell');
|
|
|
|
Route::get('errors/{code}', [ShowcasePageController::class, 'error'])
|
|
->whereIn('code', ['401', '402', '403', '404', '419', '429', '500', '503'])
|
|
->name('error');
|
|
Route::get('mail', [ShowcasePageController::class, 'mail'])->name('mail');
|
|
|
|
Route::get('search.json', [ShowcaseController::class, 'search'])->name('search');
|
|
|
|
Route::get('{section}', [ShowcaseController::class, 'section'])
|
|
->whereIn('section', array_keys(Sections::all()))
|
|
->name('section');
|