mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-26 03:01:14 +08:00
This consolidates various empty states to use a single `EmptyState` component. I've also added a new state when there are no pending invites. I've moved the SVGs to stand-alone components in a `components/svg/` directory. I believe these need to be embedded (rather than separate `.svg` assets) because we're using color variables within. Most of the `EmptyState` component is optional so it should be flexible. An optional tip block is used for when we may need to utilize an action instead of a link (as invites do). The invite tip includes a prefix and suffix so translators can adjust as needed for their locale. The existing empty states should only change slightly... New  Unread  Chat channels  Plus the new invite state:  These simpler empty states are also using the component now, it will now be easy to enhance these with illustrations in the future as well.   |
||
|---|---|---|
| .. | ||
| base-desktop.scss | ||
| chat-channel-info.scss | ||
| chat-channel.scss | ||
| chat-composer-uploads.scss | ||
| chat-index-drawer.scss | ||
| chat-index-full-page.scss | ||
| chat-message-actions.scss | ||
| chat-message-creator.scss | ||
| chat-message-thread-indicator.scss | ||
| chat-message.scss | ||
| chat-side-panel.scss | ||
| index.scss | ||