Skip to content

Commit c40bdf1

Browse files
authored
Merge branch 'Gruetzig:main' into main
2 parents 4fc3c18 + b1131c5 commit c40bdf1

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

source/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ DrawContext ctx;
1212
#define SERVER_ADDRESS "https://soap.nintendohomebrew.com/submit"
1313
#endif
1414

15-
void enter(char* inout) {
15+
void enter(char* inout, size_t len) {
1616
SwkbdState swkbd;
17-
swkbdInit(&swkbd, SWKBD_TYPE_NORMAL, 1, 50);
17+
swkbdInit(&swkbd, SWKBD_TYPE_NORMAL, 1, len);
1818
swkbdSetInitialText(&swkbd, inout);
19-
swkbdInputText(&swkbd, inout, 51);
19+
swkbdInputText(&swkbd, inout, len+1);
2020
return;
2121
}
2222

@@ -107,10 +107,10 @@ int main() {
107107
switch(menustate) {
108108
case 0:
109109
if ((kDown & KEY_X) && (kDown & KEY_DDOWN)) {
110-
enter(address);
110+
enter(address, 51);
111111
}
112112
if (kDown & KEY_Y) {
113-
enter(discordtag);
113+
enter(discordtag, 32);
114114
}
115115
if (strlen(address) > 0 && strlen(discordtag) > 0 && kDown & KEY_TOUCH) {
116116
menustate++;

templates/admin.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,14 @@
5757
{% for entry in entries %}
5858
<tr>
5959
<td>{{ entry.name }}</td>
60-
<td><b>SD:</b> {{ entry.sdserial }} <b>NAND:</b> {{ entry.nandserial }} <b>inspect.log:</b> {{ entry.twlnserial }} <b>SecureInfo:</b> {{ entry.secinfoserial }} <b>Date:</b> {{ entry.date}}</td>
60+
<td><b>SD:</b> {{ entry.sdserial }} <b>NAND:</b> {{ entry.nandserial }} <b>inspect.log:</b> {{ entry.twlnserial }} <b>SecureInfo:</b> {{ entry.secinfoserial }}<b>Date:</b> <span class="date-timestamp">{{ entry.date}}</span></td>
6161
<td><a href="/retrieve?username={{ entry.name }}">Download</a> <a href="/delete?username={{ entry.name }}" class="delete-link">Delete</a></td>
6262
</tr>
6363
{% endfor %}
6464
</table>
6565
</body>
6666
<script>
67+
document.querySelectorAll(".date-timestamp").forEach(e => e.textContent = Date(Number(e.textContent)))
6768
// Select all elements with the class 'delete-link'
6869
const deleteLinks = document.querySelectorAll('.delete-link');
6970

@@ -79,5 +80,6 @@
7980
}
8081
});
8182
});
83+
8284
</script>
8385
</html>

0 commit comments

Comments
 (0)