mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-18 05:40:31 +00:00
better color for history cards
This commit is contained in:
parent
11d90b0115
commit
921667dfbc
@ -36,8 +36,6 @@ const ServerHistory = () => {
|
|||||||
historyString = historyString.replace(/'{2,}/g, '');
|
historyString = historyString.replace(/'{2,}/g, '');
|
||||||
historyString = historyString.trim();
|
historyString = historyString.trim();
|
||||||
|
|
||||||
console.log("History string after parsing:", historyString);
|
|
||||||
|
|
||||||
historyString = historyString.replace(/(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})(type": ")/g, '$1", "$2');
|
historyString = historyString.replace(/(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})(type": ")/g, '$1", "$2');
|
||||||
historyString = historyString.replace(/(type": "ServerCreate|ServerRun|Command|UpdateProperties)(details": )/g, '$1", "$2');
|
historyString = historyString.replace(/(type": "ServerCreate|ServerRun|Command|UpdateProperties)(details": )/g, '$1", "$2');
|
||||||
|
|
||||||
@ -52,12 +50,9 @@ const ServerHistory = () => {
|
|||||||
details: detailsMatch ? detailsMatch[1] : null
|
details: detailsMatch ? detailsMatch[1] : null
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("Parsed entry:", parsedEntry);
|
|
||||||
|
|
||||||
return parsedEntry;
|
return parsedEntry;
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("Final history array:", historyArray);
|
|
||||||
|
|
||||||
setHistory(historyArray);
|
setHistory(historyArray);
|
||||||
} else {
|
} else {
|
||||||
|
@ -6,25 +6,27 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
background-color: white;
|
background-color: #1D1836;
|
||||||
color: black;
|
color: black;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
padding: 2.5rem;
|
padding: 2.5rem;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
|
border: .1rem solid #343947;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.historyCards {
|
.historyCard {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
margin-bottom: 1.5rem;
|
||||||
|
|
||||||
.historyCard {
|
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-color: #f9f9f9;
|
background-color: #100D25;
|
||||||
color: black;
|
color: white;
|
||||||
|
border: .1rem solid #343947;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -32,6 +34,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filterContainer input[type="checkbox"] {
|
.filterContainer input[type="checkbox"] {
|
||||||
|
Loading…
Reference in New Issue
Block a user