commit 13bf3e96716dc87c80a359d554a7ac28a99574d4 Author: jingrow Date: Wed Oct 29 04:59:25 2025 +0800 初始提交 diff --git a/README.md b/README.md new file mode 100644 index 0000000..04d0cd4 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Demo + +Demo App + +## 安装 + +```bash +pip install -e . +``` + +## 开发 + +```bash +pip install -e ".[dev]" +``` + +## 许可证 + +MIT License diff --git a/demo/__init__.py b/demo/__init__.py new file mode 100644 index 0000000..f102a9c --- /dev/null +++ b/demo/__init__.py @@ -0,0 +1 @@ +__version__ = "0.0.1" diff --git a/demo/demo.json b/demo/demo.json new file mode 100644 index 0000000..3fd722f --- /dev/null +++ b/demo/demo.json @@ -0,0 +1,12 @@ +{ + "creation": "2025-10-29 00:32:33.713279", + "idx": 0, + "license_type": "", + "modified": "2025-10-29 00:32:33.713279", + "modified_by": "Administrator", + "name": "demo", + "owner": "Administrator", + "package_name": "demo", + "pagestatus": 0, + "pagetype": "Package" +} \ No newline at end of file diff --git a/demo/demo/__init__.py b/demo/demo/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/demo/demo/pagetype/__init__.py b/demo/demo/pagetype/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/demo/demo/pagetype/hello_world/__init__.py b/demo/demo/pagetype/hello_world/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/demo/demo/pagetype/hello_world/hello_world.json b/demo/demo/pagetype/hello_world/hello_world.json new file mode 100644 index 0000000..d448280 --- /dev/null +++ b/demo/demo/pagetype/hello_world/hello_world.json @@ -0,0 +1,68 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2025-10-29 00:32:58.733780", + "custom": 1, + "engine": "InnoDB", + "field_order": [ + "title", + "column_break_jcys", + "status", + "section_break_mscp", + "content" + ], + "fields": [ + { + "fieldname": "title", + "fieldtype": "Data", + "label": "Title" + }, + { + "fieldname": "column_break_jcys", + "fieldtype": "Column Break" + }, + { + "fieldname": "status", + "fieldtype": "Select", + "label": "Status", + "options": "Published\nUnpublished\nDraft" + }, + { + "fieldname": "section_break_mscp", + "fieldtype": "Section Break" + }, + { + "fieldname": "content", + "fieldtype": "Jeditor", + "label": "Content" + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "links": [], + "modified": "2025-10-29 00:37:14.110017", + "modified_by": "Administrator", + "module": "demo", + "name": "Hello World", + "owner": "Administrator", + "package": "demo", + "pagetype": "PageType", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "row_format": "Dynamic", + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/demo/hooks.py b/demo/hooks.py new file mode 100644 index 0000000..ed860ff --- /dev/null +++ b/demo/hooks.py @@ -0,0 +1,6 @@ +app_name = "demo" +app_title = "Demo" +app_publisher = "Your Company" +app_description = "Demo App" +app_email = "support@yourcompany.com" +app_license = "mit" diff --git a/demo/public/.gitkeep b/demo/public/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/frontend/test.txt b/frontend/test.txt new file mode 100644 index 0000000..30d74d2 --- /dev/null +++ b/frontend/test.txt @@ -0,0 +1 @@ +test \ No newline at end of file diff --git a/hooks.py b/hooks.py new file mode 100644 index 0000000..ed860ff --- /dev/null +++ b/hooks.py @@ -0,0 +1,6 @@ +app_name = "demo" +app_title = "Demo" +app_publisher = "Your Company" +app_description = "Demo App" +app_email = "support@yourcompany.com" +app_license = "mit" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d132053 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,23 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "demo" +version = "0.0.1" +description = "Demo App" +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", +]