diff --git a/.github/workflows/ci-build-check.yml b/.github/workflows/ci-build-check.yml index a1068db..cebee2b 100644 --- a/.github/workflows/ci-build-check.yml +++ b/.github/workflows/ci-build-check.yml @@ -8,7 +8,7 @@ on: - "public/**" - "index.html" - "package.json" - - "package-lock.json" + - "pnpm-lock.yaml" - "tsconfig*.json" - "vite.config.ts" - "tailwind.config.js" @@ -21,11 +21,12 @@ on: - "public/**" - "index.html" - "package.json" - - "package-lock.json" + - "pnpm-lock.yaml" - "tsconfig*.json" - "vite.config.ts" - "tailwind.config.js" - "postcss.config.js" + - ".github/workflows/ci-build-check.yml" workflow_dispatch: permissions: @@ -47,20 +48,25 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 10 + - uses: actions/setup-node@v4 with: node-version: 20 - cache: npm + cache: pnpm + cache-dependency-path: pnpm-lock.yaml - name: Instalar dependências - run: npm install + run: pnpm install --frozen-lockfile - name: Verificar tipos TypeScript id: typecheck continue-on-error: true run: | set +e - OUTPUT=$(npx tsc --noEmit 2>&1) + OUTPUT=$(pnpm exec tsc --noEmit 2>&1) EXIT_CODE=$? echo "$OUTPUT" @@ -80,20 +86,25 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 10 + - uses: actions/setup-node@v4 with: node-version: 20 - cache: npm + cache: pnpm + cache-dependency-path: pnpm-lock.yaml - name: Instalar dependências - run: npm install + run: pnpm install --frozen-lockfile - name: Executar ESLint id: lint continue-on-error: true run: | set +e - OUTPUT=$(npm run lint 2>&1) + OUTPUT=$(pnpm run lint 2>&1) EXIT_CODE=$? echo "$OUTPUT" @@ -115,20 +126,25 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 10 + - uses: actions/setup-node@v4 with: node-version: 20 - cache: npm + cache: pnpm + cache-dependency-path: pnpm-lock.yaml - name: Instalar dependências - run: npm install + run: pnpm install --frozen-lockfile - name: Executar testes id: test continue-on-error: true run: | set +e - OUTPUT=$(npm test 2>&1) + OUTPUT=$(pnpm test 2>&1) EXIT_CODE=$? echo "$OUTPUT" @@ -150,20 +166,25 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 10 + - uses: actions/setup-node@v4 with: node-version: 20 - cache: npm + cache: pnpm + cache-dependency-path: pnpm-lock.yaml - name: Instalar dependências - run: npm install + run: pnpm install --frozen-lockfile - name: Build do projeto id: build continue-on-error: true run: | set +e - OUTPUT=$(npm run build 2>&1) + OUTPUT=$(pnpm run build 2>&1) EXIT_CODE=$? echo "$OUTPUT" diff --git a/.gitignore b/.gitignore index f7d3f4f..ce9aff1 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,29 @@ node_modules .env.local .env.*.local +# IDEs +.vscode +.idea + +# Build +dist/ +build +out +.next +.nuxt +.vercel +.output +.turbo +.vite +.rollup.cache +.eslintcache + + + +# Logs +logs/ + + +# Configurações +config + diff --git a/dist/404.html b/dist/404.html deleted file mode 100644 index 9c44313..0000000 --- a/dist/404.html +++ /dev/null @@ -1,15 +0,0 @@ - - -
- - -Redirecionando...
- - diff --git a/dist/_headers b/dist/_headers deleted file mode 100644 index 498fe24..0000000 --- a/dist/_headers +++ /dev/null @@ -1,8 +0,0 @@ -/* - X-Frame-Options: DENY - X-Content-Type-Options: nosniff - X-XSS-Protection: 1; mode=block - Referrer-Policy: strict-origin-when-cross-origin - -/assets/* - Cache-Control: public, max-age=31536000, immutable diff --git a/dist/_redirects b/dist/_redirects deleted file mode 100644 index ad37e2c..0000000 --- a/dist/_redirects +++ /dev/null @@ -1 +0,0 @@ -/* /index.html 200 diff --git a/dist/assets/AIInsights-sPr4irwZ.js b/dist/assets/AIInsights-sPr4irwZ.js deleted file mode 100644 index 8143aad..0000000 --- a/dist/assets/AIInsights-sPr4irwZ.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e,j as s,F as r,a,b as t,c as l,d}from"./index-Dwzxv_k6.js";function n({title:s,titleId:r,...a},t){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},a),s?e.createElement("title",{id:r},s):null,e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"}))}const i=e.forwardRef(n),c=({insights:e,confidence:n,warnings:c,recommendations:x})=>{const m=e=>{switch(e){case"anomaly":return s.jsx(a,{className:"w-5 h-5 text-red-400"});case"trend":return s.jsx(d,{className:"w-5 h-5 text-blue-400"});case"correlation":return s.jsx(r,{className:"w-5 h-5 text-purple-400"});case"prediction":return s.jsx(i,{className:"w-5 h-5 text-yellow-400"});default:return s.jsx(l,{className:"w-5 h-5 text-gray-400"})}},o=e=>{switch(e){case"anomaly":return"border-red-500/30 bg-red-500/10";case"trend":return"border-blue-500/30 bg-blue-500/10";case"correlation":return"border-purple-500/30 bg-purple-500/10";case"prediction":return"border-yellow-500/30 bg-yellow-500/10";default:return"border-gray-500/30 bg-gray-500/10"}},h=e=>e>=.8?"text-green-400":e>=.6?"text-yellow-400":"text-red-400";return 0===e.length&&0===c.length&&0===x.length?null:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"bg-gray-800/70 backdrop-blur-sm rounded-2xl border border-gray-700/20 p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center",children:[s.jsx("div",{className:"p-2 bg-blue-500/20 rounded-lg mr-3",children:s.jsx(r,{className:"w-5 h-5 text-blue-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-white",children:"Confiança da IA"}),s.jsx("p",{className:"text-sm text-gray-400",children:"Nível de confiança na análise"})]})]}),s.jsxs("div",{className:"text-right",children:[s.jsxs("div",{className:`text-2xl font-bold ${h(n)}`,children:[(100*n).toFixed(0),"%"]}),s.jsx("div",{className:"text-xs text-gray-400",children:"Confiança"})]})]}),s.jsx("div",{className:"w-full bg-gray-700 rounded-full h-3",children:s.jsx("div",{className:"h-3 rounded-full transition-all duration-500 "+(g=n,g>=.8?"bg-green-500":g>=.6?"bg-yellow-500":"bg-red-500"),style:{width:100*n+"%"}})})]}),e.length>0&&s.jsxs("div",{className:"bg-gray-800/70 backdrop-blur-sm rounded-2xl border border-gray-700/20 p-6",children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx("div",{className:"p-2 bg-purple-500/20 rounded-lg mr-3",children:s.jsx(i,{className:"w-5 h-5 text-purple-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-white",children:"Insights da IA"}),s.jsx("p",{className:"text-sm text-gray-400",children:"Análises inteligentes dos dados"})]})]}),s.jsx("div",{className:"space-y-4",children:e.map((e,r)=>s.jsx("div",{className:`p-4 rounded-xl border ${o(e.type)}`,children:s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"mr-3 mt-0.5",children:m(e.type)}),s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("h4",{className:"font-semibold text-white capitalize",children:["anomaly"===e.type&&"Anomalia Detectada","trend"===e.type&&"Tendência Identificada","correlation"===e.type&&"Correlação Encontrada","prediction"===e.type&&"Predição da IA"]}),s.jsxs("span",{className:`text-sm font-medium ${h(e.confidence)}`,children:[(100*e.confidence).toFixed(0),"%"]})]}),s.jsx("p",{className:"text-gray-300 text-sm mb-2",children:e.description}),s.jsx("div",{className:"bg-gray-700/50 rounded-lg p-3",children:s.jsxs("p",{className:"text-blue-300 text-sm font-medium",children:["💡 ",e.recommendation]})})]})]})},r))})]}),c.length>0&&s.jsxs("div",{className:"bg-red-500/10 border border-red-500/30 rounded-2xl p-6",children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx("div",{className:"p-2 bg-red-500/20 rounded-lg mr-3",children:s.jsx(a,{className:"w-5 h-5 text-red-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-red-400",children:"Avisos"}),s.jsx("p",{className:"text-sm text-red-300",children:"Problemas identificados pela IA"})]})]}),s.jsx("div",{className:"space-y-2",children:c.map((e,r)=>s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"w-2 h-2 bg-red-400 rounded-full mt-2 mr-3 flex-shrink-0"}),s.jsx("p",{className:"text-red-300 text-sm",children:e})]},r))})]}),x.length>0&&s.jsxs("div",{className:"bg-green-500/10 border border-green-500/30 rounded-2xl p-6",children:[s.jsxs("div",{className:"flex items-center mb-4",children:[s.jsx("div",{className:"p-2 bg-green-500/20 rounded-lg mr-3",children:s.jsx(t,{className:"w-5 h-5 text-green-400"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-green-400",children:"Recomendações"}),s.jsx("p",{className:"text-sm text-green-300",children:"Sugestões da IA para otimização"})]})]}),s.jsx("div",{className:"space-y-3",children:x.map((e,r)=>s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full mt-2 mr-3 flex-shrink-0"}),s.jsx("p",{className:"text-green-300 text-sm",children:e})]},r))})]})]});var g};export{c as default}; diff --git a/dist/assets/apple-touch-icon-CS-dACiN.png b/dist/assets/apple-touch-icon-CS-dACiN.png deleted file mode 100644 index a4b6aca..0000000 --- a/dist/assets/apple-touch-icon-CS-dACiN.png +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/dist/assets/favicon-32-DaNsWMEX.png b/dist/assets/favicon-32-DaNsWMEX.png deleted file mode 100644 index 07479d0..0000000 Binary files a/dist/assets/favicon-32-DaNsWMEX.png and /dev/null differ diff --git a/dist/assets/favicon-BKHNMF8M.ico b/dist/assets/favicon-BKHNMF8M.ico deleted file mode 100644 index cd1af2a..0000000 --- a/dist/assets/favicon-BKHNMF8M.ico +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/dist/assets/html2canvas.esm-CTiZndrd.js b/dist/assets/html2canvas.esm-CTiZndrd.js deleted file mode 100644 index 65076e9..0000000 --- a/dist/assets/html2canvas.esm-CTiZndrd.js +++ /dev/null @@ -1,20 +0,0 @@ -/*! - * html2canvas 1.4.1