diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..35c483d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "files.eol": "\n" +} \ No newline at end of file diff --git a/COPYING b/COPYING index e72bfdd..78651f6 100644 --- a/COPYING +++ b/COPYING @@ -657,7 +657,7 @@ notice like this when it starts in an interactive mode: This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. -The hypothetical commands `show w' and `show c' should show the appropriate +The hypothetical commands `show w' and`show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". @@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read -. \ No newline at end of file +. diff --git a/src/front-end/account/login.ejs b/src/front-end/account/login.ejs index e029d86..602b524 100644 --- a/src/front-end/account/login.ejs +++ b/src/front-end/account/login.ejs @@ -1,71 +1,71 @@ - - - - <%- - await include('../partials/meta', { - title: "Login", - }); - %> - - - - <%- - await include('../partials/header', { - }); - %> -
-
- <% if (error) { %> -
-

<%= error %>

-
- <% } %> -
-
-
-
-

Sign in with

-
-
-
-
- <% for (let i = 0; i < 1; i++) { %> -
- - Discord - Discord - -
- <% } %> -
-
-
-
-
-
-
-
- + + + + <%- + await include('../partials/meta', { + title: "Login", + }); + %> + + + + <%- + await include('../partials/header', { + }); + %> +
+
+ <% if (error) { %> +
+

<%= error %>

+
+ <% } %> +
+
+
+
+

Sign in with

+
+
+
+
+ <% for (let i = 0; i < 1; i++) { %> +
+ + Discord + Discord + +
+ <% } %> +
+
+
+
+
+
+
+
+ \ No newline at end of file diff --git a/src/front-end/capes/view/minecraft.ejs b/src/front-end/capes/view/minecraft.ejs index a13e9f6..03550d3 100644 --- a/src/front-end/capes/view/minecraft.ejs +++ b/src/front-end/capes/view/minecraft.ejs @@ -1,120 +1,120 @@ - - - - <%- - await include('../../partials/meta', { - title: `Minecraft Cape | ${cape.capeId}`, - }); - %> - - - <%- - await include('../../partials/header', { - }); - %> -
-
-
-
-
-

Cape Information

-
-
-
-
-
First Cached
-
-
-
-
Players
-
<%= userLength ?? '0' %>
-
-
-
-
- <% if (true) { // ads %> -
-
-
-

Advertisement

-
-
- - - -
-
- <% } %> -
-
-
- -
-
- - -
-
-
-
-
-

<%= cape.title %>

-
-
-
-
-
- <%- cape.description ? cape.description : "No description was set." %> -
-
-
-
-
- <% if (true) { // ads %> -
-
-
-

Advertisement

-
-
- - - -
-
- <% } %> -
-
-
-
-
users<%# getLocaleString(language, 'capes', 'users') %>
-
- <% for (let i = 0; i < users.length; i++) { %> - <% const user = users[i]; %> - <% if (user) { %> - href="/user/<%= user.username %>.<%= await getUserNameIndex(user.username, user.uuid) + 1 %>"> - <%= user.username %> - <%# getEmoji(user, '20') %> - - <% } %> - <% } %> - <% if (more) { %> - ... - <% } %> -
- -
-
-
- - - - - + + + + <%- + await include('../../partials/meta', { + title: `Minecraft Cape | ${cape.capeId}`, + }); + %> + + + <%- + await include('../../partials/header', { + }); + %> +
+
+
+
+
+

Cape Information

+
+
+
+
+
First Cached
+
+
+
+
Players
+
<%= userLength ?? '0' %>
+
+
+
+
+ <% if (true) { // ads %> +
+
+
+

Advertisement

+
+
+ + + +
+
+ <% } %> +
+
+
+ +
+
+ + +
+
+
+
+
+

<%= cape.title %>

+
+
+
+
+
+ <%- cape.description ? cape.description : "No description was set." %> +
+
+
+
+
+ <% if (true) { // ads %> +
+
+
+

Advertisement

+
+
+ + + +
+
+ <% } %> +
+
+
+
+
users<%# getLocaleString(language, 'capes', 'users') %>
+
+ <% for (let i = 0; i < users.length; i++) { %> + <% const user = users[i]; %> + <% if (user) { %> + href="/user/<%= user.username %>.<%= await getUserNameIndex(user.username, user.uuid) + 1 %>"> + <%= user.username %> + <%# getEmoji(user, '20') %> + + <% } %> + <% } %> + <% if (more) { %> + ... + <% } %> +
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/src/front-end/capes/view/optifine.ejs b/src/front-end/capes/view/optifine.ejs index 733a615..37ae78e 100644 --- a/src/front-end/capes/view/optifine.ejs +++ b/src/front-end/capes/view/optifine.ejs @@ -1,96 +1,96 @@ - - - - <%- - await include('../../partials/meta', { - title: "OptiFine Cape | " + banner.bannerId, - }); - %> - - - <%- - await include('../../partials/header', { - }); - %> -
-
-
-
-
-

Cape Information

-
-
-
-
-
First Cached
-
-
- <% if (banner.cleanUrl) { %> -
-
Banner URL
-
- <% if (banner.isBanner) { %> - <%= cape.cleanUrl %> - <% } else { %> -

In moderation queue.

- <% } %> -
-
- <% } %> -
-
Players
-
<%= length %>
-
-
-
-
-
-
-
- -
-
- - -
-
- <% if (true) { // ads %> -
-
- - - -
- <% } %> -
- -
-
-
Users
-
- <% for (let i = 0; i < profiles.length; i++) { %> - <% const account = profiles[i]; %> - ><%= account.username %><%# getEmoji(account, '22') %> - <% } %> - <% if (hasMore) { %> - ... - <% } %> -
-
- <% if (banner.isBanner && banner.cleanUrl) { %> - Banner Editor - <% } %> -
- Download Cape -
-
-
-
- - - - - + + + + <%- + await include('../../partials/meta', { + title: "OptiFine Cape | " + banner.bannerId, + }); + %> + + + <%- + await include('../../partials/header', { + }); + %> +
+
+
+
+
+

Cape Information

+
+
+
+
+
First Cached
+
+
+ <% if (banner.cleanUrl) { %> +
+
Banner URL
+
+ <% if (banner.isBanner) { %> + <%= cape.cleanUrl %> + <% } else { %> +

In moderation queue.

+ <% } %> +
+
+ <% } %> +
+
Players
+
<%= length %>
+
+
+
+
+
+
+
+ +
+
+ + +
+
+ <% if (true) { // ads %> +
+
+ + + +
+ <% } %> +
+ +
+
+
Users
+
+ <% for (let i = 0; i < profiles.length; i++) { %> + <% const account = profiles[i]; %> + ><%= account.username %><%# getEmoji(account, '22') %> + <% } %> + <% if (hasMore) { %> + ... + <% } %> +
+
+ <% if (banner.isBanner && banner.cleanUrl) { %> + Banner Editor + <% } %> +
+ Download Cape +
+
+
+
+ + + + + \ No newline at end of file diff --git a/src/front-end/partials/header.ejs b/src/front-end/partials/header.ejs index 48b895d..30051bd 100644 --- a/src/front-end/partials/header.ejs +++ b/src/front-end/partials/header.ejs @@ -1,83 +1,83 @@ -<% - if (typeof formValue == 'undefined') formValue = null; - - function getButtonStyle(page) { - if (currentPage == page) return "bg-blue-900 text-white" - return "dark:hover:bg-gray-800 hover:bg-gray-200" - } -%> - - +<% + if (typeof formValue == 'undefined') formValue = null; + + function getButtonStyle(page) { + if (currentPage == page) return "bg-blue-900 text-white" + return "dark:hover:bg-gray-800 hover:bg-gray-200" + } +%> + + diff --git a/src/front-end/search.ejs b/src/front-end/search.ejs index 0090410..49bfa38 100644 --- a/src/front-end/search.ejs +++ b/src/front-end/search.ejs @@ -1,61 +1,61 @@ -<% - async function generateHTML(user) { - return ` -
-
-
-
- -
-
-
${user.uuid}
-

