diff --git a/frontend/.gitignore b/frontend/.gitignore new file mode 100644 index 0000000..e01ce8f --- /dev/null +++ b/frontend/.gitignore @@ -0,0 +1,22 @@ +# Dependencies +node_modules/ + +# Build output +dist/ + +# Local env files +.env.local +.env.*.local + +# Editor directories +.vscode/ +.idea/ + +# OS files +.DS_Store +Thumbs.db + +# Debug logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/frontend/Dockerfile b/frontend/Dockerfile new file mode 100644 index 0000000..00f8746 --- /dev/null +++ b/frontend/Dockerfile @@ -0,0 +1,29 @@ +# Build stage +FROM node:20-alpine AS build + +WORKDIR /app + +# Copy package files +COPY package.json package-lock.json* ./ + +# Install dependencies +RUN npm install + +# Copy source files +COPY . . + +# Build the application +RUN npm run build + +# Production stage +FROM nginx:alpine + +# Copy built files +COPY --from=build /app/dist /usr/share/nginx/html + +# Copy nginx config +COPY nginx.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..631e457 --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,13 @@ + + +
+ + + ++ SPARC (Semiconductor Patent & Analytics Report Core) + is an AI-powered patent analysis platform that evaluates company performance by analyzing their + patent portfolios with cutting-edge language models. +
+ + {/* Features */} +
+ http://localhost:8000/docs
+
+
+ http://localhost:8000/health
+
+ Manage user accounts and permissions.
+| + User + | ++ Role + | ++ Created + | ++ Actions + | +
|---|---|---|---|
|
+
+
+
+ {user.role === 'admin' ? (
+
+
+
+ {user.email}
+ {user.id === currentUser?.id && (
+ (You)
+ )}
+ |
+
+
+ {user.role === 'admin' ? |
+ + {new Date(user.created_at).toLocaleDateString()} + | +
+
+ {user.id !== currentUser?.id && (
+ <>
+
+
+ {deleteConfirm === user.id ? (
+
+
+
+
+
+ ) : (
+
+ )}
+ >
+ )}
+ |
+
+ Analyze a company's patent portfolio using AI-powered insights. +
+
+ Set USE_DATABASE=true in your .env file to enable analytics tracking.
+
Track historical analysis data and view insights.
+Track historical analysis data and view insights.
++ Analyze multiple companies simultaneously for comparative insights. +
+Semiconductor Patent Analytics Dashboard
+Semiconductor Patent Analytics Dashboard
++ The first registered user will automatically become an admin. +
+