Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added backend/__pycache__/app.cpython-312.pyc
Binary file not shown.
Binary file added backend/__pycache__/database.cpython-312.pyc
Binary file not shown.
Binary file not shown.
13 changes: 5 additions & 8 deletions backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4072,15 +4072,12 @@ def delete_cena(cena_id):
return jsonify({"ok": True})


@app.route("/", defaults={"path": ""})
@app.route("/<path:path>")
def spa_catch_all(path):
# Não intercepta APIs ou arquivos estáticos
if path.startswith("api/") or path.startswith("exportar-pdf/"):
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def catch_all(path):
if path.startswith("api/"):
abort(404)
if os.path.exists(os.path.join(app.static_folder, path)):
return send_from_directory(app.static_folder, path)
return send_from_directory(app.static_folder, "index.html")
return send_from_directory(app.static_folder, 'index.html')


if __name__ == '__main__':
Expand Down
Binary file added backend/instance/projetos.db
Binary file not shown.
1 change: 1 addition & 0 deletions backend/static/assets/index-1-wYBxU_.css

Large diffs are not rendered by default.

458 changes: 458 additions & 0 deletions backend/static/assets/index-B2z0OTMZ.js

Large diffs are not rendered by default.

Binary file added backend/static/favicon.ico
Binary file not shown.
28 changes: 28 additions & 0 deletions backend/static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Gerenciamento de Áreas - Sistema Profissional</title>
<meta name="description" content="Sistema profissional para gerenciamento de áreas de projetos empresariais" />
<meta name="author" content="Sistema de Gestão" />

<!-- Font Awesome para os ícones do navbar -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

<meta property="og:title" content="Gerenciamento de Áreas - Sistema Profissional" />
<meta property="og:description" content="Sistema profissional para gerenciamento de áreas de projetos empresariais" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://lovable.dev/opengraph-image-p98pqg.png" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@lovable_dev" />
<meta name="twitter:image" content="https://lovable.dev/opengraph-image-p98pqg.png" />
<script type="module" crossorigin src="/static/assets/index-B2z0OTMZ.js"></script>
<link rel="stylesheet" crossorigin href="/static/assets/index-1-wYBxU_.css">
</head>

<body>
<div id="root"></div>
</body>
</html>
1 change: 1 addition & 0 deletions backend/static/placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions backend/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
User-agent: Googlebot
Allow: /

User-agent: Bingbot
Allow: /

User-agent: Twitterbot
Allow: /

User-agent: facebookexternalhit
Allow: /

User-agent: *
Allow: /
2 changes: 2 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
Binary file modified frontend/node_modules/esbuild/bin/esbuild
100644 → 100755
Binary file not shown.
13 changes: 13 additions & 0 deletions server.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Tabela QuadroEletrico existe com 0 registros
* Serving Flask app 'app.py'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:5000
* Running on http://192.168.0.2:5000
Press CTRL+C to quit
127.0.0.1 - - [10/Dec/2025 16:21:11] "GET /login HTTP/1.1" 200 -
127.0.0.1 - - [10/Dec/2025 16:21:11] "GET /static/assets/index-B2z0OTMZ.js HTTP/1.1" 200 -
127.0.0.1 - - [10/Dec/2025 16:21:11] "GET /static/assets/index-1-wYBxU_.css HTTP/1.1" 200 -
127.0.0.1 - - [10/Dec/2025 16:21:12] "GET /api/session HTTP/1.1" 200 -
127.0.0.1 - - [10/Dec/2025 16:21:12] "GET /api/session HTTP/1.1" 200 -