From 9b3aac4a8a9591faa095c93091403fc8ff043b2b Mon Sep 17 00:00:00 2001 From: Saud Fatayerji Date: Tue, 7 Feb 2023 23:14:03 +0300 Subject: [PATCH] Combined changes that wouldn't merge --- .gitignore | 2 + src/main/resources/messages_ar_AR.properties | 3 + src/main/resources/messages_de_DE.properties | 3 + src/main/resources/messages_en_GB.properties | 3 + src/main/resources/messages_en_US.properties | 3 + src/main/resources/messages_fr_FR.properties | 3 + src/main/resources/static/general.css | 4 +- src/main/resources/templates/add-image.html | 2 +- .../resources/templates/compress-pdf.html | 2 +- .../templates/convert/img-to-pdf.html | 51 +++-- .../templates/convert/pdf-to-img.html | 56 ++--- .../resources/templates/fragments/common.html | 85 ++++--- .../resources/templates/fragments/footer.html | 9 +- .../resources/templates/fragments/navbar.html | 214 +++++++++--------- src/main/resources/templates/home.html | 2 +- src/main/resources/templates/merge-pdfs.html | 2 +- .../resources/templates/pdf-organizer.html | 2 +- .../resources/templates/remove-pages.html | 2 +- src/main/resources/templates/rotate-pdf.html | 70 +++--- .../templates/security/add-password.html | 2 +- .../templates/security/add-watermark.html | 2 +- .../security/change-permissions.html | 2 +- .../templates/security/remove-password.html | 2 +- src/main/resources/templates/split-pdfs.html | 75 +++--- 24 files changed, 311 insertions(+), 290 deletions(-) diff --git a/.gitignore b/.gitignore index 474d7cc6..88be02aa 100644 --- a/.gitignore +++ b/.gitignore @@ -108,3 +108,5 @@ local.properties *.zip *.tar.gz *.rar + +/build \ No newline at end of file diff --git a/src/main/resources/messages_ar_AR.properties b/src/main/resources/messages_ar_AR.properties index 0cc54940..50bda14e 100644 --- a/src/main/resources/messages_ar_AR.properties +++ b/src/main/resources/messages_ar_AR.properties @@ -5,6 +5,9 @@ ########### # Generic # ########### +# the direction that the language is written (ltr = left to right, rtl = right to left) +language.direction=rtl + pdfPrompt=اختر PDF multiPdfPrompt=اختر ملفات PDF (2+) multiPdfDropPrompt=حدد (أو اسحب وأفلت) جميع ملفات PDF التي تحتاجها diff --git a/src/main/resources/messages_de_DE.properties b/src/main/resources/messages_de_DE.properties index 38266bb4..b5ce3c9d 100644 --- a/src/main/resources/messages_de_DE.properties +++ b/src/main/resources/messages_de_DE.properties @@ -1,6 +1,9 @@ ########### # Generic # ########### +# the direction that the language is written (ltr = left to right, rtl = right to left) +language.direction=ltr + pdfPrompt=PDF auswählen multiPdfPrompt=PDFs auswählen(2+) multiPdfDropPrompt=Wählen Sie alle gewünschten PDFs aus (oder ziehen Sie sie per Drag & Drop hierhin) diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index 1d32c932..42d64213 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -1,6 +1,9 @@ ########### # Generic # ########### +# the direction that the language is written (ltr = left to right, rtl = right to left) +language.direction=ltr + pdfPrompt=Choose PDF multiPdfPrompt=Choose PDFs (2+) multiPdfDropPrompt=Select (or drag & drop) all PDFs you require diff --git a/src/main/resources/messages_en_US.properties b/src/main/resources/messages_en_US.properties index 802fbe34..dab6e8b7 100644 --- a/src/main/resources/messages_en_US.properties +++ b/src/main/resources/messages_en_US.properties @@ -1,6 +1,9 @@ ########### # Generic # ########### +# the direction that the language is written (ltr = left to right, rtl = right to left) +language.direction=ltr + pdfPrompt=Choose PDF multiPdfPrompt=Choose PDFs (2+) multiPdfDropPrompt=Select (or drag & drop) all PDFs you require diff --git a/src/main/resources/messages_fr_FR.properties b/src/main/resources/messages_fr_FR.properties index d0f61e1c..a5089e32 100644 --- a/src/main/resources/messages_fr_FR.properties +++ b/src/main/resources/messages_fr_FR.properties @@ -5,6 +5,9 @@ ########### # Generic # ########### +# the direction that the language is written (ltr = left to right, rtl = right to left) +language.direction=ltr + pdfPrompt=Choisir PDF multiPdfPrompt=Choisir des PDF (2+) multiPdfDropPrompt=Sélectionnez (ou glissez-déposez) tous les PDF dont vous avez besoin diff --git a/src/main/resources/static/general.css b/src/main/resources/static/general.css index 1180ed5f..4a5a669a 100644 --- a/src/main/resources/static/general.css +++ b/src/main/resources/static/general.css @@ -13,11 +13,11 @@ width: 100%; } -:is(html[lang=en], html[lang=fr]) * { +html[lang-direction=ltr] * { direction: ltr; } -:is(html[lang=ar]) * { +html[lang-direction=rtl] * { direction: rtl; text-align: right; } diff --git a/src/main/resources/templates/add-image.html b/src/main/resources/templates/add-image.html index a83363ea..892a0eed 100644 --- a/src/main/resources/templates/add-image.html +++ b/src/main/resources/templates/add-image.html @@ -1,5 +1,5 @@ - + diff --git a/src/main/resources/templates/compress-pdf.html b/src/main/resources/templates/compress-pdf.html index 98b7157b..eeef4f9a 100644 --- a/src/main/resources/templates/compress-pdf.html +++ b/src/main/resources/templates/compress-pdf.html @@ -1,5 +1,5 @@ - + diff --git a/src/main/resources/templates/convert/img-to-pdf.html b/src/main/resources/templates/convert/img-to-pdf.html index 68d6d005..bfcf902a 100644 --- a/src/main/resources/templates/convert/img-to-pdf.html +++ b/src/main/resources/templates/convert/img-to-pdf.html @@ -1,38 +1,39 @@ - + + +
+
-
-
-
-
-
-
-
-
-

