From 85e3f3761a64a17a7bf3de1e4be6824bd2aeb326 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 4 May 2022 17:09:48 +0100 Subject: [PATCH] Add all the license headers --- src/auth/generateRandomName.js | 16 ++++++++++++++++ src/auth/useInteractiveLogin.js | 16 ++++++++++++++++ src/auth/useInteractiveRegistration.js | 16 ++++++++++++++++ src/auth/useRecaptcha.js | 16 ++++++++++++++++ src/button/Button.jsx | 16 ++++++++++++++++ src/button/CopyButton.jsx | 16 ++++++++++++++++ src/button/LinkButton.jsx | 16 ++++++++++++++++ src/button/index.js | 16 ++++++++++++++++ src/form/Form.jsx | 16 ++++++++++++++++ src/home/CallList.jsx | 16 ++++++++++++++++ src/home/JoinExistingCallModal.jsx | 16 ++++++++++++++++ src/home/RegisteredView.jsx | 16 ++++++++++++++++ src/home/UnauthenticatedView.jsx | 16 ++++++++++++++++ src/home/useGroupCallRooms.js | 16 ++++++++++++++++ src/input/AvatarInputField.jsx | 16 ++++++++++++++++ src/input/Input.jsx | 16 ++++++++++++++++ src/input/SelectInput.jsx | 16 ++++++++++++++++ src/input/Toggle.jsx | 16 ++++++++++++++++ src/popover/Popover.jsx | 16 ++++++++++++++++ src/popover/PopoverMenu.jsx | 16 ++++++++++++++++ src/profile/ProfileModal.jsx | 16 ++++++++++++++++ src/profile/useProfile.js | 16 ++++++++++++++++ src/room/AudioPreview.jsx | 16 ++++++++++++++++ src/room/CallEndedView.jsx | 16 ++++++++++++++++ src/room/FeedbackModal.jsx | 16 ++++++++++++++++ src/room/GridLayoutMenu.jsx | 16 ++++++++++++++++ src/room/GroupCallInspector.jsx | 16 ++++++++++++++++ src/room/GroupCallLoader.jsx | 16 ++++++++++++++++ src/room/GroupCallView.jsx | 16 ++++++++++++++++ src/room/InCallView.jsx | 16 ++++++++++++++++ src/room/InviteModal.jsx | 16 ++++++++++++++++ src/room/LobbyView.jsx | 16 ++++++++++++++++ src/room/OverflowMenu.jsx | 16 ++++++++++++++++ src/room/PTTButton.jsx | 16 ++++++++++++++++ src/room/PTTCallView.jsx | 16 ++++++++++++++++ src/room/PTTFeed.jsx | 16 ++++++++++++++++ src/room/RageshakeRequestModal.jsx | 16 ++++++++++++++++ src/room/RoomAuthView.jsx | 16 ++++++++++++++++ src/room/RoomRedirect.jsx | 16 ++++++++++++++++ src/room/Timer.jsx | 16 ++++++++++++++++ src/room/VideoPreview.jsx | 16 ++++++++++++++++ src/room/useGroupCall.js | 16 ++++++++++++++++ src/room/useLoadGroupCall.js | 16 ++++++++++++++++ src/room/usePTT.js | 16 ++++++++++++++++ src/room/usePageUnload.js | 16 ++++++++++++++++ src/room/useSentryGroupCallHandler.js | 16 ++++++++++++++++ src/settings/SettingsModal.jsx | 16 ++++++++++++++++ src/settings/submit-rageshake.js | 16 ++++++++++++++++ src/settings/useMediaHandler.jsx | 16 ++++++++++++++++ src/tabs/Tabs.jsx | 16 ++++++++++++++++ src/tabs/Tabs.stories.jsx | 16 ++++++++++++++++ src/typography/Typography.jsx | 16 ++++++++++++++++ src/typography/Typography.stories.jsx | 16 ++++++++++++++++ src/video-grid/VideoGrid.jsx | 16 ++++++++++++++++ src/video-grid/VideoGrid.stories.jsx | 16 ++++++++++++++++ src/video-grid/VideoTile.jsx | 16 ++++++++++++++++ src/video-grid/VideoTileContainer.jsx | 16 ++++++++++++++++ src/video-grid/useCallFeed.js | 16 ++++++++++++++++ src/video-grid/useMediaStream.js | 16 ++++++++++++++++ src/video-grid/useRoomMemberName.js | 16 ++++++++++++++++ 60 files changed, 960 insertions(+) diff --git a/src/auth/generateRandomName.js b/src/auth/generateRandomName.js index 7e6ff93..bcd9d0a 100644 --- a/src/auth/generateRandomName.js +++ b/src/auth/generateRandomName.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { uniqueNamesGenerator, adjectives, diff --git a/src/auth/useInteractiveLogin.js b/src/auth/useInteractiveLogin.js index 4b1bc54..fd31d07 100644 --- a/src/auth/useInteractiveLogin.js +++ b/src/auth/useInteractiveLogin.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import matrix, { InteractiveAuth } from "matrix-js-sdk/src/browser-index"; import { useState, useCallback } from "react"; import { useClient } from "../ClientContext"; diff --git a/src/auth/useInteractiveRegistration.js b/src/auth/useInteractiveRegistration.js index fce5a6d..55da7d0 100644 --- a/src/auth/useInteractiveRegistration.js +++ b/src/auth/useInteractiveRegistration.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import matrix, { InteractiveAuth } from "matrix-js-sdk/src/browser-index"; import { useState, useEffect, useCallback, useRef } from "react"; import { useClient } from "../ClientContext"; diff --git a/src/auth/useRecaptcha.js b/src/auth/useRecaptcha.js index d99bea2..41710bd 100644 --- a/src/auth/useRecaptcha.js +++ b/src/auth/useRecaptcha.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { randomString } from "matrix-js-sdk/src/randomstring"; import { useEffect, useCallback, useRef, useState } from "react"; diff --git a/src/button/Button.jsx b/src/button/Button.jsx index 1e31fde..85754b3 100644 --- a/src/button/Button.jsx +++ b/src/button/Button.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { forwardRef } from "react"; import classNames from "classnames"; import styles from "./Button.module.css"; diff --git a/src/button/CopyButton.jsx b/src/button/CopyButton.jsx index 17483c5..b28d693 100644 --- a/src/button/CopyButton.jsx +++ b/src/button/CopyButton.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import useClipboard from "react-use-clipboard"; import { ReactComponent as CheckIcon } from "../icons/Check.svg"; diff --git a/src/button/LinkButton.jsx b/src/button/LinkButton.jsx index 721429d..561bba4 100644 --- a/src/button/LinkButton.jsx +++ b/src/button/LinkButton.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { Link } from "react-router-dom"; import classNames from "classnames"; diff --git a/src/button/index.js b/src/button/index.js index 0dc793c..fb2cf8c 100644 --- a/src/button/index.js +++ b/src/button/index.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export * from "./Button"; export * from "./CopyButton"; export * from "./LinkButton"; diff --git a/src/form/Form.jsx b/src/form/Form.jsx index c46064f..011fbb2 100644 --- a/src/form/Form.jsx +++ b/src/form/Form.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import classNames from "classnames"; import React, { forwardRef } from "react"; import styles from "./Form.module.css"; diff --git a/src/home/CallList.jsx b/src/home/CallList.jsx index 2e8aae6..e4badf2 100644 --- a/src/home/CallList.jsx +++ b/src/home/CallList.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { Link } from "react-router-dom"; import { CopyButton } from "../button"; diff --git a/src/home/JoinExistingCallModal.jsx b/src/home/JoinExistingCallModal.jsx index 8a749f9..515baca 100644 --- a/src/home/JoinExistingCallModal.jsx +++ b/src/home/JoinExistingCallModal.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { Modal, ModalContent } from "../Modal"; import { Button } from "../button"; diff --git a/src/home/RegisteredView.jsx b/src/home/RegisteredView.jsx index 0480050..02d87a1 100644 --- a/src/home/RegisteredView.jsx +++ b/src/home/RegisteredView.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useState, useCallback } from "react"; import { createRoom, roomAliasFromRoomName } from "../matrix-utils"; import { useGroupCallRooms } from "./useGroupCallRooms"; diff --git a/src/home/UnauthenticatedView.jsx b/src/home/UnauthenticatedView.jsx index 8243510..93650b8 100644 --- a/src/home/UnauthenticatedView.jsx +++ b/src/home/UnauthenticatedView.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useCallback, useState } from "react"; import { Header, HeaderLogo, LeftNav, RightNav } from "../Header"; import { UserMenuContainer } from "../UserMenuContainer"; diff --git a/src/home/useGroupCallRooms.js b/src/home/useGroupCallRooms.js index ea075f8..aa4246d 100644 --- a/src/home/useGroupCallRooms.js +++ b/src/home/useGroupCallRooms.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useState, useEffect } from "react"; const tsCache = {}; diff --git a/src/input/AvatarInputField.jsx b/src/input/AvatarInputField.jsx index 9b645b1..0977388 100644 --- a/src/input/AvatarInputField.jsx +++ b/src/input/AvatarInputField.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useObjectRef } from "@react-aria/utils"; import React, { useEffect } from "react"; import { useCallback } from "react"; diff --git a/src/input/Input.jsx b/src/input/Input.jsx index 88e0008..65d6ce3 100644 --- a/src/input/Input.jsx +++ b/src/input/Input.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { forwardRef } from "react"; import classNames from "classnames"; import styles from "./Input.module.css"; diff --git a/src/input/SelectInput.jsx b/src/input/SelectInput.jsx index 956b9e0..9cef16e 100644 --- a/src/input/SelectInput.jsx +++ b/src/input/SelectInput.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useRef } from "react"; import { HiddenSelect, useSelect } from "@react-aria/select"; import { useButton } from "@react-aria/button"; diff --git a/src/input/Toggle.jsx b/src/input/Toggle.jsx index f742308..b6443c3 100644 --- a/src/input/Toggle.jsx +++ b/src/input/Toggle.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useCallback, useRef } from "react"; import styles from "./Toggle.module.css"; import { useToggleButton } from "@react-aria/button"; diff --git a/src/popover/Popover.jsx b/src/popover/Popover.jsx index fe32fe6..09c73aa 100644 --- a/src/popover/Popover.jsx +++ b/src/popover/Popover.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { forwardRef, useRef } from "react"; import { DismissButton, useOverlay } from "@react-aria/overlays"; import { FocusScope } from "@react-aria/focus"; diff --git a/src/popover/PopoverMenu.jsx b/src/popover/PopoverMenu.jsx index 66ed3a7..fe7ee10 100644 --- a/src/popover/PopoverMenu.jsx +++ b/src/popover/PopoverMenu.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { forwardRef, useRef } from "react"; import styles from "./PopoverMenu.module.css"; import { useMenuTriggerState } from "@react-stately/menu"; diff --git a/src/profile/ProfileModal.jsx b/src/profile/ProfileModal.jsx index 1f757dd..b0dee0e 100644 --- a/src/profile/ProfileModal.jsx +++ b/src/profile/ProfileModal.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useCallback, useEffect, useState } from "react"; import { Button } from "../button"; import { useProfile } from "./useProfile"; diff --git a/src/profile/useProfile.js b/src/profile/useProfile.js index aab97bf..74b2870 100644 --- a/src/profile/useProfile.js +++ b/src/profile/useProfile.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useState, useCallback, useEffect } from "react"; import { getAvatarUrl } from "../matrix-utils"; diff --git a/src/room/AudioPreview.jsx b/src/room/AudioPreview.jsx index 7cfd612..32dfd13 100644 --- a/src/room/AudioPreview.jsx +++ b/src/room/AudioPreview.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import styles from "./AudioPreview.module.css"; import { GroupCallState } from "matrix-js-sdk/src/webrtc/groupCall"; diff --git a/src/room/CallEndedView.jsx b/src/room/CallEndedView.jsx index 29cffbf..5bbd8b8 100644 --- a/src/room/CallEndedView.jsx +++ b/src/room/CallEndedView.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import styles from "./CallEndedView.module.css"; import { LinkButton } from "../button"; diff --git a/src/room/FeedbackModal.jsx b/src/room/FeedbackModal.jsx index 84338d6..3bf8517 100644 --- a/src/room/FeedbackModal.jsx +++ b/src/room/FeedbackModal.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useCallback, useEffect } from "react"; import { Modal, ModalContent } from "../Modal"; import { Button } from "../button"; diff --git a/src/room/GridLayoutMenu.jsx b/src/room/GridLayoutMenu.jsx index a7cfd6c..2a95373 100644 --- a/src/room/GridLayoutMenu.jsx +++ b/src/room/GridLayoutMenu.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { Button } from "../button"; import { PopoverMenuTrigger } from "../popover/PopoverMenu"; diff --git a/src/room/GroupCallInspector.jsx b/src/room/GroupCallInspector.jsx index b7b03d4..c3188e8 100644 --- a/src/room/GroupCallInspector.jsx +++ b/src/room/GroupCallInspector.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Resizable } from "re-resizable"; import React, { useEffect, diff --git a/src/room/GroupCallLoader.jsx b/src/room/GroupCallLoader.jsx index 58934d0..dd327f9 100644 --- a/src/room/GroupCallLoader.jsx +++ b/src/room/GroupCallLoader.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { useLoadGroupCall } from "./useLoadGroupCall"; import { ErrorView, FullScreenView } from "../FullScreenView"; diff --git a/src/room/GroupCallView.jsx b/src/room/GroupCallView.jsx index b8052d6..0eb6b38 100644 --- a/src/room/GroupCallView.jsx +++ b/src/room/GroupCallView.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useCallback, useEffect, useState } from "react"; import { useHistory } from "react-router-dom"; import { GroupCallState } from "matrix-js-sdk/src/webrtc/groupCall"; diff --git a/src/room/InCallView.jsx b/src/room/InCallView.jsx index ea194f0..066e296 100644 --- a/src/room/InCallView.jsx +++ b/src/room/InCallView.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useCallback, useMemo } from "react"; import styles from "./InCallView.module.css"; import { diff --git a/src/room/InviteModal.jsx b/src/room/InviteModal.jsx index 1036f51..0a7e9ce 100644 --- a/src/room/InviteModal.jsx +++ b/src/room/InviteModal.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { Modal, ModalContent } from "../Modal"; import { CopyButton } from "../button"; diff --git a/src/room/LobbyView.jsx b/src/room/LobbyView.jsx index 1797cac..7459e64 100644 --- a/src/room/LobbyView.jsx +++ b/src/room/LobbyView.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useEffect, useRef } from "react"; import styles from "./LobbyView.module.css"; import { Button, CopyButton } from "../button"; diff --git a/src/room/OverflowMenu.jsx b/src/room/OverflowMenu.jsx index 82e7fbd..3f92975 100644 --- a/src/room/OverflowMenu.jsx +++ b/src/room/OverflowMenu.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useCallback } from "react"; import { Button } from "../button"; import { Menu } from "../Menu"; diff --git a/src/room/PTTButton.jsx b/src/room/PTTButton.jsx index 6da9b86..fd83d53 100644 --- a/src/room/PTTButton.jsx +++ b/src/room/PTTButton.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import classNames from "classnames"; import styles from "./PTTButton.module.css"; diff --git a/src/room/PTTCallView.jsx b/src/room/PTTCallView.jsx index 6993ec9..0893da4 100644 --- a/src/room/PTTCallView.jsx +++ b/src/room/PTTCallView.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { useModalTriggerState } from "../Modal"; import { SettingsModal } from "../settings/SettingsModal"; diff --git a/src/room/PTTFeed.jsx b/src/room/PTTFeed.jsx index cc655c7..d279c85 100644 --- a/src/room/PTTFeed.jsx +++ b/src/room/PTTFeed.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { useCallFeed } from "../video-grid/useCallFeed"; import { useMediaStream } from "../video-grid/useMediaStream"; diff --git a/src/room/RageshakeRequestModal.jsx b/src/room/RageshakeRequestModal.jsx index 07a5bf3..201b308 100644 --- a/src/room/RageshakeRequestModal.jsx +++ b/src/room/RageshakeRequestModal.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useEffect } from "react"; import { Modal, ModalContent } from "../Modal"; import { Button } from "../button"; diff --git a/src/room/RoomAuthView.jsx b/src/room/RoomAuthView.jsx index 7f9e650..8748790 100644 --- a/src/room/RoomAuthView.jsx +++ b/src/room/RoomAuthView.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useCallback, useState } from "react"; import styles from "./RoomAuthView.module.css"; import { Button } from "../button"; diff --git a/src/room/RoomRedirect.jsx b/src/room/RoomRedirect.jsx index 37c3f17..1b3d2d3 100644 --- a/src/room/RoomRedirect.jsx +++ b/src/room/RoomRedirect.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useEffect } from "react"; import { useLocation, useHistory } from "react-router-dom"; import { defaultHomeserverHost } from "../matrix-utils"; diff --git a/src/room/Timer.jsx b/src/room/Timer.jsx index bed4383..c814b9f 100644 --- a/src/room/Timer.jsx +++ b/src/room/Timer.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useEffect, useState } from "react"; function leftPad(value) { diff --git a/src/room/VideoPreview.jsx b/src/room/VideoPreview.jsx index 43000d0..a68a4f4 100644 --- a/src/room/VideoPreview.jsx +++ b/src/room/VideoPreview.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { MicButton, VideoButton } from "../button"; import { useMediaStream } from "../video-grid/useMediaStream"; diff --git a/src/room/useGroupCall.js b/src/room/useGroupCall.js index d5c535c..51900c5 100644 --- a/src/room/useGroupCall.js +++ b/src/room/useGroupCall.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useCallback, useEffect, useState } from "react"; import { GroupCallEvent, diff --git a/src/room/useLoadGroupCall.js b/src/room/useLoadGroupCall.js index c763ce7..19420b6 100644 --- a/src/room/useLoadGroupCall.js +++ b/src/room/useLoadGroupCall.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useState, useEffect } from "react"; import { isLocalRoomId, createRoom, roomNameFromRoomId } from "../matrix-utils"; diff --git a/src/room/usePTT.js b/src/room/usePTT.js index 89a1bcf..f1889d2 100644 --- a/src/room/usePTT.js +++ b/src/room/usePTT.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useCallback, useEffect, useState } from "react"; export function usePTT(client, groupCall, userMediaFeeds) { diff --git a/src/room/usePageUnload.js b/src/room/usePageUnload.js index 2d68520..8fd8220 100644 --- a/src/room/usePageUnload.js +++ b/src/room/usePageUnload.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useEffect } from "react"; // https://stackoverflow.com/a/9039885 diff --git a/src/room/useSentryGroupCallHandler.js b/src/room/useSentryGroupCallHandler.js index 8f20f01..4520384 100644 --- a/src/room/useSentryGroupCallHandler.js +++ b/src/room/useSentryGroupCallHandler.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useEffect } from "react"; import * as Sentry from "@sentry/react"; diff --git a/src/settings/SettingsModal.jsx b/src/settings/SettingsModal.jsx index fc57c62..3868864 100644 --- a/src/settings/SettingsModal.jsx +++ b/src/settings/SettingsModal.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { Modal } from "../Modal"; import styles from "./SettingsModal.module.css"; diff --git a/src/settings/submit-rageshake.js b/src/settings/submit-rageshake.js index ed1a22e..23978d8 100644 --- a/src/settings/submit-rageshake.js +++ b/src/settings/submit-rageshake.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useCallback, useContext, useEffect, useState } from "react"; import { getLogsForReport } from "./rageshake"; import pako from "pako"; diff --git a/src/settings/useMediaHandler.jsx b/src/settings/useMediaHandler.jsx index 67a9aea..a9c4a76 100644 --- a/src/settings/useMediaHandler.jsx +++ b/src/settings/useMediaHandler.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useState, useEffect, diff --git a/src/tabs/Tabs.jsx b/src/tabs/Tabs.jsx index e7c511a..c3d1a97 100644 --- a/src/tabs/Tabs.jsx +++ b/src/tabs/Tabs.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useRef } from "react"; import { useTabList, useTab, useTabPanel } from "@react-aria/tabs"; import { Item } from "@react-stately/collections"; diff --git a/src/tabs/Tabs.stories.jsx b/src/tabs/Tabs.stories.jsx index 0903e11..80f3b48 100644 --- a/src/tabs/Tabs.stories.jsx +++ b/src/tabs/Tabs.stories.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { TabContainer, TabItem } from "./Tabs"; import { ReactComponent as AudioIcon } from "../icons/Audio.svg"; diff --git a/src/typography/Typography.jsx b/src/typography/Typography.jsx index 15b42f6..48bf8ea 100644 --- a/src/typography/Typography.jsx +++ b/src/typography/Typography.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { forwardRef } from "react"; import classNames from "classnames"; import { Link as RouterLink } from "react-router-dom"; diff --git a/src/typography/Typography.stories.jsx b/src/typography/Typography.stories.jsx index e31b9c3..05ab7e3 100644 --- a/src/typography/Typography.stories.jsx +++ b/src/typography/Typography.stories.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { Headline, Title, Subtitle, Body, Caption, Micro } from "./Typography"; diff --git a/src/video-grid/VideoGrid.jsx b/src/video-grid/VideoGrid.jsx index c6df818..80e3162 100644 --- a/src/video-grid/VideoGrid.jsx +++ b/src/video-grid/VideoGrid.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useCallback, useEffect, useRef, useState } from "react"; import { useDrag, useGesture } from "@use-gesture/react"; import { useSprings } from "@react-spring/web"; diff --git a/src/video-grid/VideoGrid.stories.jsx b/src/video-grid/VideoGrid.stories.jsx index b0be97f..3a62440 100644 --- a/src/video-grid/VideoGrid.stories.jsx +++ b/src/video-grid/VideoGrid.stories.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React, { useState } from "react"; import { VideoGrid, useVideoGridLayout } from "./VideoGrid"; import { VideoTile } from "./VideoTile"; diff --git a/src/video-grid/VideoTile.jsx b/src/video-grid/VideoTile.jsx index bb4d5b1..90780f7 100644 --- a/src/video-grid/VideoTile.jsx +++ b/src/video-grid/VideoTile.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import React from "react"; import { animated } from "@react-spring/web"; import classNames from "classnames"; diff --git a/src/video-grid/VideoTileContainer.jsx b/src/video-grid/VideoTileContainer.jsx index a4ab9af..dddba38 100644 --- a/src/video-grid/VideoTileContainer.jsx +++ b/src/video-grid/VideoTileContainer.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { SDPStreamMetadataPurpose } from "matrix-js-sdk/src/webrtc/callEventTypes"; import React from "react"; import { useCallFeed } from "./useCallFeed"; diff --git a/src/video-grid/useCallFeed.js b/src/video-grid/useCallFeed.js index b9c9a25..b294f58 100644 --- a/src/video-grid/useCallFeed.js +++ b/src/video-grid/useCallFeed.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useState, useEffect } from "react"; import { CallFeedEvent } from "matrix-js-sdk/src/webrtc/callFeed"; diff --git a/src/video-grid/useMediaStream.js b/src/video-grid/useMediaStream.js index 4555557..027df73 100644 --- a/src/video-grid/useMediaStream.js +++ b/src/video-grid/useMediaStream.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useRef, useEffect } from "react"; export function useMediaStream(stream, audioOutputDevice, mute = false) { diff --git a/src/video-grid/useRoomMemberName.js b/src/video-grid/useRoomMemberName.js index a7cd5a4..cd3c8f4 100644 --- a/src/video-grid/useRoomMemberName.js +++ b/src/video-grid/useRoomMemberName.js @@ -1,3 +1,19 @@ +/* +Copyright 2022 Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { useState, useEffect } from "react"; export function useRoomMemberName(member) {