實作統一的前端連線管理架構: - 新增 MesApi 客戶端:timeout、exponential backoff retry、AbortController 支援 - 新增 Toast 通知系統:info/success/warning/error/loading 類型 - 新增 _base.html 基礎模板:統一載入核心 JS 模組 - 遷移全部 6 個頁面使用新架構 測試覆蓋: - 17 個單元測試驗證模板整合 - 12 個整合測試驗證 API 格式 - 32 個 E2E 測試 (Playwright) 驗證完整功能 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
49 lines
1.1 KiB
TOML
49 lines
1.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "mes-dashboard"
|
|
version = "0.1.0"
|
|
description = "MES Dashboard Portal"
|
|
readme = "README.md"
|
|
requires-python = ">=3.9"
|
|
license = { text = "MIT" }
|
|
authors = [
|
|
{ name = "MES Dashboard Team" }
|
|
]
|
|
keywords = ["flask", "mes", "dashboard"]
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Python :: 3.9",
|
|
"License :: OSI Approved :: MIT License",
|
|
]
|
|
dependencies = [
|
|
"oracledb>=2.0.0",
|
|
"flask>=3.0.0",
|
|
"pandas>=2.0.0",
|
|
"sqlalchemy>=2.0.0",
|
|
"openpyxl>=3.0.0",
|
|
"python-dotenv>=1.0.0",
|
|
"gunicorn>=21.2.0",
|
|
"waitress>=2.1.2; platform_system == 'Windows'",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
test = [
|
|
"pytest>=7.0.0",
|
|
"pytest-playwright>=0.4.0",
|
|
"playwright>=1.40.0",
|
|
]
|
|
|
|
[tool.setuptools]
|
|
package-dir = {"" = "src"}
|
|
include-package-data = true
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.setuptools.package-data]
|
|
mes_dashboard = ["templates/**/*"]
|