feat: new permissions menus

closes #322
This commit is contained in:
Paul Makles
2022-04-22 21:06:12 +01:00
parent 13c726c8a1
commit f29251529a
41 changed files with 9786 additions and 5809 deletions

View File

@@ -13,7 +13,7 @@ import {
import { Cog, UserVoice } from "@styled-icons/boxicons-solid";
import { useHistory } from "react-router-dom";
import { Channel, Message, Server, User, API } from "revolt.js";
import { Permission, UserPermission } from "revolt.js/dist/api/permissions";
import { Permission, UserPermission } from "revolt.js/esm/api/permissions";
import {
ContextMenuWithData,

View File

@@ -9,8 +9,8 @@ import {
LeftArrowAlt,
} from "@styled-icons/boxicons-regular";
import { observer } from "mobx-react-lite";
import { Channel } from "revolt.js/dist/maps/Channels";
import { Server } from "revolt.js/dist/maps/Servers";
import { Channel } from "revolt.js/esm/maps/Channels";
import { Server } from "revolt.js/esm/maps/Servers";
import { ContextMenuWithData, MenuItem } from "preact-context-menu";
import { Text } from "preact-i18n";

View File

@@ -1,8 +1,8 @@
/* eslint-disable react-hooks/rules-of-hooks */
import { action, makeAutoObservable } from "mobx";
import { Channel } from "revolt.js/dist/maps/Channels";
import { Message } from "revolt.js/dist/maps/Messages";
import { Nullable } from "revolt.js/dist/util/null";
import { Channel } from "revolt.js/esm/maps/Channels";
import { Message } from "revolt.js/esm/maps/Messages";
import { Nullable } from "revolt.js/esm/util/null";
import { SimpleRenderer } from "./simple/SimpleRenderer";
import { RendererRoutines, ScrollState } from "./types";

View File

@@ -1,4 +1,4 @@
import { Message } from "revolt.js/dist/maps/Messages";
import { Message } from "revolt.js/esm/maps/Messages";
import { ChannelRenderer } from "./Singleton";

View File

@@ -1,6 +1,6 @@
import { action, makeAutoObservable, runInAction } from "mobx";
import { Channel } from "revolt.js/dist/maps/Channels";
import { Nullable, toNullable } from "revolt.js/dist/util/null";
import { Channel } from "revolt.js/esm/maps/Channels";
import { Nullable, toNullable } from "revolt.js/esm/util/null";
import type { ProduceType, VoiceUser } from "./Types";
import type VoiceClient from "./VoiceClient";