mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 11:27:02 -04:00
Path aliases, better lazyWebpack (#268)
This commit is contained in:
parent
7a4402f142
commit
bad96b7887
138 changed files with 572 additions and 547 deletions
|
@ -16,8 +16,8 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Link } from "../../../components/Link";
|
||||
import { Forms, React } from "../../../webpack/common";
|
||||
import { Link } from "@components/Link";
|
||||
import { Forms, React } from "@webpack/common";
|
||||
|
||||
export default function PronounsAboutComponent() {
|
||||
return (
|
||||
|
|
|
@ -16,16 +16,16 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Settings } from "@api/settings";
|
||||
import { classes, useAwaiter } from "@utils/misc";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
import { UserStore } from "@webpack/common";
|
||||
import { Message } from "discord-types/general";
|
||||
|
||||
import { classes, lazyWebpack, useAwaiter } from "../../../utils/misc";
|
||||
import { Settings } from "../../../Vencord";
|
||||
import { filters } from "../../../webpack";
|
||||
import { UserStore } from "../../../webpack/common";
|
||||
import { fetchPronouns, formatPronouns } from "../pronoundbUtils";
|
||||
import { PronounMapping } from "../types";
|
||||
|
||||
const styles: Record<string, string> = lazyWebpack(filters.byProps("timestampInline"));
|
||||
const styles: Record<string, string> = findByPropsLazy("timestampInline");
|
||||
|
||||
export default function PronounsChatComponentWrapper({ message }: { message: Message; }) {
|
||||
// Don't bother fetching bot or system users
|
||||
|
|
|
@ -16,9 +16,10 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { useAwaiter } from "../../../utils/misc";
|
||||
import { Settings } from "../../../Vencord";
|
||||
import { UserStore } from "../../../webpack/common";
|
||||
import { Settings } from "@api/settings";
|
||||
import { useAwaiter } from "@utils/misc";
|
||||
import { UserStore } from "@webpack/common";
|
||||
|
||||
import { fetchPronouns, formatPronouns } from "../pronoundbUtils";
|
||||
import { PronounMapping, UserProfilePronounsProps, UserProfileProps } from "../types";
|
||||
|
||||
|
|
|
@ -16,8 +16,9 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Devs } from "../../utils/constants";
|
||||
import definePlugin, { OptionType } from "../../utils/types";
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
|
||||
import PronounsAboutComponent from "./components/PronounsAboutComponent";
|
||||
import PronounsChatComponent from "./components/PronounsChatComponent";
|
||||
import PronounsProfileWrapper from "./components/PronounsProfileWrapper";
|
||||
|
|
|
@ -16,9 +16,10 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { VENCORD_USER_AGENT } from "../../utils/constants";
|
||||
import { debounce } from "../../utils/debounce";
|
||||
import { Settings } from "../../Vencord";
|
||||
import { Settings } from "@api/settings";
|
||||
import { VENCORD_USER_AGENT } from "@utils/constants";
|
||||
import { debounce } from "@utils/debounce";
|
||||
|
||||
import { PronounsFormat } from ".";
|
||||
import { PronounCode, PronounMapping, PronounsResponse } from "./types";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue