mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 02:17:03 -04:00
split up webpack commons into categories & type everything (#455)
This commit is contained in:
parent
a38ac956df
commit
f19504f828
24 changed files with 930 additions and 372 deletions
|
@ -22,7 +22,7 @@ import { Devs } from "@utils/constants";
|
|||
import Logger from "@utils/Logger";
|
||||
import { LazyComponent } from "@utils/misc";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { Router } from "@webpack/common";
|
||||
import { SettingsRouter } from "@webpack/common";
|
||||
|
||||
import gitHash from "~git-hash";
|
||||
|
||||
|
@ -69,7 +69,7 @@ export default definePlugin({
|
|||
}],
|
||||
|
||||
makeSettingsCategories({ ID }: { ID: Record<string, unknown>; }) {
|
||||
const makeOnClick = (tab: string) => () => Router.open(tab);
|
||||
const makeOnClick = (tab: string) => () => SettingsRouter.open(tab);
|
||||
|
||||
const cats = [
|
||||
{
|
||||
|
|
|
@ -76,10 +76,6 @@ export const SpotifyStore = proxyLazy(() => {
|
|||
const API_BASE = "https://api.spotify.com/v1/me/player";
|
||||
|
||||
class SpotifyStore extends Store {
|
||||
constructor(dispatcher: any, handlers: any) {
|
||||
super(dispatcher, handlers);
|
||||
}
|
||||
|
||||
public mPosition = 0;
|
||||
private start = 0;
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ function openViewRawModal(msg: Message) {
|
|||
<>
|
||||
<Forms.FormTitle tag="h5">Content</Forms.FormTitle>
|
||||
<CodeBlock content={msg.content} lang="" />
|
||||
<Forms.FormDivider classes={Margins.marginBottom20} />
|
||||
<Forms.FormDivider className={Margins.marginBottom20} />
|
||||
</>
|
||||
)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue