Skip to content

Commit 2f7279e

Browse files
authored
Feat/init staff web (#160)
* build: add staff next * fix: update dev script to specify port for development server * refactor: simplify Home component to display WEB STAFF * refactor: replace Geist font with Sarabun in layout and globals * fix: add @workspace/db dependency to staff package * feat: update staff package dependencies and add health check endpoint * feat: add ThemeProvider component and integrate next-themes for theming support * feat: enhance staff app with new dashboard components and UI elements * feat: update staff app dashboard to track team registrations and submissions * refactor: remove commented code for clarity in user-v-done.ts * refactor: update import path for TeamsChart component in dashboard page * feat: add navbar * feat: add ThemeSwitcher component for dynamic theme selection and update dependencies * feat: integrate theme selection in Navbar with ThemeSwitcher component
1 parent 608b72c commit 2f7279e

Some content is hidden

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

41 files changed

+4425
-88
lines changed

.vscode/settings.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
22
"editor.formatOnSave": true,
3-
"css.customData": [".vscode/tailwind.json"]
3+
"css.customData": [".vscode/tailwind.json"],
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"[typescript]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"[typescriptreact]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
}
411
}

apps/staff/.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

apps/staff/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

apps/staff/components.json

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

apps/staff/eslint.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { FlatCompat } from "@eslint/eslintrc"
2+
import { dirname } from "path"
3+
import { fileURLToPath } from "url"
4+
5+
const __filename = fileURLToPath(import.meta.url)
6+
const __dirname = dirname(__filename)
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
})
11+
12+
const eslintConfig = [
13+
...compat.extends("next/core-web-vitals", "next/typescript"),
14+
{
15+
ignores: ["node_modules/**", ".next/**", "out/**", "build/**", "next-env.d.ts"],
16+
},
17+
]
18+
19+
export default eslintConfig

apps/staff/next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { NextConfig } from "next"
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
}
6+
7+
export default nextConfig

apps/staff/package.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "staff",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev --turbopack -p 3002",
7+
"build": "next build --turbopack",
8+
"start": "next start",
9+
"lint": "eslint"
10+
},
11+
"dependencies": {
12+
"@number-flow/react": "^0.5.10",
13+
"@orpc/client": "^1.8.5",
14+
"@orpc/react": "^1.8.5",
15+
"@orpc/server": "^1.8.5",
16+
"@radix-ui/react-slot": "^1.2.3",
17+
"@radix-ui/react-tabs": "^1.1.13",
18+
"@radix-ui/react-use-controllable-state": "^1.2.2",
19+
"@workspace/db": "workspace:*",
20+
"class-variance-authority": "^0.7.1",
21+
"clsx": "^2.1.1",
22+
"dotenv": "^17.2.1",
23+
"drizzle-orm": "^0.36.4",
24+
"lucide-react": "^0.536.0",
25+
"motion": "^12.23.12",
26+
"next": "15.5.2",
27+
"next-themes": "^0.4.6",
28+
"pg": "^8.16.3",
29+
"radix-ui": "^1.4.3",
30+
"react": "19.1.0",
31+
"react-dom": "19.1.0",
32+
"recharts": "^2.15.4",
33+
"tailwind-merge": "^3.3.1",
34+
"zod": "^4.0.17"
35+
},
36+
"devDependencies": {
37+
"@eslint/eslintrc": "^3",
38+
"@tailwindcss/postcss": "^4",
39+
"@types/node": "^20",
40+
"@types/react": "^19",
41+
"@types/react-dom": "^19",
42+
"eslint": "^9",
43+
"eslint-config-next": "15.5.2",
44+
"tailwindcss": "^4",
45+
"tw-animate-css": "^1.3.6",
46+
"typescript": "^5"
47+
}
48+
}

apps/staff/postcss.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const config = {
2+
plugins: ["@tailwindcss/postcss"],
3+
};
4+
5+
export default config;

apps/staff/public/file.svg

Lines changed: 1 addition & 0 deletions
Loading

apps/staff/public/globe.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)