- 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/.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/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/Jornal Oliveira b/Jornal Oliveira new file mode 100644 index 0000000000000000000000000000000000000000..4cc007591d0ec03b25e13ba8b8a8e7b5e84e02f2 --- /dev/null +++ b/Jornal Oliveira @@ -0,0 +1,93 @@ + +
+ + +O Jornal da Escola Fala Sobre Você!
+No Jornal da Escola, destacamos os projetos dos alunos, suas conquistas, suas ideias e tudo o que acontece no nosso dia a dia. Aqui, cada estudante tem vez e voz!
+- 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. -
-