This commit is contained in:
Mirco Wittrien 2020-03-15 15:46:55 +01:00
parent ce53f15aeb
commit f62e088cfd
4 changed files with 18 additions and 10 deletions

View File

@ -9375,7 +9375,7 @@
console.log(window.t);
};
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)) {
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};

File diff suppressed because one or more lines are too long

View File

@ -69,13 +69,17 @@ var PluginRepo = (_ => {
return class PluginRepo {
getName () {return "PluginRepo";}
getVersion () {return "1.9.2";}
getVersion () {return "1.9.3";}
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.";}
constructor () {
this.changelog = {
"fixed":[["Show X","Filter options for the modal work again"]]
};
this.patchedModules = {
after: {
V2C_ContentColumn: "render"
@ -459,9 +463,9 @@ var PluginRepo = (_ => {
state: plugin.getState
};
});
if (!options.updated) plugins = plugins.filter(plugin => plugin.state == pluginStates.UPDATED);
if (!options.outdated) plugins = plugins.filter(plugin => plugin.state == pluginStates.OUTDATED);
if (!options.downloadable) plugins = plugins.filter(plugin => plugin.state == pluginStates.DOWNLOADABLE);
if (!options.updated) plugins = plugins.filter(plugin => plugin.state != pluginStates.UPDATED);
if (!options.outdated) plugins = plugins.filter(plugin => plugin.state != pluginStates.OUTDATED);
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, {
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,

View File

@ -125,13 +125,17 @@ var ThemeRepo = (_ => {
return class ThemeRepo {
getName () {return "ThemeRepo";}
getVersion () {return "1.9.1";}
getVersion () {return "1.9.3";}
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.";}
constructor () {
this.changelog = {
"fixed":[["Show X","Filter options for the modal work again"]]
};
this.patchedModules = {
after: {
V2C_ContentColumn: "render"
@ -685,9 +689,9 @@ var ThemeRepo = (_ => {
fullcss: theme.fullcss
};
});
if (!options.updated) themes = themes.filter(theme => theme.state == themeStates.UPDATED);
if (!options.outdated) themes = themes.filter(theme => theme.state == themeStates.OUTDATED);
if (!options.downloadable) themes = themes.filter(theme => theme.state == themeStates.DOWNLOADABLE);
if (!options.updated) themes = themes.filter(theme => theme.state != themeStates.UPDATED);
if (!options.outdated) themes = themes.filter(theme => theme.state != themeStates.OUTDATED);
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, {
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,