Skip to content

Commit 6cc1b26

Browse files
committed
fix(web): Directory Structure
1 parent 71a6900 commit 6cc1b26

Some content is hidden

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

69 files changed

+446
-182
lines changed

apps/web-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"scripts": {
1010
"build": "nuxt build",
11-
"dev": "PORT=3000 nuxt dev --host",
11+
"dev": "PORT=3001 nuxt dev --host",
1212
"generate": "nuxt generate",
1313
"preview": "nuxt preview"
1414
},

apps/web/app/globals.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

apps/web/components.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "app/styles/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/src/components",
15+
"utils": "@/src/lib/utils",
16+
"ui": "@/src/components/shadcn-ui"
17+
}
18+
}

apps/web/components/toaster.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/web/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"dev": "next dev --turbo",
7+
"dev": "PORT=3000 next dev --turbo",
88
"build": "next build",
99
"start": "next start",
1010
"check": "next lint"
1111
},
1212
"dependencies": {
13+
"@phosphor-icons/react": "^2.1.5",
14+
"@radix-ui/react-slot": "^1.0.2",
1315
"@radix-ui/themes": "^3.0.2",
1416
"@simplewebauthn/browser": "^10.0.0",
1517
"@tanstack/react-query": "^4.36.1",
@@ -22,6 +24,7 @@
2224
"@u22n/tiptap": "workspace:^",
2325
"@u22n/utils": "workspace:^",
2426
"@uidotdev/usehooks": "^2.4.1",
27+
"class-variance-authority": "^0.7.0",
2528
"clsx": "^2.1.1",
2629
"cmdk": "^1.0.0",
2730
"date-fns": "^3.6.0",
@@ -44,11 +47,12 @@
4447
"sonner": "^1.4.41",
4548
"superjson": "^2.2.1",
4649
"tailwind-merge": "^2.3.0",
47-
"tailwindcss-radix-colors": "^1.2.0",
50+
"tailwindcss-animate": "^1.0.7",
4851
"zod": "^3.23.8",
4952
"zustand": "^4.5.2"
5053
},
5154
"devDependencies": {
55+
"@radix-ui/colors": "^3.0.0",
5256
"@types/node": "^20.12.7",
5357
"@types/qrcode": "^1.5.5",
5458
"@types/react": "^18.3.1",
@@ -57,6 +61,7 @@
5761
"eslint-config-next": "14.2.1",
5862
"postcss": "^8.4.38",
5963
"tailwindcss": "^3.4.3",
60-
"typescript": "^5.4.5"
64+
"typescript": "^5.4.5",
65+
"windy-radix-palette": "2.0.0-beta.7"
6166
}
6267
}

apps/web/app/(login)/PasskeyLogin.tsx renamed to apps/web/src/app/(login)/_components/passkey-login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import { Button } from '@radix-ui/themes';
44
import { Fingerprint } from 'lucide-react';
5-
import { api } from '@/lib/trpc';
5+
import { api } from '@/src/lib/trpc';
66
import { startAuthentication } from '@simplewebauthn/browser';
77
import { useRouter } from 'next/navigation';
8-
import useLoading from '@/hooks/use-loading';
8+
import useLoading from '@/src/hooks/use-loading';
99
import { toast } from 'sonner';
1010

1111
export default function PasskeyLoginButton() {

apps/web/app/(login)/PasswordLogin.tsx renamed to apps/web/src/app/(login)/_components/password-login.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
'use client';
22

3-
import { InputOTP, InputOTPGroup, InputOTPSlot } from '@/components/input-otp';
4-
import useLoading from '@/hooks/use-loading';
5-
import { api } from '@/lib/trpc';
3+
import {
4+
InputOTP,
5+
InputOTPGroup,
6+
InputOTPSlot
7+
} from '@/src/components/input-otp';
8+
import useLoading from '@/src/hooks/use-loading';
9+
import { api } from '@/src/lib/trpc';
610
import { useRouter } from 'next/navigation';
711
import {
812
Button,
@@ -16,7 +20,7 @@ import { KeyRound, User } from 'lucide-react';
1620
import { useRef, useState } from 'react';
1721
import { toast } from 'sonner';
1822
import { zodSchemas } from '@u22n/utils';
19-
import TogglePasswordBox from '@/components/toggle-password';
23+
import TogglePasswordBox from '@/src/components/toggle-password';
2024

2125
export default function PasswordLoginButton() {
2226
const [username, setUsername] = useState('');

apps/web/app/(login)/page.tsx renamed to apps/web/src/app/(login)/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Flex, Box, Heading, Separator, Badge, Button } from '@radix-ui/themes';
2-
import PasskeyLoginButton from './PasskeyLogin';
3-
import PasswordLoginButton from './PasswordLogin';
2+
import PasskeyLoginButton from './_components/passkey-login';
3+
import PasswordLoginButton from './_components/password-login';
44
import Link from 'next/link';
5-
import RecoveryButton from './RecoveryButton';
5+
import RecoveryButton from './_components/recovery-button';
66

77
export default async function Page() {
88
return (

apps/web/app/[orgShortCode]/Sidebar.tsx renamed to apps/web/src/app/[orgShortCode]/_components/sidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use client';
22

3-
import useLoading from '@/hooks/use-loading';
4-
import { cn, generateAvatarUrl, getInitials } from '@/lib/utils';
5-
import { useGlobalStore } from '@/providers/global-store-provider';
3+
import useLoading from '@/src/hooks/use-loading';
4+
import { cn, generateAvatarUrl, getInitials } from '@/src/lib/utils';
5+
import { useGlobalStore } from '@/src/providers/global-store-provider';
66
import {
77
Button,
88
Flex,

0 commit comments

Comments
 (0)