Remove goup javascript script

This commit is contained in:
DariusIII
2024-10-20 17:47:51 +02:00
parent 88c85c484f
commit b6f3cd4984
6 changed files with 58 additions and 17 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Policies;
use Spatie\Csp\Directive;
use Spatie\Csp\Policies\Basic;
class CustomCsp extends Basic
{
/**
* Create a new policy instance.
*/
public function configure()
{
parent::configure();
$this->addDirective(Directive::SCRIPT, 'self')
->addDirective(Directive::STYLE, 'self')
->addNonceForDirective(Directive::SCRIPT)
->addNonceForDirective(Directive::STYLE);
}
}
+34
View File
@@ -0,0 +1,34 @@
<?php
return [
/*
* A policy will determine which CSP headers will be set. A valid CSP policy is
* any class that extends `Spatie\Csp\Policies\Policy`
*/
'policy' => Spatie\Csp\Policies\Basic::class,
/*
* This policy which will be put in report only mode. This is great for testing out
* a new policy or changes to existing csp policy without breaking anything.
*/
'report_only_policy' => '',
/*
* All violations against the policy will be reported to this url.
* A great service you could use for this is https://report-uri.com/
*
* You can override this setting by calling `reportTo` on your policy.
*/
'report_uri' => env('CSP_REPORT_URI', ''),
/*
* Headers will only be added if this setting is set to true.
*/
'enabled' => env('CSP_ENABLED', true),
/*
* The class responsible for generating the nonces used in inline tags and headers.
*/
'nonce_generator' => Spatie\Csp\Nonce\RandomString::class,
];
+1 -2
View File
@@ -1,6 +1,6 @@
{
"private": true,
"type": "module",
"type": "commonjs",
"scripts": {
"dev": "npm run development",
"development": "mix",
@@ -49,7 +49,6 @@
"flexboxgrid2": "^7.2.1",
"icheck": "^1.0.2",
"jquery-colorbox": "^1.6.4",
"jquery-goup": "^1.1.3",
"jquery-migrate": "3.5.2",
"laravel-echo": "^1.16.1",
"laravel-vite-plugin": "^1.0",
File diff suppressed because one or more lines are too long
@@ -93,19 +93,6 @@
<!-- jQuery 3.3.0 -->
{{Html::script("{{asset("/assets/js/all-js.js")}}")}}
<script>
jQuery(document).ready(function () {
jQuery.goup({
containerColor: "#8bc5c5",
arrowColor: "#fdf8f8",
bottomOffset: 100,
goupSpeed: "normal",
title: "Scroll to top"
});
});
</script>
{{Form::open(['id' => 'frm-logout', 'route' => 'logout'])}}
{{Form::close()}}
-1
View File
@@ -61,7 +61,6 @@ mix
'node_modules/jquery-colorbox/jquery.colorbox-min.js',
'node_modules/pace-js/pace.min.js',
'node_modules/icheck/icheck.min.js',
'node_modules/jquery-goup/dist/jquery.goup.min.js',
'resources/assets/js/utils-admin.js',
'resources/assets/js/custom.js',
'resources/assets/js/functions.js'