Upload 11 files
Browse files- .eslintrc.json +7 -0
- .gitignore +40 -0
- Dockerfile +32 -0
- README.md +11 -8
- entrypoint.sh +2 -0
- next.config.mjs +4 -0
- package-lock.json +0 -0
- package.json +34 -0
- postcss.config.mjs +8 -0
- tailwind.config.ts +22 -0
- tsconfig.json +26 -0
.eslintrc.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"extends": ["next/core-web-vitals", "next/typescript"],
|
3 |
+
"rules": {
|
4 |
+
"@typescript-eslint/no-explicit-any": "off",
|
5 |
+
"@typescript-eslint/no-unused-vars": "off"
|
6 |
+
}
|
7 |
+
}
|
.gitignore
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
2 |
+
|
3 |
+
# dependencies
|
4 |
+
/node_modules
|
5 |
+
/.pnp
|
6 |
+
.pnp.js
|
7 |
+
.yarn/install-state.gz
|
8 |
+
|
9 |
+
# testing
|
10 |
+
/coverage
|
11 |
+
|
12 |
+
# next.js
|
13 |
+
/.next/
|
14 |
+
/out/
|
15 |
+
|
16 |
+
# production
|
17 |
+
/build
|
18 |
+
|
19 |
+
# misc
|
20 |
+
.DS_Store
|
21 |
+
*.pem
|
22 |
+
|
23 |
+
# debug
|
24 |
+
npm-debug.log*
|
25 |
+
yarn-debug.log*
|
26 |
+
yarn-error.log*
|
27 |
+
|
28 |
+
# local env files
|
29 |
+
.env*.local
|
30 |
+
|
31 |
+
# vercel
|
32 |
+
.vercel
|
33 |
+
|
34 |
+
# typescript
|
35 |
+
*.tsbuildinfo
|
36 |
+
next-env.d.ts
|
37 |
+
|
38 |
+
uploads/*
|
39 |
+
prisma/dev.db
|
40 |
+
.env
|
Dockerfile
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile
|
2 |
+
|
3 |
+
# Use an official Node.js runtime as the base image
|
4 |
+
FROM node:18
|
5 |
+
|
6 |
+
USER 1000
|
7 |
+
|
8 |
+
# Set the working directory in the container
|
9 |
+
WORKDIR /usr/src/app
|
10 |
+
|
11 |
+
# Copy package.json and package-lock.json to the container
|
12 |
+
COPY --chown=1000 package.json package-lock.json ./
|
13 |
+
|
14 |
+
# Install dependencies
|
15 |
+
RUN npm install
|
16 |
+
|
17 |
+
VOLUME /data
|
18 |
+
|
19 |
+
# Copy the rest of the application files to the container
|
20 |
+
COPY --chown=1000 . .
|
21 |
+
RUN chmod +x entrypoint.sh
|
22 |
+
|
23 |
+
# Build the Next.js application for production
|
24 |
+
# RUN npm run build
|
25 |
+
|
26 |
+
# Expose the application port (assuming your app runs on port 3000)
|
27 |
+
EXPOSE 3000
|
28 |
+
|
29 |
+
RUN npx prisma generate
|
30 |
+
|
31 |
+
# Start the application
|
32 |
+
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
README.md
CHANGED
@@ -1,12 +1,15 @@
|
|
1 |
---
|
2 |
-
title: Logo
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
-
sdk:
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: Logo.Ai
|
3 |
+
emoji: π
|
4 |
+
colorFrom: gray
|
5 |
+
colorTo: gray
|
6 |
+
sdk: docker
|
7 |
+
pinned: true
|
8 |
+
app_port: 3000
|
9 |
+
short_description: Generate a Logo in 2 clicks
|
10 |
+
license: mit
|
11 |
+
models:
|
12 |
+
- Shakker-Labs/FLUX.1-dev-LoRA-Logo-Design
|
13 |
---
|
14 |
|
15 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
entrypoint.sh
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
npm run build && npx prisma generate && npx prisma migrate deploy && npx prisma db push && npm start
|
next.config.mjs
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/** @type {import('next').NextConfig} */
|
2 |
+
const nextConfig = {};
|
3 |
+
|
4 |
+
export default nextConfig;
|
package-lock.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
package.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "logoai.dev",
|
3 |
+
"version": "0.1.0",
|
4 |
+
"private": true,
|
5 |
+
"scripts": {
|
6 |
+
"dev": "next dev",
|
7 |
+
"build": "next build",
|
8 |
+
"start": "next start",
|
9 |
+
"lint": "next lint"
|
10 |
+
},
|
11 |
+
"dependencies": {
|
12 |
+
"@huggingface/inference": "^2.8.0",
|
13 |
+
"@prisma/client": "^5.19.1",
|
14 |
+
"@xenova/transformers": "^2.17.2",
|
15 |
+
"classnames": "^2.5.1",
|
16 |
+
"next": "14.2.12",
|
17 |
+
"react": "^18",
|
18 |
+
"react-dom": "^18",
|
19 |
+
"react-icons": "^5.3.0",
|
20 |
+
"react-infinite-scroll-component": "^6.1.0",
|
21 |
+
"react-toastify": "^10.0.5",
|
22 |
+
"react-use": "^17.5.1"
|
23 |
+
},
|
24 |
+
"devDependencies": {
|
25 |
+
"@types/node": "^20",
|
26 |
+
"@types/react": "^18",
|
27 |
+
"@types/react-dom": "^18",
|
28 |
+
"eslint": "^8",
|
29 |
+
"eslint-config-next": "14.2.12",
|
30 |
+
"postcss": "^8",
|
31 |
+
"tailwindcss": "^3.4.1",
|
32 |
+
"typescript": "^5"
|
33 |
+
}
|
34 |
+
}
|
postcss.config.mjs
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/** @type {import('postcss-load-config').Config} */
|
2 |
+
const config = {
|
3 |
+
plugins: {
|
4 |
+
tailwindcss: {},
|
5 |
+
},
|
6 |
+
};
|
7 |
+
|
8 |
+
export default config;
|
tailwind.config.ts
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type { Config } from "tailwindcss";
|
2 |
+
|
3 |
+
const config: Config = {
|
4 |
+
content: [
|
5 |
+
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
6 |
+
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
7 |
+
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
8 |
+
],
|
9 |
+
theme: {
|
10 |
+
extend: {
|
11 |
+
colors: {
|
12 |
+
background: "var(--background)",
|
13 |
+
foreground: "var(--foreground)",
|
14 |
+
},
|
15 |
+
fontFamily: {
|
16 |
+
mono: ["var(--font-geist-mono)"],
|
17 |
+
},
|
18 |
+
},
|
19 |
+
},
|
20 |
+
plugins: [],
|
21 |
+
};
|
22 |
+
export default config;
|
tsconfig.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"compilerOptions": {
|
3 |
+
"lib": ["dom", "dom.iterable", "esnext"],
|
4 |
+
"allowJs": true,
|
5 |
+
"skipLibCheck": true,
|
6 |
+
"strict": true,
|
7 |
+
"noEmit": true,
|
8 |
+
"esModuleInterop": true,
|
9 |
+
"module": "esnext",
|
10 |
+
"moduleResolution": "bundler",
|
11 |
+
"resolveJsonModule": true,
|
12 |
+
"isolatedModules": true,
|
13 |
+
"jsx": "preserve",
|
14 |
+
"incremental": true,
|
15 |
+
"plugins": [
|
16 |
+
{
|
17 |
+
"name": "next"
|
18 |
+
}
|
19 |
+
],
|
20 |
+
"paths": {
|
21 |
+
"@/*": ["./*"]
|
22 |
+
}
|
23 |
+
},
|
24 |
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
25 |
+
"exclude": ["node_modules"]
|
26 |
+
}
|