Proxy test ()

* Add files via upload

* Add files via upload
This commit is contained in:
Anthony Stirling 2023-01-31 16:53:10 +00:00 committed by GitHub
parent 072053f794
commit 523503a100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 23 additions and 23 deletions

View file

@ -17,7 +17,7 @@
<form method="post" th:action="@{/add-image}" <form method="post" th:action="@{add-image}"
enctype="multipart/form-data"> enctype="multipart/form-data">
<div class="custom-file"> <div class="custom-file">

View file

@ -17,7 +17,7 @@
<form action="#" th:action="@{/compress-pdf}" th:object="${rotateForm}" <form action="#" th:action="@{compress-pdf}" th:object="${rotateForm}"
method="post" enctype="multipart/form-data"> method="post" enctype="multipart/form-data">
<p>Warning: This process can take up to a minute depending on file-size</p> <p>Warning: This process can take up to a minute depending on file-size</p>
<div class="custom-file"> <div class="custom-file">

View file

@ -15,7 +15,7 @@
<h2>Image to PDF</h2> <h2>Image to PDF</h2>
<form method="post" enctype="multipart/form-data" <form method="post" enctype="multipart/form-data"
th:action="@{/convert-to-pdf}"> th:action="@{convert-to-pdf}">
<div class="custom-file"> <div class="custom-file">
<input type="file" class="custom-file-input" id="fileInput" <input type="file" class="custom-file-input" id="fileInput"
name="fileInput" required> <label name="fileInput" required> <label
@ -35,7 +35,7 @@
<div class="col-md-6"> <div class="col-md-6">
<h2>PDF to img</h2> <h2>PDF to img</h2>
<form method="post" enctype="multipart/form-data" <form method="post" enctype="multipart/form-data"
th:action="@{/convert-from-pdf}"> th:action="@{convert-from-pdf}">
<div class="custom-file"> <div class="custom-file">
<input type="file" class="custom-file-input" id="fileInput" <input type="file" class="custom-file-input" id="fileInput"
name="fileInput" required> <label name="fileInput" required> <label

View file

@ -27,7 +27,7 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Merge PDFs</h5> <h5 class="card-title">Merge PDFs</h5>
<p class="card-text">Easily merge multiple PDFs into one.</p> <p class="card-text">Easily merge multiple PDFs into one.</p>
<a href="#" class="btn btn-primary" th:href="@{/merge-pdfs}">Go</a> <a href="#" class="btn btn-primary" th:href="@{merge-pdfs}">Go</a>
</div> </div>
</div> </div>
</div> </div>
@ -36,7 +36,7 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Split PDFs</h5> <h5 class="card-title">Split PDFs</h5>
<p class="card-text">Split PDFs into multiple documents</p> <p class="card-text">Split PDFs into multiple documents</p>
<a href="#" class="btn btn-primary" th:href="@{/split-pdfs}">Go</a> <a href="#" class="btn btn-primary" th:href="@{split-pdfs}">Go</a>
</div> </div>
</div> </div>
</div> </div>
@ -45,7 +45,7 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Add image to PDF</h5> <h5 class="card-title">Add image to PDF</h5>
<p class="card-text">Adds image/watermark to a PDF</p> <p class="card-text">Adds image/watermark to a PDF</p>
<a href="#" class="btn btn-primary" th:href="@{/add-image}">Go</a> <a href="#" class="btn btn-primary" th:href="@{add-image}">Go</a>
</div> </div>
</div> </div>
</div> </div>
@ -57,7 +57,7 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Convert to/from PDF</h5> <h5 class="card-title">Convert to/from PDF</h5>
<p class="card-text">Convert images to/from PDF.</p> <p class="card-text">Convert images to/from PDF.</p>
<a href="#" class="btn btn-primary" th:href="@{/convert-pdf}">Go</a> <a href="#" class="btn btn-primary" th:href="@{convert-pdf}">Go</a>
</div> </div>
</div> </div>
</div> </div>
@ -67,7 +67,7 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">PDF Organizer</h5> <h5 class="card-title">PDF Organizer</h5>
<p class="card-text">Remove/Rearrange pages in any order</p> <p class="card-text">Remove/Rearrange pages in any order</p>
<a href="#" class="btn btn-primary" th:href="@{/pdf-organizer}">Go</a> <a href="#" class="btn btn-primary" th:href="@{pdf-organizer}">Go</a>
</div> </div>
</div> </div>
</div> </div>
@ -77,7 +77,7 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Rotate PDFs</h5> <h5 class="card-title">Rotate PDFs</h5>
<p class="card-text">Easily rotate your PDFs.</p> <p class="card-text">Easily rotate your PDFs.</p>
<a href="#" class="btn btn-primary" th:href="@{/rotate-pdf}">Go</a> <a href="#" class="btn btn-primary" th:href="@{rotate-pdf}">Go</a>
</div> </div>
</div> </div>
</div> </div>
@ -95,7 +95,7 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Compress PDFs</h5> <h5 class="card-title">Compress PDFs</h5>
<p class="card-text">Compress PDFs to reduce their file size.</p> <p class="card-text">Compress PDFs to reduce their file size.</p>
<a href="#" class="btn btn-primary" th:href="@{/compress-pdf}">Go</a> <a href="#" class="btn btn-primary" th:href="@{compress-pdf}">Go</a>
</div> </div>
</div> </div>
</div> </div>

View file