- ${user.username} -

-
-
-
-
- `; - } -%> - - - - <%- - await include('partials/meta', { - title: "Search Results for " + searchedName, - }); - %> - - - <%- - await include('partials/header', { - }); - %> -
- -
-
-
-
- <% for (let i = 0; i < currentUsers.length; i++) { %> - <% const user = currentUsers[i]; %> - <%- await generateHTML(user); %> - <% } %> - <% for (let i = 0; i < pastUsers.length; i++) { %> - <% const user = pastUsers[i]; %> - <%- await generateHTML(user); %> - <% } %> -
-
-
-
- +<% + async function generateHTML(user) { + return ` +
+
+
+
+ +
+
+
${user.uuid}
+

+ ${user.username} +

+
+
+
+
+ `; + } +%> + + + + <%- + await include('partials/meta', { + title: "Search Results for " + searchedName, + }); + %> + + + <%- + await include('partials/header', { + }); + %> +
+ +
+
+
+
+ <% for (let i = 0; i < currentUsers.length; i++) { %> + <% const user = currentUsers[i]; %> + <%- await generateHTML(user); %> + <% } %> + <% for (let i = 0; i < pastUsers.length; i++) { %> + <% const user = pastUsers[i]; %> + <%- await generateHTML(user); %> + <% } %> +
+
+
+
+ \ No newline at end of file diff --git a/src/front-end/skins/index.ejs b/src/front-end/skins/index.ejs index 26ce8e7..e542b35 100644 --- a/src/front-end/skins/index.ejs +++ b/src/front-end/skins/index.ejs @@ -1,89 +1,89 @@ -<% - const config = { - CLASS: "px-4 rounded bg-gray-100 dark:bg-gray-900 ml-[5px] py-1 font-semibold border-2 border-indigo-600/50 dark:border-indigo-500/50 hover:underline", - ACTIVECLASS: "border-indigo-600/100 dark:border-indigo-500/100", - } -%> - - - - - - <%- - await include('../partials/meta.ejs', { - title: 'Minecraft Skins | LivzMC' - }); - %> - - - <%- - await include('../partials/header.ejs', { - }); - %> -
-
-
"> - Recent -
-
"> - Random -
-
-
-
-
- <% if (true) { // ads %> -
-
-

Advertisement

-
-
- -
-
- <% } %> -
-
-
-
-
- <% for (let i = 0; i < skins.length; i++) { %> - <% - const skin = skins[i]; - const SKINUSER = skin.recentUser; - %> -
- <% if (SKINUSER && !random) { %> - - <% } %> -
- - - -
-
- <% } %> -
-
-
-
-
- <% if (true) { // ads %> -
-
-

Advertisement

-
-
- -
-
- <% } %> -
-
- +<% + const config = { + CLASS: "px-4 rounded bg-gray-100 dark:bg-gray-900 ml-[5px] py-1 font-semibold border-2 border-indigo-600/50 dark:border-indigo-500/50 hover:underline", + ACTIVECLASS: "border-indigo-600/100 dark:border-indigo-500/100", + } +%> + + + + + + <%- + await include('../partials/meta.ejs', { + title: 'Minecraft Skins | LivzMC' + }); + %> + + + <%- + await include('../partials/header.ejs', { + }); + %> +
+
+
"> + Recent +
+
"> + Random +
+
+
+
+
+ <% if (true) { // ads %> +
+
+

Advertisement

+
+
+ +
+
+ <% } %> +
+
+
+
+
+ <% for (let i = 0; i < skins.length; i++) { %> + <% + const skin = skins[i]; + const SKINUSER = skin.recentUser; + %> +
+ <% if (SKINUSER && !random) { %> + + <% } %> +
+ + + +
+
+ <% } %> +
+
+
+
+
+ <% if (true) { // ads %> +
+
+

Advertisement

+
+
+ +
+
+ <% } %> +
+
+ \ No newline at end of file diff --git a/src/front-end/skins/skin.ejs b/src/front-end/skins/skin.ejs index 5518b66..522e484 100644 --- a/src/front-end/skins/skin.ejs +++ b/src/front-end/skins/skin.ejs @@ -1,91 +1,91 @@ - - - - - - <%- - await include('../partials/meta.ejs', { - title: 'Minecraft Skin | ' + skin.skinId, - }); - %> - - - <%- - await include('../partials/header.ejs', { - }); - %> -
-
-
-
-

<%= await getLocaleString(language, 'skins', 'skin.stats') %>

-
-
- -
-
-
<%= await getLocaleString(language, 'skins', 'cached.on') %>
-
- -
-
-
-
-
-
-
-
-
- -
-
-
- -
-
- -
- <% if (true) { // ads %> - -
-
-

Advertisement

-
-
- -
-
- <% } %> -
-
-
-
-
-
-
<%= await getLocaleString(language, 'skins', 'users') %>
-
- <% for (let i = 0; i < users.length; i++) { %> - <% const user = users[i]; %> - <% if (!user.hidden) { %> - - > - <%= user.profiles_username %> - <% if (user.enabledEmoji) { %> - <%# getEmoji(user, '22') %> - <% } %> - - <% } %> - <% } %> - <%- hasMoreUsers ? "\n..." : "" %> -
- -
-
- - + + + + + + <%- + await include('../partials/meta.ejs', { + title: 'Minecraft Skin | ' + skin.skinId, + }); + %> + + + <%- + await include('../partials/header.ejs', { + }); + %> +
+
+
+
+

<%= await getLocaleString(language, 'skins', 'skin.stats') %>

+
+
+ +
+
+
<%= await getLocaleString(language, 'skins', 'cached.on') %>
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+ +
+
+ +
+ <% if (true) { // ads %> + +
+
+

Advertisement

+
+
+ +
+
+ <% } %> +
+
+
+
+
+
+
<%= await getLocaleString(language, 'skins', 'users') %>
+
+ <% for (let i = 0; i < users.length; i++) { %> + <% const user = users[i]; %> + <% if (!user.hidden) { %> + + > + <%= user.profiles_username %> + <% if (user.enabledEmoji) { %> + <%# getEmoji(user, '22') %> + <% } %> + + <% } %> + <% } %> + <%- hasMoreUsers ? "\n..." : "" %> +
+ +
+
+ + \ No newline at end of file diff --git a/src/front-end/users/viewUser.ejs b/src/front-end/users/viewUser.ejs index 3dee1d7..213eb35 100644 --- a/src/front-end/users/viewUser.ejs +++ b/src/front-end/users/viewUser.ejs @@ -1,287 +1,287 @@ -<% - let BORDER = "transition border-2 duration-200 border-gray-200 hover:border-gray-300 dark:border-gray-700 dark:hover:border-gray-900 bg-gray-100 dark:bg-gray-900"; - // if (linkedAcc && linkedAcc.prideBorder) BORDER = linkedAcc.prideBorder; -%> - - - - <%- - await include('../partials/meta', { - title: `${profile.username}'${!profile.username.endsWith('s') ? 's' : ''} Profile`, - }); - %> - - - - <%- - await include('../partials/header', { - }); - %> -
-
-

