feat: ajout de la gestion de l'auto-hide du header et amélioration de la réactivité des composants en fonction de la taille de la fenêtre, ainsi que des optimisations CSS pour une meilleure expérience utilisateur sur mobile.
This commit is contained in:
parent
4848a1736f
commit
ebcca466a9
@@ -93,7 +93,7 @@ export class ApiMangaRepository {
|
||||
|
||||
async searchMangaDex(query) {
|
||||
try {
|
||||
const response = await fetch(`https://localhost/api/mangadex-search?title=${encodeURIComponent(query)}`);
|
||||
const response = await fetch(`/api/mangadex-search?title=${encodeURIComponent(query)}`);
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to search MangaDex');
|
||||
}
|
||||
@@ -106,7 +106,7 @@ export class ApiMangaRepository {
|
||||
|
||||
async createFromMangaDex(externalId) {
|
||||
try {
|
||||
const response = await fetch('https://localhost/api/mangas/create-from-mangadex', {
|
||||
const response = await fetch('/api/mangas/create-from-mangadex', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
@@ -125,7 +125,7 @@ export class ApiMangaRepository {
|
||||
|
||||
async searchChapter(chapterId) {
|
||||
try {
|
||||
const response = await fetch('https://localhost/api/scraping/chapters', {
|
||||
const response = await fetch('/api/scraping/chapters', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
||||
Reference in New Issue
Block a user