feat: add Sessy as one-click service (#7851)
This commit is contained in:
commit
48afa97ab9
2 changed files with 44 additions and 0 deletions
|
|
@ -1044,6 +1044,31 @@ public function extraFields()
|
|||
|
||||
$fields->put('Strapi', $data->toArray());
|
||||
break;
|
||||
case $image->contains('marckohlbrugge/sessy'):
|
||||
$data = collect([]);
|
||||
$username = $this->environment_variables()->where('key', 'SERVICE_USER_SESSY')->first();
|
||||
$password = $this->environment_variables()->where('key', 'SERVICE_PASSWORD_SESSY')->first();
|
||||
if ($username) {
|
||||
$data = $data->merge([
|
||||
'HTTP Auth Username' => [
|
||||
'key' => data_get($username, 'key'),
|
||||
'value' => data_get($username, 'value'),
|
||||
'rules' => 'required',
|
||||
],
|
||||
]);
|
||||
}
|
||||
if ($password) {
|
||||
$data = $data->merge([
|
||||
'HTTP Auth Password' => [
|
||||
'key' => data_get($password, 'key'),
|
||||
'value' => data_get($password, 'value'),
|
||||
'rules' => 'required',
|
||||
'isPassword' => true,
|
||||
],
|
||||
]);
|
||||
}
|
||||
$fields->put('Sessy', $data->toArray());
|
||||
break;
|
||||
default:
|
||||
$data = collect([]);
|
||||
$admin_user = $this->environment_variables()->where('key', 'SERVICE_USER_ADMIN')->first();
|
||||
|
|
|
|||
19
public/svgs/sessy.svg
Normal file
19
public/svgs/sessy.svg
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="100%" height="100%" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<rect id="Artboard1" x="0" y="0" width="500" height="500" style="fill:none;"/>
|
||||
<clipPath id="_clip1">
|
||||
<rect id="Artboard11" serif:id="Artboard1" x="0" y="0" width="500" height="500"/>
|
||||
</clipPath>
|
||||
<g clip-path="url(#_clip1)">
|
||||
<g transform="matrix(5,0,0,5,-1500,-151.76)">
|
||||
<path d="M400,50.352L400,110.352C400,121.39 391.038,130.352 380,130.352L320,130.352C308.962,130.352 300,121.39 300,110.352L300,50.352C300,39.314 308.962,30.352 320,30.352L380,30.352C391.038,30.352 400,39.314 400,50.352Z" style="fill:white;"/>
|
||||
</g>
|
||||
<g transform="matrix(-2.48048e-17,0.405093,0.405093,2.48048e-17,87.963,87.963)">
|
||||
<path d="M317.5,550C317.5,678.32 421.68,782.5 550,782.5C678.32,782.5 782.5,678.32 782.5,550L782.5,334.069L800.73,324.171L827.271,302.271L849.171,275.73L865.79,245.12L876.339,211.168L880,175L876.339,138.832L865.79,104.88L849.171,74.27L827.271,47.729L800.73,25.829L770.12,9.21L736.168,-1.339L700,-5L663.832,-1.339L629.88,9.21L599.27,25.829L572.729,47.729L550.829,74.27L534.21,104.88L523.661,138.832L520,175L523.661,211.168L534.21,245.12L550.829,275.73L572.729,302.271L599.27,324.171L617.5,334.069L617.5,550C617.5,587.254 587.254,617.5 550,617.5C512.746,617.5 482.5,587.254 482.5,550L482.5,250C482.5,121.68 378.32,17.5 250,17.5C121.68,17.5 17.5,121.68 17.5,250L17.5,465.931L-0.73,475.829L-27.271,497.729L-49.171,524.27L-65.79,554.88L-76.339,588.832L-80,625L-76.339,661.168L-65.79,695.12L-49.171,725.73L-27.271,752.271L-0.73,774.171L29.88,790.79L63.832,801.339L100,805L136.168,801.339L170.12,790.79L200.73,774.171L227.271,752.271L249.171,725.73L265.79,695.12L276.339,661.168L280,625L276.339,588.832L265.79,554.88L249.171,524.27L227.271,497.729L200.73,475.829L182.5,465.931L182.5,250C182.5,212.746 212.746,182.5 250,182.5C287.254,182.5 317.5,212.746 317.5,250L317.5,550ZM642.203,191.152C640.767,186.012 640,180.595 640,175C640,141.885 666.885,115 700,115C733.115,115 760,141.885 760,175C760,180.595 759.233,186.012 757.797,191.152C750.737,216.432 727.52,235 700,235C672.48,235 649.263,216.432 642.203,191.152ZM69.5,676.67C51.847,666.22 40,646.983 40,625C40,591.885 66.885,565 100,565C133.115,565 160,591.885 160,625C160,646.983 148.153,666.22 130.5,676.67C121.56,681.962 111.132,685 100,685C88.868,685 78.44,681.962 69.5,676.67Z" style="fill:url(#_Linear2);"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(960,0,0,810,-80,400)"><stop offset="0" style="stop-color:rgb(255,0,176);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(255,152,44);stop-opacity:1"/></linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3 KiB |
Loading…
Reference in a new issue