%- 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; 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: "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"}, ] 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"}) %>