Compare commits
3 Commits
455f21a663
...
3c0c607948
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c0c607948 | |||
| 93aa1b0f24 | |||
| cbcf2e5acb |
@@ -130,10 +130,7 @@ class TransferController extends ControllerAbstract
|
||||
$variant,
|
||||
);
|
||||
if ($preview === null) {
|
||||
return new JsonResponse([
|
||||
'status' => 'error',
|
||||
'error' => ['code' => 404, 'message' => 'Preview unavailable'],
|
||||
], Response::HTTP_NOT_FOUND);
|
||||
return new Response('', Response::HTTP_NO_CONTENT);
|
||||
}
|
||||
|
||||
$response = new StreamedResponse($preview->resource->stream());
|
||||
|
||||
+8
-12
@@ -2,13 +2,14 @@
|
||||
|
||||
namespace KTXM\DocumentsManager;
|
||||
|
||||
use KTXF\Module\ModuleBrowserInterface;
|
||||
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
||||
use KTXF\Module\Configuration\ModuleContextInterface;
|
||||
use KTXF\Module\ModuleInstanceAbstract;
|
||||
|
||||
/**
|
||||
* File Manager Module
|
||||
*/
|
||||
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
|
||||
class Module extends ModuleInstanceAbstract
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
@@ -50,16 +51,11 @@ class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
|
||||
];
|
||||
}
|
||||
|
||||
public function registerBI(): array {
|
||||
return [
|
||||
'handle' => $this->handle(),
|
||||
'namespace' => 'DocumentsManager',
|
||||
'version' => $this->version(),
|
||||
'label' => $this->label(),
|
||||
'author' => $this->author(),
|
||||
'description' => $this->description(),
|
||||
'boot' => 'static/module.mjs',
|
||||
];
|
||||
public function configure(ModuleContextInterface $context): void
|
||||
{
|
||||
if ($context instanceof BrowserModuleContextInterface) {
|
||||
$context->registerModule($this, 'DocumentsManager', 'static/module.mjs');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Generated
+3
-3
@@ -1833,9 +1833,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/pinia": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/pinia/-/pinia-4.0.2.tgz",
|
||||
"integrity": "sha512-yKVVA7bSj5oRZFp/Ab9wLlmyb5gPUYEiIm4ryiWTe/xe7PtkRdMVOp1X1ggvq0c6Uj7Q0Du1HnV2mtAwM0Ks1g==",
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/pinia/-/pinia-4.0.3.tgz",
|
||||
"integrity": "sha512-XMQqpvjgG7LMqVhhFUzKLT4KEbsYbfZZ0CZU9PgdFm1O2VKBmIkykL8+SfNhOaT7sR0wT6BEgKT0YNDYWgmVRA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"nostics": "^1.1.4"
|
||||
|
||||
Reference in New Issue
Block a user