1 Commits

Author SHA1 Message Date
Sebastian 6cfe6a3835 chore(deps): update dependency vuetify to v4.1.12
JS Unit Tests / test (pull_request) Successful in 53s
Build Test / test (pull_request) Successful in 55s
PHP Integration Tests / Integration Tests (pull_request) Failing after 1m32s
PHP Unit Tests / test (pull_request) Successful in 1m52s
2026-08-31 03:02:31 +00:00
3 changed files with 16 additions and 12 deletions
+4 -1
View File
@@ -989,7 +989,10 @@ class DefaultController extends ControllerAbstract {
isset($data['variant']) && is_string($data['variant']) ? $data['variant'] : 'inline', isset($data['variant']) && is_string($data['variant']) ? $data['variant'] : 'inline',
); );
if ($preview === null) { if ($preview === null) {
return new Response('', Response::HTTP_NO_CONTENT); return new JsonResponse([
'status' => 'error',
'error' => ['code' => 404, 'message' => 'Preview unavailable'],
], Response::HTTP_NOT_FOUND);
} }
return new StreamedResponse($preview->resource->stream(), Response::HTTP_OK, [ return new StreamedResponse($preview->resource->stream(), Response::HTTP_OK, [
+12 -8
View File
@@ -2,8 +2,7 @@
namespace KTXM\MailManager; namespace KTXM\MailManager;
use KTXF\Module\Configuration\BrowserModuleContextInterface; use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract; use KTXF\Module\ModuleInstanceAbstract;
/** /**
@@ -12,7 +11,7 @@ use KTXF\Module\ModuleInstanceAbstract;
* Provides unified mail sending and management across multiple providers * Provides unified mail sending and management across multiple providers
* with context-aware service discovery and queued delivery. * with context-aware service discovery and queued delivery.
*/ */
class Module extends ModuleInstanceAbstract class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
{ {
public function __construct() public function __construct()
@@ -59,10 +58,15 @@ class Module extends ModuleInstanceAbstract
]; ];
} }
public function configure(ModuleContextInterface $context): void public function registerBI(): array {
{ return [
if ($context instanceof BrowserModuleContextInterface) { 'handle' => $this->handle(),
$context->registerModule($this, 'MailManager', 'static/module.mjs'); 'namespace' => 'MailManager',
} 'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
} }
} }
-3
View File
@@ -199,9 +199,6 @@ export async function transceiveBlob<TRequest>(operation: string, data: TRequest
await fetchWrapper.post(API_URL, request, { await fetchWrapper.post(API_URL, request, {
headers: { 'Accept': '*/*' }, headers: { 'Accept': '*/*' },
onStream: async (response: Response) => { onStream: async (response: Response) => {
if (response.status === 204) {
throw new Error(`[${operation}] Preview unavailable`);
}
blob = await response.blob(); blob = await response.blob();
}, },
}); });