From f6284bbb411fc968ec9b6f78bc062a00c81e810a Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Mon, 10 Mar 2025 00:17:45 -0600 Subject: [PATCH] feat: Initialize Dokploy Blueprints React application with core UI components --- README.md | 1 + .gitignore => app/.gitignore | 0 components.json => app/components.json | 0 index.html => app/index.html | 0 package.json => app/package.json | 0 pnpm-lock.yaml => app/pnpm-lock.yaml | 0 {public => app/public}/vite.svg | 0 {src => app/src}/App.css | 0 {src => app/src}/App.tsx | 0 {src => app/src}/assets/react.svg | 0 {src => app/src}/components/TemplateGrid.tsx | 0 {src => app/src}/components/ui/button.tsx | 0 {src => app/src}/components/ui/card.tsx | 0 {src => app/src}/components/ui/dialog.tsx | 0 {src => app/src}/components/ui/input.tsx | 0 {src => app/src}/components/ui/sonner.tsx | 0 {src => app/src}/index.css | 0 {src => app/src}/lib/utils.ts | 0 {src => app/src}/main.tsx | 0 {src => app/src}/vite-env.d.ts | 0 tsconfig.app.json => app/tsconfig.app.json | 6 +++--- tsconfig.json => app/tsconfig.json | 2 +- tsconfig.node.json => app/tsconfig.node.json | 2 +- vite.config.ts => app/vite.config.ts | 4 ++-- 24 files changed, 8 insertions(+), 7 deletions(-) rename .gitignore => app/.gitignore (100%) rename components.json => app/components.json (100%) rename index.html => app/index.html (100%) rename package.json => app/package.json (100%) rename pnpm-lock.yaml => app/pnpm-lock.yaml (100%) rename {public => app/public}/vite.svg (100%) rename {src => app/src}/App.css (100%) rename {src => app/src}/App.tsx (100%) rename {src => app/src}/assets/react.svg (100%) rename {src => app/src}/components/TemplateGrid.tsx (100%) rename {src => app/src}/components/ui/button.tsx (100%) rename {src => app/src}/components/ui/card.tsx (100%) rename {src => app/src}/components/ui/dialog.tsx (100%) rename {src => app/src}/components/ui/input.tsx (100%) rename {src => app/src}/components/ui/sonner.tsx (100%) rename {src => app/src}/index.css (100%) rename {src => app/src}/lib/utils.ts (100%) rename {src => app/src}/main.tsx (100%) rename {src => app/src}/vite-env.d.ts (100%) rename tsconfig.app.json => app/tsconfig.app.json (83%) rename tsconfig.json => app/tsconfig.json (87%) rename tsconfig.node.json => app/tsconfig.node.json (87%) rename vite.config.ts => app/vite.config.ts (90%) diff --git a/README.md b/README.md index 5ef6c31e..eebb475e 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ This is the official repository for the Dokploy Open Source Templates. If you want to run the project locally, you can run the project with the following command: ```bash +cd app pnpm install pnpm run dev go to http://localhost:5173/ diff --git a/.gitignore b/app/.gitignore similarity index 100% rename from .gitignore rename to app/.gitignore diff --git a/components.json b/app/components.json similarity index 100% rename from components.json rename to app/components.json diff --git a/index.html b/app/index.html similarity index 100% rename from index.html rename to app/index.html diff --git a/package.json b/app/package.json similarity index 100% rename from package.json rename to app/package.json diff --git a/pnpm-lock.yaml b/app/pnpm-lock.yaml similarity index 100% rename from pnpm-lock.yaml rename to app/pnpm-lock.yaml diff --git a/public/vite.svg b/app/public/vite.svg similarity index 100% rename from public/vite.svg rename to app/public/vite.svg diff --git a/src/App.css b/app/src/App.css similarity index 100% rename from src/App.css rename to app/src/App.css diff --git a/src/App.tsx b/app/src/App.tsx similarity index 100% rename from src/App.tsx rename to app/src/App.tsx diff --git a/src/assets/react.svg b/app/src/assets/react.svg similarity index 100% rename from src/assets/react.svg rename to app/src/assets/react.svg diff --git a/src/components/TemplateGrid.tsx b/app/src/components/TemplateGrid.tsx similarity index 100% rename from src/components/TemplateGrid.tsx rename to app/src/components/TemplateGrid.tsx diff --git a/src/components/ui/button.tsx b/app/src/components/ui/button.tsx similarity index 100% rename from src/components/ui/button.tsx rename to app/src/components/ui/button.tsx diff --git a/src/components/ui/card.tsx b/app/src/components/ui/card.tsx similarity index 100% rename from src/components/ui/card.tsx rename to app/src/components/ui/card.tsx diff --git a/src/components/ui/dialog.tsx b/app/src/components/ui/dialog.tsx similarity index 100% rename from src/components/ui/dialog.tsx rename to app/src/components/ui/dialog.tsx diff --git a/src/components/ui/input.tsx b/app/src/components/ui/input.tsx similarity index 100% rename from src/components/ui/input.tsx rename to app/src/components/ui/input.tsx diff --git a/src/components/ui/sonner.tsx b/app/src/components/ui/sonner.tsx similarity index 100% rename from src/components/ui/sonner.tsx rename to app/src/components/ui/sonner.tsx diff --git a/src/index.css b/app/src/index.css similarity index 100% rename from src/index.css rename to app/src/index.css diff --git a/src/lib/utils.ts b/app/src/lib/utils.ts similarity index 100% rename from src/lib/utils.ts rename to app/src/lib/utils.ts diff --git a/src/main.tsx b/app/src/main.tsx similarity index 100% rename from src/main.tsx rename to app/src/main.tsx diff --git a/src/vite-env.d.ts b/app/src/vite-env.d.ts similarity index 100% rename from src/vite-env.d.ts rename to app/src/vite-env.d.ts diff --git a/tsconfig.app.json b/app/tsconfig.app.json similarity index 83% rename from tsconfig.app.json rename to app/tsconfig.app.json index 9f0a5124..177ca690 100644 --- a/tsconfig.app.json +++ b/app/tsconfig.app.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + "tsBuildInfoFile": "app/node_modules/.tmp/tsconfig.app.tsbuildinfo", "target": "ES2020", "useDefineForClassFields": true, "lib": ["ES2020", "DOM", "DOM.Iterable"], @@ -23,8 +23,8 @@ "noUncheckedSideEffectImports": true, "baseUrl": ".", "paths": { - "@/*": ["./src/*"] + "@/*": app/src/*/*"] } }, - "include": ["src"] + "include": app/srcrc"] } diff --git a/tsconfig.json b/app/tsconfig.json similarity index 87% rename from tsconfig.json rename to app/tsconfig.json index fec8c8e5..d320f313 100644 --- a/tsconfig.json +++ b/app/tsconfig.json @@ -7,7 +7,7 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "@/*": ["./src/*"] + "@/*": ["app/src/*"] } } } diff --git a/tsconfig.node.json b/app/tsconfig.node.json similarity index 87% rename from tsconfig.node.json rename to app/tsconfig.node.json index db0becc8..584284d2 100644 --- a/tsconfig.node.json +++ b/app/tsconfig.node.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "tsBuildInfoFile": "app/node_modules/.tmp/tsconfig.node.tsbuildinfo", "target": "ES2022", "lib": ["ES2023"], "module": "ESNext", diff --git a/vite.config.ts b/app/vite.config.ts similarity index 90% rename from vite.config.ts rename to app/vite.config.ts index 91fbb576..482c1773 100644 --- a/vite.config.ts +++ b/app/vite.config.ts @@ -9,11 +9,11 @@ export default defineConfig({ viteStaticCopy({ targets: [ { - src: 'blueprints/*', + src: '../blueprints/*', dest: 'blueprints' // raíz de dist (public root) }, { - src: 'meta.json', + src: '../meta.json', dest: '' // raíz de dist } ]