Skip to content

Commit ebc954c

Browse files
committed
Replace the UI with next UI
1 parent 4544f0a commit ebc954c

55 files changed

Lines changed: 15786 additions & 20 deletions

Some content is hidden

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

.gitignore

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
# Byte-compiled / optimized / DLL files
1+
# Python
22
__pycache__/
33
*.py[cod]
44
*$py.class
5-
6-
# C extensions
75
*.so
8-
9-
# Distribution / packaging
106
.Python
117
build/
128
develop-eggs/
@@ -26,18 +22,10 @@ share/python-wheels/
2622
.installed.cfg
2723
*.egg
2824
MANIFEST
29-
30-
# PyInstaller
31-
# Usually these files are written by a python script from a template
32-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33-
*.manifest
34-
*.spec
35-
36-
# Installer logs
3725
pip-log.txt
3826
pip-delete-this-directory.txt
3927

40-
# Unit test / coverage reports
28+
# Testing
4129
htmlcov/
4230
.tox/
4331
.nox/
@@ -50,6 +38,22 @@ coverage.xml
5038
.hypothesis/
5139
.pytest_cache/
5240

41+
# IDEs
42+
.vscode/
43+
.idea/
44+
*.swp
45+
*.swo
46+
*~
47+
.DS_Store
48+
49+
# Environment
50+
.env
51+
.env.local
52+
venv/
53+
ENV/
54+
env/
55+
.pytest_cache/
56+
5357
# Translations
5458
*.mo
5559
*.pot

azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ services:
1010
language: python
1111
host: containerapp
1212
frontend:
13-
project: frontend
14-
language: python
13+
project: frontend-next
14+
language: js
1515
host: containerapp

frontend-next/.dockerignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Dependencies
2+
node_modules
3+
.pnp
4+
.pnp.js
5+
6+
# Build outputs
7+
.next
8+
out
9+
build
10+
dist
11+
12+
# Testing
13+
coverage
14+
15+
# Debug
16+
npm-debug.log*
17+
yarn-debug.log*
18+
yarn-error.log*
19+
20+
# Local env files
21+
.env*.local
22+
.env
23+
24+
# IDE
25+
.idea
26+
.vscode
27+
*.swp
28+
*.swo
29+
30+
# OS
31+
.DS_Store
32+
Thumbs.db
33+
34+
# Misc
35+
*.md
36+
!README.md
37+
.git
38+
.gitignore

frontend-next/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Next.js
2+
.next/
3+
out/
4+
build/
5+
6+
# Dependencies
7+
node_modules/
8+
*.pnp
9+
.pnp.js
10+
11+
# Testing
12+
coverage/
13+
.nyc_output/
14+
15+
# Environment variables
16+
.env
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
22+
# IDE
23+
.vscode/
24+
.idea/
25+
*.swp
26+
*.swo
27+
*~
28+
29+
# OS
30+
.DS_Store
31+
Thumbs.db
32+
33+
# Logs
34+
logs/
35+
*.log
36+
npm-debug.log*
37+
yarn-debug.log*
38+
yarn-error.log*
39+
40+
# Misc
41+
.cache/
42+
dist/

frontend-next/Dockerfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Build stage
2+
FROM node:20-alpine AS builder
3+
4+
WORKDIR /app
5+
6+
# Copy package files
7+
COPY package*.json ./
8+
9+
# Install dependencies
10+
RUN npm ci
11+
12+
# Copy source code
13+
COPY . .
14+
15+
# Build the application
16+
ENV NEXT_TELEMETRY_DISABLED=1
17+
RUN npm run build
18+
19+
# Production stage
20+
FROM node:20-alpine AS runner
21+
22+
WORKDIR /app
23+
24+
ENV NODE_ENV=production
25+
ENV NEXT_TELEMETRY_DISABLED=1
26+
27+
# Create non-root user
28+
RUN addgroup --system --gid 1001 nodejs
29+
RUN adduser --system --uid 1001 nextjs
30+
31+
# Copy built application
32+
COPY --from=builder /app/public ./public
33+
COPY --from=builder /app/.next/standalone ./
34+
COPY --from=builder /app/.next/static ./.next/static
35+
36+
USER nextjs
37+
38+
EXPOSE 3000
39+
40+
ENV PORT=3000
41+
ENV HOSTNAME="0.0.0.0"
42+
43+
CMD ["node", "server.js"]

frontend-next/components.json

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

frontend-next/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

frontend-next/next.config.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
reactStrictMode: true,
4+
// Enable standalone output for Docker deployment
5+
output: 'standalone',
6+
// Enable experimental features for React 19
7+
experimental: {
8+
// Enable server actions
9+
serverActions: {
10+
bodySizeLimit: '50mb',
11+
},
12+
},
13+
// Allow external images from Azure blob storage
14+
images: {
15+
remotePatterns: [
16+
{
17+
protocol: 'https',
18+
hostname: '*.blob.core.windows.net',
19+
},
20+
],
21+
},
22+
}
23+
24+
module.exports = nextConfig

0 commit comments

Comments
 (0)