mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Update: Changed icon pack to Boxicons
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Text } from "preact-i18n";
|
||||
import { List } from "@styled-icons/feather";
|
||||
import { ListUl } from "@styled-icons/boxicons-regular";
|
||||
import Category from "../../components/ui/Category";
|
||||
import { GenericSettings } from "./GenericSettings";
|
||||
import { getChannelName } from "../../context/revoltjs/util";
|
||||
@@ -30,7 +30,7 @@ export default function ChannelSettings() {
|
||||
{
|
||||
category: <Category variant="uniform" text={getChannelName(ctx.client, channel, true)} />,
|
||||
id: 'overview',
|
||||
icon: <List size={20} strokeWidth={2} />,
|
||||
icon: <ListUl size={20} />,
|
||||
title: <Text id="app.settings.channel_pages.overview.title" />
|
||||
}
|
||||
]}
|
||||
|
||||
@@ -6,7 +6,7 @@ import Header from '../../components/ui/Header';
|
||||
import Category from '../../components/ui/Category';
|
||||
import IconButton from "../../components/ui/IconButton";
|
||||
import LineDivider from "../../components/ui/LineDivider";
|
||||
import { ArrowLeft, X, XCircle } from "@styled-icons/feather";
|
||||
import { LeftArrowAlt, X, XCircle } from "@styled-icons/boxicons-regular";
|
||||
import { Switch, useHistory, useParams } from "react-router-dom";
|
||||
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
|
||||
import ButtonItem from "../../components/navigation/items/ButtonItem";
|
||||
@@ -65,7 +65,7 @@ export function GenericSettings({ pages, switchPage, category, custom, children,
|
||||
) : (
|
||||
<>
|
||||
<IconButton onClick={() => switchPage()}>
|
||||
<ArrowLeft size={24} />
|
||||
<LeftArrowAlt size={24} />
|
||||
</IconButton>
|
||||
<Text
|
||||
id={`app.settings.${category}.${page}.title`}
|
||||
|
||||
@@ -3,7 +3,8 @@ import Category from "../../components/ui/Category";
|
||||
import { GenericSettings } from "./GenericSettings";
|
||||
import { useServer } from "../../context/revoltjs/hooks";
|
||||
import { Route, useHistory, useParams } from "react-router-dom";
|
||||
import { List, Share, Users, XSquare } from "@styled-icons/feather";
|
||||
import { ListUl, Share, Group } from "@styled-icons/boxicons-regular";
|
||||
import { XSquare } from "@styled-icons/boxicons-solid";
|
||||
import RequiresOnline from "../../context/revoltjs/RequiresOnline";
|
||||
|
||||
import { Overview } from "./server/Overview";
|
||||
@@ -31,22 +32,22 @@ export default function ServerSettings() {
|
||||
{
|
||||
category: <Category variant="uniform" text={server.name} />,
|
||||
id: 'overview',
|
||||
icon: <List size={20} strokeWidth={2} />,
|
||||
icon: <ListUl size={20} />,
|
||||
title: <Text id="app.settings.channel_pages.overview.title" />
|
||||
},
|
||||
{
|
||||
id: 'members',
|
||||
icon: <Users size={20} strokeWidth={2} />,
|
||||
icon: <Group size={20} />,
|
||||
title: "Members"
|
||||
},
|
||||
{
|
||||
id: 'invites',
|
||||
icon: <Share size={20} strokeWidth={2} />,
|
||||
icon: <Share size={20} />,
|
||||
title: "Invites"
|
||||
},
|
||||
{
|
||||
id: 'bans',
|
||||
icon: <XSquare size={20} strokeWidth={2} />,
|
||||
icon: <XSquare size={20} />,
|
||||
title: "Bans"
|
||||
}
|
||||
]}
|
||||
|
||||
@@ -10,16 +10,16 @@ import {
|
||||
Bell,
|
||||
Box,
|
||||
Coffee,
|
||||
Gitlab,
|
||||
Globe,
|
||||
Image,
|
||||
LogOut,
|
||||
RefreshCw,
|
||||
Sync as SyncIcon,
|
||||
Shield,
|
||||
ToggleRight,
|
||||
User
|
||||
} from "@styled-icons/feather";
|
||||
import { Megaphone } from "@styled-icons/bootstrap";
|
||||
} from "@styled-icons/boxicons-regular";
|
||||
import { Megaphone } from "@styled-icons/boxicons-solid";
|
||||
import { Gitlab } from "@styled-icons/boxicons-logos";
|
||||
import { GIT_BRANCH, GIT_REVISION, REPO_URL } from "../../revision";
|
||||
import LineDivider from "../../components/ui/LineDivider";
|
||||
import RequiresOnline from "../../context/revoltjs/RequiresOnline";
|
||||
@@ -54,49 +54,49 @@ export default function Settings() {
|
||||
{
|
||||
category: <Text id="app.settings.categories.user_settings" />,
|
||||
id: 'account',
|
||||
icon: <User size={20} strokeWidth={2} />,
|
||||
icon: <User size={20} />,
|
||||
title: <Text id="app.settings.pages.account.title" />
|
||||
},
|
||||
{
|
||||
id: 'profile',
|
||||
icon: <Image size={20} strokeWidth={2} />,
|
||||
icon: <Image size={20} />,
|
||||
title: <Text id="app.settings.pages.profile.title" />
|
||||
},
|
||||
{
|
||||
id: 'sessions',
|
||||
icon: <Shield size={20} strokeWidth={2} />,
|
||||
icon: <Shield size={20} />,
|
||||
title: <Text id="app.settings.pages.sessions.title" />
|
||||
},
|
||||
{
|
||||
category: <Text id="app.settings.categories.client_settings" />,
|
||||
id: 'appearance',
|
||||
icon: <Box size={20} strokeWidth={2} />,
|
||||
icon: <Box size={20} />,
|
||||
title: <Text id="app.settings.pages.appearance.title" />
|
||||
},
|
||||
{
|
||||
id: 'notifications',
|
||||
icon: <Bell size={20} strokeWidth={2} />,
|
||||
icon: <Bell size={20} />,
|
||||
title: <Text id="app.settings.pages.notifications.title" />
|
||||
},
|
||||
{
|
||||
id: 'language',
|
||||
icon: <Globe size={20} strokeWidth={2} />,
|
||||
icon: <Globe size={20} />,
|
||||
title: <Text id="app.settings.pages.language.title" />
|
||||
},
|
||||
{
|
||||
id: 'sync',
|
||||
icon: <RefreshCw size={20} strokeWidth={2} />,
|
||||
icon: <SyncIcon size={20} />,
|
||||
title: <Text id="app.settings.pages.sync.title" />
|
||||
},
|
||||
{
|
||||
divider: true,
|
||||
id: 'experiments',
|
||||
icon: <ToggleRight size={20} strokeWidth={2} />,
|
||||
icon: <ToggleRight size={20} />,
|
||||
title: <Text id="app.settings.pages.experiments.title" />
|
||||
},
|
||||
{
|
||||
id: 'feedback',
|
||||
icon: <Megaphone size={20} strokeWidth={0.3} />,
|
||||
icon: <Megaphone size={20} />,
|
||||
title: <Text id="app.settings.pages.feedback.title" />
|
||||
}
|
||||
]}
|
||||
@@ -122,13 +122,13 @@ export default function Settings() {
|
||||
target="_blank"
|
||||
>
|
||||
<ButtonItem compact>
|
||||
<Gitlab size={20} strokeWidth={2} />
|
||||
<Gitlab size={20} />
|
||||
<Text id="app.settings.pages.source_code" />
|
||||
</ButtonItem>
|
||||
</a>,
|
||||
<a href="https://ko-fi.com/insertish" target="_blank">
|
||||
<ButtonItem className={styles.donate} compact>
|
||||
<Coffee size={20} strokeWidth={2} />
|
||||
<Coffee size={20} />
|
||||
<Text id="app.settings.pages.donate.title" />
|
||||
</ButtonItem>
|
||||
</a>,
|
||||
@@ -138,7 +138,7 @@ export default function Settings() {
|
||||
className={styles.logOut}
|
||||
compact
|
||||
>
|
||||
<LogOut size={20} strokeWidth={2} />
|
||||
<LogOut size={20} />
|
||||
<Text id="app.settings.pages.logOut" />
|
||||
</ButtonItem>,
|
||||
<div className={styles.version}>
|
||||
|
||||
@@ -5,7 +5,7 @@ import Button from "../../../components/ui/Button";
|
||||
import { Users } from "revolt.js/dist/api/objects";
|
||||
import { Link, useHistory } from "react-router-dom";
|
||||
import Overline from "../../../components/ui/Overline";
|
||||
import { AtSign, Key, Mail } from "@styled-icons/feather";
|
||||
import { At, Key, Envelope } from "@styled-icons/boxicons-regular";
|
||||
import { useContext, useEffect, useState } from "preact/hooks";
|
||||
import UserIcon from "../../../components/common/user/UserIcon";
|
||||
import { useForceUpdate, useSelf } from "../../../context/revoltjs/hooks";
|
||||
@@ -54,8 +54,8 @@ export function Account() {
|
||||
</div>
|
||||
<div className={styles.details}>
|
||||
{[
|
||||
["username", user.username, <AtSign size={24} />],
|
||||
["email", email, <Mail size={24} />],
|
||||
["username", user.username, <At size={24} />],
|
||||
["email", email, <Envelope size={24} />],
|
||||
["password", "*****", <Key size={24} />]
|
||||
].map(([field, value, icon]) => (
|
||||
<div>
|
||||
|
||||
@@ -9,7 +9,7 @@ import Preloader from "../../../components/ui/Preloader";
|
||||
import { useContext, useEffect, useState } from "preact/hooks";
|
||||
import { AppContext } from "../../../context/revoltjs/RevoltClient";
|
||||
|
||||
import { HelpCircle } from "@styled-icons/feather";
|
||||
import { HelpCircle } from "@styled-icons/boxicons-regular";
|
||||
import {
|
||||
Android,
|
||||
Firefoxbrowser,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import styles from './Panes.module.scss';
|
||||
import { XCircle } from "@styled-icons/feather";
|
||||
import { XCircle } from "@styled-icons/boxicons-regular";
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
import Preloader from "../../../components/ui/Preloader";
|
||||
import IconButton from "../../../components/ui/IconButton";
|
||||
|
||||
Reference in New Issue
Block a user