generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user nav menu, user home and api key requests. Enhanced player ra…
…nking
- Loading branch information
Showing
13 changed files
with
140 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#apiKeyDiv { | ||
display: flex; | ||
flex-direction: column; | ||
margin: 0 5% 5% 5%; | ||
} | ||
|
||
#apiKeyDiv form { | ||
margin: 5% 20% 0 20%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$(document).ready(function() { | ||
$(".show_hide_password a").on('click', function(event) { | ||
event.preventDefault(); | ||
if($('.show_hide_password input').attr("type") == "text"){ | ||
$('.show_hide_password input').attr('type', 'password'); | ||
$('.show_hide_password i').addClass( "fa-eye-slash" ); | ||
$('.show_hide_password i').removeClass( "fa-eye" ); | ||
}else if($('.show_hide_password input').attr("type") == "password"){ | ||
$('.show_hide_password input').attr('type', 'text'); | ||
$('.show_hide_password i').removeClass( "fa-eye-slash" ); | ||
$('.show_hide_password i').addClass( "fa-eye" ); | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd"> | ||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity6"> | ||
<head th:replace="~{fragments/head}"></head> | ||
<body> | ||
<nav th:replace="~{fragments/nav}"></nav> | ||
|
||
<canvas th:replace="~{fragments/background}"></canvas> | ||
|
||
<div class="container" style="text-align: center"> | ||
<h2 th:text="#{home.apikey.title}"></h2> | ||
<div th:if="${apiKey != null}" class="container mx-auto" id="apiKeyDiv"> | ||
<p th:text="#{home.apikey.description}"></p> | ||
<form> | ||
<div class="form-group"> | ||
<div class="input-group show_hide_password"> | ||
<input class="form-control text-center" type="password" th:value="${apiKey.getKeyToken()}" readonly> | ||
<div class="input-group-text"> | ||
<a href=""><i class="fa fa-eye-slash mx-auto" aria-hidden="true"></i></a> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
<div th:unless="${apiKey != null}"> | ||
<p th:text="#{home.apikey.missing}"></p> | ||
<a type="submit" class="btn btn-primary" th:text="#{home.apikey.create}" href="/home/apikey/create"></a> | ||
</div> | ||
</div> | ||
<footer th:replace="~{fragments/footer}"></footer> | ||
<script th:inline="javascript" th:src="@{/script/show_hide_password.js}"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters