stuff
This commit is contained in:
parent
3378aab489
commit
9153b68114
|
@ -69,7 +69,7 @@ var PluginRepo = (_ => {
|
||||||
return class PluginRepo {
|
return class PluginRepo {
|
||||||
getName () {return "PluginRepo";}
|
getName () {return "PluginRepo";}
|
||||||
|
|
||||||
getVersion () {return "1.9.7";}
|
getVersion () {return "1.9.8";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ var PluginRepo = (_ => {
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"improved":[["Loading","Switched from using and iFrame to using an extra Browser Window to load the plugin list, should be faster too"]]
|
"fixed":[["Context Menu Update","Fixes for the context menu update, yaaaaaay"]]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
|
@ -274,8 +274,9 @@ var PluginRepo = (_ => {
|
||||||
onUserSettingsCogContextMenu (e) {
|
onUserSettingsCogContextMenu (e) {
|
||||||
BDFDB.TimeUtils.timeout(_ => {
|
BDFDB.TimeUtils.timeout(_ => {
|
||||||
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {props: [["label", "BandagedBD"]]});
|
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {props: [["label", "BandagedBD"]]});
|
||||||
if (index > -1) children[index].props.render.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItems.Item, {
|
if (index > -1 && BDFDB.ArrayUtils.is(children[index].props.children)) children[index].props.children.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.MenuItems.MenuItem, {
|
||||||
label: "Plugin Repo",
|
label: "Plugin Repo",
|
||||||
|
id: BDFDB.ContextMenuUtils.createItemId(this.name, "repo"),
|
||||||
action: _ => {
|
action: _ => {
|
||||||
if (!loading.is) BDFDB.ContextMenuUtils.close(e.instance);
|
if (!loading.is) BDFDB.ContextMenuUtils.close(e.instance);
|
||||||
this.openPluginRepoModal();
|
this.openPluginRepoModal();
|
||||||
|
|
|
@ -127,7 +127,7 @@ var ThemeRepo = (_ => {
|
||||||
return class ThemeRepo {
|
return class ThemeRepo {
|
||||||
getName () {return "ThemeRepo";}
|
getName () {return "ThemeRepo";}
|
||||||
|
|
||||||
getVersion () {return "1.9.7";}
|
getVersion () {return "1.9.8";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ var ThemeRepo = (_ => {
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"improved":[["Preview","Switched from using and iFrame to using an extra Browser Window to display the preview"]]
|
"fixed":[["Context Menu Update","Fixes for the context menu update, yaaaaaay"]]
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
|
@ -335,8 +335,9 @@ var ThemeRepo = (_ => {
|
||||||
onUserSettingsCogContextMenu (e) {
|
onUserSettingsCogContextMenu (e) {
|
||||||
BDFDB.TimeUtils.timeout(_ => {
|
BDFDB.TimeUtils.timeout(_ => {
|
||||||
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {props: [["label", "BandagedBD"]]});
|
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {props: [["label", "BandagedBD"]]});
|
||||||
if (index > -1) children[index].props.render.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItems.Item, {
|
if (index > -1 && BDFDB.ArrayUtils.is(children[index].props.children)) children[index].props.children.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.MenuItems.MenuItem, {
|
||||||
label: "Theme Repo",
|
label: "Theme Repo",
|
||||||
|
id: BDFDB.ContextMenuUtils.createItemId(this.name, "repo"),
|
||||||
action: _ => {
|
action: _ => {
|
||||||
if (!loading.is) BDFDB.ContextMenuUtils.close(e.instance);
|
if (!loading.is) BDFDB.ContextMenuUtils.close(e.instance);
|
||||||
this.openThemeRepoModal();
|
this.openThemeRepoModal();
|
||||||
|
|
Loading…
Reference in New Issue