linting and clean-up

This commit is contained in:
Anton Georgiev 2017-12-07 17:13:44 -05:00
parent a1a64a1524
commit 48bf163559
5 changed files with 6 additions and 61 deletions

View File

@ -32,54 +32,10 @@ const listTransition = {
};
const intlMessages = defineMessages({
usersTitle: {
id: 'app.userList.usersTitle',
description: 'Title for the Header',
},
messagesTitle: {
id: 'app.userList.messagesTitle',
description: 'Title for the messages list',
},
participantsTitle: {
id: 'app.userList.participantsTitle',
description: 'Title for the Users list',
},
toggleCompactView: {
id: 'app.userList.toggleCompactView.label',
description: 'Toggle user list view mode',
},
ChatLabel: {
id: 'app.userList.menu.chat.label',
description: 'Save the changes and close the settings menu',
},
ClearStatusLabel: {
id: 'app.userList.menu.clearStatus.label',
description: 'Clear the emoji status of this user',
},
MakePresenterLabel: {
id: 'app.userList.menu.makePresenter.label',
description: 'Set this user to be the presenter in this meeting',
},
KickUserLabel: {
id: 'app.userList.menu.kickUser.label',
description: 'Forcefully remove this user from the meeting',
},
MuteUserAudioLabel: {
id: 'app.userList.menu.muteUserAudio.label',
description: 'Forcefully mute this user',
},
UnmuteUserAudioLabel: {
id: 'app.userList.menu.unmuteUserAudio.label',
description: 'Forcefully unmute this user',
},
PromoteUserLabel: {
id: 'app.userList.menu.promoteUser.label',
description: 'Forcefully promote this viewer to a moderator',
},
DemoteUserLabel: {
id: 'app.userList.menu.demoteUser.label',
description: 'Forcefully demote this moderator to a viewer',
},
});
class UserMessages extends Component {

View File

@ -48,18 +48,6 @@ const intlMessages = defineMessages({
id: 'app.userList.usersTitle',
description: 'Title for the Header',
},
messagesTitle: {
id: 'app.userList.messagesTitle',
description: 'Title for the messages list',
},
participantsTitle: {
id: 'app.userList.participantsTitle',
description: 'Title for the Users list',
},
toggleCompactView: {
id: 'app.userList.toggleCompactView.label',
description: 'Toggle user list view mode',
},
ChatLabel: {
id: 'app.userList.menu.chat.label',
description: 'Save the changes and close the settings menu',

View File

@ -25,7 +25,7 @@ const propTypes = {
}).isRequired,
userActions: PropTypes.shape({}).isRequired,
router: PropTypes.shape({}).isRequired,
isBreakoutRoom: PropTypes.bool.isRequired,
isBreakoutRoom: PropTypes.bool,
getAvailableActions: PropTypes.func.isRequired,
meeting: PropTypes.shape({}).isRequired,
isMeetingLocked: PropTypes.func.isRequired,
@ -34,12 +34,10 @@ const propTypes = {
};
const defaultProps = {
shouldShowActions: false,
isBreakoutRoom: false,
};
class UserListItem extends Component {
static createAction(action, ...options) {
return (
<UserAction

View File

@ -201,13 +201,15 @@ class UserListContent extends Component {
? intl.formatMessage(messages.presenter)
: '';
const userAriaLabel = intl.formatMessage(messages.userAriaLabel,
const userAriaLabel = intl.formatMessage(
messages.userAriaLabel,
{
0: user.name,
1: presenter,
2: you,
3: user.emoji.status,
});
},
);
const contents = (
<div

View File

@ -12,3 +12,4 @@ redis:
- 'from-akka-apps-wb-redis-channel'
ignored:
- 'CheckAlivePongSysMsg'
- 'DoLatencyTracerMsg'