feat(setting): étendre ContentSource avec champs de test et domain model
- Ajouter testSlug, testChapterNumber, baseUrl sur ContentSource (entité, domain model, migration) - Exposer ces champs dans les Resources, Processors, Providers et Mapper - Mettre à jour store Pinia, repository API et composants Vue (form, card, liste)
This commit is contained in:
parent
b0ce36096f
commit
795cbeccc3
@@ -17,6 +17,11 @@ readonly class ContentSourceMapper
|
||||
imageSelector: $entity->getImageSelector(),
|
||||
nextPageSelector: $entity->getNextPageSelector(),
|
||||
chapterSelector: $entity->getChapterSelector(),
|
||||
testSlug: $entity->getTestSlug(),
|
||||
testChapterNumber: $entity->getTestChapterNumber(),
|
||||
healthStatus: $entity->getHealthStatus(),
|
||||
healthLastTestedAt: $entity->getHealthLastTestedAt(),
|
||||
healthLastError: $entity->getHealthLastError(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -29,7 +34,12 @@ readonly class ContentSourceMapper
|
||||
->setScrapingType($contentSource->getScrapingType())
|
||||
->setImageSelector($contentSource->getImageSelector())
|
||||
->setNextPageSelector($contentSource->getNextPageSelector())
|
||||
->setChapterSelector($contentSource->getChapterSelector());
|
||||
->setChapterSelector($contentSource->getChapterSelector())
|
||||
->setTestSlug($contentSource->getTestSlug())
|
||||
->setTestChapterNumber($contentSource->getTestChapterNumber())
|
||||
->setHealthStatus($contentSource->getHealthStatus())
|
||||
->setHealthLastTestedAt($contentSource->getHealthLastTestedAt())
|
||||
->setHealthLastError($contentSource->getHealthLastError());
|
||||
|
||||
return $entity;
|
||||
}
|
||||
@@ -41,7 +51,12 @@ readonly class ContentSourceMapper
|
||||
->setScrapingType($contentSource->getScrapingType())
|
||||
->setImageSelector($contentSource->getImageSelector())
|
||||
->setNextPageSelector($contentSource->getNextPageSelector())
|
||||
->setChapterSelector($contentSource->getChapterSelector());
|
||||
->setChapterSelector($contentSource->getChapterSelector())
|
||||
->setTestSlug($contentSource->getTestSlug())
|
||||
->setTestChapterNumber($contentSource->getTestChapterNumber())
|
||||
->setHealthStatus($contentSource->getHealthStatus())
|
||||
->setHealthLastTestedAt($contentSource->getHealthLastTestedAt())
|
||||
->setHealthLastError($contentSource->getHealthLastError());
|
||||
|
||||
return $entity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user