✨ feat: Implémentation de la correction via le menu contextuel et améliorations de la construction
- ✨ Ajout de la fonctionnalité de correction via le menu contextuel. - 🗑️ Suppression de la fonctionnalité de correction en temps réel. - ➕ Ajout du script de fond (background.js) pour gérer le menu contextuel. - 📝 Mise à jour du manifest.json (permissions, service_worker, description). - 🐛 Correction de la logique de remplacement de texte dans content.js pour une meilleure compatibilité. - 🏗️ Mise à jour du Dockerfile pour construire l'extension Chrome dans un répertoire (non zippé). - 🛠️ Mise à jour du script build.sh pour gérer le nouveau format de sortie et nettoyer le répertoire. - 🌐 Traduction du manifest.json en français. - 📄 Ajout d'un README.md complet avec les instructions d'installation. - 🐛 Ajout de logs pour faciliter le débogage.
This commit is contained in:
commit
9840633305
13 changed files with 412 additions and 0 deletions
32
Dockerfile
Normal file
32
Dockerfile
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Stage 1: The Builder
|
||||
# This stage takes a lightweight Alpine Linux image, installs the 'zip' utility,
|
||||
# and then copies your extension files into it to create the packages.
|
||||
FROM alpine:latest AS builder
|
||||
|
||||
# Set the working directory inside the container.
|
||||
WORKDIR /extension
|
||||
|
||||
# Copy all the extension files into the working directory.
|
||||
# Ensure your Dockerfile is in the same directory as these files.
|
||||
COPY manifest.json .
|
||||
COPY popup.html .
|
||||
COPY popup.js .
|
||||
COPY content.js .
|
||||
COPY background.js .
|
||||
COPY images/ ./images/
|
||||
|
||||
# Stage 2: The Final Package
|
||||
# This stage is a minimal image whose only purpose is to hold the final packages.
|
||||
# Using alpine instead of scratch and adding a CMD makes it easier to interact with.
|
||||
FROM alpine:latest
|
||||
|
||||
# Set the output directory.
|
||||
WORKDIR /output
|
||||
|
||||
# Create a subdirectory for the Chrome extension and copy all files into it.
|
||||
RUN mkdir chrome-extension
|
||||
COPY --from=builder /extension/ ./chrome-extension/
|
||||
|
||||
# Add a default command to list the contents of the output directory.
|
||||
# This makes the container runnable and prevents the "no command specified" error.
|
||||
CMD ["ls", "-l"]
|
Loading…
Add table
Add a link
Reference in a new issue