fix: flatten React Router structure — no nested Routes, each page is a top-level route

This commit is contained in:
enzo
2026-07-22 19:21:29 +08:00
parent 07ff8c2a12
commit 1de5fcf698
3720 changed files with 1254827 additions and 49 deletions
@@ -0,0 +1,43 @@
from __future__ import annotations
from typing import Any
from typing import List
from typing import Tuple
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from alembic.autogenerate import RevisionContext
class CommandError(Exception):
"""Base command error for all exceptions"""
class DatabaseNotAtHead(CommandError):
"""Indicates the database is not at current head revisions.
Raised by the :func:`.command.current` command when the
:paramref:`.command.current.check_heads` parameter is used.
.. versionadded:: 1.17.1
"""
class AutogenerateDiffsDetected(CommandError):
"""Raised when diffs were detected by the :func:`.command.check`
command.
.. versionadded:: 1.9.0
"""
def __init__(
self,
message: str,
revision_context: RevisionContext,
diffs: List[Tuple[Any, ...]],
) -> None:
super().__init__(message)
self.revision_context = revision_context
self.diffs = diffs