1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2025-04-19 13:15:44 +02:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Bertogim
868ba38bd3
Merge c52572b387 into b2276600c7 2025-03-18 23:18:44 +01:00
10 changed files with 129 additions and 126 deletions

View File

@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="referrer" content="no-referrer">
@ -10,8 +11,8 @@
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/menu.css">
<link rel="stylesheet" href="styles/servers.css">
<link rel="stylesheet" href="styles/channels.css">
<link rel="stylesheet" href="styles/servers.css">
<link rel="stylesheet" href="styles/messages.css">
<link rel="stylesheet" href="styles/modal.css">
@ -22,6 +23,7 @@
</script>
<script type="module" src="scripts/bootstrap.mjs"></script>
</head>
<body>
<div id="menu">
<button id="btn-settings">Settings</button>
@ -42,7 +44,8 @@
<div class="nav">
<button id="nav-first" data-nav="first" class="icon">&laquo;</button>
<button id="nav-prev" data-nav="prev" class="icon">&lsaquo;</button>
<button id="nav-pick" data-nav="pick">Page <span id="nav-page-current">1</span>/<span id="nav-page-total">?</span></button>
<button id="nav-pick" data-nav="pick">Page <span id="nav-page-current">1</span>/<span
id="nav-page-total">?</span></button>
<button id="nav-next" data-nav="next" class="icon">&rsaquo;</button>
<button id="nav-last" data-nav="last" class="icon">&raquo;</button>
</div>
@ -76,7 +79,8 @@
</div>
<div id="app">
<div id="servers"></div>
<div id="servers">
</div>
<div id="channels">
<div class="loading"></div>
</div>
@ -88,4 +92,5 @@
<div id="dialog"></div>
</div>
</body>
</html>

View File

@ -187,7 +187,7 @@ export default (function () {
"nsfw": channels[key].nsfw || false,
"icon": getServer(channels[key].server).type === "group"
? `<!--<span>${channels[key].name.split(" ").map(word => word[0]).join("")}</span>-->` //Discord default naming without a icon
: `<img src='${fileUrlProcessor("https://cdn.discordapp.com/avatars/" + getUserIDByName(channels[key].name) + "/" + getUserByName(channels[key].name).avatar+".webp")}'>`
: `<img src='${fileUrlProcessor("https://cdn.discordapp.com/avatars/" + getUserIDByName(channels[key].name) + "/" + getUserByName(channels[key].name).avatar)}'>`
})).sort((ac, bc) => {
return channelOrder[ac.id] - channelOrder[bc.id];
});

View File

@ -6,7 +6,7 @@ export default class {
constructor(contents) {
this.contents = contents;
};
7
apply(obj, processor) {
//Keys to not escape

View File

@ -5,7 +5,7 @@
gap: 8px;
padding: 8px;
background-color: #313338;
border-bottom: 2px solid #27292D;
border-bottom: 2px solid #27292D
}
#menu .splitter {

View File

@ -15,7 +15,6 @@
background-color: #313338;
display: flex;
align-items: center;
overflow: hidden;
}
.Server:hover {
@ -45,7 +44,6 @@ svg.ServerImg {
font-size: 1.5em;
text-align: center;
word-wrap: break-word;
word-break: break-all;
white-space: normal;
overflow: hidden;
display: flex;