Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions plugins/browser/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { unloadDropdownCss } from "../../components/dropdown/index.js";
import {
createChangelogButton,
registerChangelogOnLoad,
} from "../../lib/changelog.js";
import {
registerDivider,
registerHeader,
Expand All @@ -13,44 +9,11 @@ import { ThemesIcon } from "./icons/themes-icon.jsx";
import { PluginsPage } from "./pages/plugins/index.jsx";
import { SettingsPage } from "./pages/settings/index.jsx";
import { ThemesPage, onLoadThemes } from "./pages/themes/index.jsx";
import { version } from "./plugin.json";

const {
util: { log },
} = shelter;

export const changelogOptions = {
title: "Browser",
subtitle: `version ${version}`,
blurb:
"A plugin browser for Shelter — discover, install, and manage plugins and themes without leaving Discord.",
pluginName: "browser",
currentVersion: version,
entries: [
{
version: "1.0.0",
date: "2025-05-11",
changes: [
{
title: "New Features",
type: "added",
blurb: "Everything you need to browse Shelter add-ons in one place.",
items: [
"Browse the complete Shelter plugin registry in-app",
"Install, uninstall, and toggle plugins without leaving Discord",
"Install and uninstall themes with live CSS preview",
"Search plugins and themes by name, description, or author",
"Filter plugins by status: all, enabled, disabled, or installed",
"Filter themes by installed status",
"Quick access to plugin settings from the browser",
"Theme CSS is automatically loaded on plugin startup",
],
},
],
},
],
};

const allSettings = [
registerDivider(),
registerHeader("Browser"),
Expand All @@ -71,7 +34,6 @@ export function onUnload() {

export function onLoad() {
onLoadThemes();
registerChangelogOnLoad(changelogOptions);
}

export const ChangelogButton = createChangelogButton(changelogOptions);
42 changes: 1 addition & 41 deletions plugins/leaver/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,9 @@ const {
util: { log },
} = shelter;

import {
createChangelogButton,
registerChangelogOnLoad,
} from "../../lib/changelog.js";
import { registerPage } from "../../lib/shelter/settings.js";
import { LeaverIcon } from "./icons/leaver.jsx";
import { LeaverPage } from "./pages/leaver.jsx";
import { version } from "./plugin.json";

export const changelogOptions = {
title: "Leaver",
subtitle: `version ${version}`,
blurb:
"Clean up your server list by leaving multiple Discord servers at once.",
pluginName: "leaver",
currentVersion: version,
entries: [
{
version: "1.0.0",
date: "2025-05-11",
changes: [
{
title: "New Features",
type: "added",
blurb:
"Bulk server leaving with search, filtering, and safety checks.",
items: [
"Leave multiple Discord servers at once without opening each",
"Search and filter servers by name to find targets quickly",
"Select individual servers with checkboxes or use select-all/none",
"Guild icons and names are displayed for easy identification",
"Excludes servers you own from the leave list for safety",
"Confirmation prompt before executing the bulk leave action",
],
},
],
},
],
};

const unregister = registerPage(
"hdzilyes-leaver",
Expand All @@ -55,8 +19,4 @@ export function onUnload() {
unregister();
}

export function onLoad() {
registerChangelogOnLoad(changelogOptions);
}

export const ChangelogButton = createChangelogButton(changelogOptions);
export function onLoad() {}
Loading