diff --git a/plugins.json b/plugins.json index f200f038..81e21290 100644 --- a/plugins.json +++ b/plugins.json @@ -252,17 +252,6 @@ "creation_date": "2022-10-14", "await_loading": true }, - "plugin_loader_2.0": { - "title": "Plugin Loader 2.0", - "icon": "extension", - "author": "Ewan Howell", - "description": "Replace the default Blockbench Plugin Loader interface with an improved and redesigned Plugin Loader interface.", - "about": "This plugin replaces the built in Blockbench Plugin Loader interface with a new and improved Plugin Loader.\n\n## Plugin Pages\nEach plugin now gets its own page where you can view all of its information, as well as install/uninstall/reload it.\n\n## Plugin Tabs\nAll of the tags used across the plugins are now shown as a list of tabs up the side of the Plugin Loader, allowing you to quickly and easily browse and filter by the tags.", - "tags": ["Deprecated", "Plugins", "Blockbench"], - "version": "1.1.0", - "min_version": "4.2.0", - "variant": "both" - }, "splash_art_customiser": { "title": "Splash Art Customiser", "icon": "palette", @@ -342,7 +331,7 @@ "website": "https://ewanhowell.com/plugins/live-dev-reloader", "repository": "https://github.com/ewanhowell5195/blockbenchPlugins/tree/main/live_dev_reloader", "bug_tracker": "https://github.com/ewanhowell5195/blockbenchPlugins/issues", - "creation_date": "2024-11-01" + "creation_date": "2024-01-20" }, "threecore_exporter": { "title": "ThreeCore Exporter", diff --git a/plugins/live_dev_reloader/live_dev_reloader.js b/plugins/live_dev_reloader/live_dev_reloader.js index e032aed7..99c27e4f 100644 --- a/plugins/live_dev_reloader/live_dev_reloader.js +++ b/plugins/live_dev_reloader/live_dev_reloader.js @@ -16,7 +16,7 @@ website: "https://ewanhowell.com/plugins/live-dev-reloader", repository: "https://github.com/ewanhowell5195/blockbenchPlugins/tree/main/live_dev_reloader", bug_tracker: "https://github.com/ewanhowell5195/blockbenchPlugins/issues", - creation_date: "2024-11-01", + creation_date: "2024-01-20", onload() { let toggle actions = [ diff --git a/plugins/plugin_loader_2.0.js b/plugins/plugin_loader_2.0.js deleted file mode 100644 index 0e28cf07..00000000 --- a/plugins/plugin_loader_2.0.js +++ /dev/null @@ -1,469 +0,0 @@ -(() => { - let oldDialog, open - Plugin.register("plugin_loader_2.0", { - title: "Plugin Loader 2.0", - icon: "extension", - author: "Ewan Howell", - description: "Replace the default Blockbench Plugin Loader interface with an improved and redesigned Plugin Loader interface.", - about: "This plugin replaces the built in Blockbench Plugin Loader interface with a new and improved Plugin Loader.\n\n## Plugin Pages\nEach plugin now gets its own page where you can view all of its information, as well as install/uninstall/reload it.\n\n## Plugin Tabs\nAll of the tags used across the plugins are now shown as a list of tabs up the side of the Plugin Loader, allowing you to quickly and easily browse and filter by the tags.", - tags: ["Deprecated", "Plugins", "Blockbench"], - version: "1.1.0", - min_version: "4.4.2", - variant: "both", - oninstall: () => Plugins.dialog.show(), - onload() { - Plugins.dialog.close() - oldDialog = Plugins.dialog - const dialog = new Dialog({ - id: "plugins", - title: "dialog.plugins.title", - buttons: [], - width: 980, - lines: [` - - `], - component: { - data: { - tab: "installed", - searchTerm: "", - items: Plugins.all, - currentTag: "All", - detailsVisible: null - }, - computed: { - tags() { - const tags = Array.from(this.items.reduce((a, e) => { - e.tags.forEach(e => a.add(e)) - return a - }, new Set(["All", "No Tags"]))) - const tagCount = new Map(tags.map(t => [t, t === "All" ? Infinity : t === "No Tags" ? Plugins.all.filter(p => !p.tags?.length).length : t === "Deprecated" ? -Infinity : Plugins.all.filter(p => p.tags.includes(t)).length])) - return tags.sort((a, b) => tagCount.get(b) - tagCount.get(a) + a.localeCompare(b) * 0.1) - }, - pluginSearch() { - const name = this.searchTerm.toUpperCase() - const tag = this.currentTag - return this.items.filter(item => { - if (tag === "No Tags" && !item.tags?.length && (this.tab == "installed") == item.installed) return true - if (tag !== "All" && !item.tags.includes(tag)) return - if ((this.tab == "installed") == item.installed) { - if (name.length > 0) { - return ( - item.id.toUpperCase().includes(name) || - item.title.toUpperCase().includes(name) || - item.description.toUpperCase().includes(name) || - item.author.toUpperCase().includes(name) || - item.tags.find(tag => tag.toUpperCase().includes(name)) - ) - } - return true; - } - }) - }, - visibleTags() { - return this.tags.filter(tag => tag === "All" || this.items.filter(item => ((item.tags.includes(tag) || (tag === "No Tags" && !item.tags?.length)) && (this.tab === "installed") === item.installed)).length) - } - }, - methods: { - getTagClass(tag) { - if (tag.match(/^(local|remote)$/i)) return "plugin_tag_source" - if (tag.match(/^minecraft/i)) return "plugin_tag_mc" - if (tag.match(/^format/i)) return "plugin-tag-format" - if (tag.match(/^deprecated/i)) return "plugin_tag_deprecated" - }, - getIconNode: Blockbench.getIconNode, - tl, - switchTab(tab) { - this.tab = tab - if (!this.visibleTags.includes(this.currentTag)) this.currentTag = "All" - }, - uninstall(plugin) { - plugin.uninstall() - Blockbench.showQuickMessage(`Sucessfully uninstalled the plugin ${plugin.name}`) - }, - close: () => dialog.close(), - pluginClick(event, plugin) { - if (!event.target.classList.contains("tag")) this.detailsVisible = plugin - } - }, - template: ` -
-
- -
- -
-
-
-
-
${tl('dialog.plugins.installed')}
-
${tl('dialog.plugins.available')}
-
- -
- -
- - cloud_download -
- -
-
-
- chevron_left - Back -
-
-
-
By {{ plugin.author }}
-
-
{{ plugin.title }}
-
-
-
Version {{ plugin.version }}
-
-
-
- - - - -
    -
  • {{tag}}
  • -
-
    -
  • No Tags
  • -
-
- - language - - - - - - folder - - - language - -
-
{{ plugin.description }}
-
-
-
-
-
-
- ` - }, - onOpen: () => open = true, - onCancel() { - dialog.content_vue.detailsVisible = null - open = false - } - }) - Plugins.dialog = dialog - }, - onunload() { - if (open) { - Plugins.dialog.close() - oldDialog.show() - } - Plugins.dialog = oldDialog - } - }) -})() \ No newline at end of file