feat: add sc minification + display class names

This commit is contained in:
Paul Makles
2022-01-14 18:50:58 +00:00
parent 8dd18c9fb4
commit 3fd56e4fdc
82 changed files with 523 additions and 110 deletions

View File

@@ -1,6 +1,6 @@
import { Shield } from "@styled-icons/boxicons-regular";
import { Badges } from "revolt-api/types/Users";
import styled from "styled-components";
import styled from "styled-components/macro";
import { Localizer, Text } from "preact-i18n";

View File

@@ -2,7 +2,7 @@ import { Cog } from "@styled-icons/boxicons-solid";
import { observer } from "mobx-react-lite";
import { Link } from "react-router-dom";
import { User } from "revolt.js/dist/maps/Users";
import styled from "styled-components";
import styled from "styled-components/macro";
import { openContextMenu } from "preact-context-menu";
import { Text, Localizer } from "preact-i18n";

View File

@@ -1,5 +1,5 @@
import { User } from "revolt.js/dist/maps/Users";
import styled from "styled-components";
import styled from "styled-components/macro";
import { Children } from "../../../types/Preact";
import Tooltip from "../Tooltip";
@@ -42,10 +42,7 @@ export default function UserHover({ user, children }: Props) {
placement="right-end"
content={
<Base>
<Username
className="username"
user={user}
/>
<Username className="username" user={user} />
<span className="status">
<UserStatus user={user} />
</span>

View File

@@ -5,7 +5,7 @@ import { useParams } from "react-router-dom";
import { Masquerade } from "revolt-api/types/Channels";
import { Presence } from "revolt-api/types/Users";
import { User } from "revolt.js/dist/maps/Users";
import styled, { css } from "styled-components";
import styled, { css } from "styled-components/macro";
import { useApplicationState } from "../../../mobx/State";

View File

@@ -3,7 +3,7 @@ import { useParams } from "react-router-dom";
import { Masquerade } from "revolt-api/types/Channels";
import { User } from "revolt.js/dist/maps/Users";
import { Nullable } from "revolt.js/dist/util/null";
import styled from "styled-components";
import styled from "styled-components/macro";
import { Text } from "preact-i18n";