From 17a17db9e6d6856e101e1e2f9987c8170dc1f58f Mon Sep 17 00:00:00 2001 From: long2ice Date: Sun, 16 May 2021 14:22:56 +0800 Subject: [PATCH] split footer --- README-zh.md | 26 +++++- fastapi_admin/__init__.py | 2 +- .../templates/components/footer.html | 77 ++++++++++++++++++ fastapi_admin/templates/layout.html | 79 +------------------ 4 files changed, 104 insertions(+), 80 deletions(-) create mode 100644 fastapi_admin/templates/components/footer.html diff --git a/README-zh.md b/README-zh.md index cc25b51..8086f0c 100644 --- a/README-zh.md +++ b/README-zh.md @@ -7,6 +7,10 @@ ## 简介 +`fastapi-admin` 是一个基于 [FastAPI](https://github.com/tiangolo/fastapi) +和 [TortoiseORM](https://github.com/tortoise/tortoise-orm/) 以及 [tabler](https://github.com/tabler/tabler) UI框架的后台管理面板, +灵感来自Django admin。 + ## 线上 DEMO 你可以在 [此处](https://fastapi-admin.long2ice.cn/admin/login) 查看线上 demo。 @@ -25,6 +29,26 @@ ![](https://raw.githubusercontent.com/fastapi-admin/fastapi-admin/dev/images/dashboard.png) +## 本地运行示例 + +1. 克隆仓库。 +2. 创建 `.env` 文件。 + + ```dotenv + DATABASE_URL=mysql://root:123456@127.0.0.1:3306/fastapi-admin + REDIS_HOST=localhost + REDIS_PORT=6379 + REDIS_PASSWORD= + REDIS_DB=0 + ``` + +3. 运行 `docker-compose up -d --build`。 +4. 访问 创建第一个管理员。 + ## 文档 -## 开源许可 +文档地址 。 + +## 许可 + +本项目遵循 [Apache-2.0](https://github.com/fastapi-admin/fastapi-admin/blob/master/LICENSE) 开源许可。 diff --git a/fastapi_admin/__init__.py b/fastapi_admin/__init__.py index 1cf6267..50b5ea9 100644 --- a/fastapi_admin/__init__.py +++ b/fastapi_admin/__init__.py @@ -1 +1 @@ -VERSION = "0.1.0" +VERSION = "1.0.1" diff --git a/fastapi_admin/templates/components/footer.html b/fastapi_admin/templates/components/footer.html new file mode 100644 index 0000000..c23a38a --- /dev/null +++ b/fastapi_admin/templates/components/footer.html @@ -0,0 +1,77 @@ + diff --git a/fastapi_admin/templates/layout.html b/fastapi_admin/templates/layout.html index d14c037..9f093f2 100644 --- a/fastapi_admin/templates/layout.html +++ b/fastapi_admin/templates/layout.html @@ -67,84 +67,7 @@ {% block footer %} - + {% include "components/footer.html" %} {% endblock %}