Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
管理页面前端
Browse files Browse the repository at this point in the history
  • Loading branch information
hengshizhi committed Jul 11, 2023
1 parent 65b8305 commit f40fb88
Show file tree
Hide file tree
Showing 174 changed files with 1,010 additions and 40,666 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ async def front_end(request, path):
try:
return await file(os.path.normpath('./front_end/' + path))
except:
try:return await file(os.path.normpath('./front_end/index.html'))
except:return await file(os.path.normpath(f'./front_end/{path}/index.html'))
return await file(os.path.normpath(f'./front_end/{path}/index.html'))
# except:return await file(os.path.normpath('./front_end/index.html'))


app.add_route(front_end, f'/<path:path>', methods=['GET', 'POST']) # front_end
Expand Down
17 changes: 13 additions & 4 deletions fileApi/route.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
# 路径操作类
import os
import shutil

def delete(path):
'''Delete删除文件、目录
参数:
path:删除文件、目录的路径
'''
if (os.path.isfile(path)):
os.remove(path)
elif (os.path.isdir(path)):
shutil.rmtree(path,ignore_errors=True)
else:
return False
return True

def mkdir(path): # 创建目录
folder = os.path.exists(path)
Expand Down Expand Up @@ -45,9 +56,7 @@ def CopyCatalog(self, old, new):
if not os.path.exists(target_path):
# 如果目标路径不存在原文件夹的话就创建
os.makedirs(target_path)

if os.path.exists(source_path):
# 如果目标路径存在原文件夹的话就先删除
shutil.rmtree(target_path)

delete(target_path)
shutil.copytree(source_path, target_path)
32 changes: 16 additions & 16 deletions front_end/manage/404-error.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<!-- Libs CSS -->


<link href="static/css/bootstrap-icons.css" rel="stylesheet">
<link href="static/css/dropzone.css" rel="stylesheet">
<link href="static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="static/css/prism-okaidia.css" rel="stylesheet">
<link href="./static/css/bootstrap-icons.css" rel="stylesheet">
<link href="./static/css/dropzone.css" rel="stylesheet">
<link href="./static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="./static/css/prism-okaidia.css" rel="stylesheet">



Expand All @@ -27,7 +27,7 @@


<!-- Theme CSS -->
<link rel="stylesheet" href="static/css/theme.min.css">
<link rel="stylesheet" href="./static/css/theme.min.css">
<title>404 error | Dash Ui - Bootstrap 5 Admin Dashboard Template </title>
</head>

Expand All @@ -43,7 +43,7 @@
<div class="text-center">
<div class="mb-3">
<!-- img -->
<img src="static/picture/404-error-img.png" alt="" class="img-fluid">
<img src="./static/picture/404-error-img.png" alt="" class="img-fluid">
</div>
<!-- text -->
<h1 class="display-4 fw-bold">Oops! the page not found.</h1>
Expand All @@ -57,21 +57,21 @@ <h1 class="display-4 fw-bold">Oops! the page not found.</h1>
</div>
<!-- Scripts -->
<!-- Libs JS -->
<script src="static/js/jquery.min.js"></script>
<script src="static/js/bootstrap.bundle.min.js"></script>
<script src="static/js/jquery.slimscroll.min.js"></script>
<script src="static/js/feather.min.js"></script>
<script src="static/js/prism.js"></script>
<script src="static/js/apexcharts.min.js"></script>
<script src="static/js/dropzone.min.js"></script>
<script src="static/js/prism-toolbar.min.js"></script>
<script src="static/js/prism-copy-to-clipboard.min.js"></script>
<script src="./static/js/jquery.min.js"></script>
<script src="./static/js/bootstrap.bundle.min.js"></script>
<script src="./static/js/jquery.slimscroll.min.js"></script>
<script src="./static/js/feather.min.js"></script>
<script src="./static/js/prism.js"></script>
<script src="./static/js/apexcharts.min.js"></script>
<script src="./static/js/dropzone.min.js"></script>
<script src="./static/js/prism-toolbar.min.js"></script>
<script src="./static/js/prism-copy-to-clipboard.min.js"></script>




