mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(app): show instance branding in switchers and pickers (#3289)
This commit is contained in:
1 parent
6dc698ff5e
commit
d6e3254a16
63 files changed
+929
-587
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {Routes} from '@app/app/Routes';
|
||||
import {PRODUCT_NAME} from '@app/features/app/config/I18nDisplayConstants';
|
||||
import {getActiveInstanceProductName} from '@app/features/app/state/ActiveInstanceProductName';
|
||||
import RuntimeConfig from '@app/features/app/state/RuntimeConfig';
|
||||
import styles from '@app/features/channel/components/InviteEmbed.module.css';
|
||||
import {
|
||||
@@ -364,7 +364,9 @@ const InviteEmbedInner = observer(function InviteEmbedInner({
|
||||
{actionType === GuildInvitePrimaryAction.InvitesDisabled && (
|
||||
<p className={styles.statText} data-flx="channel.invite-embed.stat-text--4">
|
||||
{guildActionState.isRaidDetected
|
||||
? i18n._(DETECTED_A_POTENTIAL_RAID_SO_NEW_USERS_CAN_DESCRIPTOR, {productName: PRODUCT_NAME})
|
||||
? i18n._(DETECTED_A_POTENTIAL_RAID_SO_NEW_USERS_CAN_DESCRIPTOR, {
|
||||
productName: getActiveInstanceProductName(),
|
||||
})
|
||||
: i18n._(INVITES_ARE_CURRENTLY_PAUSED_FOR_THIS_COMMUNITY_DESCRIPTOR)}
|
||||
</p>
|
||||
)}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {UserSettingsModal} from '@app/features/app/components/dialogs/LoadableSettingsModals';
|
||||
import {PRODUCT_NAME} from '@app/features/app/config/I18nDisplayConstants';
|
||||
import {getActiveInstanceProductName} from '@app/features/app/state/ActiveInstanceProductName';
|
||||
import {openClaimAccountModal} from '@app/features/auth/components/modals/ClaimAccountModal';
|
||||
import styles from '@app/features/channel/components/barriers/BarrierComponents.module.css';
|
||||
import {openChannelFollowModal} from '@app/features/channel/components/modals/ChannelFollowModal';
|
||||
@@ -359,7 +359,7 @@ export const SystemDmBarrier = observer(() => {
|
||||
const {i18n} = useLingui();
|
||||
return (
|
||||
<BarrierBase
|
||||
message={i18n._(SYSTEM_ANNOUNCEMENTS_FROM_STAFF_DESCRIPTOR, {productName: PRODUCT_NAME})}
|
||||
message={i18n._(SYSTEM_ANNOUNCEMENTS_FROM_STAFF_DESCRIPTOR, {productName: getActiveInstanceProductName()})}
|
||||
icon={
|
||||
<InfoIcon
|
||||
size={remFromPx(18)}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {PRODUCT_NAME} from '@app/features/app/config/I18nDisplayConstants';
|
||||
import {getActiveInstanceProductName} from '@app/features/app/state/ActiveInstanceProductName';
|
||||
import styles from '@app/features/channel/components/GuildMembersPage.module.css';
|
||||
import {ROLES_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
|
||||
import {remFromPx} from '@app/features/theme/layout/RemFromPx';
|
||||
@@ -105,7 +105,7 @@ export function MembersTableHeaderRow({
|
||||
data-flx="channel.guild-members-page.members-table-view.header-cell--3"
|
||||
>
|
||||
<div className={styles.thContent} data-flx="channel.guild-members-page.members-table-view.th-content--2">
|
||||
{i18n._(JOINED_PRODUCT_DESCRIPTOR, {productName: PRODUCT_NAME})}
|
||||
{i18n._(JOINED_PRODUCT_DESCRIPTOR, {productName: getActiveInstanceProductName()})}
|
||||
<button
|
||||
type="button"
|
||||
className={clsx(styles.filterButton, joinedFluxerActive && styles.filterButtonActive)}
|
||||
|
||||
Reference in new issue
Block a user