%- include('partials/preloader.ejs', {now: 'debug'}) %>
<%
let seconds = Math.round(rawUptime % 60);
if (seconds > 59) seconds = Math.round(seconds % 60);
let minutes = Math.floor(rawUptime / 60);
let hours = Math.floor(minutes / 60);
let days = Math.floor(hours / 24);
minutes = minutes % 60;
hours = hours % 24;
let filterUptime = `${days}d, ${hours}h, ${minutes}m, ${seconds}s`;
if (!days) filterUptime = `${hours}h, ${minutes}m, ${seconds}s`;
if (!hours) filterUptime = `${minutes}m, ${seconds}s`;
if (!minutes) filterUptime = `${seconds}s`;
let modified = 0;
if (onlineFiles.index.replace(/\s+/g, '') !== localFiles.index.replace(/\s+/g, '')) modified++;
if (onlineFiles.guild.replace(/\s+/g, '') !== localFiles.guild.replace(/\s+/g, '')) modified++;
if (onlineFiles.guilds.replace(/\s+/g, '') !== localFiles.guilds.replace(/\s+/g, '')) modified++;
const info = []
const versions = []
if (modified !== 0) modded = "true"
else modded = "false"
let information = [
{name: "Theme", value: "Soft UI Theme"},
{name: "Modified", value: `${modded}`},
{name: "License Type", value: `${license}`},
{name: "Uptime", value: `${filterUptime}`},
{name: "Permissions", value: req.requiredPermissions},
{name: "Redirect URI", value: `${config.redirectUri?.includes("/discord/callback")}`}
]
let modules = [
{name: "Node JS", version: `${nodeVersion.split("v")[1]}`},
{name: "Discord JS", version: `${discordVersion}`, npm: "discord.js"},
{name: "Discord Dashboard", version: `${dbdVersion}`, npm: "discord-dashboard"},
{name: "Theme", version: `${themeVersion}`, npm: "soft-ui"},
]
onlineV.forEach(online => {
const current = localV[online.name];
const latest = online.version;
const name = online.name;
versions.push({name: name, current: current, latest: latest})
});
const settings = config.settings
let debug = {information, modules, versions, settings, themeConfig}
var data = "text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(debug));
%>
<%- themeConfig?.customHtml %>
<%- include('partials/preload.ejs') %>
<%- include('partials/sidebar.ejs', {config: config, now:'debug'}) %>
<%- include('partials/navbar.ejs', {now:'debug'}) %>
Node JS
Version
<%- nodeVersion.split("v")[1] %>
Discord.JS
Version
<%- discordVersion %>
Discord Dashboard
Version
<%- dbdVersion %>
Theme
Version
<%- themeVersion %>
<% if(modified !== 0){ %>
This theme has been modified!
<% } else{ %>
This theme has not been modified!
<% } %>
<% if (license == "opensource") { %>
License type: <%- license %>
<% } else if (license == "personal") { %>
License type: <%- license %>
<% } else if (license == "production") { %>
License type: <%- license %>
<% } else { %>
License type: Unknown
<% } %>
<% onlineV.forEach(online => { %>
<%
const latest = onlineV[online.version];
const current = localV[online.name];
const newest = online.version;
%>
|
|
|
Latest:
<%
let update = true;
if (newest > current) update = true;
if (newest == current) update = false;
%>
<% if (update) { %>
<%- online.version %>
<% } else { %>
<%- online.version %>
<% } %>
|
<% }) %>
<%- include('partials/footer.ejs') %>
<%- include('partials/scripts.ejs', {now: "debug"}) %>