Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
2ed43d23
Commit
2ed43d23
authored
Jul 15, 2022
by
Dominik Hebeler
Browse files
fixed csp
parent
dc51a754
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
metager/app/Http/Controllers/HumanVerification.php
View file @
2ed43d23
...
...
@@ -175,7 +175,9 @@ class HumanVerification extends Controller
->
with
(
'title'
,
"Bot Overview"
)
->
with
(
'ip'
,
$request
->
ip
())
->
with
(
'userList'
,
$human_verification
->
getUserList
())
->
with
(
'user'
,
$human_verification
->
getUser
());
->
with
(
'user'
,
$human_verification
->
getUser
())
->
with
(
'css'
,
[
mix
(
'css/admin/bot/index.css'
)])
->
with
(
'js'
,
[
mix
(
'js/admin/bot.js'
)]);
}
public
function
botOverviewChange
(
Request
$request
)
...
...
metager/resources/views/humanverification/botOverview.blade.php
View file @
2ed43d23
...
...
@@ -3,15 +3,6 @@
@
section
(
'title'
,
$title
)
@
section
(
'content'
)
<
style
>
.
user
{
width
:
max
-
content
;
padding
:
1
rem
;
border
:
1
px
solid
white
;
background
-
color
:
#4a4a4a;
border
-
radius
:
5
px
;
}
</
style
>
<
div
class
=
"user"
>
<
table
>
<
tbody
>
...
...
@@ -31,7 +22,7 @@
<
td
>
Unused
Resultpages
</
td
>
<
td
>
<
form
action
=
""
method
=
"post"
>
<
input
onchange
=
"this.form.submit()"
type
=
"number"
name
=
"unusedResultPages"
id
=
"unusedResultPages"
value
=
"
{
{$user["unusedResultPages"]}
}
"
>
<
input
type
=
"number"
name
=
"unusedResultPages"
id
=
"unusedResultPages"
value
=
"
{
{$user["unusedResultPages"]}
}
"
>
</
form
>
</
td
>
</
tr
>
...
...
@@ -39,7 +30,7 @@
<
td
>
Whitelist
</
td
>
<
td
>
<
form
action
=
""
method
=
"post"
>
<
select
name
=
"whitelist"
id
=
"locked"
onchange
=
"this.form.submit()"
>
<
select
name
=
"whitelist"
id
=
"locked"
>
<
option
value
=
"1"
@
if
(
$user
[
"whitelist"
])
selected
@
endif
>
True
</
option
>
<
option
value
=
"0"
@
if
(
!
$user
[
"whitelist"
])
selected
@
endif
>
False
</
option
>
</
select
>
...
...
@@ -50,7 +41,7 @@
<
td
>
Locked
</
td
>
<
td
>
<
form
action
=
""
method
=
"post"
>
<
select
name
=
"locked"
id
=
"locked"
onchange
=
"this.form.submit()"
>
<
select
name
=
"locked"
id
=
"locked"
>
<
option
value
=
"1"
@
if
(
$user
[
"locked"
])
selected
@
endif
>
True
</
option
>
<
option
value
=
"0"
@
if
(
!
$user
[
"locked"
])
selected
@
endif
>
False
</
option
>
</
select
>
...
...
metager/webpack.mix.js
View file @
2ed43d23
...
...
@@ -31,6 +31,7 @@ mix
.
less
(
"
resources/less/metager/pages/count/style.less
"
,
"
public/css/count/style.css
"
)
.
less
(
"
resources/less/metager/pages/admin/affilliates/index.less
"
,
"
public/css/admin/affilliates/index.css
"
)
.
less
(
"
resources/less/metager/pages/admin/affilliates/index-dark.less
"
,
"
public/css/admin/affilliates/index-dark.css
"
)
.
less
(
"
resources/less/metager/pages/admin/bot/index.less
"
,
"
public/css/admin/bot/index.css
"
)
.
less
(
"
resources/less/metager/pages/asso/style-dark.less
"
,
"
public/css/asso/dark.css
"
)
.
less
(
"
resources/less/metager/pages/asso/style.less
"
,
"
public/css/asso/style.css
"
)
.
less
(
"
resources/less/metager/pages/spende/danke.less
"
,
"
public/css/spende/danke.css
"
)
...
...
@@ -68,6 +69,7 @@ mix
.
js
(
"
resources/js/scriptJoinPage.js
"
,
"
public/js/scriptJoinPage.js
"
)
.
js
(
"
resources/js/admin/affilliates/index.js
"
,
"
public/js/admin/affilliates.js
"
)
.
js
(
"
resources/js/admin/spam.js
"
,
"
public/js/admin/spam.js
"
)
.
js
(
"
resources/js/admin/bot.js
"
,
"
public/js/admin/bot.js
"
)
.
polyfill
({
enabled
:
true
,
useBuiltIns
:
"
usage
"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment