lbry-desktop/ui/constants/icons.js

216 lines
7.6 KiB
JavaScript
Raw Normal View History

2019-01-22 15:36:28 -05:00
// React Feather icons
// https://github.com/carmelopullara/react-feather
// Note: Icons should be named for their purpose, rather than the actual icon.
// The goal being to reduce multiple uses of the same icon for different purposes.
2021-12-21 15:46:32 -03:00
export const REWARDS = 'Award';
2018-03-26 14:32:43 -07:00
export const LOCAL = 'Folder';
export const ALERT = 'AlertCircle';
export const INFO = 'InfoCircle';
export const COPY = 'Clipboard';
2018-03-26 14:32:43 -07:00
export const ARROW_LEFT = 'ChevronLeft';
export const ARROW_RIGHT = 'ChevronRight';
export const DOWNLOAD = 'Download';
2019-06-28 03:33:07 -04:00
export const PUBLISH = 'UploadCloud';
export const FETCH = 'Fetch';
export const REMOVE = 'X';
2019-06-11 14:10:58 -04:00
export const ADD = 'Plus';
export const SUBTRACT = 'Subtract';
export const EDIT = 'Edit';
2019-01-22 15:36:28 -05:00
export const DELETE = 'Trash';
2018-03-26 14:32:43 -07:00
export const REPORT = 'Flag';
export const HELP = 'HelpCircle';
2019-01-22 15:36:28 -05:00
export const CHAT = 'MessageCircle';
2020-06-21 12:19:26 -07:00
export const FEEDBACK = 'MessageSquare';
2018-03-26 14:32:43 -07:00
export const SEARCH = 'Search';
2019-01-22 15:36:28 -05:00
export const CHANNEL = 'AtSign';
2018-03-26 14:32:43 -07:00
export const REFRESH = 'RefreshCw';
2022-05-03 13:21:51 +02:00
export const WATCH_HISTORY = 'WatchHistory';
2018-03-26 14:32:43 -07:00
export const HOME = 'Home';
2019-06-17 16:32:38 -04:00
export const OVERVIEW = 'Activity';
export const WALLET = 'List';
2021-03-25 19:24:49 +08:00
export const COIN_SWAP = 'CoinSwap';
2018-03-26 14:32:43 -07:00
export const PHONE = 'Phone';
2019-01-22 15:36:28 -05:00
export const COMPLETE = 'Check';
export const COMPLETED = 'CheckCircle';
2020-09-03 16:05:38 -04:00
export const NOT_COMPLETED = 'Circle';
2019-06-28 03:33:07 -04:00
export const SUBSCRIBE = 'Heart';
export const SUBSCRIBED = 'HeartSolid';
2019-02-06 22:28:37 -08:00
export const UNSUBSCRIBE = 'BrokenHeart';
2020-11-02 11:51:08 -05:00
export const BELL = 'Bell';
export const BELL_ON = 'BellOn';
export const UNLOCK = 'Unlock';
2019-09-30 17:48:30 -04:00
export const LOCK = 'Lock';
2019-01-22 15:36:28 -05:00
export const WEB = 'Globe';
export const SHARE = 'Share2';
export const EXTERNAL = 'ExternalLink';
2018-06-18 16:16:22 -06:00
export const PLAY = 'Play';
export const PLAY_PREVIOUS = 'Play Previous';
export const WHATSAPP = 'WhatsApp';
2018-09-12 12:42:15 -04:00
export const FACEBOOK = 'Facebook';
export const TWITTER = 'Twitter';
2020-03-27 14:57:03 -04:00
export const TELEGRAM = 'Telegram';
export const REDDIT = 'Reddit';
export const EMBED = 'Embed';
export const MORE = 'More';
export const SHARE_LINK = 'ShareLink';
export const COPY_LINK = 'CopyLink';
2019-03-31 19:04:01 -04:00
export const ACCOUNT = 'User';
2018-10-19 16:38:07 -04:00
export const SETTINGS = 'Settings';
export const FILTER = 'Filter';
2019-01-22 15:36:28 -05:00
export const INVITE = 'Users';
export const FILE = 'File';
2019-05-26 00:18:47 -06:00
export const FULLSCREEN = 'Maximize';
2019-02-18 12:24:56 -05:00
export const OPTIONS = 'Sliders';
export const YES = 'ThumbsUp';
export const NO = 'ThumbsDown';
export const UP = 'ChevronUp';
export const UP_TOP = 'ChevronUpTop';
export const DOWN = 'ChevronDown';
export const DOWN_BOTTOM = 'ChevronDownBottom';
export const DRAG = 'DragAndDrop';
2019-03-04 23:46:57 -05:00
export const SECURE = 'Lock';
export const MENU = 'Menu';
2019-03-28 12:53:13 -04:00
export const BACKUP = 'Database';
export const TRANSACTIONS = 'FileText';
2019-03-29 11:23:45 -04:00
export const LBRY = 'Lbry';
2020-09-02 16:08:37 -04:00
export const LBC = 'LBC';
2019-03-31 19:04:01 -04:00
export const DISCOVER = 'Compass';
2019-04-03 00:56:58 -05:00
export const VISUALIZER_ON = 'Eye';
export const VISUALIZER_OFF = 'EyeOff';
export const MUSIC_DETAILS_ON = 'AlignLeft';
export const MUSIC_DETAILS_OFF = 'AlignLeft';
export const MUSIC_ART_ON = 'Image';
export const MUSIC_ART_OFF = 'Image';
export const MUSIC_ALBUM = 'Disc';
export const MUSIC_ARTIST = 'Mic';
export const MUSIC_SONG = 'Music';
export const MUSIC_EQUALIZER = 'Sliders';
2019-06-17 16:32:38 -04:00
export const LIGHT = 'Sun';
export const DARK = 'Moon';
export const LIBRARY = 'Folder';
2019-07-11 14:16:39 -04:00
export const TAG = 'Tag';
2019-07-17 14:04:50 -04:00
export const SUPPORT = 'TrendingUp';
export const BLOCK = 'Slash';
export const MUTE = 'VolumeX';
export const UNBLOCK = 'Circle';
2019-08-13 01:35:13 -04:00
export const VIEW = 'View';
2019-08-20 08:29:59 -04:00
export const EYE = 'Eye';
export const EYE_OFF = 'EyeOff';
2019-08-21 16:54:44 -04:00
export const SIGN_OUT = 'SignOut';
export const SIGN_IN = 'SignIn';
export const SIGN_UP = 'Key';
2020-01-02 11:30:27 -05:00
export const TRENDING = 'Trending';
export const TOP = 'Top';
2020-01-07 16:08:39 -05:00
export const NEW = 'New';
export const MORE_VERTICAL = 'MoreVertical';
2020-01-28 14:52:17 -05:00
export const IMAGE = 'Image';
export const AUDIO = 'HeadPhones';
export const VIDEO = 'Video';
export const VOLUME_MUTED = 'VolumeX';
2020-01-28 14:52:17 -05:00
export const TEXT = 'FileText';
export const DOWNLOADABLE = 'Downloadable';
2020-07-29 15:30:26 -05:00
export const POST = 'Post';
2020-01-31 11:43:14 -05:00
export const REPOST = 'Repeat';
2020-02-12 14:10:35 -05:00
export const VALIDATED = 'Check';
export const SLIDERS = 'Sliders';
export const SCIENCE = 'Science';
2020-03-18 13:33:17 -04:00
export const ANALYTICS = 'BarChart2';
export const PURCHASED = 'Key';
export const CIRCLE = 'Circle';
export const PINNED = 'Pinned';
2020-06-01 13:03:19 -04:00
export const BUY = 'Buy';
export const SEND = 'Send';
export const RECEIVE = 'Receive';
2020-06-29 15:54:07 -04:00
export const CAMERA = 'Camera';
2020-06-21 12:19:26 -07:00
export const OPEN_LOG = 'FilePlus';
export const OPEN_LOG_FOLDER = 'Folder';
export const LBRY_STATUS = 'BarChart';
2020-07-23 10:22:57 -04:00
export const NOTIFICATION = 'Bell';
2020-08-21 11:49:13 -04:00
export const LAYOUT = 'Layout';
2020-08-24 13:35:21 -04:00
export const REPLY = 'Reply';
2020-09-03 16:05:38 -04:00
export const YOUTUBE = 'Youtube';
export const UPVOTE = 'Upvote';
export const DOWNVOTE = 'Downvote';
export const CONTROVERSIAL = 'Controversial';
2021-03-05 21:34:47 -05:00
export const RABBIT_HOLE = 'Droplet';
export const TECH = 'Speaker';
export const NEWS = 'Aperature';
export const FINANCE = 'DollarSign';
export const ENLIGHTENMENT = 'Anchor';
export const GAMING = 'Gaming';
export const COMMUNITY = 'Community';
2020-10-06 17:34:26 -04:00
export const FIRE_ACTIVE = 'FireActive';
export const SLIME_ACTIVE = 'SlimeActive';
export const FIRE = 'Fire';
export const SLIME = 'Slime';
export const PIN = 'Pin';
export const BEST = 'Best';
2020-10-27 12:24:31 -04:00
export const CREATOR_LIKE = 'CreatorLike';
export const CHEF = 'Chef';
export const ANONYMOUS = 'Anonymous';
export const CHANNEL_LEVEL_1 = 'ChannelLevel1';
export const CHANNEL_LEVEL_1_B = 'ChannelLevel1B';
export const CHANNEL_LEVEL_2 = 'ChannelLevel2';
export const CHANNEL_LEVEL_2_B = 'ChannelLevel2B';
export const CHANNEL_LEVEL_3 = 'ChannelLevel3';
export const CHANNEL_LEVEL_3_B = 'ChannelLevel3B';
export const CHANNEL_LEVEL_4 = 'ChannelLevel4';
export const CHANNEL_LEVEL_4_B = 'ChannelLevel4B';
export const CHANNEL_LEVEL_5 = 'ChannelLevel5';
export const CHANNEL_LEVEL_5_B = 'ChannelLevel5B';
export const MOVIES = 'Movies';
2021-03-05 21:34:47 -05:00
export const WILD_WEST = 'WildWest';
export const UNIVERSE = 'Universe';
export const CHEESE = 'Cheese';
export const PEACE = 'Peace';
export const PORK_BUN = 'PorkBun';
2021-04-12 23:52:50 -04:00
export const MIND_BLOWN = 'MindBlown';
2021-03-23 18:30:27 -04:00
export const LIVESTREAM = 'Livestream';
export const LIVESTREAM_SOLID = 'LivestreamSolid';
export const LIVESTREAM_MONOCHROME = 'LivestreamMono';
wip wip wip - everything but publish, autoplay, and styling collection publishing add channel to collection publish cleanup wip bump clear mass add after success move collection item management controls redirect replace to published collection id bump playlist selector on create bump use new collection add ui element bump wip gitignore add content json wip bump context add to playlist basic collections page style pass wip wip: edits, buttons, styles... change fileAuthor to claimAuthor update, pending bugfixes, delete modal progress, collection header, other bugfixes bump cleaning show page bugfix builtin collection headers no playlists, no grid title wip style tweaks use normal looking claim previews for collection tiles add collection changes style library previews collection menulist for delete/view on library delete modal works for unpublished rearrange collection publish tabs clean up collection publishing and items show on odysee begin collectoin edit header and css renaming better thumbnails bump fix collection publish redirect view collection in menu does something copy and thumbs list previews, pending, context menus, list page enter to add collection, lists page empty state playable lists only, delete feature, bump put fileListDownloaded back better collection titles improve collection claim details fix horiz more icon fix up channel page style, copy, bump refactor preview overlay properties, fix reposts showing as floppydisk add watch later toast, small overlay properties on wunderbar results, fix collection actions buttons bump cleanup cleaning, refactoring bump preview thumb styling, cleanup support discover page lists search sync, bump bump, fix sync more enforce builtin order for now new lists page empty state try to indicate unpublished edits in lists bump fix autoplay and linting consts, fix autoplay bugs fixes cleanup fix, bump lists experimental ui, fixes refactor listIndex out hack in collection fallback thumb bump
2021-02-06 02:03:51 -05:00
export const STACK = 'stack';
export const TIME = 'time';
2021-06-16 10:27:58 +08:00
export const GLOBE = 'globe';
2021-07-02 12:38:19 -04:00
export const RSS = 'rss';
export const APPEARANCE = 'Appearance';
export const CONTENT = 'Content';
2021-07-07 14:10:59 -04:00
export const STAR = 'star';
2021-07-22 17:29:57 -04:00
export const MUSIC = 'MusicCategory';
export const BADGE_MOD = 'BadgeMod';
export const BADGE_ADMIN = 'BadgeAdmin';
export const BADGE_STREAMER = 'BadgeStreamer';
export const REPLAY = 'Replay';
export const REPEAT = 'Repeat';
export const SHUFFLE = 'Shuffle';
2021-10-01 13:41:00 -04:00
export const HOLD_PHONE = 'HoldPhone';
2021-09-30 10:01:24 -03:00
export const LIFE = 'Life';
export const ARTISTS = 'Artists';
export const MYSTERIES = 'Mysteries';
export const TECHNOLOGY = 'Technology';
export const EMOJI = 'Emoji';
export const STICKER = 'Sticker';
2021-11-23 14:35:25 -03:00
export const EDUCATION = 'Education';
export const POP_CULTURE = 'Pop Culture';
2021-12-21 15:46:32 -03:00
export const ODYSEE_LOGO = 'OdyseeLogo';
export const ODYSEE_WHITE_TEXT = 'OdyseeLogoWhiteText';
export const ODYSEE_DARK_TEXT = 'OdyseeLogoDarkText';
2022-02-02 14:58:05 -03:00
export const FEATURED = 'Featured';
export const EARLY_ACCESS = 'EarlyAccess';
export const MEMBER_BADGE = 'MemberBadge';
export const NO_ADS = 'NoAds';
export const LIVESTREAM_MEMBERSHIP = 'LivestreamMembership';
Playlists v2: Refactors, touch ups + Queue Mode (#1604) * Playlists v2 * Style pass * Change playlist items arrange icon * Playlist card body open by default * Refactor collectionEdit components * Paginate & Refactor bid field * Collection page changes * Add Thumbnail optional * Replace extra info for description on collection page * Playlist card right below video on medium screen * Allow editing private collections * Add edit option to menus * Allow deleting a public playlist but keeping a private version * Add queue to Save menu, remove edit option from Builtin pages, show queue on playlists page * Fix scroll to recent persisting on medium screen * Fix adding to queue from menu * Fixes for delete * PublishList: delay mounting Items tab to prevent lock-up (#1783) For a large list, the playlist publish form is unusable (super-slow typing) due to the entire list being mounted despite the tab is not active. The full solution is still to paginate it, but for now, don't mount the tab until it is selected. Add a spinner to indicate something is loading. It's not prefect, but it's throwaway code anyway. At least we can fill in the fields properly now. * Batch-resolve private collections (#1782) * makeSelectClaimForClaimId --> selectClaimForClaimId Move away from the problematic `makeSelect*`, especially in large loops. * Batch-resolve private collections 1758 This alleviates the lock-up that is caused by large number of invidual resolves. There will still be some minor stutter due to the large DOM that React needs to handle -- that is logged in 1758 and will be handled separately. At least the stutter is short (1-2s) and the app is still usable. Private list items are being resolve individually, super slow if the list is large (>100). Published lists doesn't have this issue. doFetchItemsInCollections contains most of the useful logic, but it isn't called for private/built-in lists because it's not an actual claim. Tweaked doFetchItemsInCollections to handle private (UUID-based) collections. * Use persisted state for floating player playlist card body - I find it annoying being open everytime * Fix removing edits from published playlist * Fix scroll on mobile * Allow going editing items from toast * Fix ClaimShareButton * Prevent edit/publish of builtin * Fix async inside forEach * Fix sync on queue edit * Fix autoplayCountdown replay * Fix deleting an item scrolling the playlist * CreatedAt fixes * Remove repost for now * Anon publish fixes * Fix mature case on floating Co-authored-by: infinite-persistence <64950861+infinite-persistence@users.noreply.github.com>
2022-07-13 10:59:59 -03:00
export const PLAYLIST_PLAYBACK = 'PlaylistPlayback';
export const PREMIUM = 'Premium';
export const PREMIUM_PLUS = 'PremiumPlus';
export const UPGRADE = 'Upgrade';
export const DISMISS_ALL = 'DismissAll';
export const SUBMIT = 'Submit';
export const FILTERED_BY_LANG = 'FilteredByLang';
2022-03-28 22:32:01 +02:00
export const EURO = 'Euro';
2022-04-01 16:58:42 -03:00
export const SPORTS = 'Sports';
Playlists v2: Refactors, touch ups + Queue Mode (#1604) * Playlists v2 * Style pass * Change playlist items arrange icon * Playlist card body open by default * Refactor collectionEdit components * Paginate & Refactor bid field * Collection page changes * Add Thumbnail optional * Replace extra info for description on collection page * Playlist card right below video on medium screen * Allow editing private collections * Add edit option to menus * Allow deleting a public playlist but keeping a private version * Add queue to Save menu, remove edit option from Builtin pages, show queue on playlists page * Fix scroll to recent persisting on medium screen * Fix adding to queue from menu * Fixes for delete * PublishList: delay mounting Items tab to prevent lock-up (#1783) For a large list, the playlist publish form is unusable (super-slow typing) due to the entire list being mounted despite the tab is not active. The full solution is still to paginate it, but for now, don't mount the tab until it is selected. Add a spinner to indicate something is loading. It's not prefect, but it's throwaway code anyway. At least we can fill in the fields properly now. * Batch-resolve private collections (#1782) * makeSelectClaimForClaimId --> selectClaimForClaimId Move away from the problematic `makeSelect*`, especially in large loops. * Batch-resolve private collections 1758 This alleviates the lock-up that is caused by large number of invidual resolves. There will still be some minor stutter due to the large DOM that React needs to handle -- that is logged in 1758 and will be handled separately. At least the stutter is short (1-2s) and the app is still usable. Private list items are being resolve individually, super slow if the list is large (>100). Published lists doesn't have this issue. doFetchItemsInCollections contains most of the useful logic, but it isn't called for private/built-in lists because it's not an actual claim. Tweaked doFetchItemsInCollections to handle private (UUID-based) collections. * Use persisted state for floating player playlist card body - I find it annoying being open everytime * Fix removing edits from published playlist * Fix scroll on mobile * Allow going editing items from toast * Fix ClaimShareButton * Prevent edit/publish of builtin * Fix async inside forEach * Fix sync on queue edit * Fix autoplayCountdown replay * Fix deleting an item scrolling the playlist * CreatedAt fixes * Remove repost for now * Anon publish fixes * Fix mature case on floating Co-authored-by: infinite-persistence <64950861+infinite-persistence@users.noreply.github.com>
2022-07-13 10:59:59 -03:00
export const PLAYLIST = 'Playlist';
export const PLAYLIST_ADD = 'PlaylistAdd';
export const PLAYLIST_FILLED = 'PlaylistFilled';
export const ARRANGE = 'Arrange';