Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed Aug 12, 2024
1 parent 0b9056e commit 98b988b
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 30 deletions.
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ export default [
{
ignores: [
'public',
'resources/js/classic',
'resources/js/types/ziggy.d.ts',
'vendor',
'vite.config.[jt]s.timestamp-*',
Expand Down
5 changes: 1 addition & 4 deletions resources/js/Components/Appearances.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<script lang="ts">
let {
count,
small = false,
}: {
let { count, small = false }: {
count: number;
small?: boolean;
} = $props();
Expand Down
5 changes: 1 addition & 4 deletions resources/js/Pages/Artists/Components/Form/PhotoForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import Label from '@/Components/Form/Label.svelte';
import Cropper, { type CropValue } from '@/Components/Cropper.svelte';
let {
currentPhoto,
form,
}: {
let { currentPhoto, form }: {
currentPhoto: EditPhotoResource | null;
form: InertiaForm<{
photo: {
Expand Down
6 changes: 1 addition & 5 deletions resources/js/Pages/Tales/Components/Form/CoverForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
import type { CoverResource } from '@/types/tales';
import Label from '@/Components/Form/Label.svelte';
let {
currentCover,
form,
action,
}: {
let { currentCover, form, action }: {
currentCover: CoverResource | null;
form: InertiaForm<{
removeCover: boolean;
Expand Down
4 changes: 1 addition & 3 deletions resources/js/Pages/Tales/Components/Form/CreditsForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import { creditLabels } from '@/helpers/creditLabels';
import ArtistPicker from '@/Components/ComboBox/ArtistPicker.svelte';
let {
form,
}: {
let { form }: {
form: InertiaForm<{
credits: Array<{
artist: string;
Expand Down
5 changes: 1 addition & 4 deletions resources/js/Pages/Tales/Components/Form/Form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
import ActorsForm from './ActorsForm.svelte';
import Button from '@/Components/Form/Button.svelte';
let {
tale,
action,
}: {
let { tale, action }: {
tale: EditResource;
action: 'create' | 'edit';
} = $props();
Expand Down
4 changes: 1 addition & 3 deletions resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
<title inertia>Bajki Polskich Nagrań „Muza”</title>

@unless (app()->runningUnitTests())
@vite(['resources/css/style.css'])
@vite('resources/css/style.css')
@vite(['resources/js/app.ts', "resources/js/Pages/{$page['component']}.svelte"])
@endunless

@yield('head')

@routes
@inertiaHead

Expand Down
3 changes: 1 addition & 2 deletions tests/Unit/InertiaSharedPropsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Tests\Unit;

use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use Inertia\Testing\AssertableInertia as Assert;
Expand All @@ -18,7 +17,7 @@ protected function setUp(): void

Route::middleware('web')->get(
'inertia-shared-props-test',
fn (Request $request) => Inertia::render('InertiaSharedPropsTest', []),
fn () => Inertia::render('InertiaSharedPropsTest', []),
);
}

Expand Down
5 changes: 1 addition & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import { svelte, vitePreprocess } from '@sveltejs/vite-plugin-svelte';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/style.css',
'resources/js/app.ts',
],
input: ['resources/css/style.css', 'resources/js/app.ts'],
refresh: true,
}),
svelte({
Expand Down

0 comments on commit 98b988b

Please sign in to comment.