Merge pull request 'Merge cleanup branch into master' (#3) from cleanup into master
Reviewed-on: #3master
commit
3991729857
File diff suppressed because one or more lines are too long
@ -1,7 +1,5 @@
|
||||
#Passes configuration directly into rollup-plugin-jscc, refer to it's documentation for more details
|
||||
|
||||
[values]
|
||||
_DEBUG = 0 #enables debug logs
|
||||
_ANALYTICS = 0 #enables analytics nagging
|
||||
_TOKEN = 0 #enables the valentino token logging easter egg (untested, no clue if it actually works)
|
||||
_DEBUG = 0 #enables debug logs
|
||||
_CORS_URL = "https://cors.ruthenic.com/"
|
@ -1,9 +0,0 @@
|
||||
import modals from "./utils/modals";
|
||||
|
||||
/* demon.summon("utils/modals").openConfirmModal("Test Modal", "confirm", {
|
||||
header: "Demoncord"
|
||||
}) */
|
||||
|
||||
export default {
|
||||
init: () => {}
|
||||
};
|
@ -1,57 +0,0 @@
|
||||
import { React, nests, nestsReact } from "../../common";
|
||||
import { toggle } from "../../plugin";
|
||||
import webpack from "../../webpack";
|
||||
|
||||
const Checkbox = webpack.findByDisplayName("Checkbox");
|
||||
|
||||
interface HummusUI extends React.Component {
|
||||
state: { tg: number }; //we love jank!
|
||||
}
|
||||
|
||||
class HummusUI extends React.Component {
|
||||
constructor(props: any) {
|
||||
super(props);
|
||||
this.state = {
|
||||
tg: 0
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
const extNest = demon.summon("internal/nest");
|
||||
return (
|
||||
<div className="control-group demon-settings-card-header">
|
||||
<label className="demon-settings-header-size30">Plugins</label>
|
||||
{Object.keys(extNest.ghost.plugins).map((k) => {
|
||||
return (
|
||||
<div className="demon-settings-card-base">
|
||||
<span>
|
||||
<Checkbox
|
||||
className={`demon-stub-plugin-checkbox-${k}`}
|
||||
checked={extNest.ghost.plugins[k].enabled}
|
||||
onChange={async () => {
|
||||
toggle(k);
|
||||
const ele =
|
||||
document.getElementsByClassName(
|
||||
`demon-stub-plugin-checkbox-${k}`
|
||||
)[0] as HTMLInputElement;
|
||||
//ele.value = extNest.ghost.pluginsStatus[k].running
|
||||
if (!extNest.ghost.plugins[k].enabled) {
|
||||
ele.value = "on";
|
||||
} else {
|
||||
ele.value = "off";
|
||||
}
|
||||
this.setState({ tg: !this.state.tg });
|
||||
}}
|
||||
>
|
||||
{k}
|
||||
</Checkbox>
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default HummusUI;
|
Loading…
Reference in new issue