Core Update 1.4.0
This commit is contained in:
16
core/Templates/account/account.twig
Normal file
16
core/Templates/account/account.twig
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends "base.twig" %}
|
||||
|
||||
{% block head %}
|
||||
<script src="/js/jquery.min.js" nonce="{{ site.csp.nonce }}"></script>
|
||||
<script src="/js/script.js" nonce="{{ site.csp.nonce }}"></script>
|
||||
<script src="/js/account.js" nonce="{{ site.csp.nonce }}"></script>
|
||||
<link rel="stylesheet" href="/css/bootstrap.min.css" nonce="{{ site.csp.nonce }}">
|
||||
<script src="/js/bootstrap.bundle.min.js" nonce="{{ site.csp.nonce }}"></script>
|
||||
<link rel="stylesheet" href="/css/fontawesome.min.css" nonce="{{ site.csp.nonce }}">
|
||||
<link rel="stylesheet" href="/css/account.css" nonce="{{ site.csp.nonce }}">
|
||||
<title>Account - {{ title }}</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{% block head %}
|
||||
<title>{{ site.name }} - Administration</title>
|
||||
<script src="/js/fontawesome-all.min.js" nonce="{{ site.csp.nonce }}"></script>
|
||||
<link rel="stylesheet" href="/css/fontawesome.min.css" nonce="{{ site.csp.nonce }}">
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
13
core/Templates/base.html
Normal file
13
core/Templates/base.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ user.lang }}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
{% block head %}
|
||||
<title>{{ site.title }}</title>
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
6
core/Templates/mail/2fa_remove.twig
Normal file
6
core/Templates/mail/2fa_remove.twig
Normal file
@@ -0,0 +1,6 @@
|
||||
Hello {{ username }},<br><br>
|
||||
this is a notification, that 2FA-Authorization was removed from your account. If this was intended, you can simply ignore this email.<br>
|
||||
Otherwise contact the <a href="mailto:{{ sender_mail }}">Administration</a> immediately!<br><br>
|
||||
|
||||
Best Regards<br>
|
||||
{{ site_name }} Administration
|
||||
8
core/Templates/mail/register.twig
Normal file
8
core/Templates/mail/register.twig
Normal file
@@ -0,0 +1,8 @@
|
||||
Hello {{ username }},<br><br>
|
||||
You recently created an account on {{ site_name }}. Please click on the following link to confirm your email address and complete your registration.<br>
|
||||
If you haven't registered an account, you can simply ignore this email. The link is valid for the next 48 hours:<br><br>
|
||||
|
||||
<a href="{{ link }}">{{ link }}</a><br><br>
|
||||
|
||||
Best Regards<br>
|
||||
{{ site_name }} Administration
|
||||
54
core/Templates/swagger.twig
Normal file
54
core/Templates/swagger.twig
Normal file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Swagger UI</title>
|
||||
<link nonce="{{ site.csp.nonce }}" rel="stylesheet" type="text/css" href="/css/swagger-ui.css" />
|
||||
<style nonce="{{ site.csp.nonce }}">
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
overflow: -moz-scrollbars-vertical;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
margin:0;
|
||||
background: #fafafa;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="swagger-ui"></div>
|
||||
<script nonce="{{ site.csp.nonce }}" src="/js/swagger-ui-bundle.js" charset="UTF-8"></script>
|
||||
<script nonce="{{ site.csp.nonce }}" src="/js/swagger-ui-standalone-preset.js" charset="UTF-8"></script>
|
||||
<script nonce="{{ site.csp.nonce }}">
|
||||
window.onload = function() {
|
||||
// Begin Swagger UI call region
|
||||
window.ui = SwaggerUIBundle({
|
||||
url: "{{ site.baseUrl }}/api/swagger",
|
||||
dom_id: '#swagger-ui',
|
||||
deepLinking: true,
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis,
|
||||
SwaggerUIStandalonePreset
|
||||
],
|
||||
plugins: [
|
||||
SwaggerUIBundle.plugins.DownloadUrl
|
||||
],
|
||||
layout: "StandaloneLayout",
|
||||
{% if user.loggedIn %}
|
||||
requestInterceptor: request => {
|
||||
request.headers['XSRF-Token'] = '{{ user.session.csrfToken }}';
|
||||
return request;
|
||||
}
|
||||
});
|
||||
{% endif %}
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user