+
-
-
- -
-
-
- +
+
-
- +
+
+
+

+ +
+
+ + +
+
+
+ +
+ + +
-
-
-
+
+
\ No newline at end of file diff --git a/src/main/resources/templates/convert/pdf-to-img.html b/src/main/resources/templates/convert/pdf-to-img.html index a5008f90..655c7e53 100644 --- a/src/main/resources/templates/convert/pdf-to-img.html +++ b/src/main/resources/templates/convert/pdf-to-img.html @@ -1,43 +1,45 @@ - + + +
+
-
-
-
+
-
-
-
-
-
-

-
-
- -
-
- + +
+
+ -
- -
- +
+ + + +
+
-
-
-
+
+
\ No newline at end of file diff --git a/src/main/resources/templates/fragments/common.html b/src/main/resources/templates/fragments/common.html index 3c97cc3b..12889a09 100644 --- a/src/main/resources/templates/fragments/common.html +++ b/src/main/resources/templates/fragments/common.html @@ -1,43 +1,56 @@ - - - - - - - - + + + + + - - - }); - - - + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/templates/fragments/footer.html b/src/main/resources/templates/fragments/footer.html index 641035f5..68dc00ec 100644 --- a/src/main/resources/templates/fragments/footer.html +++ b/src/main/resources/templates/fragments/footer.html @@ -1,11 +1,6 @@
-
\ No newline at end of file diff --git a/src/main/resources/templates/fragments/navbar.html b/src/main/resources/templates/fragments/navbar.html index 91681b5d..3033516e 100644 --- a/src/main/resources/templates/fragments/navbar.html +++ b/src/main/resources/templates/fragments/navbar.html @@ -1,133 +1,129 @@
diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html index 50bdf4ff..8b04facc 100644 --- a/src/main/resources/templates/home.html +++ b/src/main/resources/templates/home.html @@ -1,5 +1,5 @@ - + diff --git a/src/main/resources/templates/merge-pdfs.html b/src/main/resources/templates/merge-pdfs.html index bab357ae..3326e55d 100644 --- a/src/main/resources/templates/merge-pdfs.html +++ b/src/main/resources/templates/merge-pdfs.html @@ -1,5 +1,5 @@ - + diff --git a/src/main/resources/templates/pdf-organizer.html b/src/main/resources/templates/pdf-organizer.html index 0fa6037f..08fd4013 100644 --- a/src/main/resources/templates/pdf-organizer.html +++ b/src/main/resources/templates/pdf-organizer.html @@ -1,5 +1,5 @@ - + diff --git a/src/main/resources/templates/remove-pages.html b/src/main/resources/templates/remove-pages.html index 7d9fd38c..cd255ff3 100644 --- a/src/main/resources/templates/remove-pages.html +++ b/src/main/resources/templates/remove-pages.html @@ -1,5 +1,5 @@ - + diff --git a/src/main/resources/templates/rotate-pdf.html b/src/main/resources/templates/rotate-pdf.html index d4bfae95..c9ef32b6 100644 --- a/src/main/resources/templates/rotate-pdf.html +++ b/src/main/resources/templates/rotate-pdf.html @@ -1,55 +1,49 @@ - +
-
-
-
-
-
-
-
-

+
+
+
+
+
+
+
+

-
-
- + +
+ -
-
-
-
+
+
- -