修复无法创建应用模板的问题

This commit is contained in:
jingrow 2025-10-26 01:47:25 +08:00
parent 96731ac0ac
commit 81fea618ca
11 changed files with 2 additions and 66 deletions

View File

@ -8,7 +8,7 @@ router = APIRouter()
def to_snake(name: str) -> str:
return name.replace(' ', '_').replace('-', '_').lower()
@router.post("/dev/create-pagetype-template")
@router.post("/jingrow/dev/create-pagetype-template")
async def create_pagetypes(payload: Dict[str, Any]):
try:
name = payload.get("pagetype")
@ -58,7 +58,7 @@ async def create_pagetypes(payload: Dict[str, Any]):
raise HTTPException(status_code=400, detail=str(e))
@router.post("/dev/create-app-template")
@router.post("/jingrow/dev/create-app-template")
async def create_app_template(payload: Dict[str, Any]):
"""创建现代化的App模板符合最佳实践"""
try:

View File

@ -1,19 +0,0 @@
# Myapp
Myapp
## 安装
```bash
pip install -e .
```
## 开发
```bash
pip install -e ".[dev]"
```
## 许可证
MIT License

View File

@ -1,5 +0,0 @@
<template>
<div></div>
</template>
<script setup lang="ts">
</script>

View File

@ -1 +0,0 @@
__version__ = "0.0.1"

View File

@ -1,6 +0,0 @@
app_name = "myapp"
app_title = "Myapp"
app_publisher = "Your Company"
app_description = "Myapp"
app_email = "support@yourcompany.com"
app_license = "mit"

View File

@ -1 +0,0 @@
Myapp

View File

@ -1,9 +0,0 @@
# Copyright (c) 2025, jingrow and contributors
# For license information, please see license.txt
# import jingrow
from jingrow.model.page import Page
class TestPage(Page):
pass

View File

@ -1,23 +0,0 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "myapp"
version = "0.0.1"
description = "Myapp"
authors = [
{name = "Your Company", email = "support@yourcompany.com"}
]
license = {text = "MIT"}
requires-python = ">=3.8"
dependencies = [
# Add your app-specific dependencies here
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"black>=23.0.0",
]