Adjust to new rocket-based backend

This commit is contained in:
Tristan Maat 2019-02-03 02:58:52 +00:00
parent ad92c1866c
commit e3e56669be
9 changed files with 21 additions and 21 deletions

View file

@ -67,4 +67,4 @@ block content
You may find the following interesting though: 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.

View file

@ -1,12 +1,8 @@
{% with messages = get_flashed_messages(with_categories=true) %} {{#if flash}}
{% if messages %} <div class="alert alert-{{ flash-type }} alert-dismissible fade show" role="alert">
{% for category, message in messages %} {{ flash }}
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close">
{{ message }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
{% endfor %} {{/if}}
{% endif %}
{% endwith %}

View file

@ -1,6 +1,6 @@
nav.navbar.navbar-expand-lg.navbar-dark.bg-dark nav.navbar.navbar-expand-lg.navbar-dark.bg-dark
.container .container
a.navbar-brand(href="{{ url_for('index') }}") tlater a.navbar-brand(href="/") tlater
button.navbar-toggler( button.navbar-toggler(
type="button", type="button",
data-toggle="collapse", data-toggle="collapse",
@ -13,5 +13,5 @@ nav.navbar.navbar-expand-lg.navbar-dark.bg-dark
#navbar.navbar-collapse.collapse #navbar.navbar-collapse.collapse
ul.navbar-nav.mr-auto 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 li.nav-item: a.nav-link(href="https://www.github.com/TLATER") GitHub

View file

@ -6,7 +6,7 @@ block content
.row .row
//- The form //- The form
.col-md-6 .col-md-6
form#sendmail(role="form", action="{{ url_for('mail') }}", method="post") form#sendmail(role="form", action="mail", method="post")
//- The sender address //- The sender address
.form-group .form-group
label.control-label(for="mail") Email address label.control-label(for="mail") Email address

View file

@ -1,7 +1,7 @@
{ {
"hash": true, "hash": true,
"title": "tlater.net", "title": "tlater.net",
"filename": "../index.html", "filename": "../index.html.hbs",
"template": "./src/index/index.pug", "template": "./src/index/index.pug",
"chunks": ["index"] "chunks": ["index"]
} }

View file

@ -1,7 +1,7 @@
{ {
"hash": true, "hash": true,
"title": "tlater.net contact", "title": "tlater.net contact",
"filename": "../mail.html", "filename": "../mail.html.hbs",
"template": "./src/mail/mail.pug", "template": "./src/mail/mail.pug",
"chunks": ["mail"] "chunks": ["mail"]
} }

View file

@ -1,7 +1,7 @@
{ {
"hash": true, "hash": true,
"title": "tlater.net music", "title": "tlater.net music",
"filename": "../music.html", "filename": "../music.html.hbs",
"template": "./src/music/music.pug", "template": "./src/music/music.pug",
"chunks": ["music"] "chunks": ["music"]
} }

View file

@ -1,7 +1,7 @@
{ {
"hash": true, "hash": true,
"title": "tlater.net startpage", "title": "tlater.net startpage",
"filename": "../startpage.html", "filename": "../startpage.html.hbs",
"template": "./src/startpage/startpage.pug", "template": "./src/startpage/startpage.pug",
"chunks": ["startpage"] "chunks": ["startpage"]
} }

View file

@ -34,7 +34,11 @@ module.exports = {
jQuery: "jquery" jQuery: "jquery"
}), }),
new MiniCssExtractPlugin(), 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))), ].concat(pages.map(page => new HtmlWebpackPlugin(page))),
module: { module: {
rules: [ rules: [
@ -44,7 +48,7 @@ module.exports = {
use: { use: {
loader: "babel-loader", loader: "babel-loader",
options: { options: {
presets: ["babel-preset-env"] presets: ["@babel/preset-env"]
} }
} }
}, },