...
 
Commits (3)
This diff is collapsed.
......@@ -8,16 +8,16 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --progress --profile --colors"
},
"dependencies": {
"manifest-revision-webpack-plugin": "^0.4.1"
"build": "webpack --mode development --colors"
},
"dependencies": {},
"devDependencies": {
"ajv": "^6.5.4",
"autoprefixer": "^9.3.1",
"bootstrap": "^4.1.3",
"css-loader": "^1.0.1",
"jquery": "^3.3.1",
"mini-css-extract-plugin": "^0.4.4",
"node-sass": "^4.9.4",
"popper.js": "^1.14.4",
"postcss-loader": "^3.0.0",
......
const path = require('path');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
entry: './assets/scripts/index.js',
......@@ -16,6 +17,8 @@ module.exports = {
test: /\.(scss)$/,
use: [{
loader: 'style-loader', // inject CSS to page
}, {
loader: MiniCssExtractPlugin.loader,
}, {
loader: 'css-loader', // translates CSS into CommonJS modules
}, {
......@@ -33,4 +36,12 @@ module.exports = {
}]
}
]},
plugins: [
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: "[name].css",
chunkFilename: "[id].css"
})
],
};
\ No newline at end of file
......@@ -19,6 +19,7 @@ def create_app(test_config=None):
# ensure the instance folder exists
try:
import os
os.makedirs(app.instance_path)
except OSError:
pass
......
......@@ -10,6 +10,7 @@ bp = Blueprint('main', __name__)
def index():
return render_template('main/index.html')
@bp.route('/new')
def new():
return render_template('main/new.html')
......@@ -4,8 +4,8 @@
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}">
<script type="text/javascript" src="{{ url_for('static', filename='main.js') }}"></script>
{% block extra_headers %}{% endblock %}
<title>{% block title %}{% endblock %} - m-ship</title>
......@@ -14,10 +14,10 @@
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<header class="masthead mb-auto">
<div class="inner">
<h3 class="masthead-brand">m-ship</h3>
<h3 class="masthead-brand"><a href="/">m-ship</a></h3>
<nav class="nav nav-masthead justify-content-center">
<a class="nav-link active" href="#">Home</a>
<a class="nav-link" href="#">Pannello</a>
<a class="nav-link" href="https://self.srv.mittelab.org" target="_blank">Mokey</a>
<a class="nav-link" href="#">Contattaci</a>
</nav>
</div>
......@@ -31,5 +31,6 @@
</div>
</footer>
</div>
<script type="text/javascript" src="{{ url_for('static', filename='main.js') }}"></script>
</body>
</html>
\ No newline at end of file
......@@ -104,7 +104,8 @@
<label class="form-check-label">
<input type="checkbox" class="form-check-input" name="inputStatute" id="inputStatute"
value="statuteAccepted">
Dichiaro di aver preso visione dello statuto e del regolamento interno.
Dichiaro di aver preso visione dello <a href="https://git.mittelab.org/sudo/statuto/blob/master/statuto.md">statuto</a> e del
<a href="https://git.mittelab.org/sudo/regolamento/blob/master/regolamento.md">regolamento interno</a>.
</label>
</div>
</fieldset>
......