<%= profile.username %>

-
- Privacy -
- <% if (profile.optOut) { %> -
-
Archived
-
- <% } %> -
-
-
- -
- -
-
- -
-

- <%= await getLocaleString(language, 'user', 'account.information'); %> -

-
- -
-
-
-
<%= await getLocaleString(language, 'user', 'first.cached') %>
-
- -
-
-
-
-
-
UUID
-
- <%= profile.uuid %> -
- <%= dashedUUID %> -
-
-
-
-
-
<%= await getLocaleString(language, 'user', 'views') %>
-
- <%# monthlyViews %> -
-
-
-
-
-
- -
-
-
-
- - - - -
-
- -
- <% if (profile.skins.length > 0) { %> - - - <% } %> - <% if (profile.capes && profile.capes.length > 0) { %> -
- -
-
-

- <%= await getLocaleString(language, 'user', 'minecraft.capes') %> -

-
-
-
- <% for (let i = 0; i < profile.capes.length; i++) { %> - <% const cape = profile.capes[i]; %> - <% if (cape.hidden == 0) { %> -
- - <%= cape.capeId %> - -
- <% } %> - <% } %> -
-
-
- <% } %> - <% if (profile.names && profile.names.length > 0) { %> -
- -
-
-
- - - <% for (let i = 0; i < profile.names.length; i++) { %> - <% const name = profile.names[i]; %> - <% if (!name.hidden) { %> - - - - - - - <% } %> - <% } %> - -
<%= nameLength - i %> - <% if (name.username) { %> - - <%= name.username %> - - <% } else { %> -

-

- <% } %> -
- <% if (name.changedToAt) { %> - -
- <% if (name.diff) { %> - ± <%= name.giveOrTake %> - <% } %> - <% } %> -
- <% if (name.changedToAt) { %> - ~<%= name.formattedChanged %> - <% } %> -
-
-
- <% } %> - <% if (profile.ofCapes && profile.ofCapes.length > 0) { %> -
- -
- -
-
- <% for (let i = 0; i < profile.ofCapes.length; i++) { %> - <% const cape = profile.ofCapes[i]; %> - <% if (cape && !cape.hidden) { %> - -
- cape="OF/<%= cape.removed ? '{{defaultCape.capeId}}' : cape.capeId %>" src="" alt="<%= cape.capeId %>" data-time-title="<%= new Date(cape.cachedOn).getTime() %>"> -
-
- <% } %> - <% } %> -
-
-
- <% } %> - <% if (profile.MCCapes && profile.MCCapes.length > 0) { %> -
- -
- -
-
- <% for (let i = 0; i < profile.MCCapes.length; i++) { %> - <% const cape = profile.MCCapes[i]; %> - <% if (cape && !cape.hidden) { %> - -
- cape="MC/<%= cape.capeId %>" src="" alt="<%= cape.capeId %>" data-time-title="<%= new Date(cape.cachedOn).getTime() %>"> -
-
- <% } %> - <% } %> -
-
-
- <% } %> - <% if (profile.lbCapes && profile.lbCapes.length > 0) { %> -
- -
- -
-
- <% for (let i = 0; i < profile.lbCapes.length; i++) { %> - <% const cape = profile.lbCapes[i]; %> - <% if (cape && !cape.hidden) { %> - -
- cape="LB/<%= cape.capeId %>" src="" alt="<%= cape.capeId %>" data-time-title="<%= new Date(cape.cachedOn).getTime() %>"> -
-
- <% } %> - <% } %> -
-
-
- <% } %> -
-
-
-
-
- - - - - - - +<% + let BORDER = "transition border-2 duration-200 border-gray-200 hover:border-gray-300 dark:border-gray-700 dark:hover:border-gray-900 bg-gray-100 dark:bg-gray-900"; + // if (linkedAcc && linkedAcc.prideBorder) BORDER = linkedAcc.prideBorder; +%> + + + + <%- + await include('../partials/meta', { + title: `${profile.username}'${!profile.username.endsWith('s') ? 's' : ''} Profile`, + }); + %> + + + + <%- + await include('../partials/header', { + }); + %> +
+
+

