Adjust to new rocket-based backend
This commit is contained in:
parent
ad92c1866c
commit
e3e56669be
|
@ -67,4 +67,4 @@ block content
|
|||
|
||||
You may find the following interesting though:
|
||||
|
||||
- A [little web app](/music_sample) showing off what Webgl can do in combination with the JavaScript Audio interface.
|
||||
- A [little web app](music_sample) showing off what Webgl can do in combination with the JavaScript Audio interface.
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
{% for category, message in messages %}
|
||||
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
|
||||
{{ message }}
|
||||
{{#if flash}}
|
||||
<div class="alert alert-{{ flash-type }} alert-dismissible fade show" role="alert">
|
||||
{{ flash }}
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{{/if}}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
nav.navbar.navbar-expand-lg.navbar-dark.bg-dark
|
||||
.container
|
||||
a.navbar-brand(href="{{ url_for('index') }}") tlater
|
||||
a.navbar-brand(href="/") tlater
|
||||
button.navbar-toggler(
|
||||
type="button",
|
||||
data-toggle="collapse",
|
||||
|
@ -13,5 +13,5 @@ nav.navbar.navbar-expand-lg.navbar-dark.bg-dark
|
|||
|
||||
#navbar.navbar-collapse.collapse
|
||||
ul.navbar-nav.mr-auto
|
||||
li.nav-item: a.nav-link(href="{{ url_for('mail') }}") E-Mail
|
||||
li.nav-item: a.nav-link(href="mail") E-Mail
|
||||
li.nav-item: a.nav-link(href="https://www.github.com/TLATER") GitHub
|
||||
|
|
|
@ -6,7 +6,7 @@ block content
|
|||
.row
|
||||
//- The form
|
||||
.col-md-6
|
||||
form#sendmail(role="form", action="{{ url_for('mail') }}", method="post")
|
||||
form#sendmail(role="form", action="mail", method="post")
|
||||
//- The sender address
|
||||
.form-group
|
||||
label.control-label(for="mail") Email address
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"hash": true,
|
||||
"title": "tlater.net",
|
||||
"filename": "../index.html",
|
||||
"filename": "../index.html.hbs",
|
||||
"template": "./src/index/index.pug",
|
||||
"chunks": ["index"]
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"hash": true,
|
||||
"title": "tlater.net contact",
|
||||
"filename": "../mail.html",
|
||||
"filename": "../mail.html.hbs",
|
||||
"template": "./src/mail/mail.pug",
|
||||
"chunks": ["mail"]
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"hash": true,
|
||||
"title": "tlater.net music",
|
||||
"filename": "../music.html",
|
||||
"filename": "../music.html.hbs",
|
||||
"template": "./src/music/music.pug",
|
||||
"chunks": ["music"]
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"hash": true,
|
||||
"title": "tlater.net startpage",
|
||||
"filename": "../startpage.html",
|
||||
"filename": "../startpage.html.hbs",
|
||||
"template": "./src/startpage/startpage.pug",
|
||||
"chunks": ["startpage"]
|
||||
}
|
||||
|
|
|
@ -34,7 +34,11 @@ module.exports = {
|
|||
jQuery: "jquery"
|
||||
}),
|
||||
new MiniCssExtractPlugin(),
|
||||
new FaviconsWebpackPlugin(path.resolve(__dirname, "src", "lib", "favicon.png"))
|
||||
new FaviconsWebpackPlugin({
|
||||
logo: path.resolve(__dirname, "src", "lib", "favicon.png"),
|
||||
prefix: "../static/",
|
||||
title: "tlater.net"
|
||||
})
|
||||
].concat(pages.map(page => new HtmlWebpackPlugin(page))),
|
||||
module: {
|
||||
rules: [
|
||||
|
@ -44,7 +48,7 @@ module.exports = {
|
|||
use: {
|
||||
loader: "babel-loader",
|
||||
options: {
|
||||
presets: ["babel-preset-env"]
|
||||
presets: ["@babel/preset-env"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Reference in a new issue