Commit Graph

27 Commits

Author SHA1 Message Date
6edc6771ef Profile: Fix showcase card being out of order.
The showcase cards were rendered based on the order in which
the render calls returned within the slots.map call.
Using the original slot keys fixes this issue.
2023-08-07 17:34:19 +02:00
d7a99968bc GeneralUtils/Profile: Shorten numbers to K M B format
- Implemented for currencies on the profile
2023-08-07 17:34:19 +02:00
e50449ec03 Cleanup legacy rendering code and files
also removes dockerfile and imagemagick.
2023-08-07 17:34:19 +02:00
2a4b58f7af Rendering: Reposition labels for top-aligned default 2023-08-07 17:34:19 +02:00
e1cc82eb32 Rendering: Add placeholder frame
and fix profile card alignment
2023-08-07 17:34:19 +02:00
6d35019e3e Profile: Add stats bar to new rendering 2023-08-07 17:34:19 +02:00
490db1c70f Profile: Add userimage and status to new profile 2023-08-07 17:34:19 +02:00
21ccd3a3d1 Profile: Add new rendering for username and showcase 2023-08-07 17:34:19 +02:00
a12c0a8211 Profile: (Amend) Fix replace/encode order of custom status
Replacement happened before encoding, causing the entire status
string to be encoded, including the SVG tags themselves.
2023-03-09 12:25:48 +01:00
af017bf125 Profile: encode special XML characters in usernames and descriptions
this fixes the problem of profiles not rendering when a user has
special characters such as < or > in their name or status.
We didn't implement proper sanitization considering this method of
profile rendering is going to be obsolete soon.
2023-03-09 12:14:49 +01:00
5be326d56a Added permission levels to all commands 2022-09-29 11:23:15 +02:00
16bb46403b Burn: Added card burning for notes and gems 2022-09-26 16:09:23 +02:00
bbbcaaaf29 User/Debug/Profile: Add primary and secondary currency 2022-09-26 13:15:40 +02:00
f021234e45 Profile: Add initial default customStatus and allow empty values
Fixes #20
2022-09-21 12:49:21 +02:00
055be119cc Profile: Show rendering gif placeholder instead of thinking text
while the profile is being rendered in the background.
2022-09-13 00:28:14 +02:00
54aee7624b Profile: Use sharp to prerender the profile background
including the user image. Also introduces axios as a dependency
2022-09-13 00:18:30 +02:00
494f574048 Profile: Fix call to refactored getLevel function
it is now user.level().currentLevel
2022-09-12 23:03:30 +02:00
465f1f3221 Profile: Handle uninitialized customStatus rendering 2022-09-12 20:51:56 +02:00
7786c84ea7 Profile: Render custom status on profile images
A new line is added after each whitespace following each 40th+ character
2022-09-12 14:54:18 +02:00
5ea33b21a0 Profile: Fix discordUser object being of type member if we view our own profile 2022-09-12 10:31:46 +02:00
dc9502057d Profile: Add parameter to view some else's profile 2022-09-12 04:12:07 +02:00
ed7096fac0 User: Add experience / levels
Each drop and claim hands out 10 and 5 xp respectively.
The profile then renders the users current level based on
the formula 0.5 * sqrt(exp)
2022-09-12 03:37:45 +02:00
fb1f4b346e Profile: Update profile template 2022-09-12 03:12:24 +02:00
cd3b50bbe2 Profile: Truncate long usernames 2022-09-12 02:33:41 +02:00
d531a3a2d3 Profile: Handle unassigned showcase slots
during profile rendering
2022-09-12 00:34:48 +02:00
2b682fc074 Profile: Composite profile using imagemagick
by spawning an external process. Very slow but it works.
2022-09-11 23:50:43 +02:00
1206251ff6 Profiles: Add user profile model and command 2022-09-05 23:22:36 +02:00