fixes
This commit is contained in:
parent
ce53f15aeb
commit
f62e088cfd
|
@ -9375,7 +9375,7 @@
|
||||||
console.log(window.t);
|
console.log(window.t);
|
||||||
};
|
};
|
||||||
BDFDB.ModuleUtils.DevFuncs.findCodeAny = function (...strings) {
|
BDFDB.ModuleUtils.DevFuncs.findCodeAny = function (...strings) {
|
||||||
window.t = {"$filter":(m => [...strings].flat(10).filter(n => typeof n == "string").every(string => typeof m == "function" && (m.toString().indexOf(string) > -1 || typeof m.__originalMethod == "function" && m.__originalMethod.toString().indexOf(string) > -1 || typeof m.__originalFunction == "function" && m.__originalFunction.toString().indexOf(string) > -1) || BDFDB.ObjectUtils.is(m) && typeof m.type == "function" && m.type.toString().indexOf(string) > -1))};
|
window.t = {"$filter":(m => [...strings].flat(10).filter(n => typeof n == "string").map(string => string.toLowerCase()).every(string => typeof m == "function" && (m.toString().toLowerCase().indexOf(string) > -1 || typeof m.__originalMethod == "function" && m.__originalMethod.toString().toLowerCase().indexOf(string) > -1 || typeof m.__originalFunction == "function" && m.__originalFunction.toString().toLowerCase().indexOf(string) > -1) || BDFDB.ObjectUtils.is(m) && typeof m.type == "function" && m.type.toString().toLowerCase().indexOf(string) > -1))};
|
||||||
for (let i in BDFDB.ModuleUtils.DevFuncs.req.c) if (BDFDB.ModuleUtils.DevFuncs.req.c.hasOwnProperty(i)) {
|
for (let i in BDFDB.ModuleUtils.DevFuncs.req.c) if (BDFDB.ModuleUtils.DevFuncs.req.c.hasOwnProperty(i)) {
|
||||||
let m = BDFDB.ModuleUtils.DevFuncs.req.c[i].exports;
|
let m = BDFDB.ModuleUtils.DevFuncs.req.c[i].exports;
|
||||||
if (m && typeof m == "function" && window.t.$filter(m)) window.t["module_" + i] = {string:m.toString(), func:m};
|
if (m && typeof m == "function" && window.t.$filter(m)) window.t["module_" + i] = {string:m.toString(), func:m};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -69,13 +69,17 @@ var PluginRepo = (_ => {
|
||||||
return class PluginRepo {
|
return class PluginRepo {
|
||||||
getName () {return "PluginRepo";}
|
getName () {return "PluginRepo";}
|
||||||
|
|
||||||
getVersion () {return "1.9.2";}
|
getVersion () {return "1.9.3";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
getDescription () {return "Allows you to look at all plugins from the plugin repo and download them on the fly. Repo button is in the plugins settings.";}
|
getDescription () {return "Allows you to look at all plugins from the plugin repo and download them on the fly. Repo button is in the plugins settings.";}
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
|
this.changelog = {
|
||||||
|
"fixed":[["Show X","Filter options for the modal work again"]]
|
||||||
|
};
|
||||||
|
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
after: {
|
after: {
|
||||||
V2C_ContentColumn: "render"
|
V2C_ContentColumn: "render"
|
||||||
|
@ -459,9 +463,9 @@ var PluginRepo = (_ => {
|
||||||
state: plugin.getState
|
state: plugin.getState
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
if (!options.updated) plugins = plugins.filter(plugin => plugin.state == pluginStates.UPDATED);
|
if (!options.updated) plugins = plugins.filter(plugin => plugin.state != pluginStates.UPDATED);
|
||||||
if (!options.outdated) plugins = plugins.filter(plugin => plugin.state == pluginStates.OUTDATED);
|
if (!options.outdated) plugins = plugins.filter(plugin => plugin.state != pluginStates.OUTDATED);
|
||||||
if (!options.downloadable) plugins = plugins.filter(plugin => plugin.state == pluginStates.DOWNLOADABLE);
|
if (!options.downloadable) plugins = plugins.filter(plugin => plugin.state != pluginStates.DOWNLOADABLE);
|
||||||
if (options.searchString) plugins = plugins.filter(plugin => plugin.search.indexOf(options.searchString) > -1).map(plugin => Object.assign({}, plugin, {
|
if (options.searchString) plugins = plugins.filter(plugin => plugin.search.indexOf(options.searchString) > -1).map(plugin => Object.assign({}, plugin, {
|
||||||
name: BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(BDFDB.StringUtils.highlight(plugin.name, options.searchString))) || plugin.name,
|
name: BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(BDFDB.StringUtils.highlight(plugin.name, options.searchString))) || plugin.name,
|
||||||
version: BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(BDFDB.StringUtils.highlight(plugin.version, options.searchString))) || plugin.version,
|
version: BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(BDFDB.StringUtils.highlight(plugin.version, options.searchString))) || plugin.version,
|
||||||
|
|
|
@ -125,13 +125,17 @@ var ThemeRepo = (_ => {
|
||||||
return class ThemeRepo {
|
return class ThemeRepo {
|
||||||
getName () {return "ThemeRepo";}
|
getName () {return "ThemeRepo";}
|
||||||
|
|
||||||
getVersion () {return "1.9.1";}
|
getVersion () {return "1.9.3";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
getDescription () {return "Allows you to preview all themes from the theme repo and download them on the fly. Repo button is in the theme settings.";}
|
getDescription () {return "Allows you to preview all themes from the theme repo and download them on the fly. Repo button is in the theme settings.";}
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
|
this.changelog = {
|
||||||
|
"fixed":[["Show X","Filter options for the modal work again"]]
|
||||||
|
};
|
||||||
|
|
||||||
this.patchedModules = {
|
this.patchedModules = {
|
||||||
after: {
|
after: {
|
||||||
V2C_ContentColumn: "render"
|
V2C_ContentColumn: "render"
|
||||||
|
@ -685,9 +689,9 @@ var ThemeRepo = (_ => {
|
||||||
fullcss: theme.fullcss
|
fullcss: theme.fullcss
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
if (!options.updated) themes = themes.filter(theme => theme.state == themeStates.UPDATED);
|
if (!options.updated) themes = themes.filter(theme => theme.state != themeStates.UPDATED);
|
||||||
if (!options.outdated) themes = themes.filter(theme => theme.state == themeStates.OUTDATED);
|
if (!options.outdated) themes = themes.filter(theme => theme.state != themeStates.OUTDATED);
|
||||||
if (!options.downloadable) themes = themes.filter(theme => theme.state == themeStates.DOWNLOADABLE);
|
if (!options.downloadable) themes = themes.filter(theme => theme.state != themeStates.DOWNLOADABLE);
|
||||||
if (options.searchString) themes = themes.filter(theme => theme.search.indexOf(options.searchString) > -1).map(theme => Object.assign({}, theme, {
|
if (options.searchString) themes = themes.filter(theme => theme.search.indexOf(options.searchString) > -1).map(theme => Object.assign({}, theme, {
|
||||||
name: BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(BDFDB.StringUtils.highlight(theme.name, options.searchString))) || theme.name,
|
name: BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(BDFDB.StringUtils.highlight(theme.name, options.searchString))) || theme.name,
|
||||||
version: BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(BDFDB.StringUtils.highlight(theme.version, options.searchString))) || theme.version,
|
version: BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(BDFDB.StringUtils.highlight(theme.version, options.searchString))) || theme.version,
|
||||||
|
|
Loading…
Reference in New Issue