updating gn-20 dashboard
This commit is contained in:
31
grandnational-dashboard/app/dashboard.py
Normal file
31
grandnational-dashboard/app/dashboard.py
Normal file
@@ -0,0 +1,31 @@
|
||||
from starlette.applications import Starlette
|
||||
from starlette.templating import Jinja2Templates
|
||||
from starlette.routing import Route, Mount
|
||||
from starlette.staticfiles import StaticFiles
|
||||
|
||||
|
||||
templates = Jinja2Templates(directory='templates')
|
||||
|
||||
|
||||
async def home(request):
|
||||
return templates.TemplateResponse(
|
||||
'index.html',
|
||||
{'request': request},
|
||||
)
|
||||
|
||||
routes = [
|
||||
Route('/', endpoint=home),
|
||||
Mount('/static', StaticFiles(directory='../static'), name='static'),
|
||||
Mount(
|
||||
'/node_modules',
|
||||
StaticFiles(directory='../node_modules'),
|
||||
name='node_modules',
|
||||
),
|
||||
Mount(
|
||||
'/bower_components',
|
||||
StaticFiles(directory='../bower_components'),
|
||||
name='bower_components',
|
||||
),
|
||||
]
|
||||
|
||||
app = Starlette(debug=True, routes=routes)
|
||||
31
grandnational-dashboard/grandnational_dashboard/main.py
Normal file
31
grandnational-dashboard/grandnational_dashboard/main.py
Normal file
@@ -0,0 +1,31 @@
|
||||
from starlette.applications import Starlette
|
||||
from starlette.templating import Jinja2Templates
|
||||
from starlette.routing import Route, Mount
|
||||
from starlette.staticfiles import StaticFiles
|
||||
|
||||
|
||||
templates = Jinja2Templates(directory='templates')
|
||||
|
||||
|
||||
async def home(request):
|
||||
return templates.TemplateResponse(
|
||||
'index.html',
|
||||
{'request': request},
|
||||
)
|
||||
|
||||
routes = [
|
||||
Route('/', endpoint=home),
|
||||
Mount('/static', StaticFiles(directory='../static'), name='static'),
|
||||
Mount(
|
||||
'/node_modules',
|
||||
StaticFiles(directory='../node_modules'),
|
||||
name='node_modules',
|
||||
),
|
||||
Mount(
|
||||
'/bower_components',
|
||||
StaticFiles(directory='../bower_components'),
|
||||
name='bower_components',
|
||||
),
|
||||
]
|
||||
|
||||
app = Starlette(debug=True, routes=routes)
|
||||
@@ -6,7 +6,7 @@
|
||||
<meta name="description" content="Capacity Dashboard">
|
||||
<meta name="author" content="capacity">
|
||||
<!-- favicon -->
|
||||
<link rel="shortcut icon" href="{{ url_for('static', path='assets/favicon/favicon-192x192-wh.png')}}">
|
||||
<link rel="shortcut icon" href="{{ url_for('static', path='assets/favicon/favicon-192x192.png')}}">
|
||||
<!-- custom css -->
|
||||
<link rel="stylesheet" href="{{ url_for('static', path='/css/gn.css')}}">
|
||||
<!-- bootstrap css -->
|
||||
|
||||
8
grandnational-dashboard/manual-jq.toml
Normal file
8
grandnational-dashboard/manual-jq.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[letteringjs]
|
||||
url = "https://github.com/davatron5000/Lettering.js"
|
||||
jq = "https://github.com/davatron5000/Lettering.js/blob/master/jquery.lettering.js"
|
||||
|
||||
[textillate]
|
||||
url = "https://github.com/jschr/textillate"
|
||||
jq = "https://github.com/jschr/textillate/blob/master/jquery.textillate.js"
|
||||
dependencies = ["animate.css", "lettering.js"]
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user