feat: 引入 vjsf 渲染表单

This commit is contained in:
Junyan Qin
2024-10-15 16:16:39 +08:00
parent 661fdeb6a1
commit 12f1f3609d
20 changed files with 618 additions and 1293 deletions

10
pkg/utils/schema.py Normal file
View File

@@ -0,0 +1,10 @@
import os
import json
def load_schema(schema_path: str) -> dict:
with open(schema_path, 'r', encoding='utf-8') as f:
return json.load(f)
CONFIG_SYSTEM_SCHEMA = load_schema("templates/schema/system.json")