Pattern update

This commit is contained in:
Dita Aji Pratama 2024-08-08 13:25:40 +07:00
parent 1b7475ffc1
commit 0cd51eafad
2 changed files with 28 additions and 47 deletions

View File

@ -19,8 +19,8 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="apple-touch-icon" sizes="76x76" href="${baseurl}/blackdashboard/img/apple-icon.png"> <link rel="apple-touch-icon" sizes="76x76" href="${baseurl}/templates/blackdashboard/img/apple-icon.png">
<link rel="icon" type="image/png" href="${baseurl}/blackdashboard/img/favicon.png"> <link rel="icon" type="image/png" href="${baseurl}/templates/blackdashboard/img/favicon.png">
<title> <title>
${title} ${title}
</title> </title>
@ -28,11 +28,11 @@
<link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet" />
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet"> <link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<!-- Nucleo Icons --> <!-- Nucleo Icons -->
<link href="${baseurl}/blackdashboard/css/nucleo-icons.css" rel="stylesheet" /> <link href="${baseurl}/templates/blackdashboard/css/nucleo-icons.css" rel="stylesheet" />
<!-- CSS Files --> <!-- CSS Files -->
<link href="${baseurl}/blackdashboard/css/black-dashboard.css?v=1.0.0" rel="stylesheet" /> <link href="${baseurl}/templates/blackdashboard/css/black-dashboard.css?v=1.0.0" rel="stylesheet" />
<!-- CSS Just for demo purpose, don't include it in your project --> <!-- CSS Just for demo purpose, don't include it in your project -->
<link href="${baseurl}/blackdashboard/demo/demo.css" rel="stylesheet" /> <link href="${baseurl}/templates/blackdashboard/demo/demo.css" rel="stylesheet" />
</head> </head>
<body class=""> <body class="">
@ -47,20 +47,20 @@
</div> </div>
</div> </div>
<!-- Core JS Files --> <!-- Core JS Files -->
<script src="${baseurl}/blackdashboard/js/core/jquery.min.js"></script> <script src="${baseurl}/templates/blackdashboard/js/core/jquery.min.js"></script>
<script src="${baseurl}/blackdashboard/js/core/popper.min.js"></script> <script src="${baseurl}/templates/blackdashboard/js/core/popper.min.js"></script>
<script src="${baseurl}/blackdashboard/js/core/bootstrap.min.js"></script> <script src="${baseurl}/templates/blackdashboard/js/core/bootstrap.min.js"></script>
<script src="${baseurl}/blackdashboard/js/plugins/perfect-scrollbar.jquery.min.js"></script> <script src="${baseurl}/templates/blackdashboard/js/plugins/perfect-scrollbar.jquery.min.js"></script>
<!-- Google Maps Plugin --> <!-- Google Maps Plugin -->
<!-- Place this tag in your head or just before your close body tag. --> <!-- Place this tag in your head or just before your close body tag. -->
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script> <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE"></script>
<!-- Chart JS --> <!-- Chart JS -->
<script src="${baseurl}/blackdashboard/js/plugins/chartjs.min.js"></script> <script src="${baseurl}/templates/blackdashboard/js/plugins/chartjs.min.js"></script>
<!-- Notifications Plugin --> <!-- Notifications Plugin -->
<script src="${baseurl}/blackdashboard/js/plugins/bootstrap-notify.js"></script> <script src="${baseurl}/templates/blackdashboard/js/plugins/bootstrap-notify.js"></script>
<!-- Control Center for Black Dashboard: parallax effects, scripts for the example pages etc --> <!-- Control Center for Black Dashboard: parallax effects, scripts for the example pages etc -->
<script src="${baseurl}/blackdashboard/js/black-dashboard.min.js?v=1.0.0"></script><!-- Black Dashboard DEMO methods, don't include it in your project! --> <script src="${baseurl}/templates/blackdashboard/js/black-dashboard.min.js?v=1.0.0"></script><!-- Black Dashboard DEMO methods, don't include it in your project! -->
<script src="${baseurl}/blackdashboard/demo/demo.js"></script> <script src="${baseurl}/templates/blackdashboard/demo/demo.js"></script>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$().ready(function() { $().ready(function() {

View File

@ -2,58 +2,39 @@ from core import html
static = [ static = [
{ {
'name':'/blackdashboard/css', "route":"/templates/blackdashboard/css/<filepath>",
'value':{ "root":"./templates/blackdashboard/static/css"
'tools.staticdir.on' : True ,
'tools.staticdir.dir' : './templates/blackdashboard/static/css' ,
}
}, },
{ {
'name':'/blackdashboard/demo', "route":"/templates/blackdashboard/demo/<filepath>",
'value':{ "root":"./templates/blackdashboard/static/demo"
'tools.staticdir.on' : True ,
'tools.staticdir.dir' : './templates/blackdashboard/static/demo' ,
}
}, },
{ {
'name':'/blackdashboard/fonts', "route":"/templates/blackdashboard/fonts/<filepath>",
'value':{ "root":"./templates/blackdashboard/static/fonts"
'tools.staticdir.on' : True ,
'tools.staticdir.dir' : './templates/blackdashboard/static/fonts' ,
}
}, },
{ {
'name':'/blackdashboard/img', "route":"/templates/blackdashboard/img/<filepath>",
'value':{ "root":"./templates/blackdashboard/static/img"
'tools.staticdir.on' : True ,
'tools.staticdir.dir' : './templates/blackdashboard/static/img' ,
}
}, },
{ {
'name':'/blackdashboard/js', "route":"/templates/blackdashboard/js/<filepath>",
'value':{ "root":"./templates/blackdashboard/static/js"
'tools.staticdir.on' : True ,
'tools.staticdir.dir' : './templates/blackdashboard/static/js' ,
}
}, },
{ {
'name':'/blackdashboard/scss', "route":"/templates/blackdashboard/scss/<filepath>",
'value':{ "root":"./templates/blackdashboard/static/scss"
'tools.staticdir.on' : True , }
'tools.staticdir.dir' : './templates/blackdashboard/static/scss' ,
}
},
] ]
def main(dir, page): def main(dir, page):
html_template = html.main.get_html("templates/blackdashboard/html") html_template = html.main.get_html("templates/blackdashboard/html")
html_page = html.main.get_html(dir) html_page = html.main.get_html(dir)
params_list = { params_list = {
"template" : html_template ["template.html" ] , "index" : html_template ["index.html" ] ,
"navbar" : html_template ["navbar.html" ] , "navbar" : html_template ["navbar.html" ] ,
"sidebar" : html_template ["sidebar.html" ] , "sidebar" : html_template ["sidebar.html" ] ,
"footer" : html_template ["footer.html" ] , "footer" : html_template ["footer.html" ] ,
"container" : html_page [ page+".html" ] "container" : html_page [f"{page}.html" ]
} }
return params_list return params_list