@ -15,7 +15,7 @@
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-md-6" > <div class="col-md-6" >
<h2>Merge multiple PDFs (2+)</h2> <h2>Merge multiple PDFs (2+)</h2>
<form action="/merge-pdfs" method="post" <form action="merge-pdfs" method="post"
enctype="multipart/form-data"> enctype="multipart/form-data">
<div class="form-group"> <div class="form-group">
<label>Select (or drag & drop) all PDFs to merge</label> <label>Select (or drag & drop) all PDFs to merge</label>

View file

@ -1,7 +1,7 @@
<div th:fragment="navbar"> <div th:fragment="navbar">
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container"> <div class="container">
<a class="navbar-brand" href="#" th:href="@{/home}">Stirling PDF</a> <a class="navbar-brand" href="#" th:href="@{home}">Stirling PDF</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" <button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarNav" aria-controls="navbarNav" data-target="#navbarNav" aria-controls="navbarNav"
aria-expanded="false" aria-label="Toggle navigation"> aria-expanded="false" aria-label="Toggle navigation">
@ -11,30 +11,30 @@
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="#" <li class="nav-item"><a class="nav-link" href="#"
th:href="@{/merge-pdfs}" th:href="@{merge-pdfs}"
th:classappend="${currentPage}=='merge-pdfs' ? 'active' : ''">Merge th:classappend="${currentPage}=='merge-pdfs' ? 'active' : ''">Merge
PDFs</a></li> PDFs</a></li>
<li class="nav-item"><a class="nav-link" href="#" <li class="nav-item"><a class="nav-link" href="#"
th:href="@{/split-pdfs}" th:href="@{split-pdfs}"
th:classappend="${currentPage}=='split-pdfs' ? 'active' : ''">Split th:classappend="${currentPage}=='split-pdfs' ? 'active' : ''">Split
PDFs</a></li> PDFs</a></li>
<li class="nav-item"><a class="nav-link" href="#" <li class="nav-item"><a class="nav-link" href="#"
th:href="@{/convert-pdf}" th:href="@{convert-pdf}"
th:classappend="${currentPage}=='convert-pdf' ? 'active' : ''">Convert th:classappend="${currentPage}=='convert-pdf' ? 'active' : ''">Convert
to/from PDF</a></li> to/from PDF</a></li>
<li class="nav-item"><a class="nav-link" href="#" <li class="nav-item"><a class="nav-link" href="#"
th:href="@{/add-image}" th:href="@{add-image}"
th:classappend="${currentPage}=='add-image' ? 'active' : ''">Add th:classappend="${currentPage}=='add-image' ? 'active' : ''">Add
image to PDF</a></li> image to PDF</a></li>
<li class="nav-item"><a class="nav-link" href="#" <li class="nav-item"><a class="nav-link" href="#"
th:href="@{/pdf-organizer}" th:href="@{pdf-organizer}"
th:classappend="${currentPage}=='pdf-organizer' ? 'active' : ''">PDF th:classappend="${currentPage}=='pdf-organizer' ? 'active' : ''">PDF
Organizer</a></li> Organizer</a></li>
<li class="nav-item"><a class="nav-link" href="#" <li class="nav-item"><a class="nav-link" href="#"
th:href="@{/rotate-pdf}" th:href="@{rotate-pdf}"
th:classappend="${currentPage}=='rotate-pdf' ? 'active' : ''">Rotate PDF</a></li> th:classappend="${currentPage}=='rotate-pdf' ? 'active' : ''">Rotate PDF</a></li>
<li class="nav-item"><a class="nav-link" href="#" <li class="nav-item"><a class="nav-link" href="#"
th:href="@{/compress-pdf}" th:href="@{compress-pdf}"
th:classappend="${currentPage}=='compress-pdf' ? 'active' : ''">Compress PDF</a></li> th:classappend="${currentPage}=='compress-pdf' ? 'active' : ''">Compress PDF</a></li>
<input type="checkbox" id="toggle-dark-mode" <input type="checkbox" id="toggle-dark-mode"

View file

@ -16,7 +16,7 @@
<form th:action="@{/rearrange-pages}" method="post" <form th:action="@{rearrange-pages}" method="post"
enctype="multipart/form-data"> enctype="multipart/form-data">
<div class="custom-file"> <div class="custom-file">
<input type="file" class="custom-file-input" id="fileInput" <input type="file" class="custom-file-input" id="fileInput"

View file

@ -17,7 +17,7 @@
<form action="#" th:action="@{/rotate-pdf}" th:object="${rotateForm}" <form action="#" th:action="@{rotate-pdf}" th:object="${rotateForm}"
method="post" enctype="multipart/form-data"> method="post" enctype="multipart/form-data">
<div class="custom-file"> <div class="custom-file">
<input type="file" class="custom-file-input" id="fileInput" <input type="file" class="custom-file-input" id="fileInput"

View file

@ -24,7 +24,7 @@
<p>Document #5: Page 8</p> <p>Document #5: Page 8</p>
<p>Document #6: Page 9 and 10</p> <p>Document #6: Page 9 and 10</p>
<form th:action="@{/split-pages}" method="post" <form th:action="@{split-pages}" method="post"
enctype="multipart/form-data"> enctype="multipart/form-data">
<div class="custom-file"> <div class="custom-file">
<input type="file" class="custom-file-input" id="fileInput" <input type="file" class="custom-file-input" id="fileInput"