Skip to content

Commit b4d4b6d

Browse files
committed
Merge branch 'main' into feat/add_two_factor_auth
# Conflicts: # resources/js/app.tsx # resources/js/components/delete-user.tsx # resources/js/layouts/settings/layout.tsx # resources/js/pages/auth/confirm-password.tsx # resources/js/pages/settings/password.tsx # resources/js/pages/settings/profile.tsx
2 parents f93a661 + 3382e92 commit b4d4b6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1036
-262
lines changed

.prettierrc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
"singleQuote": true,
44
"singleAttributePerLine": false,
55
"htmlWhitespaceSensitivity": "css",
6-
"printWidth": 150,
7-
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss"],
8-
"tailwindFunctions": ["clsx", "cn"],
6+
"printWidth": 80,
7+
"plugins": [
8+
"prettier-plugin-organize-imports",
9+
"prettier-plugin-tailwindcss"
10+
],
11+
"tailwindFunctions": [
12+
"clsx",
13+
"cn"
14+
],
915
"tailwindStylesheet": "resources/css/app.css",
1016
"tabWidth": 4,
1117
"overrides": [

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"rsc": false,
55
"tsx": true,
66
"tailwind": {
7-
"config": "tailwind.config.js",
7+
"config": "",
88
"css": "resources/css/app.css",
99
"baseColor": "neutral",
1010
"cssVariables": true,

database/seeders/DatabaseSeeder.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use App\Models\User;
66
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
77
use Illuminate\Database\Seeder;
8+
use Illuminate\Support\Facades\Hash;
89

910
class DatabaseSeeder extends Seeder
1011
{
@@ -15,9 +16,13 @@ public function run(): void
1516
{
1617
// User::factory(10)->create();
1718

18-
User::factory()->create([
19-
'name' => 'Test User',
20-
'email' => '[email protected]',
21-
]);
19+
User::firstOrCreate(
20+
['email' => '[email protected]'],
21+
[
22+
'name' => 'Test User',
23+
'password' => Hash::make('password'),
24+
'email_verified_at' => now(),
25+
]
26+
);
2227
}
2328
}

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import js from '@eslint/js';
2-
import prettier from 'eslint-config-prettier';
2+
import prettier from 'eslint-config-prettier/flat';
33
import react from 'eslint-plugin-react';
44
import reactHooks from 'eslint-plugin-react-hooks';
55
import globals from 'globals';

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/css/app.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
@theme {
1111
--font-sans:
12-
'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
12+
'Instrument Sans', ui-sans-serif, system-ui, sans-serif,
13+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
14+
'Noto Color Emoji';
1315

1416
--radius-lg: var(--radius);
1517
--radius-md: calc(var(--radius) - 2px);

resources/js/app.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
99

1010
createInertiaApp({
1111
title: (title) => (title ? `${title} - ${appName}` : appName),
12-
resolve: (name) => resolvePageComponent(`./pages/${name}.tsx`, import.meta.glob('./pages/**/*.tsx')),
12+
resolve: (name) =>
13+
resolvePageComponent(
14+
`./pages/${name}.tsx`,
15+
import.meta.glob('./pages/**/*.tsx'),
16+
),
1317
setup({ el, App, props }) {
1418
const root = createRoot(el);
1519

resources/js/components/alert-error.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
22
import { AlertCircleIcon } from 'lucide-react';
33

4-
export default function AlertError({ errors, title }: { errors: string[]; title?: string }) {
4+
export default function AlertError({
5+
errors,
6+
title,
7+
}: {
8+
errors: string[];
9+
title?: string;
10+
}) {
511
return (
612
<Alert variant="destructive">
713
<AlertCircleIcon />

resources/js/components/app-content.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ interface AppContentProps extends React.ComponentProps<'main'> {
55
variant?: 'header' | 'sidebar';
66
}
77

8-
export function AppContent({ variant = 'header', children, ...props }: AppContentProps) {
8+
export function AppContent({
9+
variant = 'header',
10+
children,
11+
...props
12+
}: AppContentProps) {
913
if (variant === 'sidebar') {
1014
return <SidebarInset {...props}>{children}</SidebarInset>;
1115
}
1216

1317
return (
14-
<main className="mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl" {...props}>
18+
<main
19+
className="mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl"
20+
{...props}
21+
>
1522
{children}
1623
</main>
1724
);

0 commit comments

Comments
 (0)