mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-04 07:42:24 -08:00
fix deprecated icon imports and some formatting
This commit is contained in:
1 parent
6b9c7ac582
commit
21510fceaf
3 files changed
+236
-236
No files matched your search
@@ -8,6 +8,6 @@ Add polls!
|
||||
|
||||
- The polls have a simple style for showing and interfacing with poll events
|
||||
- There is now a simple interface for creating polls which integrates the spec
|
||||
- Now the Plus button on the bottom left can open a menu for selecting what to send, which will be usefulfor future options aswell
|
||||
- For the people that prefer to only add files with that button they can disable the menu and still createpolls with the /poll command
|
||||
- Now the Plus button on the bottom left can open a menu for selecting what to send, which will be useful for future options as well
|
||||
- For the people that prefer to only add files with that button they can disable the menu and still create polls with the /poll command
|
||||
- You can see who voted for what in a clear menu
|
||||
@@ -1,124 +1,124 @@
|
||||
import type { IconProps } from '@phosphor-icons/react';
|
||||
import {
|
||||
ArrowsDownUp,
|
||||
ArrowsDownUpIcon,
|
||||
ArrowBendUpRightIcon,
|
||||
ArrowDown,
|
||||
ArrowLeft,
|
||||
ArrowRight,
|
||||
ArrowSquareOut,
|
||||
ArrowUp,
|
||||
ArrowsClockwise,
|
||||
At,
|
||||
Basketball,
|
||||
Bell,
|
||||
BellRinging,
|
||||
BellSlash,
|
||||
CaretDown,
|
||||
CaretLeft,
|
||||
CaretRight,
|
||||
CaretUp,
|
||||
ChatCircle,
|
||||
ChatCircleDots,
|
||||
Chats,
|
||||
ChatTeardropDots,
|
||||
Check,
|
||||
Checks,
|
||||
Clock,
|
||||
ClockCounterClockwise,
|
||||
Code,
|
||||
CodeBlock,
|
||||
Coffee,
|
||||
Compass,
|
||||
Database,
|
||||
Devices,
|
||||
DotsThree,
|
||||
ArrowDownIcon,
|
||||
ArrowLeftIcon,
|
||||
ArrowRightIcon,
|
||||
ArrowSquareOutIcon,
|
||||
ArrowUpIcon,
|
||||
ArrowsClockwiseIcon,
|
||||
AtIcon,
|
||||
BasketballIcon,
|
||||
BellIcon,
|
||||
BellRingingIcon,
|
||||
BellSlashIcon,
|
||||
CaretDownIcon,
|
||||
CaretLeftIcon,
|
||||
CaretRightIcon,
|
||||
CaretUpIcon,
|
||||
ChatCircleIcon,
|
||||
ChatCircleDotsIcon,
|
||||
ChatsIcon,
|
||||
ChatTeardropDotsIcon,
|
||||
CheckIcon,
|
||||
ChecksIcon,
|
||||
ClockIcon,
|
||||
ClockCounterClockwiseIcon,
|
||||
CodeIcon,
|
||||
CodeBlockIcon,
|
||||
CoffeeIcon,
|
||||
CompassIcon,
|
||||
DatabaseIcon,
|
||||
DevicesIcon,
|
||||
DotsThreeIcon,
|
||||
DotsThreeOutlineVerticalIcon,
|
||||
Download,
|
||||
EnvelopeSimple,
|
||||
Eye,
|
||||
EyeSlash,
|
||||
File,
|
||||
Flag,
|
||||
Flask,
|
||||
Flower,
|
||||
Funnel,
|
||||
GearSix,
|
||||
Globe,
|
||||
GridFour,
|
||||
HardDrives,
|
||||
Hash,
|
||||
HashStraight,
|
||||
Headphones,
|
||||
Heart,
|
||||
House,
|
||||
Image,
|
||||
Info,
|
||||
Keyboard,
|
||||
Leaf,
|
||||
Lightbulb,
|
||||
Link,
|
||||
ListBullets,
|
||||
ListNumbers,
|
||||
Lock,
|
||||
MagnifyingGlass,
|
||||
DownloadIcon,
|
||||
EnvelopeSimpleIcon,
|
||||
EyeIcon,
|
||||
EyeSlashIcon,
|
||||
FileIcon,
|
||||
FlagIcon,
|
||||
FlaskIcon,
|
||||
FlowerIcon,
|
||||
FunnelIcon,
|
||||
GearSixIcon,
|
||||
GlobeIcon,
|
||||
GridFourIcon,
|
||||
HardDrivesIcon,
|
||||
HashIcon,
|
||||
HashStraightIcon,
|
||||
HeadphonesIcon,
|
||||
HeartIcon,
|
||||
HouseIcon,
|
||||
ImageIcon,
|
||||
InfoIcon,
|
||||
KeyboardIcon,
|
||||
LeafIcon,
|
||||
LightbulbIcon,
|
||||
LinkIcon,
|
||||
ListBulletsIcon,
|
||||
ListNumbersIcon,
|
||||
LockIcon,
|
||||
MagnifyingGlassIcon,
|
||||
MapPinPlusIcon,
|
||||
Microphone,
|
||||
MicrophoneSlash,
|
||||
Minus,
|
||||
Monitor,
|
||||
PaintBrush,
|
||||
Palette,
|
||||
PaperPlaneTilt,
|
||||
Pause,
|
||||
PawPrint,
|
||||
Peace,
|
||||
PencilSimple,
|
||||
Phone,
|
||||
PhoneDisconnect,
|
||||
Play,
|
||||
Plus,
|
||||
PlusCircle,
|
||||
Presentation,
|
||||
Prohibit,
|
||||
PushPin,
|
||||
PushPinSlash,
|
||||
Quotes,
|
||||
ShareNetwork,
|
||||
Shield,
|
||||
ShieldWarning,
|
||||
SignIn,
|
||||
SignOut,
|
||||
Smiley,
|
||||
SmileySticker,
|
||||
SortAscending,
|
||||
SpeakerHigh,
|
||||
SpeakerSlash,
|
||||
SquaresFour,
|
||||
Star,
|
||||
Sticker,
|
||||
Stop,
|
||||
Sun,
|
||||
Terminal,
|
||||
TextAa,
|
||||
TextB,
|
||||
TextHOne,
|
||||
TextHThree,
|
||||
TextHTwo,
|
||||
TextItalic,
|
||||
TextStrikethrough,
|
||||
TextUnderline,
|
||||
Trash,
|
||||
Tray,
|
||||
TreeStructure,
|
||||
User,
|
||||
UserCircle,
|
||||
UserMinus,
|
||||
UserPlus,
|
||||
UsersThree,
|
||||
VideoCamera,
|
||||
VideoCameraSlash,
|
||||
Warning,
|
||||
X,
|
||||
MicrophoneIcon,
|
||||
MicrophoneSlashIcon,
|
||||
MinusIcon,
|
||||
MonitorIcon,
|
||||
PaintBrushIcon,
|
||||
PaletteIcon,
|
||||
PaperPlaneTiltIcon,
|
||||
PauseIcon,
|
||||
PawPrintIcon,
|
||||
PeaceIcon,
|
||||
PencilSimpleIcon,
|
||||
PhoneIcon,
|
||||
PhoneDisconnectIcon,
|
||||
PlayIcon,
|
||||
PlusIcon,
|
||||
PlusCircleIcon,
|
||||
PresentationIcon,
|
||||
ProhibitIcon,
|
||||
PushPinIcon,
|
||||
PushPinSlashIcon,
|
||||
QuotesIcon,
|
||||
ShareNetworkIcon,
|
||||
ShieldIcon,
|
||||
ShieldWarningIcon,
|
||||
SignInIcon,
|
||||
SignOutIcon,
|
||||
SmileyIcon,
|
||||
SmileyStickerIcon,
|
||||
SortAscendingIcon,
|
||||
SpeakerHighIcon,
|
||||
SpeakerSlashIcon,
|
||||
SquaresFourIcon,
|
||||
StarIcon,
|
||||
StickerIcon,
|
||||
StopIcon,
|
||||
SunIcon,
|
||||
TerminalIcon,
|
||||
TextAaIcon,
|
||||
TextBIcon,
|
||||
TextHOneIcon,
|
||||
TextHThreeIcon,
|
||||
TextHTwoIcon,
|
||||
TextItalicIcon,
|
||||
TextStrikethroughIcon,
|
||||
TextUnderlineIcon,
|
||||
TrashIcon,
|
||||
TrayIcon,
|
||||
TreeStructureIcon,
|
||||
UserIcon,
|
||||
UserCircleIcon,
|
||||
UserMinusIcon,
|
||||
UserPlusIcon,
|
||||
UsersThreeIcon,
|
||||
VideoCameraIcon,
|
||||
VideoCameraSlashIcon,
|
||||
WarningIcon,
|
||||
XIcon,
|
||||
} from '@phosphor-icons/react';
|
||||
import type { ComponentType, ReactNode } from 'react';
|
||||
|
||||
@@ -226,127 +226,127 @@ const USER_FALLBACK_SIZE = {
|
||||
} as const;
|
||||
|
||||
export function userFallbackIcon(size: UserFallbackSize = 'md', props?: IconProps): ReactNode {
|
||||
return <User size={USER_FALLBACK_SIZE[size]} weight="regular" {...props} />;
|
||||
return <UserIcon size={USER_FALLBACK_SIZE[size]} weight="regular" {...props} />;
|
||||
}
|
||||
|
||||
export {
|
||||
ArrowsDownUp,
|
||||
ArrowsDownUpIcon as ArrowsDownUp,
|
||||
ArrowBendUpRightIcon,
|
||||
ArrowDown,
|
||||
ArrowLeft,
|
||||
ArrowRight,
|
||||
ArrowSquareOut,
|
||||
ArrowUp,
|
||||
ArrowsClockwise,
|
||||
At,
|
||||
Basketball,
|
||||
Bell,
|
||||
BellRinging,
|
||||
BellSlash,
|
||||
CaretDown,
|
||||
CaretLeft,
|
||||
CaretRight,
|
||||
CaretUp,
|
||||
ChatCircle,
|
||||
ChatCircleDots,
|
||||
Chats,
|
||||
ChatTeardropDots,
|
||||
Check,
|
||||
Checks,
|
||||
Clock,
|
||||
ClockCounterClockwise,
|
||||
Code,
|
||||
CodeBlock,
|
||||
Coffee,
|
||||
Compass,
|
||||
Database,
|
||||
Devices,
|
||||
DotsThree,
|
||||
ArrowDownIcon as ArrowDown,
|
||||
ArrowLeftIcon as ArrowLeft,
|
||||
ArrowRightIcon as ArrowRight,
|
||||
ArrowSquareOutIcon as ArrowSquareOut,
|
||||
ArrowUpIcon as ArrowUp,
|
||||
ArrowsClockwiseIcon as ArrowsClockwise,
|
||||
AtIcon as At,
|
||||
BasketballIcon as Basketball,
|
||||
BellIcon as Bell,
|
||||
BellRingingIcon as BellRinging,
|
||||
BellSlashIcon as BellSlash,
|
||||
CaretDownIcon as CaretDown,
|
||||
CaretLeftIcon as CaretLeft,
|
||||
CaretRightIcon as CaretRight,
|
||||
CaretUpIcon as CaretUp,
|
||||
ChatCircleIcon as ChatCircle,
|
||||
ChatCircleDotsIcon as ChatCircleDots,
|
||||
ChatsIcon as Chats,
|
||||
ChatTeardropDotsIcon as ChatTeardropDots,
|
||||
CheckIcon as Check,
|
||||
ChecksIcon as Checks,
|
||||
ClockIcon as Clock,
|
||||
ClockCounterClockwiseIcon as ClockCounterClockwise,
|
||||
CodeIcon as Code,
|
||||
CodeBlockIcon as CodeBlock,
|
||||
CoffeeIcon as Coffee,
|
||||
CompassIcon as Compass,
|
||||
DatabaseIcon as Database,
|
||||
DevicesIcon as Devices,
|
||||
DotsThreeIcon as DotsThree,
|
||||
DotsThreeOutlineVerticalIcon,
|
||||
Download,
|
||||
EnvelopeSimple,
|
||||
Eye,
|
||||
EyeSlash,
|
||||
File,
|
||||
Flag,
|
||||
Flask,
|
||||
Flower,
|
||||
Funnel,
|
||||
GearSix,
|
||||
Globe,
|
||||
GridFour,
|
||||
HardDrives,
|
||||
Hash,
|
||||
HashStraight,
|
||||
Headphones,
|
||||
Heart,
|
||||
House,
|
||||
Image,
|
||||
Info,
|
||||
Keyboard,
|
||||
Leaf,
|
||||
Lightbulb,
|
||||
Link,
|
||||
ListBullets,
|
||||
ListNumbers,
|
||||
Lock,
|
||||
MagnifyingGlass,
|
||||
DownloadIcon as Download,
|
||||
EnvelopeSimpleIcon as EnvelopeSimple,
|
||||
EyeIcon as Eye,
|
||||
EyeSlashIcon as EyeSlash,
|
||||
FileIcon as File,
|
||||
FlagIcon as Flag,
|
||||
FlaskIcon as Flask,
|
||||
FlowerIcon as Flower,
|
||||
FunnelIcon as Funnel,
|
||||
GearSixIcon as GearSix,
|
||||
GlobeIcon as Globe,
|
||||
GridFourIcon as GridFour,
|
||||
HardDrivesIcon as HardDrives,
|
||||
HashIcon as Hash,
|
||||
HashStraightIcon as HashStraight,
|
||||
HeadphonesIcon as Headphones,
|
||||
HeartIcon as Heart,
|
||||
HouseIcon as House,
|
||||
ImageIcon as Image,
|
||||
InfoIcon as Info,
|
||||
KeyboardIcon as Keyboard,
|
||||
LeafIcon as Leaf,
|
||||
LightbulbIcon as Lightbulb,
|
||||
LinkIcon as Link,
|
||||
ListBulletsIcon as ListBullets,
|
||||
ListNumbersIcon as ListNumbers,
|
||||
LockIcon as Lock,
|
||||
MagnifyingGlassIcon as MagnifyingGlass,
|
||||
MapPinPlusIcon,
|
||||
Microphone,
|
||||
MicrophoneSlash,
|
||||
Minus,
|
||||
Monitor,
|
||||
PaintBrush,
|
||||
Palette,
|
||||
PaperPlaneTilt,
|
||||
Pause,
|
||||
PawPrint,
|
||||
Peace,
|
||||
PencilSimple,
|
||||
Phone,
|
||||
PhoneDisconnect,
|
||||
Play,
|
||||
Plus,
|
||||
PlusCircle,
|
||||
Presentation,
|
||||
Prohibit,
|
||||
PushPin,
|
||||
PushPinSlash,
|
||||
Quotes,
|
||||
ShareNetwork,
|
||||
Shield,
|
||||
ShieldWarning,
|
||||
SignIn,
|
||||
SignOut,
|
||||
Smiley,
|
||||
SmileySticker,
|
||||
SortAscending,
|
||||
SpeakerHigh,
|
||||
SpeakerSlash,
|
||||
SquaresFour,
|
||||
Star,
|
||||
Sticker,
|
||||
Stop,
|
||||
Sun,
|
||||
Terminal,
|
||||
TextAa,
|
||||
TextB,
|
||||
TextHOne,
|
||||
TextHThree,
|
||||
TextHTwo,
|
||||
TextItalic,
|
||||
TextStrikethrough,
|
||||
TextUnderline,
|
||||
Trash,
|
||||
Tray,
|
||||
TreeStructure,
|
||||
User,
|
||||
UserCircle,
|
||||
UserMinus,
|
||||
UserPlus,
|
||||
UsersThree,
|
||||
VideoCamera,
|
||||
VideoCameraSlash,
|
||||
Warning,
|
||||
X,
|
||||
MicrophoneIcon as Microphone,
|
||||
MicrophoneSlashIcon as MicrophoneSlash,
|
||||
MinusIcon as Minus,
|
||||
MonitorIcon as Monitor,
|
||||
PaintBrushIcon as PaintBrush,
|
||||
PaletteIcon as Palette,
|
||||
PaperPlaneTiltIcon as PaperPlaneTilt,
|
||||
PauseIcon as Pause,
|
||||
PawPrintIcon as PawPrint,
|
||||
PeaceIcon as Peace,
|
||||
PencilSimpleIcon as PencilSimple,
|
||||
PhoneIcon as Phone,
|
||||
PhoneDisconnectIcon as PhoneDisconnect,
|
||||
PlayIcon as Play,
|
||||
PlusIcon as Plus,
|
||||
PlusCircleIcon as PlusCircle,
|
||||
PresentationIcon as Presentation,
|
||||
ProhibitIcon as Prohibit,
|
||||
PushPinIcon as PushPin,
|
||||
PushPinSlashIcon as PushPinSlash,
|
||||
QuotesIcon as Quotes,
|
||||
ShareNetworkIcon as ShareNetwork,
|
||||
ShieldIcon as Shield,
|
||||
ShieldWarningIcon as ShieldWarning,
|
||||
SignInIcon as SignIn,
|
||||
SignOutIcon as SignOut,
|
||||
SmileyIcon as Smiley,
|
||||
SmileyStickerIcon as SmileySticker,
|
||||
SortAscendingIcon as SortAscending,
|
||||
SpeakerHighIcon as SpeakerHigh,
|
||||
SpeakerSlashIcon as SpeakerSlash,
|
||||
SquaresFourIcon as SquaresFour,
|
||||
StarIcon as Star,
|
||||
StickerIcon as Sticker,
|
||||
StopIcon as Stop,
|
||||
SunIcon as Sun,
|
||||
TerminalIcon as Terminal,
|
||||
TextAaIcon as TextAa,
|
||||
TextBIcon as TextB,
|
||||
TextHOneIcon as TextHOne,
|
||||
TextHThreeIcon as TextHThree,
|
||||
TextHTwoIcon as TextHTwo,
|
||||
TextItalicIcon as TextItalic,
|
||||
TextStrikethroughIcon as TextStrikethrough,
|
||||
TextUnderlineIcon as TextUnderline,
|
||||
TrashIcon as Trash,
|
||||
TrayIcon as Tray,
|
||||
TreeStructureIcon as TreeStructure,
|
||||
UserIcon as User,
|
||||
UserCircleIcon as UserCircle,
|
||||
UserMinusIcon as UserMinus,
|
||||
UserPlusIcon as UserPlus,
|
||||
UsersThreeIcon as UsersThree,
|
||||
VideoCameraIcon as VideoCamera,
|
||||
VideoCameraSlashIcon as VideoCameraSlash,
|
||||
WarningIcon as Warning,
|
||||
XIcon as X,
|
||||
};
|
||||
@@ -18,7 +18,7 @@ type CodeDiffRow = Exclude<MessageDiffRow, { type: 'skip' }>;
|
||||
const renderInlineParts = (parts: TextDiffPart[]) =>
|
||||
parts.map((part, index) => {
|
||||
const content = scaleSystemEmoji(part.value);
|
||||
const key = `${index}-${part.type}-${part.value}`;
|
||||
const key = `diff-${index}-${part.type}`;
|
||||
if (part.type === 'delete') {
|
||||
return (
|
||||
<span key={key} className={css.DiffInlineDelete}>
|
||||
|
||||
Reference in new issue
Block a user