Compare commits
18 Commits
822265794d
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f39dd75ae5 | |||
| b60341f62d | |||
| 4cd249d019 | |||
| 152a8141d0 | |||
| 5aa95fa329 | |||
| f0b0f87ce2 | |||
| 75a462ad18 | |||
| 8af08d8936 | |||
| edc1aece13 | |||
| b81070338d | |||
| ab24fe2b54 | |||
| 3073cf9f75 | |||
| 8cf4993107 | |||
| 5bda58fbb9 | |||
| b6bc83e432 | |||
| 02f3662f40 | |||
| 2dd56e0662 | |||
| d449a71e80 |
@@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace KTXM\ProviderJmapc\Providers\Mail;
|
namespace KTXM\ProviderJmapc\Providers\Mail;
|
||||||
|
|
||||||
|
use KTXF\Mail\Object\Address;
|
||||||
use KTXF\Mail\Provider\ProviderBaseInterface;
|
use KTXF\Mail\Provider\ProviderBaseInterface;
|
||||||
use KTXF\Mail\Provider\ProviderServiceDiscoverInterface;
|
use KTXF\Mail\Provider\ProviderServiceDiscoverInterface;
|
||||||
use KTXF\Mail\Provider\ProviderServiceMutateInterface;
|
use KTXF\Mail\Provider\ProviderServiceMutateInterface;
|
||||||
@@ -142,9 +143,66 @@ class Provider implements ProviderBaseInterface, ProviderServiceMutateInterface,
|
|||||||
}
|
}
|
||||||
|
|
||||||
$created = $this->serviceStore->create($tenantId, $userId, $service);
|
$created = $this->serviceStore->create($tenantId, $userId, $service);
|
||||||
|
$this->serviceIdentitiesSync($tenantId, $userId, (new Service())->fromStore($created));
|
||||||
return (string) $created['sid'];
|
return (string) $created['sid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fetches sending identities from the JMAP server and overwrites
|
||||||
|
* primaryAddress/secondaryAddresses on the service with them.
|
||||||
|
*/
|
||||||
|
private function serviceIdentitiesSync(string $tenantId, string $userId, Service $service): void
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
$client = RemoteService::freshClient($service);
|
||||||
|
$identities = RemoteService::mailService($client)->identityFetch();
|
||||||
|
|
||||||
|
// A JMAP server may expose multiple identities sharing the same
|
||||||
|
// address (e.g. distinct signatures/display names for one
|
||||||
|
// mailbox) — collapse those down to one entry per address,
|
||||||
|
// keeping the first label seen.
|
||||||
|
$addresses = [];
|
||||||
|
foreach ($identities as $identity) {
|
||||||
|
if ($identity->address() === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$key = strtolower($identity->address());
|
||||||
|
if (!isset($addresses[$key])) {
|
||||||
|
$addresses[$key] = Address::fromArray(['address' => $identity->address(), 'label' => $identity->name()]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$addresses = array_values($addresses);
|
||||||
|
|
||||||
|
if (empty($addresses)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$currentAddress = strtolower($service->getPrimaryAddress()->getAddress());
|
||||||
|
$primaryIndex = 0;
|
||||||
|
foreach ($addresses as $index => $address) {
|
||||||
|
if (strtolower($address->getAddress()) === $currentAddress) {
|
||||||
|
$primaryIndex = $index;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$secondary = [];
|
||||||
|
foreach ($addresses as $index => $address) {
|
||||||
|
if ($index !== $primaryIndex) {
|
||||||
|
$secondary[] = $address;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$service->setPrimaryAddress($addresses[$primaryIndex]);
|
||||||
|
$service->setSecondaryAddresses($secondary);
|
||||||
|
|
||||||
|
$this->serviceStore->modify($tenantId, $userId, $service);
|
||||||
|
} catch (\Throwable) {
|
||||||
|
// Server may not support urn:ietf:params:jmap:submission, or have
|
||||||
|
// no identities configured — fall back to what the user entered.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function serviceModify(string $tenantId, string $userId, ResourceServiceMutateInterface $service): string
|
public function serviceModify(string $tenantId, string $userId, ResourceServiceMutateInterface $service): string
|
||||||
{
|
{
|
||||||
if (!($service instanceof Service)) {
|
if (!($service instanceof Service)) {
|
||||||
@@ -152,6 +210,7 @@ class Provider implements ProviderBaseInterface, ProviderServiceMutateInterface,
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->serviceStore->modify($tenantId, $userId, $service);
|
$this->serviceStore->modify($tenantId, $userId, $service);
|
||||||
|
$this->serviceIdentitiesSync($tenantId, $userId, $service);
|
||||||
return (string) $service->identifier();
|
return (string) $service->identifier();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -206,8 +206,9 @@ class Service implements ServiceBaseInterface, ServiceMutableInterface, ServiceC
|
|||||||
if (isset($data[self::PROPERTY_IDENTITY])) {
|
if (isset($data[self::PROPERTY_IDENTITY])) {
|
||||||
$this->setIdentity($this->freshIdentity(null, $data[self::PROPERTY_IDENTITY]));
|
$this->setIdentity($this->freshIdentity(null, $data[self::PROPERTY_IDENTITY]));
|
||||||
}
|
}
|
||||||
if (isset($data[self::PROPERTY_PRIMARY_ADDRESS]) && is_string($data[self::PROPERTY_PRIMARY_ADDRESS])) {
|
if (isset($data[self::PROPERTY_PRIMARY_ADDRESS])) {
|
||||||
$this->setPrimaryAddress(new Address($data[self::PROPERTY_PRIMARY_ADDRESS]));
|
$value = $data[self::PROPERTY_PRIMARY_ADDRESS];
|
||||||
|
$this->setPrimaryAddress(is_array($value) ? Address::fromArray($value) : new Address((string)$value));
|
||||||
}
|
}
|
||||||
if (isset($data[self::PROPERTY_SECONDARY_ADDRESSES]) && is_array($data[self::PROPERTY_SECONDARY_ADDRESSES])) {
|
if (isset($data[self::PROPERTY_SECONDARY_ADDRESSES]) && is_array($data[self::PROPERTY_SECONDARY_ADDRESSES])) {
|
||||||
$this->setSecondaryAddresses(array_map(
|
$this->setSecondaryAddresses(array_map(
|
||||||
@@ -483,17 +484,34 @@ class Service implements ServiceBaseInterface, ServiceMutableInterface, ServiceC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// we need to determine if the folder being deleted is already in the trash
|
if ($deleteMode === 'soft') {
|
||||||
if (str_starts_with((string) $target->collection(), (string) $deleteTargetIdentifier?->collection())) {
|
$targetMailbox = $this->mailService->collectionFetch((string) $target->collection());
|
||||||
// if so, we should hard delete instead of moving to avoid duplicates in the trash
|
if ($targetMailbox === null) {
|
||||||
$deleteMode = 'hard';
|
throw new \RuntimeException('Collection not found for delete operation');
|
||||||
|
}
|
||||||
|
|
||||||
|
$targetIdentifier = (string) $target->collection();
|
||||||
|
$trashIdentifier = (string) $deleteTargetIdentifier->collection();
|
||||||
|
$parentIdentifier = isset($targetMailbox['parentId'])
|
||||||
|
? (string) $targetMailbox['parentId']
|
||||||
|
: null;
|
||||||
|
|
||||||
|
// JMAP mailbox IDs are opaque, so containment must be determined
|
||||||
|
// from parentId rather than by comparing ID prefixes.
|
||||||
|
if ($targetIdentifier === $trashIdentifier || $parentIdentifier === $trashIdentifier) {
|
||||||
|
$deleteMode = 'hard';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = match ($deleteMode) {
|
if ($deleteMode === 'soft') {
|
||||||
'soft' => $this->collectionMove($deleteTargetIdentifier, $target),
|
return $this->collectionMove($deleteTargetIdentifier, $target);
|
||||||
'hard' => $this->mailService->collectionDestroy($target->collection(), $force),
|
}
|
||||||
};
|
|
||||||
return $result;
|
if ($this->mailService->collectionDestroy((string) $target->collection(), $force) === null) {
|
||||||
|
throw new \RuntimeException("Failed to delete collection: {$target->collection()}");
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function collectionMove(CollectionIdentifier $target, CollectionIdentifier $source): CollectionBaseInterface
|
public function collectionMove(CollectionIdentifier $target, CollectionIdentifier $source): CollectionBaseInterface
|
||||||
@@ -879,7 +897,31 @@ class Service implements ServiceBaseInterface, ServiceMutableInterface, ServiceC
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$nativeMessage = $this->normalizeMessageProperties($message)->toJmap();
|
$nativeProperties = $this->normalizeMessageProperties($message);
|
||||||
|
$attachments = $nativeProperties->getAttachments();
|
||||||
|
foreach ($attachments as $attachment) {
|
||||||
|
if ($attachment->getBlobId() !== null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$content = $attachment->getContent();
|
||||||
|
if ($content === null) {
|
||||||
|
throw new \InvalidArgumentException(sprintf(
|
||||||
|
'Attachment "%s" has neither content nor a JMAP blob identifier',
|
||||||
|
$attachment->getName() ?? 'unnamed',
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
$attachment->setBlobId($this->mailService->blobDeposit(
|
||||||
|
$attachment->getType() ?? 'application/octet-stream',
|
||||||
|
$content,
|
||||||
|
));
|
||||||
|
}
|
||||||
|
if ($attachments !== []) {
|
||||||
|
$nativeProperties->setAttachments(...$attachments);
|
||||||
|
}
|
||||||
|
|
||||||
|
$nativeMessage = $nativeProperties->toJmap();
|
||||||
$transportId = $this->mailService->entitySubmitFresh($identityId, $nativeMessage, $preSendTarget->collection(), $postSentTarget->collection());
|
$transportId = $this->mailService->entitySubmitFresh($identityId, $nativeMessage, $preSendTarget->collection(), $postSentTarget->collection());
|
||||||
|
|
||||||
return new EntitySubmitResult(
|
return new EntitySubmitResult(
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class Provider implements IProviderBase, IProviderServiceMutate
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Note: This simplified interface doesn't pass tenantId
|
// Note: This simplified interface doesn't pass tenantId
|
||||||
// Will need to get it from SessionTenant in actual implementation
|
// Will need to get it from TenantContextInterface in actual implementation
|
||||||
throw new \RuntimeException('Use Mail Provider interface for service creation');
|
throw new \RuntimeException('Use Mail Provider interface for service creation');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -912,23 +912,44 @@ class RemoteMailService {
|
|||||||
*
|
*
|
||||||
* @since Release 2.0.0
|
* @since Release 2.0.0
|
||||||
*/
|
*/
|
||||||
public function entitySubmitFresh(string $identityId, array $message, string $preSendTarget, string $postSentTarget): string {
|
public function entitySubmitFresh(string $identityId, array $data, string $preSendTarget, string $postSentTarget): string {
|
||||||
|
|
||||||
$mail = new MailParametersRequest();
|
$message = new MailParametersRequest();
|
||||||
$mail->parametersRaw($message);
|
$message->parametersRaw($data);
|
||||||
|
|
||||||
$messageCreateId = 'm_' . uniqid();
|
$messageId = 'm_' . uniqid();
|
||||||
$submissionCreateId = 's_' . uniqid();
|
$submissionId = 's_' . uniqid();
|
||||||
|
|
||||||
$r0 = new MailSet($this->dataAccount, null, $this->resourceNamespace, $this->resourceEntityLabel);
|
$r0 = new MailSet($this->dataAccount, null, $this->resourceNamespace, $this->resourceEntityLabel);
|
||||||
$createdMessage = $r0->create($messageCreateId, $mail);
|
$m0 = $r0->create($messageId, $message);
|
||||||
$createdMessage->in($preSendTarget);
|
$m0->in($preSendTarget);
|
||||||
|
$m0->draft(true);
|
||||||
|
$m0->seen(true);
|
||||||
|
|
||||||
$r1 = new MailSubmissionSet($this->dataAccount, null, $this->resourceNamespace, $this->resourceEntityLabel);
|
$r1 = new MailSubmissionSet($this->dataAccount, null, $this->resourceNamespace, $this->resourceEntityLabel);
|
||||||
$submission = $r1->create($submissionCreateId);
|
$r1->completionUpdate('#' . $messageId, [
|
||||||
$submission->identity($identityId);
|
'mailboxIds/' . $postSentTarget => true,
|
||||||
$submission->message('#' . $messageCreateId);
|
'mailboxIds/' . $preSendTarget => null,
|
||||||
|
'keywords/$draft' => null,
|
||||||
|
]);
|
||||||
|
$s0 = $r1->create($submissionId);
|
||||||
|
$s0->identity($identityId);
|
||||||
|
$s0->message('#' . $messageId);
|
||||||
|
|
||||||
$bundle = $this->dataStore->perform([$r0, $r1]);
|
$bundle = $this->dataStore->perform([$r0, $r1]);
|
||||||
|
$messageResponse = $bundle->response(0);
|
||||||
|
if ($messageResponse instanceof ResponseException) {
|
||||||
|
throw new Exception($messageResponse->type() . ': ' . $messageResponse->description(), 1);
|
||||||
|
}
|
||||||
|
if (method_exists($messageResponse, 'createFailure')) {
|
||||||
|
$failure = $messageResponse->createFailure($messageId);
|
||||||
|
if (is_array($failure)) {
|
||||||
|
$type = $failure['type'] ?? 'unknownError';
|
||||||
|
$description = $failure['description'] ?? 'Email creation failed';
|
||||||
|
throw new Exception($type . ': ' . $description, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$response = $bundle->response(1);
|
$response = $bundle->response(1);
|
||||||
if ($response instanceof ResponseException) {
|
if ($response instanceof ResponseException) {
|
||||||
if ($response->type() === 'unknownMethod') {
|
if ($response->type() === 'unknownMethod') {
|
||||||
@@ -937,7 +958,19 @@ class RemoteMailService {
|
|||||||
throw new Exception($response->type() . ': ' . $response->description(), 1);
|
throw new Exception($response->type() . ': ' . $response->description(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->extractSubmissionIdentifier($response, $submissionCreateId);
|
return $this->extractSubmissionIdentifier($response, $submissionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Upload attachment content and return its JMAP blob identifier.
|
||||||
|
*/
|
||||||
|
public function blobDeposit(string $type, string $data): string {
|
||||||
|
$response = json_decode($this->dataStore->upload($this->dataAccount, $type, $data), true);
|
||||||
|
if (!is_array($response) || !isset($response['blobId']) || !is_string($response['blobId']) || $response['blobId'] === '') {
|
||||||
|
throw new Exception('JMAP attachment upload did not return a blob identifier', 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $response['blobId'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -953,18 +986,18 @@ class RemoteMailService {
|
|||||||
$requests = [];
|
$requests = [];
|
||||||
|
|
||||||
if ($patch !== null && $patch !== []) {
|
if ($patch !== null && $patch !== []) {
|
||||||
$draftMutation = new MailParametersRequest();
|
$m0 = new MailParametersRequest();
|
||||||
$draftMutation->parametersRaw($patch);
|
$m0->parametersRaw($patch);
|
||||||
$r0 = new MailSet($this->dataAccount, null, $this->resourceNamespace, $this->resourceEntityLabel);
|
$r0 = new MailSet($this->dataAccount, null, $this->resourceNamespace, $this->resourceEntityLabel);
|
||||||
$r0->update($draftId, $draftMutation);
|
$r0->update($draftId, $m0);
|
||||||
$requests[] = $r0;
|
$requests[] = $r0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$submissionCreateId = 's_' . uniqid();
|
$submissionId = 's_' . uniqid();
|
||||||
$r1 = new MailSubmissionSet($this->dataAccount, null, $this->resourceNamespace, $this->resourceEntityLabel);
|
$r1 = new MailSubmissionSet($this->dataAccount, null, $this->resourceNamespace, $this->resourceEntityLabel);
|
||||||
$submission = $r1->create($submissionCreateId);
|
$s0 = $r1->create($submissionId);
|
||||||
$submission->identity($identityId);
|
$s0->identity($identityId);
|
||||||
$submission->message($draftId);
|
$s0->message($draftId);
|
||||||
$requests[] = $r1;
|
$requests[] = $r1;
|
||||||
|
|
||||||
$bundle = $this->dataStore->perform($requests);
|
$bundle = $this->dataStore->perform($requests);
|
||||||
@@ -977,19 +1010,7 @@ class RemoteMailService {
|
|||||||
throw new Exception($response->type() . ': ' . $response->description(), 1);
|
throw new Exception($response->type() . ': ' . $response->description(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->extractSubmissionIdentifier($response, $submissionCreateId);
|
return $this->extractSubmissionIdentifier($response, $submissionId);
|
||||||
}
|
|
||||||
|
|
||||||
private function collectionByRole(string $role): ?string {
|
|
||||||
$filter = $this->collectionListFilter();
|
|
||||||
$filter->condition('role', $role);
|
|
||||||
|
|
||||||
$collections = $this->collectionList(null, $filter, null);
|
|
||||||
if ($collections === []) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (string)array_key_first($collections);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function extractSubmissionIdentifier(object $response, string $createId): string {
|
private function extractSubmissionIdentifier(object $response, string $createId): string {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ use GuzzleHttp\Client as HttpClient;
|
|||||||
use GuzzleHttp\Psr7\HttpFactory;
|
use GuzzleHttp\Psr7\HttpFactory;
|
||||||
use JmapClient\Authentication\Basic;
|
use JmapClient\Authentication\Basic;
|
||||||
use JmapClient\Client as JmapClient;
|
use JmapClient\Client as JmapClient;
|
||||||
use KTXC\Server;
|
use KTXF\Security\Crypto;
|
||||||
use KTXF\Resource\Provider\ResourceServiceIdentityBasic;
|
use KTXF\Resource\Provider\ResourceServiceIdentityBasic;
|
||||||
use KTXF\Resource\Provider\ResourceServiceLocationUri;
|
use KTXF\Resource\Provider\ResourceServiceLocationUri;
|
||||||
use KTXM\ProviderJmapc\Providers\Mail\Service as MailService;
|
use KTXM\ProviderJmapc\Providers\Mail\Service as MailService;
|
||||||
@@ -73,10 +73,13 @@ class RemoteService {
|
|||||||
}
|
}
|
||||||
// debugging
|
// debugging
|
||||||
if ($service->getDebug()) {
|
if ($service->getDebug()) {
|
||||||
$logDir = Server::getInstance()?->logDir();
|
$logDirectory = dirname(__DIR__, 5) . '/var/logs/jmap';
|
||||||
$logDir .= '/jmap/' . $service->identifier() . '.json';
|
if (!is_dir($logDirectory) && !mkdir($logDirectory, 0775, true) && !is_dir($logDirectory)) {
|
||||||
|
throw new \RuntimeException(sprintf('Unable to create JMAP log directory: %s', $logDirectory));
|
||||||
|
}
|
||||||
|
$logFile = $logDirectory . '/' . $service->identifier() . '.json';
|
||||||
$client->configureTransportLogState(true);
|
$client->configureTransportLogState(true);
|
||||||
$client->configureTransportLogLocation($logDir);
|
$client->configureTransportLogLocation($logFile);
|
||||||
}
|
}
|
||||||
// return
|
// return
|
||||||
return $client;
|
return $client;
|
||||||
@@ -200,7 +203,7 @@ class RemoteService {
|
|||||||
return $service;
|
return $service;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function cookieStoreRetrieve(mixed $id): ?array {
|
public static function cookieStoreRetrieve(mixed $id, Crypto $crypto): ?array {
|
||||||
|
|
||||||
$file = sys_get_temp_dir() . DIRECTORY_SEPARATOR . (string)$id . '.jmapc';
|
$file = sys_get_temp_dir() . DIRECTORY_SEPARATOR . (string)$id . '.jmapc';
|
||||||
|
|
||||||
@@ -209,7 +212,6 @@ class RemoteService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$data = file_get_contents($file);
|
$data = file_get_contents($file);
|
||||||
$crypto = Server::getInstance()->container()->get(\KTXF\Security\Crypto::class);
|
|
||||||
$data = $crypto->decrypt($data);
|
$data = $crypto->decrypt($data);
|
||||||
|
|
||||||
if (!empty($data)) {
|
if (!empty($data)) {
|
||||||
@@ -220,13 +222,12 @@ class RemoteService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function cookieStoreDeposit(mixed $id, array $value): void {
|
public static function cookieStoreDeposit(mixed $id, array $value, Crypto $crypto): void {
|
||||||
|
|
||||||
if (empty($value)) {
|
if (empty($value)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$crypto = Server::getInstance()->container()->get(\KTXF\Security\Crypto::class);
|
|
||||||
$data = $crypto->encrypt(json_encode($value));
|
$data = $crypto->encrypt(json_encode($value));
|
||||||
|
|
||||||
$file = sys_get_temp_dir() . DIRECTORY_SEPARATOR . (string)$id . '.jmapc';
|
$file = sys_get_temp_dir() . DIRECTORY_SEPARATOR . (string)$id . '.jmapc';
|
||||||
|
|||||||
Generated
+132
-152
@@ -9,7 +9,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pinia": "^3.0.0",
|
"pinia": "^4.0.0",
|
||||||
"vue": "^3.5.18",
|
"vue": "^3.5.18",
|
||||||
"vue-router": "^5.0.0",
|
"vue-router": "^5.0.0",
|
||||||
"vuetify": "^4.0.0"
|
"vuetify": "^4.0.0"
|
||||||
@@ -71,11 +71,13 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@babel/generator": {
|
"node_modules/@babel/generator": {
|
||||||
"version": "8.0.0-rc.5",
|
"version": "8.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-8.0.0.tgz",
|
||||||
|
"integrity": "sha512-NT9NrVwJsbSV6Y2FSstWa71EETOnzrjkL5/wX3D2mYHtKM+qvqB1DvR4D0Setb/gDBsHzRICifwEWMO8CnTF6g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/parser": "^8.0.0-rc.5",
|
"@babel/parser": "^8.0.0",
|
||||||
"@babel/types": "^8.0.0-rc.5",
|
"@babel/types": "^8.0.0",
|
||||||
"@jridgewell/gen-mapping": "^0.3.12",
|
"@jridgewell/gen-mapping": "^0.3.12",
|
||||||
"@jridgewell/trace-mapping": "^0.3.28",
|
"@jridgewell/trace-mapping": "^0.3.28",
|
||||||
"@types/jsesc": "^2.5.0",
|
"@types/jsesc": "^2.5.0",
|
||||||
@@ -86,24 +88,30 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/generator/node_modules/@babel/helper-string-parser": {
|
"node_modules/@babel/generator/node_modules/@babel/helper-string-parser": {
|
||||||
"version": "8.0.0-rc.5",
|
"version": "8.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.0.0.tgz",
|
||||||
|
"integrity": "sha512-6mJgmFFFIIO82vvoLt9XtRC7/TkzXfts1t/SpRX4IHSzMgqoPYCWesVu1udUPUWioAE/2fcG6WuI8zrkE1gwrg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^22.18.0 || >=24.11.0"
|
"node": "^22.18.0 || >=24.11.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/generator/node_modules/@babel/helper-validator-identifier": {
|
"node_modules/@babel/generator/node_modules/@babel/helper-validator-identifier": {
|
||||||
"version": "8.0.0-rc.5",
|
"version": "8.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.4.tgz",
|
||||||
|
"integrity": "sha512-4wFaiLd0bVo4cIoTXI3zKI038NIWE/cr3jvBjejOVYVxV/m8Ltav1USiGzG1fmS5J2RhgEOgXNNK46cRPnRsrg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^22.18.0 || >=24.11.0"
|
"node": "^22.18.0 || >=24.11.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/generator/node_modules/@babel/parser": {
|
"node_modules/@babel/generator/node_modules/@babel/parser": {
|
||||||
"version": "8.0.0-rc.5",
|
"version": "8.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-8.0.4.tgz",
|
||||||
|
"integrity": "sha512-srpptsAkEbbNIC/q8nT7o+m6CQe8CJUTV/t7MYc9NnWlgYVtHOb7JH6SorxMhN0kuRJjVqXbKClG6xSbPtzz+g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/types": "^8.0.0-rc.5"
|
"@babel/types": "^8.0.4"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"parser": "bin/babel-parser.js"
|
"parser": "bin/babel-parser.js"
|
||||||
@@ -113,11 +121,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/generator/node_modules/@babel/types": {
|
"node_modules/@babel/generator/node_modules/@babel/types": {
|
||||||
"version": "8.0.0-rc.5",
|
"version": "8.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/types/-/types-8.0.4.tgz",
|
||||||
|
"integrity": "sha512-eY+Yn3dCqTGmyiq2QRU66lA5FL8lqqqvecHt0fF3uHONIa7ToYsaCiWV8lOKqAs0Rb2SjixiKFROngnulPtt2g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-string-parser": "^8.0.0-rc.5",
|
"@babel/helper-string-parser": "^8.0.0",
|
||||||
"@babel/helper-validator-identifier": "^8.0.0-rc.5"
|
"@babel/helper-validator-identifier": "^8.0.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^22.18.0 || >=24.11.0"
|
"node": "^22.18.0 || >=24.11.0"
|
||||||
@@ -538,9 +548,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -557,9 +564,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"musl"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -576,9 +580,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"ppc64"
|
"ppc64"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -595,9 +596,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"s390x"
|
"s390x"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -612,9 +610,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -629,9 +624,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"musl"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -751,7 +743,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@vitejs/plugin-vue": {
|
"node_modules/@vitejs/plugin-vue": {
|
||||||
"version": "6.0.7",
|
"version": "6.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.8.tgz",
|
||||||
|
"integrity": "sha512-0ZjgOg7oO6farnNGup7yvoM/YXZV84OZxHAwtflItNa/6zzQyVb5LNxyea3FEKEX2XlagIKzrlH7wwxkKgtiew==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -945,7 +939,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue-macros/common": {
|
"node_modules/@vue-macros/common": {
|
||||||
"version": "3.1.2",
|
"version": "3.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@vue-macros/common/-/common-3.1.4.tgz",
|
||||||
|
"integrity": "sha512-/5Fv+6DgIcM9ajY05ZmKBv+LMX1M9A0X+IUwDRVdt67ciw8OV9bvG2r34p3RiEadlsQybjhKPRKNXDC8Bp23cw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/compiler-sfc": "^3.5.22",
|
"@vue/compiler-sfc": "^3.5.22",
|
||||||
@@ -1012,52 +1008,42 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/devtools-api": {
|
"node_modules/@vue/devtools-api": {
|
||||||
"version": "8.1.2",
|
"version": "8.1.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-8.1.5.tgz",
|
||||||
|
"integrity": "sha512-YJipMVAKe5wT5CWf5kTYCaNV7NMNjFVxJkIkJaJ4W/nCxEBzlZzrOsYKeCymdCrFZmBS/+wTWFoUs3Jf/Q6XSQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/devtools-kit": "^8.1.2"
|
"@vue/devtools-kit": "^8.1.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/devtools-api/node_modules/@vue/devtools-kit": {
|
"node_modules/@vue/devtools-api/node_modules/@vue/devtools-kit": {
|
||||||
"version": "8.1.2",
|
"version": "8.1.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-8.1.5.tgz",
|
||||||
|
"integrity": "sha512-FcSAxsi4eWuXLCB7Rv9lj0aIVHHPNVQ2BazGf4RJTc2JCqb4BQg0hk87ZFhminCfl+mD5OUI0rX2cgyu4kJOGA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/devtools-shared": "^8.1.2",
|
"@vue/devtools-shared": "^8.1.5",
|
||||||
"birpc": "^2.6.1",
|
"birpc": "^2.6.1",
|
||||||
"hookable": "^5.5.3",
|
"hookable": "^5.5.3",
|
||||||
"perfect-debounce": "^2.0.0"
|
"perfect-debounce": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/devtools-api/node_modules/@vue/devtools-shared": {
|
"node_modules/@vue/devtools-api/node_modules/@vue/devtools-shared": {
|
||||||
"version": "8.1.2",
|
"version": "8.1.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-8.1.5.tgz",
|
||||||
|
"integrity": "sha512-mhT4zcPFhF+Xk1O4BfhhrbXzpmfqY03fS6xGpcllbQG7lDjhQf8pQHcTIhqQIYx1hfwtHmk/6jM96ele0UxPqQ==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@vue/devtools-api/node_modules/perfect-debounce": {
|
"node_modules/@vue/devtools-api/node_modules/perfect-debounce": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@vue/devtools-kit": {
|
|
||||||
"version": "7.7.9",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@vue/devtools-shared": "^7.7.9",
|
|
||||||
"birpc": "^2.3.0",
|
|
||||||
"hookable": "^5.5.3",
|
|
||||||
"mitt": "^3.0.1",
|
|
||||||
"perfect-debounce": "^1.0.0",
|
|
||||||
"speakingurl": "^14.0.1",
|
|
||||||
"superjson": "^2.2.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@vue/devtools-shared": {
|
|
||||||
"version": "7.7.9",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"rfdc": "^1.4.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@vue/language-core": {
|
"node_modules/@vue/language-core": {
|
||||||
"version": "3.3.7",
|
"version": "3.3.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-3.3.8.tgz",
|
||||||
|
"integrity": "sha512-ieGT8jJdhhy0mGzStZhsg/qPw5bQZJg5yF+3+XU6saf4sM7yo9ZXy3h+nCwrm2+b4qS/SypkNdR2jAF3uei9tA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -1337,19 +1323,6 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/copy-anything": {
|
|
||||||
"version": "4.0.5",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"is-what": "^5.2.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/mesqueeb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/cross-spawn": {
|
"node_modules/cross-spawn": {
|
||||||
"version": "7.0.6",
|
"version": "7.0.6",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@@ -1581,16 +1554,6 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/is-what": {
|
|
||||||
"version": "5.5.0",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/mesqueeb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/isexe": {
|
"node_modules/isexe": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@@ -1867,9 +1830,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1890,9 +1850,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"musl"
|
|
||||||
],
|
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1911,9 +1868,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"glibc"
|
|
||||||
],
|
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1932,9 +1886,6 @@
|
|||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"libc": [
|
|
||||||
"musl"
|
|
||||||
],
|
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
@@ -1989,7 +1940,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/local-pkg": {
|
"node_modules/local-pkg": {
|
||||||
"version": "1.1.2",
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mlly": "^1.7.4",
|
"mlly": "^1.7.4",
|
||||||
@@ -2082,10 +2035,6 @@
|
|||||||
"node": ">=16 || 14 >=14.17"
|
"node": ">=16 || 14 >=14.17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mitt": {
|
|
||||||
"version": "3.0.1",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/mlly": {
|
"node_modules/mlly": {
|
||||||
"version": "1.8.2",
|
"version": "1.8.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -2151,6 +2100,12 @@
|
|||||||
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
|
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/nostics": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/nostics/-/nostics-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-FGqEfhQjrvo1lL8KFifdTQiNwwQHJxC1jtYE1Rc54qF/jxONUNL+kC9gS1krX8Q65PgrQ5fCqH/I4NhWBvdSqg==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/obug": {
|
"node_modules/obug": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@@ -2224,10 +2179,6 @@
|
|||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/perfect-debounce": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/picocolors": {
|
"node_modules/picocolors": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
@@ -2243,31 +2194,30 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/pinia": {
|
"node_modules/pinia": {
|
||||||
"version": "3.0.4",
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/pinia/-/pinia-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-yKVVA7bSj5oRZFp/Ab9wLlmyb5gPUYEiIm4ryiWTe/xe7PtkRdMVOp1X1ggvq0c6Uj7Q0Du1HnV2mtAwM0Ks1g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/devtools-api": "^7.7.7"
|
"nostics": "^1.1.4"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/posva"
|
"url": "https://github.com/sponsors/posva"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": ">=4.5.0",
|
"@vue/devtools-api": "^8.1.5",
|
||||||
|
"typescript": ">=5.6.0",
|
||||||
"vue": "^3.5.11"
|
"vue": "^3.5.11"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
"@vue/devtools-api": {
|
||||||
|
"optional": false
|
||||||
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"optional": true
|
"optional": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/pinia/node_modules/@vue/devtools-api": {
|
|
||||||
"version": "7.7.9",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@vue/devtools-kit": "^7.7.9"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/pkg-types": {
|
"node_modules/pkg-types": {
|
||||||
"version": "2.3.1",
|
"version": "2.3.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -2349,10 +2299,6 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rfdc": {
|
|
||||||
"version": "1.4.1",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/rolldown": {
|
"node_modules/rolldown": {
|
||||||
"version": "1.1.5",
|
"version": "1.1.5",
|
||||||
"devOptional": true,
|
"devOptional": true,
|
||||||
@@ -2466,13 +2412,6 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/speakingurl": {
|
|
||||||
"version": "14.0.1",
|
|
||||||
"license": "BSD-3-Clause",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/stackback": {
|
"node_modules/stackback": {
|
||||||
"version": "0.0.2",
|
"version": "0.0.2",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@@ -2571,16 +2510,6 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/superjson": {
|
|
||||||
"version": "2.2.6",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"copy-anything": "^4"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=16"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/supports-color": {
|
"node_modules/supports-color": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@@ -2710,23 +2639,67 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/unplugin": {
|
"node_modules/unplugin": {
|
||||||
"version": "3.0.0",
|
"version": "3.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.3.0.tgz",
|
||||||
|
"integrity": "sha512-qa66K+crbfyE6JK10GjvbJeRrOsuC/JpbnHctfyp/i4oBTxWOzJfRZyDiOk1PtErMFRu8JhsU/wPvOdBNWe5Rg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jridgewell/remapping": "^2.3.5",
|
"@jridgewell/remapping": "^2.3.5",
|
||||||
"picomatch": "^4.0.3",
|
"picomatch": "^4.0.4",
|
||||||
"webpack-virtual-modules": "^0.6.2"
|
"webpack-virtual-modules": "^0.6.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^20.19.0 || >=22.12.0"
|
"node": "^20.19.0 || >=22.12.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@farmfe/core": "*",
|
||||||
|
"@rspack/core": "*",
|
||||||
|
"bun-types-no-globals": "*",
|
||||||
|
"esbuild": "*",
|
||||||
|
"rolldown": "*",
|
||||||
|
"rollup": "*",
|
||||||
|
"unloader": "*",
|
||||||
|
"vite": "*",
|
||||||
|
"webpack": "*"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@farmfe/core": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"@rspack/core": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"bun-types-no-globals": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"esbuild": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"rolldown": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"rollup": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"unloader": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"vite": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"webpack": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/unplugin-utils": {
|
"node_modules/unplugin-utils": {
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/unplugin-utils/-/unplugin-utils-0.3.2.tgz",
|
||||||
|
"integrity": "sha512-xVToRh2CTmLk2HnEG7ac4rl1MJTT3RFkpS8B++/SnB0kXvuaavD+n3m/vrzyWQOdJNSZQACnbz01pnppbwV5BA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pathe": "^2.0.3",
|
"pathe": "^2.0.3",
|
||||||
"picomatch": "^4.0.3"
|
"picomatch": "^4.0.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.19.0"
|
"node": ">=20.19.0"
|
||||||
@@ -2929,25 +2902,28 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/vue-router": {
|
"node_modules/vue-router": {
|
||||||
"version": "5.1.0",
|
"version": "5.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-5.2.0.tgz",
|
||||||
|
"integrity": "sha512-QAC5i0LEb1GLG0LXDQmHu8L7FX12j0KwU/JTKmLQUJMrn04gQdKP6Du+p0QwpHb3iy71vBlqnHQ8WAfOSAWhqw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/generator": "^8.0.0-rc.4",
|
"@babel/generator": "^8.0.0",
|
||||||
"@vue-macros/common": "^3.1.1",
|
"@vue-macros/common": "^3.1.3",
|
||||||
"@vue/devtools-api": "^8.1.2",
|
"@vue/devtools-api": "^8.1.5",
|
||||||
"ast-walker-scope": "^0.9.0",
|
"ast-walker-scope": "^0.9.0",
|
||||||
"chokidar": "^5.0.0",
|
"chokidar": "^5.0.0",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"local-pkg": "^1.1.2",
|
"local-pkg": "^1.2.1",
|
||||||
"magic-string": "^0.30.21",
|
"magic-string": "^0.30.21",
|
||||||
"mlly": "^1.8.2",
|
"mlly": "^1.8.2",
|
||||||
"muggle-string": "^0.4.1",
|
"muggle-string": "^0.4.1",
|
||||||
|
"nostics": "^1.1.4",
|
||||||
"pathe": "^2.0.3",
|
"pathe": "^2.0.3",
|
||||||
"picomatch": "^4.0.3",
|
"picomatch": "^4.0.5",
|
||||||
"scule": "^1.3.0",
|
"scule": "^1.3.0",
|
||||||
"tinyglobby": "^0.2.16",
|
"tinyglobby": "^0.2.17",
|
||||||
"unplugin": "^3.0.0",
|
"unplugin": "^3.3.0",
|
||||||
"unplugin-utils": "^0.3.1",
|
"unplugin-utils": "^0.3.2",
|
||||||
"yaml": "^2.9.0"
|
"yaml": "^2.9.0"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
@@ -2955,10 +2931,10 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@pinia/colada": ">=0.21.2",
|
"@pinia/colada": ">=0.21.2",
|
||||||
"@vue/compiler-sfc": "^3.5.34",
|
"@vue/compiler-sfc": "^3.5.34 || ^4.0.0",
|
||||||
"pinia": "^3.0.4",
|
"pinia": "^3.0.4 || ^4.0.2",
|
||||||
"vite": "^7.0.0 || ^8.0.0",
|
"vite": "^7.3.0 || ^8.0.0",
|
||||||
"vue": "^3.5.34"
|
"vue": "^3.5.34 || ^4.0.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@pinia/colada": {
|
"@pinia/colada": {
|
||||||
@@ -2976,12 +2952,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vue-tsc": {
|
"node_modules/vue-tsc": {
|
||||||
"version": "3.3.7",
|
"version": "3.3.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-3.3.8.tgz",
|
||||||
|
"integrity": "sha512-xXmYlVQpcwJDWyGlqbHrGVOl1h3UOsASymRibrHc+iy9j/UNnOrOn4u+fntHz4D6Cs74RtapeqVV6CzJeg+UlA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@volar/typescript": "2.4.28",
|
"@volar/typescript": "2.4.28",
|
||||||
"@vue/language-core": "3.3.7"
|
"@vue/language-core": "3.3.8"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"vue-tsc": "bin/vue-tsc.js"
|
"vue-tsc": "bin/vue-tsc.js"
|
||||||
@@ -2991,7 +2969,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vuetify": {
|
"node_modules/vuetify": {
|
||||||
"version": "4.1.2",
|
"version": "4.1.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-4.1.6.tgz",
|
||||||
|
"integrity": "sha512-VOsRTsNfs+FE4JXMONZkqX2yznSqC/FXG9/pgVVjsoqIjUvJg+CfFTuOlgyWVFrZYY+crk7LV9uaiN8bZREV/g==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "github",
|
"type": "github",
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ async function initiateOAuth() {
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
prepend-inner-icon="mdi-account"
|
prepend-inner-icon="mdi-account"
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
autocomplete="username"
|
autocomplete="off"
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
autocapitalize="none"
|
autocapitalize="none"
|
||||||
:rules="[rules.required]"
|
:rules="[rules.required]"
|
||||||
@@ -289,7 +289,7 @@ async function initiateOAuth() {
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
prepend-inner-icon="mdi-lock"
|
prepend-inner-icon="mdi-lock"
|
||||||
class="mb-4"
|
class="mb-4"
|
||||||
autocomplete="current-password"
|
autocomplete="new-password"
|
||||||
:rules="[rules.required]"
|
:rules="[rules.required]"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const settingGroups = [
|
|||||||
title: 'Addresses',
|
title: 'Addresses',
|
||||||
value: 'addresses' as const,
|
value: 'addresses' as const,
|
||||||
icon: 'mdi-at',
|
icon: 'mdi-at',
|
||||||
description: 'Configure the primary mailbox identity and any sender aliases exposed by this service.'
|
description: 'View the primary mailbox identity and sender aliases synced from the JMAP server.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Messages',
|
title: 'Messages',
|
||||||
@@ -71,7 +71,7 @@ watch(
|
|||||||
)
|
)
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
[deleteMode, deleteDestination, primaryAddress, secondaryAddresses],
|
[deleteMode, deleteDestination],
|
||||||
() => {
|
() => {
|
||||||
const nextService = props.service ?? new ServiceObject()
|
const nextService = props.service ?? new ServiceObject()
|
||||||
const nextAuxiliary = {
|
const nextAuxiliary = {
|
||||||
@@ -83,13 +83,9 @@ watch(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sameAuxiliary(nextService.auxiliary ?? {}, nextAuxiliary)) {
|
if (sameAuxiliary(nextService.auxiliary ?? {}, nextAuxiliary)) {
|
||||||
if (sameAddresses(nextService)) {
|
return
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nextService.primaryAddress = primaryAddress.value.empty ? null : primaryAddress.value
|
|
||||||
nextService.secondaryAddresses = dedupeAddresses(secondaryAddresses.value)
|
|
||||||
nextService.auxiliary = nextAuxiliary
|
nextService.auxiliary = nextAuxiliary
|
||||||
emit('update:service', nextService)
|
emit('update:service', nextService)
|
||||||
},
|
},
|
||||||
@@ -111,44 +107,10 @@ function normalizeDeleteDestination(value: string): string {
|
|||||||
return trimmedValue.length > 0 ? trimmedValue : 'Trash'
|
return trimmedValue.length > 0 ? trimmedValue : 'Trash'
|
||||||
}
|
}
|
||||||
|
|
||||||
function dedupeAddresses(entries: ServiceAddressObject[]): ServiceAddressObject[] {
|
|
||||||
const populated = entries.filter(entry => !entry.empty)
|
|
||||||
return populated.filter((entry, index) =>
|
|
||||||
populated.findIndex(candidate => candidate.matches(entry.address)) === index)
|
|
||||||
}
|
|
||||||
|
|
||||||
function addSecondaryAddress() {
|
|
||||||
secondaryAddresses.value.push(new ServiceAddressObject())
|
|
||||||
}
|
|
||||||
|
|
||||||
function removeSecondaryAddress(index: number) {
|
|
||||||
secondaryAddresses.value.splice(index, 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
function validAddress(value: string): boolean | string {
|
|
||||||
const trimmedValue = value.trim()
|
|
||||||
return trimmedValue.length === 0 || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(trimmedValue) || 'Invalid email address'
|
|
||||||
}
|
|
||||||
|
|
||||||
function sameAuxiliary(current: Record<string, any>, next: Record<string, any>): boolean {
|
function sameAuxiliary(current: Record<string, any>, next: Record<string, any>): boolean {
|
||||||
return (current.deleteMode === 'hard' ? 'hard' : 'soft') === next.deleteMode
|
return (current.deleteMode === 'hard' ? 'hard' : 'soft') === next.deleteMode
|
||||||
&& (current.deleteDestination ?? undefined) === (next.deleteDestination ?? undefined)
|
&& (current.deleteDestination ?? undefined) === (next.deleteDestination ?? undefined)
|
||||||
}
|
}
|
||||||
|
|
||||||
function sameAddresses(service: ServiceObject): boolean {
|
|
||||||
const nextPrimary = primaryAddress.value.empty ? null : primaryAddress.value
|
|
||||||
const nextSecondary = dedupeAddresses(secondaryAddresses.value)
|
|
||||||
return sameAddress(service.primaryAddress, nextPrimary)
|
|
||||||
&& service.secondaryAddresses.length === nextSecondary.length
|
|
||||||
&& service.secondaryAddresses.every((entry, index) => sameAddress(entry, nextSecondary[index]))
|
|
||||||
}
|
|
||||||
|
|
||||||
function sameAddress(current: ServiceAddressObject | null, next: ServiceAddressObject | null): boolean {
|
|
||||||
if (current === null || next === null) {
|
|
||||||
return current === next
|
|
||||||
}
|
|
||||||
return current.equals(next)
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -176,69 +138,57 @@ function sameAddress(current: ServiceAddressObject | null, next: ServiceAddressO
|
|||||||
<div class="jmap-settings-card">
|
<div class="jmap-settings-card">
|
||||||
<h3 class="text-h6 mb-2">Addresses</h3>
|
<h3 class="text-h6 mb-2">Addresses</h3>
|
||||||
<p class="text-body-2 text-medium-emphasis mb-6">
|
<p class="text-body-2 text-medium-emphasis mb-6">
|
||||||
Configure the primary mailbox identity and any additional sender aliases exposed by this service.
|
The primary mailbox identity and sender aliases are managed by the JMAP server and synced automatically.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="text-subtitle-2 mb-2">Primary Address</div>
|
<div class="text-subtitle-2 mb-2">Primary Address</div>
|
||||||
<div class="d-flex ga-2 mb-6">
|
<div class="d-flex ga-2 mb-6">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="primaryAddress.label"
|
:model-value="primaryAddress.label"
|
||||||
label="Display Name"
|
label="Display Name"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
density="compact"
|
density="compact"
|
||||||
hide-details="auto"
|
hide-details="auto"
|
||||||
|
readonly
|
||||||
/>
|
/>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="primaryAddress.address"
|
:model-value="primaryAddress.address"
|
||||||
label="Email Address"
|
label="Email Address"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
density="compact"
|
density="compact"
|
||||||
prepend-inner-icon="mdi-email-outline"
|
prepend-inner-icon="mdi-email-outline"
|
||||||
:rules="[validAddress]"
|
|
||||||
hide-details="auto"
|
hide-details="auto"
|
||||||
|
readonly
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-subtitle-2 mb-2">Secondary Addresses</div>
|
<div class="text-subtitle-2 mb-2">Secondary Addresses</div>
|
||||||
|
<p v-if="secondaryAddresses.length === 0" class="text-body-2 text-medium-emphasis">
|
||||||
|
No aliases reported by the server.
|
||||||
|
</p>
|
||||||
<div
|
<div
|
||||||
v-for="(entry, index) in secondaryAddresses"
|
v-for="(entry, index) in secondaryAddresses"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="d-flex ga-2 mb-2"
|
class="d-flex ga-2 mb-2"
|
||||||
>
|
>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="entry.label"
|
:model-value="entry.label"
|
||||||
label="Display Name"
|
label="Display Name"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
density="compact"
|
density="compact"
|
||||||
hide-details="auto"
|
hide-details="auto"
|
||||||
|
readonly
|
||||||
/>
|
/>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="entry.address"
|
:model-value="entry.address"
|
||||||
label="Email Address"
|
label="Email Address"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
density="compact"
|
density="compact"
|
||||||
prepend-inner-icon="mdi-email-multiple-outline"
|
prepend-inner-icon="mdi-email-multiple-outline"
|
||||||
:rules="[validAddress]"
|
|
||||||
hide-details="auto"
|
hide-details="auto"
|
||||||
|
readonly
|
||||||
/>
|
/>
|
||||||
<v-btn
|
|
||||||
icon
|
|
||||||
size="small"
|
|
||||||
variant="text"
|
|
||||||
@click="removeSecondaryAddress(index)"
|
|
||||||
>
|
|
||||||
<v-icon>mdi-delete-outline</v-icon>
|
|
||||||
<v-tooltip activator="parent" location="bottom">Remove Alias</v-tooltip>
|
|
||||||
</v-btn>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<v-btn
|
|
||||||
variant="tonal"
|
|
||||||
prepend-icon="mdi-plus"
|
|
||||||
@click="addSecondaryAddress"
|
|
||||||
>
|
|
||||||
Add Alias
|
|
||||||
</v-btn>
|
|
||||||
</div>
|
</div>
|
||||||
</v-window-item>
|
</v-window-item>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user