-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from bigbluebutton/develop
chore: update from develop
- Loading branch information
Showing
87 changed files
with
2,505 additions
and
2,453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@import 'src/styles/sizes'; | ||
|
||
.body-data { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-evenly; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
width: 100%; | ||
|
||
.item { | ||
box-sizing: border-box; | ||
display: grid; | ||
font-size: large; | ||
font-weight: var(--font-weight-semi-bold); | ||
grid-gap: $padding-extra-small; | ||
padding: $padding-small $padding-extra-small; | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
src/components/modals/about/item.js → ...components/modals/about/body/data/item.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import Data from './data'; | ||
import Shortcuts from './shortcuts'; | ||
import './index.scss'; | ||
|
||
const Body = () => { | ||
|
||
return ( | ||
<div className="about-body"> | ||
<Data /> | ||
<Shortcuts /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Body; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.about-body { | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
} | ||
|
||
.body-shortcuts { | ||
display: flex; | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
import React from 'react'; | ||
import { | ||
defineMessages, | ||
useIntl, | ||
} from 'react-intl'; | ||
import Key from './key'; | ||
import { shortcuts as config } from 'config'; | ||
import './index.scss'; | ||
|
||
const SHORTCUTS = [ | ||
'fullscreen', | ||
'play', | ||
'section', | ||
'seek.backward', | ||
'seek.forward', | ||
'skip.next', | ||
'skip.previous', | ||
'swap', | ||
]; | ||
|
||
const getCode = (shortcut) => { | ||
const path = shortcut.split('.'); | ||
|
||
let code = config[path[0]]; | ||
for (let i = 1; i < path.length; i++) { | ||
code = code[path[i]]; | ||
} | ||
|
||
return code; | ||
}; | ||
|
||
const intlMessages = defineMessages({ | ||
title: { | ||
id: 'player.about.modal.shortcuts.title', | ||
description: 'Label for the about modal shortcuts title', | ||
}, | ||
alt: { | ||
id: 'player.about.modal.shortcuts.alt', | ||
description: 'Label for the about modal shortcuts alt key', | ||
}, | ||
shift: { | ||
id: 'player.about.modal.shortcuts.shift', | ||
description: 'Label for the about modal shortcuts shift key', | ||
}, | ||
'fullscreen': { | ||
id: 'player.about.modal.shortcuts.fullscreen', | ||
description: 'Label for the about modal fullscreen shortcut', | ||
}, | ||
'play': { | ||
id: 'player.about.modal.shortcuts.play', | ||
description: 'Label for the about modal play shortcut', | ||
}, | ||
'section': { | ||
id: 'player.about.modal.shortcuts.section', | ||
description: 'Label for the about modal section shortcut', | ||
}, | ||
'seek.backward': { | ||
id: 'player.about.modal.shortcuts.seek.backward', | ||
description: 'Label for the about modal seek backward shortcut', | ||
}, | ||
'seek.forward': { | ||
id: 'player.about.modal.shortcuts.seek.forward', | ||
description: 'Label for the about modal seek forward shortcut', | ||
}, | ||
'skip.next': { | ||
id: 'player.about.modal.shortcuts.skip.next', | ||
description: 'Label for the about modal skip next shortcut', | ||
}, | ||
'skip.previous': { | ||
id: 'player.about.modal.shortcuts.skip.previous', | ||
description: 'Label for the about modal skip previous shortcut', | ||
}, | ||
'swap': { | ||
id: 'player.about.modal.shortcuts.swap', | ||
description: 'Label for the about modal swap shortcut', | ||
}, | ||
}); | ||
|
||
const Shortcuts = () => { | ||
const intl = useIntl(); | ||
|
||
return ( | ||
<div className="body-shortcuts"> | ||
<div className="title"> | ||
{intl.formatMessage(intlMessages.title)} | ||
</div> | ||
<div className="content"> | ||
{SHORTCUTS.map(shortcut => { | ||
|
||
return ( | ||
<div className="shortcut"> | ||
<div className="label"> | ||
{intl.formatMessage(intlMessages[shortcut])} | ||
</div> | ||
<div className="keys"> | ||
<Key code={intl.formatMessage(intlMessages.alt)} /> | ||
<Key code={intl.formatMessage(intlMessages.shift)} /> | ||
<Key code={getCode(shortcut)} /> | ||
</div> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Shortcuts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@import 'src/styles/sizes'; | ||
|
||
.body-shortcuts { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
.title { | ||
background-color: var(--secondary-highlight-color); | ||
box-sizing: border-box; | ||
display: flex; | ||
font-weight: var(--font-weight-semi-bold); | ||
justify-content: center; | ||
padding: $padding-extra-small; | ||
text-transform: uppercase; | ||
width: 100%; | ||
} | ||
|
||
.content { | ||
box-sizing: border-box; | ||
display: flex; | ||
font-size: small; | ||
padding: $padding-extra-small; | ||
|
||
.shortcut { | ||
box-sizing: border-box; | ||
display: flex; | ||
justify-content: space-between; | ||
padding: $margin-extra-small 0; | ||
|
||
.label { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
|
||
.keys { | ||
display: flex; | ||
|
||
.key { | ||
background-color: var(--secondary-content-color); | ||
color: var(--secondary-background-color); | ||
font-size: xx-small; | ||
margin: 0 $margin-extra-small; | ||
padding: $border-width-extra-small $border-width; | ||
text-transform: uppercase; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import './index.scss'; | ||
|
||
const propTypes = { code: PropTypes.string }; | ||
|
||
const defaultProps = { code: '' }; | ||
|
||
const Key = ({ code }) => { | ||
|
||
return ( | ||
<div className="key"> | ||
{code} | ||
</div> | ||
); | ||
}; | ||
|
||
Key.propTypes = propTypes; | ||
Key.defaultProps = defaultProps; | ||
|
||
export default Key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.