- If you are not redirected automatically in the next 5 seconds, - please click the button below -
- {showButton ? ( - - - - ) : ( -- Please wait, we are logging you in... -
- )} -diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000000000000000000000000000000000..406c10849e0ff8b05e8dcd6de5a88e3ea33ea7e5 --- /dev/null +++ b/.env.example @@ -0,0 +1,11 @@ +OAUTH_CLIENT_ID= +OAUTH_CLIENT_SECRET= +APP_PORT=5173 +REDIRECT_URI=http://localhost:5173/auth/login +DEFAULT_HF_TOKEN= + +# Optional +# By setting this variable, you will bypass the login page + the free requests +# and will use the token directly. +# This is useful for testing purposes or local use. +HF_TOKEN= \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..b9bb90f9b98b8ddf1d3dd6a9b624c4869c33a7f1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +ChatGPT[[:space:]]Image[[:space:]]Apr[[:space:]]20,[[:space:]]2025,[[:space:]]03_11_00[[:space:]]AM.png filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore index 5ef6a520780202a1d6addd833d800ccb1ecac0bb..38d4117ba770f7518a4bc651b80446a4f2f218d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,41 +1,26 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.* -.yarn/* -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/versions - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug +# Logs +logs +*.log npm-debug.log* yarn-debug.log* yarn-error.log* -.pnpm-debug.log* - -# env files (can opt-in for committing if needed) -.env* - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? +.env +.aider* diff --git a/ChatGPT Image Apr 20, 2025, 03_11_00 AM.png b/ChatGPT Image Apr 20, 2025, 03_11_00 AM.png new file mode 100644 index 0000000000000000000000000000000000000000..0da472e217cd3ff8d2b02611df8afc9e24d68e39 --- /dev/null +++ b/ChatGPT Image Apr 20, 2025, 03_11_00 AM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f5bfc153ee49c9a5b70f31c306d28eb45a4d2673a75203484c8936aac82f606 +size 1467016 diff --git a/Dockerfile b/Dockerfile index cbe0188aaee92186937765d2c85d76f7b212c537..8003b5cb2da5b411b794263c7d70bae1f6866ae0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ -FROM node:20-alpine +# Dockerfile +# Use an official Node.js runtime as the base image +FROM node:22.1.0 USER root +RUN apt-get update USER 1000 WORKDIR /usr/src/app # Copy package.json and package-lock.json to the container @@ -13,7 +16,7 @@ RUN npm install RUN npm run build # Expose the application port (assuming your app runs on port 3000) -EXPOSE 3000 +EXPOSE 5173 # Start the application CMD ["npm", "start"] \ No newline at end of file diff --git a/README.md b/README.md index 5ab2231fc7dc96070548f1d03ab1d0f73a799600..606f2489d425f097ed31a2c0be520bff4b1c1201 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,19 @@ --- -title: DeepSite v2 +title: DeepSite emoji: 🐳 colorFrom: blue colorTo: blue sdk: docker pinned: true -app_port: 3000 +app_port: 5173 license: mit short_description: Generate any application with DeepSeek models: - deepseek-ai/DeepSeek-V3-0324 - - deepseek-ai/DeepSeek-R1-0528 --- # DeepSite 🐳 - DeepSite is a coding platform powered by DeepSeek AI, designed to make coding smarter and more efficient. Tailored for developers, data scientists, and AI engineers, it integrates generative AI into your coding projects to enhance creativity and productivity. ## How to use it locally - -Follow [this discussion](https://huggingface.co/spaces/enzostvs/deepsite/discussions/74) +Follow [this discussion](https://huggingface.co/spaces/enzostvs/deepsite/discussions/74) \ No newline at end of file diff --git a/app/(public)/layout.tsx b/app/(public)/layout.tsx deleted file mode 100644 index 4a4ec57d2609c783602beb6c06c8dca6a1e6192d..0000000000000000000000000000000000000000 --- a/app/(public)/layout.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import Navigation from "@/components/public/navigation"; - -export default async function PublicLayout({ - children, -}: Readonly<{ - children: React.ReactNode; -}>) { - return ( -
- Vibe Coding has never been so easy. -
-- Login In Progress... -
-- Wait a moment while we log you in with your code. -
-- If you are not redirected automatically in the next 5 seconds, - please click the button below -
- {showButton ? ( - - - - ) : ( -- Please wait, we are logging you in... -
- )} -- An error occurred while trying to log in. Please try again later. -
-- ⚡ Faster, Smarter Updates -
-- Using the Diff-Patch system, allow DeepSite to intelligently update - your project without rewritting the entire codebase. -
-- This means faster updates, less data usage, and a more efficient - development process. -
-- {isThinking ? "DeepSite is thinking..." : "DeepSite's plan"} -
-- {think} -
-- {isUploading ? ( - "Uploading images..." - ) : isAiWorking && !isSameHtml ? ( - "AI is working..." - ) : ( - - {[ - "D", - "e", - "e", - "p", - "S", - "i", - "t", - "e", - " ", - "i", - "s", - " ", - "T", - "h", - "i", - "n", - "k", - "i", - "n", - "g", - ".", - ".", - ".", - " ", - "W", - "a", - "i", - "t", - " ", - "a", - " ", - "m", - "o", - "m", - "e", - "n", - "t", - ".", - ".", - ".", - ].map((char, index) => ( - - {char === " " ? "\u00A0" : char} - - ))} - - )} -
-- DeepSite can now create multiple pages at once. Try it! -
-
- - {element.textContent?.trim().split(/\s+/)[0]} {htmlTagToText(tagName)} -
-- ID: {element.id || "No ID"} -
-- Classes:{" "} - {element.className || "No classes"} -
-- {error} -
- )} - - {isFollowUp && ( -- Use auto-provider -
-- We'll automatically select the best provider for you - based on your prompt. -
-- Publish as Space! -
-- {options?.description ?? - "Save and Publish your project to a Space on the Hub. Spaces are a way to share your project with the world."} -
-- Choose a title for your space: -
- setConfig({ ...config, title: e.target.value })} - className="!bg-white !border-neutral-300 !text-neutral-800 !placeholder:text-neutral-400 selection:!bg-blue-100" - /> -- Then, let's publish it! -
- -- DeepSite - - {" "} - v2 - -
- -- Create, manage, and explore your DeepSite projects. -
-- {project.space_id} -
-- Updated{" "} - {formatDistance( - new Date(project._updatedAt || Date.now()), - new Date(), - { - addSuffix: true, - } - )} -
-- Unfortunately you cannot access DeepSite without being logged - through your Hugging Face account. -
-