<%= profile.username %>

+
+ Privacy +
+ <% if (profile.optOut) { %> +
+
Archived
+
+ <% } %> +
+
+
+ +
+ +
+
+ +
+

+ <%= await getLocaleString(language, 'user', 'account.information'); %> +

+
+ +
+
+
+
<%= await getLocaleString(language, 'user', 'first.cached') %>
+
+ +
+
+
+
+
+
UUID
+
+ <%= profile.uuid %> +
+ <%= dashedUUID %> +
+
+
+
+
+
<%= await getLocaleString(language, 'user', 'views') %>
+
+ <%# monthlyViews %> +
+
+
+
+
+
+ +
+
+
+
+ + + + +
+
+ +
+ <% if (profile.skins.length > 0) { %> + + + <% } %> + <% if (profile.capes && profile.capes.length > 0) { %> +
+ +
+
+

+ <%= await getLocaleString(language, 'user', 'minecraft.capes') %> +

+
+
+
+ <% for (let i = 0; i < profile.capes.length; i++) { %> + <% const cape = profile.capes[i]; %> + <% if (cape.hidden == 0) { %> +
+ + <%= cape.capeId %> + +
+ <% } %> + <% } %> +
+
+
+ <% } %> + <% if (profile.names && profile.names.length > 0) { %> +
+ +
+
+
+ + + <% for (let i = 0; i < profile.names.length; i++) { %> + <% const name = profile.names[i]; %> + <% if (!name.hidden) { %> + + + + + + + <% } %> + <% } %> + +
<%= nameLength - i %> + <% if (name.username) { %> + + <%= name.username %> + + <% } else { %> +

-

+ <% } %> +
+ <% if (name.changedToAt) { %> + +
+ <% if (name.diff) { %> + ± <%= name.giveOrTake %> + <% } %> + <% } %> +
+ <% if (name.changedToAt) { %> + ~<%= name.formattedChanged %> + <% } %> +
+
+
+ <% } %> + <% if (profile.ofCapes && profile.ofCapes.length > 0) { %> +
+ +
+ +
+
+ <% for (let i = 0; i < profile.ofCapes.length; i++) { %> + <% const cape = profile.ofCapes[i]; %> + <% if (cape && !cape.hidden) { %> + +
+ cape="OF/<%= cape.removed ? '{{defaultCape.capeId}}' : cape.capeId %>" src="" alt="<%= cape.capeId %>" data-time-title="<%= new Date(cape.cachedOn).getTime() %>"> +
+
+ <% } %> + <% } %> +
+
+
+ <% } %> + <% if (profile.MCCapes && profile.MCCapes.length > 0) { %> +
+ +
+ +
+
+ <% for (let i = 0; i < profile.MCCapes.length; i++) { %> + <% const cape = profile.MCCapes[i]; %> + <% if (cape && !cape.hidden) { %> + +
+ cape="MC/<%= cape.capeId %>" src="" alt="<%= cape.capeId %>" data-time-title="<%= new Date(cape.cachedOn).getTime() %>"> +
+
+ <% } %> + <% } %> +
+
+
+ <% } %> + <% if (profile.lbCapes && profile.lbCapes.length > 0) { %> +
+ +
+ +
+
+ <% for (let i = 0; i < profile.lbCapes.length; i++) { %> + <% const cape = profile.lbCapes[i]; %> + <% if (cape && !cape.hidden) { %> + +
+ cape="LB/<%= cape.capeId %>" src="" alt="<%= cape.capeId %>" data-time-title="<%= new Date(cape.cachedOn).getTime() %>"> +
+
+ <% } %> + <% } %> +
+
+
+ <% } %> +
+
+
+
+
+ + + + + + + \ No newline at end of file