Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update from develop #32

Open
wants to merge 103 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
a9d3b7b
Merge branch 'develop' into master
pedrobmarin Apr 18, 2021
e3511f1
Merge pull request #110 from bigbluebutton/develop
pedrobmarin Jun 19, 2021
dfc009d
Merge pull request #114 from bigbluebutton/develop
pedrobmarin Jul 7, 2021
46b477e
Merge pull request #116 from bigbluebutton/develop
pedrobmarin Jul 12, 2021
23a47b2
Merge pull request #119 from bigbluebutton/develop
pedrobmarin Jul 19, 2021
fd576df
Merge pull request #121 from bigbluebutton/develop
pedrobmarin Aug 3, 2021
b9b6476
Merge pull request #124 from bigbluebutton/develop
pedrobmarin Aug 11, 2021
f23ec23
Merge branch 'develop' into master
pedrobmarin Aug 11, 2021
1955c61
Merge pull request #133 from bigbluebutton/develop
pedrobmarin Aug 28, 2021
2461857
Merge pull request #136 from bigbluebutton/develop
pedrobmarin Sep 13, 2021
444c940
Merge pull request #139 from bigbluebutton/develop
pedrobmarin Sep 23, 2021
c69843e
Merge pull request #146 from bigbluebutton/develop
pedrobmarin Oct 2, 2021
b6e96ad
Merge pull request #147 from bigbluebutton/develop
pedrobmarin Oct 5, 2021
bd9bd25
Merge pull request #172 from bigbluebutton/develop
pedrobmarin Feb 18, 2022
8aea073
Merge pull request #177 from bigbluebutton/develop
pedrobmarin Mar 9, 2022
0015633
Merge pull request #180 from bigbluebutton/develop
pedrobmarin Mar 18, 2022
008f048
Merge pull request #186 from bigbluebutton/develop
pedrobmarin Mar 29, 2022
074a128
Merge pull request #189 from bigbluebutton/develop
pedrobmarin Apr 8, 2022
4031c8e
Merge pull request #196 from bigbluebutton/develop
pedrobmarin Apr 19, 2022
d7d6731
feat(playback): move react-scripts to devDependencies
frankemax May 11, 2022
3e9e59a
Merge pull request #199 from frankemax/resolve-security-issues-2
pedrobmarin May 12, 2022
d0efec2
Replace ReactDOM.render with createRoot
MBM1607 May 27, 2022
e38ad10
Add regional fallbacks for all languages
MBM1607 May 28, 2022
60676a6
Merge pull request #201 from MBM1607/fix_regionalized_only
pedrobmarin May 28, 2022
28d7306
Merge pull request #200 from MBM1607/root_render
pedrobmarin May 28, 2022
a3e9136
chore: update dependencies
pedrobmarin May 28, 2022
275820b
chore: locales from upstream
pedrobmarin Jun 2, 2022
ceda91a
Merge pull request #204 from pedrobmarin/c-lfu
pedrobmarin Jun 2, 2022
f297d45
feat(whiteboard): add tldraw support
germanocaumo Jun 23, 2022
dafa730
fix(tldraw): wrong zoom in some situations +
germanocaumo Jun 30, 2022
afba204
refactor(tldraw) useEffect instead of useMemo
germanocaumo Jul 7, 2022
32564dd
Merge pull request #205 from germanocaumo/tldraw
pedrobmarin Jul 9, 2022
3c07309
chore(deps): bump terser from 5.14.1 to 5.14.2
dependabot[bot] Jul 21, 2022
da2cb72
Merge pull request #209 from bigbluebutton/dependabot/npm_and_yarn/te…
pedrobmarin Jul 21, 2022
f54232d
fix(tldraw): respect view area width/height +
germanocaumo Aug 16, 2022
61a1398
fix(tldraw): correct size calculation + disables selection and contex…
germanocaumo Aug 30, 2022
1f0982c
Merge pull request #214 from germanocaumo/tldraw-viewbox-fixs
germanocaumo Sep 14, 2022
ae36ad7
chore(deps): bump @xmldom/xmldom from 0.7.5 to 0.7.6
dependabot[bot] Oct 17, 2022
a4b5854
Merge pull request #215 from bigbluebutton/dependabot/npm_and_yarn/xm…
pedrobmarin Oct 17, 2022
e579938
fix(tldraw): moved to back shapes lost behind slide
germanocaumo Oct 24, 2022
849ec23
Merge pull request #216 from germanocaumo/f-move-to-back
germanocaumo Oct 24, 2022
ba75652
chore(deps): bump minimatch and recursive-readdir
dependabot[bot] Nov 12, 2022
bba2f38
chore(deps): bump loader-utils from 2.0.2 to 2.0.4
dependabot[bot] Nov 16, 2022
4c48175
Merge pull request #220 from bigbluebutton/dependabot/npm_and_yarn/mi…
germanocaumo Dec 5, 2022
c53dc21
Merge pull request #221 from bigbluebutton/dependabot/npm_and_yarn/lo…
germanocaumo Dec 5, 2022
796c34c
chore(deps): bump @xmldom/xmldom from 0.7.6 to 0.7.9
dependabot[bot] Dec 5, 2022
5dce191
Merge pull request #222 from bigbluebutton/dependabot/npm_and_yarn/xm…
germanocaumo Dec 5, 2022
d3dcadb
fix: upgrade react-router-dom from 6.3.0 to 6.4.3
snyk-bot Dec 17, 2022
ea52255
fix: upgrade sass from 1.53.0 to 1.56.1
snyk-bot Dec 17, 2022
7344a23
feat(player): add forward and back buttons
germanocaumo Jan 5, 2023
83070fe
fix(poll): show number of votes and group answers
germanocaumo Jan 5, 2023
4c83a76
Merge pull request #223 from bigbluebutton/snyk-upgrade-caa2f7f03cd78…
germanocaumo Jan 5, 2023
c822a9e
chore(deps): bump json5 from 1.0.1 to 1.0.2
dependabot[bot] Jan 5, 2023
49e236c
fix: upgrade @tldraw/tldraw from 1.20.0 to 1.26.2
germanocaumo Jan 5, 2023
6e73028
Merge pull request #232 from germanocaumo/upgrade-tldraw
germanocaumo Jan 5, 2023
c296bc6
Merge pull request #225 from bigbluebutton/snyk-upgrade-057082828dec8…
germanocaumo Jan 5, 2023
8a6d9a9
chore: upgrade react-intl from 6.0.4 to 6.2.5
germanocaumo Jan 5, 2023
65bfaa7
Merge pull request #233 from germanocaumo/upgrade-react-intl
germanocaumo Jan 5, 2023
348a1b6
fix: upgrade video.js from 7.19.2 to 7.21.1
snyk-bot Dec 17, 2022
fbb3e5f
Merge pull request #227 from bigbluebutton/snyk-upgrade-0d6bcc2f2a2a7…
germanocaumo Jan 5, 2023
e346e3e
Merge branch 'develop' of https://github.com/bigbluebutton/bbb-playba…
germanocaumo Jan 5, 2023
d0e353f
Merge pull request #229 from germanocaumo/seek-buttons
germanocaumo Jan 5, 2023
b86979c
Merge pull request #231 from bigbluebutton/dependabot/npm_and_yarn/js…
germanocaumo Jan 5, 2023
7b59804
Merge pull request #230 from germanocaumo/poll-answers-number-group
germanocaumo Jan 5, 2023
99fb289
chore: bump tldraw to 1.27.0 to match client
antobinary Jan 27, 2023
3e5abd1
fix(tldraw): video tooltips/volume behind presentation
germanocaumo Jan 30, 2023
2a9f3a6
Merge pull request #235 from germanocaumo/fix-tldraw-zindex
germanocaumo Jan 30, 2023
e72b13b
Merge pull request #234 from bigbluebutton/tldraw-1.27.0
germanocaumo Jan 30, 2023
922069e
fix(tldraw): apply scale factor introduced in 2.6.0-rc.4
germanocaumo Mar 1, 2023
2fd02ed
Merge pull request #236 from germanocaumo/f-scaling
germanocaumo Mar 1, 2023
a6cb680
fix(tldraw): Reduce max canvas size
germanocaumo Mar 20, 2023
ba3c95e
Merge pull request #238 from bigbluebutton/germanocaumo-patch-1
germanocaumo Mar 20, 2023
9ebf3fa
refactor(tldraw): use bbb-version from tldraw.json if available
germanocaumo Mar 24, 2023
9f7b0d4
Merge pull request #239 from germanocaumo/f-bbb-version
germanocaumo Mar 27, 2023
e43e90a
chore(version): bump to 5.0.0
germanocaumo Mar 27, 2023
134315b
Merge pull request #240 from bigbluebutton/develop
germanocaumo Mar 27, 2023
3b5eb09
fix: package.json & package-lock.json to reduce vulnerabilities
snyk-bot Jun 20, 2023
e958585
Update ja.json
hiroshisuga Jun 24, 2023
3e80892
Update text.js
hiroshisuga Jul 14, 2023
95cbe55
Merge pull request #246 from hiroshisuga/patch-8
antobinary Jul 19, 2023
0bbb5c7
Merge pull request #242 from bigbluebutton/snyk-fix-ffa61ce9af400adda…
antobinary Jul 19, 2023
71cbfdd
Merge pull request #244 from hiroshisuga/patch-7
antobinary Jul 19, 2023
c3946cc
issue-18721 - fix annotations wrongly displayed
GuiLeme Sep 11, 2023
f089888
[issue-18721] - refactor to a more meaningful name
GuiLeme Sep 12, 2023
a36b76a
[issue-18721] - change
GuiLeme Sep 12, 2023
9926660
Merge pull request #251 from GuiLeme/issue-18721
antobinary Sep 15, 2023
68f5afb
chore: bump version to 5.0.1
antobinary Sep 15, 2023
606ebae
Merge pull request #253 from bigbluebutton/501
antobinary Sep 15, 2023
5a6b989
Merge remote-tracking branch 'origin/develop'
antobinary Sep 15, 2023
b2034ec
chore: audit npm deps
antobinary Nov 5, 2023
824b249
Merge pull request #255 from bigbluebutton/273-fix-npm
antobinary Nov 6, 2023
1b2687f
chore: bump to 5.0.2
antobinary Nov 6, 2023
a8f5a72
Merge pull request #256 from bigbluebutton/273-fix-npm
antobinary Nov 6, 2023
bf93a14
fix: change nginx path in deploy script
antobinary Nov 9, 2023
d6b1fe7
Drop trailing slash
antobinary Nov 9, 2023
494ec67
Add a version file for bbb-playback
antobinary Nov 9, 2023
8ff66c4
Merge pull request #258 from bigbluebutton/antobinary-patch-1
antobinary Nov 15, 2023
0f46e15
Merge pull request #259 from bigbluebutton/antobinary-patch-2
antobinary Nov 15, 2023
b6ac1eb
fix(chat): audio icon/title and keep only filename
germanocaumo Jan 12, 2024
acfd6f4
Merge pull request #31 from germanocaumo/audio-player-chat
lfzawacki Jan 16, 2024
3004522
Merge branch 'develop' of https://github.com/bigbluebutton/bbb-playba…
germanocaumo Jan 18, 2024
0b6c43c
fix deploy cp error
germanocaumo Jan 24, 2024
b701e5f
Merge pull request #34 from germanocaumo/experimental
fcecagno Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ export REACT_APP_BBB_PLAYBACK_BUILD=$(git rev-parse --short HEAD)

