Merge branch 'trunk'
This commit is contained in:
commit
074cd676d7
11 changed files with 4307 additions and 14470 deletions
|
|
@ -18,7 +18,9 @@ class XssSanitizer
|
||||||
$inputs = $request->all();
|
$inputs = $request->all();
|
||||||
array_walk_recursive($inputs, function (&$input, $name) use ($params) {
|
array_walk_recursive($inputs, function (&$input, $name) use ($params) {
|
||||||
if (in_array($name, $params)) {
|
if (in_array($name, $params)) {
|
||||||
|
// dd($input);
|
||||||
$input = clean($input);
|
$input = clean($input);
|
||||||
|
// dd($input);
|
||||||
} else {
|
} else {
|
||||||
$input = strip_tags($input);
|
$input = strip_tags($input);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class AppServiceProvider extends ServiceProvider
|
||||||
request()->getClientIp();
|
request()->getClientIp();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// LOCAL FORCE (eg: for Carbon)
|
// LOCAL FORCE eg: for Carbon
|
||||||
setlocale(LC_ALL, \sprintf(
|
setlocale(LC_ALL, \sprintf(
|
||||||
'%s_%s.UTF-8',
|
'%s_%s.UTF-8',
|
||||||
config('app.locale'),
|
config('app.locale'),
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
"fruitcake/laravel-cors": "^2.0",
|
"fruitcake/laravel-cors": "^2.0",
|
||||||
"guzzlehttp/guzzle": "^7.0.1",
|
"guzzlehttp/guzzle": "^7.0.1",
|
||||||
"htmlmin/htmlmin": "^8.0",
|
"htmlmin/htmlmin": "^8.0",
|
||||||
"kwaadpepper/crud-policies": "^0.1.16",
|
"kwaadpepper/crud-policies": "^0.2.0",
|
||||||
"kwaadpepper/enum": "^2.0",
|
"kwaadpepper/enum": "^2.0",
|
||||||
"kwaadpepper/exception-handler": "^0.0.1",
|
"kwaadpepper/exception-handler": "^0.0.1",
|
||||||
"kwaadpepper/image-resizer": "^0.0.3",
|
"kwaadpepper/image-resizer": "^0.0.3",
|
||||||
|
|
|
||||||
991
composer.lock
generated
991
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -9,6 +9,17 @@ return [
|
||||||
*/
|
*/
|
||||||
'urlPrefix' => 'crud-policies',
|
'urlPrefix' => 'crud-policies',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* You shall protect routes
|
||||||
|
* These are applied to crud routes directly as middlewares
|
||||||
|
*/
|
||||||
|
'middlewares' => [
|
||||||
|
\App\Http\Middleware\EncryptCookies::class,
|
||||||
|
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
|
||||||
|
\Illuminate\Session\Middleware\StartSession::class,
|
||||||
|
'auth:web'
|
||||||
|
],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The public path where are stored
|
* The public path where are stored
|
||||||
* crud-policies asset files
|
* crud-policies asset files
|
||||||
|
|
|
||||||
|
|
@ -25,24 +25,23 @@ return [
|
||||||
'cacheFileMode' => 0755,
|
'cacheFileMode' => 0755,
|
||||||
'settings' => [
|
'settings' => [
|
||||||
'default' => [
|
'default' => [
|
||||||
|
'HTML.SafeIframe' => true, // For iframes
|
||||||
|
'URI.SafeIframeRegexp' => "%^(http://|https://|//)(vimeo.com)%",
|
||||||
'HTML.Doctype' => 'HTML 4.01 Transitional',
|
'HTML.Doctype' => 'HTML 4.01 Transitional',
|
||||||
'HTML.Allowed' => 'div,b,strong,i,em,u,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src]',
|
'HTML.Allowed' => 'h1[style],h2[style],h3[style],h4[style],h5[style],h6[style],figure[class|style],oembed[url],div[style],b,strong,i,em,u,a[href|title],ul[style],ol[style],dl[style],li,p[style],br,span[style|class],img[width|height|alt|src|style|class],iframe[src|width|height|class|frameborder|style],table[style],thead,tbody,th,tr,td,hr',
|
||||||
'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align',
|
'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align,list-style-type,float,width,height',
|
||||||
'AutoFormat.AutoParagraph' => false,
|
'AutoFormat.AutoParagraph' => false,
|
||||||
'AutoFormat.RemoveEmpty' => true,
|
'AutoFormat.RemoveEmpty' => false,
|
||||||
'AutoFormat.RemoveEmpty.RemoveNbsp' => true,
|
'AutoFormat.RemoveEmpty.RemoveNbsp' => false,
|
||||||
],
|
|
||||||
'test' => [
|
|
||||||
'Attr.EnableID' => 'true',
|
|
||||||
],
|
],
|
||||||
"youtube" => [
|
"youtube" => [
|
||||||
"HTML.SafeIframe" => 'true',
|
"HTML.SafeIframe" => 'true',
|
||||||
"URI.SafeIframeRegexp" => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/)%",
|
"URI.SafeIframeRegexp" => "%^(http://|https://|//)(www.youtube.com/embed/|player.vimeo.com/video/|vimeo.com/)%",
|
||||||
],
|
],
|
||||||
'custom_definition' => [
|
'custom_definition' => [
|
||||||
'id' => 'html5-definitions',
|
'id' => 'html5-definitions',
|
||||||
'rev' => 1,
|
'rev' => 1,
|
||||||
'debug' => false,
|
'debug' => true,
|
||||||
'elements' => [
|
'elements' => [
|
||||||
// http://developers.whatwg.org/sections.html
|
// http://developers.whatwg.org/sections.html
|
||||||
['section', 'Block', 'Flow', 'Common'],
|
['section', 'Block', 'Flow', 'Common'],
|
||||||
|
|
@ -59,6 +58,7 @@ return [
|
||||||
// http://developers.whatwg.org/grouping-content.html
|
// http://developers.whatwg.org/grouping-content.html
|
||||||
['figure', 'Block', 'Optional: (figcaption, Flow) | (Flow, figcaption) | Flow', 'Common'],
|
['figure', 'Block', 'Optional: (figcaption, Flow) | (Flow, figcaption) | Flow', 'Common'],
|
||||||
['figcaption', 'Inline', 'Flow', 'Common'],
|
['figcaption', 'Inline', 'Flow', 'Common'],
|
||||||
|
['oembed', 'Inline', 'Flow', 'Common'],
|
||||||
|
|
||||||
// http://developers.whatwg.org/the-video-element.html#the-video-element
|
// http://developers.whatwg.org/the-video-element.html#the-video-element
|
||||||
['video', 'Block', 'Optional: (source, Flow) | (Flow, source) | Flow', 'Common', [
|
['video', 'Block', 'Optional: (source, Flow) | (Flow, source) | Flow', 'Common', [
|
||||||
|
|
@ -95,13 +95,24 @@ return [
|
||||||
['tr', 'width', 'Text'],
|
['tr', 'width', 'Text'],
|
||||||
['tr', 'height', 'Text'],
|
['tr', 'height', 'Text'],
|
||||||
['tr', 'border', 'Text'],
|
['tr', 'border', 'Text'],
|
||||||
|
['figure', 'class', 'Text'],
|
||||||
|
['figure', 'style', 'Text'],
|
||||||
|
['oembed', 'url', 'Text'],
|
||||||
|
['span', 'style', 'Text'],
|
||||||
|
['img', 'style', 'Text'],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'custom_attributes' => [
|
'custom_attributes' => [
|
||||||
['a', 'target', 'Enum#_blank,_self,_target,_top'],
|
['a', 'target', 'Enum#_blank,_self,_target,_top'],
|
||||||
|
['ol', 'style', 'Text'],
|
||||||
|
['figure', 'style', 'Text'],
|
||||||
|
['img', 'style', 'Text'],
|
||||||
|
['span', 'style', 'Text'],
|
||||||
|
['oembed', 'url', 'Text'],
|
||||||
],
|
],
|
||||||
'custom_elements' => [
|
'custom_elements' => [
|
||||||
['u', 'Inline', 'Inline', 'Common'],
|
['u', 'Inline', 'Inline', 'Common'],
|
||||||
|
['oembed', 'Inline', 'Inline', 'Common'],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
17713
package-lock.json
generated
17713
package-lock.json
generated
File diff suppressed because it is too large
Load diff
14
resources/js/vuejs.js
vendored
14
resources/js/vuejs.js
vendored
|
|
@ -22,8 +22,12 @@ vues.keys().map(key =>
|
||||||
);
|
);
|
||||||
const vuejsModules = [];
|
const vuejsModules = [];
|
||||||
|
|
||||||
document.getElementsByClassName('portsalaries-vuejs').forEach(element => {
|
let ptsVues = document.getElementsByClassName('portsalaries-vuejs')
|
||||||
vuejsModules.push(new __PORTSALARIEVue({
|
|
||||||
el: element
|
if (ptsVues.length) {
|
||||||
}));
|
ptsVues.forEach(element => {
|
||||||
});
|
vuejsModules.push(new __PORTSALARIEVue({
|
||||||
|
el: element
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
||||||
6
resources/sass/back.scss
vendored
6
resources/sass/back.scss
vendored
|
|
@ -1,3 +1,9 @@
|
||||||
@import "_import";
|
@import "_import";
|
||||||
|
|
||||||
@import "layouts/backend/top_nav";
|
@import "layouts/backend/top_nav";
|
||||||
|
|
||||||
|
// ckeditor fix with to navbar
|
||||||
|
.ck .ck-sticky-panel .ck-sticky-panel__content_sticky {
|
||||||
|
position: fixed !important;
|
||||||
|
top: 3.6rem !important;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,9 @@
|
||||||
<h1 class="titleNormal">{{ $flash->title }}</h1>
|
<h1 class="titleNormal">{{ $flash->title }}</h1>
|
||||||
<h1 class="date">{{ $flash->created_at->format('d/m/Y') }}</h1>
|
<h1 class="date">{{ $flash->created_at->format('d/m/Y') }}</h1>
|
||||||
</div>
|
</div>
|
||||||
<p class="container-news__article">{!! $flash->content !!}</p>
|
<div class="container-news__article">
|
||||||
|
<div class="ck-content">{!! clean($flash->content) !!}</div>
|
||||||
|
</div>
|
||||||
<div class="btn-center">
|
<div class="btn-center">
|
||||||
<div class="btn-center-secondary"><a href="{{ route('fo.flash.index') }}">Retour</a> </div>
|
<div class="btn-center-secondary"><a href="{{ route('fo.flash.index') }}">Retour</a> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -35,4 +37,4 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
@include('layouts.frontend.head')
|
@include('layouts.frontend.head')
|
||||||
@stack('styles')
|
@stack('styles')
|
||||||
|
@crudPoliciesCSS()
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@include("layouts.frontend.header")
|
@include("layouts.frontend.header")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue