mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 02:40:43 -06:00
Fix various issues in forms.
This commit is contained in:
parent
3e12d26afd
commit
f2073a4494
@ -51,17 +51,17 @@ class SecureHeaders
|
||||
$response = $next($request);
|
||||
$trackingScriptSrc = $this->getTrackingScriptSource();
|
||||
$csp = [
|
||||
// "default-src 'none'",
|
||||
// "object-src 'none'",
|
||||
// "require-trusted-types-for 'script'",
|
||||
// sprintf("script-src 'unsafe-inline' 'strict-dynamic' 'nonce-%1s' %2s", $nonce, $trackingScriptSrc),
|
||||
// "style-src 'unsafe-inline' 'self'",
|
||||
// "frame-ancestors 'none'",
|
||||
// "base-uri 'self'",
|
||||
// "font-src 'self' data:",
|
||||
// "connect-src 'self'",
|
||||
// sprintf("img-src 'self' data: https://a.tile.openstreetmap.org https://b.tile.openstreetmap.org https://c.tile.openstreetmap.org https://api.tiles.mapbox.com %s", $trackingScriptSrc),
|
||||
// "manifest-src 'self'",
|
||||
"default-src 'none'",
|
||||
"object-src 'none'",
|
||||
"require-trusted-types-for 'script'",
|
||||
//sprintf("script-src 'unsafe-inline' 'strict-dynamic' 'nonce-%1s' %2s", $nonce, $trackingScriptSrc),
|
||||
sprintf("script-src 'unsafe-eval' 'strict-dynamic' 'self' 'unsafe-inline' 'nonce-%1s' %2s", $nonce, $trackingScriptSrc),
|
||||
"style-src 'unsafe-inline' 'self'",
|
||||
"base-uri 'self'",
|
||||
"font-src 'self' data:",
|
||||
"connect-src 'self'",
|
||||
sprintf("img-src data: 'strict-dynamic' 'self' *.tile.openstreetmap.org %s", $trackingScriptSrc),
|
||||
"manifest-src 'self'",
|
||||
];
|
||||
|
||||
$route = $request->route();
|
||||
@ -79,7 +79,7 @@ class SecureHeaders
|
||||
"camera 'none'",
|
||||
"magnetometer 'none'",
|
||||
"gyroscope 'none'",
|
||||
"speaker 'none'",
|
||||
//"speaker 'none'",
|
||||
//"vibrate 'none'",
|
||||
"fullscreen 'self'",
|
||||
"payment 'none'",
|
||||
|
@ -22,8 +22,8 @@
|
||||
<div class="form-group">
|
||||
<div v-if="visible" class="text-xs d-none d-lg-block d-xl-block">
|
||||
<span v-if="0 === this.index">{{ $t('firefly.' + this.direction + '_account') }}</span>
|
||||
<span v-if="this.index > 0" class="text-warning">{{ $t('firefly.first_split_overrules_' + this.direction) }}</span><br>
|
||||
<span>{{ selectedAccount }}</span>
|
||||
<span v-if="this.index > 0" class="text-warning">{{ $t('firefly.first_split_overrules_' + this.direction) }}</span>
|
||||
<!--<br><span>{{ selectedAccount }}</span> -->
|
||||
</div>
|
||||
<div v-if="!visible" class="text-xs d-none d-lg-block d-xl-block">
|
||||
|
||||
|
@ -33,6 +33,7 @@
|
||||
autocomplete="off"
|
||||
name="amount[]"
|
||||
type="number"
|
||||
step="any"
|
||||
>
|
||||
</div>
|
||||
<span v-if="errors.length > 0">
|
||||
|
2
public/v2/js/transactions/create.js
vendored
2
public/v2/js/transactions/create.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
public/v2/js/transactions/edit.js
vendored
2
public/v2/js/transactions/edit.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@
|
||||
<div id="accounts_create"></div>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
// this is a terrible hack.
|
||||
var previousURL = '{{ Session.get('accounts.create.uri') }}';
|
||||
</script>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<div id="accounts_delete"></div>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
// this is a terrible hack.
|
||||
var previousURL = '{{ Session.get('accounts.delete.uri') }}';
|
||||
</script>
|
||||
|
@ -15,7 +15,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
// this is a terrible hack.
|
||||
var previousURL = '{{ previousUri }}';
|
||||
</script>
|
||||
|
@ -15,7 +15,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
// this is a terrible hack.
|
||||
var previousURL = '{{ previousUri }}';
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user