npm run-script build
sudo rm -rf $BBB_PLAYBACK
sudo cp -r ./build $BBB_PLAYBACK
grep \"version\"\: package.json | sed -e 's|.*\ \"||g' -e 's|\".*||g' > bbb-playback-version
sudo mkdir -p $BBB_PLAYBACK
sudo cp -r ./build bbb-playback-version $BBB_PLAYBACK
sudo chown --recursive bigbluebutton:bigbluebutton $BBB_PLAYBACK

BBB_NGINX_FILES_PATH=/etc/bigbluebutton/nginx
BBB_NGINX_FILES_PATH=/usr/share/bigbluebutton/nginx
if [ ! -f $BBB_NGINX_FILES_PATH/playback.nginx ]; then
sudo cp ./playback.nginx $BBB_NGINX_FILES_PATH
sudo systemctl reload nginx
Expand Down
38,344 changes: 28,059 additions & 10,285 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 17 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{
"name": "bbb-playback",
"version": "4.0.0",
"version": "5.0.2",
"homepage": "/playback/presentation/2.3",
"dependencies": {
"@tldraw/tldraw": "^1.27.0",
"classnames": "^2.3.1",
"darkreader": "^4.9.46",
"linkify-react": "^3.0.4",
"linkifyjs": "^3.0.5",
"prop-types": "^15.8.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-intl": "^5.25.0",
"react-router-dom": "^6.3.0",
"react-scripts": "^4.0.3",
"sass": "^1.50.0",
"video.js": "^7.18.1",
"xml2js": "^0.4.23"
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-intl": "^6.2.5",
"react-router-dom": "^6.4.3",
"react-sizeme": "^3.0.2",
"sass": "^1.52.1",
"semver": "^7.5.2",
"video.js": "^7.21.1",
"videojs-seek-buttons": "^3.0.1"
},
"devDependencies": {
"react-scripts": "^5.0.1"
},
"overrides": {
"nth-check": "2.0.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link href="%PUBLIC_URL%/styles/video-js.min.css" rel="stylesheet" />
<link href="%PUBLIC_URL%/styles/videojs-seek-buttons.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
Expand Down
2 changes: 1 addition & 1 deletion public/styles/video-js.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/styles/videojs-seek-buttons.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/components/chat/messages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ const Messages = ({
url={item.url}
timestamp={timestamp}
type={item.type}
isAudio={item.isAudio}
isLocal={item.isLocal}
/>
</span>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/chat/messages/system/poll/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Result = ({

return(
<div className="poll-label">
{id + 1}: <span className="poll-bar">{getBar(percentage)}</span> {percentage}%
{id + 1}: {numVotes} <span className="poll-bar">{getBar(percentage)}</span> {percentage}%
</div>
);
})}
Expand Down
24 changes: 20 additions & 4 deletions src/components/chat/messages/system/video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,57 @@ import SystemMessage from 'components/chat/messages/system/message';
import { ID } from 'utils/constants';

const intlMessages = defineMessages({
name: {
videoName: {
id: 'player.chat.message.video.name',
description: 'Label for the video message name',
},
audioName: {
id: 'player.chat.message.audio.name',
description: 'Label for the audio message name',
},
});

const propTypes = {
active: PropTypes.bool,
url: PropTypes.url,
timestamp: PropTypes.number,
isAudio: PropTypes.bool,
isLocal: PropTypes.bool,
};

const defaultProps = {
active: false,
url: '',
timestamp: 0,
isAudio: false,
isLocal: false,
};

// leave just the fileName for local files
const formatUrl = (url) => {
const urlParams = new URLSearchParams(url);
return Array.from(urlParams.values())[0];
}

const Video = ({
active,
url,
timestamp,
isAudio,
isLocal,
}) => {
const intl = useIntl();

return (
<SystemMessage
active={active}
icon={ID.VIDEOS}
name={intl.formatMessage(intlMessages.name)}
icon={isAudio ? 'audios' : ID.VIDEOS}
name={isAudio ? intl.formatMessage(intlMessages.audioName) : intl.formatMessage(intlMessages.videoName)}
timestamp={timestamp}
>
<Url
active={active}
url={url}
url={isLocal ? formatUrl(url) : url}
/>
</SystemMessage>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/chat/messages/user/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Text = ({

return (
<Linkify options={options}>
{text}
{text.replace(/(\S)(https?:\/\/)/g, '$1 $2')}
</Linkify>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/player/buttons/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.fullscreen-button {
margin-top: $margin;
position: fixed;
z-index: 1;
z-index: 2;

[dir="ltr"] & {
right: 0;
Expand Down
8 changes: 7 additions & 1 deletion src/components/player/content/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import React from 'react';
import cx from 'classnames';
import Presentation from 'components/presentation';
import TldrawPresentation from 'components/tldraw';
import Screenshare from 'components/screenshare';
import Thumbnails from 'components/thumbnails';
import FullscreenButton from 'components/player/buttons/fullscreen';
import { LAYOUT } from 'utils/constants';
import { isEqual } from 'utils/data/validators';
import layout from 'utils/layout';
import storage from 'utils/data/storage';
import './index.scss';

const Content = ({
Expand All @@ -18,6 +20,10 @@ const Content = ({
}) => {
if (layout.single) return null;

const isTldrawWhiteboard = storage.tldraw.length ||
storage.panzooms.tldraw ||
storage.cursor.tldraw;

return (
<div className={cx('content', { 'swapped-content': swap })}>
<FullscreenButton
Expand All @@ -27,7 +33,7 @@ const Content = ({
toggleFullscreen={toggleFullscreen}
/>
<div className="top-content">
<Presentation />
{isTldrawWhiteboard ? <TldrawPresentation /> : <Presentation />}
{layout.screenshare ? <Screenshare /> : null}
</div>
<div className={cx('bottom-content', { 'inactive': fullscreen })}>
Expand Down
28 changes: 14 additions & 14 deletions src/components/presentation/canvas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,28 @@ const Canvas = () => {
canvas.push(
<circle
style={style}
cx={data.cx}
cy={data.cy}
r={data.r}
cx={data._cx}
cy={data._cy}
r={data._r}
/>
);
break;
case SHAPES.LINE:
canvas.push(
<line
style={style}
x1={data.x1}
y1={data.y1}
x2={data.x2}
y2={data.y2}
x1={data._x1}
y1={data._y1}
x2={data._x2}
y2={data._y2}
/>
);
break;
case SHAPES.PATH:
canvas.push(
<path
style={style}
d={data.d}
d={data._d}
/>
);
break;
Expand All @@ -86,26 +86,26 @@ const Canvas = () => {
canvas.push(
<polygon
style={style}
points={data.points}
points={data._points}
/>
);
break;
case SHAPES.POLYLINE:
canvas.push(
<polyline
style={style}
points={data.points}
points={data._points}
/>
);
break;
case SHAPES.TEXT:
canvas.push(
<foreignObject
style={style}
height={data.height}
width={data.width}
x={data.x}
y={data.y}
height={data._height}
width={data._width}
x={data._x}
y={data._y}
>
<div xmlns="http://www.w3.org/1999/xhtml">
{data.text.split('\r').map(line => <span>{line}<br /></span>)}
Expand Down
36 changes: 18 additions & 18 deletions src/components/presentation/canvas/poll.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ const Poll = ({
return (
<g style={style}>
<rect
fill={rect.fill}
height={rect.height}
stroke={rect.stroke}
strokeWidth={rect['stroke-width']}
width={rect.width}
x={rect.x}
y={rect.y}
fill={rect._fill}
height={rect._height}
stroke={rect._stroke}
strokeWidth={rect['_stroke-width']}
width={rect._width}
x={rect._x}
y={rect._y}
/>
<image
height={image.height}
transform={image.transform}
width={image.width}
x={image.x}
href={buildFileURL(image['xlink:href'])}
y={image.y}
height={image._height}
transform={image._transform}
width={image._width}
x={image._x}
href={buildFileURL(image['_xlink:href'])}
y={image._y}
/>
</g>
);
Expand All @@ -39,11 +39,11 @@ const Poll = ({
return (
<g style={style}>
<image
height={image.height}
width={image.width}
x={image.x}
href={buildFileURL(image['xlink:href'])}
y={image.y}
height={image._height}
width={image._width}
x={image._x}
href={buildFileURL(image['_xlink:href'])}
y={image._y}
/>
</g>
);
Expand Down
54 changes: 54 additions & 0 deletions src/components/tldraw/cursor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import React from 'react';
import { useCurrentIndex } from 'components/utils/hooks';
import storage from 'utils/data/storage';
import './index.scss';

const getCursor = (index, size, pageState) => {
const inactive = {
x: -1,
y: -1,
}

if (index === -1) return inactive;

const currentData = storage.cursor[index];
if (currentData.x === -1 && currentData.y === -1) return inactive;

let _x = null;
let _y = null;

_x = (currentData.x + pageState?.camera?.point[0]) * pageState?.camera?.zoom;
_y = (currentData.y + pageState?.camera?.point[1]) * pageState?.camera?.zoom;

if (_x > size.width || _y > size.height ) return inactive;

return {
x: _x,
y: _y
};
};

const Cursor = ({ tldrawAPI, size }) => {
const currentIndex = useCurrentIndex(storage.cursor);
const { x, y } = getCursor(currentIndex, size, tldrawAPI?.getPageState());

if (x === -1 || y === -1) return null;

return (
<div
style={{
zIndex: 2,
position: "absolute",
left: x - 5.0,
top: y - 5.0,
width: 10,
height: 10,
borderRadius: "50%",
background: "#C70039",
pointerEvents: "none",
}}
/>
);
};

export default Cursor;
Loading