commit
7add5afc30
|
@ -11,7 +11,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const styles = require('./styles/index.scss');
|
const styles = require('./styles/index.scss');
|
||||||
const { Global, Logger, Utils, PluginManager, BDIpc, WebpackModules, SocketProxy, Events, CssEditor } = require('./modules');
|
const { Global, Logger, Utils, PluginManager, BDIpc, WebpackModules, SocketProxy, Events } = require('./modules');
|
||||||
//const { UI } = require('./modules/ui/index.jsx');
|
//const { UI } = require('./modules/ui/index.jsx');
|
||||||
|
|
||||||
class BetterDiscord {
|
class BetterDiscord {
|
||||||
|
@ -19,7 +19,6 @@ class BetterDiscord {
|
||||||
constructor() {
|
constructor() {
|
||||||
window.bdUtils = Utils;
|
window.bdUtils = Utils;
|
||||||
window.wpm = WebpackModules;
|
window.wpm = WebpackModules;
|
||||||
window.cssEditor = CssEditor;
|
|
||||||
Events.on('global-ready', e => {
|
Events.on('global-ready', e => {
|
||||||
const { UI } = require('./modules/ui/vueui.js');
|
const { UI } = require('./modules/ui/vueui.js');
|
||||||
this.ui = new UI();
|
this.ui = new UI();
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<template src="./templates/BdSettings.html"></template>
|
<template src="./templates/BdSettings.html"></template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
const { CssEditor } = require('../../../');
|
||||||
/*Imports*/
|
/*Imports*/
|
||||||
import { SidebarView, Sidebar, SidebarItem, ContentColumn } from './sidebar';
|
import { SidebarView, Sidebar, SidebarItem, ContentColumn } from './sidebar';
|
||||||
import { CoreSettings, UISettings, EmoteSettings, PluginsView } from './bd';
|
import { CoreSettings, UISettings, EmoteSettings, PluginsView } from './bd';
|
||||||
|
@ -20,6 +21,10 @@
|
||||||
|
|
||||||
/*Methods*/
|
/*Methods*/
|
||||||
function itemOnClick(id) {
|
function itemOnClick(id) {
|
||||||
|
if (id === 3) {
|
||||||
|
CssEditor.show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.animating || id === this.activeIndex) return;
|
if (this.animating || id === this.activeIndex) return;
|
||||||
if (this.activeIndex >= 0) this.sidebarItems.find(item => item.id === this.activeIndex).active = false;
|
if (this.activeIndex >= 0) this.sidebarItems.find(item => item.id === this.activeIndex).active = false;
|
||||||
this.sidebarItems.find(item => item.id === id).active = true;
|
this.sidebarItems.find(item => item.id === id).active = true;
|
||||||
|
|
Loading…
Reference in New Issue