mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-07-09 13:27:45 +00:00
refactor(DevWeb): Rename files to have same case
This commit is contained in:
+10
-16
@@ -1,14 +1,11 @@
|
|||||||
<%@ tag import="com.google.gson.Gson" %>
|
<%@tag description="component/connected-user-list" pageEncoding="UTF-8" %>
|
||||||
<%@ tag import="uppa.project.database.pojo.User" %>
|
|
||||||
<%@tag description="component/connectedUserList" pageEncoding="UTF-8" %>
|
<%@tag import="com.google.gson.Gson" %>
|
||||||
|
<%@tag import="uppa.project.database.pojo.User" %>
|
||||||
|
|
||||||
<%@taglib prefix="component" tagdir="/WEB-INF/tags/components" %>
|
<%@taglib prefix="component" tagdir="/WEB-INF/tags/components" %>
|
||||||
|
|
||||||
<component:card>
|
<table id="connected-user-list" class="table is-fullwidth">
|
||||||
<jsp:attribute name="card_head">
|
|
||||||
<div class="card-header-title">Utilisateurs connectés</div>
|
|
||||||
</jsp:attribute>
|
|
||||||
<jsp:attribute name="card_content">
|
|
||||||
<table id="connectedUserList" class="table is-fullwidth">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Utilisateur</th>
|
<th>Utilisateur</th>
|
||||||
@@ -19,14 +16,11 @@
|
|||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody></tbody>
|
||||||
</tbody>
|
</table>
|
||||||
</table>
|
|
||||||
</jsp:attribute>
|
|
||||||
</component:card>
|
|
||||||
|
|
||||||
<script defer type="module">
|
<script defer type="module">
|
||||||
const tbodyElement = document.querySelector('#connectedUserList tbody');
|
const tbodyElement = document.querySelector('#connected-user-list tbody');
|
||||||
|
|
||||||
// effacer ce qu'il y a apres /project_war_exploded
|
// effacer ce qu'il y a apres /project_war_exploded
|
||||||
const url = new URL(window.location.href);
|
const url = new URL(window.location.href);
|
||||||
@@ -57,7 +51,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
websocket.onclose = () => {}
|
websocket.onclose = () => {}
|
||||||
websocket.onerror = (error) => {}
|
websocket.onerror = (error) => console.error(error);
|
||||||
|
|
||||||
function updateUserList(users) {
|
function updateUserList(users) {
|
||||||
tbodyElement.innerHTML = '';
|
tbodyElement.innerHTML = '';
|
||||||
+4
-55
@@ -1,8 +1,8 @@
|
|||||||
<%@ tag import="uppa.project.database.pojo.Deck" %>
|
<%@ tag import="uppa.project.database.pojo.Deck" %>
|
||||||
<%@ tag import="uppa.project.database.pojo.Game" %>
|
<%@ tag import="uppa.project.database.pojo.Game" %>
|
||||||
<%@tag description="form/newGame" pageEncoding="UTF-8" %>
|
<%@tag description="form/new-game" pageEncoding="UTF-8" %>
|
||||||
|
|
||||||
<form id="newGame-form" action="${pageContext.request.contextPath}/main-menu" method="post">
|
<form id="new-game-form" action="${pageContext.request.contextPath}/main-menu" method="post">
|
||||||
|
|
||||||
<h2 class="title is-5">Paramètres Généraux</h2>
|
<h2 class="title is-5">Paramètres Généraux</h2>
|
||||||
|
|
||||||
@@ -76,57 +76,6 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
right: 0;
|
|
||||||
margin: 1em !important;
|
|
||||||
|
|
||||||
transform: translateY(100%);
|
|
||||||
opacity: 0;
|
|
||||||
animation: toast 5s ease forwards;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes toast {
|
|
||||||
0% {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(100%);
|
|
||||||
}
|
|
||||||
5% {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
95% {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(100%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes shake {
|
|
||||||
0%, 100% {
|
|
||||||
transform: translateX(0);
|
|
||||||
}
|
|
||||||
10%, 30%, 50%, 70%, 90% {
|
|
||||||
transform: translateX(-5px);
|
|
||||||
}
|
|
||||||
20%, 40%, 60%, 80% {
|
|
||||||
transform: translateX(5px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.range-field {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
gap: 5px;
|
|
||||||
}
|
|
||||||
.range-field .value {
|
.range-field .value {
|
||||||
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
@@ -134,10 +83,10 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.left {
|
.left {
|
||||||
left: 0px;
|
left: 0;
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
right: 0px;
|
right: 0;
|
||||||
}
|
}
|
||||||
.field input {
|
.field input {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
Reference in New Issue
Block a user