]> _ Git - fluidbook-toolbox.git/commitdiff
wait #4173 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Jan 2021 11:25:31 +0000 (12:25 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Jan 2021 11:25:31 +0000 (12:25 +0100)
app/Fields/HostingFolder.php [new file with mode: 0644]
composer.lock
resources/views/tools/securehosting.blade.php [new file with mode: 0644]
resources/views/tools/sidebar.blade.php [new file with mode: 0644]
resources/views/vendor/backpack/base/inc/sidebar_content.blade.php

diff --git a/app/Fields/HostingFolder.php b/app/Fields/HostingFolder.php
new file mode 100644 (file)
index 0000000..5dcb495
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+
+namespace App\Fields;
+
+
+use Cubist\Backpack\Magic\Fields\FolderTree;
+
+
+class HostingFolder extends FolderTree
+{
+    protected $_root = '/mnt/sshfs/fluidbook/data/fluidbook/hosting/';
+    protected $_prefix = '/hosting/';
+}
index 750f725386b54b99de663dee8ba844dce3cbf150..9244b2510b81bf5ac0f83ef73cdfd1b54f241be8 100644 (file)
         },
         {
             "name": "barryvdh/laravel-debugbar",
-            "version": "v3.5.1",
+            "version": "v3.5.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/barryvdh/laravel-debugbar.git",
-                "reference": "233c10688f4c1a6e66ed2ef123038b1363d1bedc"
+                "reference": "cae0a8d1cb89b0f0522f65e60465e16d738e069b"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/233c10688f4c1a6e66ed2ef123038b1363d1bedc",
-                "reference": "233c10688f4c1a6e66ed2ef123038b1363d1bedc",
+                "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/cae0a8d1cb89b0f0522f65e60465e16d738e069b",
+                "reference": "cae0a8d1cb89b0f0522f65e60465e16d738e069b",
                 "shasum": ""
             },
             "require": {
                 "symfony/finder": "^4.3|^5"
             },
             "require-dev": {
+                "mockery/mockery": "^1.3.3",
                 "orchestra/testbench-dusk": "^4|^5|^6",
                 "phpunit/phpunit": "^8.5|^9.0",
                 "squizlabs/php_codesniffer": "^3.5"
             ],
             "support": {
                 "issues": "https://github.com/barryvdh/laravel-debugbar/issues",
-                "source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.5.1"
+                "source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.5.2"
             },
             "funding": [
                 {
                     "type": "github"
                 }
             ],
-            "time": "2020-09-07T19:32:39+00:00"
+            "time": "2021-01-06T14:21:44+00:00"
         },
         {
             "name": "brick/math",
             "source": {
                 "type": "git",
                 "url": "git://git.cubedesigners.com/cubist_cms-back.git",
-                "reference": "f96bd42c176f31821dc890d3dbb93016ad2ab25e"
+                "reference": "8d2dbf51f928cb6f6e3aa55a65d273d289c1702e"
             },
             "dist": {
                 "type": "tar",
-                "url": "https://composer.cubedesigners.com/dist/cubist/cms-back/cubist-cms-back-dev-master-c74f39.tar",
-                "reference": "f96bd42c176f31821dc890d3dbb93016ad2ab25e",
-                "shasum": "dba4441fe2b72d3ce501fc3c47ad7893446f891a"
+                "url": "https://composer.cubedesigners.com/dist/cubist/cms-back/cubist-cms-back-dev-master-fc65ea.tar",
+                "reference": "8d2dbf51f928cb6f6e3aa55a65d273d289c1702e",
+                "shasum": "a213a89c08ea4c4e978280a352e5f7ec86ea9be3"
             },
             "require": {
                 "backpack/backupmanager": "^2.0",
                 }
             ],
             "description": "Cubist Backpack extension",
