-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bfa8cc
commit 38b679e
Showing
26 changed files
with
1,218 additions
and
1,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,95 @@ | ||
module.exports = { | ||
enUS: { | ||
name: "English", | ||
name: 'English', | ||
index: { | ||
feeds: ["Current Users", "CPU", "System Platform", "Server Count"], | ||
feeds: ['Current Users', 'CPU', 'System Platform', 'Server Count'], | ||
card: { | ||
category: "Soft UI", | ||
title: "Assistants - The center of everything", | ||
category: 'Soft UI', | ||
title: 'Assistants - The center of everything', | ||
description: | ||
"Assistants Discord Bot management panel. Assistants Bot was created to give others the ability to do what they want. Just.<br>That's an example text.<br><br><b><i>Feel free to use HTML</i></b>", | ||
footer: "Learn More", | ||
image: "/img/soft-ui.webp", | ||
linkText: "Learn more", | ||
footer: 'Learn More', | ||
image: '/img/soft-ui.webp', | ||
linkText: 'Learn more' | ||
}, | ||
feedsTitle: "Feeds", | ||
graphTitle: "Graphs", | ||
feedsTitle: 'Feeds', | ||
graphTitle: 'Graphs' | ||
}, | ||
manage: { | ||
settings: { | ||
memberCount: "Members", | ||
memberCount: 'Members', | ||
info: { | ||
info: "Info", | ||
server: "Server Information", | ||
}, | ||
}, | ||
info: 'Info', | ||
server: 'Server Information' | ||
} | ||
} | ||
}, | ||
privacyPolicy: { | ||
title: "Privacy Policy", | ||
description: "Privacy Policy and Terms of Service", | ||
title: 'Privacy Policy', | ||
description: 'Privacy Policy and Terms of Service' | ||
}, | ||
partials: { | ||
sidebar: { | ||
dash: "Dashboard", | ||
manage: "Manage Guilds", | ||
commands: "Commands", | ||
pp: "Privacy Policy", | ||
admin: "Admin", | ||
account: "Account Pages", | ||
login: "Sign In", | ||
logout: "Sign Out", | ||
dash: 'Dashboard', | ||
manage: 'Manage Guilds', | ||
commands: 'Commands', | ||
pp: 'Privacy Policy', | ||
admin: 'Admin', | ||
account: 'Account Pages', | ||
login: 'Sign In', | ||
logout: 'Sign Out' | ||
}, | ||
navbar: { | ||
home: "Home", | ||
home: 'Home', | ||
pages: { | ||
manage: "Manage Guilds", | ||
settings: "Manage Guilds", | ||
commands: "Commands", | ||
pp: "Privacy Policy", | ||
admin: "Admin Panel", | ||
error: "Error", | ||
credits: "Credits", | ||
debug: "Debug", | ||
leaderboard: "Leaderboard", | ||
profile: "Profile", | ||
maintenance: "Under Maintenance", | ||
}, | ||
manage: 'Manage Guilds', | ||
settings: 'Manage Guilds', | ||
commands: 'Commands', | ||
pp: 'Privacy Policy', | ||
admin: 'Admin Panel', | ||
error: 'Error', | ||
credits: 'Credits', | ||
debug: 'Debug', | ||
leaderboard: 'Leaderboard', | ||
profile: 'Profile', | ||
maintenance: 'Under Maintenance' | ||
} | ||
}, | ||
title: { | ||
pages: { | ||
manage: "Manage Guilds", | ||
settings: "Manage Guilds", | ||
commands: "Commands", | ||
pp: "Privacy Policy", | ||
admin: "Admin Panel", | ||
error: "Error", | ||
credits: "Credits", | ||
debug: "Debug", | ||
leaderboard: "Leaderboard", | ||
profile: "Profile", | ||
maintenance: "Under Maintenance", | ||
}, | ||
manage: 'Manage Guilds', | ||
settings: 'Manage Guilds', | ||
commands: 'Commands', | ||
pp: 'Privacy Policy', | ||
admin: 'Admin Panel', | ||
error: 'Error', | ||
credits: 'Credits', | ||
debug: 'Debug', | ||
leaderboard: 'Leaderboard', | ||
profile: 'Profile', | ||
maintenance: 'Under Maintenance' | ||
} | ||
}, | ||
preloader: { | ||
text: "Page is loading...", | ||
text: 'Page is loading...' | ||
}, | ||
premium: { | ||
title: "Want more from Assistants?", | ||
description: "Check out premium features below!", | ||
buttonText: "Become Premium", | ||
title: 'Want more from Assistants?', | ||
description: 'Check out premium features below!', | ||
buttonText: 'Become Premium' | ||
}, | ||
settings: { | ||
title: "Site Configuration", | ||
description: "Configurable Viewing Options", | ||
title: 'Site Configuration', | ||
description: 'Configurable Viewing Options', | ||
theme: { | ||
title: "Site Theme", | ||
description: "Make the site more appealing for your eyes!", | ||
title: 'Site Theme', | ||
description: 'Make the site more appealing for your eyes!' | ||
}, | ||
language: { | ||
title: "Site Language", | ||
description: "Select your preferred language!", | ||
}, | ||
}, | ||
}, | ||
}, | ||
title: 'Site Language', | ||
description: 'Select your preferred language!' | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
const Nodeactyl = require("nodeactyl") | ||
const Nodeactyl = require('nodeactyl') | ||
|
||
const npmUpdater = require("../../utils/updater/npm") | ||
const fileUpdater = require("../../utils/updater/files") | ||
const npmUpdater = require('../../utils/updater/npm') | ||
const fileUpdater = require('../../utils/updater/files') | ||
|
||
module.exports = { | ||
page: "/control", | ||
page: '/control', | ||
execute: async (req, res, app, config, themeConfig, info) => { | ||
const pterodactyl = new Nodeactyl.NodeactylClient( | ||
themeConfig.admin.pterodactyl.panelLink, | ||
themeConfig.admin.pterodactyl.apiKey | ||
) | ||
const { uuid, action } = req.query | ||
if (!uuid && action && req.query.type) { | ||
if (req.query.type === "npm") await npmUpdater.update() | ||
if (req.query.type === "live") await fileUpdater.update() | ||
return res.redirect("/admin?result=true") | ||
if (req.query.type === 'npm') await npmUpdater.update() | ||
if (req.query.type === 'live') await fileUpdater.update() | ||
return res.redirect('/admin?result=true') | ||
} | ||
if (!uuid || !action) return res.sendStatus(412) | ||
|
||
try { | ||
if (action === "start") await pterodactyl.startServer(uuid) | ||
if (action === "restart") await pterodactyl.restartServer(uuid) | ||
if (action === "stop") await pterodactyl.stopServer(uuid) | ||
if (action === "kill") await pterodactyl.killServer(uuid) | ||
if (action === 'start') await pterodactyl.startServer(uuid) | ||
if (action === 'restart') await pterodactyl.restartServer(uuid) | ||
if (action === 'stop') await pterodactyl.stopServer(uuid) | ||
if (action === 'kill') await pterodactyl.killServer(uuid) | ||
} catch (error) { | ||
console.error(error) | ||
return res.redirect("/admin?result=false") | ||
return res.redirect('/admin?result=false') | ||
} | ||
return res.redirect("/admin?result=true") | ||
}, | ||
return res.redirect('/admin?result=true') | ||
} | ||
} |
Oops, something went wrong.