more flair

This commit is contained in:
Cynthia Foxwell 2018-07-11 20:17:42 -06:00
parent 64efb0f40e
commit e18fd377d3
4 changed files with 582 additions and 452 deletions

View File

@ -1,2 +1,3 @@
# Cynergy
A semi-private EndPwn3.1 repo.
# Lambda Legacy
The EndPwn 3.2 fork version of Lambda.

View File

@ -1,6 +1,4 @@
2018-05-20;;Cynergy {improved marginTop}
=====================
* Webcrack is fixed! (thanks dr1ft)
* New dependency/priority based plugin loading.
* New fancy plugins page, it does nothing yet.
# 2018-05-20;;Lambda {improved marginTop}
* Welcome to Lambda Legacy!
* Major things will eventually be pushed

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,7 @@ if (window.$api === undefined && typeof $api != "undefined") {
{
signature: /{section:(\w)\.SectionTypes\.DIVIDER},{section:"logout",/g,
payload:
'{section:$1.SectionTypes.DIVIDER},{section:"ENDPWN",label:"ΣndPwn Settings",element:window.BlankSettingsElement,color:"#0cc"},{section:$1.SectionTypes.DIVIDER},{section:"logout",'
'{section:$1.SectionTypes.DIVIDER},{section:"ENDPWN",label:"Lλmbda Settings",element:window.BlankSettingsElement,color:"#c080ff"},{section:$1.SectionTypes.DIVIDER},{section:"logout",'
}
]
},
@ -39,12 +39,6 @@ if (window.$api === undefined && typeof $api != "undefined") {
var currentSection = "";
/*$api.events.listen('ENDPWN_PSEUDO_IPC', msg => {
$api.localStorage.set('customizer_signature', JSON.parse(msg.data).signature);
console.log(currentSection);
renderSettings(currentSection);
});*/
window.BlankSettingsElement = $api.util.findConstructor(
"FormSection",
"FormSection"
@ -197,49 +191,6 @@ if (window.$api === undefined && typeof $api != "undefined") {
return w;
}
/*function authorizeCustomizer() {
var endpoint = $api.internal.constants.API_HOST;
var url = `https://${endpoint}/oauth2/authorize?client_id=436715820970803203&redirect_uri=https%3A%2F%2Fendpwn.cathoderay.tube%2Fauth%2Fdiscord%2Fintegratedcallback&response_type=code&scope=identify`;
var win = new window.electron.BrowserWindow({
width: 420,
height: 500,
transparent: false,
frame: false,
resizable: true,
nodeIntegration: true
});
win.loadURL(url);
}
function submitCustomizer(d, b) {
fetch('https://endpwn.cathoderay.tube/set', {
headers: {
'Content-type': 'application/json'
},
method: 'POST',
body: JSON.stringify({
id: $me(),
signature: $api.localStorage.get('customizer_signature'),
discriminator: d,
bot: b
})
}).then(r => {
r.text().then(k => {
$api.ui.showDialog({
title: 'Server Response',
body: k
});
});
endpwn.customizer.update();
});
}*/
function renderSettings(e) {
currentSection = e;
if ($("#ep_settings")) $("#ep_settings").remove();
@ -248,54 +199,16 @@ if (window.$api === undefined && typeof $api != "undefined") {
var pane = $(".content-column.default");
if (!pane) return;
//var needAuth = !$api.localStorage.get('customizer_signature');
var content = createElement("div")
.withId("ep_settings")
.withClass("flex-vertical")
.withChildren(
createElement("div")
.withClass("epSettingsHeader")
.withText("ΣndPwn Settings")
.withText("Lλmbda Settings")
)
.appendTo(pane);
/*if (!$api.localStorage.get('customizer_signature')) {
createHorizontalPanel()
.withChildren(
createButton("Authorize EndPwn Customizer")
.modify(x => x.onclick = authorizeCustomizer)
)
.appendTo(content);
}
else {
var discrim, bot;
createVerticalPanel()
.withChildren(
createH5('Discriminator'),
createHorizontalPanel()
.withChildren(
discrim = createInput(endpwn.customizer.me.discrim ? endpwn.customizer.me.discrim : '')
.withClass('epDiscrimField')
.modify(x => x.maxLength = 4),
createVerticalPanel()
.withChildren(
createH5('Bot?'),
bot = createSwitch(() => { }, endpwn.customizer.me.bot)
),
createButton("Submit")
.modify(x => x.onclick = () => submitCustomizer(discrim.value, bot.children[0].checked))
)
)
.appendTo(content);
}*/
createElement("div")
.withClass(panels.horizontal, "epButtonPanel")
.withChildren(
@ -311,21 +224,14 @@ if (window.$api === undefined && typeof $api != "undefined") {
createDangerButton("Uninstall EndPwn").modify(
x => (x.onclick = endpwn.uninstall)
)
/*createButton("Toggle Customizer")
.modify(x => x.onclick = function(){
window.____customizerToggled = !window.____customizerToggled;
$api.localStorage.set("customizerToggled",window.____customizerToggled);
const restart = confirm("For toggle to be in full effect, you will need to refresh. Press \"OK\" to refresh or \"Cancel\" to refresh later on your own.");
if (restart){
window.electron.getCurrentWindow().reload();
}
})*/
)
.appendTo(content);
}
}
$api.events.hook("USER_SETTINGS_MODAL_SET_SECTION", renderSettings);
$api.events.hook("USER_SETTINGS_MODAL_SET_SECTION", e =>
setTimeout(_ => renderSettings(e), 200)
);
$api.events.hook("USER_SETTINGS_MODAL_INIT", e =>
setTimeout(_ => renderSettings(e), 200)
);