-            "time": "2020-12-16T10:28:07+00:00"
+            "time": "2021-01-07T14:52:46+00:00"
         },
         {
             "name": "cubist/cms-front",
             "source": {
                 "type": "git",
                 "url": "git://git.cubedesigners.com/cubist_util.git",
-                "reference": "c1bda8314a5b31984b140aa685d4997dff1fb857"
+                "reference": "f738491f23c2437c3d106ee2ffaba18822657b27"
             },
             "dist": {
                 "type": "tar",
-                "url": "https://composer.cubedesigners.com/dist/cubist/util/cubist-util-dev-master-a0e5ab.tar",
-                "reference": "c1bda8314a5b31984b140aa685d4997dff1fb857",
-                "shasum": "ace49ce898434c68d43306884d8ad8ac90fae2b4"
+                "url": "https://composer.cubedesigners.com/dist/cubist/util/cubist-util-dev-master-dd3670.tar",
+                "reference": "f738491f23c2437c3d106ee2ffaba18822657b27",
+                "shasum": "144accb531f0d5d9726f42eac01a207fee4758a4"
             },
             "require": {
                 "cubist/net": "dev-master",
                 }
             ],
             "description": "Utilities class",
-            "time": "2020-12-30T20:03:43+00:00"
+            "time": "2020-12-30T20:15:48+00:00"
         },
         {
             "name": "cviebrock/eloquent-sluggable",
             },
             "time": "2020-02-14T23:51:21+00:00"
         },
+        {
+            "name": "ezyang/htmlpurifier",
+            "version": "v4.13.0",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/ezyang/htmlpurifier.git",
+                "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
+                "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75",
+                "shasum": ""
+            },
+            "require": {
+                "php": ">=5.2"
+            },
+            "require-dev": {
+                "simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd"
+            },
+            "type": "library",
+            "autoload": {
+                "psr-0": {
+                    "HTMLPurifier": "library/"
+                },
+                "files": [
+                    "library/HTMLPurifier.composer.php"
+                ],
+                "exclude-from-classmap": [
+                    "/library/HTMLPurifier/Language/"
+                ]
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "LGPL-2.1-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "Edward Z. Yang",
+                    "email": "admin@htmlpurifier.org",
+                    "homepage": "http://ezyang.com"
+                }
+            ],
+            "description": "Standards compliant HTML filter written in PHP",
+            "homepage": "http://htmlpurifier.org/",
+            "keywords": [
+                "html"
+            ],
+            "support": {
+                "issues": "https://github.com/ezyang/htmlpurifier/issues",
+                "source": "https://github.com/ezyang/htmlpurifier/tree/master"
+            },
+            "time": "2020-06-29T00:56:53+00:00"
+        },
         {
             "name": "fideloper/proxy",
             "version": "4.4.1",
         },
         {
             "name": "phpoffice/phpspreadsheet",
-            "version": "1.15.0",
+            "version": "1.16.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/PHPOffice/PhpSpreadsheet.git",
-                "reference": "a8e8068b31b8119e1daa5b1eb5715a3a8ea8305f"
+                "reference": "76d4323b85129d0c368149c831a07a3e258b2b50"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/a8e8068b31b8119e1daa5b1eb5715a3a8ea8305f",
-                "reference": "a8e8068b31b8119e1daa5b1eb5715a3a8ea8305f",
+                "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/76d4323b85129d0c368149c831a07a3e258b2b50",
+                "reference": "76d4323b85129d0c368149c831a07a3e258b2b50",
                 "shasum": ""
             },
             "require": {
                 "ext-xmlwriter": "*",
                 "ext-zip": "*",
                 "ext-zlib": "*",
+                "ezyang/htmlpurifier": "^4.13",
                 "maennchen/zipstream-php": "^2.1",
-                "markbaker/complex": "^1.5|^2.0",
-                "markbaker/matrix": "^1.2|^2.0",
-                "php": "^7.2|^8.0",
+                "markbaker/complex": "^1.5||^2.0",
+                "markbaker/matrix": "^1.2||^2.0",
+                "php": "^7.2||^8.0",
                 "psr/http-client": "^1.0",
                 "psr/http-factory": "^1.0",
                 "psr/simple-cache": "^1.0"
                 "jpgraph/jpgraph": "^4.0",
                 "mpdf/mpdf": "^8.0",
                 "phpcompatibility/php-compatibility": "^9.3",
-                "phpunit/phpunit": "^8.5|^9.3",
+                "phpunit/phpunit": "^8.5||^9.3",
                 "squizlabs/php_codesniffer": "^3.5",
                 "tecnickcom/tcpdf": "^6.3"
             },
             ],
             "support": {
                 "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues",
-                "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.15.0"
+                "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.16.0"
             },
