chore: cleanup old frontend code and update project configs

This commit removes the deprecated frontend/web-old directory, updates various project configuration files including tsconfig, vite config, environment variables, and backend data models. It also fixes several API paths, adds tenant awareness to multiple models, and makes minor UI adjustments.
This commit is contained in:
zhangtao
2026-05-27 01:12:03 +08:00
parent eb18d85327
commit 53d2a9d13e
581 changed files with 14751 additions and 55305 deletions
@@ -1,20 +1,20 @@
from sqlalchemy import Boolean, Integer, String, Text
from sqlalchemy import Boolean, Integer, String, Text, UniqueConstraint
from sqlalchemy.orm import Mapped, mapped_column
from app.core.base_model import ModelMixin, UserMixin
from app.core.base_model import ModelMixin, TenantMixin, UserMixin
class NodeModel(ModelMixin, UserMixin):
class NodeModel(ModelMixin, TenantMixin, UserMixin):
"""
节点类型模型 - 动态定义节点类型
"""
__tablename__: str = "task_node"
__table_args__: dict[str, str] = {"comment": "节点类型表"}
__table_args__ = (UniqueConstraint("tenant_id", "code"), {"comment": "节点类型表"})
__loader_options__: list[str] = ["created_by", "updated_by", "deleted_by"]
name: Mapped[str] = mapped_column(String(64), nullable=False, comment="节点名称")
code: Mapped[str] = mapped_column(String(32), nullable=False, unique=True, comment="节点编码")
code: Mapped[str] = mapped_column(String(32), nullable=False, comment="节点编码")
jobstore: Mapped[str | None] = mapped_column(String(64), nullable=True, default="default", comment="存储器")
executor: Mapped[str | None] = mapped_column(String(64), nullable=True, default="default", comment="执行器")
trigger: Mapped[str | None] = mapped_column(String(64), nullable=True, comment="触发器")