Skip to content

Commit

Permalink
#406 logo svg
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 10, 2023
1 parent 6e61483 commit 956a877
Show file tree
Hide file tree
Showing 22 changed files with 78 additions and 12 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added s3auth-rest/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions s3auth-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<excludes>
<exclude>xml:/src/main/webapp/WEB-INF/web.xml</exclude>
<exclude>xml:/src/test/.*</exclude>
<exclude>checkstyle:/src/main/resources/.*</exclude>
<exclude>duplicatefinder:.*</exclude>
<exclude>findbugs:.*</exclude>
</excludes>
Expand Down
Binary file added s3auth-rest/src/.DS_Store
Binary file not shown.
Binary file added s3auth-rest/src/main/.DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions s3auth-rest/src/main/java/com/s3auth/rest/TkApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ private static Take regex(final Hosts hosts) {
"/css/[a-z]+\\.css",
new TkWithType(new TkClasspath(), "text/css")
),
new FkRegex(
"/images/[a-z]+\\.svg",
new TkWithType(new TkClasspath(), "image/svg+xml")
),
new FkRegex(
"/",
new TkFork(
Expand Down
Binary file added s3auth-rest/src/main/resources/images/bullet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added s3auth-rest/src/main/resources/images/favicon.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added s3auth-rest/src/main/resources/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions s3auth-rest/src/main/resources/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added s3auth-rest/src/main/resources/images/submit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added s3auth-rest/src/main/resources/images/unknown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions s3auth-rest/src/main/xsl/index.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<input name="host"/>
<label>
<xsl:text>AWS key, exactly 20 symbols (</xsl:text>
<a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_SettingUpUser.html">
<a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_SettingUpUser.html">
<xsl:text>where do I get it?</xsl:text>
</a>
<xsl:text>):</xsl:text>
Expand All @@ -89,7 +89,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<input name="bucket" size="45" maxlength="250"/>
<label>
<xsl:text>Optional AWS S3 endpoint (</xsl:text>
<a href="http://docs.amazonwebservices.com/general/latest/gr/rande.html#s3_region">
<a href="https://docs.amazonwebservices.com/general/latest/gr/rande.html#s3_region">
<xsl:text>what is it?</xsl:text>
</a>
<xsl:text>), for example </xsl:text>
Expand Down Expand Up @@ -122,7 +122,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
</p>
<p>
<xsl:text>2. Create a new user in Amazon IAM and attach new custom policy to it (</xsl:text>
<a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingPolicies.html">
<a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingPolicies.html">
<xsl:text>how?</xsl:text>
</a>
<xsl:text>):</xsl:text>
Expand All @@ -148,11 +148,11 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<xsl:text>.htpasswd</xsl:text>
</span>
<xsl:text> file in </xsl:text>
<a href="http://httpd.apache.org/docs/2.2/misc/password_encryptions.html">
<a href="https://httpd.apache.org/docs/2.2/misc/password_encryptions.html">
<xsl:text>Apache HTTP Server format</xsl:text>
</a>
<xsl:text> using </xsl:text>
<a href="http://httpd.apache.org/docs/2.2/programs/htpasswd.html">
<a href="https://httpd.apache.org/docs/2.2/programs/htpasswd.html">
<xsl:text>htpasswd</xsl:text>
</a>
<xsl:text> tool:</xsl:text>
Expand Down Expand Up @@ -183,7 +183,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<ol>
<li>
<xsl:text>Password is wrong. Encode it with </xsl:text>
<a href="http://aspirine.org/htpasswd_en.html">
<a href="https://aspirine.org/htpasswd_en.html">
<xsl:text>this online tool</xsl:text>
</a>
<xsl:text> and try again in 10 minutes (not earlier).</xsl:text>
Expand Down Expand Up @@ -212,7 +212,7 @@ maven.s3auth.com with .htpasswd(3 user(s) updated 2min ago)]]></pre>
<xsl:text>am9lOnNlY3JldA==</xsl:text>
</span>
<xsl:text> is a </xsl:text>
<a href="http://en.wikipedia.org/wiki/Base64">
<a href="https://en.wikipedia.org/wiki/Base64">
<xsl:text>Base64 encoded</xsl:text>
</a>
<xsl:text> version of </xsl:text>
Expand All @@ -228,7 +228,7 @@ maven.s3auth.com with .htpasswd(3 user(s) updated 2min ago)]]></pre>
<xsl:text>secret</xsl:text>
</span>
<xsl:text> is a password (this is how </xsl:text>
<a href="http://en.wikipedia.org/wiki/Basic_access_authentication">
<a href="https://en.wikipedia.org/wiki/Basic_access_authentication">
<xsl:text>HTTP Basic Authentication</xsl:text>
</a>
<xsl:text> works).</xsl:text>
Expand All @@ -255,7 +255,7 @@ maven.s3auth.com with .htpasswd(3 user(s) updated 2min ago)]]></pre>
<li>
<a>
<xsl:attribute name="href">
<xsl:text>http://</xsl:text>
<xsl:text>https://</xsl:text>
<xsl:value-of select="name"/>
<xsl:text>/</xsl:text>
</xsl:attribute>
Expand Down
4 changes: 2 additions & 2 deletions s3auth-rest/src/main/xsl/layout.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<xsl:attribute name="href">
<xsl:value-of select="/page/links/link[@rel='home']/@href"/>
</xsl:attribute>
<img src="http://img.s3auth.com/logo.svg" alt="s3auth.com logo" style="width:20em;height:3.4em;"/>
<img src="/images/logo.svg" alt="s3auth.com logo" style="width:20em;height:3.4em;"/>
</a>
</p>
<xsl:apply-templates select="identity"/>
Expand All @@ -75,7 +75,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<xsl:text>Heroku</xsl:text>
</a>
<xsl:text>. We are not affiliated anyhow with </xsl:text>
<a href="http://aws.amazon.com/">
<a href="https://aws.amazon.com/">
<xsl:text>Amazon Web Services</xsl:text>
</a>
<xsl:text>, although we provide a service for their clients.</xsl:text>
Expand Down
2 changes: 1 addition & 1 deletion s3auth-rest/src/test/java/com/s3auth/rest/TkAppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void rendersManyUrls() throws Exception {
);
final String[] paths = {
"/robots.txt", "/xsl/index.xsl", "/css/layout.css",
"/version", "/license",
"/version", "/license", "/images/logo.svg",
};
for (final String path : paths) {
MatcherAssert.assertThat(
Expand Down

0 comments on commit 956a877

Please sign in to comment.