- Replace all references to "Kettu" with "ShiggyCord" in code, UI, and docs - Update icons and assets to use shiggy.png - Change repo URLs to GitHub ShiggyCord repository - Update build output to shiggycord.js - Remove Codeberg and legacy workflow/config files - Add new GitHub release workflow and semantic-release config - Update i18n strings and debug info to reflect ShiggyCord branding - Refactor settings, plugin, and theme pages for new branding and improved UX - Add FixEmbed and MessageFix core plugins - Refactor NoTrack plugin for improved telemetry blocking - Remove unused PluginBrowser page - Miscellaneous code style and formatting improvements
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
// import patchErrorBoundary from "@core/debug/patches/patchErrorBoundary";
|
|
import initFixes from "@core/fixes";
|
|
import { initFetchI18nStrings } from "@core/i18n";
|
|
import initSettings from "@core/ui/settings";
|
|
import { initVendettaObject } from "@core/vendetta/api";
|
|
import { VdPluginManager } from "@core/vendetta/plugins";
|
|
import { updateFonts } from "@lib/addons/fonts";
|
|
import { initPlugins, updatePlugins } from "@lib/addons/plugins";
|
|
import { initThemes } from "@lib/addons/themes";
|
|
import { patchCommands } from "@lib/api/commands";
|
|
import { patchLogHook } from "@lib/api/debug";
|
|
import { injectFluxInterceptor } from "@lib/api/flux";
|
|
import { patchJsx } from "@lib/api/react/jsx";
|
|
import { logger } from "@lib/utils/logger";
|
|
import { patchSettings } from "@ui/settings";
|
|
|
|
import * as lib from "./lib";
|
|
|
|
export default async () => {
|
|
// Load everything in parallel
|
|
await Promise.all([
|
|
initThemes(),
|
|
injectFluxInterceptor(),
|
|
patchSettings(),
|
|
patchLogHook(),
|
|
patchCommands(),
|
|
patchJsx(),
|
|
initVendettaObject(),
|
|
initFetchI18nStrings(),
|
|
initSettings(),
|
|
initFixes(),
|
|
// patchErrorBoundary(),
|
|
updatePlugins(),
|
|
]).then(
|
|
// Push them all to unloader
|
|
(u) => u.forEach((f) => f && lib.unload.push(f)),
|
|
);
|
|
|
|
// Assign window object
|
|
window.bunny = lib;
|
|
|
|
// Once done, load Vendetta plugins
|
|
VdPluginManager.initPlugins()
|
|
.then((u) => lib.unload.push(u))
|
|
.catch(() => alert("Failed to initialize Vendetta plugins"));
|
|
|
|
// And then, load ShiggyCord plugins
|
|
initPlugins();
|
|
|
|
// Update the fonts
|
|
updateFonts();
|
|
|
|
// We good :)
|
|
logger.log("ShiggyCord is ready!");
|
|
};
|