-            "time": "2020-10-11T13:20:59+00:00"
+            "time": "2020-12-31T18:03:49+00:00"
         },
         {
             "name": "phpoption/phpoption",
diff --git a/resources/views/tools/securehosting.blade.php b/resources/views/tools/securehosting.blade.php
new file mode 100644 (file)
index 0000000..e7d332b
--- /dev/null
@@ -0,0 +1,27 @@
+@php
+    $form=new \Cubist\Backpack\Magic\Form();
+    $form->setTitle(__('Sécuriser un dossier hosting'));
+    $form->addField(['name'=>'folder',
+    'label'=>__('Dossier à sécuriser'),
+    'type'=>'Text',
+    'translatable'=>false]);
+
+@endphp
+
+@extends(backpack_view('blank'))
+
+@section('content')
+    {!! $form !!}
+@endsection
+
+@push('after_scripts')
+    <script>
+        (function ($) {
+            $(function () {
+                $(document).on('change', '#pdf2svg-field', function () {
+                    $("#pdf2svg-form").submit();
+                });
+            })
+        })(jQuery);
+    </script>
+@endpush
diff --git a/resources/views/tools/sidebar.blade.php b/resources/views/tools/sidebar.blade.php
new file mode 100644 (file)
index 0000000..40933f6
--- /dev/null
@@ -0,0 +1,13 @@
+@can('tools')
+    <li class='nav-item nav-dropdown open'><a class='nav-link nav-dropdown-toggle' href='#'><i
+                class='nav-icon la la-tools'></i>{{__('Outils')}}</a>
+        <ul class='nav-dropdown-items'>
+            <li class='nav-item'><a class='nav-link' href='{{ backpack_url('tools/pdf2svg') }}'><i
+                        class='nav-icon la la-images'></i>
+                    <span>{{__('PDF to SVG')}}</span></a></li>
+{{--            <li class='nav-item'><a class='nav-link' href='{{ backpack_url('tools/securehosting') }}'><i--}}
+{{--                        class='nav-icon la la-lock'></i>--}}
+{{--                    <span>{{__('Sécuriser hosting')}}</span></a></li>--}}
+        </ul>
+    </li>
+@endcan
index 8d257729b8802943f50f99f58c8e54498abbe1ac..efc0de2d6252c341b678e9b82a96a3ed97538d81 100644 (file)
         </ul>
     </li>
 @endcanany
-<li class='nav-item nav-dropdown open'><a class='nav-link nav-dropdown-toggle' href='#'><i
-            class='nav-icon la la-tools'></i>{{__('Outils')}}</a>
-    <ul class='nav-dropdown-items'>
-        <li class='nav-item'><a class='nav-link' href='{{ backpack_url('tools/pdf2svg') }}'><i
-                    class='nav-icon la la-images'></i>
-                <span>{{__('PDF to SVG')}}</span></a></li>
-    </ul>
-</li>
+@include('tools.sidebar')
 @canany(['users:read','company:read','managerolesandpersmissions'])
     <li class='nav-item nav-dropdown open'><a class='nav-link nav-dropdown-toggle' href='#'><i
                 class='nav-icon la la-group'></i>Clients</a>