<!-- Theme JS -->
<script src="static/js/theme.min.js"></script>
<script src="./static/js/theme.min.js"></script>
</body>

</html>
32 changes: 16 additions & 16 deletions front_end/manage/accordions.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<!-- Libs CSS -->


<link href="static/css/bootstrap-icons.css" rel="stylesheet">
<link href="static/css/dropzone.css" rel="stylesheet">
<link href="static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="static/css/prism-okaidia.css" rel="stylesheet">
<link href="./static/css/bootstrap-icons.css" rel="stylesheet">
<link href="./static/css/dropzone.css" rel="stylesheet">
<link href="./static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="./static/css/prism-okaidia.css" rel="stylesheet">



Expand All @@ -27,7 +27,7 @@


<!-- Theme CSS -->
<link rel="stylesheet" href="static/css/theme.min.css">
<link rel="stylesheet" href="./static/css/theme.min.css">
<title>Accordions | Dash Ui - Bootstrap 5 Admin Dashboard Template</title>
</head>

Expand All @@ -36,7 +36,7 @@

<nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom position-fixed w-100 " style="z-index: 2;">
<div class="container-fluid ">
<a class="navbar-brand" href="index.html"><img src="static/picture/logo-primary.svg" alt=""></a>
<a class="navbar-brand" href="index.html"><img src="./static/picture/logo-primary.svg" alt=""></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down Expand Up @@ -604,21 +604,21 @@ <h2 class="accordion-header" id="flush-headingThree">
<!-- Scripts -->

<!-- Libs JS -->
<script src="static/js/jquery.min.js"></script>
<script src="static/js/bootstrap.bundle.min.js"></script>
<script src="static/js/jquery.slimscroll.min.js"></script>
<script src="static/js/feather.min.js"></script>
<script src="static/js/prism.js"></script>
<script src="static/js/apexcharts.min.js"></script>
<script src="static/js/dropzone.min.js"></script>
<script src="static/js/prism-toolbar.min.js"></script>
<script src="static/js/prism-copy-to-clipboard.min.js"></script>
<script src="./static/js/jquery.min.js"></script>
<script src="./static/js/bootstrap.bundle.min.js"></script>
<script src="./static/js/jquery.slimscroll.min.js"></script>
<script src="./static/js/feather.min.js"></script>
<script src="./static/js/prism.js"></script>
<script src="./static/js/apexcharts.min.js"></script>
<script src="./static/js/dropzone.min.js"></script>
<script src="./static/js/prism-toolbar.min.js"></script>
<script src="./static/js/prism-copy-to-clipboard.min.js"></script>




<!-- Theme JS -->
<script src="static/js/theme.min.js"></script>
<script src="./static/js/theme.min.js"></script>
</body>

</html>
32 changes: 16 additions & 16 deletions front_end/manage/alerts.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<!-- Libs CSS -->


<link href="static/css/bootstrap-icons.css" rel="stylesheet">
<link href="static/css/dropzone.css" rel="stylesheet">
<link href="static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="static/css/prism-okaidia.css" rel="stylesheet">
<link href="./static/css/bootstrap-icons.css" rel="stylesheet">
<link href="./static/css/dropzone.css" rel="stylesheet">
<link href="./static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="./static/css/prism-okaidia.css" rel="stylesheet">



Expand All @@ -27,7 +27,7 @@


<!-- Theme CSS -->
<link rel="stylesheet" href="static/css/theme.min.css">
<link rel="stylesheet" href="./static/css/theme.min.css">
<title>Alerts | Dash Ui - Bootstrap 5 Admin Dashboard Template</title>

</head>
Expand All @@ -37,7 +37,7 @@

<nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom position-fixed w-100 " style="z-index: 2;">
<div class="container-fluid ">
<a class="navbar-brand" href="index.html"><img src="static/picture/logo-primary.svg" alt=""></a>
<a class="navbar-brand" href="index.html"><img src="./static/picture/logo-primary.svg" alt=""></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down Expand Up @@ -739,21 +739,21 @@ <h2 class="fw-semi-bold mb-1">Dismissing </h2>

<!-- Scripts -->
<!-- Libs JS -->
<script src="static/js/jquery.min.js"></script>
<script src="static/js/bootstrap.bundle.min.js"></script>
<script src="static/js/jquery.slimscroll.min.js"></script>
<script src="static/js/feather.min.js"></script>
<script src="static/js/prism.js"></script>
<script src="static/js/apexcharts.min.js"></script>
<script src="static/js/dropzone.min.js"></script>
<script src="static/js/prism-toolbar.min.js"></script>
<script src="static/js/prism-copy-to-clipboard.min.js"></script>
<script src="./static/js/jquery.min.js"></script>
<script src="./static/js/bootstrap.bundle.min.js"></script>
<script src="./static/js/jquery.slimscroll.min.js"></script>
<script src="./static/js/feather.min.js"></script>
<script src="./static/js/prism.js"></script>
<script src="./static/js/apexcharts.min.js"></script>
<script src="./static/js/dropzone.min.js"></script>
<script src="./static/js/prism-toolbar.min.js"></script>
<script src="./static/js/prism-copy-to-clipboard.min.js"></script>




<!-- Theme JS -->
<script src="static/js/theme.min.js"></script>
<script src="./static/js/theme.min.js"></script>

</body>

Expand Down
32 changes: 16 additions & 16 deletions front_end/manage/badge.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<!-- Libs CSS -->


<link href="static/css/bootstrap-icons.css" rel="stylesheet">
<link href="static/css/dropzone.css" rel="stylesheet">
<link href="static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="static/css/prism-okaidia.css" rel="stylesheet">
<link href="./static/css/bootstrap-icons.css" rel="stylesheet">
<link href="./static/css/dropzone.css" rel="stylesheet">
<link href="./static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="./static/css/prism-okaidia.css" rel="stylesheet">



Expand All @@ -27,7 +27,7 @@


<!-- Theme CSS -->
<link rel="stylesheet" href="static/css/theme.min.css">
<link rel="stylesheet" href="./static/css/theme.min.css">
<title>Badges | Dash Ui - Bootstrap 5 Admin Dashboard Template</title>

</head>
Expand All @@ -37,7 +37,7 @@

<nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom position-fixed w-100 " style="z-index: 2;">
<div class="container-fluid ">
<a class="navbar-brand" href="index.html"><img src="static/picture/logo-primary.svg" alt=""></a>
<a class="navbar-brand" href="index.html"><img src="./static/picture/logo-primary.svg" alt=""></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down Expand Up @@ -687,21 +687,21 @@ <h6>Example heading <span class="badge bg-secondary">New</span></h6>
<!-- Scripts -->

<!-- Libs JS -->
<script src="static/js/jquery.min.js"></script>
<script src="static/js/bootstrap.bundle.min.js"></script>
<script src="static/js/jquery.slimscroll.min.js"></script>
<script src="static/js/feather.min.js"></script>
<script src="static/js/prism.js"></script>
<script src="static/js/apexcharts.min.js"></script>
<script src="static/js/dropzone.min.js"></script>
<script src="static/js/prism-toolbar.min.js"></script>
<script src="static/js/prism-copy-to-clipboard.min.js"></script>
<script src="./static/js/jquery.min.js"></script>
<script src="./static/js/bootstrap.bundle.min.js"></script>
<script src="./static/js/jquery.slimscroll.min.js"></script>
<script src="./static/js/feather.min.js"></script>
<script src="./static/js/prism.js"></script>
<script src="./static/js/apexcharts.min.js"></script>
<script src="./static/js/dropzone.min.js"></script>
<script src="./static/js/prism-toolbar.min.js"></script>
<script src="./static/js/prism-copy-to-clipboard.min.js"></script>




<!-- Theme JS -->
<script src="static/js/theme.min.js"></script>
<script src="./static/js/theme.min.js"></script>
</body>

</html>
36 changes: 18 additions & 18 deletions front_end/manage/billing.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<!-- Libs CSS -->


<link href="static/css/bootstrap-icons.css" rel="stylesheet">
<link href="static/css/dropzone.css" rel="stylesheet">
<link href="static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="static/css/prism-okaidia.css" rel="stylesheet">
<link href="./static/css/bootstrap-icons.css" rel="stylesheet">
<link href="./static/css/dropzone.css" rel="stylesheet">
<link href="./static/css/materialdesignicons.min.css" rel="stylesheet">
<link href="./static/css/prism-okaidia.css" rel="stylesheet">



Expand All @@ -27,7 +27,7 @@


<!-- Theme CSS -->
<link rel="stylesheet" href="static/css/theme.min.css">
<link rel="stylesheet" href="./static/css/theme.min.css">
<title>Billing | Dash Ui - Bootstrap 5 Admin Dashboard Template</title>
</head>

Expand All @@ -39,7 +39,7 @@
<div class="nav-scroller">
<!-- Brand logo -->
<a class="navbar-brand" href="index.html">
<img src="static/picture/logo.svg" alt="">
<img src="./static/picture/logo.svg" alt="">
</a>
<!-- Navbar nav -->
<ul class="navbar-nav flex-column" id="sideNavbar">
Expand Down Expand Up @@ -328,7 +328,7 @@ <h5 class=" mb-1">Sina Ray</h5>
<li class="dropdown ms-2">
<a class="rounded-circle" href="#" role="button" id="dropdownUser" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="avatar avatar-md avatar-indicators avatar-online">
<img alt="avatar" src="static/picture/avatar-1.jpg" class="rounded-circle">
<img alt="avatar" src="./static/picture/avatar-1.jpg" class="rounded-circle">
</div>
</a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdownUser">
Expand Down Expand Up @@ -454,7 +454,7 @@ <h1 class="fw-bold text-primary">$499 USD</h1>
<div class="mb-3 mb-lg-0 text-center text-sm-start">
<h5 class="text-uppercase mb-0">Payment method</h5>
<div class="mt-2">
<img src="static/picture/mastercard.svg" alt=""> <span class="fw-bold">***8773</span>
<img src="./static/picture/mastercard.svg" alt=""> <span class="fw-bold">***8773</span>
</div>
</div>
<div class="text-center text-md-start">
Expand Down Expand Up @@ -718,21 +718,21 @@ <h4 class="mb-1" id="billingAddressModalLabel">Billing Address

<!-- Scripts -->
<!-- Libs JS -->
<script src="static/js/jquery.min.js"></script>
<script src="static/js/bootstrap.bundle.min.js"></script>
<script src="static/js/jquery.slimscroll.min.js"></script>
<script src="static/js/feather.min.js"></script>
<script src="static/js/prism.js"></script>
<script src="static/js/apexcharts.min.js"></script>
<script src="static/js/dropzone.min.js"></script>
<script src="static/js/prism-toolbar.min.js"></script>
<script src="static/js/prism-copy-to-clipboard.min.js"></script>
<script src="./static/js/jquery.min.js"></script>
<script src="./static/js/bootstrap.bundle.min.js"></script>
<script src="./static/js/jquery.slimscroll.min.js"></script>
<script src="./static/js/feather.min.js"></script>
<script src="./static/js/prism.js"></script>
<script src="./static/js/apexcharts.min.js"></script>
<script src="./static/js/dropzone.min.js"></script>
<script src="./static/js/prism-toolbar.min.js"></script>
<script src="./static/js/prism-copy-to-clipboard.min.js"></script>




<!-- Theme JS -->
<script src="static/js/theme.min.js"></script>
<script src="./static/js/theme.min.js"></script>
</body>

</html>
Loading

0 comments on commit f40fb88

Please sign in to comment.