fix: replace wildcard patterns with explicit per-file entries in load_path.py

This commit is contained in:
yumoqing 2026-06-04 13:03:25 +08:00
parent 36b43288db
commit 5233464cf1

View File

@ -55,15 +55,61 @@ PATHS_LOGINED = [
f"/{MOD}/bottom.ui",
f"/{MOD}/app_panel.ui",
# CRUD 子目录 — 通配
f"/{MOD}/components/%",
f"/{MOD}/cpccluster/%",
f"/{MOD}/cpclist/%",
f"/{MOD}/cpcnode/%",
f"/{MOD}/cpcpod/%",
f"/{MOD}/cpcpodyaml/%",
f"/{MOD}/cpcworker/%",
f"/{MOD}/handy/%",
# components/
f"/{MOD}/components/index.ui",
f"/{MOD}/components/get_components.dspy",
f"/{MOD}/components/add_components.dspy",
f"/{MOD}/components/update_components.dspy",
f"/{MOD}/components/delete_components.dspy",
# cpccluster/
f"/{MOD}/cpccluster/index.ui",
f"/{MOD}/cpccluster/get_cpccluster.dspy",
f"/{MOD}/cpccluster/add_cpccluster.dspy",
f"/{MOD}/cpccluster/update_cpccluster.dspy",
f"/{MOD}/cpccluster/delete_cpccluster.dspy",
# cpclist/
f"/{MOD}/cpclist/index.ui",
f"/{MOD}/cpclist/get_cpclist.dspy",
f"/{MOD}/cpclist/add_cpclist.dspy",
f"/{MOD}/cpclist/update_cpclist.dspy",
f"/{MOD}/cpclist/delete_cpclist.dspy",
# cpcnode/
f"/{MOD}/cpcnode/index.ui",
f"/{MOD}/cpcnode/get_cpcnode.dspy",
f"/{MOD}/cpcnode/add_cpcnode.dspy",
f"/{MOD}/cpcnode/update_cpcnode.dspy",
f"/{MOD}/cpcnode/delete_cpcnode.dspy",
# cpcpod/
f"/{MOD}/cpcpod/index.ui",
f"/{MOD}/cpcpod/get_cpcpod.dspy",
f"/{MOD}/cpcpod/get_node_labels.dspy",
f"/{MOD}/cpcpod/new_cpcpodyaml.dspy",
f"/{MOD}/cpcpod/new_podyaml.ui",
# cpcpodyaml/
f"/{MOD}/cpcpodyaml/index.ui",
f"/{MOD}/cpcpodyaml/get_cpcpodyaml.dspy",
f"/{MOD}/cpcpodyaml/update_cpcpodyaml.dspy",
f"/{MOD}/cpcpodyaml/delete_cpcpodyaml.dspy",
# cpcworker/
f"/{MOD}/cpcworker/index.ui",
f"/{MOD}/cpcworker/get_cpcworker.dspy",
f"/{MOD}/cpcworker/add_cpcworker.dspy",
f"/{MOD}/cpcworker/update_cpcworker.dspy",
f"/{MOD}/cpcworker/delete_cpcworker.dspy",
f"/{MOD}/cpcworker/get_availableworker.dspy",
f"/{MOD}/cpcworker/new_cpcworker.dspy",
f"/{MOD}/cpcworker/new_worker.ui",
# handy/
f"/{MOD}/handy/get_cpcnodes.dspy",
f"/{MOD}/handy/new_cluster.dspy",
f"/{MOD}/handy/new_cluster.ui",
]
# ============================================================