diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 730d31f9..5d9ca1f2 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,7 +1,7 @@ const COPYRIGHT_HEADER = `/* Copyright %%CURRENT_YEAR%% New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -44,7 +44,7 @@ module.exports = { ], // To encourage good usage of RxJS: "rxjs/no-exposed-subjects": "error", - "rxjs/finnish": "error", + "rxjs/finnish": ["error", { names: { "^this$": false } }], "import/no-restricted-imports": [ "error", { diff --git a/.githooks/post-commit b/.githooks/post-commit new file mode 100755 index 00000000..467799bd --- /dev/null +++ b/.githooks/post-commit @@ -0,0 +1,11 @@ +#!/usr/bin/sh + +FILE=.links.temp-disabled.yaml +if test -f "$FILE"; then + # Only do the post-commit hook if the file was temp-disabled by the pre-commit hook. + # Otherwise linking was actively (`yarn links:disable`) disabled and this hook should noop. + mv .links.temp-disabled.yaml .links.yaml + yarnLog=$(yarn) + echo "[yarn-linker] The post-commit hook has re-enabled .links.yaml." + exit 1 +fi diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 00000000..435d75f1 --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,11 @@ +#!/usr/bin/sh + +FILE=".links.yaml" +if test -f "$FILE"; then + mv .links.yaml .links.temp-disabled.yaml + # echo "running yarn" + x=$(yarn) + y=$(git add yarn.lock) + echo "[yarn-linker] The pre-commit hook has disabled .links.yaml and MODIFIED the yarn.lock file. Review the staged changes (the hook added yarn.lock, was this desired?) and run \`git commit \` again if they look okay. The post-commit hook will re-enable your links." + exit 1 +fi diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..6cfbe249 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,30 @@ +changelog: + categories: + - title: 🛠 Breaking Changes + labels: + - PR-Breaking-Change + - title: ✨ Features + labels: + - PR-Feature + - title: 🙌 Improvements + labels: + - PR-Improvement + - title: 📄 Documentation + labels: + - PR-Documentation + - title: 🐛 Bugfixes + labels: + - PR-Bug-Fix + - title: 💾 Developer Experience + labels: + - PR-Developer-Experience + - title: Others + labels: + - "*" + exclude: + labels: + - PR-Task + - dependencies + - title: 👒 Dependencies + labels: + - dependencies diff --git a/.github/workflows/blocked.yaml b/.github/workflows/blocked.yaml new file mode 100644 index 00000000..f3c99b3e --- /dev/null +++ b/.github/workflows/blocked.yaml @@ -0,0 +1,17 @@ +name: Prevent blocked +on: + pull_request_target: + types: [opened, labeled, unlabeled, synchronize] +jobs: + prevent-blocked: + name: Prevent blocked + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - name: Add notice + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 + if: contains(github.event.pull_request.labels.*.name, 'X-Blocked') + with: + script: | + core.setFailed("PR has been labeled with X-Blocked; it cannot be merged."); diff --git a/.github/workflows/docker.yaml b/.github/workflows/build-and-publish-docker.yaml similarity index 69% rename from .github/workflows/docker.yaml rename to .github/workflows/build-and-publish-docker.yaml index f0f52291..3ebb594a 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/build-and-publish-docker.yaml @@ -1,4 +1,4 @@ -name: Docker - Deploy +name: Build and publish docker image on: workflow_call: inputs: @@ -26,15 +26,15 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: 📥 Download artifact - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: github-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ inputs.artifact_run_id }} - name: build-output + name: build-output-full path: dist - name: Log in to container registry - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 + uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -42,16 +42,18 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1 + uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: ${{ inputs.docker_tags}} + labels: | + org.opencontainers.image.licenses=AGPL-3.0-only OR LicenseRef-Element-Commercial - name: Set up Docker Buildx - uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0 + uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0 - name: Build and push Docker image - uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0 + uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0 with: context: . platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/element-call.yaml b/.github/workflows/build-element-call.yaml similarity index 56% rename from .github/workflows/element-call.yaml rename to .github/workflows/build-element-call.yaml index 1ecb4823..49542e5d 100644 --- a/.github/workflows/element-call.yaml +++ b/.github/workflows/build-element-call.yaml @@ -1,10 +1,19 @@ -name: Element Call - Build +name: Build Element Call on: workflow_call: inputs: vite_app_version: required: true type: string + package: + type: string # This would ideally be a `choice` type, but that isn't supported yet + description: The package type to be built. Must be one of 'full' or 'embedded' + required: true + build_mode: + type: string # This would ideally be a `choice` type, but that isn't supported yet + description: The build mode for vite. Must be either 'development' or 'production' + required: false + default: production secrets: SENTRY_ORG: required: true @@ -24,15 +33,17 @@ jobs: steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Enable Corepack + run: corepack enable - name: Yarn cache - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: cache: "yarn" node-version-file: ".node-version" - name: Install dependencies - run: "yarn install" - - name: Build - run: "yarn run build" + run: "yarn install --immutable" + - name: Build Element Call + run: ${{ format('yarn run build:{0}:{1}', inputs.package, inputs.build_mode) }} env: SENTRY_ORG: ${{ secrets.SENTRY_ORG }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} @@ -42,9 +53,9 @@ jobs: VITE_APP_VERSION: ${{ inputs.vite_app_version }} NODE_OPTIONS: "--max-old-space-size=4096" - name: Upload Artifact - uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: - name: build-output + name: build-output-${{ inputs.package }} path: dist # We'll only use this in a triggered job, then we're done with it retention-days: 1 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 98002b6e..6aa5fae6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,19 +5,64 @@ on: - synchronize - opened - labeled - paths-ignore: - - ".github/**" - - "docs/**" push: branches: [livekit, full-mesh] - paths-ignore: - - ".github/**" - - "docs/**" jobs: - build_element_call: - uses: ./.github/workflows/element-call.yaml + build_full_element_call: + # Use the full package vite build + uses: ./.github/workflows/build-element-call.yaml with: + package: full vite_app_version: ${{ github.event.release.tag_name || github.sha }} + build_mode: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'development build') && 'development' || 'production' }} + secrets: + SENTRY_ORG: ${{ secrets.SENTRY_ORG }} + SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} + SENTRY_URL: ${{ secrets.SENTRY_URL }} + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + deploy_develop: + # Deploy livekit branch to call.element.dev after build completes + if: github.ref == 'refs/heads/livekit' + needs: build_full_element_call + runs-on: ubuntu-latest + steps: + - name: Deploy to call.element.dev + uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 + with: + github-token: ${{ secrets.DEVELOP_DEPLOYMENT_TOKEN }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'element-hq', + repo: 'element-call-webapp-deployments', + workflow_id: 'deploy.yml', + ref: 'main', + inputs: { + target: 'call.element.dev', + version: '${{ github.sha }}' + } + }) + docker_for_develop: + # Build docker and publish docker for livekit branch after build completes + if: github.ref == 'refs/heads/livekit' + needs: build_full_element_call + permissions: + contents: write + packages: write + uses: ./.github/workflows/build-and-publish-docker.yaml + with: + artifact_run_id: ${{ github.run_id }} + docker_tags: | + type=sha,format=short,event=branch + type=raw,value=latest-ci + type=raw,value=latest-ci_{{date 'X' }} + build_embedded_element_call: + # Use the embedded package vite build + uses: ./.github/workflows/build-element-call.yaml + with: + package: embedded + vite_app_version: ${{ github.event.release.tag_name || github.sha }} + build_mode: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'development build') && 'development' || 'production' }} secrets: SENTRY_ORG: ${{ secrets.SENTRY_ORG }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} diff --git a/.github/workflows/changelog-label.yml b/.github/workflows/changelog-label.yml new file mode 100644 index 00000000..8d9acbc2 --- /dev/null +++ b/.github/workflows/changelog-label.yml @@ -0,0 +1,14 @@ +name: PR changelog label + +on: + pull_request_target: + types: [labeled, unlabeled, opened] +jobs: + pr-changelog-label: + runs-on: ubuntu-latest + steps: + - uses: yogevbd/enforce-label-action@a3c219da6b8fa73f6ba62b68ff09c469b3a1c024 # 2.2.2 + with: + REQUIRED_LABELS_ANY: "PR-Bug-Fix,PR-Documentation,PR-Task,PR-Feature,PR-Improvement,PR-Developer-Experience,dependencies,PR-Breaking-Change" + REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one 'PR-' label" + BANNED_LABELS: "banned" diff --git a/.github/workflows/netlify.yaml b/.github/workflows/deploy-to-netlify.yaml similarity index 95% rename from .github/workflows/netlify.yaml rename to .github/workflows/deploy-to-netlify.yaml index 9c7b7d09..388192e4 100644 --- a/.github/workflows/netlify.yaml +++ b/.github/workflows/deploy-to-netlify.yaml @@ -1,4 +1,4 @@ -name: Netlify - Deploy +name: Deploy to Netlify on: workflow_call: inputs: @@ -46,11 +46,11 @@ jobs: Exercise caution. Use test accounts. - name: 📥 Download artifact - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: github-token: ${{ secrets.ELEMENT_BOT_TOKEN }} run-id: ${{ inputs.artifact_run_id }} - name: build-output + name: build-output-full path: webapp - name: Add redirects file diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml deleted file mode 100644 index ff347636..00000000 --- a/.github/workflows/e2e.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Run E2E tests -on: - workflow_run: - workflows: ["deploy"] - types: - - completed - branches-ignore: - - "livekit" -jobs: - e2e: - name: E2E tests runs on Element Call - runs-on: ubuntu-latest - steps: - - name: Check out test private repo - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - with: - repository: element-hq/static-call-participant - ref: refs/heads/main - path: static-call-participant - token: ${{ secrets.GH_E2E_TEST_TOKEN }} - - name: Build E2E Image - run: "cd static-call-participant && docker build --no-cache --tag matrixdotorg/chrome-node-static-call-participant:latest ." - - name: Run E2E tests in container - run: "docker run --rm -v '${{ github.workspace }}/static-call-participant/callemshost-users.txt:/opt/app/callemshost-users.txt' matrixdotorg/chrome-node-static-call-participant:latest ./e2e.sh" diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index d9367626..0efbcf5a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -8,13 +8,15 @@ jobs: steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Enable Corepack + run: corepack enable - name: Yarn cache - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: cache: "yarn" node-version-file: ".node-version" - name: Install dependencies - run: "yarn install" + run: "yarn install --immutable" - name: Prettier run: "yarn run prettier:check" - name: i18n diff --git a/.github/workflows/pr-deploy.yaml b/.github/workflows/pr-deploy.yaml index 262ce09b..7b128352 100644 --- a/.github/workflows/pr-deploy.yaml +++ b/.github/workflows/pr-deploy.yaml @@ -1,4 +1,4 @@ -name: PR Preview Deployments +name: Deploy previews for PRs on: workflow_run: workflows: ["Build"] @@ -24,7 +24,7 @@ jobs: needs: prdetails permissions: deployments: write - uses: ./.github/workflows/netlify.yaml + uses: ./.github/workflows/deploy-to-netlify.yaml with: artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }} pr_number: ${{ needs.prdetails.outputs.pr_number }} @@ -42,7 +42,7 @@ jobs: permissions: contents: write packages: write - uses: ./.github/workflows/docker.yaml + uses: ./.github/workflows/build-and-publish-docker.yaml with: artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }} docker_tags: | diff --git a/.github/workflows/publish-embedded-packages.yaml b/.github/workflows/publish-embedded-packages.yaml new file mode 100644 index 00000000..c309c91c --- /dev/null +++ b/.github/workflows/publish-embedded-packages.yaml @@ -0,0 +1,291 @@ +name: Build & publish embedded packages for releases + +on: + release: + types: [published] + pull_request: + types: + - synchronize + - opened + - labeled + push: + branches: [livekit] + +jobs: + versioning: + name: Versioning + runs-on: ubuntu-latest + outputs: + DRY_RUN: ${{ steps.dry_run.outputs.DRY_RUN }} + PREFIXED_VERSION: ${{ steps.prefixed_version.outputs.PREFIXED_VERSION }} + UNPREFIXED_VERSION: ${{ steps.unprefixed_version.outputs.UNPREFIXED_VERSION }} + TAG: ${{ steps.tag.outputs.TAG }} + steps: + - name: Calculate VERSION + # We should only use the hard coded test value for a dry run + run: echo "VERSION=${{ github.event_name == 'release' && github.event.release.tag_name || 'v0.0.0-pre.0' }}" >> "$GITHUB_ENV" + - id: dry_run + name: Set DRY_RUN + # We perform a dry run for all events except releases. + # This is to help make sure that we notice if the packaging process has become + # broken ahead of a release. + run: echo "DRY_RUN=${{ github.event_name != 'release' }}" >> "$GITHUB_OUTPUT" + - id: prefixed_version + name: Set PREFIXED_VERSION + run: echo "PREFIXED_VERSION=${VERSION}" >> "$GITHUB_OUTPUT" + - id: unprefixed_version + name: Set UNPREFIXED_VERSION + # This just strips the leading character + run: echo "UNPREFIXED_VERSION=${VERSION:1}" >> "$GITHUB_OUTPUT" + - id: tag + # latest = a proper release + # other = anything else + name: Set tag + run: | + if [[ "${VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "TAG=latest" >> "$GITHUB_OUTPUT" + else + echo "TAG=other" >> "$GITHUB_OUTPUT" + fi + + build_element_call: + needs: versioning + uses: ./.github/workflows/build-element-call.yaml + with: + vite_app_version: embedded-${{ needs.versioning.outputs.PREFIXED_VERSION }} + package: embedded + secrets: + SENTRY_ORG: ${{ secrets.SENTRY_ORG }} + SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} + SENTRY_URL: ${{ secrets.SENTRY_URL }} + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + + publish_tarball: + needs: [build_element_call, versioning] + if: always() + name: Publish tarball + runs-on: ubuntu-latest + permissions: + contents: write # required to upload release asset + steps: + - name: Determine filename + run: echo "FILENAME_PREFIX=element-call-embedded-${{ needs.versioning.outputs.UNPREFIXED_VERSION }}" >> "$GITHUB_ENV" + - name: 📥 Download built element-call artifact + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id || github.run_id }} + name: build-output-embedded + path: ${{ env.FILENAME_PREFIX}} + - name: Create Tarball + run: tar --numeric-owner -cvzf ${{ env.FILENAME_PREFIX }}.tar.gz ${{ env.FILENAME_PREFIX }} + - name: Create Checksum + run: find ${{ env.FILENAME_PREFIX }} -type f -print0 | sort -z | xargs -0 sha256sum | tee ${{ env.FILENAME_PREFIX }}.sha256 + - name: Upload + if: ${{ needs.versioning.outputs.DRY_RUN == 'false' }} + uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2 + with: + files: | + ${{ env.FILENAME_PREFIX }}.tar.gz + ${{ env.FILENAME_PREFIX }}.sha256 + + publish_npm: + needs: [build_element_call, versioning] + if: always() + name: Publish NPM + runs-on: ubuntu-latest + outputs: + ARTIFACT_VERSION: ${{ steps.artifact_version.outputs.ARTIFACT_VERSION }} + permissions: + contents: read + id-token: write # required for the provenance flag on npm publish + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: 📥 Download built element-call artifact + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id || github.run_id }} + name: build-output-embedded + path: embedded/web/dist + + # n.b. We don't enable corepack here because we are using plain npm + - name: Setup node + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version-file: .node-version + registry-url: "https://registry.npmjs.org" + + - name: Publish npm + working-directory: embedded/web + run: | + npm version ${{ needs.versioning.outputs.PREFIXED_VERSION }} --no-git-tag-version + echo "ARTIFACT_VERSION=$(jq '.version' --raw-output package.json)" >> "$GITHUB_ENV" + npm publish --provenance --access public --tag ${{ needs.versioning.outputs.TAG }} ${{ needs.versioning.outputs.DRY_RUN == 'true' && '--dry-run' || '' }} + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }} + + - id: artifact_version + name: Output artifact version + run: echo "ARTIFACT_VERSION=${{env.ARTIFACT_VERSION}}" >> "$GITHUB_OUTPUT" + + publish_android: + needs: [build_element_call, versioning] + if: always() + name: Publish Android AAR + runs-on: ubuntu-latest + outputs: + ARTIFACT_VERSION: ${{ steps.artifact_version.outputs.ARTIFACT_VERSION }} + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: 📥 Download built element-call artifact + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id || github.run_id }} + name: build-output-embedded + path: embedded/android/lib/src/main/assets/element-call + + - name: ☕️ Setup Java + uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4 + with: + distribution: "temurin" + java-version: "17" + + - name: Get artifact version + # Anything that is not a final release will be tagged as a snapshot + run: | + if [[ "${{ needs.versioning.outputs.TAG }}" == "latest" ]]; then + echo "ARTIFACT_VERSION=${{ needs.versioning.outputs.UNPREFIXED_VERSION }}" >> "$GITHUB_ENV" + else + echo "ARTIFACT_VERSION=${{ needs.versioning.outputs.UNPREFIXED_VERSION }}-SNAPSHOT" >> "$GITHUB_ENV" + fi + + - name: Set version string + run: sed -i "s/0.0.0/${{ env.ARTIFACT_VERSION }}/g" embedded/android/lib/src/main/kotlin/io/element/android/call/embedded/Version.kt + + - name: Publish AAR + working-directory: embedded/android + env: + EC_VERSION: ${{ env.ARTIFACT_VERSION }} + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_RELEASE_USERNAME }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_RELEASE_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} + run: ./gradlew publishToMavenCentral --no-daemon ${{ needs.versioning.outputs.DRY_RUN == 'true' && '--dry-run' || '' }} + + - id: artifact_version + name: Output artifact version + run: echo "ARTIFACT_VERSION=${{env.ARTIFACT_VERSION}}" >> "$GITHUB_OUTPUT" + + publish_ios: + needs: [build_element_call, versioning] + if: always() + name: Publish SwiftPM Library + runs-on: ubuntu-latest + outputs: + ARTIFACT_VERSION: ${{ steps.artifact_version.outputs.ARTIFACT_VERSION }} + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + path: element-call + + - name: 📥 Download built element-call artifact + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id || github.run_id }} + name: build-output-embedded + path: element-call/embedded/ios/Sources/dist + + - name: Checkout element-call-swift + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + repository: element-hq/element-call-swift + path: element-call-swift + token: ${{ secrets.SWIFT_RELEASE_TOKEN }} + + - name: Copy files + run: rsync -a --delete --exclude .git element-call/embedded/ios/ element-call-swift + + - name: Get artifact version + run: echo "ARTIFACT_VERSION=${{ needs.versioning.outputs.UNPREFIXED_VERSION }}" >> "$GITHUB_ENV" + + - name: Set version string + run: sed -i "s/0.0.0/${{ env.ARTIFACT_VERSION }}/g" element-call-swift/Sources/EmbeddedElementCall/EmbeddedElementCall.swift + + - name: Test build + working-directory: element-call-swift + run: swift build + + - name: Commit and tag + working-directory: element-call-swift + run: | + git config --global user.email "ci@element.io" + git config --global user.name "Element CI" + git add -A + git commit -am "Release ${{ needs.versioning.outputs.PREFIXED_VERSION }}" + git tag -a ${{ env.ARTIFACT_VERSION }} -m "${{ github.event.release.html_url }}" + + - name: Push + working-directory: element-call-swift + run: | + git push --tags ${{ needs.versioning.outputs.DRY_RUN == 'true' && '--dry-run' || '' }} + + - id: artifact_version + name: Output artifact version + run: echo "ARTIFACT_VERSION=${{env.ARTIFACT_VERSION}}" >> "$GITHUB_OUTPUT" + + release_notes: + needs: [versioning, publish_npm, publish_android, publish_ios] + if: always() + name: Update release notes + runs-on: ubuntu-latest + permissions: + contents: write # to update release notes + steps: + - name: Log versions + run: | + echo "NPM: ${{ needs.publish_npm.outputs.ARTIFACT_VERSION }}" + echo "Android: ${{ needs.publish_android.outputs.ARTIFACT_VERSION }}" + echo "iOS: ${{ needs.publish_ios.outputs.ARTIFACT_VERSION }}" + - name: Add release notes + if: ${{ needs.versioning.outputs.DRY_RUN == 'false' }} + uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2 + with: + append_body: true + body: | + + ## Embedded packages + + This release includes the following embedded packages that allow Element Call to be used as an embedded widget + within another application. + + ### NPM + + ``` + npm install @element-hq/element-call-embedded@${{ needs.publish_npm.outputs.ARTIFACT_VERSION }} + ``` + + ### Android AAR + + ``` + dependencies { + implementation 'io.element.android:element-call-embedded:${{ needs.publish_android.outputs.ARTIFACT_VERSION }}' + } + ``` + + ### SwiftPM + + ``` + .package(url: "https://github.com/element-hq/element-call-swift.git", from: "${{ needs.publish_ios.outputs.ARTIFACT_VERSION }}") + ``` diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a433e3dc..86169e16 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,72 +1,82 @@ -name: Build & publish images to the package registry for tags +name: Build & publish full packages for releases on: release: types: [published] - workflow_run: - workflows: ["Build"] - branches: [livekit] - types: - - completed env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + VERSION: ${{ github.event.release.tag_name }} jobs: build_element_call: - if: ${{ github.event_name == 'release' }} - uses: ./.github/workflows/element-call.yaml + uses: ./.github/workflows/build-element-call.yaml with: - vite_app_version: ${{ github.event.release.tag_name || github.sha }} + package: full + vite_app_version: ${{ github.event.release.tag_name }} # Using ${{ env.VERSION }} here doesn't work secrets: SENTRY_ORG: ${{ secrets.SENTRY_ORG }} SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} SENTRY_URL: ${{ secrets.SENTRY_URL }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + publish_tarball: needs: build_element_call if: always() name: Publish tarball runs-on: ubuntu-latest - outputs: - unix_time: ${{steps.current-time.outputs.unix_time}} permissions: contents: write # required to upload release asset packages: write steps: - - name: Get current time - id: current-time - run: echo "unix_time=$(date +'%s')" >> $GITHUB_OUTPUT - - name: 📥 Download artifact - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4 + - name: Determine filename + run: echo "FILENAME_PREFIX=element-call-${VERSION:1}" >> "$GITHUB_ENV" + - name: 📥 Download built element-call artifact + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: github-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ github.event.workflow_run.id || github.run_id }} - name: build-output - path: dist + name: build-output-full + path: ${{ env.FILENAME_PREFIX }} - name: Create Tarball - env: - TARBALL_VERSION: ${{ github.event.release.tag_name || github.sha }} - run: | - tar --numeric-owner --transform "s/dist/element-call-${TARBALL_VERSION}/" -cvzf element-call-${TARBALL_VERSION}.tar.gz dist + run: tar --numeric-owner --transform "s/dist/${{ env.FILENAME_PREFIX }}/" -cvzf ${{ env.FILENAME_PREFIX }}.tar.gz ${{ env.FILENAME_PREFIX }} + - name: Create Checksum + run: find ${{ env.FILENAME_PREFIX }} -type f -print0 | sort -z | xargs -0 sha256sum | tee ${{ env.FILENAME_PREFIX }}.sha256 - name: Upload - uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 - env: - GITHUB_TOKEN: ${{ github.token }} + uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2 with: - path: "./element-call-*.tar.gz" + files: | + ${{ env.FILENAME_PREFIX }}.tar.gz + ${{ env.FILENAME_PREFIX }}.sha256 + publish_docker: - needs: publish_tarball + needs: build_element_call if: always() + name: Publish docker permissions: contents: write packages: write - uses: ./.github/workflows/docker.yaml + uses: ./.github/workflows/build-and-publish-docker.yaml with: artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }} docker_tags: | type=sha,format=short,event=branch - type=semver,pattern=v{{version}} - type=raw,value=latest-ci,enable={{is_default_branch}} - type=raw,value=latest-ci_${{needs.publish_tarball.outputs.unix_time}},enable={{is_default_branch}} + type=raw,value=${{ github.event.release.tag_name }} + # Like before, using ${{ env.VERSION }} above doesn't work + add_docker_release_note: + needs: publish_docker + name: Add docker release note + runs-on: ubuntu-latest + steps: + - name: Add release note + uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2 + with: + append_body: true + body: | + ## Docker full package + Element Call is available as a Docker image from the [GitHub Container Registry](https://github.com/element-hq/element-call/pkgs/container/element-call). + + The image provides a full build of Element Call that can be used both in standalone and as a widget (on a remote URL). + + ``` + docker pull ghcr.io/element-hq/element-call:${{ env.VERSION }} + ``` diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a0579e4a..f532cda6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,28 +1,61 @@ -name: Run unit tests +name: Test on: pull_request: {} push: branches: [livekit, full-mesh] jobs: vitest: - name: Run vitest tests + name: Run unit tests runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Enable Corepack + run: corepack enable - name: Yarn cache - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: cache: "yarn" node-version-file: ".node-version" - name: Install dependencies - run: "yarn install" + run: "yarn install --immutable" - name: Vitest run: "yarn run test:coverage" - name: Upload to codecov - uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5 + uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: flags: unittests fail_ci_if_error: true + playwright: + name: Run end-to-end tests + timeout-minutes: 30 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Enable Corepack + run: corepack enable + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + cache: "yarn" + node-version-file: ".node-version" + - name: Install dependencies + run: yarn install --immutable + - name: Install Playwright Browsers + run: yarn playwright install --with-deps + - name: Run backend components + run: | + docker compose -f playwright-backend-docker-compose.yml -f playwright-backend-docker-compose.override.yml pull + docker compose -f playwright-backend-docker-compose.yml -f playwright-backend-docker-compose.override.yml up -d + docker ps + - name: Run Playwright tests + env: + USE_DOCKER: 1 + run: yarn playwright test + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + if: ${{ !cancelled() }} + with: + name: playwright-report + path: playwright-report/ + retention-days: 3 diff --git a/.github/workflows/translations-download.yaml b/.github/workflows/translations-download.yaml index 4b5e19d0..fc4fbf40 100644 --- a/.github/workflows/translations-download.yaml +++ b/.github/workflows/translations-download.yaml @@ -15,13 +15,16 @@ jobs: - name: Checkout the code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 + - name: Enable Corepack + run: corepack enable + + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: cache: "yarn" node-version-file: ".node-version" - name: Install Deps - run: "yarn install --frozen-lockfile" + run: "yarn install --immutable" - name: Prune i18n run: "rm -R locales" @@ -39,7 +42,7 @@ jobs: - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6 + uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 with: token: ${{ secrets.ELEMENT_BOT_TOKEN }} branch: actions/localazy-download diff --git a/.gitignore b/.gitignore index 8d306b2c..3e9016a6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,28 @@ node_modules dist dist-ssr *.local +*.bkp .idea/ public/config.json backend/synapse_tmp/* /coverage +config.json + +# Yarn yarn-error.log +/.pnp.* +/.yarn/* +!/.yarn/patches +!/.yarn/plugins +!/.yarn/releases +!/.yarn/sdks +!/.yarn/versions +/.links.yaml +/.links.disabled.yaml +/.links.temp-disabled.yaml + +# Playwright +/test-results/ +/playwright-report/ +/blob-report/ +/playwright/.cache/ \ No newline at end of file diff --git a/.yarn/plugins/linker.cjs b/.yarn/plugins/linker.cjs new file mode 100644 index 00000000..cf7181f9 --- /dev/null +++ b/.yarn/plugins/linker.cjs @@ -0,0 +1,91 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +module.exports = { + name: "linker", + factory: (require) => ({ + hooks: { + // Yarn's plugin system is very light on documentation. The best we have + // for this hook is simply the type definition in + // https://github.com/yarnpkg/berry/blob/master/packages/yarnpkg-core/sources/Plugin.ts + registerPackageExtensions: async (config, registerPackageExtension) => { + const { structUtils } = require("@yarnpkg/core"); + const { parseSyml } = require("@yarnpkg/parsers"); + const path = require("path"); + const fs = require("fs"); + const process = require("process"); + + // Create a descriptor that we can use to target our direct dependencies + const projectPath = config.projectCwd + .replace(/\\/g, "/") + .replace("/C:/", "C:/"); + const manifestPath = path.join(projectPath, "package.json"); + const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8")); + const selfDescriptor = structUtils.parseDescriptor( + `${manifest.name}@*`, + true, + ); + + // Load the list of linked packages + const linksPath = path.join(projectPath, ".links.yaml"); + let linksFile; + try { + linksFile = fs.readFileSync(linksPath, "utf8"); + } catch (e) { + return; // File doesn't exist, there's nothing to link + } + let links; + try { + links = parseSyml(linksFile); + } catch (e) { + console.error(".links.yaml has invalid syntax", e); + process.exit(1); + } + + // Resolve paths and turn them into a Yarn package extension + const overrides = Object.fromEntries( + Object.entries(links).map(([name, link]) => [ + name, + `portal:${path.resolve(config.projectCwd, link)}`, + ]), + ); + const overrideIdentHashes = new Set(); + for (const name of Object.keys(overrides)) + overrideIdentHashes.add( + structUtils.parseDescriptor(`${name}@*`, true).identHash, + ); + + // Extend our own package's dependencies with these local overrides + registerPackageExtension(selfDescriptor, { dependencies: overrides }); + + // Filter out the original dependencies from the package spec so Yarn + // actually respects the overrides + const filterDependencies = (original) => { + const pkg = structUtils.copyPackage(original); + pkg.dependencies = new Map( + Array.from(pkg.dependencies.entries()).filter( + ([, value]) => !overrideIdentHashes.has(value.identHash), + ), + ); + return pkg; + }; + + // Patch Yarn's own normalizePackage method to use the above filter + const originalNormalizePackage = config.normalizePackage; + config.normalizePackage = function (pkg, extensions) { + return originalNormalizePackage.call( + this, + pkg.identHash === selfDescriptor.identHash + ? filterDependencies(pkg) + : pkg, + extensions, + ); + }; + }, + }, + }), +}; diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 00000000..538de0e7 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1,3 @@ +nodeLinker: node-modules +plugins: + - .yarn/plugins/linker.cjs diff --git a/Dockerfile b/Dockerfile index 275ab153..bf34c6c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,13 @@ -FROM nginxinc/nginx-unprivileged:alpine +FROM alpine AS builder + +COPY ./dist /dist + +# Compress assets to work with nginx-gzip-static-module +WORKDIR /dist/assets +RUN gzip -k ../index.html *.js *.map *.css *.wasm *-app-*.json + +FROM nginxinc/nginx-unprivileged:alpine-slim + +COPY --from=builder ./dist /app -COPY ./dist /app COPY config/nginx.conf /etc/nginx/conf.d/default.conf diff --git a/LICENSE b/LICENSE-AGPL-3.0 similarity index 100% rename from LICENSE rename to LICENSE-AGPL-3.0 diff --git a/LICENSE-COMMERCIAL b/LICENSE-COMMERCIAL new file mode 100644 index 00000000..173e03e0 --- /dev/null +++ b/LICENSE-COMMERCIAL @@ -0,0 +1,6 @@ +Licensees holding a valid commercial license with Element may use this +software in accordance with the terms contained in a written agreement +between you and Element. + +To purchase a commercial license please contact our sales team at +licensing@element.io diff --git a/README.md b/README.md index ffd73d5e..510b7c76 100644 --- a/README.md +++ b/README.md @@ -2,214 +2,308 @@ [![Chat](https://img.shields.io/matrix/webrtc:matrix.org)](https://matrix.to/#/#webrtc:matrix.org) [![Localazy](https://img.shields.io/endpoint?url=https%3A%2F%2Fconnect.localazy.com%2Fstatus%2Felement-call%2Fdata%3Fcontent%3Dall%26title%3Dlocalazy%26logo%3Dtrue)](https://localazy.com/p/element-call) +[![License](https://img.shields.io/github/license/element-hq/element-call)](LICENSE-AGPL-3.0) -Group calls with WebRTC that leverage [Matrix](https://matrix.org) and an -open-source WebRTC toolkit from [LiveKit](https://livekit.io/). +[🎬 Live Demo 🎬](https://call.element.io) -For prior version of the Element Call that relied solely on full-mesh logic, -check [`full-mesh`](https://github.com/element-hq/element-call/tree/full-mesh) -branch. +The world's first 🌐 decentralized and 🤝 federated video conferencing solution +powered by **the Matrix protocol**. -![A demo of Element Call with six people](demo.jpg) +## 📌 Overview -To try it out, visit our hosted version at -[call.element.io](https://call.element.io). You can also find the latest -development version continuously deployed to +**Element Call** is a native Matrix video conferencing application developed by +[Element](https://element.io/), designed for **secure**, **scalable**, +**privacy-respecting**, and **decentralized** video and voice calls over the +Matrix protocol. Built on **MatrixRTC** +([MSC4143](https://github.com/matrix-org/matrix-spec-proposals/pull/4143)), it +utilizes +**[MSC4195](https://github.com/hughns/matrix-spec-proposals/blob/hughns/matrixrtc-livekit/proposals/4195-matrixrtc-livekit.md)** +with **[LiveKit](https://livekit.io/)** as its backend. + +![A demo of Element Call with six people](demo.gif) + +You can find the latest development version continuously deployed to [call.element.dev](https://call.element.dev/). -## Host it yourself +> [!NOTE] +> For prior version of the Element Call that relied solely on full-mesh logic, +> check [`full-mesh`](https://github.com/element-hq/element-call/tree/full-mesh) +> branch. -Until prebuilt tarballs are available, you'll need to build Element Call from -source. First, clone and install the package: +## ✨ Key Features -``` -git clone https://github.com/element-hq/element-call.git -cd element-call -yarn -yarn build -``` +✅ **Decentralized & Federated** – No central authority; works across Matrix +homeservers. +✅ **End-to-End Encrypted** – Secure and private calls. +✅ **Standalone & Widget Mode** – Use as an independent app or embed in Matrix +clients. +✅ **WebRTC-based** – No additional software required. +✅ **Scalable with LiveKit** – Supports large meetings via SFU +([MSC4195: MatrixRTC using LiveKit backend](https://github.com/hughns/matrix-spec-proposals/blob/hughns/matrixrtc-livekit/proposals/4195-matrixrtc-livekit.md)). +✅ **Raise Hand** – Participants can signal when they want to speak, helping to +organize the flow of the meeting. +✅ **Emoji Reactions** – Users can react with emojis 👍️ 🎉 👏 🤘, adding +engagement and interactivity to the conversation. -If all went well, you can now find the build output under `dist` as a series of -static files. These can be hosted using any web server that can be configured -with custom routes (see below). +## 🚀 Deployment & Packaging Options -You may also wish to add a configuration file (Element Call uses the domain it's -hosted on as a Homeserver URL by default, but you can change this in the config -file). This goes in `public/config.json` - you can use the sample as a starting -point: +Element Call is developed using the +[Matrix js-sdk](https://github.com/matrix-org/matrix-js-sdk) with Matroska mode. +This allows the app to run either as a Standalone App directly connected to a +homeserver with login interfaces or it can be used as a widget within a Matrix +client. -``` -cp config/config.sample.json public/config.json -# edit public/config.json -``` +### 🖥️ Standalone Mode -Because Element Call uses client-side routing, your server must be able to route -any requests to non-existing paths back to `/index.html`. For example, in Nginx -you can achieve this with the `try_files` directive: +

+ Element Call in Standalone Mode +

-``` -server { - ... - location / { - ... - try_files $uri /$uri /index.html; - } -} -``` +In Standalone mode, Element Call operates as an independent, full-featured video +conferencing web application, enabling users to join or host calls without +requiring a separate Matrix client. -By default, the app expects you to have a Matrix homeserver (such as -[Synapse](https://element-hq.github.io/synapse/latest/setup/installation.html)) -installed locally and running on port 8008. If you wish to use a homeserver on a -different URL or one that is hosted on a different server, you can add a config -file as above, and include the homeserver URL that you'd like to use. +### 📲 In-App Calling (Widget Mode in Messenger Apps) -Element Call requires a homeserver with registration enabled without any 3pid or -token requirements, if you want it to be used by unregistered users. -Furthermore, it is not recommended to use it with an existing homeserver where -user accounts have joined normal rooms, as it may not be able to handle those -yet and it may behave unreliably. +When used as a widget 🧩, Element Call is solely responsible on the core calling +functionality (MatrixRTC). Authentication, event handling, and room state +updates (via the Client-Server API) are handled by the hosting client. +Communication between Element Call and the client is managed through the widget +API. -Therefore, to use a self-hosted homeserver, this is recommended to be a new -server where any user account created has not joined any normal rooms anywhere -in the Matrix federated network. The homeserver used can be setup to disable -federation, so as to prevent spam registrations (if you keep registrations open) -and to ensure Element Call continues to work in case any user decides to log in -to their Element Call account using the standard Element app and joins normal -rooms that Element Call cannot handle. +

+ Element Call in Widget Mode +

-## Configuration +Element Call can be embedded as a widget inside apps like +[**Element Web**](https://github.com/element-hq/element-web) or **Element X +([iOS](https://github.com/element-hq/element-x-ios), +[Android](https://github.com/element-hq/element-x-android))**, bringing +**MatrixRTC** capabilities to messenger apps for seamless decentralized video +and voice calls within Matrix rooms. -There are currently two different config files. `.env` holds variables that are -used at build time, while `public/config.json` holds variables that are used at -runtime. Documentation and default values for `public/config.json` can be found -in [ConfigOptions.ts](src/config/ConfigOptions.ts). +> [!IMPORTANT] +> Embedded packaging is recommended for Element Call in widget mode! -If you're using [Synapse](https://github.com/element-hq/synapse/), you'll need -to additionally add the following to `homeserver.yaml` or Element Call won't -work: +### 📦 Element Call Packaging -``` -experimental_features: - # MSC3266: Room summary API. Used for knocking over federation - msc3266_enabled: true - # MSC4222 needed for syncv2 state_after. This allow clients to - # correctly track the state of the room. - msc4222_enabled: true +Element Call offers two packaging options: one for standalone or widget +deployment, and another for seamless widget-based integration into messenger +apps. Below is an overview of each option. -# The maximum allowed duration by which sent events can be delayed, as -# per MSC4140. -max_event_delay_duration: 24h +**Full Package** – Supports both **Standalone** and **Widget** mode. It is +hosted as a static web page and can be accessed via a URL when used as a widget. -rc_message: - # This needs to match at least the heart-beat frequency plus a bit of headroom - # Currently the heart-beat is every 5 seconds which translates into a rate of 0.2s - per_second: 0.5 - burst_count: 30 -``` +

+ Element Call Full Package +

-MSC3266 allows to request a room summary of rooms you are not joined. The -summary contains the room join rules. We need that to decide if the user gets -prompted with the option to knock ("Request to join call"), a cannot join error or the -join view. +**Embedded Package** – Designed specifically for **Widget mode** only. It is +bundled with a messenger app for seamless integration and this is the +recommended method for embedding Element Call. -MSC4222 allow clients to opt-in to a change of the sync v2 API that allows them -to correctly track the state of the room. This is required by Element Call to -track room state reliably. +

+ Element Call Embedded Package +

-Element Call requires a Livekit SFU alongside a [Livekit JWT -service](https://github.com/element-hq/lk-jwt-service) to work. The url to the -Livekit JWT service can either be configured in the config of Element Call -(fallback/legacy configuration) or be configured by your homeserver via the -`.well-known/matrix/client`. This is the recommended method. +For more details on the packages, see the +[Embedded vs. Standalone Guide](./docs/embedded-standalone.md). -The configuration is a list of Foci configs: +## 🛠️ Self-Hosting + +For operating and deploying Element Call on your own server, refer to the +[**Self-Hosting Guide**](./docs/self-hosting.md). + +## 🧭 MatrixRTC Backend Discovery and Selection + +For proper Element Call operation each site deployment needs a MatrixRTC backend +setup as outlined in the [Self-Hosting](#self-hosting). A typical federated site +deployment for three different sites A, B and C is depicted below. + +

+ Element Call federated setup +

+ +### Backend Discovery + +MatrixRTC backend (according to +[MSC4143](https://github.com/matrix-org/matrix-spec-proposals/pull/4143)) is +announced by the Matrix site's `.well-known/matrix/client` file and discovered +via the `org.matrix.msc4143.rtc_foci` key, e.g.: ```json "org.matrix.msc4143.rtc_foci": [ { "type": "livekit", - "livekit_service_url": "https://someurl.com" - }, - { - "type": "livekit", - "livekit_service_url": "https://livekit2.com" - }, - { - "type": "another_foci", - "props_for_another_foci": "val" + "livekit_service_url": "https://matrix-rtc.example.com/livekit/jwt" }, ] ``` -## Translation +where the format for MatrixRTC using LiveKit backend is defined in +[MSC4195](https://github.com/hughns/matrix-spec-proposals/blob/hughns/matrixrtc-livekit/proposals/4195-matrixrtc-livekit.md). +In the example above Matrix clients do discover a focus of type `livekit` which +points them to a Matrix LiveKit JWT Auth Service via `livekit_service_url`. + +### Backend Selection + +- Each call participant proposes their discovered MatrixRTC backend from + `org.matrix.msc4143.rtc_foci` in their `org.matrix.msc3401.call.member` state event. +- For **LiveKit** MatrixRTC backend + ([MSC4195](https://github.com/hughns/matrix-spec-proposals/blob/hughns/matrixrtc-livekit/proposals/4195-matrixrtc-livekit.md)), + the **first participant who joined the call** defines via the `foci_preferred` + key in their `org.matrix.msc3401.call.member` which actual MatrixRTC backend + will be used for this call. +- During the actual call join flow, the **LiveKit JWT Auth Service** provides + the client with the **LiveKit SFU WebSocket URL** and an **access JWT token** + in order to exchange media via WebRTC. + +The example below illustrates how backend selection works across **Matrix +federation**, using the setup from sites A, B, and C. It demonstrates backend +selection for **Matrix rooms 123 and 456**, which include users from different +homeservers. + +

+ Element Call SFU selection over Matrix federation +

+ +## 🌍 Translation If you'd like to help translate Element Call, head over to [Localazy](https://localazy.com/p/element-call). You're also encouraged to join the [Element Translators](https://matrix.to/#/#translators:element.io) space to discuss and coordinate translation efforts. -## Development +## 🛠️ Development ### Frontend -Element Call is built against -[matrix-js-sdk](https://github.com/matrix-org/matrix-js-sdk/pull/2553). To get -started, clone, install, and link the package: +To get started clone and set up this project: -``` -git clone https://github.com/matrix-org/matrix-js-sdk.git -cd matrix-js-sdk -yarn -yarn link -``` - -Next, we can set up this project: - -``` +```sh git clone https://github.com/element-hq/element-call.git cd element-call +corepack enable yarn -yarn link matrix-js-sdk ``` -To use it, create a local config by, e.g., `cp ./config/config.devenv.json -./public/config.json` and adapt it if necessary. The `config.devenv.json` config -should work with the backend development environment as outlined in the next -section out of box. - -(Be aware, that this `config.devenv.json` is exposing a deprecated fallback -LiveKit config key. If the homeserver advertises SFU backend via -`.well-known/matrix/client` this has precedence.) +To use it, create a local config by, e.g., +`cp ./config/config.devenv.json ./public/config.json` and adapt it if necessary. +The `config.devenv.json` config should work with the backend development +environment as outlined in the next section out of box. You're now ready to launch the development server: -``` +```sh yarn dev ``` +See also: + +- [Developing with linked packages](./linking.md) + ### Backend A docker compose file `dev-backend-docker-compose.yml` is provided to start the whole stack of components which is required for a local development environment: -- Minimum Synapse Setup (servername: synapse.localhost) -- LiveKit JWT Service (Note requires Federation API and hence a TLS reverse proxy) -- Minimum TLS reverse proxy (servername: synapse.localhost) Note certificates - are valid for at least 10 years from now +- Minimum Synapse Setup (servername: `synapse.m.localhost`) +- LiveKit Authorization Service (Note requires Federation API and hence a TLS reverse proxy) - Minimum LiveKit SFU Setup using dev defaults for config -- Redis db for completness +- Redis db for completeness +- Minimum `localhost` Certificate Authority (CA) for Transport Layer Security (TLS) + - Hostnames: `m.localhost`, `*.m.localhost` + - Add [./backend/dev_tls_local-ca.crt](./backend/dev_tls_local-ca.crt) to your web browsers trusted + certificates +- Minimum TLS reverse proxy for + - Synapse homeserver: `synapse.m.localhost` + - MatrixRTC backend: `matrix-rtc.m.localhost` + - Local Element Call development `call.m.localhost` via `yarn dev --host ` + - Element Web `app.m.localhost` + - Note certificates will expire on Thu, 03 May 2035 10:32:02 GMT These use a test 'secret' published in this repository, so this must be used only for local development and **_never be exposed to the public Internet._** Run backend components: -``` +```sh yarn backend # or for podman-compose # podman-compose -f dev-backend-docker-compose.yml up ``` +> [!NOTE] +> To ensure your local development frontend functions properly, you’ll need to +> add certificate exceptions in your browser for `https://localhost:3000`, +> `https://matrix-rtc.m.localhost/livekit/jwt/healthz` and +> `https://synapse.m.localhost/.well-known/matrix/client`. This can be either +> done by adding the minimum localhost CA +> ([./backend/dev_tls_local-ca.crt](./backend/dev_tls_local-ca.crt)) to your web +> browsers trusted certificates or by simply copying and pasting each URL into +> your browser’s address bar and follow the prompts to add the exception. + +### Playwright tests + +Our Playwright tests run automatically as part of our CI along with our other +tests, on every pull request. + +You may need to follow instructions to set up your development environment for +running Playwright by following + and +. + +However the Playwright tests are run, an element-call instance must be running +on https://localhost:3000 (this is configured in `playwright.config.ts`) - this +is what will be tested. + +The local backend environment should be running for the test to work: +`yarn backend` + +There are a few different ways to run the tests yourself. The simplest is to +run: + +```shell +yarn run test:playwright +``` + +This will run the Playwright tests once, non-interactively. + +There is a more user-friendly way to run the tests in interactive mode: + +```shell +yarn run test:playwright:open +``` + +The easiest way to develop new test is to use the codegen feature of Playwright: + +```shell +npx playwright codegen +``` + +This will record your action and write the test code for you. Use the tool bar +to test visibility, text content and clicking. + +##### Investigate a failed test from the CI + +In the failed action page, click on the failed job, then scroll down to the +`upload-artifact` step. You will find a link to download the zip report, as per: + +``` +Artifact playwright-report has been successfully uploaded! Final size is 1360358 bytes. Artifact ID is 2746265841 +Artifact download URL: https://github.com/element-hq/element-call/actions/runs/13837660687/artifacts/2746265841 +``` + +Unzip the report then use this command to open the report in your browser: + +```shell +npx playwright show-report ~/Downloads/playwright-report/ +``` + +Under the failed test there is a small icon looking like "3 columns" (next to +the test name file name), click on it to see the live screenshots/console +output. + ### Test Coverage @@ -218,9 +312,11 @@ yarn backend To add a new translation key you can do these steps: -1. Add the new key entry to the code where the new key is used: `t("some_new_key")` +1. Add the new key entry to the code where the new key is used: + `t("some_new_key")` 1. Run `yarn i18n` to extract the new key and update the translation files. This will add a skeleton entry to the `locales/en/app.json` file: + ```jsonc { ... @@ -228,19 +324,39 @@ To add a new translation key you can do these steps: ... } ``` -1. Update the skeleton entry in the `locales/en/app.json` file with - the English translation: -```jsonc +1. Update the skeleton entry in the `locales/en/app.json` file with the English + translation: + + ```jsonc { ... "some_new_key": "Some new key", ... } -``` + ``` -## Documentation +## 📖 Documentation Usage and other technical details about the project can be found here: [**Docs**](./docs/README.md) + +## 📝 Copyright & License + +Copyright 2021-2025 New Vector Ltd + +This software is dual-licensed by New Vector Ltd (Element). It can be used +either: + +(1) for free under the terms of the GNU Affero General Public License (as +published by the Free Software Foundation, either version 3 of the License, or +(at your option) any later version); OR + +(2) under the terms of a paid-for Element Commercial License agreement between +you and Element (the terms of which may vary depending on what you and Element +have agreed to). Unless required by applicable law or agreed to in writing, +software distributed under the Licenses is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +Licenses for the specific language governing permissions and limitations under +the Licenses. diff --git a/WIDGET_TEST.md b/WIDGET_TEST.md new file mode 100644 index 00000000..53e26a29 --- /dev/null +++ b/WIDGET_TEST.md @@ -0,0 +1,28 @@ +# Testing Element-Call in widget mode + +When running `yarn backend` the latest element-web develop will be deployed and served on `http://localhost:8081`. +In a development environment, you might prefer to just use the `element-web` repo directly, but this setup is useful for CI/CD testing. + +## Setup + +The element-web configuration is modified to: + +- Enable to use the local widget instance (`element_call.url` https://localhost:3000). +- Enable the labs features (`feature_group_calls`, `feature_element_call_video_rooms`). + +The default configuration used by docker-compose is in `test-container/config.json`. There is a fixture for playwright +that uses + +## Running the element-web instance + +It is part of the existing backend setup. To start the backend, run: + +```sh +yarn backend +``` + +Then open `http://localhost:8081` in your browser. + +## Basic fixture + +A base fixture is provided in `/playwright/fixtures/widget-user.ts` that will register two users that shares a room. diff --git a/backend/dev_homeserver.yaml b/backend/dev_homeserver.yaml index 5697c32e..eab4e698 100644 --- a/backend/dev_homeserver.yaml +++ b/backend/dev_homeserver.yaml @@ -1,5 +1,5 @@ -server_name: "synapse.localhost" -public_baseurl: http://synapse.localhost:8008/ +server_name: "synapse.m.localhost" +public_baseurl: https://synapse.m.localhost/ pid_file: /data/homeserver.pid diff --git a/backend/dev_livekit.yaml b/backend/dev_livekit.yaml index 0e0c5c7b..f0c5b3a4 100644 --- a/backend/dev_livekit.yaml +++ b/backend/dev_livekit.yaml @@ -21,3 +21,5 @@ turn: external_tls: true keys: devkey: secret +room: + auto_create: false diff --git a/backend/dev_nginx.conf b/backend/dev_nginx.conf new file mode 100644 index 00000000..a29b06d7 --- /dev/null +++ b/backend/dev_nginx.conf @@ -0,0 +1,161 @@ +# Synapse reverse proxy including .well-known/matrix/client +server { + listen 80; + listen [::]:80; + listen 443 ssl; + listen 8448 ssl; + listen [::]:443 ssl; + listen [::]:8448 ssl; + server_name synapse.m.localhost; + ssl_certificate /root/ssl/cert.pem; + ssl_certificate_key /root/ssl/key.pem; + + # well-known config adding rtc_foci backend + # Note well-known is currently not effective due to: + # https://spec.matrix.org/v1.12/client-server-api/#well-known-uri the spec + # says it must be at https://$server_name/... (implied port 443) Hence, we + # currently rely for local development environment on deprecated config.json + # setting for livekit_service_url + location /.well-known/matrix/client { + add_header Access-Control-Allow-Origin *; + return 200 '{"m.homeserver": {"base_url": "https://synapse.m.localhost"}, "org.matrix.msc4143.rtc_foci": [{"type": "livekit", "livekit_service_url": "https://matrix-rtc.m.localhost/livekit/jwt"}]}'; + default_type application/json; + } + + # Reverse proxy for Matrix Synapse Homeserver + # This is also required for development environment. + # Reason: the lk-jwt-service uses the federation API for the openid token + # verification, which requires TLS + location / { + proxy_pass "http://homeserver:8008"; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + } + + error_page 500 502 503 504 /50x.html; + +} + +# MatrixRTC reverse proxy +# - MatrixRTC Authorization Service +# - LiveKit SFU websocket signaling connection +upstream jwt-auth-services { + server auth-server:6080; + server host.docker.internal:6080; +} + +server { + listen 80; + listen [::]:80; + listen 443 ssl; + listen [::]:443 ssl; + listen 8448 ssl; + listen [::]:8448 ssl; + server_name matrix-rtc.m.localhost; + ssl_certificate /root/ssl/cert.pem; + ssl_certificate_key /root/ssl/key.pem; + + + location ^~ /livekit/jwt/ { + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + # JWT Service running at port 6080 + proxy_pass http://jwt-auth-services/; + + } + + location ^~ /livekit/sfu/ { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_send_timeout 120; + proxy_read_timeout 120; + proxy_buffering off; + + proxy_set_header Accept-Encoding gzip; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + # LiveKit SFU websocket connection running at port 7880 + proxy_pass http://livekit-sfu:7880/; + } + + error_page 500 502 503 504 /50x.html; + +} + +# Convenience reverse proxy for the call.m.localhost domain to yarn dev --host +server { + listen 80; + listen [::]:80; + server_name call.m.localhost; + + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name call.m.localhost; + ssl_certificate /root/ssl/cert.pem; + ssl_certificate_key /root/ssl/key.pem; + + + location ^~ / { + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_pass https://host.docker.internal:3000; + proxy_ssl_verify off; + + } + + error_page 500 502 503 504 /50x.html; + +} + +# Convenience reverse proxy app.m.localhost for element web +server { + listen 80; + listen [::]:80; + server_name app.m.localhost; + + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name app.m.localhost; + ssl_certificate /root/ssl/cert.pem; + ssl_certificate_key /root/ssl/key.pem; + + + location ^~ / { + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_pass http://element-web:8081; + proxy_ssl_verify off; + + } + + error_page 500 502 503 504 /50x.html; + +} diff --git a/backend/dev_tls_local-ca.crt b/backend/dev_tls_local-ca.crt new file mode 100644 index 00000000..9c8ee3d7 --- /dev/null +++ b/backend/dev_tls_local-ca.crt @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIDGjCCAgKgAwIBAgIUGdiFHhH4KL2pqBjMQHQ+PVIkSV8wDQYJKoZIhvcNAQEL +BQAwHjEcMBoGA1UEAwwTRWxlbWVudCBDYWxsIERldiBDQTAeFw0yNTA1MDUxMDMy +MDJaFw0zNTA1MDMxMDMyMDJaMB4xHDAaBgNVBAMME0VsZW1lbnQgQ2FsbCBEZXYg +Q0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDA2y0hjmNn1vRsVSdy +8IOfo8N1q9UgkhQWpGKXzPh+D5d1fnuJEmHIVwtDEtS/PwQ43LTmegChPtKH9jdT +tG0IihW9Ja5YNG+9xAwaoA/sB3CGCBYsz+2/XjVUpXoBJXIPoFBWsn+K0oeFw9fw +eRO1z9abM4cl+LjKzMNM8CCyu9uI1MaGjYez2YIWvG854VucLxX7HSlMJxZNWnie +Ui7fMakuJhB2+aiIQjdKxy4E5RHNhzYG/LXhvP+wBYBDPNRsP3rtzEaE9HAveL9K +FGqd3R4cBia6r1WIXmpAzyu5RGP5Eou0TZlGkal96/bF0I7q/pKlL23Jt1BLPiQU +KGKrAgMBAAGjUDBOMB0GA1UdDgQWBBQJqBjMu61c1p24txw/y+kv3D+V6DAfBgNV +HSMEGDAWgBQJqBjMu61c1p24txw/y+kv3D+V6DAMBgNVHRMEBTADAQH/MA0GCSqG +SIb3DQEBCwUAA4IBAQB8m2YfFGLugNt5vAAOvNxVqDA8c72yCVYr3CBCpmTIEY5Z +d3qVGhG9//ux6+J8ntkSwd9nV5GJyYXHukCG1VavnAWolWdNF/WAllf0jhLuz7kD +/cJnuI1By4tBsBmSz851i6HJ4t5k99Be+6GQVzi0e7zzfxTHZE4xP2J6Ox8QbPsP +n0m76nIp/WbWaJqzvIIjJhmUUPPv+4wN+eOArgjiGLzptM2qTtGZtd0c9nS5gvep ++mEbSUN9zkhAroZf80wf+hEvy+fJ94VbZ9QjTzTg7odZLrsXGIe8DaG63EYRQ25b +W5iYBAreln5fGSt7qHsGfqwZibTEk/Lx3dydO1Kg +-----END CERTIFICATE----- diff --git a/backend/dev_tls_local-ca.key b/backend/dev_tls_local-ca.key new file mode 100644 index 00000000..c6de05c4 --- /dev/null +++ b/backend/dev_tls_local-ca.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDA2y0hjmNn1vRs +VSdy8IOfo8N1q9UgkhQWpGKXzPh+D5d1fnuJEmHIVwtDEtS/PwQ43LTmegChPtKH +9jdTtG0IihW9Ja5YNG+9xAwaoA/sB3CGCBYsz+2/XjVUpXoBJXIPoFBWsn+K0oeF +w9fweRO1z9abM4cl+LjKzMNM8CCyu9uI1MaGjYez2YIWvG854VucLxX7HSlMJxZN +WnieUi7fMakuJhB2+aiIQjdKxy4E5RHNhzYG/LXhvP+wBYBDPNRsP3rtzEaE9HAv +eL9KFGqd3R4cBia6r1WIXmpAzyu5RGP5Eou0TZlGkal96/bF0I7q/pKlL23Jt1BL +PiQUKGKrAgMBAAECggEAAPX2kxi5AQ7ul82SzT1KgpSXyDHLdYaUyAoYnaX9RO+B +8ylmpyeqygs4+KQS4EMJm9jpo85Oy37bIKdG3kljU6wQcKlL5Y+ZUOo1nzpV6fid +hGVs6ts8VXw8KshKQ9AyccZ8L/pirUfgOffgTwfjY7/90zceAL/s98GuZWc62nkX +55joQv/OikqYfAGP/U6Bp2Zyf23DwJB09Z3B6NnZj/ZyAbDrDEHuA15LhCOcCczp +IU/mFEywBPHT9Tg4w4Beq78PeAETvku2UalYRLhP3RLlXr2oEbwUtINRVt2QjZ85 +Esps4uCqL/mgQluIebtudD9HL/YMlNPXue1mDXFxJQKBgQDgZZY4yJBcf488T1V6 +HNm06b/LvVGj253pKgw14hpY1xQu3Ymgzv1GEqzhSYdzxhpmj0tMUNHxAp+YdGQu +SZ0wcPKhw0aYVkIjDRYDC3Wn5GJhyIEYHGYMo/n4l49UzHRBPOTDzp49DkHTKBgh +XgIIazYT3CkjTIMRrkUv+qfIPQKBgQDcBGu/mqbjxs4sN3zqPS4aB21o6t6W0sXs +ZP9w6RlTPQi5U2oRbftjZtYc0bbEgkMUImB1HwYPQT5pJ+MyC414xDvSc2exBr5d +To6yyPIy78Tf5PHM12fpKV92nSvoz/pSjYcGxxDtKfPqu+t8mOJfjCV1lLLA+xuB +DDaE4p8dBwKBgQCdAne6A5v/HMH8UQZeCxHJpESvKiiVnnU/UEx651nID7XvlNNX +0X0mKqsMd4ZvW43ddSYan/JF0LAa3FW8jYWO/3jF9vzOWoysOdvNBZetgf/Uq5ao +aDZ/YbzmVCXWD7jIbPMkjs3pqrAkL0mzDzQc7+dGviWKrV6IYIfIqnn7gQKBgDCz +vdIk/qpO+JZrFfiX4Fucp0hhLTJ/p5ZDaRPqVVPKn+K+Jy2ChfIj8mNgvK9VEloj +nexvGJ1J2PHYBX+vdPp1nbRhHWPfVUY8PHQw7QP/dToGaMvqJrNDGEGeWvjnCMc7 +UtdaO1H0Rm0AegkTopB56lTTvJnhO95eALd7nrMDAoGAEPdzJtWoKafp49svhSj0 +hiXQv2SPBwVUN4LZ4SOWiXUcmYYm80aNpYKLkBxYjrfqFWhE7NUHLGp8YorQWKY2 +acD9AReHk/xku0ABy6jeYmSCmCxASxst5liKD+l12sk0gB0rk5MBxB4Uu1MIbQZ2 +aCASX3AVD2/XyC2MKkzc8Eg= +-----END PRIVATE KEY----- diff --git a/backend/dev_tls_m.localhost.crt b/backend/dev_tls_m.localhost.crt new file mode 100644 index 00000000..5d6251a9 --- /dev/null +++ b/backend/dev_tls_m.localhost.crt @@ -0,0 +1,21 @@ +-----BEGIN CERTIFICATE----- +MIIDZzCCAk+gAwIBAgIUXizLjwkdqepX0bh0K3abeJxj68IwDQYJKoZIhvcNAQEL +BQAwHjEcMBoGA1UEAwwTRWxlbWVudCBDYWxsIERldiBDQTAeFw0yNTA1MDUxMzU5 +MTFaFw0zNTA1MDMxMzU5MTFaMBgxFjAUBgNVBAMMDSoubS5sb2NhbGhvc3QwggEi +MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCrzGSScSgaQuZdELGFYiLiYRwr +LKyUdNr0rsPcOo0bvbeZ3zQMeUMRNlA69zGFdarumiDRXUoAmZI39WmH95aX3d+A +U7EFnWev7xpWSVhSYj8T0d4rke8HjGk3LpaffJ93tbJuagBIH1ouuN6AOdzWs8hp +RYIomWleEeeuVnnfaMwaXOdc+ihJJ6wzm2hwQSfdpjZPWBDd/DFft1ZXxIZOCjDs +rEIiI7uU8iZPLB3QEM/tgxSSAOxrcKvQvxZokk+FD7aMJFP71IfieLCEzMTP1VXa +tP7UTAKAqB2NyDJ8m3IHbOINiqcdFvFR3R1D9bXOYE4oRynNvYZrQUGnL2RtAgMB +AAGjgaIwgZ8wHwYDVR0jBBgwFoAUCagYzLutXNaduLccP8vpL9w/legwCQYDVR0T +BAIwADALBgNVHQ8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwMAYDVR0RBCkw +J4IJbG9jYWxob3N0ggttLmxvY2FsaG9zdIINKi5tLmxvY2FsaG9zdDAdBgNVHQ4E +FgQUfdh1p52ZgWyZcBgBXGwKi4EnUE0wDQYJKoZIhvcNAQELBQADggEBAKrHEuB6 +33j8+EwSHw3zrvt/DRXK2BDHI1Ir9JcztSunaKAjZXVvf/dvZp0Xs1dEdJIdnv6G +iZYhBbOqDqpQZbf2h/h0kuu5yZSBUdnQXnYNxlhp2UaC/UEgw5iZT/p1rm7RjVie +y4Dp2WytV5iZOLmLj6xDvd3DXazgJPWIRX8p8qJZbKTkwCjTr7nDIj8jjG1sVFf7 +1RJBO5/6WSnImrpDmlLUrvjiKvbxcdseDJyBOhTwdRdSk4S2M+s5tR5j2I1gXLOq +J5ioN76+SCrTY0K0WKRy9oOXWO1/X3+VYcekp+0F3SGkd5w17jylCv1XIGHAdEsQ +v2z2/aMI/7sAD2Q= +-----END CERTIFICATE----- diff --git a/backend/dev_tls_m.localhost.key b/backend/dev_tls_m.localhost.key new file mode 100644 index 00000000..73d89ce4 --- /dev/null +++ b/backend/dev_tls_m.localhost.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCrzGSScSgaQuZd +ELGFYiLiYRwrLKyUdNr0rsPcOo0bvbeZ3zQMeUMRNlA69zGFdarumiDRXUoAmZI3 +9WmH95aX3d+AU7EFnWev7xpWSVhSYj8T0d4rke8HjGk3LpaffJ93tbJuagBIH1ou +uN6AOdzWs8hpRYIomWleEeeuVnnfaMwaXOdc+ihJJ6wzm2hwQSfdpjZPWBDd/DFf +t1ZXxIZOCjDsrEIiI7uU8iZPLB3QEM/tgxSSAOxrcKvQvxZokk+FD7aMJFP71Ifi +eLCEzMTP1VXatP7UTAKAqB2NyDJ8m3IHbOINiqcdFvFR3R1D9bXOYE4oRynNvYZr +QUGnL2RtAgMBAAECggEAJaFQii8U/KOYt9vXNoMnZvSkaeSQLLhn2V6Kciu1CtWE +aMTWLsFE6nk+G5xXkYcTmM3T0GghtH3u5CjyI6EcsEkeEorCZJt0wbmayDmqiekR +LfMzOdHuTHX5+edPgMGYYG1BFyRKyYFsjH1b5zRFZhXdGQnrl5760GsVlz9D1KZQ +iHcT+q1S2tmZeoUukQnADENKXUMCyTGM5FCddgNtsWnGDsTDayh7hUdvDkB+mW4G +lSp+BZuc3PCwpbD6qkXvfugWs6CUAAtXoV3ceWgxQ+TEnNlwxaG1AyugfgNUBolk +8xgeZt4r5QId03jsHDf7hpBAofcaCd5EMIIQYFvWoQKBgQDlbAvAzEFPTZZn2nRV +Xagw4xjqVc1LLEKLCWq0N5rEkwn0h90Dz5N7/3NuonP/sIDsDHCbyiOYBI1Ck6Xi +0WuB+OyKDh+xeF2mekN9G9ywPahdK5lT/TVsxXFyZlwtVv1x/6KBO4yv5URizxqU +gyAPDDxfD/KcNjkOBaodWEwQGQKBgQC/s2gPDBtQkjLwkHXchBomLww5eLlVrac1 +WK4UX6uSdOgrjJ375OOgMTxe8NVZdOuAKytGXRWDwgH3nVWvuZhe7dGlX3JMuSer +e9VwDpBESrvqcR4ruL6wm8wej6BXyjH0wD3FHb0S5HfuBDxTn+4bDwrbRzOUMNgy +lSppuflxdQKBgQDiZcIfazFT8evn5nMAvuC4BZNTxIJHmZC9JfjPiUPIkpWzYtOe +7BvNtKOT3Op9uw8uYYRKqKqBXJSNy6ha8XCXHS9HeXKbLn20SFkLQBCDNwVLlDfF +40zyXtF6JDr4XyzSb4NM5pgKCER5AYloXxGm59s3sEQpFXUuOjbKqJS/GQKBgAoI +c7vF4HAZFr1sch62cz/oWnVvkhOf4Q5zs7ixQSOLJtOQqnwSgK9TpFs7s47ZBbJR +kBRAru2Ua9Hv1Bo8VnMxczV6h1roneDlvEf/GyHX33nnrbKQGrrXjJlU3wl5NaAf +p5v3cHvapUQ5yIZ/6lBUOzc6xMJOxCHxmKSr7Rg5AoGAbEE4lt6Xh2dnBPJ81eNI +IDrw/3ITY53qAY4Bx88CByIFuu8CEUdUZprh98jSl6ic1tMinZfUhRMwABLrUD51 +DGst8iGLPD9u83iMcUHI/L+p7AbxrKLvWXZrF5UZm440c9mSWqfhPaTBosPtNDsG +LfETwH1flKXMTXd2xA9RTE4= +-----END PRIVATE KEY----- diff --git a/backend/dev_tls_setup b/backend/dev_tls_setup new file mode 100644 index 00000000..8a778dc8 --- /dev/null +++ b/backend/dev_tls_setup @@ -0,0 +1,38 @@ +#!/bin/bash + +# Step 1: Create a Root CA key and cert +openssl genrsa -out dev_tls_local-ca.key 2048 +openssl req -x509 -new -nodes \ + -days 3650 \ + -subj "/CN=Element Call Dev CA" \ + -key dev_tls_local-ca.key \ + -out dev_tls_local-ca.crt \ + -sha256 -addext "basicConstraints=CA:TRUE" + +# Step 2: Create a private key and CSR for *.m.localhost +openssl req -new -nodes -newkey rsa:2048 \ + -keyout dev_tls_m.localhost.key \ + -out dev_tls_m.localhost.csr \ + -subj "/CN=*.m.localhost" + +# Step 3: Sign the CSR with your CA +openssl x509 \ + -req -in dev_tls_m.localhost.csr \ + -CA dev_tls_local-ca.crt -CAkey dev_tls_local-ca.key \ + -CAcreateserial \ + -out dev_tls_m.localhost.crt \ + -days 3650 \ + -sha256 \ + -extfile <( cat < void) | undefined` Callback called whenever the user or application selects a new audio output. +- `controls.setAudioDevice(id: string): void` Sets the selected audio device in Element Call's menu. This should be used if the OS decides to automatically switch to Bluetooth, for example. +- `controls.setAudioEnabled(enabled: boolean)` Enables/disables all audio output from the application. Output is enabled by default. +- `controls.onAudioPlaybackStarted: ((id: string) => void) | undefined`: This will be called the first time we start + playing audio in the webview. It can be helpful to do device setup on the native app when the webviews audio is ready. + In particular android is using it to setup the output channel so that the call volume can + be controlled by the hardware volume rocker. + +## Element Call button delegation + +Callbacks for buttons in EC that are handled by the native application + +- `showNativeAudioDevicePicker: (() => void) | undefined`. Callback called whenever the user presses the output button in the settings menu. + This button is only shown on iOS. (`/iPad|iPhone|iPod|Mac/.test(navigator.userAgent)`) +- `onBackButtonPressed: (() => void) | undefined`. Callback when the webview detects a tab on the header's back button. diff --git a/docs/element_call_standalone.drawio.png b/docs/element_call_standalone.drawio.png new file mode 100644 index 00000000..1e105ef4 Binary files /dev/null and b/docs/element_call_standalone.drawio.png differ diff --git a/docs/element_call_widget.drawio.png b/docs/element_call_widget.drawio.png new file mode 100644 index 00000000..72a4e1de Binary files /dev/null and b/docs/element_call_widget.drawio.png differ diff --git a/docs/embedded-standalone.md b/docs/embedded-standalone.md index f798c346..440dfac0 100644 --- a/docs/embedded-standalone.md +++ b/docs/embedded-standalone.md @@ -1,9 +1,39 @@ -## Embedded vs standalone mode +## Element Call packages -Element call is developed using the js-sdk with matroska mode. This means the app can run either as a standalone app directly connected to a homeserver providing login interfaces or it can be used as a widget. +Element Call is available as two different packages: Full Package and Embedded Package. -As a widget the app only uses the core calling (matrixRTC) parts. The rest (authentication, sending events, getting room state updates about calls) is done by the hosting client. -Element Call and the hosting client are connected via the widget api. +The Full Package is designed for standalone use, while the Embedded Package is designed for widget mode only. -Element call detects that it is run as a widget if a widgetId is defined in the url parameters. If `widgetId` is present element call will try to connect to the client via the widget postMessage api using the parameters provided in [Url Format and parameters +The table below provides a comparison of the two packages: + +| | Full Package | Embedded Package | +| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **Supports use as standalone** | ✅ | ❌ | +| **Supports use as widget** | ✅ | ✅ | +| **Deployment mode** | Hosted as a static web page and accessed via a URL when used as a widget | Bundled within a messenger app for seamless integration | +| **Release artifacts** | Docker Image, Tarball | Tarball, NPM for Web, Android AAR, SwiftPM for iOS | +| **Recommended for** | Standalone/guest access usage | Embedding within messenger apps | +| **Responsibility for regulatory compliance** | The administrator that is deploying the app is responsible for compliance with any applicable regulations (e.g. privacy) | The developer of the messenger app is responsible for compliance | +| **Analytics consent** | Element Call will show a consent UI. | Element Call will not show a consent UI. The messenger app should only provide the embedded Element Call with the [analytics URL parameters](./url-params.md#embedded-only-parameters) if consent has been granted. | +| **Analytics data** | Element Call will send data to the Posthog, Sentry and Open Telemetry targets specified by the administrator in the `config.json` | Element Call will send data to the Posthog and Sentry targets specified in the URL parameters by the messenger app | + +### Using the embedded package within a messenger app + +Currently the best way to understand the necessary steps is to look at the implementations in the Element Messenger apps: [Web](https://github.com/element-hq/element-web/pull/29309), [iOS](https://github.com/element-hq/element-x-ios/pull/3939) and [Android](https://github.com/element-hq/element-x-android/pull/4470). + +The basics are: + +1. Add the appropriate platform dependency as given for a [release](https://github.com/element-hq/element-call/releases), or use the embedded tarball. e.g. `npm install @element-hq/element-call-embedded@0.9.0` +2. Include the assets from the platform dependency in the build process. e.g. copy the assets during a [Webpack](https://github.com/element-hq/element-web/blob/247cd8d56d832d006d7dfb919d1042529d712b59/webpack.config.js#L677-L682) build. +3. Use the `index.html` entrypointof the imported assets when you are constructing the WebView or iframe. e.g. using a [relative path in a webapp](https://github.com/element-hq/element-web/blob/247cd8d56d832d006d7dfb919d1042529d712b59/src/models/Call.ts#L680), or on the the Android [WebViewAssetLoader](https://github.com/element-hq/element-x-android/blob/fe5aab6588ecdcf9354a3bfbd9e97c1b31175a8f/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/DefaultCallWidgetProvider.kt#L20) +4. Set any of the [embedded-only URL parameters](./url-params.md#embedded-only-parameters) that you need. + +## Widget vs standalone mode + +Element Call is developed using the [js-sdk](https://github.com/matrix-org/matrix-js-sdk) with matroska mode. This means the app can run either as a standalone app directly connected to a homeserver providing login interfaces or it can be used as a widget within a Matrix client. + +As a widget, the app only uses the core calling (MatrixRTC) parts. The rest (authentication, sending events, getting room state updates about calls) is done by the hosting client. +Element Call and the hosting client are connected via the widget API. + +Element Call detects that it is run as a widget if a widgetId is defined in the url parameters. If `widgetId` is present then Element Call will try to connect to the client via the widget postMessage API using the parameters provided in [Url Format and parameters ](./url-params.md). diff --git a/docs/embedded_package.drawio.png b/docs/embedded_package.drawio.png new file mode 100644 index 00000000..3f485151 Binary files /dev/null and b/docs/embedded_package.drawio.png differ diff --git a/docs/full_package.drawio.png b/docs/full_package.drawio.png new file mode 100644 index 00000000..663300d2 Binary files /dev/null and b/docs/full_package.drawio.png differ diff --git a/docs/linking.md b/docs/linking.md new file mode 100644 index 00000000..0abbc73e --- /dev/null +++ b/docs/linking.md @@ -0,0 +1,39 @@ +# Developing with linked packages + +If you want to make changes to a package that Element Call depends on and see those changes applied in real time, you can create a link to a local copy of the package. Yarn has a command for this (`yarn link`), but it's not recommended to use it as it ends up modifying package.json with details specific to your development environment. + +Instead, you can use our little 'linker' plugin. Create a file named `.links.yaml` in the Element Call project directory, listing the names and paths of any dependencies you want to link. For example: + +```yaml +matrix-js-sdk: ../path/to/matrix-js-sdk +"@vector-im/compound-web": /home/alice/path/to/compound-web +``` + +Then run `yarn install`. + +## Hooks + +Changes in `.links.yaml` will also update `yarn.lock` when `yarn` is executed. The lockfile will then contain the local +version of the package which would not work on others dev setups or the github CI. +One always needs to run: + +```bash +mv .links.yaml .links.disabled.yaml +yarn +``` + +before committing a change. + +To make it more convenient to work with this linking system we added git hooks for your conviniece. +A `pre-commit` hook will run `mv .links.yaml .links.disabled.yaml`, `yarn` and `git add yarn.lock` if it detects +a `.links.yaml` file and abort the commit. +You will than need to check if the resulting changes are appropriate and commit again. + +A `post-commit` hook will setup the linking as it was +before if a `.links.disabled.yaml` is present. It runs `mv .links.disabled.yaml .links.yaml` and `yarn`. + +To activate the hooks automatically configure git with + +```bash +git config --local core.hooksPath .githooks/ +``` diff --git a/docs/self-hosting.md b/docs/self-hosting.md new file mode 100644 index 00000000..d7a1fbdf --- /dev/null +++ b/docs/self-hosting.md @@ -0,0 +1,269 @@ +# Self-Hosting Element Call + +> [!NOTE] +> For In-App calling (Element X, Element Web, Element Desktop) use-case only +> section [Prerequisites](#Prerequisites) is required. + +## Prerequisites + +> [!IMPORTANT] +> This section covers the requirements for deploying a **Matrix site** +> compatible with MatrixRTC, the foundation of Element Call. These requirements +> apply to both Standalone as well as Widget mode operation of Element Call. + +### A Matrix Homeserver + +The following [MSCs](https://github.com/matrix-org/matrix-spec-proposals) are +required for Element Call to work properly: + +- **[MSC3266](https://github.com/deepbluev7/matrix-doc/blob/room-summaries/proposals/3266-room-summary.md): + Room Summary API**: In Standalone mode Element Call is able to join rooms + over federation using knocking. In this context MSC3266 is required as it + allows to request a room summary of rooms you are not joined. The summary + contains the room join rules. We need that information to decide if the user + gets prompted with the option to knock ("Request to join call"), a "cannot + join error" or "the join view". + +- **[MSC4140](https://github.com/matrix-org/matrix-spec-proposals/blob/toger5/expiring-events-keep-alive/proposals/4140-delayed-events-futures.md) + Delayed Events**: Delayed events are required for proper call participation + signalling. If disabled it is very likely that you end up with stuck calls in + Matrix rooms. + +- **[MSC4222](https://github.com/matrix-org/matrix-spec-proposals/blob/erikj/sync_v2_state_after/proposals/4222-sync-v2-state-after.md) + Adding `state_after` to sync v2**: Allow clients to opt-in to a change of the + sync v2 API that allows them to correctly track the state of the room. This is + required by Element Call to track room state reliably. + +If you're using [Synapse](https://github.com/element-hq/synapse/) as your +homeserver, you'll need to additionally add the following config items to +`homeserver.yaml` to comply with Element Call: + +```yaml +experimental_features: + # MSC3266: Room summary API. Used for knocking over federation + msc3266_enabled: true + # MSC4222 needed for syncv2 state_after. This allow clients to + # correctly track the state of the room. + msc4222_enabled: true + +# The maximum allowed duration by which sent events can be delayed, as +# per MSC4140. +max_event_delay_duration: 24h + +rc_message: + # This needs to match at least e2ee key sharing frequency plus a bit of headroom + # Note key sharing events are bursty + per_second: 0.5 + burst_count: 30 + +rc_delayed_event_mgmt: + # This needs to match at least the heart-beat frequency plus a bit of headroom + # Currently the heart-beat is every 5 seconds which translates into a rate of 0.2s + per_second: 1 + burst_count: 20 +``` + +As a prerequisite for the +[Matrix LiveKit JWT auth service](https://github.com/element-hq/lk-jwt-service) +make sure that your Synapse server has either a `federation` or `openid` +[listener configured](https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#listeners). + +### MatrixRTC Backend + +In order to **guarantee smooth operation** of Element Call MatrixRTC backend is +required for each site deployment. + +![MSC4195 compatible setup](MSC4195_setup.drawio.png) + +As depicted above in the `example.com` site deployment, Element Call requires a +[Livekit SFU](https://github.com/livekit/livekit) alongside a +[Matrix Livekit JWT auth service](https://github.com/element-hq/lk-jwt-service) +to implement +[MSC4195: MatrixRTC using LiveKit backend](https://github.com/hughns/matrix-spec-proposals/blob/hughns/matrixrtc-livekit/proposals/4195-matrixrtc-livekit.md). + +#### Matrix site endpoint routing + +In the context of MatrixRTC, we suggest using a single hostname for backend +communication by implementing endpoint routing within a reverse proxy setup. For +the example above, this results in: +| Service | Endpoint | Example | +| -------- | ------- | ------- | +| [Livekit SFU](https://github.com/livekit/livekit) WebSocket signalling connection | `/livekit/sfu` | `matrix-rtc.example.com/livekit/sfu` | +| [Matrix Livekit JWT auth service](https://github.com/element-hq/lk-jwt-service) | `/livekit/jwt` | `matrix-rtc.example.com/livekit/jwt` | + +Using Nginx, you can achieve this by: + +```nginx configuration file +server { + ... + location ^~ /livekit/jwt/ { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + # JWT Service running at port 8080 + proxy_pass http://localhost:8080/; + } + + location ^~ /livekit/sfu/ { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_send_timeout 120; + proxy_read_timeout 120; + proxy_buffering off; + + proxy_set_header Accept-Encoding gzip; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + # LiveKit SFU websocket connection running at port 7880 + proxy_pass http://localhost:7880/; + } +} +``` + +#### MatrixRTC backend announcement + +> [!IMPORTANT] +> As defined in +> [MSC4143](https://github.com/matrix-org/matrix-spec-proposals/pull/4143) +> MatrixRTC backend must be announced to the client via your **Matrix site's +> `.well-known/matrix/client`** file (e.g. +> `example.com/.well-known/matrix/client` matching the site deployment example +> from above). The configuration is a list of Foci configs: + +```json +"org.matrix.msc4143.rtc_foci": [ + { + "type": "livekit", + "livekit_service_url": "https://matrix-rtc.example.com/livekit/jwt" + }, + { + "type": "livekit", + "livekit_service_url": "https://matrix-rtc-2.example.com/livekit/jwt" + } +] +``` + +Make sure this file is served with the correct MIME type (`application/json`). +Additionally, ensure the appropriate CORS headers are set to allow web clients +to access it across origins. For more details, refer to the +[Matrix Client-Server API: 2. Web Browser Clients](https://spec.matrix.org/latest/client-server-api/#web-browser-clients). + +``` +Access-Control-Allow-Origin: * +Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS +Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization +``` + +> [!NOTE] +> Most `org.matrix.msc4143.rtc_foci` configurations will only have one entry in +> the array + +## Building Element Call + +> [!NOTE] +> This step is only required if you want to deploy Element Call in Standalone +> mode. + +Until prebuilt tarballs are available, you'll need to build Element Call from +source. First, clone and install the package: + +```sh +git clone https://github.com/element-hq/element-call.git +cd element-call +corepack enable +yarn +yarn build +``` + +If all went well, you can now find the build output under `dist` as a series of +static files. These can be hosted using any web server that can be configured +with custom routes (see below). + +You also need to add a configuration file which goes in `public/config.json` - +you can use the sample as a starting point: + +```sh +cp config/config.sample.json public/config.json +# edit public/config.json +``` + +The sample needs editing to contain the homeserver that you are using. + +Because Element Call uses client-side routing, your server must be able to route +any requests to non-existing paths back to `/index.html`. For example, in Nginx +you can achieve this with the `try_files` directive: + +```nginx configuration file +server { + ... + location / { + ... + try_files $uri /$uri /index.html; + } +} +``` + +## Configuration + +There are currently two different config files. `.env` holds variables that are +used at build time, while `public/config.json` holds variables that are used at +runtime. Documentation and default values for `public/config.json` can be found +in [ConfigOptions.ts](src/config/ConfigOptions.ts). + +> [!CAUTION] +> Please note configuring MatrixRTC backend via `config.json` of +> Element Call is only available for developing and debug purposes. Relying on +> it might break Element Call going forward! + +## A Note on Standalone Mode of Element Call + +Element Call in Standalone mode requires a homeserver with registration enabled +without any 3pid or token requirements, if you want it to be used by +unregistered users. Furthermore, it is not recommended to use it with an +existing homeserver where user accounts have joined normal rooms, as it may not +be able to handle those yet and it may behave unreliably. + +Therefore, to use a self-hosted homeserver, this is recommended to be a new +server where any user account created has not joined any normal rooms anywhere +in the Matrix federated network. The homeserver used can be setup to disable +federation, so as to prevent spam registrations (if you keep registrations open) +and to ensure Element Call continues to work in case any user decides to log in +to their Element Call account using the standard Element app and joins normal +rooms that Element Call cannot handle. + +# 📚 Community Guides & How-Tos + +Looking for real-world tips, tutorials, and experiences from the community? +Below is a collection of blog posts, walkthroughs, and how-tos created by other +self-hosters and developers working with Element Call. + +> [!NOTE] +> These resources are community-created and may reflect different setups or +> versions. Use them alongside the official documentation for best results. + +## 🌐 Blog Posts & Articles + +- [How to resolve stuck MatrixRTC calls](https://sspaeth.de/2025/02/how-to-resolve-stuck-matrixrtc-calls/) + +## 📝 How-Tos & Tutorials + +- [MatrixRTC aka Element-call setup (Geek warning)](https://sspaeth.de/2024/11/sfu/) +- [MatrixRTC with Synology Container Manager (Docker)](https://ztfr.de/matrixrtc-with-synology-container-manager-docker/) +- [Encrypted & Scalable Video Calls: How to deploy an Element Call backend with Synapse Using Docker-Compose](https://willlewis.co.uk/blog/posts/deploy-element-call-backend-with-synapse-and-docker-compose/) +- [Element Call einrichten: Verschlüsselte Videoanrufe mit Element X und Matrix Synapse](https://www.cleveradmin.de/blog/2025/04/matrixrtc-element-call-backend-einrichten/) + +## 🛠️ Tools + +- [A Matrix server sanity tester including tests for proper MatrixRTC setup](https://codeberg.org/spaetz/testmatrix) + +## 🤝 Want to Contribute? + +Have a guide or blog post you'd like to share? Open a +[PR](https://github.com/element-hq/element-call/pulls) to add it here, or drop a +link in the [#webrtc:matrix.org](https://matrix.to/#/#webrtc:matrix.org) room. diff --git a/docs/url-params.md b/docs/url-params.md index 740e0218..e76c976e 100644 --- a/docs/url-params.md +++ b/docs/url-params.md @@ -1,63 +1,99 @@ -# Url Format and parameters +# URL Format and parameters -There are two formats for Element Call urls. +There are two formats for Element Call URLs. -- **Current Format** +## Link for sharing - ```text - https://element_call.domain/room/# - /?roomId=!id:domain&password=1234& - ``` +Requires Element Call to be deployed in [standalone](./embedded-standalone.md) mode. - The url is split into two sections. The `https://element_call.domain/room/#` - contains the app and the intend that the link brings you into a specific room - (`https://call.element.io/#` would be the homepage). The fragment is used for - query parameters to make sure they never get sent to the element_call.domain - server. Here we have the actual matrix roomId and the password which are used - to connect all participants with e2ee. This allows that `` does - not need to be unique. Multiple meetings with the label weekly-sync can be created - without collisions. +```text +https://element_call.domain/room/# +/?roomId=!id:domain&password=1234& +``` -- **deprecated** +The URL is split into two sections. The `https://element_call.domain/room/#` +contains the app and the intend that the link brings you into a specific room +(`https://call.element.io/#` would be the homepage). The fragment is used for +query parameters to make sure they never get sent to the element_call.domain +server. Here we have the actual Matrix room ID and the password which are used +to connect all participants with E2EE. This allows that `` does +not need to be unique. Multiple meetings with the label weekly-sync can be created +without collisions. - ```text - https://element_call.domain/ - ``` +Additionally the following **deprecated** format is supported: - With this format the livekit alias that will be used is the ``. - All people connecting to this URL will end up in the same unencrypted room. - This does not scale, is super unsecure - (people could end up in the same room by accident) and it also is not really - possible to support encryption. +```text +https://element_call.domain/ +``` + +With this format the livekit alias that will be used is the ``. +All people connecting to this URL will end up in the same unencrypted room. +This does not scale, is super unsecure +(people could end up in the same room by accident) and it also is not really +possible to support encryption. + +## Widget within a messenger app + +| Package | Deployment | URL | +| ------------------------------------ | ----------------------------- | ----------------------------------------------------------------------------- | +| [Full](./embedded-standalone.md) | All | `https://element_call.domain/room` | +| [Embedded](./embedded-standalone.md) | Remote URL | `https://element_call.domain/` n.b. no `/room` part | +| [Embedded](./embedded-standalone.md) | Embedded within messenger app | Platform dependent, but you load the `index.html` file without a `/room` part | ## Parameters -| Name | Values | Required for widget | Required for SPA | Description | -| ---------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `allowIceFallback` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Allows use of fallback STUN servers for ICE if the user's homeserver doesn’t provide any. | -| `analyticsID` | Posthog analytics ID | No | No | Available only with user's consent for sharing telemetry in Element Web. | -| `appPrompt` | `true` or `false` | No, defaults to `true` | No, defaults to `true` | Prompts the user to launch the native mobile app upon entering a room, applicable only on Android and iOS, and must be enabled in config. | -| `baseUrl` | | Yes | Not applicable | The base URL of the homeserver to use for media lookups. | -| `confineToRoom` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Keeps the user confined to the current call/room. | -| `deviceId` | Matrix device ID | Yes | Not applicable | The Matrix device ID for the widget host. | -| `displayName` | | No | No | Display name used for auto-registration. | -| `enableE2EE` (deprecated) | `true` or `false` | No, defaults to `true` | No, defaults to `true` | Legacy flag to enable end-to-end encryption, not used in the `livekit` branch. | -| `fontScale` | A decimal number such as `0.9` | No, defaults to `1.0` | No, defaults to `1.0` | Factor by which to scale the interface's font size. | -| `fonts` | | No | No | Defines the font(s) used by the interface. Multiple font parameters can be specified: `?font=font-one&font=font-two...`. | -| `hideHeader` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Hides the room header when in a call. | -| `hideScreensharing` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Hides the screen-sharing button. | -| `homeserver` | | Not applicable | No | Homeserver for registering a new (guest) user, configures non-default guest user server when creating a spa link. | -| `intent` | `start_call` or `join_existing` | No, defaults to `start_call` | No, defaults to `start_call` | The intent of the user with respect to the call. e.g. if they clicked a Start Call button, this would be `start_call`. If it was a Join Call button, it would be `join_existing`. | -| `lang` | [BCP 47](https://www.rfc-editor.org/info/bcp47) code | No | No | The language the app should use. | -| `parentUrl` | | Yes | Not applicable | The url used to send widget action postMessages. This should be the domain of the client or the webview the widget is hosted in. (in case the widget is not in an Iframe but in a dedicated webview we send the postMessages same WebView the widget lives in. Filtering is done in the widget so it ignores the messages it receives from itself) | -| `password` | | No | No | E2EE password when using a shared secret. (For individual sender keys in embedded mode this is not required.) | -| `perParticipantE2EE` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Enables per participant encryption with Keys exchanged over encrypted matrix room messages. | -| `preload` | `true` or `false` | No, defaults to `false` | Not applicable | Pauses app before joining a call until an `io.element.join` widget action is seen, allowing preloading. | -| `returnToLobby` | `true` or `false` | No, defaults to `false` | Not applicable | Displays the lobby in widget mode after leaving a call; shows a blank page if set to `false`. Useful for video rooms. | -| `roomId` | [Matrix Room ID](https://spec.matrix.org/v1.12/appendices/#room-ids) | Yes | No | Anything about what room we're pointed to should be from useRoomIdentifier which parses the path and resolves alias with respect to the default server name, however roomId is an exception as we need the room ID in embedded widget mode, and not the room alias (or even the via params because we are not trying to join it). This is also not validated, where it is in `useRoomIdentifier()`. | -| `showControls` | `true` or `false` | No, defaults to `true` | No, defaults to `true` | Displays controls like mute, screen-share, invite, and hangup buttons during a call. | -| `skipLobby` (deprecated: use `intent` instead) | `true` or `false` | No. If `intent` is explicitly `start_call` then defaults to `true`. Otherwise defaults to `false` | No, defaults to `false` | Skips the lobby to join a call directly, can be combined with preload in widget. When `true` the audio and video inputs will be muted by default. (This means there currently is no way to start without muted video if one wants to skip the lobby. Also not in widget mode.) | -| `theme` | One of: `light`, `dark`, `light-high-contrast`, `dark-high-contrast` | No, defaults to `dark` | No, defaults to `dark` | UI theme to use. | -| `userId` | [Matrix User Identifier](https://spec.matrix.org/v1.12/appendices/#user-identifiers) | Yes | Not applicable | The Matrix user ID. | -| `viaServers` | Comma separated list of [Matrix Server Names](https://spec.matrix.org/v1.12/appendices/#server-name) | Not applicable | No | Homeserver for joining a room, non-empty value required for rooms not on the user’s default homeserver. | -| `widgetId` | [MSC2774](https://github.com/matrix-org/matrix-spec-proposals/pull/2774) format widget ID | Yes | Not applicable | The id used by the widget. The presence of this parameter implies that element call will not connect to a homeserver directly and instead tries to establish postMessage communication via the `parentUrl`. | +### Common Parameters + +These parameters are relevant to both [widget](./embedded-standalone.md) and [standalone](./embedded-standalone.md) modes: + +| Name | Values | Required for widget | Required for SPA | Description | +| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `allowIceFallback` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Allows use of fallback STUN servers for ICE if the user's homeserver doesn’t provide any. | +| `analyticsID` (deprecated: use `posthogUserId` instead) | Posthog analytics ID | No | No | Available only with user's consent for sharing telemetry in Element Web. | +| `appPrompt` | `true` or `false` | No, defaults to `true` | No, defaults to `true` | Prompts the user to launch the native mobile app upon entering a room, applicable only on Android and iOS, and must be enabled in config. | +| `confineToRoom` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Keeps the user confined to the current call/room. | +| `displayName` | | No | No | Display name used for auto-registration. | +| `enableE2EE` (deprecated) | `true` or `false` | No, defaults to `true` | No, defaults to `true` | Legacy flag to enable end-to-end encryption, not used in the `livekit` branch. | +| `fontScale` | A decimal number such as `0.9` | No, defaults to `1.0` | No, defaults to `1.0` | Factor by which to scale the interface's font size. | +| `fonts` | | No | No | Defines the font(s) used by the interface. Multiple font parameters can be specified: `?font=font-one&font=font-two...`. | +| `header` | `none`, `standard` or `app_bar` | No, defaults to `standard` | No, defaults to `standard` | The style of headers to show. `standard` is the default arrangement, `none` hides the header entirely, and `app_bar` produces a header with a back button like you might see in mobile apps. The callback for the back button is `window.controls.onBackButtonPressed`. | +| `hideScreensharing` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Hides the screen-sharing button. | +| `homeserver` | | Not applicable | No | Homeserver for registering a new (guest) user, configures non-default guest user server when creating a spa link. | +| `intent` | `start_call` or `join_existing` | No, defaults to `start_call` | No, defaults to `start_call` | The intent of the user with respect to the call. e.g. if they clicked a Start Call button, this would be `start_call`. If it was a Join Call button, it would be `join_existing`. | +| `lang` | [BCP 47](https://www.rfc-editor.org/info/bcp47) code | No | No | The language the app should use. | +| `password` | | No | No | E2EE password when using a shared secret. (For individual sender keys in embedded mode this is not required.) | +| `perParticipantE2EE` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Enables per participant encryption with Keys exchanged over encrypted matrix room messages. | +| `controlledAudioDevices` | `true` or `false` | No, defaults to `false` | No, defaults to `false` | Whether the [global JS controls for audio devices](./controls.md#audio-devices) should be enabled, allowing the list of audio devices to be controlled by the app hosting Element Call. | +| `roomId` | [Matrix Room ID](https://spec.matrix.org/v1.12/appendices/#room-ids) | Yes | No | Anything about what room we're pointed to should be from useRoomIdentifier which parses the path and resolves alias with respect to the default server name, however roomId is an exception as we need the room ID in embedded widget mode, and not the room alias (or even the via params because we are not trying to join it). This is also not validated, where it is in `useRoomIdentifier()`. | +| `showControls` | `true` or `false` | No, defaults to `true` | No, defaults to `true` | Displays controls like mute, screen-share, invite, and hangup buttons during a call. | +| `skipLobby` (deprecated: use `intent` instead) | `true` or `false` | No. If `intent` is explicitly `start_call` then defaults to `true`. Otherwise defaults to `false` | No, defaults to `false` | Skips the lobby to join a call directly, can be combined with preload in widget. When `true` the audio and video inputs will be muted by default. (This means there currently is no way to start without muted video if one wants to skip the lobby. Also not in widget mode.) | +| `theme` | One of: `light`, `dark`, `light-high-contrast`, `dark-high-contrast` | No, defaults to `dark` | No, defaults to `dark` | UI theme to use. | +| `viaServers` | Comma separated list of [Matrix Server Names](https://spec.matrix.org/v1.12/appendices/#server-name) | Not applicable | No | Homeserver for joining a room, non-empty value required for rooms not on the user’s default homeserver. | +| `sendNotificationType` | `ring` or `notification` | No | No | Will send a "ring" or "notification" `m.rtc.notification` event if the user is the first one in the call. | + +### Widget-only parameters + +These parameters are only supported in [widget](./embedded-standalone.md) mode. + +| Name | Values | Required | Description | +| --------------- | ----------------------------------------------------------------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `baseUrl` | | Yes | The base URL of the homeserver to use for media lookups. | +| `deviceId` | Matrix device ID | Yes | The Matrix device ID for the widget host. | +| `parentUrl` | | Yes | The url used to send widget action postMessages. This should be the domain of the client or the webview the widget is hosted in. (in case the widget is not in an Iframe but in a dedicated webview we send the postMessages same WebView the widget lives in. Filtering is done in the widget so it ignores the messages it receives from itself) | +| `posthogUserId` | Posthog user identifier | No | This replaces the `analyticsID` parameter | +| `preload` | `true` or `false` | No, defaults to `false` | Pauses app before joining a call until an `io.element.join` widget action is seen, allowing preloading. | +| `returnToLobby` | `true` or `false` | No, defaults to `false` | Displays the lobby in widget mode after leaving a call; shows a blank page if set to `false`. Useful for video rooms. | +| `userId` | [Matrix User Identifier](https://spec.matrix.org/v1.12/appendices/#user-identifiers) | Yes | The Matrix user ID. | +| `widgetId` | [MSC2774](https://github.com/matrix-org/matrix-spec-proposals/pull/2774) format widget ID | Yes | The id used by the widget. The presence of this parameter implies that element call will not connect to a homeserver directly and instead tries to establish postMessage communication via the `parentUrl`. | + +### Embedded-only parameters + +These parameters are only supported in the [embedded](./embedded-standalone.md) package of Element Call and will be ignored in the [full](./embedded-standalone.md) package. + +| Name | Values | Required | Description | +| -------------------- | -------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `posthogApiHost` | Posthog server URL | No | e.g. `https://posthog-element-call.element.io`. Only supported in embedded package. In full package the value from config is used. | +| `posthogApiKey` | Posthog project API key | No | Only supported in embedded package. In full package the value from config is used. | +| `rageshakeSubmitUrl` | Rageshake server URL endpoint | No | e.g. `https://element.io/bugreports/submit`. In full package the value from config is used. | +| `sentryDsn` | Sentry [DSN](https://docs.sentry.io/concepts/key-terms/dsn-explainer/) | No | In full package the value from config is used. | +| `sentryEnvironment` | Sentry [environment](https://docs.sentry.io/concepts/key-terms/key-terms/) | No | In full package the value from config is used. | diff --git a/embedded/android/.gitattributes b/embedded/android/.gitattributes new file mode 100644 index 00000000..afd59d8f --- /dev/null +++ b/embedded/android/.gitattributes @@ -0,0 +1,8 @@ +# +# https://help.github.com/articles/dealing-with-line-endings/ +# +# Linux start script should use lf +/gradlew text eol=lf + +# These are Windows script files and should use crlf +*.bat text eol=crlf diff --git a/embedded/android/.gitignore b/embedded/android/.gitignore new file mode 100644 index 00000000..701a2d8d --- /dev/null +++ b/embedded/android/.gitignore @@ -0,0 +1,11 @@ +# Ignore Gradle project-specific cache directory +.gradle + +# Ignore Gradle build output directory +build + +# Ignore local gradle properties file +local.properties + +# Also ignore the generated assets for Android +lib/src/main/assets diff --git a/embedded/android/gradle.properties b/embedded/android/gradle.properties new file mode 100644 index 00000000..76dc27bd --- /dev/null +++ b/embedded/android/gradle.properties @@ -0,0 +1,5 @@ +# This file was generated by the Gradle 'init' task. +# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties + +org.gradle.parallel=true +org.gradle.caching=true diff --git a/embedded/android/gradle/libs.versions.toml b/embedded/android/gradle/libs.versions.toml new file mode 100644 index 00000000..9982f14d --- /dev/null +++ b/embedded/android/gradle/libs.versions.toml @@ -0,0 +1,12 @@ +# This file was generated by the Gradle 'init' task. +# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format + +[versions] +android_gradle_plugin = "8.11.1" + +[libraries] +android_gradle_plugin = { module = "com.android.tools.build:gradle", version.ref = "android_gradle_plugin" } + +[plugins] +android_library = { id = "com.android.library", version.ref = "android_gradle_plugin" } +maven_publish = { id = "com.vanniktech.maven.publish", version = "0.34.0" } \ No newline at end of file diff --git a/embedded/android/gradle/wrapper/gradle-wrapper.jar b/embedded/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 00000000..1b33c55b Binary files /dev/null and b/embedded/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/embedded/android/gradle/wrapper/gradle-wrapper.properties b/embedded/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..7705927e --- /dev/null +++ b/embedded/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/embedded/android/gradlew b/embedded/android/gradlew new file mode 100755 index 00000000..23d15a93 --- /dev/null +++ b/embedded/android/gradlew @@ -0,0 +1,251 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# 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 +# +# https://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. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH="\\\"\\\"" + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/embedded/android/gradlew.bat b/embedded/android/gradlew.bat new file mode 100644 index 00000000..db3a6ac2 --- /dev/null +++ b/embedded/android/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH= + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/embedded/android/lib/build.gradle.kts b/embedded/android/lib/build.gradle.kts new file mode 100644 index 00000000..0a1863fd --- /dev/null +++ b/embedded/android/lib/build.gradle.kts @@ -0,0 +1,65 @@ +/* + * Copyright 2025 New Vector Ltd. + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial + * Please see LICENSE files in the repository root for full details. + */ + +plugins { + alias(libs.plugins.android.library) + alias(libs.plugins.maven.publish) +} + +repositories { + mavenCentral() + google() +} + +android { + namespace = "io.element.android" + + defaultConfig { + compileSdk = 35 + minSdk = 24 + } +} + +mavenPublishing { + publishToMavenCentral(automaticRelease = true) + + signAllPublications() + + val version = System.getenv("EC_VERSION") + coordinates("io.element.android", "element-call-embedded", version) + pom { + name = "Embedded Element Call for Android" + description.set("Android AAR package containing an embedded build of the Element Call widget.") + inceptionYear.set("2025") + url.set("https://github.com/element-hq/element-call/") + licenses { + license { + name.set("GNU Affero General Public License (AGPL) version 3.0") + url.set("https://www.gnu.org/licenses/agpl-3.0.txt") + distribution.set("https://www.gnu.org/licenses/agpl-3.0.txt") + } + license { + name.set("Element Commercial License") + url.set("https://raw.githubusercontent.com/element-hq/element-call/refs/heads/livekit/LICENSE-COMMERCIAL") + distribution.set("https://raw.githubusercontent.com/element-hq/element-call/refs/heads/livekit/LICENSE-COMMERCIAL") + } + } + developers { + developer { + id.set("matrixdev") + name.set("matrixdev") + url.set("https://github.com/element-hq/") + email.set("android@element.io") + } + } + scm { + url.set("https://github.com/element-hq/element-call/") + connection.set("scm:git:git://github.com/element-hq/element-call.git") + developerConnection.set("scm:git:ssh://git@github.com/element-hq/element-call.git") + } + } +} diff --git a/embedded/android/lib/src/main/kotlin/io/element/android/call/embedded/Version.kt b/embedded/android/lib/src/main/kotlin/io/element/android/call/embedded/Version.kt new file mode 100644 index 00000000..ab8bf8de --- /dev/null +++ b/embedded/android/lib/src/main/kotlin/io/element/android/call/embedded/Version.kt @@ -0,0 +1,8 @@ +/* + * Copyright 2025 New Vector Ltd. + * + * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial + * Please see LICENSE files in the repository root for full details. + */ + +const val VERSION = "0.0.0" diff --git a/embedded/android/publish_android_package.sh b/embedded/android/publish_android_package.sh new file mode 100755 index 00000000..8c310c9b --- /dev/null +++ b/embedded/android/publish_android_package.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash + +# This script is used for local build and testing of the AAR packaging +# In CI we call gradlew directly + +EC_ASSETS_FOLDER=lib/src/main/assets/element-call +CURRENT_DIR=$( dirname -- "${BASH_SOURCE[0]}" ) + +pushd $CURRENT_DIR > /dev/null + +function build_assets() { + echo "Generating Element Call assets..." + pushd ../.. > /dev/null + yarn build + popd > /dev/null +} + +function copy_assets() { + if [ ! -d $EC_ASSETS_FOLDER ]; then + echo "Creating $EC_ASSETS_FOLDER..." + mkdir -p $EC_ASSETS_FOLDER + fi + + echo "Copying generated Element Call assets to the Android project..." + cp -R ../../dist/* $EC_ASSETS_FOLDER +} + +getopts :sh opt +case $opt in + s) + SKIP=1 + ;; + h) + echo "-s: will skip building the assets and just publish the library." + exit 0 + ;; +esac + +if [ ! $SKIP ]; then + read -p "Do you want to re-build the assets (y/n, defaults to no)? " -n 1 -r + echo "" + if [[ $REPLY =~ ^[Yy]$ ]]; then + build_assets + else + echo "Using existing assets from ../../dist" + fi + copy_assets +elif [ ! -d $EC_ASSETS_FOLDER ]; then + echo "Assets folder at $EC_ASSETS_FOLDER not found. Either build and copy the assets manually or remove the -s flag." + exit 1 +fi + +# Exit with an error if the gradle publishing fails +set -e +echo "Publishing the Android project" + +./gradlew publishAndReleaseToMavenCentral --no-daemon + +popd > /dev/null \ No newline at end of file diff --git a/embedded/android/settings.gradle b/embedded/android/settings.gradle new file mode 100644 index 00000000..3a65ae93 --- /dev/null +++ b/embedded/android/settings.gradle @@ -0,0 +1,18 @@ +/* + * This file was generated by the Gradle 'init' task. + * + * The settings file is used to specify which projects to include in your build. + * For more detailed information on multi-project builds, please refer to https://docs.gradle.org/8.6/userguide/multi_project_builds.html in the Gradle documentation. + * This project uses @Incubating APIs which are subject to change. + */ + + pluginManagement { + repositories { + gradlePluginPortal() + google() + mavenCentral() + } +} + +rootProject.name = "element-call" +include("lib") diff --git a/embedded/ios/.gitignore b/embedded/ios/.gitignore new file mode 100644 index 00000000..24e5b0a1 --- /dev/null +++ b/embedded/ios/.gitignore @@ -0,0 +1 @@ +.build diff --git a/embedded/ios/LICENSE-AGPL-3.0 b/embedded/ios/LICENSE-AGPL-3.0 new file mode 100644 index 00000000..be3f7b28 --- /dev/null +++ b/embedded/ios/LICENSE-AGPL-3.0 @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/embedded/ios/LICENSE-COMMMERCIAL b/embedded/ios/LICENSE-COMMMERCIAL new file mode 100644 index 00000000..173e03e0 --- /dev/null +++ b/embedded/ios/LICENSE-COMMMERCIAL @@ -0,0 +1,6 @@ +Licensees holding a valid commercial license with Element may use this +software in accordance with the terms contained in a written agreement +between you and Element. + +To purchase a commercial license please contact our sales team at +licensing@element.io diff --git a/embedded/ios/Package.swift b/embedded/ios/Package.swift new file mode 100644 index 00000000..08b562a1 --- /dev/null +++ b/embedded/ios/Package.swift @@ -0,0 +1,19 @@ +// swift-tools-version: 6.0 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "EmbeddedElementCall", + platforms: [.iOS(.v17)], + products: [ + .library( + name: "EmbeddedElementCall", + targets: ["EmbeddedElementCall"]), + ], + targets: [ + .target( + name: "EmbeddedElementCall", + resources: [.copy("../dist")]), + ] +) diff --git a/embedded/ios/README.md b/embedded/ios/README.md new file mode 100644 index 00000000..ba7473fd --- /dev/null +++ b/embedded/ios/README.md @@ -0,0 +1,14 @@ +# Embedded Element Call for Swift + +SwiftPM package containing an embedded build of the Element Call widget. + +## Copyright & License + +Copyright 2021-2025 New Vector Ltd + +This software is dual-licensed by New Vector Ltd (Element). It can be used either: + +(1) for free under the terms of the GNU Affero General Public License (as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version); OR + +(2) under the terms of a paid-for Element Commercial License agreement between you and Element (the terms of which may vary depending on what you and Element have agreed to). +Unless required by applicable law or agreed to in writing, software distributed under the Licenses is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licenses for the specific language governing permissions and limitations under the Licenses. diff --git a/embedded/ios/Sources/EmbeddedElementCall/EmbeddedElementCall.swift b/embedded/ios/Sources/EmbeddedElementCall/EmbeddedElementCall.swift new file mode 100644 index 00000000..80e1022d --- /dev/null +++ b/embedded/ios/Sources/EmbeddedElementCall/EmbeddedElementCall.swift @@ -0,0 +1,14 @@ +// +// Copyright 2025 New Vector Ltd. +// +// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +// Please see LICENSE files in the repository root for full details. +// + +import Foundation + +public let appURL = Bundle.module.url(forResource: "index", withExtension: "html", subdirectory: "dist") + +public let bundle = Bundle.module + +public let version = "0.0.0" diff --git a/embedded/web/LICENSE-AGPL-3.0 b/embedded/web/LICENSE-AGPL-3.0 new file mode 100644 index 00000000..be3f7b28 --- /dev/null +++ b/embedded/web/LICENSE-AGPL-3.0 @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/embedded/web/LICENSE-COMMERCIAL b/embedded/web/LICENSE-COMMERCIAL new file mode 100644 index 00000000..173e03e0 --- /dev/null +++ b/embedded/web/LICENSE-COMMERCIAL @@ -0,0 +1,6 @@ +Licensees holding a valid commercial license with Element may use this +software in accordance with the terms contained in a written agreement +between you and Element. + +To purchase a commercial license please contact our sales team at +licensing@element.io diff --git a/embedded/web/README.md b/embedded/web/README.md new file mode 100644 index 00000000..d9b89c06 --- /dev/null +++ b/embedded/web/README.md @@ -0,0 +1,14 @@ +# Embedded Element Call for Web + +NPM package containing an embedded build of the Element Call widget. + +## Copyright & License + +Copyright 2021-2025 New Vector Ltd + +This software is dual-licensed by New Vector Ltd (Element). It can be used either: + +(1) for free under the terms of the GNU Affero General Public License (as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version); OR + +(2) under the terms of a paid-for Element Commercial License agreement between you and Element (the terms of which may vary depending on what you and Element have agreed to). +Unless required by applicable law or agreed to in writing, software distributed under the Licenses is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licenses for the specific language governing permissions and limitations under the Licenses. diff --git a/embedded/web/package.json b/embedded/web/package.json new file mode 100644 index 00000000..5020399d --- /dev/null +++ b/embedded/web/package.json @@ -0,0 +1,14 @@ +{ + "name": "@element-hq/element-call-embedded", + "version": "0.0.0", + "files": [ + "README.md", + "LICENSE-AGPL-3.0", + "LICENSE-COMMERCIAL", + "dist" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/element-hq/element-call.git" + } +} diff --git a/index.html b/index.html new file mode 100644 index 00000000..f17c73c0 --- /dev/null +++ b/index.html @@ -0,0 +1,45 @@ + + + + + + <% if (packageType === "full") { %> + + + <% } %> + + + <%- brand %> + + + <% if (packageType === "full") { %> + + + + + + + + + + + + <% } %> + + + + +
+ + diff --git a/knip.ts b/knip.ts index becafc2e..2381356c 100644 --- a/knip.ts +++ b/knip.ts @@ -1,6 +1,9 @@ import { KnipConfig } from "knip"; export default { + vite: { + config: ["vite.config.js", "vite-embedded.config.js"], + }, entry: ["src/main.tsx", "i18next-parser.config.ts"], ignoreBinaries: [ // This is deprecated, so Knip doesn't actually recognize it as a globally @@ -24,6 +27,10 @@ export default { // then Knip will flag it as a false positive // https://github.com/webpro-nl/knip/issues/766 "@vector-im/compound-web", + // We need this so that TypeScript is happy with @livekit/track-processors. + // This might be a bug in the LiveKit repo but for now we fix it on the + // Element Call side. + "@types/dom-mediacapture-transform", "matrix-widget-api", ], ignoreExportsUsedInFile: true, diff --git a/locales/bg/app.json b/locales/bg/app.json index eb9e5704..b8f8095f 100644 --- a/locales/bg/app.json +++ b/locales/bg/app.json @@ -4,7 +4,9 @@ }, "action": { "close": "Затвори", + "copy_link": "Копиране на връзката", "go": "Напред", + "invite": "Покана", "no": "Не", "register": "Регистрация", "remove": "Премахни", @@ -19,11 +21,9 @@ "common": { "audio": "Звук", "avatar": "Аватар", - "camera": "Камера", "display_name": "Име/псевдоним", "home": "Начало", "loading": "Зареждане…", - "microphone": "Микрофон", "password": "Парола", "profile": "Профил", "settings": "Настройки", @@ -61,8 +61,7 @@ "settings": { "developer_tab_title": "Разработчик", "feedback_tab_h4": "Изпрати обратна връзка", - "feedback_tab_send_logs_label": "Включи debug логове", - "speaker_device_selection_label": "Говорител" + "feedback_tab_send_logs_label": "Включи debug логове" }, "unauthenticated_view_body": "Все още не сте регистрирани? <2>Създайте акаунт", "unauthenticated_view_login_button": "Влезте в акаунта си", diff --git a/locales/cs/app.json b/locales/cs/app.json index b9793e1f..f988c336 100644 --- a/locales/cs/app.json +++ b/locales/cs/app.json @@ -4,44 +4,142 @@ }, "action": { "close": "Zavřít", - "go": "Pokračovat", + "copy_link": "Kopírovat odkaz", + "edit": "Upravit", + "go": "Přejít", + "invite": "Pozvat", + "lower_hand": "Snížení ruky", "no": "Ne", + "pick_reaction": "Vybrat reakci", + "raise_hand": "Zvednutí ruky", "register": "Registrace", "remove": "Odstranit", + "show_less": "Zobrazit méně", + "show_more": "Zobrazit více", "sign_in": "Přihlásit se", - "sign_out": "Odhlásit se" + "sign_out": "Odhlásit se", + "submit": "Odeslat", + "upload_file": "Nahrát soubor" + }, + "analytics_notice": "Účastí v této beta verzi souhlasíte se shromažďováním anonymních údajů, které používáme ke zlepšování produktu. Více informací o tom, které údaje sledujeme, najdete v našich <2>Zásadách ochrany osobních údajů a <6>Zásadách používání souborů cookie.", + "app_selection_modal": { + "continue_in_browser": "Pokračovat v prohlížeči", + "open_in_app": "Otevřít v aplikaci", + "text": "Jste připraveni se připojit?", + "title": "Vybrat aplikaci" }, "call_ended_view": { "create_account_button": "Vytvořit účet", "create_account_prompt": "<0>Proč neskončit nastavením hesla, abyste mohli účet použít znovu?<1>Budete si moci nechat své jméno a nastavit si avatar pro budoucí hovory ", - "not_now_button": "Teď ne, vrátit se na domovskou obrazovku" + "feedback_done": "<0>Děkujeme za vaši zpětnou vazbu! ", + "feedback_prompt": "<0>Rádi si vyslechneme vaši zpětnou vazbu, abychom mohli vaše prostředí vylepšit. ", + "headline": "{{displayName}}, váš hovor skončil.", + "not_now_button": "Teď ne, vrátit se na domovskou obrazovku", + "reconnect_button": "Znovu připojit", + "survey_prompt": "Jak to probíhalo?" }, + "call_name": "Název hovoru", "common": { - "camera": "Kamera", + "analytics": "Analytika", + "audio": "Zvuk", + "avatar": "Avatar", + "back": "Zpět", "display_name": "Zobrazované jméno", + "encrypted": "Šifrováno", "home": "Domov", "loading": "Načítání…", - "microphone": "Mikrofon", + "next": "Další", + "options": "Možnosti", "password": "Heslo", + "preferences": "Předvolby", "profile": "Profil", + "reaction": "Reakce", + "reactions": "Reakce", "settings": "Nastavení", - "username": "Uživatelské jméno" + "unencrypted": "Nešifrováno", + "username": "Uživatelské jméno", + "video": "Video" }, - "full_screen_view_description": "<0>Odeslání ladících záznamů nám pomůže diagnostikovat problém.", - "full_screen_view_h1": "<0>Oops, něco se pokazilo.", + "developer_mode": { + "always_show_iphone_earpiece": "Zobrazit možnost sluchátek pro iPhone na všech platformách", + "crypto_version": "Kryptografická verze: {{version}}", + "debug_tile_layout_label": "Ladění rozložení dlaždic", + "device_id": "ID zařízení: {{id}}", + "duplicate_tiles_label": "Počet dalších kopií dlaždic na účastníka", + "environment_variables": "Proměnné prostředí", + "hostname": "Název hostitele: {{hostname}}", + "livekit_server_info": "Informace o serveru LiveKit", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix ID: {{id}}", + "mute_all_audio": "Ztlumit všechny zvuky (účastníci, reakce, zvuky připojení)", + "show_connection_stats": "Zobrazit statistiky připojení", + "show_non_member_tiles": "Zobrazit dlaždice pro nečlenská média", + "url_params": "Parametry URL", + "use_new_membership_manager": "Použijte novou implementaci volání MembershipManager", + "use_to_device_key_transport": "Použít přenos klíčů do zařízení. Tím se vrátíte k přenosu klíčů do místnosti, když jiný účastník hovoru pošle klíč místnosti" + }, + "disconnected_banner": "Připojení k serveru bylo ztraceno.", + "error": { + "call_is_not_supported": "Volání není podporováno", + "call_not_found": "Volání nebylo nalezeno", + "call_not_found_description": "<0>Zdá se, že tento odkaz nepatří k žádnému existujícímu volání. Zkontrolujte, zda máte správný odkaz, nebo <1>vytvořte nový.", + "connection_lost": "Spojení ztraceno", + "connection_lost_description": "Hovor byl přerušen.", + "e2ee_unsupported": "Nekompatibilní prohlížeč", + "e2ee_unsupported_description": "Váš webový prohlížeč nepodporuje šifrované hovory. Mezi podporované prohlížeče patří Chrome, Safari a Firefox 117+.", + "generic": "Něco se pokazilo.", + "generic_description": "Odeslání protokolů ladění nám pomůže vystopovat problém.", + "insufficient_capacity": "Nedostatečná kapacita", + "insufficient_capacity_description": "Server dosáhl své maximální kapacity a v tuto chvíli se nemůžete připojit k hovoru. Zkuste to později nebo se obraťte na správce serveru, pokud problém přetrvává.", + "matrix_rtc_focus_missing": "Server není nakonfigurován pro práci s {{brand}}. Obraťte se na správce serveru (Doména: {{domain}}, Kód chyby: {{ errorCode }}).", + "open_elsewhere": "Otevřeno na jiné kartě", + "open_elsewhere_description": "{{brand}} byl otevřen v jiné záložce. Pokud to nezní správně, zkuste stránku znovu načíst.", + "unexpected_ec_error": "Došlo k neočekávané chybě (<0>Error Code: <1>{{ errorCode }}). Obraťte se prosím na správce serveru." + }, + "group_call_loader": { + "banned_body": "Byl jste vykázán z místnosti.", + "banned_heading": "Zabanován", + "call_ended_body": "Byl jste vyřazen z hovoru.", + "call_ended_heading": "Hovor ukončen", + "knock_reject_body": "Vaše žádost o připojení byla zamítnuta.", + "knock_reject_heading": "Přístup odepřen", + "reason": "Důvod" + }, + "hangup_button_label": "Ukončit hovor", "header_label": "Domov Element Call", + "header_participants_label": "Účastníci", + "invite_modal": { + "link_copied_toast": "Odkaz zkopírován do schránky", + "title": "Pozvat na tento hovor" + }, "join_existing_call_modal": { "join_button": "Ano, připojit se", "text": "Tento hovor již existuje, chcete se připojit?", "title": "Připojit se k existujícimu hovoru?" }, + "layout_grid_label": "Mřížka", "layout_spotlight_label": "Soustředěný mód", "lobby": { - "join_button": "Připojit se k hovoru" + "ask_to_join": "Žádost o připojení k hovoru", + "join_as_guest": "Připojte se jako host", + "join_button": "Připojit se k hovoru", + "leave_button": "Zpět na poslední", + "waiting_for_invite": "Žádost odeslána! Čekáme na povolení k připojení..." }, + "log_in": "Přihlášení", "logging_in": "Přihlašování se…", "login_auth_links": "<0>Vytvořit účet Or <2>Jako host", + "login_auth_links_prompt": "Ještě nejste zaregistrováni?", + "login_subheading": "Chcete-li pokračovat na Element", "login_title": "Přihlášení", + "microphone_off": "Mikrofon vypnutý", + "microphone_on": "Mikrofon zapnutý", + "mute_microphone_button_label": "Ztlumit mikrofon", + "participant_count_one": "{{count, number}}", + "participant_count_few": "{{count, number}}", + "participant_count_other": "{{count, number}}", + "qr_code": "QR kód", + "rageshake_button_error_caption": "Znovu zkusit odeslat protokoly", "rageshake_request_modal": { "body": "Jiný uživatel v tomto hovoru má problémy. Abychom mohli diagnostikovat problém, rádi bychom shromáždili protokoly ladění.", "title": "Žádost o protokoly ladění" @@ -49,23 +147,83 @@ "rageshake_send_logs": "Poslat ladící záznam", "rageshake_sending": "Posílání…", "rageshake_sending_logs": "Posílání ladícího záznamu…", + "rageshake_sent": "Díky!", "recaptcha_dismissed": "Recaptcha byla zamítnuta", "recaptcha_not_loaded": "Recaptcha se nenačetla", + "recaptcha_ssla_caption": "Tato stránka je chráněna ReCAPTCHA a platí zde <2>Ochrana osobních údajů a <6>Podmínky služby od Google.<9>Kliknutím na \"Registrovat\" souhlasíte s naší <12>Licenční smlouvou na software a služby (SSLA)", "register": { "passwords_must_match": "Hesla se musí shodovat", "registering": "Registrování…" }, "register_auth_links": "<0>Už máte účet?<1><0>Přihlásit se Or <2>Jako host", "register_confirm_password_label": "Potvrdit heslo", + "register_heading": "Vytvořte si účet", "return_home_button": "Vrátit se na domácí obrazovku", + "room_auth_view_continue_button": "Pokračovat", + "room_auth_view_ssla_caption": "Kliknutím na „Připojit se k hovoru nyní“ souhlasíte s naší <2>Licenční smlouvou o softwaru a službách (SSLA) ", "screenshare_button_label": "Sdílet obrazovku", "settings": { + "audio_tab": { + "effect_volume_description": "Upravit hlasitost přehrávání reakcí a efektů zvednutých rukou.", + "effect_volume_label": "Hlasitost zvukového efektu" + }, + "background_blur_header": "Pozadí", + "background_blur_label": "Rozostřit pozadí videa", + "blur_not_supported_by_browser": "(Toto zařízení nepodporuje rozostření pozadí.)", "developer_tab_title": "Vývojář", + "devices": { + "camera": "Fotoaparát", + "camera_numbered": "Fotoaparát {{n}}", + "change_device_button": "Změnit zvukové zařízení", + "default": "Výchozí", + "default_named": "Výchozí <2> ({{name}}) ", + "microphone": "Mikrofon", + "microphone_numbered": "Mikrofon {{n}}", + "speaker": "Reproduktor", + "speaker_numbered": "Reproduktor {{n}}" + }, + "feedback_tab_body": "Pokud se potýkáte s problémy nebo byste nám jen chtěli poskytnout zpětnou vazbu, pošlete nám prosím krátký popis níže.", + "feedback_tab_description_label": "Vaše zpětná vazba", "feedback_tab_h4": "Dát feedback", "feedback_tab_send_logs_label": "Zahrnout ladící záznamy", - "speaker_device_selection_label": "Reproduktor" + "feedback_tab_thank_you": "Děkujeme, obdrželi jsme vaši zpětnou vazbu!", + "feedback_tab_title": "Zpětná vazba", + "opt_in_description": "<0><1>Souhlas můžete odvolat zrušením zaškrtnutí tohoto políčka. Pokud jste právě v hovoru, toto nastavení se projeví po jeho skončení.", + "preferences_tab": { + "developer_mode_label": "Vývojářský režim", + "developer_mode_label_description": "Povolte vývojářský režim a zobrazte kartu nastavení vývojáře.", + "introduction": "Zde můžete nakonfigurovat další možnosti pro lepší zážitek.", + "reactions_play_sound_description": "Přehrát zvukový efekt, když někdo odešle reakci do hovoru.", + "reactions_play_sound_label": "Přehrát reakční zvuky", + "reactions_show_description": "Zobrazit animaci, když někdo pošle reakci.", + "reactions_show_label": "Zobrazit reakce", + "show_hand_raised_timer_description": "Zobrazit časovač, když účastník zvedne ruku", + "show_hand_raised_timer_label": "Zobrazit dobu trvání zvednutí ruky" + } }, + "star_rating_input_label_one": "{{count}} hvězdička", + "star_rating_input_label_few": "{{count}} hvězdičky", + "star_rating_input_label_other": "{{count}} hvězdiček", + "start_new_call": "Zahájit nový hovor", + "start_video_button_label": "Spustit video", + "stop_screenshare_button_label": "Sdílení obrazovky", + "stop_video_button_label": "Zastavit video", + "submitting": "Odeslání...", + "switch_camera": "Přepnout kameru", "unauthenticated_view_body": "Nejste registrovaní? <2>Vytvořit účet", "unauthenticated_view_login_button": "Přihlásit se ke svému účtu", - "version": "Verze: {{version}}" + "unauthenticated_view_ssla_caption": "Kliknutím na tlačítko \"Přejít\" souhlasíte s naší <2>Licenční smlouvou na software a služby (SSLA)", + "unmute_microphone_button_label": "Zrušit ztlumení mikrofonu", + "version": "{{productName}}verze: {{version}}", + "video_tile": { + "always_show": "Vždy zobrazit", + "camera_starting": "Načítání videa...", + "change_fit_contain": "Přizpůsobit rámu", + "collapse": "Sbalit", + "expand": "Rozbalit", + "mute_for_me": "Pro mě ztlumit", + "muted_for_me": "Pro mě ztlumené", + "volume": "Hlasitost", + "waiting_for_media": "Čekání na média..." + } } diff --git a/locales/da/app.json b/locales/da/app.json new file mode 100644 index 00000000..5142ba08 --- /dev/null +++ b/locales/da/app.json @@ -0,0 +1,228 @@ +{ + "a11y": { + "user_menu": "Brugermenu" + }, + "action": { + "close": "Luk", + "copy_link": "Kopiér link", + "edit": "Rediger", + "go": "Gå", + "invite": "Invitér", + "lower_hand": "Sænk hånd", + "no": "Nej", + "pick_reaction": "Vælg reaktion", + "raise_hand": "Ræk hånden op", + "register": "Registrér", + "remove": "Fjern", + "show_less": "Vis mindre", + "show_more": "Vis mere", + "sign_in": "Log ind", + "sign_out": "Log ud", + "submit": "Indsend", + "upload_file": "Upload fil" + }, + "analytics_notice": "Ved at deltage i denne beta giver du samtykke til indsamling af anonyme data, som vi bruger til at forbedre produktet. Du kan finde flere oplysninger om, hvilke data vi sporer, i vores <2>fortrolighedspolitik og vores <6>cookiepolitik.", + "app_selection_modal": { + "continue_in_browser": "Fortsæt i browseren", + "open_in_app": "Åbn i appen", + "text": "Klar til at deltage?", + "title": "Vælg app" + }, + "call_ended_view": { + "create_account_button": "Opret konto", + "create_account_prompt": "<0>Hvorfor ikke afslutte med at oprette en adgangskode for at beholde din konto? <1>Du kan beholde dit navn og indstille en avatar til brug ved fremtidige opkald ", + "feedback_done": "<0>Tak for din feedback! ", + "feedback_prompt": "<0>Vi vil meget gerne høre din feedback, så vi kan forbedre din oplevelse.", + "headline": "{{displayName}}, dit opkald er afsluttet.", + "not_now_button": "Ikke nu, vend tilbage til startskærmen", + "reconnect_button": "Tilslut igen", + "survey_prompt": "Hvordan gik det?" + }, + "call_name": "Navn på opkald", + "common": { + "analytics": "Analyse-værktøj", + "audio": "Lyd", + "avatar": "Avatar", + "back": "Tilbage", + "display_name": "Vist navn", + "encrypted": "Krypteret", + "home": "Hjem", + "loading": "Indlæser...", + "next": "Næste", + "options": "Valgmuligheder", + "password": "Adgangskode", + "preferences": "Foretrukne", + "profile": "Profil", + "reaction": "Reaktion", + "reactions": "Reaktioner", + "settings": "Indstillinger", + "unencrypted": "Ikke krypteret", + "username": "Brugernavn", + "video": "Video" + }, + "developer_mode": { + "always_show_iphone_earpiece": "Vis mulighed for iPhone-høretelefon på alle platforme", + "crypto_version": "Krypto-version: {{version}}", + "debug_tile_layout_label": "Fejlfinding af fliselayout", + "device_id": "Enheds-id: {{id}}", + "duplicate_tiles_label": "Antal ekstra flisekopier pr. deltager", + "environment_variables": "Miljøvariabler", + "hostname": "Værtsnavn: {{hostname}}", + "livekit_server_info": "LiveKit Serverinfo", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix ID: {{id}}", + "mute_all_audio": "Slå al lyd fra (deltagere, reaktioner, deltagelseslyde)", + "show_connection_stats": "Vis forbindelsesstatistik", + "show_non_member_tiles": "Vis fliser for medier fra ikke-medlemmer", + "url_params": "URL-parametre", + "use_new_membership_manager": "Brug den nye implementering af opkaldet MembershipManager", + "use_to_device_key_transport": "Bruges til at transportere enhedsnøgler. Dette vil falde tilbage til transport af værelsesnøgler, når et andet opkaldsmedlem sender en rumnøgle" + }, + "disconnected_banner": "Forbindelsen til serveren er gået tabt.", + "error": { + "call_is_not_supported": "Opkald er ikke understøttet", + "call_not_found": "Opkald ikke fundet", + "call_not_found_description": "<0>Det link ser ikke ud til at høre til et eksisterende opkald. Tjek at du har det rigtige link, eller <2> opret et nyt.", + "connection_lost": "Forbindelsen gik tabt", + "connection_lost_description": "Du blev afbrudt fra opkaldet.", + "e2ee_unsupported": "Inkompatibel browser", + "e2ee_unsupported_description": "Din webbrowser understøtter ikke krypterede opkald. Understøttede browsere inkluderer Chrome, Safari og Firefox 117+.", + "generic": "Noget gik galt", + "generic_description": "Indsendelse af fejlfindingslogfiler hjælper os med at spore problemet.", + "insufficient_capacity": "Utilstrækkelig kapacitet", + "insufficient_capacity_description": "Serveren har nået sin maksimale kapacitet, og du kan ikke deltage i opkaldet på dette tidspunkt. Prøv igen senere, eller kontakt din serveradministrator, hvis problemet fortsætter.", + "matrix_rtc_focus_missing": "Serveren er ikke konfigureret til at arbejde med {{brand}}{{domain}}. Kontakt venligst din serveradministrator (domæne:{{domain}}, fejlkode: {{ errorCode }}).", + "open_elsewhere": "Åbnet i en anden fane", + "open_elsewhere_description": "{{brand}} er blevet åbnet i en anden fane. Hvis det ikke lyder rigtigt, kan du prøve at genindlæse siden.", + "unexpected_ec_error": "Der opstod en uventet fejl (<0>Fejlkode: <1> {{ errorCode }}). Kontakt venligst din serveradministrator." + }, + "group_call_loader": { + "banned_body": "Du er blevet spærret fra rummet.", + "banned_heading": "Spærret", + "call_ended_body": "Du er blevet fjernet fra opkaldet.", + "call_ended_heading": "Opkaldet afsluttet", + "knock_reject_body": "Din anmodning om at deltage blev afvist.", + "knock_reject_heading": "Adgang nægtet", + "reason": "Årsag: {{reason}}" + }, + "hangup_button_label": "Afslut opkald", + "header_label": "Element Ring hjem", + "header_participants_label": "Deltagere", + "invite_modal": { + "link_copied_toast": "Link kopieret til udklipsholder", + "title": "Inviter til dette opkald" + }, + "join_existing_call_modal": { + "join_button": "Ja, deltag i opkald", + "text": "Dette opkald findes allerede, vil du være med?", + "title": "Deltag i eksisterende opkald?" + }, + "layout_grid_label": "Gitter", + "layout_spotlight_label": "Spotlys", + "lobby": { + "ask_to_join": "Anmod om at deltage i opkaldet", + "join_as_guest": "Deltag som gæst", + "join_button": "Deltag i opkald", + "leave_button": "Tilbage til seneste", + "waiting_for_invite": "Anmodning sendt! Venter på tilladelse til at deltage..." + }, + "log_in": "Log ind", + "logging_in": "Logger ind...", + "login_auth_links": "<0>Opret en konto eller <2> få adgang som gæst ", + "login_auth_links_prompt": "Ikke registreret endnu?", + "login_subheading": "For at fortsætte til Element", + "login_title": "Login", + "microphone_off": "Mikrofon slukket", + "microphone_on": "Mikrofon tændt", + "mute_microphone_button_label": "Slå mikrofonen fra", + "participant_count_one": "{{count, number}}", + "participant_count_other": "{{count, number}}", + "qr_code": "QR-kode", + "rageshake_button_error_caption": "Prøv at sende logfiler igen", + "rageshake_request_modal": { + "body": "En anden bruger på dette opkald har et problem. For bedre at kunne diagnosticere sådanne problemer, vil vi gerne indsamle en fejlfindingslog.", + "title": "Anmodning om fejlfindingslogfil" + }, + "rageshake_send_logs": "Send fejlfindingslogfiler", + "rageshake_sending": "Sender...", + "rageshake_sending_logs": "Afsendelse af fejlfindingslogfiler...", + "rageshake_sent": "Tak!", + "recaptcha_dismissed": "Recaptcha afvist", + "recaptcha_not_loaded": "Recaptcha ikke indlæst", + "recaptcha_ssla_caption": "Dette websted er beskyttet af ReCAPTCHA og Googles <2>Privatlivspolitik og <6>Servicevilkår gælder.<9>Ved at klikke på \"Registrer\" accepterer du vores <12>Software og Services Licensaftale (SSLA)", + "register": { + "passwords_must_match": "Adgangskoderne skal være identiske", + "registering": "Registrering..." + }, + "register_auth_links": "<0>Har du allerede en konto? <1><0>Log ind eller <2> få adgang som gæst ", + "register_confirm_password_label": "Bekræft adgangskode", + "register_heading": "Opret din konto", + "return_home_button": "Vend tilbage til startskærmen", + "room_auth_view_continue_button": "Fortsæt", + "room_auth_view_ssla_caption": "Ved at klikke på „Deltag i opkald nu“ accepterer du vores <2> Software og Services Licensaftale (SSLA) ", + "screenshare_button_label": "Del din skærm", + "settings": { + "audio_tab": { + "effect_volume_description": "Juster den lydstyrke som reaktioner og håndsoprækninger afspilles med.", + "effect_volume_label": "Lydstyrke for lydeffekter" + }, + "background_blur_header": "Baggrund", + "background_blur_label": "Gør videoens baggrund sløret", + "blur_not_supported_by_browser": "(Baggrundssløring understøttes ikke af denne enhed.)", + "developer_tab_title": "Udvikler", + "devices": { + "camera": "Kamera", + "camera_numbered": "Kamera {{n}}", + "change_device_button": "Skift lydenhed", + "default": "Standard", + "default_named": "Standard <2>({{name}})", + "loudspeaker": "Højttaler", + "microphone": "Mikrofon", + "microphone_numbered": "Mikrofon {{n}}", + "speaker": "Højttaler", + "speaker_numbered": "Højttaler {{n}}" + }, + "feedback_tab_body": "Hvis du oplever problemer eller bare gerne vil give feedback, kan du sende os en kort beskrivelse herunder.", + "feedback_tab_description_label": "Din tilbagemelding", + "feedback_tab_h4": "Indsend feedback", + "feedback_tab_send_logs_label": "Medtag fejlfindingslogfiler", + "feedback_tab_thank_you": "Tak, vi har modtaget din feedback!", + "feedback_tab_title": "Feedback", + "opt_in_description": "<0><1>Du kan trække dit samtykke tilbage ved at fjerne markeringen i dette felt. Hvis du i øjeblikket er i gang med et opkald, træder denne indstilling i kraft ved afslutningen af opkaldet.", + "preferences_tab": { + "developer_mode_label": "Udviklertilstand", + "developer_mode_label_description": "Aktivér udviklertilstand og vis fanen udviklerindstillinger.", + "introduction": "Her kan du konfigurere ekstra muligheder for en forbedret oplevelse.", + "reactions_play_sound_description": "Afspil en lydeffekt, når nogen sender en reaktion i et opkald.", + "reactions_play_sound_label": "Afspil reaktionslyde", + "reactions_show_description": "Vis en animation, når nogen sender en reaktion.", + "reactions_show_label": "Vis reaktioner", + "show_hand_raised_timer_description": "Vis en timer, når en deltager rækker hånden", + "show_hand_raised_timer_label": "Vis varighed af håndsoprækning" + } + }, + "star_rating_input_label_one": "{{count}} stjerne", + "star_rating_input_label_other": "{{count}} stjerner", + "start_new_call": "Start nyt opkald", + "start_video_button_label": "Start video", + "stop_screenshare_button_label": "Skærmen bliver delt", + "stop_video_button_label": "Stop video", + "submitting": "Indsender...", + "switch_camera": "Skift kamera", + "unauthenticated_view_body": "Ikke registreret endnu? <2>Opret en konto ", + "unauthenticated_view_login_button": "Log ind på din konto", + "unauthenticated_view_ssla_caption": "Ved at klikke på \"Start\" accepterer du vores <2>Software og Services Licensaftale (SSLA)", + "unmute_microphone_button_label": "Slå mikrofonen til", + "version": "{{productName}} version: {{version}}", + "video_tile": { + "always_show": "Vis altid", + "camera_starting": "Indlæser video", + "change_fit_contain": "Tilpas til rammen", + "collapse": "Fold sammen", + "expand": "Udvid", + "mute_for_me": "Slå lyden fra for mig", + "muted_for_me": "Dæmpet for mig", + "volume": "Lydstyrke", + "waiting_for_media": "Venter på medier..." + } +} diff --git a/locales/de/app.json b/locales/de/app.json index 2c35b341..fd6d2017 100644 --- a/locales/de/app.json +++ b/locales/de/app.json @@ -28,11 +28,7 @@ "text": "Bereit, beizutreten?", "title": "App auswählen" }, - "application_opened_another_tab": "Diese Anwendung wurde in einem anderen Tab geöffnet.", - "browser_media_e2ee_unsupported": "Dein Webbrowser unterstützt keine Medien-Ende-zu-Ende-Verschlüsselung. Unterstützte Browser sind Chrome, Safari, Firefox >=117", - "browser_media_e2ee_unsupported_heading": "Inkompatibler Browser", "call_ended_view": { - "body": "Deine Verbindung wurde getrennt", "create_account_button": "Konto erstellen", "create_account_prompt": "<0>Warum vergibst du nicht abschließend ein Passwort, um dein Konto zu erhalten?<1>Du kannst deinen Namen behalten und ein Profilbild für zukünftige Anrufe festlegen.", "feedback_done": "<0>Danke für deine Rückmeldung!", @@ -48,13 +44,10 @@ "audio": "Audio", "avatar": "Profilbild", "back": "Zurück", - "camera": "Kamera", "display_name": "Anzeigename", "encrypted": "Verschlüsselt", - "error": "Fehler", "home": "Startseite", "loading": "Lade …", - "microphone": "Mikrofon", "next": "Weiter", "options": "Optionen", "password": "Passwort", @@ -63,31 +56,61 @@ "reaction": "Reaktion", "reactions": "Reaktionen", "settings": "Einstellungen", - "something_went_wrong": "Etwas ist schief gelaufen", "unencrypted": "Nicht verschlüsselt", "username": "Benutzername", "video": "Video" }, "developer_mode": { + "always_show_iphone_earpiece": "iPhone-Ohrhörer-Option auf allen Plattformen anzeigen", "crypto_version": "Krypto-Version: {{version}}", + "debug_tile_layout_label": "Kachel-Layout debuggen", "device_id": "Geräte-ID: {{id}}", "duplicate_tiles_label": "Anzahl zusätzlicher Kachelkopien pro Teilnehmer", + "environment_variables": "Umgebungsvariablen", "hostname": "Hostname: {{hostname}}", - "matrix_id": "Matrix-ID: {{id}}" + "livekit_server_info": "LiveKit-Server Informationen", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix-ID: {{id}}", + "mute_all_audio": "Stummschalten aller Audiosignale (Teilnehmer, Reaktionen, Beitrittsgeräusche)", + "show_connection_stats": "Verbindungsstatistiken anzeigen", + "show_non_member_tiles": "Kacheln für Nicht-Mitgliedermedien anzeigen", + "url_params": "URL-Parameter", + "use_new_membership_manager": "Neuen MembershipManager verwenden", + "use_to_device_key_transport": "To-Device media E2EE Schlüssel-Transport verwenden. Falls ein anderer Teilnehmer bereits den Raumschlüssel-Transport verwendet, wird automatisch auf Raumschlüssel-Transport zurückgegriffen." }, "disconnected_banner": "Die Verbindung zum Server wurde getrennt.", - "full_screen_view_description": "<0>Übermittelte Problemberichte helfen uns, Fehler zu beheben.", - "full_screen_view_h1": "<0>Hoppla, etwas ist schiefgelaufen.", + "error": { + "call_is_not_supported": "Anrufe werden nicht unterstützt", + "call_not_found": "Anruf nicht gefunden", + "call_not_found_description": "<0>Dieser Link scheint zu keinem bestehenden Anruf zu gehören. Es sollte geprüft werden, ob der Link korrekt ist, oder <2>ein neuer erstellt werden.", + "connection_lost": "Verbindung verloren", + "connection_lost_description": "Ihre Verbindung zum Anruf wurde unterbrochen.", + "e2ee_unsupported": "Inkompatibler Browser", + "e2ee_unsupported_description": "Ihr Webbrowser unterstützt keine verschlüsselten Anrufe. Zu den unterstützten Browsern gehören Chrome, Safari und Firefox 117+.", + "generic": "Etwas ist schief gelaufen", + "generic_description": "Durch das Senden von Debugprotokollen können wir das Problem leichter eingrenzen.", + "insufficient_capacity": "Unzureichende Kapazität", + "insufficient_capacity_description": "Der Server hat seine maximale Kapazität erreicht, daher ist ein Beitritt zum Anruf derzeit nicht möglich. Bitte später erneut versuchen oder den Serveradministrator kontaktieren, falls das Problem weiterhin besteht.", + "matrix_rtc_focus_missing": "Der Server ist nicht für die Verwendung mit {{brand}} konfiguriert. Bitte den Serveradministrator kontaktieren (Domain: {{domain}}, Fehlercode: {{ errorCode }}).", + "open_elsewhere": "In einem anderen Tab geöffnet", + "open_elsewhere_description": "{{brand}} wurde in einem anderen Tab geöffnet. Wenn das nicht richtig klingt, versuchen Sie, die Seite neu zu laden.", + "room_creation_restricted": "Anruf konnte nicht erstellt werden", + "room_creation_restricted_description": "Das Erstellen von Anrufen ist nur für autorisierte Nutzer möglich. Versuche es später erneut oder kontaktiere deinen Serveradministrator, falls das Problem weiterhin besteht.", + "unexpected_ec_error": "Ein unerwarteter Fehler ist aufgetreten (<0>Fehlercode: <1>{{ errorCode }}). Bitte den Serveradministrator kontaktieren." + }, "group_call_loader": { "banned_body": "Du wurdest aus dem Raum verbannt.", "banned_heading": "Verbannt", "call_ended_body": "Du wurdest aus dem Anruf entfernt.", "call_ended_heading": "Anruf beendet", - "failed_heading": "Beitreten fehlgeschlagen", - "failed_text": "Anruf nicht gefunden oder Beitritt nicht erlaubt", "knock_reject_body": "Die Teilnahmeanfrage wurde abgelehnt.", "knock_reject_heading": "Zugriff verweigert", - "reason": "Grund" + "reason": "Grund: {{reason}}" + }, + "handset": { + "overlay_back_button": "Zurück zum Lautsprechermodus", + "overlay_description": "Nur wenn App im Vordergrund nutzbar", + "overlay_title": "Ohrhörer Modus" }, "hangup_button_label": "Anruf beenden", "header_label": "Element Call-Startseite", @@ -131,9 +154,9 @@ "rageshake_sending": "Senden …", "rageshake_sending_logs": "Sende Debug-Protokolle …", "rageshake_sent": "Danke!", - "recaptcha_caption": "Diese Seite wird durch reCAPTCHA geschützt und es gelten Googles <2>Datenschutzerklärung und <6>Nutzungsbedingungen. <9>Mit einem Klick auf „Registrieren“ akzeptierst du unseren <2>Endbenutzer-Lizenzvertrag (EULA)", "recaptcha_dismissed": "Recaptcha abgelehnt", "recaptcha_not_loaded": "Recaptcha nicht geladen", + "recaptcha_ssla_caption": "Diese Website wird durch ReCAPTCHA geschützt, und es gelten die Google <2>Datenschutzbestimmungen sowie die <6>Nutzungsbedingungen.<9> Durch das Klicken auf \"Registrieren\" wird der <12>Software- und Dienstleistungslizenzvereinbarung (SSLA) zugestimmt.", "register": { "passwords_must_match": "Passwörter müssen übereinstimmen", "registering": "Registrierung …" @@ -143,14 +166,30 @@ "register_heading": "Erstelle Dein Konto", "return_home_button": "Zurück zur Startseite", "room_auth_view_continue_button": "Weiter", - "room_auth_view_eula_caption": "Mit einem Klick auf „Weiter“ akzeptierst du unseren <2>Endbenutzer-Lizenzvertrag (EULA)", + "room_auth_view_ssla_caption": "Durch das Klicken auf \"Anruf jetzt beitreten\" wird dem <2>Software and Services License Agreement (SSLA) zugestimmt.", "screenshare_button_label": "Bildschirm teilen", "settings": { "audio_tab": { - "effect_volume_description": "Lautstärke anpassen, mit der Reaktionen und Handmeldungen abgespielt werden", + "effect_volume_description": "Lautstärke anpassen, mit der Reaktionen und Handmeldungen abgespielt werden.", "effect_volume_label": "Lautstärke der Soundeffekte" }, + "background_blur_header": "Hintergrund", + "background_blur_label": "Unschärfeeffekt für den Hintergrund aktivieren", + "blur_not_supported_by_browser": "(Hintergrundunschärfe wird von diesem Gerät nicht unterstützt.)", "developer_tab_title": "Entwickler", + "devices": { + "camera": "Kamera", + "camera_numbered": "Kamera {{n}}", + "change_device_button": "Audiogerät wechseln", + "default": "Standard", + "default_named": "Standard<2> ({{name}} )", + "handset": "Ohrhörer", + "loudspeaker": "Lautsprecher", + "microphone": "Mikrofon", + "microphone_numbered": "Mikrofon{{n}}", + "speaker": "Lautsprecher", + "speaker_numbered": "Lautsprecher{{n}}" + }, "feedback_tab_body": "Falls du auf Probleme stößt oder einfach nur eine Rückmeldung geben möchtest, sende uns bitte eine kurze Beschreibung.", "feedback_tab_description_label": "Deine Rückmeldung", "feedback_tab_h4": "Rückmeldung geben", @@ -159,12 +198,16 @@ "feedback_tab_title": "Rückmeldung", "opt_in_description": "<0><1>Du kannst deine Zustimmung durch Abwählen dieses Kästchens zurückziehen. Falls du dich aktuell in einem Anruf befindest, wird diese Einstellung nach dem Ende des Anrufs wirksam.", "preferences_tab": { - "reactions_play_sound_description": "Einen Soundeffekt abspielen, wenn jemand eine Reaktion sendet", + "developer_mode_label": "Entwickler-Modus", + "developer_mode_label_description": "Aktivieren Sie den Entwicklermodus und zeigen Sie die Registerkarte mit den Entwicklereinstellungen an.", + "introduction": "Hier können zusätzliche Optionen für individuelle Anforderungen eingestellt werden.", + "reactions_play_sound_description": "Spielen Sie einen Soundeffekt ab, wenn jemand eine Reaktion auf einen Anruf sendet.", "reactions_play_sound_label": "Reaktionstöne abspielen", "reactions_show_description": "Zeige eine Animation, wenn jemand eine Reaktion sendet.", - "reactions_show_label": "Reaktionen anzeigen" - }, - "speaker_device_selection_label": "Lautsprecher" + "reactions_show_label": "Reaktionen anzeigen", + "show_hand_raised_timer_description": "Einen Timer zur Handmeldung anzeigen", + "show_hand_raised_timer_label": "Dauer der Handmeldung anzeigen" + } }, "star_rating_input_label_one": "{{count}} Stern", "star_rating_input_label_other": "{{count}} Sterne", @@ -175,12 +218,13 @@ "submitting": "Sende …", "switch_camera": "Kamera wechseln", "unauthenticated_view_body": "Noch nicht registriert? <2>Konto erstellen", - "unauthenticated_view_eula_caption": "Mit einem Klick auf „Los geht’s“ akzeptierst du unseren <2>Endbenutzer-Lizenzvertrag (EULA)", "unauthenticated_view_login_button": "Melde dich mit deinem Konto an", + "unauthenticated_view_ssla_caption": "Durch das Klicken auf \"Weiter\" wird dem <2>Software and Services License Agreement (SSLA) zugestimmt.", "unmute_microphone_button_label": "Mikrofon einschalten", "version": "{{productName}} Version: {{version}}", "video_tile": { "always_show": "Immer anzeigen", + "camera_starting": "Video wird geladen...", "change_fit_contain": "An Fenster anpassen", "collapse": "Minimieren", "expand": "Erweitern", diff --git a/locales/el/app.json b/locales/el/app.json index 10b9396d..6eec5278 100644 --- a/locales/el/app.json +++ b/locales/el/app.json @@ -4,15 +4,30 @@ }, "action": { "close": "Κλείσιμο", + "copy_link": "Αντιγραφή συνδέσμου", + "edit": "Επεξεργασία", "go": "Μετάβαση", + "invite": "Πρόσκληση", + "lower_hand": "Κατεβάστε το χέρι", "no": "Όχι", + "pick_reaction": "Επιλέξτε αντίδραση", + "raise_hand": "Σηκώστε το χέρι", "register": "Εγγραφή", "remove": "Αφαίρεση", + "show_less": "Εμφάνιση λιγότερων", + "show_more": "Εμφάνιση περισσότερων", "sign_in": "Σύνδεση", "sign_out": "Αποσύνδεση", - "submit": "Υποβολή" + "submit": "Υποβολή", + "upload_file": "Μεταφόρτωση αρχείου" + }, + "analytics_notice": "Συμμετέχοντας σε αυτή τη δοκιμαστική έκδοση, συναινείτε στη συλλογή ανώνυμων δεδομένων, τα οποία χρησιμοποιούμε για τη βελτίωση του προϊόντος. Μπορείτε να βρείτε περισσότερες πληροφορίες σχετικά με το ποια δεδομένα καταγράφουμε στην <2>Πολιτική απορρήτου και στην <6>Πολιτική cookies.", + "app_selection_modal": { + "continue_in_browser": "Συνέχεια στο πρόγραμμα περιήγησης", + "open_in_app": "Ανοίξτε στην εφαρμογή", + "text": "Έτοιμοι να συμμετάσχετε?", + "title": "Επιλέξτε εφαρμογή" }, - "analytics_notice": "Συμμετέχοντας σε αυτή τη δοκιμαστική έκδοση, συναινείτε στη συλλογή ανώνυμων δεδομένων, τα οποία χρησιμοποιούμε για τη βελτίωση του προϊόντος. Μπορείτε να βρείτε περισσότερες πληροφορίες σχετικά με το ποια δεδομένα καταγράφουμε στην <2>Πολιτική απορρήτου και στην <5>Πολιτική cookies.", "call_ended_view": { "create_account_button": "Δημιουργία λογαριασμού", "create_account_prompt": "<0>Γιατί να μην ολοκληρώσετε με τη δημιουργία ενός κωδικού πρόσβασης για τη διατήρηση του λογαριασμού σας;<1>Θα μπορείτε να διατηρήσετε το όνομά σας και να ορίσετε ένα avatar για χρήση σε μελλοντικές κλήσεις.", @@ -20,23 +35,45 @@ "feedback_prompt": "<0>Θα θέλαμε να ακούσουμε τα σχόλιά σας ώστε να βελτιώσουμε την εμπειρία σας.", "headline": "{{displayName}}, η κλήση σας τερματίστηκε.", "not_now_button": "Όχι τώρα, επιστροφή στην αρχική οθόνη", + "reconnect_button": "Επανασύνδεση", "survey_prompt": "Πώς σας φάνηκε;" }, + "call_name": "Όνομα κλήσης", "common": { + "analytics": "Δεδομένα ανάλυσης", "audio": "Ήχος", - "camera": "Κάμερα", + "avatar": "Εικόνα Προφίλ", + "back": "Πίσω", "display_name": "Εμφανιζόμενο όνομα", + "encrypted": "Κρυπτογραφημένο", "home": "Αρχική", "loading": "Φόρτωση…", - "microphone": "Μικρόφωνο", + "next": "Επόμενο", + "options": "Επιλογές", "password": "Κωδικός", + "preferences": "Προτιμήσεις", "profile": "Προφίλ", + "reaction": "Αντίδραση", + "reactions": "Αντιδράσεις", "settings": "Ρυθμίσεις", + "unencrypted": "Μη κρυπτογραφημένο", "username": "Όνομα χρήστη", "video": "Βίντεο" }, - "full_screen_view_description": "<0>Η υποβολή αρχείων καταγραφής σφαλμάτων θα μας βοηθήσει να εντοπίσουμε το πρόβλημα.", - "full_screen_view_h1": "<0>Ωχ, κάτι πήγε στραβά.", + "developer_mode": { + "crypto_version": "Έκδοση κρυπτογράφησης: {{version}}", + "debug_tile_layout_label": "Διάταξη πλακιδίων εντοπισμού σφαλμάτων", + "device_id": "Αναγνωριστικό συσκευής: {{id}}", + "duplicate_tiles_label": "Αριθμός επιπλέον αντιγράφων πλακιδίων ανά συμμετέχοντα", + "environment_variables": "Μεταβλητές περιβάλλοντος", + "hostname": "Όνομα κεντρικού υπολογιστή: {{hostname}}", + "livekit_server_info": "Πληροφορίες διακομιστή LiveKit", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Αναγνωριστικό Matrix: {{id}}", + "show_connection_stats": "Εμφάνιση στατιστικών σύνδεσης", + "show_non_member_tiles": "Εμφάνιση πλακιδίων για μέσα μη-μελών", + "url_params": "Παράμετροι URL" + }, "header_label": "Element Κεντρική Οθόνη Κλήσεων", "join_existing_call_modal": { "join_button": "Ναι, συμμετοχή στην κλήση", @@ -74,8 +111,7 @@ "feedback_tab_send_logs_label": "Να συμπεριληφθούν αρχεία καταγραφής", "feedback_tab_thank_you": "Ευχαριστούμε, λάβαμε τα σχόλιά σας!", "feedback_tab_title": "Ανατροφοδότηση", - "opt_in_description": "<0><1>Μπορείτε να ανακαλέσετε τη συγκατάθεσή σας αποεπιλέγοντας αυτό το πλαίσιο. Εάν βρίσκεστε σε κλήση, η ρύθμιση αυτή θα τεθεί σε ισχύ στο τέλος της.", - "speaker_device_selection_label": "Ηχείο" + "opt_in_description": "<0><1>Μπορείτε να ανακαλέσετε τη συγκατάθεσή σας αποεπιλέγοντας αυτό το πλαίσιο. Εάν βρίσκεστε σε κλήση, η ρύθμιση αυτή θα τεθεί σε ισχύ στο τέλος της." }, "star_rating_input_label_one": "{{count}} αστέρι", "star_rating_input_label_other": "{{count}} αστέρια", diff --git a/locales/en/app.json b/locales/en/app.json index f35c3579..d375b629 100644 --- a/locales/en/app.json +++ b/locales/en/app.json @@ -28,11 +28,7 @@ "text": "Ready to join?", "title": "Select app" }, - "application_opened_another_tab": "This application has been opened in another tab.", - "browser_media_e2ee_unsupported": "Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117", - "browser_media_e2ee_unsupported_heading": "Incompatible Browser", "call_ended_view": { - "body": "You were disconnected from the call", "create_account_button": "Create account", "create_account_prompt": "<0>Why not finish by setting up a password to keep your account?<1>You'll be able to keep your name and set an avatar for use on future calls", "feedback_done": "<0>Thanks for your feedback!", @@ -50,7 +46,6 @@ "back": "Back", "display_name": "Display name", "encrypted": "Encrypted", - "error": "Error", "home": "Home", "loading": "Loading…", "next": "Next", @@ -61,34 +56,61 @@ "reaction": "Reaction", "reactions": "Reactions", "settings": "Settings", - "something_went_wrong": "Something went wrong", "unencrypted": "Not encrypted", "username": "Username", "video": "Video" }, "developer_mode": { + "always_show_iphone_earpiece": "Show iPhone earpiece option on all platforms", "crypto_version": "Crypto version: {{version}}", "debug_tile_layout_label": "Debug tile layout", "device_id": "Device ID: {{id}}", "duplicate_tiles_label": "Number of additional tile copies per participant", + "environment_variables": "Environment variables", "hostname": "Hostname: {{hostname}}", + "livekit_server_info": "LiveKit Server Info", + "livekit_sfu": "LiveKit SFU: {{url}}", "matrix_id": "Matrix ID: {{id}}", + "mute_all_audio": "Mute all audio (participants, reactions, join sounds)", "show_connection_stats": "Show connection statistics", - "show_non_member_tiles": "Show tiles for non-member media" + "show_non_member_tiles": "Show tiles for non-member media", + "url_params": "URL parameters", + "use_new_membership_manager": "Use the new implementation of the call MembershipManager", + "use_to_device_key_transport": "Use to device key transport. This will fallback to room key transport when another call member sent a room key" }, "disconnected_banner": "Connectivity to the server has been lost.", - "full_screen_view_description": "<0>Submitting debug logs will help us track down the problem.", - "full_screen_view_h1": "<0>Oops, something's gone wrong.", + "error": { + "call_is_not_supported": "Call is not supported", + "call_not_found": "Call not found", + "call_not_found_description": "<0>That link doesn't appear to belong to any existing call. Check that you have the right link, or <2>create a new one.", + "connection_lost": "Connection lost", + "connection_lost_description": "You were disconnected from the call.", + "e2ee_unsupported": "Incompatible browser", + "e2ee_unsupported_description": "Your web browser does not support encrypted calls. Supported browsers include Chrome, Safari, and Firefox 117+.", + "generic": "Something went wrong", + "generic_description": "Submitting debug logs will help us track down the problem.", + "insufficient_capacity": "Insufficient capacity", + "insufficient_capacity_description": "The server has reached its maximum capacity and you cannot join the call at this time. Try again later, or contact your server admin if the problem persists.", + "matrix_rtc_focus_missing": "The server is not configured to work with {{brand}}. Please contact your server admin (Domain: {{domain}}, Error Code: {{ errorCode }}).", + "open_elsewhere": "Opened in another tab", + "open_elsewhere_description": "{{brand}} has been opened in another tab. If that doesn't sound right, try reloading the page.", + "room_creation_restricted": "Failed to create call", + "room_creation_restricted_description": "Call creation might be restricted to authorized users only. Try again later, or contact your server admin if the problem persists.", + "unexpected_ec_error": "An unexpected error occurred (<0>Error Code: <1>{{ errorCode }}). Please contact your server admin." + }, "group_call_loader": { "banned_body": "You have been banned from the room.", "banned_heading": "Banned", "call_ended_body": "You have been removed from the call.", "call_ended_heading": "Call ended", - "failed_heading": "Failed to join", - "failed_text": "Call not found or is not accessible.", "knock_reject_body": "Your request to join was declined.", "knock_reject_heading": "Access denied", - "reason": "Reason" + "reason": "Reason: {{reason}}" + }, + "handset": { + "overlay_back_button": "Back to Speaker Mode", + "overlay_description": "Only works while using app", + "overlay_title": "Handset Mode" }, "hangup_button_label": "End call", "header_label": "Element Call Home", @@ -132,9 +154,9 @@ "rageshake_sending": "Sending…", "rageshake_sending_logs": "Sending debug logs…", "rageshake_sent": "Thanks!", - "recaptcha_caption": "This site is protected by ReCAPTCHA and the Google <2>Privacy Policy and <6>Terms of Service apply.<9>By clicking \"Register\", you agree to our <12>End User Licensing Agreement (EULA)", "recaptcha_dismissed": "Recaptcha dismissed", "recaptcha_not_loaded": "Recaptcha not loaded", + "recaptcha_ssla_caption": "This site is protected by ReCAPTCHA and the Google <2>Privacy Policy and <6>Terms of Service apply.<9>By clicking \"Register\", you agree to our <12>Software and Services License Agreement (SSLA)", "register": { "passwords_must_match": "Passwords must match", "registering": "Registering…" @@ -144,19 +166,25 @@ "register_heading": "Create your account", "return_home_button": "Return to home screen", "room_auth_view_continue_button": "Continue", - "room_auth_view_eula_caption": "By clicking \"Continue\", you agree to our <2>End User Licensing Agreement (EULA)", + "room_auth_view_ssla_caption": "By clicking \"Join call now\", you agree to our <2>Software and Services License Agreement (SSLA)", "screenshare_button_label": "Share screen", "settings": { "audio_tab": { "effect_volume_description": "Adjust the volume at which reactions and hand raised effects play.", "effect_volume_label": "Sound effect volume" }, + "background_blur_header": "Background", + "background_blur_label": "Blur the background of the video", + "blur_not_supported_by_browser": "(Background blur is not supported by this device.)", "developer_tab_title": "Developer", "devices": { "camera": "Camera", "camera_numbered": "Camera {{n}}", + "change_device_button": "Change audio device", "default": "Default", "default_named": "Default <2>({{name}})", + "handset": "Handset", + "loudspeaker": "Loudspeaker", "microphone": "Microphone", "microphone_numbered": "Microphone {{n}}", "speaker": "Speaker", @@ -190,8 +218,8 @@ "submitting": "Submitting…", "switch_camera": "Switch camera", "unauthenticated_view_body": "Not registered yet? <2>Create an account", - "unauthenticated_view_eula_caption": "By clicking \"Go\", you agree to our <2>End User Licensing Agreement (EULA)", "unauthenticated_view_login_button": "Login to your account", + "unauthenticated_view_ssla_caption": "By clicking \"Go\", you agree to our <2>Software and Services License Agreement (SSLA)", "unmute_microphone_button_label": "Unmute microphone", "version": "{{productName}} version: {{version}}", "video_tile": { diff --git a/locales/es/app.json b/locales/es/app.json index 96f6710c..df9948b4 100644 --- a/locales/es/app.json +++ b/locales/es/app.json @@ -4,7 +4,10 @@ }, "action": { "close": "Cerrar", + "copy_link": "Copiar vínculo", "go": "Comenzar", + "invite": "Invitar", + "no": "No", "register": "Registrarse", "remove": "Eliminar", "sign_in": "Iniciar sesión", @@ -12,6 +15,12 @@ "submit": "Enviar" }, "analytics_notice": "Al participar en esta beta, consientes a la recogida de datos anónimos, los cuales usaremos para mejorar el producto. Puedes encontrar más información sobre que datos recogemos en nuestra <2>Política de privacidad y en nuestra <5>Política sobre Cookies.", + "app_selection_modal": { + "continue_in_browser": "Continuar en el navegador", + "open_in_app": "Abrir en la aplicación", + "text": "¿Listo para unirte?", + "title": "Selecciona aplicación" + }, "call_ended_view": { "create_account_button": "Crear cuenta", "create_account_prompt": "<0>¿Por qué no mantienes tu cuenta estableciendo una contraseña?<1>Podrás mantener tu nombre y establecer un avatar para usarlo en futuras llamadas", @@ -22,18 +31,14 @@ "survey_prompt": "¿Cómo ha ido?" }, "common": { - "camera": "Cámara", "display_name": "Nombre a mostrar", "home": "Inicio", "loading": "Cargando…", - "microphone": "Micrófono", "password": "Contraseña", "profile": "Perfil", "settings": "Ajustes", "username": "Nombre de usuario" }, - "full_screen_view_description": "<0>Subir los registros de depuración nos ayudará a encontrar el problema.", - "full_screen_view_h1": "<0>Ups, algo ha salido mal.", "header_label": "Inicio de Element Call", "join_existing_call_modal": { "join_button": "Si, unirse a la llamada", @@ -54,7 +59,6 @@ "rageshake_send_logs": "Enviar registros de depuración", "rageshake_sending": "Enviando…", "rageshake_sending_logs": "Enviando registros de depuración…", - "recaptcha_caption": "Este sitio está protegido por ReCAPTCHA y se aplican la <2>Política de Privacidad y los <6>Términos de Servicio de Google.<9>Al hacer clic en \"Registrar\", aceptas nuestro <12>Contrato de Licencia de Usuario Final (CLUF)", "recaptcha_dismissed": "Recaptcha cancelado", "recaptcha_not_loaded": "No se ha cargado el Recaptcha", "register": { @@ -64,7 +68,6 @@ "register_auth_links": "<0>¿Ya tienes una cuenta?<1><0>Iniciar sesión o <2>Acceder como invitado", "register_confirm_password_label": "Confirmar contraseña", "return_home_button": "Volver a la pantalla de inicio", - "room_auth_view_eula_caption": "Al hacer clic en \"Unirse a la llamada ahora\", aceptas nuestro <2>Contrato de Licencia de Usuario Final (CLUF)", "screenshare_button_label": "Compartir pantalla", "settings": { "developer_tab_title": "Desarrollador", @@ -74,14 +77,12 @@ "feedback_tab_send_logs_label": "Incluir registros de depuración", "feedback_tab_thank_you": "¡Gracias, hemos recibido tus comentarios!", "feedback_tab_title": "Danos tu opinión", - "opt_in_description": "<0><1>Puedes retirar tu consentimiento desmarcando esta casilla. Si estás en una llamada, este ajuste se aplicará al final de esta.", - "speaker_device_selection_label": "Altavoz" + "opt_in_description": "<0><1>Puedes retirar tu consentimiento desmarcando esta casilla. Si estás en una llamada, este ajuste se aplicará al final de esta." }, "star_rating_input_label_one": "{{count}} estrella", "star_rating_input_label_other": "{{count}} estrellas", "submitting": "Enviando…", "unauthenticated_view_body": "¿No estás registrado todavía? <2>Crear una cuenta", - "unauthenticated_view_eula_caption": "Al hacer clic en \"Comenzar\", aceptas nuestro <2>Contrato de Licencia de Usuario Final (CLUF)", "unauthenticated_view_login_button": "Iniciar sesión en tu cuenta", "version": "Versión: {{version}}" } diff --git a/locales/et/app.json b/locales/et/app.json index ccd1c699..e269e53f 100644 --- a/locales/et/app.json +++ b/locales/et/app.json @@ -5,25 +5,30 @@ "action": { "close": "Sulge", "copy_link": "Kopeeri link", + "edit": "Muuda", "go": "Jätka", "invite": "Kutsu", + "lower_hand": "Lase käsi alla", "no": "Ei", + "pick_reaction": "Vali reaktsioon", + "raise_hand": "Anna käega märku", "register": "Registreeru", "remove": "Eemalda", + "show_less": "Näita vähem", + "show_more": "Näita rohkem", "sign_in": "Logi sisse", "sign_out": "Logi välja", - "submit": "Saada" + "submit": "Saada", + "upload_file": "Laadi fail üles" }, - "analytics_notice": "Nõustudes selle beetaversiooni kasutamisega sa nõustud ka toote arendamiseks kasutatavate anonüümsete andmete kogumisega. Täpsemat teavet kogutavate andmete kohta leiad meie <2>Privaatsuspoliitikast ja meie <5>Küpsiste kasutamise reeglitest.", + "analytics_notice": "Nõustudes selle beetaversiooni kasutamisega, sa nõustud ka toote arendamiseks kasutatavate anonüümsete andmete kogumisega. Täpsemat teavet kogutavate andmete kohta leiad meie <2>Privaatsuspoliitikast ja meie <6>Küpsiste kasutamise reeglitest.", "app_selection_modal": { "continue_in_browser": "Jätka veebibrauseris", "open_in_app": "Ava rakenduses", "text": "Oled valmis liituma?", "title": "Vali rakendus" }, - "browser_media_e2ee_unsupported": "Sinu veebibrauser ei toeta meedia läbivat krüptimist. Toetatud brauserid on Chrome, Chromium, Safari ja Firefox >=117", "call_ended_view": { - "body": "Sinu ühendus kõnega katkes", "create_account_button": "Loo konto", "create_account_prompt": "<0>Kas soovid salasõna seadistada ja sellega oma kasutajakonto alles jätta?<1>Nii saad säilitada oma nime ja määrata profiilipildi, mida saad kasutada tulevastes kõnedes", "feedback_done": "<0>Täname Sind tagasiside eest!", @@ -35,24 +40,79 @@ }, "call_name": "Kõne nimi", "common": { + "analytics": "Analüütika", "audio": "Heli", "avatar": "Tunnuspilt", - "camera": "Kaamera", + "back": "Tagasi", "display_name": "Kuvatav nimi", "encrypted": "Krüptitud", - "home": "Avavaatesse", + "home": "Kodu", "loading": "Laadimine …", - "microphone": "Mikrofon", + "next": "Edasi", + "options": "Valikud", "password": "Salasõna", + "preferences": "Eelistused", "profile": "Profiil", + "reaction": "Reaktsioon", + "reactions": "Reageerimised", "settings": "Seadistused", "unencrypted": "Krüptimata", - "username": "Kasutajanimi" + "username": "Kasutajanimi", + "video": "Video" + }, + "developer_mode": { + "always_show_iphone_earpiece": "Näita iPhone'i kuulari valikut kõikidel platvormidel", + "crypto_version": "Krüptoteekide versioon: {{version}}", + "debug_tile_layout_label": "Meediapaanide paigutus", + "device_id": "Seadme tunnus: {{id}}", + "duplicate_tiles_label": "Täiendavaid vaadete koopiaid osaleja kohta", + "environment_variables": "Keskkonnamuutujad", + "hostname": "Hosti nimi: {{hostname}}", + "livekit_server_info": "LiveKiti serveri teave", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrixi kasutajatunnus: {{id}}", + "mute_all_audio": "Summuta kõik helid (osalejad, regeerimised, liitumise helid)", + "show_connection_stats": "Näita ühenduse statistikat", + "show_non_member_tiles": "Näita ka mitteseotud meedia paane", + "url_params": "Võrguaadressi parameetrid", + "use_new_membership_manager": "Kasuta kõne liikmelisuse halduri (MembershipManager) uut implementatsiooni", + "use_to_device_key_transport": "Kasuta seadmepõhist krüptovõtmete vahetust. Kui jututoa liige peaks saatma jututoakohase krüptovõtme, siis kasuta jututoakohast võtmevahetust" }, "disconnected_banner": "Võrguühendus serveriga on katkenud.", - "full_screen_view_description": "<0>Kui saadad meile vealogid, siis on lihtsam vea põhjust otsida.", - "full_screen_view_h1": "<0>Ohoo, midagi on nüüd katki.", + "error": { + "call_is_not_supported": "Kõne pole toetatud", + "call_not_found": "Kõnet ei leidu", + "call_not_found_description": "<0>See link ei tundu olema seotud ühegi olemasoleva kõnega. Kontrolli, et sul on õige link või <2>loo uus.", + "connection_lost": "Ühendus on katkenud", + "connection_lost_description": "Sinu ühendus selle kõnega on katkenud.", + "e2ee_unsupported": "Mitteühilduv brauser", + "e2ee_unsupported_description": "Sinu veebibrauser ei toeta krüptitud kõnesid. Toimivad veebibrauserid on Chrome, Safari, ja Firefox 117+.", + "generic": "Midagi läks valesti", + "generic_description": "Silumis- ja vealogide saatmine võib aidata meid vea põhjuseni jõuda.", + "insufficient_capacity": "Mittepiisav jõudlus", + "insufficient_capacity_description": "Serveri jõudluse ülempiir on hetkel ületatud ja sa ei saa hetkel selle kõnega liituda. Proovi hiljem uuesti või kui probleem kestab kauem, siis võta ühendust serveri haldajaga.", + "matrix_rtc_focus_missing": "See server pole seadistatud töötama rakendusega {{brand}}. Palun võta ühendust serveri halduriga (domeen: {{domain}}, veakood: {{ errorCode }}).", + "open_elsewhere": "Avatud teisel vahekaardil", + "open_elsewhere_description": "{{brand}} on avatud teisel vahekaardil. Kui see ei tundu olema õige, proovi selle lehe uuesti laadimist.", + "room_creation_restricted": "Kõne loomine ei õnnestunud", + "room_creation_restricted_description": "Kõne loomine võib olla lubatud ainult volitatud kasutajatele. Proovi hiljem uuesti või probleemi püsimisel võta ühendust oma serveri haldajaga.", + "unexpected_ec_error": "Tekkis ootamatu viga (<0>Veakood: <1>{{ errorCode }}). Palun võta ühendust serveri haldajaga." + }, + "group_call_loader": { + "banned_body": "Sa oled saanud selles jututoas suhtluskeelu", + "banned_heading": "Suhtluskeeld", + "call_ended_body": "Sa oled sellest kõnest eemaldatud.", + "call_ended_heading": "Kõne lõppes", + "knock_reject_body": "Jututoa liikmed ei nõustunud sinu liitumispalvega.", + "knock_reject_heading": "Liitumine pole lubatud", + "reason": "Põhjus" + }, + "handset": { + "overlay_back_button": "Tagasi esineja vaatesse", + "overlay_description": "See toimib vaid rakenduse kasutamise ajal" + }, "hangup_button_label": "Lõpeta kõne", + "header_label": "Avaleht: Element Call", "header_participants_label": "Osalejad", "invite_modal": { "link_copied_toast": "Link on kopeeritud lõikelauale", @@ -66,15 +126,24 @@ "layout_grid_label": "Ruudustik", "layout_spotlight_label": "Rambivalgus", "lobby": { - "join_button": "Kõnega liitumine", - "leave_button": "Tagasi hiljutiste kõnede juurde" + "ask_to_join": "Küsi võimalust liituda kõnega", + "join_as_guest": "Liitu külalisena", + "join_button": "Liitu kõnega", + "leave_button": "Tagasi hiljutiste kõnede juurde", + "waiting_for_invite": "Päring on saadetud" }, - "logging_in": "Sisselogimine …", - "login_auth_links": "<0>Loo konto Või <2>Sisene külalisena", + "log_in": "Logi sisse", + "logging_in": "Logime sisse…", + "login_auth_links": "<0>Loo konto või <2>Sisene külalisena", + "login_auth_links_prompt": "Sa pole veel registreerunud?", + "login_subheading": "Jätka rakenduses Element", "login_title": "Sisselogimine", "microphone_off": "Mikrofon ei tööta", "microphone_on": "Mikrofon töötab", "mute_microphone_button_label": "Summuta mikrofon", + "participant_count_one": "{{count, number}}", + "participant_count_other": "{{count, number}}", + "qr_code": "QR-kood", "rageshake_button_error_caption": "Proovi uuesti logisid saata", "rageshake_request_modal": { "body": "Ühel teisel selles kõnes osalejal on lahenduse kasutamisel tekkinud probleem ning selle põhjuse leidmiseks me sooviksime koguda silumislogisid.", @@ -84,20 +153,41 @@ "rageshake_sending": "Saatmine…", "rageshake_sending_logs": "Veaotsingulogide saatmine…", "rageshake_sent": "Tänud!", - "recaptcha_caption": "Selles saidis on kasutusel ReCAPTCHA ja kehtivad Google'i <2>Privaatsuspoliitika ning <6>Teenusetingimused.<9>Klõpsides „Registreeru“, sa nõustud meie <12>Lõppkasutaja litsentsilepingu (EULA) tingimustega", "recaptcha_dismissed": "Robotilõks on vahele jäetud", "recaptcha_not_loaded": "Robotilõks pole laetud", + "recaptcha_ssla_caption": "Selle saidi kaitsmiseks on kasutusel ReCAPTCHA ning rakenduvad Google'i <2>Privaatusreeglid ja <6>Kasutustingimused.<9>Klõpsides „Registreeru“ nõustud sa meie <12>Tarkvara ja teenuste litsentseerimise lepinguga (Software and Services License Agreement - SSLA)", "register": { "passwords_must_match": "Salasõnad ei klapi", "registering": "Registreerimine…" }, - "register_auth_links": "<0>On sul juba konto?<1><0>Logi sisse Või <2>Logi sisse külalisena", + "register_auth_links": "<0>On sul juba konto?<1><0>Logi sisse või <2>Logi sisse külalisena", "register_confirm_password_label": "Kinnita salasõna", + "register_heading": "Loo omale konto", "return_home_button": "Tagasi avalehele", - "room_auth_view_eula_caption": "Klõpsides „Liitu kõnega kohe“, nõustud sa meie <2>Lõppkasutaja litsentsilepinguga (EULA)", + "room_auth_view_continue_button": "Jätka", + "room_auth_view_ssla_caption": "Klõpsides „Liitu kõnega“ nõustud sa meie <2>Tarkvara ja teenuste litsentseerimise lepinguga (Software and Services License Agreement - SSLA)", "screenshare_button_label": "Jaga ekraani", "settings": { + "audio_tab": { + "effect_volume_description": "Häälesta helivaljust, mida kasutatakse käe tõstmisel ja regeerimisel", + "effect_volume_label": "Efektide helivajlus" + }, + "background_blur_header": "Taust", + "background_blur_label": "Hägusta video taust", + "blur_not_supported_by_browser": "(Tausta hägustamine pole selles seadmes toetatud.)", "developer_tab_title": "Arendaja", + "devices": { + "camera": "Kaamera", + "camera_numbered": "Kaamera {{n}}", + "change_device_button": "Muuda heliseadet", + "default": "Vaikimisi", + "default_named": "Vaikimisi <2>({{name}})", + "loudspeaker": "Valjuhääldi", + "microphone": "Mikrofon", + "microphone_numbered": "Mikrofon {{n}}", + "speaker": "Kõlar", + "speaker_numbered": "Kõlar {{n}}" + }, "feedback_tab_body": "Kui selle rakenduse kasutamisel tekib sul probleeme või lihtsalt soovid oma arvamust avaldada, siis palun täida alljärgnev lühike kirjeldus.", "feedback_tab_description_label": "Sinu tagasiside", "feedback_tab_h4": "Jaga tagasisidet", @@ -105,18 +195,40 @@ "feedback_tab_thank_you": "Tänud, me oleme sinu tagasiside kätte saanud!", "feedback_tab_title": "Tagasiside", "opt_in_description": "<0><1>Sa võid selle valiku eelmaldamisega alati oma nõusoleku tagasi võtta. Kui sul parasjagu on kõne pooleli, siis seadistuste muudatus jõustub pärast kõne lõppu.", - "speaker_device_selection_label": "Kõlar" + "preferences_tab": { + "developer_mode_label": "Arendajate režiim", + "developer_mode_label_description": "Kasuta arendusrežiimi ja näita asjakohaseid seadistusi.", + "introduction": "Parema kasutuskogemuse nimel saad siin seadistada täiendavaid eelistusi.", + "reactions_play_sound_description": "Kui keegi lisab käimasolevale kõnele reaktsiooni, siis täienda seda heliefektiga.", + "reactions_play_sound_label": "Lisa reageerimistele heli", + "reactions_show_description": "Näita reageerimisi", + "reactions_show_label": "Kui keegi reageerib, siis näita seda animatsioonina", + "show_hand_raised_timer_description": "Kui osaleja annab käetõstmisega märku, siis kuva ka kestuse taimer", + "show_hand_raised_timer_label": "Näita käega märkuandmise kestust" + } }, - "star_rating_input_label_one": "{{count}} tärni", + "star_rating_input_label_one": "{{count}} tärn", "star_rating_input_label_other": "{{count}} tärni", "start_new_call": "Algata uus kõne", "start_video_button_label": "Lülita videovoog sisse", "stop_screenshare_button_label": "Ekraanivaade on jagamisel", "stop_video_button_label": "Peata videovoog", "submitting": "Saadan…", + "switch_camera": "Vaheta kaamerat", "unauthenticated_view_body": "Sa pole veel registreerunud? <2>Loo kasutajakonto", - "unauthenticated_view_eula_caption": "Klõpsides „Jätka“, nõustud sa meie <2>Lõppkasutaja litsentsilepinguga (EULA)", "unauthenticated_view_login_button": "Logi oma kontosse sisse", + "unauthenticated_view_ssla_caption": "Klõpsides „Jätka“ nõustud sa meie <2>Tarkvara ja teenuste litsentseerimise lepinguga (Software and Services License Agreement - SSLA)", "unmute_microphone_button_label": "Lülita mikrofon sisse", - "version": "Versioon: {{version}}" + "version": "{{productName}}, versioon: {{version}}", + "video_tile": { + "always_show": "Näita alati", + "camera_starting": "Video on laadimisel...", + "change_fit_contain": "Mahuta aknasse", + "collapse": "Näita vähem", + "expand": "Näita rohkem", + "mute_for_me": "Summuta minu jaoks", + "muted_for_me": "Minule summutatud", + "volume": "Helivaljus", + "waiting_for_media": "Ootame kuni meedia on olemas..." + } } diff --git a/locales/fa/app.json b/locales/fa/app.json index 125ec785..36013db5 100644 --- a/locales/fa/app.json +++ b/locales/fa/app.json @@ -19,11 +19,9 @@ "common": { "audio": "صدا", "avatar": "آواتار", - "camera": "دوربین", "display_name": "نام نمایشی", "home": "خانه", "loading": "بارگزاری…", - "microphone": "میکروفون", "password": "رمز عبور", "profile": "پروفایل", "settings": "تنظیمات", @@ -63,8 +61,7 @@ "settings": { "developer_tab_title": "توسعه دهنده", "feedback_tab_h4": "بازخورد ارائه دهید", - "feedback_tab_send_logs_label": "شامل لاگ‌های عیب‌یابی", - "speaker_device_selection_label": "بلندگو" + "feedback_tab_send_logs_label": "شامل لاگ‌های عیب‌یابی" }, "unauthenticated_view_body": "هنوز ثبت‌نام نکرده‌اید؟ <2>ساخت حساب کاربری", "unauthenticated_view_login_button": "به حساب کاربری خود وارد شوید", diff --git a/locales/fi/app.json b/locales/fi/app.json new file mode 100644 index 00000000..9e8a463c --- /dev/null +++ b/locales/fi/app.json @@ -0,0 +1,224 @@ +{ + "a11y": { + "user_menu": "Käyttäjävalikko" + }, + "action": { + "close": "Sulje", + "copy_link": "Kopioi linkki", + "edit": "Muokkaa", + "go": "Siirry", + "invite": "Kutsu", + "lower_hand": "Laske käsi", + "no": "Ei", + "pick_reaction": "Valitse reaktio", + "raise_hand": "Nosta käsi", + "register": "Rekisteröidy", + "remove": "Poista", + "show_less": "Näytä vähemmän", + "show_more": "Näytä lisää", + "sign_in": "Kirjaudu sisään", + "sign_out": "Kirjaudu ulos", + "submit": "Lähetä", + "upload_file": "Lähetä tiedosto" + }, + "analytics_notice": "Osallistumalla tähän betaan hyväksyt nimettömien tietojen keräämisen, joita käytämme tuotteen parantamiseen. Löydät lisätietoa siitä, mitä tietoja seuraamme meidän <2> Tietosuojakäytännöstä ja <6>Evästekäytännöstä .", + "app_selection_modal": { + "continue_in_browser": "Jatka selaimessa", + "open_in_app": "Avaa sovelluksessa", + "text": "Oletko valmis liittymään?", + "title": "Valitse sovellus" + }, + "call_ended_view": { + "create_account_button": "Luo tili", + "create_account_prompt": "<0>Miksi et viimeistelisi määrittämällä salasanaa tilisi säilyttämiseksi?<1>Voit säilyttää nimesi ja asettaa avatarin käytettäväksi tulevissa puheluissa", + "feedback_done": "<0>Kiitos palautteestasi!", + "feedback_prompt": "<0>Haluaisimme kuulla palautteesi, jotta voimme parantaa käyttökokemustasi.", + "headline": "{{displayName}}, puhelusi on päättynyt.", + "not_now_button": "Ei nyt, palaa aloitusnäyttöön", + "reconnect_button": "Yhdistä uudelleen", + "survey_prompt": "Miten se meni?" + }, + "call_name": "Puhelun nimi", + "common": { + "analytics": "Analytiikka", + "audio": "Ääni", + "avatar": "Avatar", + "back": "Takaisin", + "display_name": "Näyttönimi", + "encrypted": "Salattu", + "home": "Etusivu", + "loading": "Ladataan...", + "next": "Seuraava", + "options": "Vaihtoehdot", + "password": "Salasana", + "preferences": "Asetukset", + "profile": "Profiili", + "reaction": "Reaktio", + "reactions": "Reaktiot", + "settings": "Asetukset", + "unencrypted": "Ei salattu", + "username": "Käyttäjänimi", + "video": "Video" + }, + "developer_mode": { + "crypto_version": "Kryptoversio: {{version}}", + "debug_tile_layout_label": "Laattojen asettelun vianmääritys", + "device_id": "Laitteen tunnus: {{id}}", + "duplicate_tiles_label": "Lisälaattakopioiden määrä osallistujaa kohti", + "environment_variables": "Ympäristömuuttujat", + "hostname": "Isäntänimi: {{hostname}}", + "livekit_server_info": "LiveKit-palvelimen tiedot", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix tunnus: {{id}}", + "show_connection_stats": "Näytä yhteystilastot", + "show_non_member_tiles": "Näytä laatat ei-jäsenien medialle", + "url_params": "URL-parametrit", + "use_new_membership_manager": "Käytä uutta puhelun MembershipManagerin toteutusta", + "use_to_device_key_transport": "Käytä laitteen avainten kuljetusta. Tämä palaa huoneen avainten siirtoon, kun toinen puhelun jäsen lähettää huoneavaimen" + }, + "disconnected_banner": "Yhteys palvelimeen on katkennut.", + "error": { + "call_is_not_supported": "Puhelua ei tueta", + "call_not_found": "Puhelua ei löydy", + "call_not_found_description": "<0>Kyseinen linkki ei näytä kuuluvan mihinkään olemassa olevaan puheluun. Tarkista, että sinulla on oikea linkki, tai <1>luo uusi linkki.", + "connection_lost": "Yhteys katkesi", + "connection_lost_description": "Sinut katkaistiin puhelusta.", + "e2ee_unsupported": "Yhteensopimaton selain", + "e2ee_unsupported_description": "Verkkoselaimesi ei tue salattuja puheluita. Tuettuja selaimia ovat Chrome, Safari ja Firefox 117+.", + "generic": "Jokin meni pieleen", + "generic_description": "Vianmäärityslokien lähettäminen auttaa meitä jäljittämään ongelman.", + "insufficient_capacity": "Riittämätön kapasiteetti", + "insufficient_capacity_description": "Palvelin on saavuttanut maksimikapasiteettinsa, etkä voi liittyä puheluun tällä hetkellä. Yritä myöhemmin uudelleen tai ota yhteyttä palvelimen ylläpitäjään, jos ongelma jatkuu.", + "matrix_rtc_focus_missing": "Palvelinta ei ole määritetty toimimaan {{brand}} -sovelluksen kanssa. Ota yhteyttä palvelimen ylläpitäjään (Verkkotunnus: {{domain}}, Virhekoodi: {{ errorCode }}).", + "open_elsewhere": "Avattu toisessa välilehdessä", + "open_elsewhere_description": "{{brand}} on avattu toisessa välilehdessä. Jos tämä ei kuulosta oikealta, yritä ladata sivu uudelleen.", + "unexpected_ec_error": "Tapahtui odottamaton virhe (<0>Virhekoodi: <1>{{ errorCode }}). Ota yhteyttä palvelimen ylläpitäjään." + }, + "group_call_loader": { + "banned_body": "Sinulle on annettu porttikielto huoneesta.", + "banned_heading": "Kielletty", + "call_ended_body": "Sinut on poistettu puhelusta.", + "call_ended_heading": "Puhelu päättyi", + "knock_reject_body": "Liittymispyyntösi hylättiin.", + "knock_reject_heading": "Pääsy kielletty", + "reason": "Syy: {{reason}}" + }, + "hangup_button_label": "Lopeta puhelu", + "header_label": "Element Call Etusivu", + "header_participants_label": "Osallistujat", + "invite_modal": { + "link_copied_toast": "Linkki kopioitu leikepöydälle", + "title": "Kutsu tähän puheluun" + }, + "join_existing_call_modal": { + "join_button": "Kyllä, liity puheluun", + "text": "Tämä puhelu on jo olemassa, haluatko liittyä siihen?", + "title": "Liity olemassa olevaan puheluun?" + }, + "layout_grid_label": "Ruudukko", + "layout_spotlight_label": "Valokeila", + "lobby": { + "ask_to_join": "Pyydä liittymistä puheluun", + "join_as_guest": "Liity vieraana", + "join_button": "Liity puheluun", + "leave_button": "Takaisin viimeisimpiin puheluihin", + "waiting_for_invite": "Pyyntö lähetetty! Odotetaan lupaa liittyä…" + }, + "log_in": "Kirjaudu sisään", + "logging_in": "Kirjaudutaan sisään…", + "login_auth_links": "<0>Luo tili tai <2>Käytä vieraana", + "login_auth_links_prompt": "Etkö ole vielä rekisteröitynyt?", + "login_subheading": "Jatkaaksesi Elementiin", + "login_title": "Kirjaudu sisään", + "microphone_off": "Mikrofoni pois päältä", + "microphone_on": "Mikrofoni päällä", + "mute_microphone_button_label": "Mykistä mikrofoni", + "participant_count_one": "{{count, number}}", + "participant_count_other": "{{count, number}}", + "qr_code": "QR-koodi", + "rageshake_button_error_caption": "Yritä uudelleen lokien lähettämistä", + "rageshake_request_modal": { + "body": "Toisella käyttäjällä tässä puhelussa on ongelma. Jotta voimme diagnosoida nämä ongelmat paremmin, haluaisimme kerätä virheenkorjauslokin.", + "title": "Virheenkorjauslokipyyntö" + }, + "rageshake_send_logs": "Lähetä virheenkorjauslokit", + "rageshake_sending": "Lähetetään…", + "rageshake_sending_logs": "Lähetetään virheenkorjauslokeja…", + "rageshake_sent": "Kiitos!", + "recaptcha_dismissed": "Recaptcha hylätty", + "recaptcha_not_loaded": "Recaptcha ei ole ladattu", + "recaptcha_ssla_caption": "Tämä sivusto on suojattu ReCAPTCHA:lla, ja siihen sovelletaan Googlen <2>Tietosuojakäytäntöä ja <6>Palveluehtoja.<9>Klikkaamalla \"Rekisteröidy\" hyväksyt <12>ohjelmisto- ja palvelulisenssisopimuksen (SSLA)", + "register": { + "passwords_must_match": "Salasanojen on täsmättävä", + "registering": "Rekisteröidään…" + }, + "register_auth_links": "<0>Onko sinulla jo tili?<1><0>Kirjaudu sisään tai <2>Käytä vieraana", + "register_confirm_password_label": "Vahvista salasana", + "register_heading": "Luo tilisi", + "return_home_button": "Palaa aloitusnäyttöön", + "room_auth_view_continue_button": "Jatka", + "room_auth_view_ssla_caption": "Klikkaamalla \"Liity puheluun nyt\" hyväksyt <2>ohjelmisto- ja palvelulisenssisopimuksen (SSLA)", + "screenshare_button_label": "Jaa näyttö", + "settings": { + "audio_tab": { + "effect_volume_description": "Säädä äänenvoimakkuutta, jolla reaktioiden ja käden nostojen ääniefektit toistetaan.", + "effect_volume_label": "Ääniefektien äänenvoimakkuus" + }, + "background_blur_header": "Tausta", + "background_blur_label": "Sumenna videon tausta", + "blur_not_supported_by_browser": "(Tämä laite ei tue taustan sumennusta.)", + "developer_tab_title": "Kehittäjä", + "devices": { + "camera": "Kamera", + "camera_numbered": "Kamera {{n}}", + "default": "Oletus", + "default_named": "Oletus <2>({{name}})", + "microphone": "Mikrofoni", + "microphone_numbered": "Mikrofoni {{n}}", + "speaker": "Kaiutin", + "speaker_numbered": "Kaiutin {{n}}" + }, + "feedback_tab_body": "Jos sinulla on ongelmia tai haluat vain antaa palautetta, lähetä meille lyhyt kuvaus alla.", + "feedback_tab_description_label": "Palautteesi", + "feedback_tab_h4": "Lähetä palautetta", + "feedback_tab_send_logs_label": "Sisällytä virheenkorjauslokit", + "feedback_tab_thank_you": "Kiitos, saimme palautteesi!", + "feedback_tab_title": "Palaute", + "opt_in_description": "<0><1>Voit peruuttaa suostumuksesi poistamalla tämän ruudun valinnan. Jos puhelu on käynnissä, tämä asetus tulee voimaan puhelun lopussa.", + "preferences_tab": { + "developer_mode_label": "Kehittäjätila", + "developer_mode_label_description": "Ota kehittäjätila käyttöön ja näytä kehittäjäasetukset-välilehti.", + "introduction": "Täällä voit määrittää lisävaihtoehtoja parempaa käyttökokemusta varten.", + "reactions_play_sound_description": "Toista äänitefekti, kun joku lähettää reaktion puheluun.", + "reactions_play_sound_label": "Toista reaktioäänet", + "reactions_show_description": "Näytä animaatio, kun joku lähettää reaktion.", + "reactions_show_label": "Näytä reaktiot", + "show_hand_raised_timer_description": "Näytä ajastin, kun osallistuja nostaa kätensä", + "show_hand_raised_timer_label": "Näytä kädennoston kesto" + } + }, + "star_rating_input_label_one": "{{count}} tähti", + "star_rating_input_label_other": "{{count}} tähteä", + "start_new_call": "Aloita uusi puhelu", + "start_video_button_label": "Aloita video", + "stop_screenshare_button_label": "Jaetaan näyttöä", + "stop_video_button_label": "Lopeta video", + "submitting": "Lähetetään…", + "switch_camera": "Vaihda kameraa", + "unauthenticated_view_body": "Etkö ole vielä rekisteröitynyt? <2>Luo tili", + "unauthenticated_view_login_button": "Kirjaudu tilillesi", + "unauthenticated_view_ssla_caption": "Klikkaamalla \"Siirry\" hyväksyt <2>ohjelmisto- ja palvelulisenssisopimuksen (SSLA)", + "unmute_microphone_button_label": "Poista mikrofonin mykistys", + "version": "{{productName}} versio: {{version}}", + "video_tile": { + "always_show": "Näytä aina", + "camera_starting": "Videota ladataan...", + "change_fit_contain": "Sovita kehykseen", + "collapse": "Supista", + "expand": "Laajenna", + "mute_for_me": "Mykistä minulle", + "muted_for_me": "Mykistetty minulle", + "volume": "Äänenvoimakkuus", + "waiting_for_media": "Odotetaan mediaa..." + } +} diff --git a/locales/fr/app.json b/locales/fr/app.json index f465244d..279542b1 100644 --- a/locales/fr/app.json +++ b/locales/fr/app.json @@ -21,9 +21,7 @@ "text": "Prêt à rejoindre ?", "title": "Choisissez l’application" }, - "browser_media_e2ee_unsupported": "Votre navigateur web ne prend pas en charge le chiffrement de bout-en-bout des médias. Les navigateurs pris en charge sont Chrome, Safari, Firefox >= 117", "call_ended_view": { - "body": "Vous avez été déconnecté de l’appel", "create_account_button": "Créer un compte", "create_account_prompt": "<0>Pourquoi ne pas créer un mot de passe pour conserver votre compte ?<1>Vous pourrez garder votre nom et définir un avatar pour vos futurs appels", "feedback_done": "<0>Merci pour votre commentaire !", @@ -35,7 +33,6 @@ }, "call_name": "Nom de l’appel", "common": { - "camera": "Caméra", "display_name": "Nom d’affichage", "encrypted": "Chiffré", "home": "Accueil", @@ -48,8 +45,6 @@ "video": "Vidéo" }, "disconnected_banner": "La connexion avec le serveur a été perdue.", - "full_screen_view_description": "<0>Soumettre les journaux de débogage nous aidera à déterminer le problème.", - "full_screen_view_h1": "<0>Oups, quelque chose s’est mal passé.", "hangup_button_label": "Terminer l’appel", "header_label": "Accueil Element Call", "invite_modal": { @@ -82,7 +77,6 @@ "rageshake_sending": "Envoi…", "rageshake_sending_logs": "Envoi des journaux de débogage…", "rageshake_sent": "Merci !", - "recaptcha_caption": "Ce site est protégé par ReCAPTCHA, la <2>politique de confidentialité et les <6>conditions d’utilisation de Google s’appliquent.<9>En cliquant sur « S’enregistrer » vous acceptez également notre <12>Contrat de Licence Utilisateur Final (CLUF)", "recaptcha_dismissed": "Recaptcha refusé", "recaptcha_not_loaded": "Recaptcha non chargé", "register": { @@ -92,7 +86,6 @@ "register_auth_links": "<0>Vous avez déjà un compte ?<1><0>Se connecter Ou <2>Accès invité", "register_confirm_password_label": "Confirmer le mot de passe", "return_home_button": "Retour à l’accueil", - "room_auth_view_eula_caption": "En cliquant sur « Rejoindre l’appel maintenant », vous acceptez notre <2>Contrat de Licence Utilisateur Final (CLUF)", "screenshare_button_label": "Partage d’écran", "settings": { "developer_tab_title": "Développeur", @@ -102,8 +95,7 @@ "feedback_tab_send_logs_label": "Inclure les journaux de débogage", "feedback_tab_thank_you": "Merci, nous avons reçu vos commentaires !", "feedback_tab_title": "Commentaires", - "opt_in_description": "<0><1>Vous pouvez retirer votre consentement en décochant cette case. Si vous êtes actuellement en communication, ce paramètre prendra effet à la fin de l’appel.", - "speaker_device_selection_label": "Intervenant" + "opt_in_description": "<0><1>Vous pouvez retirer votre consentement en décochant cette case. Si vous êtes actuellement en communication, ce paramètre prendra effet à la fin de l’appel." }, "star_rating_input_label_one": "{{count}} favori", "star_rating_input_label_other": "{{count}} favoris", @@ -113,7 +105,6 @@ "stop_video_button_label": "Arrêter la vidéo", "submitting": "Envoi…", "unauthenticated_view_body": "Pas encore de compte ? <2>En créer un", - "unauthenticated_view_eula_caption": "En cliquant sur « Commencer », vous acceptez notre <2>Contrat de Licence Utilisateur Final (CLUF)", "unauthenticated_view_login_button": "Connectez vous à votre compte", "unmute_microphone_button_label": "Allumer le microphone", "version": "Version : {{version}}" diff --git a/locales/id/app.json b/locales/id/app.json index c479d604..ac1c6221 100644 --- a/locales/id/app.json +++ b/locales/id/app.json @@ -5,14 +5,21 @@ "action": { "close": "Tutup", "copy_link": "Salin tautan", + "edit": "Sunting", "go": "Bergabung", "invite": "Undang", + "lower_hand": "Turunkan tangan", "no": "Tidak", + "pick_reaction": "Pilih reaksi", + "raise_hand": "Angkat tangan", "register": "Daftar", "remove": "Hapus", + "show_less": "Tampilkan lebih sedikit", + "show_more": "Tampilkan lebih banyak", "sign_in": "Masuk", "sign_out": "Keluar", - "submit": "Kirim" + "submit": "Kirim", + "upload_file": "Unggah berkas" }, "analytics_notice": "Dengan bergabung dalam beta ini, Anda mengizinkan kami untuk mengumpulkan data anonim, yang kami gunakan untuk meningkatkan produk ini. Anda dapat mempelajari lebih lanjut tentang data apa yang kami lacak dalam <2>Kebijakan Privasi dan <5>Kebijakan Kuki kami.", "app_selection_modal": { @@ -21,9 +28,7 @@ "text": "Siap untuk bergabung?", "title": "Pilih plikasi" }, - "browser_media_e2ee_unsupported": "Peramban web Anda tidak mendukung enkripsi media ujung ke ujung. Peramban yang didukung adalah Chrome, Safari, dan Firefox >=117", "call_ended_view": { - "body": "Anda terputus dari panggilan", "create_account_button": "Buat akun", "create_account_prompt": "<0>Kenapa tidak selesaikan dengan mengatur sebuah kata sandi untuk menjaga akun Anda?<1>Anda akan dapat tetap menggunakan nama Anda dan atur sebuah avatar untuk digunakan dalam panggilan di masa mendatang", "feedback_done": "<0>Terima kasih atas masukan Anda!", @@ -35,21 +40,69 @@ }, "call_name": "Nama panggilan", "common": { - "camera": "Kamera", + "analytics": "Analitik", + "audio": "Audio", + "avatar": "Avatar", + "back": "Kembali", "display_name": "Nama tampilan", "encrypted": "Terenkripsi", "home": "Beranda", "loading": "Memuat…", - "microphone": "Mikrofon", + "next": "Berikutnya", + "options": "Opsi", "password": "Kata sandi", + "preferences": "Preferensi", "profile": "Profil", + "reaction": "Reaksi", + "reactions": "Reaksi", "settings": "Pengaturan", "unencrypted": "Tidak terenkripsi", - "username": "Nama pengguna" + "username": "Nama pengguna", + "video": "Video" + }, + "developer_mode": { + "crypto_version": "Versi kripto: {{version}}", + "debug_tile_layout_label": "Awakutu tata letak ubin", + "device_id": "ID perangkat: {{id}}", + "duplicate_tiles_label": "Jumlah salinan ubin tambahan per peserta", + "environment_variables": "Variabel lingkungan", + "hostname": "Nama hos: {{hostname}}", + "livekit_server_info": "Info Server LiveKit", + "livekit_sfu": "SFU LiveKit: {{url}}", + "matrix_id": "ID Matrix: {{id}}", + "show_connection_stats": "Tampilkan statistik koneksi", + "show_non_member_tiles": "Tampilkan ubin untuk media non-anggota", + "url_params": "Parameter URL", + "use_new_membership_manager": "Gunakan implementasi baru dari panggilan MembershipManager", + "use_to_device_key_transport": "Gunakan untuk transportasi kunci perangkat. Ini akan kembali ke transportasi kunci ruangan ketika anggota panggilan lain mengirim kunci ruangan" }, "disconnected_banner": "Koneksi ke server telah hilang.", - "full_screen_view_description": "<0>Mengirim catatan pengawakutuan akan membantu kami melacak masalahnya.", - "full_screen_view_h1": "<0>Aduh, ada yang salah.", + "error": { + "call_is_not_supported": "Panggilan tidak didukung", + "call_not_found": "Panggilan tidak ditemukan", + "call_not_found_description": "<0>Tautan itu tampaknya bukan milik panggilan yang ada. Periksa apakah Anda memiliki tautan yang tepat, atau <1> buat yang baru.", + "connection_lost": "Koneksi terputus", + "connection_lost_description": "Anda terputus dari panggilan.", + "e2ee_unsupported": "Peramban tidak kompatibel", + "e2ee_unsupported_description": "Peramban web Anda tidak mendukung panggilan terenkripsi. Peramban yang didukung meliputi Chrome, Safari, dan Firefox 117+.", + "generic": "Ada yang salah", + "generic_description": "Mengirimkan log awakutu akan membantu kami melacak masalah.", + "insufficient_capacity": "Kapasitas tidak mencukupi", + "insufficient_capacity_description": "Server telah mencapai kapasitas maksimum dan Anda tidak dapat bergabung dalam panggilan saat ini. Coba lagi nanti, atau hubungi admin server Anda jika masalah masih berlanjut.", + "matrix_rtc_focus_missing": "Server tidak dikonfigurasi untuk bekerja dengan {{brand}}. Silakan hubungi admin server Anda (Domain: {{domain}}, Kode Kesalahan: {{ errorCode }}).", + "open_elsewhere": "Dibuka di tab lain", + "open_elsewhere_description": "{{brand}} telah dibuka di tab lain. Jika sepertinya tidak benar, coba muat ulang halaman.", + "unexpected_ec_error": "Terjadi kesalahan tak terduga (<0> Kode Kesalahan:<1>{{ errorCode }}). Silakan hubungi admin server Anda." + }, + "group_call_loader": { + "banned_body": "Anda telah dilarang dari ruangan.", + "banned_heading": "Dilarang", + "call_ended_body": "Anda telah dikeluarkan dari panggilan.", + "call_ended_heading": "Panggilan berakhir", + "knock_reject_body": "Permintaan Anda untuk bergabung ditolak.", + "knock_reject_heading": "Akses ditolak", + "reason": "Alasan: {{reason}}" + }, "hangup_button_label": "Akhiri panggilan", "header_label": "Beranda Element Call", "header_participants_label": "Peserta", @@ -65,15 +118,23 @@ "layout_grid_label": "Kisi", "layout_spotlight_label": "Sorotan", "lobby": { + "ask_to_join": "Permintaan untuk bergabung dalam panggilan", + "join_as_guest": "Bergabung sebagai tamu", "join_button": "Bergabung ke panggilan", - "leave_button": "Kembali ke terkini" + "leave_button": "Kembali ke terkini", + "waiting_for_invite": "Permintaan terkirim! Menunggu izin untuk bergabung…" }, + "log_in": "Masuk", "logging_in": "Memasuki…", "login_auth_links": "<0>Buat akun Atau <2>Akses sebagai tamu", + "login_auth_links_prompt": "Belum terdaftar?", + "login_subheading": "Untuk melanjutkan ke Element", "login_title": "Masuk", "microphone_off": "Mikrofon dimatikan", "microphone_on": "Mikrofon dinyalakan", "mute_microphone_button_label": "Matikan mikrofon", + "participant_count_other": "{{count, number}}", + "qr_code": "Kode QR", "rageshake_button_error_caption": "Kirim ulang catatan", "rageshake_request_modal": { "body": "Pengguna yang lain di panggilan ini sedang mengalami masalah. Supaya dapat mendiagnosa masalah ini, kami ingin mengumpulkan sebuah catatan pengawakutuan.", @@ -83,20 +144,39 @@ "rageshake_sending": "Mengirimkan…", "rageshake_sending_logs": "Mengirimkan catatan pengawakutuan…", "rageshake_sent": "Terima kasih!", - "recaptcha_caption": "Situs ini dilindungi oleh reCAPTCHA dan <2>Kebijakan Privasi dan <6>Ketentuan Layanan Google berlaku.<9>Dengan mengeklik \"Daftar\", Anda menyetujui <12>Perjanjian Lisensi Pengguna Akhir (EULA) kami", "recaptcha_dismissed": "Recaptcha ditutup", "recaptcha_not_loaded": "Recaptcha tidak dimuat", + "recaptcha_ssla_caption": "Situs ini dilindungi oleh ReCAPTCHA dan <2>Kebijakan Privasi dan <6>Ketentuan Layanan Google berlaku.<9>Dengan mengeklik \"Daftar\", Anda menyetujui <12>Perjanjian Lisensi Perangkat Lunak dan Layanan (SSLA) kami", "register": { "passwords_must_match": "Kata sandi harus cocok", "registering": "Mendaftarkan…" }, "register_auth_links": "<0>Sudah punya akun?<1><0>Masuk Atau <2>Akses sebagai tamu", "register_confirm_password_label": "Konfirmasi kata sandi", + "register_heading": "Buat akun Anda", "return_home_button": "Kembali ke layar beranda", - "room_auth_view_eula_caption": "Dengan mengeklik \"Bergabung ke panggilan sekarang\", Anda menyetujui <2>Perjanjian Lisensi Pengguna Akhir (EULA) kami", + "room_auth_view_continue_button": "Lanjutkan", + "room_auth_view_ssla_caption": "Dengan mengeklik “Gabung panggilan sekarang”, Anda menyetujui <2>Perjanjian Lisensi Perangkat Lunak dan Layanan (SSLA) kami", "screenshare_button_label": "Bagikan layar", "settings": { + "audio_tab": { + "effect_volume_description": "Sesuaikan volume saat reaksi dan efek tangan terangkat diputar.", + "effect_volume_label": "Volume efek suara" + }, + "background_blur_header": "Latar belakang", + "background_blur_label": "Buramkan latar belakang video", + "blur_not_supported_by_browser": "(Pemburaman latar belakang tidak didukung oleh perangkat ini.)", "developer_tab_title": "Pengembang", + "devices": { + "camera": "Kamera", + "camera_numbered": "Kamera {{n}}", + "default": "Bawaan", + "default_named": "Bawaan <2>({{name}})", + "microphone": "Mikrofon", + "microphone_numbered": "Mikrofon {{n}}", + "speaker": "Speaker", + "speaker_numbered": "Speaker {{n}}" + }, "feedback_tab_body": "Jika Anda mengalami masalah atau hanya ingin memberikan masukan, silakan kirimkan kami deskripsi pendek di bawah.", "feedback_tab_description_label": "Masukan Anda", "feedback_tab_h4": "Kirim masukan", @@ -104,7 +184,17 @@ "feedback_tab_thank_you": "Terima kasih, kami telah menerima masukan Anda!", "feedback_tab_title": "Masukan", "opt_in_description": "<0><1>Anda dapat mengurungkan kembali izin dengan mencentang kotak ini. Jika Anda saat ini dalam panggilan, pengaturan ini akan diterapkan di akhir panggilan.", - "speaker_device_selection_label": "Pembicara" + "preferences_tab": { + "developer_mode_label": "Mode pengembang", + "developer_mode_label_description": "Aktifkan mode pengembang dan tampilkan tab pengaturan pengembang.", + "introduction": "Di sini Anda dapat mengonfigurasi opsi tambahan untuk pengalaman yang lebih baik.", + "reactions_play_sound_description": "Mainkan efek suara ketika seseorang mengirim reaksi ke panggilan.", + "reactions_play_sound_label": "Putar suara reaksi", + "reactions_show_description": "Tampilkan animasi ketika ada yang mengirimkan reaksi.", + "reactions_show_label": "Tampilkan reaksi", + "show_hand_raised_timer_description": "Tampilkan pengatur waktu saat peserta mengangkat tangannya", + "show_hand_raised_timer_label": "Tampilkan durasi angkat tangan" + } }, "star_rating_input_label_one": "{{count}} bintang", "star_rating_input_label_other": "{{count}} bintang", @@ -113,9 +203,21 @@ "stop_screenshare_button_label": "Berbagi layar", "stop_video_button_label": "Matikan video", "submitting": "Mengirim…", + "switch_camera": "Ganti kamera", "unauthenticated_view_body": "Belum terdaftar? <2>Buat sebuah akun", - "unauthenticated_view_eula_caption": "Dengan mengeklik \"Bergabung\", Anda menyetujui <2>Perjanjian Lisensi Pengguna Akhir (EULA)", "unauthenticated_view_login_button": "Masuk ke akun Anda", + "unauthenticated_view_ssla_caption": "Dengan mengeklik \"Go\", Anda menyetujui <2>Perjanjian Lisensi Perangkat Lunak dan Layanan (SSLA) kami", "unmute_microphone_button_label": "Nyalakan mikrofon", - "version": "Versi: {{version}}" + "version": "Versi: {{version}}", + "video_tile": { + "always_show": "Selalu tampilkan", + "camera_starting": "Memuat video...", + "change_fit_contain": "Sesuai dengan bingkai", + "collapse": "Tutup", + "expand": "Buka", + "mute_for_me": "Bisukan untuk saya", + "muted_for_me": "Dibisukan untuk saya", + "volume": "Volume", + "waiting_for_media": "Menunggu media..." + } } diff --git a/locales/it/app.json b/locales/it/app.json index 6fe08427..d3708d11 100644 --- a/locales/it/app.json +++ b/locales/it/app.json @@ -5,13 +5,21 @@ "action": { "close": "Chiudi", "copy_link": "Copia collegamento", + "edit": "Modifica", "go": "Vai", "invite": "Invita", + "lower_hand": "Abbassa la mano", + "no": "No", + "pick_reaction": "Scegli una reazione", + "raise_hand": "Alza la mano", "register": "Registra", "remove": "Rimuovi", + "show_less": "Mostra meno", + "show_more": "Mostra altro", "sign_in": "Accedi", "sign_out": "Disconnetti", - "submit": "Invia" + "submit": "Invia", + "upload_file": "Carica file" }, "analytics_notice": "Partecipando a questa beta, acconsenti alla raccolta di dati anonimi che usiamo per migliorare il prodotto. Puoi trovare più informazioni su quali dati monitoriamo nella nostra <2>informativa sulla privacy e nell'<5>informativa sui cookie.", "app_selection_modal": { @@ -20,9 +28,7 @@ "text": "Tutto pronto per entrare?", "title": "Seleziona app" }, - "browser_media_e2ee_unsupported": "Il tuo browser non supporta la crittografia end-to-end dei media. I browser supportati sono Chrome, Safari, Firefox >=117", "call_ended_view": { - "body": "Sei stato disconnesso dalla chiamata", "create_account_button": "Crea profilo", "create_account_prompt": "<0>Ti va di terminare impostando una password per mantenere il profilo?<1>Potrai mantenere il tuo nome e impostare un avatar da usare in chiamate future", "feedback_done": "<0>Grazie per la tua opinione!", @@ -34,20 +40,66 @@ }, "call_name": "Nome della chiamata", "common": { - "camera": "Fotocamera", + "analytics": "Statistiche", + "audio": "Audio", + "avatar": "Avatar", + "back": "Indietro", "display_name": "Il tuo nome", "encrypted": "Cifrata", "home": "Pagina iniziale", "loading": "Caricamento…", - "microphone": "Microfono", + "next": "Avanti", + "options": "Opzioni", + "password": "Password", + "preferences": "Preferenze", "profile": "Profilo", + "reaction": "Reazione", + "reactions": "Reazioni", "settings": "Impostazioni", "unencrypted": "Non cifrata", - "username": "Nome utente" + "username": "Nome utente", + "video": "Video" + }, + "developer_mode": { + "crypto_version": "Versione crittografica: {{version}}", + "debug_tile_layout_label": "Debug della disposizione dei riquadri", + "device_id": "ID dispositivo: {{id}}", + "duplicate_tiles_label": "Numero di copie di riquadri aggiuntivi per partecipante", + "hostname": "Nome host: {{hostname}}", + "livekit_server_info": "Informazioni sul server LiveKit", + "livekit_sfu": "SFU LiveKit: {{url}}", + "matrix_id": "ID Matrix: {{id}}", + "show_connection_stats": "Mostra le statistiche di connessione", + "show_non_member_tiles": "Mostra i riquadri per i file multimediali non-membri", + "use_new_membership_manager": "Usa la nuova implementazione della chiamata MembershipManager" }, "disconnected_banner": "La connessione al server è stata persa.", - "full_screen_view_description": "<0>L'invio di registri di debug ci aiuterà ad individuare il problema.", - "full_screen_view_h1": "<0>Ops, qualcosa è andato storto.", + "error": { + "call_is_not_supported": "La chiamata non è supportata", + "call_not_found": "Chiamata non trovata", + "call_not_found_description": "<0>Quel link non sembra appartenere a nessuna chiamata esistente. Controlla di avere il link giusto, oppure <1> creane uno nuovo .", + "connection_lost": "Connessione persa", + "connection_lost_description": "Sei stato disconnesso dalla chiamata.", + "e2ee_unsupported": "Browser incompatibile", + "e2ee_unsupported_description": "Il tuo browser non supporta le chiamate crittografate. I browser supportati sono Chrome, Safari e Firefox 117+.", + "generic": "Qualcosa è andato storto", + "generic_description": "L'invio dei registri di debug ci aiuterà a rintracciare il problema.", + "insufficient_capacity": "Capacità insufficiente", + "insufficient_capacity_description": "Il server ha raggiunto la capacità massima e non è possibile partecipare alla chiamata in questo momento. Riprova più tardi o contatta l'amministratore del server se il problema persiste.", + "matrix_rtc_focus_missing": "Il server non è configurato per funzionare con {{brand}}. Contatta l'amministratore del tuo server (Dominio: {{domain}}, codice di errore: {{ errorCode }}).", + "open_elsewhere": "Aperto in un'altra scheda", + "open_elsewhere_description": "{{brand}} è stato aperto in un'altra scheda. Se non ti sembra corretto, prova a ricaricare la pagina.", + "unexpected_ec_error": "Si è verificato un errore imprevisto (<0>Codice errore: <1>{{ errorCode }}). Contatta l'amministratore del tuo server." + }, + "group_call_loader": { + "banned_body": "Sei stato bandito dalla stanza.", + "banned_heading": "Bandito", + "call_ended_body": "Sei stato rimosso dalla chiamata.", + "call_ended_heading": "Chiamata terminata", + "knock_reject_body": "I membri della stanza hanno rifiutato la tua richiesta di partecipazione.", + "knock_reject_heading": "Partecipazione non consentita", + "reason": "Motivo" + }, "hangup_button_label": "Termina chiamata", "header_label": "Inizio di Element Call", "header_participants_label": "Partecipanti", @@ -63,15 +115,24 @@ "layout_grid_label": "Griglia", "layout_spotlight_label": "In primo piano", "lobby": { + "ask_to_join": "Chiedi di partecipare alla chiamata", + "join_as_guest": "Partecipa come ospite", "join_button": "Entra in chiamata", - "leave_button": "Torna ai recenti" + "leave_button": "Torna ai recenti", + "waiting_for_invite": "Richiesta inviata" }, + "log_in": "Accedi", "logging_in": "Accesso…", "login_auth_links": "<0>Crea un profilo o <2>Accedi come ospite", + "login_auth_links_prompt": "Non sei ancora registrato?", + "login_subheading": "Per continuare su Element", "login_title": "Accedi", "microphone_off": "Microfono spento", "microphone_on": "Microfono acceso", "mute_microphone_button_label": "Spegni il microfono", + "participant_count_one": "{{count, number}}", + "participant_count_other": "{{count, number}}", + "qr_code": "Codice QR", "rageshake_button_error_caption": "Riprova l'invio dei registri", "rageshake_request_modal": { "body": "Un altro utente in questa chiamata sta avendo problemi. Per diagnosticare meglio questi problemi, vorremmo raccogliere un registro di debug.", @@ -81,7 +142,6 @@ "rageshake_sending": "Invio…", "rageshake_sending_logs": "Invio dei registri di debug…", "rageshake_sent": "Grazie!", - "recaptcha_caption": "Questo sito è protetto da ReCAPTCHA e si applicano l'<2>informativa sulla privacy e i <6>termini di servizio di Google.<9>Cliccando \"Registra\", accetti il nostro <12>accordo di licenza con l'utente finale (EULA)", "recaptcha_dismissed": "Recaptcha annullato", "recaptcha_not_loaded": "Recaptcha non caricato", "register": { @@ -90,18 +150,44 @@ }, "register_auth_links": "<0>Hai già un profilo?<1><0>Accedi o <2>Accedi come ospite", "register_confirm_password_label": "Conferma password", + "register_heading": "Crea il tuo account", "return_home_button": "Torna alla schermata di iniziale", - "room_auth_view_eula_caption": "Cliccando \"Entra in chiamata ora\", accetti il nostro <2>accordo di licenza con l'utente finale (EULA)", + "room_auth_view_continue_button": "Continua", "screenshare_button_label": "Condividi schermo", "settings": { + "audio_tab": { + "effect_volume_description": "Regola il volume delle reazioni e degli effetti di alzata di mani.", + "effect_volume_label": "Volume degli effetti sonori" + }, "developer_tab_title": "Sviluppatore", + "devices": { + "camera": "Fotocamera", + "camera_numbered": "Fotocamera {{n}}", + "default": "Predefinito", + "default_named": "Predefinito <2>({{name}})", + "microphone": "Microfono", + "microphone_numbered": "Microfono {{n}}", + "speaker": "Altoparlante", + "speaker_numbered": "Altoparlante {{n}}" + }, "feedback_tab_body": "Se stai riscontrando problemi o semplicemente vuoi dare un'opinione, inviaci una breve descrizione qua sotto.", "feedback_tab_description_label": "Il tuo commento", "feedback_tab_h4": "Invia commento", "feedback_tab_send_logs_label": "Includi registri di debug", "feedback_tab_thank_you": "Grazie, abbiamo ricevuto il tuo commento!", + "feedback_tab_title": "Commenti", "opt_in_description": "<0><1>Puoi revocare il consenso deselezionando questa casella. Se attualmente sei in una chiamata, avrà effetto al termine di essa.", - "speaker_device_selection_label": "Altoparlante" + "preferences_tab": { + "developer_mode_label": "Modalità sviluppatore", + "developer_mode_label_description": "Attiva la modalità sviluppatore e mostra la scheda di impostazioni sviluppatore.", + "introduction": "Qui puoi configurare opzioni extra per un'esperienza migliore.", + "reactions_play_sound_description": "Riprodurre un effetto sonoro quando qualcuno invia una reazione in una chiamata.", + "reactions_play_sound_label": "Riproduci suoni di reazione", + "reactions_show_description": "Mostra un'animazione quando qualcuno invia una reazione.", + "reactions_show_label": "Mostra reazioni", + "show_hand_raised_timer_description": "Mostra un contatore quando un partecipante alza la mano", + "show_hand_raised_timer_label": "Mostra la durata dell'alzata di mano" + } }, "star_rating_input_label_one": "{{count}} stelle", "star_rating_input_label_other": "{{count}} stelle", @@ -110,9 +196,20 @@ "stop_screenshare_button_label": "Condivisione schermo", "stop_video_button_label": "Ferma video", "submitting": "Invio…", + "switch_camera": "Cambia fotocamera", "unauthenticated_view_body": "Non hai ancora un profilo? <2>Creane uno", - "unauthenticated_view_eula_caption": "Cliccando \"Vai\", accetti il nostro <2>accordo di licenza con l'utente finale (EULA)", "unauthenticated_view_login_button": "Accedi al tuo profilo", "unmute_microphone_button_label": "Riaccendi il microfono", - "version": "Versione: {{version}}" + "version": "Versione: {{version}}", + "video_tile": { + "always_show": "Mostra sempre", + "camera_starting": "Caricamento del video...", + "change_fit_contain": "Adatta al frame", + "collapse": "Riduci", + "expand": "Espandi", + "mute_for_me": "Disattiva l'audio per me", + "muted_for_me": "Muto per me", + "volume": "Volume", + "waiting_for_media": "In attesa dei media..." + } } diff --git a/locales/ja/app.json b/locales/ja/app.json index 1641a63b..2b52cfe2 100644 --- a/locales/ja/app.json +++ b/locales/ja/app.json @@ -4,65 +4,120 @@ }, "action": { "close": "閉じる", + "copy_link": "リンクをコピー", "go": "続行", + "invite": "招待", "no": "いいえ", "register": "登録", "remove": "削除", "sign_in": "サインイン", - "sign_out": "サインアウト" + "sign_out": "サインアウト", + "submit": "送信" + }, + "analytics_notice": "ベータ版への参加と同時に、製品の改善のために匿名データを収集することに同意したことになります。追跡するデータの詳細については、<2>プライバシーポリシーと<6>クッキーポリシーをご確認下さい。", + "app_selection_modal": { + "continue_in_browser": "ブラウザで続行", + "open_in_app": "アプリで開く", + "text": "準備完了?", + "title": "アプリを選択" }, "call_ended_view": { - "create_account_button": "アカウントを作成" + "create_account_button": "アカウントを作成", + "create_account_prompt": "<0>パスワードを設定してアカウント設定を保持してみませんか?<1>名前とアバターの設定を次の通話に利用する事ができます。", + "feedback_done": "<0>フィードバックありがとうございます!", + "feedback_prompt": "<0>品質向上のため、皆様のフィードバックをお待ちしております。", + "headline": "{{displayName}} さんの通話は終了しました。", + "not_now_button": "終了せずホーム画面に戻る", + "reconnect_button": "再接続", + "survey_prompt": "通話はどうでしたか?" }, + "call_name": "通話名", "common": { + "analytics": "分析", "audio": "音声", "avatar": "アバター", - "camera": "カメラ", "display_name": "表示名", + "encrypted": "暗号化済み", "home": "ホーム", "loading": "読み込んでいます…", - "microphone": "マイク", + "options": "オプション", "password": "パスワード", "profile": "プロフィール", "settings": "設定", + "unencrypted": "暗号化されていません", "username": "ユーザー名", "video": "ビデオ" }, - "full_screen_view_h1": "<0>何かがうまく行きませんでした。", + "disconnected_banner": "サーバーへの接続が失われました。", + "hangup_button_label": "通話終了", "header_label": "Element Call ホーム", + "header_participants_label": "参加者", + "invite_modal": { + "link_copied_toast": "リンクがクリップボードにコピーされました", + "title": "この通話に招待する" + }, "join_existing_call_modal": { "join_button": "はい、通話に参加", "text": "この通話は既に存在します。参加しますか?", "title": "既存の通話に参加しますか?" }, + "layout_grid_label": "グリッド", "layout_spotlight_label": "スポットライト", "lobby": { - "join_button": "通話に参加" + "join_button": "通話に参加", + "leave_button": "最近に戻る" }, + "log_in": "ログイン", "logging_in": "ログインしています…", "login_auth_links": "<0>アカウントを作成または<2>ゲストとしてアクセス", + "login_auth_links_prompt": "登録はまだですか?", + "login_subheading": "Element を続けるには", "login_title": "ログイン", + "microphone_off": "マイクオフ", + "microphone_on": "マイクオン", + "mute_microphone_button_label": "ミュート", + "rageshake_button_error_caption": "ログ送信の再試行", "rageshake_request_modal": { + "body": "この通話に参加している別のユーザーに問題が発生しています。この問題のより良い診断のため、デバッグ ログを収集したいと考えています。", "title": "デバッグログを要求" }, "rageshake_send_logs": "デバッグログを送信", "rageshake_sending": "送信しています…", "rageshake_sending_logs": "デバッグログを送信しています…", + "rageshake_sent": "ありがとうございます!", + "recaptcha_dismissed": "Recaptcha は却下されました", + "recaptcha_not_loaded": "Recaptcha が読み込まれませんでした", "register": { "passwords_must_match": "パスワードが一致する必要があります", "registering": "登録しています…" }, "register_auth_links": "<0>既にアカウントをお持ちですか?<1><0>ログインまたは<2>ゲストとしてアクセス", "register_confirm_password_label": "パスワードを確認", + "register_heading": "アカウントを作成", "return_home_button": "ホーム画面に戻る", "screenshare_button_label": "画面共有", "settings": { "developer_tab_title": "開発者", + "feedback_tab_body": "問題が発生している場合、もしくはフィードバックを提供したい場合は、以下に簡単な説明を入力してお送りください。", + "feedback_tab_description_label": "フィードバック", "feedback_tab_h4": "フィードバックを送信", "feedback_tab_send_logs_label": "デバッグログを含める", - "speaker_device_selection_label": "スピーカー" + "feedback_tab_thank_you": "ありがとうございます。フィードバックを受け取りました!", + "feedback_tab_title": "フィードバック", + "opt_in_description": "<0><1>このボックスのチェックを外すと同意を取り消すことができます。現在通話中の場合、この変更は通話終了後に有効になります。" }, + "start_new_call": "新しい通話を開始", + "start_video_button_label": "ビデオを開始", + "stop_screenshare_button_label": "共有画面", + "stop_video_button_label": "ビデオを停止", + "submitting": "送信中…", "unauthenticated_view_body": "アカウントがありませんか? <2>アカウントを作成", "unauthenticated_view_login_button": "アカウントにログイン", - "version": "バージョン:{{version}}" + "unmute_microphone_button_label": "マイクのミュート解除", + "version": "バージョン:{{version}}", + "video_tile": { + "change_fit_contain": "フレームに合わせる", + "mute_for_me": "ミュートする", + "volume": "ボリューム" + } } diff --git a/locales/lv/app.json b/locales/lv/app.json index ee48986f..4c351d97 100644 --- a/locales/lv/app.json +++ b/locales/lv/app.json @@ -4,17 +4,31 @@ }, "action": { "close": "Aizvērt", + "copy_link": "Kopēt saiti", + "edit": "Labot", "go": "Aiziet", + "invite": "Uzaicināt", + "lower_hand": "Nolaist roku", "no": "Nē", + "pick_reaction": "Reaģēt", + "raise_hand": "Pacelt roku", "register": "Reģistrēties", "remove": "Noņemt", + "show_less": "Rādīt mazāk", + "show_more": "Rādīt vairāk", "sign_in": "Pieteikties", "sign_out": "Atteikties", - "submit": "Iesniegt" + "submit": "Iesniegt", + "upload_file": "Augšupielādēt failu" + }, + "analytics_notice": "Piedaloties šajā beta versijā, jūs piekrītat anonīmu datu vākšanai, ko mēs izmantojam produkta uzlabošanai. Plašāku informāciju par to, kādus datus mēs izsekojam, varat atrast mūsu <2>konfidencialitātes politikā un mūsu <6>sīkfailu politikā.", + "app_selection_modal": { + "continue_in_browser": "Turpināt pārlūkprogrammā", + "open_in_app": "Atvērt lietotnē", + "text": "Gatavs pievienoties?", + "title": "Izvēlies lietotni" }, - "analytics_notice": "Piedalīšanās šajā beta apliecina piekrišanu anonīmu datu ievākšanai, ko mēs izmantojam, lai uzlabotu izstrādājumu. Vairāk informācijas par datiem, ko mēs ievācam, var atrast mūsu <2>privātuma nosacījumos un <5>sīkdatņu nosacījumos.", "call_ended_view": { - "body": "Tu tiki atvienots no zvana", "create_account_button": "Izveidot kontu", "create_account_prompt": "<0>Kādēļ nepabeigt ar paroles iestatīšanu, lai paturētu savu kontu?<1>Būs iespējams paturēt savu vārdu un iestatīt attēlu izmantošanai turpmākajos zvanos", "feedback_done": "<0>Paldies par atsauksmi!", @@ -24,35 +38,104 @@ "reconnect_button": "Atkārtoti savienoties", "survey_prompt": "Kā Tev veicās?" }, + "call_name": "Zvana nosaukums", "common": { + "analytics": "Analītika", "audio": "Skaņa", "avatar": "Attēls", - "camera": "Kamera", + "back": "Atpakaļ", "display_name": "Attēlojamais vārds", + "encrypted": "Šifrēts", "home": "Sākums", "loading": "Lādējas…", - "microphone": "Mikrofons", + "next": "Nākamais", + "options": "Opcijas", "password": "Parole", + "preferences": "Iestatījumi", "profile": "Profils", + "reaction": "Reakcija", + "reactions": "Reakcijas", "settings": "Iestatījumi", - "username": "Lietotājvārds" + "unencrypted": "Nav šifrēts", + "username": "Lietotājvārds", + "video": "Video" + }, + "developer_mode": { + "crypto_version": "Crypto versija: {{version}}", + "debug_tile_layout_label": "Vietu izkārtojuma atkļūdošana", + "device_id": "Ierīces ID: {{id}}", + "duplicate_tiles_label": "Papildu vietu kopiju skaits vienam dalībniekam", + "environment_variables": "Vides mainīgie", + "hostname": "Saimniekdatora nosaukums: {{hostname}}", + "livekit_server_info": "LiveKit Server informācija", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix ID: {{id}}", + "show_connection_stats": "Rādīt savienojuma statistiku", + "show_non_member_tiles": "Rādīt vietu medijiem no ne-dalībniekiem", + "url_params": "URL parametri", + "use_new_membership_manager": "Izmantojiet jauno zvana MembershipManager versiju" }, "disconnected_banner": "Ir zaudēts savienojums ar serveri.", - "full_screen_view_description": "<0>Atkļūdošanas žurnāla ierakstu iesūtīšana palīdzēs mums atklāt nepilnību.", - "full_screen_view_h1": "<0>Ak vai, kaut kas nogāja greizi!", + "error": { + "call_is_not_supported": "Zvans netiek atbalstīts", + "call_not_found": "Zvans nav atrasts", + "call_not_found_description": "<0>Šķiet, ka šī saite nepieder nevienam esošam zvaniem. Pārbaudiet, vai jums ir pareizā saite, vai <1> izveidojiet jaunu. ", + "connection_lost": "Savienojums zaudēts", + "connection_lost_description": "Jūs tikāt atvienots no zvana.", + "e2ee_unsupported": "Nesaderīgs pārlūks", + "e2ee_unsupported_description": "Jūsu tīmekļa pārlūkprogramma neatbalsta encrypted zvanus. Atbalstītās pārlūkprogrammas ir Chrome, Safari un Firefox 117+.", + "generic": "Kaut kas nogāja greizi", + "generic_description": "Atkļūdošanas žurnālu iesniegšana palīdzēs mums izsekot problēmu.", + "insufficient_capacity": "Nepietiekama jauda", + "insufficient_capacity_description": "Serveris ir sasniedzis maksimālo ietilpību, un jūs šobrīd nevarat pievienoties zvanam. Mēģiniet vēlreiz vēlāk vai sazinieties ar servera administratoru, ja problēma joprojām pastāv.", + "matrix_rtc_focus_missing": "Serveris nav konfigurēts darbam ar{{brand}}. Lūdzu, sazinieties ar sava servera administratoru (Domēns: {{domain}}, Kļūdas kods: {{ errorCode }}).", + "open_elsewhere": "Atvērts citā cilnē", + "open_elsewhere_description": "{{brand}} ir atvērts citā cilnē. Ja tas neizklausās pareizi, mēģiniet atkārtoti ielādēt lapu.", + "unexpected_ec_error": "Negaidīta kļūda (<0>kļūdas kods: <1> {{ errorCode }}). Lūdzu, sazinieties ar servera administratoru." + }, + "group_call_loader": { + "banned_body": "Jums ir liegta ieeja šajā istabā.", + "banned_heading": "Aizliegts", + "call_ended_body": "Jūs esat noņemts no zvana.", + "call_ended_heading": "Zvans beidzies", + "knock_reject_body": "Jūsu pieteikums pievienoties tika noraidīts.", + "knock_reject_heading": "Piekļuve liegta", + "reason": "Iemesls: {{reason}}" + }, + "hangup_button_label": "Beigt zvanu", "header_label": "Element Call sākums", + "header_participants_label": "Dalībnieki", + "invite_modal": { + "link_copied_toast": "Saite nokopēta", + "title": "Uzaicināt uz šo zvanu" + }, "join_existing_call_modal": { "join_button": "Jā, pievienoties zvanam", "text": "Šis zvans jau pastāv. Vai vēlies pievienoties?", "title": "Pievienoties esošam zvanam?" }, + "layout_grid_label": "Režģis", "layout_spotlight_label": "Starmešu gaisma", "lobby": { - "join_button": "Pievienoties zvanam" + "ask_to_join": "Pieprasīt pievienoties zvanam", + "join_as_guest": "Pievienojies kā viesis", + "join_button": "Pievienoties zvanam", + "leave_button": "Atpakaļ uz jaunākajiem", + "waiting_for_invite": "Pieprasījums nosūtīts! Gaida atļauju pievienoties..." }, + "log_in": "Pieslēgties", "logging_in": "Piesakās…", "login_auth_links": "<0>Izveidot kontu vai <2>Piekļūt kā viesim", + "login_auth_links_prompt": "Vēl neesi reģistrējies?", + "login_subheading": "Lai turpinātu uz Element", "login_title": "Pieteikties", + "microphone_off": "Mikrofons izslēgts", + "microphone_on": "Mikrofons ieslēgts", + "mute_microphone_button_label": "Izslēgt mikrofonu", + "participant_count_zero": "{{count, number}}", + "participant_count_one": "{{count, number}}", + "participant_count_other": "{{count, number}}", + "qr_code": "QR kods", "rageshake_button_error_caption": "Atkārtoti mēģināt žurnāla ierakstu nosūtīšanu", "rageshake_request_modal": { "body": "Citam lietotājam šajā zvanā ir sarežģījumi. Lai labāk atklātu šīs nepilnības, mēs gribētu iegūt atkļūdošanas žurnālu.", @@ -62,20 +145,36 @@ "rageshake_sending": "Nosūta…", "rageshake_sending_logs": "Nosūta atkļūdošanas žurnāla ierakstus…", "rageshake_sent": "Paldies!", - "recaptcha_caption": "Šo vietni aizsargā ReCAPTCHA, un ir attiecināmi Google <2>privātuma nosacījumi un <6>pakalpojuma noteikumi.<9>Klikšķināšana uz \"Reģistrēties\" sniedz piekrišanu mūsu <12>galalietotāja licencēšanas nolīgumam (GLLN)", "recaptcha_dismissed": "ReCaptcha atmesta", "recaptcha_not_loaded": "ReCaptcha nav ielādēta", + "recaptcha_ssla_caption": "Šo vietni aizsargā ReCAPTCHA un tiek piemēroti Google <2>konfidencialitātes politika un <6>Pakalpojuma noteikumi.<9>Noklikšķinot uz \"Reģistrēties\", jūs piekrītat mūsu <12>Programmatūras un pakalpojumu licences līgumam (SSLA)", "register": { "passwords_must_match": "Parolēm ir jāsakrīt", "registering": "Reģistrē…" }, "register_auth_links": "<0>Jau ir konts?<1><0>Pieteikties vai <2>Piekļūt kā viesim", "register_confirm_password_label": "Apstiprināt paroli", + "register_heading": "Izveido kontu", "return_home_button": "Atgriezties sākuma ekrānā", - "room_auth_view_eula_caption": "Klikšķināšana uz \"Pievienoties zvanam tagad\" apliecina piekrišanu mūsu <2>galalietotāja licencēšanas nolīgumam (GLLN)", + "room_auth_view_continue_button": "Turpināt", + "room_auth_view_ssla_caption": "Noklikšķinot uz “Pievienoties zvanam tūlīt”, jūs piekrītat mūsu <2> programmatūras un pakalpojumu licences līgumam (SSLA) ", "screenshare_button_label": "Kopīgot ekrānu", "settings": { + "audio_tab": { + "effect_volume_description": "Pielāgojiet skaļumu, kurā tiek atskaņotas reakcijas un paceltas rokas skaņas.", + "effect_volume_label": "Skaņas efektu skaļums" + }, "developer_tab_title": "Izstrādātājs", + "devices": { + "camera": "Kamera", + "camera_numbered": "Kamera {{n}}", + "default": "Noklusējums", + "default_named": "Noklusējums <2> ({{name}} )", + "microphone": "Mikrofons", + "microphone_numbered": "Mikrofons {{n}}", + "speaker": "Skaļrunis", + "speaker_numbered": "Skaļrunis {{n}}" + }, "feedback_tab_body": "Ja tiek piedzīvoti sarežģījumi vai vienkārši ir vēlme sniegt kādu atsauksmi, lūgums zemāk nosūtīt mums īsu aprakstu.", "feedback_tab_description_label": "Tava atsauksme", "feedback_tab_h4": "Iesniegt atsauksmi", @@ -83,13 +182,41 @@ "feedback_tab_thank_you": "Paldies, mēs saņēmām atsauksmi!", "feedback_tab_title": "Atsauksmes", "opt_in_description": "<0><1>Savu piekrišanu var atsaukt ar atzīmes noņemšanu no šīs rūtiņas. Ja pašreiz atrodies zvanā, šis iestatījums stāsies spēkā zvana beigās.", - "speaker_device_selection_label": "Runātājs" + "preferences_tab": { + "developer_mode_label": "Izstrādātāja režīms", + "developer_mode_label_description": "Iespējot izstrādātāja režīmu un rādīt cilni izstrādātāja iestatījumi.", + "introduction": "Šeit varat konfigurēt papildu opcijas, lai uzlabotu pieredzi.", + "reactions_play_sound_description": "Atskaņojiet skaņas efektu, kad kāds sūta reakciju uz zvanu.", + "reactions_play_sound_label": "Atskaņojiet reakcijas skaņas", + "reactions_show_description": "Rādīt animāciju, kad kāds nosūta reakciju.", + "reactions_show_label": "Rādīt reakcijas", + "show_hand_raised_timer_description": "Rādīt taimeri, kad dalībnieks paceļ roku", + "show_hand_raised_timer_label": "Rādīt rokas pacelšanas ilgumu" + } }, + "star_rating_input_label_zero": "{{count}} zvaigznes", "star_rating_input_label_one": "{{count}} zvaigzne", "star_rating_input_label_other": "{{count}} zvaigznes", + "start_new_call": "Sākt jaunu zvanu", + "start_video_button_label": "Sākt video", + "stop_screenshare_button_label": "Kopīgo ekrānu", + "stop_video_button_label": "Apturēt video", "submitting": "Iesniedz…", + "switch_camera": "Pārslēgt kameru", "unauthenticated_view_body": "Vēl neesi reģistrējies? <2>Izveidot kontu", - "unauthenticated_view_eula_caption": "Klikšķināšana uz \"Aiziet\" apliecina piekrišanu mūsu <2>galalietotāja licencēšanas nolīgumam (GLLN)", "unauthenticated_view_login_button": "Pieteikties kontā", - "version": "Versija: {{version}}" + "unauthenticated_view_ssla_caption": "Noklikšķinot uz \"Aiziet\", jūs piekrītat mūsu <2>Programmatūras un pakalpojumu licences līgumam (SSLA)", + "unmute_microphone_button_label": "Ieslēgt mikrofonu", + "version": "{{productName}} versija: {{version}}", + "video_tile": { + "always_show": "Vienmēr rādīt", + "camera_starting": "Video ielāde...", + "change_fit_contain": "Pielāgot rāmim", + "collapse": "Sakļaut", + "expand": "Izvērst", + "mute_for_me": "Klusums man", + "muted_for_me": "Man izslēgts", + "volume": "Skaļums", + "waiting_for_media": "Gaida medijus..." + } } diff --git a/locales/pl/app.json b/locales/pl/app.json index db3986ef..c6d9a0f3 100644 --- a/locales/pl/app.json +++ b/locales/pl/app.json @@ -5,14 +5,21 @@ "action": { "close": "Zamknij", "copy_link": "Kopiuj link", + "edit": "Edytuj", "go": "Przejdź", "invite": "Zaproś", + "lower_hand": "Opuść rękę", "no": "Nie", + "pick_reaction": "Wybierz reakcję", + "raise_hand": "Podnieś rękę", "register": "Zarejestruj", "remove": "Usuń", + "show_less": "Pokaż mniej", + "show_more": "Pokaż więcej", "sign_in": "Zaloguj się", "sign_out": "Wyloguj się", - "submit": "Wyślij" + "submit": "Wyślij", + "upload_file": "Prześlij plik" }, "analytics_notice": "Uczestnicząc w tej becie, upoważniasz nas do zbierania anonimowych danych, które wykorzystamy do ulepszenia produktu. Dowiedz się więcej na temat danych, które zbieramy w naszej <2>Polityce prywatności i <5>Polityce ciasteczek.", "app_selection_modal": { @@ -21,9 +28,7 @@ "text": "Gotowy, by dołączyć?", "title": "Wybierz aplikację" }, - "browser_media_e2ee_unsupported": "Twoja przeglądarka nie wspiera szyfrowania end-to-end. Wspierane przeglądarki to Chrome, Safari, Firefox >=117", "call_ended_view": { - "body": "Rozłączono Cię z połączenia", "create_account_button": "Utwórz konto", "create_account_prompt": "<0>Może zechcesz ustawić hasło, aby zachować swoje konto?<1>Będziesz w stanie utrzymać swoją nazwę i ustawić awatar do wyświetlania podczas połączeń w przyszłości", "feedback_done": "<0>Dziękujemy za Twoją opinię!", @@ -35,24 +40,68 @@ }, "call_name": "Nazwa połączenia", "common": { + "analytics": "Dane analityczne", "audio": "Dźwięk", "avatar": "Awatar", - "camera": "Kamera", + "back": "Wstecz", "display_name": "Nazwa wyświetlana", "encrypted": "Szyfrowane", "home": "Strona domowa", "loading": "Ładowanie…", - "microphone": "Mikrofon", + "next": "Dalej", + "options": "Opcje", "password": "Hasło", + "preferences": "Preferencje", "profile": "Profil", + "reaction": "Reakcja", + "reactions": "Reakcje", "settings": "Ustawienia", "unencrypted": "Nie szyfrowane", "username": "Nazwa użytkownika", "video": "Wideo" }, + "developer_mode": { + "crypto_version": "Wersja krypto: {{version}}", + "debug_tile_layout_label": "Układ kafelków Debug", + "device_id": "ID urządzenia: {{id}}", + "duplicate_tiles_label": "Liczba dodatkowych kopii kafelków na uczestnika", + "environment_variables": "Zmienne środowiskowe", + "hostname": "Nazwa hosta: {{hostname}}", + "livekit_server_info": "Informacje serwera LiveKit", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "ID Matrix: {{id}}", + "show_connection_stats": "Pokaż statystyki połączenia", + "show_non_member_tiles": "Pokaż kafelki dla mediów, które nie są od członków", + "url_params": "Parametry URL", + "use_new_membership_manager": "Użyj nowej implementacji połączenia MembershipManager" + }, "disconnected_banner": "Utracono połączenie z serwerem.", - "full_screen_view_description": "<0>Wysłanie dzienników debuggowania pomoże nam ustalić przyczynę problemu.", - "full_screen_view_h1": "<0>Ojej, coś poszło nie tak.", + "error": { + "call_is_not_supported": "Połączenie nie jest obsługiwane", + "call_not_found": "Nie znaleziono połączenia", + "call_not_found_description": "<0>Wygląda na to, że ten link nie należy do żadnego istniejącego połączenia. Sprawdź, czy posiadasz prawidłowy link lub <1>utwórz nowy.", + "connection_lost": "Utracono połączenie", + "connection_lost_description": "Zostałeś rozłączony z rozmowy.", + "e2ee_unsupported": "Niekompatybilna przeglądarka", + "e2ee_unsupported_description": "Twoja przeglądarka nie wspiera szyfrowanych połączeń. Obsługiwane przeglądarki obejmują Chrome, Safari i Firefox 117+.", + "generic": "Coś poszło nie tak", + "generic_description": "Wysłanie dziennika debug, pozwoli nam namierzyć problem.", + "insufficient_capacity": "Za mało miejsca", + "insufficient_capacity_description": "Serwer osiągnął maksymalną pojemność, przez co nie możesz dołączyć do połączenia. Spróbuj ponownie później lub skontaktuj się z administratorem serwera, jeśli problem nie zniknie.", + "matrix_rtc_focus_missing": "Serwer nie jest skonfigurowany do pracy z {{brand}}. Prosimy o kontakt z administratorem serwera (Domena: {{domain}}, Kod błędu: {{ errorCode }}).", + "open_elsewhere": "Otwarto w innej karcie", + "open_elsewhere_description": "{{brand}} został otwarty w innej karcie. Jeśli tak nie jest, spróbuj odświeżyć stronę.", + "unexpected_ec_error": "Wystąpił nieoczekiwany błąd (<0>Kod błędu: <1>{{ errorCode }}). Skontaktuj się z administratorem serwera." + }, + "group_call_loader": { + "banned_body": "Zostałeś zbanowany z pokoju.", + "banned_heading": "Zbanowany", + "call_ended_body": "Zostałeś usunięty z rozmowy.", + "call_ended_heading": "Połączenie zakończone", + "knock_reject_body": "Członkowie pokoju odrzucili Twoją prośbę o dołączenie.", + "knock_reject_heading": "Nie możesz dołączyć", + "reason": "Powód: {{reason}}" + }, "hangup_button_label": "Zakończ połączenie", "header_label": "Strona główna Element Call", "header_participants_label": "Uczestnicy", @@ -68,15 +117,25 @@ "layout_grid_label": "Siatka", "layout_spotlight_label": "Centrum uwagi", "lobby": { + "ask_to_join": "Poproś o dołączenie do rozmowy", + "join_as_guest": "Dołącz jako gość", "join_button": "Dołącz do połączenia", - "leave_button": "Wróć do ostatnie" + "leave_button": "Wróć do ostatnie", + "waiting_for_invite": "Żądanie wysłane" }, + "log_in": "Zaloguj", "logging_in": "Logowanie…", "login_auth_links": "<0>Utwórz konto lub <2>Dołącz jako gość", + "login_auth_links_prompt": "Nie masz konta?", + "login_subheading": "Aby przejść do Element", "login_title": "Zaloguj się", "microphone_off": "Mikrofon wyłączony", "microphone_on": "Mikrofon włączony", "mute_microphone_button_label": "Wycisz mikrofon", + "participant_count_one": "{{count, number}}", + "participant_count_few": "{{count, number}}", + "participant_count_many": "{{count, number}}", + "qr_code": "Kod QR", "rageshake_button_error_caption": "Wyślij logi ponownie", "rageshake_request_modal": { "body": "Inny użytkownik w tym połączeniu napotkał problem. Aby lepiej zdiagnozować tę usterkę, chcielibyśmy zebrać dzienniki debugowania.", @@ -86,20 +145,36 @@ "rageshake_sending": "Wysyłanie…", "rageshake_sending_logs": "Wysyłanie dzienników debugowania…", "rageshake_sent": "Dziękujemy!", - "recaptcha_caption": "Ta witryna jest chroniona przez ReCAPTCHA, więc obowiązują <2>Polityka prywatności i <6>Warunki usług Google. Klikając \"Zarejestruj\", zgadzasz się na naszą <12>Umowę licencyjną (EULA)", "recaptcha_dismissed": "Recaptcha odrzucona", "recaptcha_not_loaded": "Recaptcha nie została załadowana", + "recaptcha_ssla_caption": "Ta strona jest chroniona przez reCAPTCHA i obowiązują <2> Polityka prywatności Google i <6>Warunki korzystania z usługi. <9>Klikając „Zarejestruj się”, wyrażasz zgodę na naszą <12>umowę licencyjną oprogramowania i usług (SSLA)", "register": { "passwords_must_match": "Hasła muszą pasować", "registering": "Rejestrowanie…" }, "register_auth_links": "<0>Masz już konto?<1><0>Zaloguj się lub <2>Dołącz jako gość", "register_confirm_password_label": "Potwierdź hasło", + "register_heading": "Utwórz konto", "return_home_button": "Powróć do strony głównej", - "room_auth_view_eula_caption": "Klikając \"Dołącz teraz do rozmowy\", zgadzasz się na naszą <2>Umowę licencyjną (EULA)", + "room_auth_view_continue_button": "Kontynuuj", + "room_auth_view_ssla_caption": "Klikając \"Dołącz teraz do połączenia\", wyrażasz zgodę na naszą <2>Umowę licencyjną oprogramowania i usług (SSLA)", "screenshare_button_label": "Udostępnij ekran", "settings": { + "audio_tab": { + "effect_volume_description": "Dostosuj głośność, z jaką odtwarzane są efekty reakcji i podniesionej ręki", + "effect_volume_label": "Głośność efektu dźwiękowego" + }, "developer_tab_title": "Programista", + "devices": { + "camera": "Kamera", + "camera_numbered": "Kamera {{n}}", + "default": "Domyślne", + "default_named": "Domyślne <2>({{name}})", + "microphone": "Mikrofon", + "microphone_numbered": "Mikrofon {{n}}", + "speaker": "Głośnik", + "speaker_numbered": "Głośnik {{n}}" + }, "feedback_tab_body": "Jeśli posiadasz problemy lub chciałbyś zgłosić swoją opinię, wyślij nam krótki opis.", "feedback_tab_description_label": "Twoje opinie", "feedback_tab_h4": "Prześlij opinię", @@ -107,7 +182,17 @@ "feedback_tab_thank_you": "Dziękujemy, otrzymaliśmy Twoją opinię!", "feedback_tab_title": "Opinia użytkownika", "opt_in_description": "<0><1>Możesz wycofać swoją zgodę poprzez odznaczenie tego pola. Jeśli już jesteś w trakcie rozmowy, opcja zostanie zastosowana po jej zakończeniu.", - "speaker_device_selection_label": "Głośnik" + "preferences_tab": { + "developer_mode_label": "Tryb programisty", + "developer_mode_label_description": "Włącz tryb programisty i wyświetl kartę ustawień programisty.", + "introduction": "Tutaj możesz skonfigurować dodatkowe opcje dla lepszych doświadczeń.", + "reactions_play_sound_description": "Odtwórz efekt dźwiękowy, gdy ktoś wyślę reakcję w trakcie połączenia.", + "reactions_play_sound_label": "Odtwórz dźwięki reakcji", + "reactions_show_description": "Odtwórz animację, gdy ktoś wyślę reakcję.", + "reactions_show_label": "Pokaż reakcje", + "show_hand_raised_timer_description": "Pokaż licznik, gdy uczestnik podniesie rękę", + "show_hand_raised_timer_label": "Pokaż czas po podniesieniu ręki" + } }, "star_rating_input_label_one": "{{count}} gwiazdki", "star_rating_input_label_other": "{{count}} gwiazdki", @@ -116,9 +201,21 @@ "stop_screenshare_button_label": "Udostępnianie ekranu", "stop_video_button_label": "Zakończ wideo", "submitting": "Wysyłanie…", + "switch_camera": "Przełącz kamerę", "unauthenticated_view_body": "Nie masz konta? <2>Utwórz je", - "unauthenticated_view_eula_caption": "Klikając \"Przejdź\", zgadzasz się na naszą <2>Umowę licencyjną (EULA)", "unauthenticated_view_login_button": "Zaloguj się do swojego konta", + "unauthenticated_view_ssla_caption": "Klikając \"Przejdź\", wyrażasz zgodę na naszą <2>Umowę licencyjną oprogramowania i usług (SSLA)", "unmute_microphone_button_label": "Odcisz mikrofon", - "version": "Wersja: {{version}}" + "version": "Wersja: {{version}}", + "video_tile": { + "always_show": "Zawsze pokazuj", + "camera_starting": "Wczytywanie wideo...", + "change_fit_contain": "Dopasuj do obramowania", + "collapse": "Zwiń", + "expand": "Rozwiń", + "mute_for_me": "Wycisz dla mnie", + "muted_for_me": "Wyciszone dla mnie", + "volume": "Głośność", + "waiting_for_media": "Oczekiwanie na media..." + } } diff --git a/locales/ro/app.json b/locales/ro/app.json index 0b83b0f3..ceaa79b7 100644 --- a/locales/ro/app.json +++ b/locales/ro/app.json @@ -4,20 +4,20 @@ }, "action": { "close": "Închide", - "copy_link": "Copiază linkul", + "copy_link": "Copiaţi linkul", "edit": "Editare", "go": "Du-te", "invite": "Invită", "lower_hand": "Mâna inferioară", - "no": "No", + "no": "Nu", "pick_reaction": "Alegeți reacția", "raise_hand": "Ridicați mâna", - "register": "Inregistrare", + "register": "Creaţi un cont", "remove": "elimina", "show_less": "Arată mai puțin", "show_more": "Arată mai mult", "sign_in": "Autentificare", - "sign_out": "Sign out", + "sign_out": "Deconecta-ţi-vă", "submit": "Trimiteți", "upload_file": "Încărcați fișierul" }, @@ -26,35 +26,28 @@ "continue_in_browser": "Continuați în browser", "open_in_app": "Deschideți în aplicație", "text": "Sunteți gata să vă alăturați?", - "title": "Selectați aplicația" + "title": "Selectați o aplicație" }, - "application_opened_another_tab": "Această aplicație a fost deschisă într-o altă filă.", - "browser_media_e2ee_unsupported": "Browserul dvs. web nu acceptă criptarea media end-to-end. Browserele acceptate sunt Chrome, Safari, Firefox > = 117", - "browser_media_e2ee_unsupported_heading": "Browser incompatibil", "call_ended_view": { - "body": "Ai fost deconectat de la apel", - "create_account_button": "Creează cont", + "create_account_button": "Creaţi un cont", "create_account_prompt": "<0>De ce să nu terminați prin configurarea unei parole pentru a vă păstra contul? <1>Veți putea să vă păstrați numele și să setați un avatar pentru a fi utilizat la apelurile viitoare ", "feedback_done": "<0>Vă mulțumim pentru feedback! ", "feedback_prompt": "<0>Ne-ar plăcea să auzim feedback-ul dvs., astfel încât să vă putem îmbunătăți experiența. ", "headline": "{{displayName}}, apelul tău s-a încheiat.", - "not_now_button": "Nu acum, reveniți la ecranul de pornire", - "reconnect_button": "Reconecta", - "survey_prompt": "Cum a mers?" + "not_now_button": "Nu acum, reveniți la ecranul principal", + "reconnect_button": "Reconectaţi-vă", + "survey_prompt": "Cum a fost?" }, "call_name": "Numele apelului", "common": { "analytics": "Analiză", "audio": "Audio", - "avatar": "avatar", + "avatar": "Imaginea de profil", "back": "Înapoi", - "camera": "Aparat foto", "display_name": "Nume afișat", "encrypted": "Criptat", - "error": "Eroare", - "home": "Acasa", + "home": "Acasă", "loading": "Se încarcă...", - "microphone": "Microfon", "next": "Urmator\n", "options": "Opțiuni", "password": "Parolă", @@ -62,29 +55,48 @@ "profile": "Profil", "reaction": "Reacție", "reactions": "Reacții", - "settings": "Settings", - "something_went_wrong": "Ceva nu a mers bine", + "settings": "Setări", "unencrypted": "Nu este criptat", - "username": "Nume utilizator", - "video": "Videoclip" + "username": "Numele utilizatorului", + "video": "Video" }, "developer_mode": { "crypto_version": "Versiunea Crypto: {{version}}", + "debug_tile_layout_label": "Depanaţi aranjamentul cartonaşelor", "device_id": "ID-ul dispozitivului: {{id}}", "duplicate_tiles_label": "Numărul de exemplare suplimentare de cartonașe per participant", + "environment_variables": "Variabile de mediu", "hostname": "Numele gazdei: {{hostname}}", - "matrix_id": "ID-ul matricei: {{id}}" + "matrix_id": "ID-ul matricei: {{id}}", + "show_connection_stats": "Afişaţi informaţii cu privire la starea conexiunii", + "show_non_member_tiles": "Afişaţi pictograme pentru fluxul media care nu aparţine participanţilor apelului", + "url_params": "Parametrii linkului", + "use_new_membership_manager": "Folosiţi noua versiune de administrator pentru participanţi ai apelului", + "use_to_device_key_transport": "Folosiţi metoda de transport direct către dispozitiv. Aceasta va reveni la transportul prin intermediul evenimentelor din cameră doar dacă un alt participant la apel recurge la acel mod de transport mai întâi." + }, + "disconnected_banner": "Conexiunea către server s-a încheiat abrupt", + "error": { + "call_is_not_supported": "Acest tip de apel nu este suportat", + "call_not_found": "Apelul nu a fost găsit", + "call_not_found_description": "<0>Acel link nu pare să aparţină unui apel existent. Verificaţi dacă aţi introdus linkul corect, sau <1>creaţi unul nou.", + "connection_lost": "Conexiunea s-a pierdut", + "connection_lost_description": "Aţi fost deconectat/ă de la apel", + "e2ee_unsupported": "Navigatorul dumneavoastră este incompatibil cu criptarea integrală", + "e2ee_unsupported_description": "Navigatorul/browserul dumneavoastră web nu suportă apeluri în conversaţii cu criptare integrală. Printre navigatoarele suportate, se numără Chrome, Safari şi Firefox 117+.", + "generic": "A apărut o eroare neaşteptată", + "generic_description": "Dacă ne trimiteţi jurnalele de depanare generate de aplicaţie, ne puteţi ajuta să rezolvăm problema.", + "insufficient_capacity": "Capacitate insuficientă", + "insufficient_capacity_description": "Serverul a ajuns la capacitatea maximă și nu vă puteți alătura apelului în acest moment. Încercați din nou in câteva minute, sau contactați administratorul serverului dumneavoastră dacă problema persistă.", + "matrix_rtc_focus_missing": "Serverul nu este configurat să funcționeze cu{{brand}}. Vă rugăm să contactați administratorul serverului dumneavoastră pentru a raporta o eroare în configurare. Detalii: Domeniu: {{domain}}. Cod de eroare: {{ errorCode }}.", + "open_elsewhere": "Aplicaţia este deschisă intr-o altă pagină", + "open_elsewhere_description": "{{brand}} a fost deschis într-o altă pagină. Dacă credeți că acest mesaj a fost emis in eroare, încercați să reîncărcați pagina.", + "unexpected_ec_error": "A apărut o eroare neașteptată (Cod de <0> eroare: <1> {{ errorCode }}). Vă rugăm să contactați administratorul serverului dumneavoastră." }, - "disconnected_banner": "Conectivitatea la server a fost pierdută.", - "full_screen_view_description": "<0>Trimiterea jurnalelor de depanare ne va ajuta să urmărim problema. ", - "full_screen_view_h1": "<0>Hopa, ceva nu a mers bine. ", "group_call_loader": { "banned_body": "Ai fost interzis să ieși din cameră.", "banned_heading": "Interzis", "call_ended_body": "Ați fost eliminat din apel.", "call_ended_heading": "Apel încheiat", - "failed_heading": "Nu s-a putut alătura", - "failed_text": "Apelul nu a fost găsit sau nu este accesibil.", "knock_reject_body": "Cererea dvs. de a vă alătura a fost respinsă.", "knock_reject_heading": "Acces refuzat", "reason": "Motivul" @@ -129,7 +141,6 @@ "rageshake_sending": "Trimiterea...", "rageshake_sending_logs": "Trimiterea jurnalelor de depanare...", "rageshake_sent": "Multumesc!", - "recaptcha_caption": "Acest site este protejat de reCAPTCHA și se aplică Politica de <2> confidențialitate Google și <6> Termenii și condițiile. <9>Făcând clic pe „Înregistrare”, sunteți de acord cu Acordul nostru de licențiere pentru utilizatorul <12> final (EULA) ", "recaptcha_dismissed": "Recaptcha a fost respins", "recaptcha_not_loaded": "Recaptcha nu a fost încărcat", "register": { @@ -141,7 +152,6 @@ "register_heading": "Creează-ți contul", "return_home_button": "Reveniți la ecranul de pornire", "room_auth_view_continue_button": "Continuă", - "room_auth_view_eula_caption": "Făcând clic pe „Continuați”, sunteți de acord cu Acordul nostru de licențiere pentru utilizatorul <2> final (EULA) ", "screenshare_button_label": "Partajare ecran", "settings": { "audio_tab": { @@ -149,6 +159,10 @@ "effect_volume_label": "Volumul efectului sonor" }, "developer_tab_title": "dezvoltator", + "devices": { + "microphone": "Microfon", + "speaker": "Difuzor" + }, "feedback_tab_body": "Dacă întâmpinați probleme sau pur și simplu doriți să oferiți feedback, vă rugăm să ne trimiteți o scurtă descriere mai jos.", "feedback_tab_description_label": "Feedback-ul tău", "feedback_tab_h4": "Trimiteți Feedback", @@ -157,12 +171,16 @@ "feedback_tab_title": "Feedback", "opt_in_description": "<0><1>Puteți retrage consimțământul debifând această casetă. Dacă sunteți în prezent la un apel, această setare va intra în vigoare la sfârșitul apelului.", "preferences_tab": { + "developer_mode_label": "Modul dezvoltator", + "developer_mode_label_description": "Activați modul dezvoltator și afișați pagina specifică setărilor pentru dezvoltatori", + "introduction": "Aici puteți configura opțiuni suplimentare pentru o experiență îmbunătățită.", "reactions_play_sound_description": "Redați un efect sonor atunci când cineva trimite o reacție la un apel.", "reactions_play_sound_label": "Redați sunete de reacție", "reactions_show_description": "Afișați o animație atunci când cineva trimite o reacție.", - "reactions_show_label": "Afișați reacțiile" - }, - "speaker_device_selection_label": "vorbitor" + "reactions_show_label": "Afișați reacțiile", + "show_hand_raised_timer_description": "Afișați un cronometru atunci când un participant ridică mâna.", + "show_hand_raised_timer_label": "Afișați durata ridicării mâinii" + } }, "start_new_call": "Începe un nou apel", "start_video_button_label": "Începeți videoclipul", @@ -171,17 +189,18 @@ "submitting": "Trimiterea...", "switch_camera": "Comutați camera", "unauthenticated_view_body": "Nu sunteți încă înregistrat? <2>Creați un cont ", - "unauthenticated_view_eula_caption": "Făcând clic pe „Go”, sunteți de acord cu Acordul nostru de licențiere pentru utilizatorul <2> final (EULA) ", "unauthenticated_view_login_button": "Conectați-vă la contul dvs.", "unmute_microphone_button_label": "Anulează microfonul", "version": "{{productName}}Versiune: {{version}}", "video_tile": { "always_show": "Arată întotdeauna", + "camera_starting": "Se încarcă fluxul video...", "change_fit_contain": "Se potrivește cadrului", "collapse": "colaps", "expand": "Extindeți", "mute_for_me": "Mute pentru mine", "muted_for_me": "Dezactivat pentru mine", - "volume": "VOLUM" + "volume": "VOLUM", + "waiting_for_media": "Flux multimedia în aşteptare" } } diff --git a/locales/ru/app.json b/locales/ru/app.json index 725fffdd..99b8775a 100644 --- a/locales/ru/app.json +++ b/locales/ru/app.json @@ -4,15 +4,30 @@ }, "action": { "close": "Закрыть", + "copy_link": "Скопировать ссылку", + "edit": "Редактировать", "go": "Далее", + "invite": "Пригласить", + "lower_hand": "Опустить руку", "no": "Нет", + "pick_reaction": "Выберите реакцию", + "raise_hand": "Поднять руку", "register": "Зарегистрироваться", "remove": "Удалить", + "show_less": "Показать меньше", + "show_more": "Показать больше", "sign_in": "Войти", "sign_out": "Выйти", - "submit": "Отправить" + "submit": "Отправить", + "upload_file": "Загрузить файл" + }, + "analytics_notice": "Участвуя в этой бета-версии, вы соглашаетесь на сбор анонимных данных, которые мы используем для улучшения продукта. Дополнительную информацию о том, какие данные мы отслеживаем, можно найти в нашей <2> Политике конфиденциальности и Политике <6> использования файлов cookie.", + "app_selection_modal": { + "continue_in_browser": "Продолжить в браузере", + "open_in_app": "Открыть в приложении", + "text": "Готовы присоединиться?", + "title": "Выбрать приложение" }, - "analytics_notice": "Участвуя в этой бета-версии, вы соглашаетесь на сбор анонимных данных, которые мы используем для улучшения продукта. Более подробную информацию о том, какие данные мы отслеживаем, вы можете найти в нашей <2> Политике конфиденциальности и нашей <5> Политике использования файлов cookie.", "call_ended_view": { "create_account_button": "Создать аккаунт", "create_account_prompt": "<0>Почему бы не задать пароль, тем самым сохранив аккаунт?<1>Так вы можете оставить своё имя и задать аватар для будущих звонков.", @@ -20,37 +35,111 @@ "feedback_prompt": "<0>Мы будем рады видеть ваши отзывы, чтобы мы могли улучшить ваш опыт.", "headline": "{{displayName}}, ваш звонок окончен.", "not_now_button": "Не сейчас, вернуться в Начало", + "reconnect_button": "Переподключиться", "survey_prompt": "Как всё прошло?" }, + "call_name": "Название звонка", "common": { + "analytics": "Аналитика", "audio": "Аудио", "avatar": "Аватар", - "camera": "Камера", + "back": "Назад", "display_name": "Видимое имя", + "encrypted": "Зашифровано", "home": "Начало", "loading": "Загрузка…", - "microphone": "Микрофон", + "next": "Далее", + "options": "Параметры", "password": "Пароль", + "preferences": "Настройки", "profile": "Профиль", + "reaction": "Реакция", + "reactions": "Реакции", "settings": "Настройки", + "unencrypted": "Не зашифровано", "username": "Имя пользователя", "video": "Видео" }, - "full_screen_view_description": "<0>Отправка журналов поможет нам найти и устранить проблему.", - "full_screen_view_h1": "<0>Упс, что-то пошло не так.", + "developer_mode": { + "always_show_iphone_earpiece": "Показать опцию наушников для iPhone на всех платформах", + "crypto_version": "Версия криптографии: {{version}}", + "debug_tile_layout_label": "Отладка расположения плиток", + "device_id": "Идентификатор устройства: {{id}}", + "duplicate_tiles_label": "Количество дополнительных копий плиток на участника", + "environment_variables": "Переменные окружения", + "hostname": "Имя хоста: {{hostname}}", + "livekit_server_info": "Информация о сервере LiveKit", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix ID: {{id}}", + "mute_all_audio": "Отключить все звуки (участников, реакции, звуки присоединения)", + "show_connection_stats": "Показать статистику подключений", + "show_non_member_tiles": "Показать плитки для медиафайлов, не являющихся участниками", + "url_params": "Параметры URL-адреса", + "use_new_membership_manager": "Используйте новую реализацию вызова MembershipManager", + "use_to_device_key_transport": "Используйте для передачи ключей устройства. Это позволит вернуться к передаче ключей комнаты, когда другой участник вызова отправит ключ комнаты" + }, + "disconnected_banner": "Связь с сервером была потеряна.", + "error": { + "call_is_not_supported": "Вызов не поддерживается", + "call_not_found": "Звонок не найден", + "call_not_found_description": "<0>Эта ссылка, похоже, не принадлежит ни к одному существующему звонку. Убедитесь, что у вас есть нужная ссылка, или <1>создайте новую.", + "connection_lost": "Соединение потеряно", + "connection_lost_description": "Вы были отключены от звонка.", + "e2ee_unsupported": "Несовместимый браузер", + "e2ee_unsupported_description": "Ваш веб-браузер не поддерживает зашифрованные звонки. Поддерживаются следующие браузеры: Chrome, Safari и Firefox 117+.", + "generic": "Произошла ошибка", + "generic_description": "Отправка журналов отладки поможет нам отследить проблему.", + "insufficient_capacity": "Недостаточная пропускная способность", + "insufficient_capacity_description": "Сервер достиг максимальной пропускной способности, и вы не можете присоединиться к звонку в данный момент. Повторите попытку позже или обратитесь к администратору сервера, если проблема сохраняется.", + "matrix_rtc_focus_missing": "Сервер не настроен для работы с {{brand}}. Пожалуйста, свяжитесь с администратором вашего сервера (Домен: {{domain}}, Код ошибки: {{ errorCode }}).", + "open_elsewhere": "Открыто в другой вкладке", + "open_elsewhere_description": "{{brand}} был открыт в другой вкладке. Если это неверно, попробуйте перезагрузить страницу.", + "unexpected_ec_error": "Произошла непредвиденная ошибка (<0> Код ошибки:<1>{{ errorCode }} ). Обратитесь к администратору вашего сервера." + }, + "group_call_loader": { + "banned_body": "Вас заблокировали в этой комнате", + "banned_heading": "Заблокирован", + "call_ended_body": "Вы были удалены из звонка.", + "call_ended_heading": "Вызов завершен", + "knock_reject_body": "Участники комнаты отклонили ваш запрос на присоединение.", + "knock_reject_heading": "Не разрешено присоединиться", + "reason": "Причина: {{reason}}" + }, + "hangup_button_label": "Завершить звонок", "header_label": "Главная Element Call", + "header_participants_label": "Участники", + "invite_modal": { + "link_copied_toast": "Ссылка скопирована в буфер обмена", + "title": "Пригласить в этот звонок" + }, "join_existing_call_modal": { "join_button": "Да, присоединиться", "text": "Этот звонок уже существует, хотите присоединиться?", "title": "Присоединиться к существующему звонку?" }, + "layout_grid_label": "Сетка", "layout_spotlight_label": "Внимание", "lobby": { - "join_button": "Присоединиться" + "ask_to_join": "Запрос на подключение к звонку", + "join_as_guest": "Присоединиться в качестве гостя", + "join_button": "Присоединиться", + "leave_button": "Вернуться к списку недавних", + "waiting_for_invite": "Запрос отправлен" }, + "log_in": "Войти", "logging_in": "Вход…", "login_auth_links": "<0>Создать аккаунт или <2>Зайти как гость", + "login_auth_links_prompt": "Еще не зарегистрированы?", + "login_subheading": "Продолжить в Element", "login_title": "Вход", + "microphone_off": "Микрофон выключен", + "microphone_on": "Микрофон включен", + "mute_microphone_button_label": "Отключить микрофон", + "participant_count_one": "{{count, number}}", + "participant_count_few": "{{count, number}}", + "participant_count_many": "{{count, number}}", + "qr_code": "QR код", + "rageshake_button_error_caption": "Повторить отправку журналов", "rageshake_request_modal": { "body": "У одного из участников звонка есть неполадки. Чтобы лучше диагностировать похожие проблемы, нам нужен журнал отладки.", "title": "Запрос журнала отладки" @@ -58,18 +147,41 @@ "rageshake_send_logs": "Отправить журнал отладки", "rageshake_sending": "Отправка…", "rageshake_sending_logs": "Отправка журнала отладки…", + "rageshake_sent": "Спасибо!", "recaptcha_dismissed": "Проверка не пройдена", "recaptcha_not_loaded": "Невозможно начать проверку", + "recaptcha_ssla_caption": "Этот сайт защищен reCAPTCHA, и к нему применяются <2> Политика конфиденциальности и <6> Условия обслуживания Google. <9>Нажимая «Зарегистрироваться», вы соглашаетесь с нашим лицензионным соглашением на <12> программное обеспечение и услуги (SSLA) ", "register": { "passwords_must_match": "Пароли должны совпадать", "registering": "Регистрация…" }, "register_auth_links": "<0>Уже есть аккаунт?<1><0>Войти с ним или <2>Зайти как гость", "register_confirm_password_label": "Подтвердите пароль", + "register_heading": "Создать учетную запись", "return_home_button": "Вернуться в Начало", + "room_auth_view_continue_button": "Продолжить", + "room_auth_view_ssla_caption": "Нажимая кнопку \"Присоединиться к звонку\", вы соглашаетесь с нашим <2>Лицензионное соглашение на программное обеспечение и услуги (SSLA)", "screenshare_button_label": "Поделиться экраном", "settings": { + "audio_tab": { + "effect_volume_description": "Отрегулируйте громкость воспроизведения реакций и эффектов поднятия руки.", + "effect_volume_label": "Громкость звукового эффекта" + }, + "background_blur_header": "Фон", + "background_blur_label": "Размытие фона видео", + "blur_not_supported_by_browser": "(Размытие фона не поддерживается этим устройством.)", "developer_tab_title": "Разработчику", + "devices": { + "camera": "Камера", + "camera_numbered": "Камера {{n}}", + "change_device_button": "Изменить аудиоустройство", + "default": "По умолчанию", + "default_named": "По умолчанию <2>({{name}})", + "microphone": "Микрофон", + "microphone_numbered": "Микрофон {{n}}", + "speaker": "Динамик", + "speaker_numbered": "Динамик {{n}}" + }, "feedback_tab_body": "Если у вас возникли проблемы или вы просто хотите оставить отзыв, отправьте нам краткое описание ниже.", "feedback_tab_description_label": "Ваш отзыв", "feedback_tab_h4": "Отправить отзыв", @@ -77,12 +189,41 @@ "feedback_tab_thank_you": "Спасибо. Мы получили ваш отзыв!", "feedback_tab_title": "Отзыв", "opt_in_description": "<0><1>Вы можете отозвать согласие, сняв этот флажок. Если вы в данный момент находитесь в разговоре, эта настройка вступит в силу по окончании разговора.", - "speaker_device_selection_label": "Динамик" + "preferences_tab": { + "developer_mode_label": "Режим разработчика", + "developer_mode_label_description": "Включить режим разработчика и показать настройки.", + "introduction": "Здесь вы можете настроить дополнительные параметры для улучшения качества работы.", + "reactions_play_sound_description": "Воспроизведите звуковой эффект, когда кто-либо отреагирует на звонок.", + "reactions_play_sound_label": "Воспроизводить звуки реакции", + "reactions_show_description": "Показать реакции", + "reactions_show_label": "Показывать анимацию, когда кто-либо отправляет реакцию.", + "show_hand_raised_timer_description": "Показывать таймер, когда участник поднимает руку", + "show_hand_raised_timer_label": "Показать продолжительность поднятия руки" + } }, - "star_rating_input_label_one": "{{count}} отмечен", - "star_rating_input_label_other": "{{count}} отмеченных", + "star_rating_input_label_one": "{{count}} звезда", + "star_rating_input_label_few": "{{count}} звезды", + "star_rating_input_label_many": "{{count}} звезд", + "start_new_call": "Начать новый звонок", + "start_video_button_label": "Начать видео", + "stop_screenshare_button_label": "Демонстрация экрана", + "stop_video_button_label": "Остановить видео", "submitting": "Отправляем…", + "switch_camera": "Переключить камеру", "unauthenticated_view_body": "Ещё не зарегистрированы? <2>Создайте аккаунт", "unauthenticated_view_login_button": "Войдите в свой аккаунт", - "version": "Версия: {{version}}" + "unauthenticated_view_ssla_caption": "Нажимая «Перейти», вы соглашаетесь с нашим лицензионным соглашением на <2> программное обеспечение и услуги (SSLA) ", + "unmute_microphone_button_label": "Включить микрофон", + "version": "{{productName}} версия: {{version}}", + "video_tile": { + "always_show": "Показывать всегда", + "camera_starting": "Загрузка видео...", + "change_fit_contain": "По размеру окна", + "collapse": "Свернуть", + "expand": "Развернуть", + "mute_for_me": "Заглушить звук для меня", + "muted_for_me": "Приглушить для меня", + "volume": "Громкость", + "waiting_for_media": "В ожидании медиа..." + } } diff --git a/locales/sk/app.json b/locales/sk/app.json index fbf2dc37..d017220b 100644 --- a/locales/sk/app.json +++ b/locales/sk/app.json @@ -5,25 +5,30 @@ "action": { "close": "Zatvoriť", "copy_link": "Kopírovať odkaz", + "edit": "Upraviť", "go": "Prejsť", "invite": "Pozvať", + "lower_hand": "Dať dole ruku", "no": "Nie", + "pick_reaction": "Vybrať reakciu", + "raise_hand": "Zdvihnúť ruku", "register": "Registrovať sa", "remove": "Odstrániť", + "show_less": "Zobraziť menej", + "show_more": "Zobraziť viac", "sign_in": "Prihlásiť sa", "sign_out": "Odhlásiť sa", - "submit": "Odoslať" + "submit": "Odoslať", + "upload_file": "Nahrať súbor" }, - "analytics_notice": "Účasťou v tejto beta verzii súhlasíte so zhromažďovaním anonymných údajov, ktoré použijeme na zlepšenie produktu. Viac informácií o tom, ktoré údaje sledujeme, nájdete v našich <2>Zásadách ochrany osobných údajov a <5>Zásadách používania súborov cookie.", + "analytics_notice": "Účasťou v tejto beta verzii súhlasíte so zhromažďovaním anonymných údajov, ktoré použijeme na zlepšenie produktu. Viac informácií o tom, ktoré údaje sledujeme, nájdete v našich <2>Zásadách ochrany osobných údajov a <6>Zásadách používania súborov cookie.", "app_selection_modal": { "continue_in_browser": "Pokračovať v prehliadači", "open_in_app": "Otvoriť v aplikácii", "text": "Ste pripravení sa pridať?", "title": "Vybrať aplikáciu" }, - "browser_media_e2ee_unsupported": "Váš webový prehliadač nepodporuje end-to-end šifrovanie médií. Podporované prehliadače sú Chrome, Safari, Firefox >=117", "call_ended_view": { - "body": "Boli ste odpojení z hovoru", "create_account_button": "Vytvoriť účet", "create_account_prompt": "<0>Prečo neskončiť nastavením hesla, aby ste si zachovali svoj účet? <1>Budete si môcť ponechať svoje meno a nastaviť obrázok, ktorý sa bude používať pri budúcich hovoroch", "feedback_done": "<0> Ďakujeme za vašu spätnú väzbu!", @@ -35,22 +40,71 @@ }, "call_name": "Názov hovoru", "common": { + "analytics": "Analytika", + "audio": "Zvuk", "avatar": "Obrázok", - "camera": "Kamera", + "back": "Späť", "display_name": "Zobrazované meno", "encrypted": "Šifrované", "home": "Domov", "loading": "Načítanie…", - "microphone": "Mikrofón", + "next": "Ďalej", + "options": "Možnosti", "password": "Heslo", + "preferences": "Predvoľby", "profile": "Profil", + "reaction": "Reakcia", + "reactions": "Reakcie", "settings": "Nastavenia", "unencrypted": "Nie je zašifrované", - "username": "Meno používateľa" + "username": "Meno používateľa", + "video": "Video" + }, + "developer_mode": { + "always_show_iphone_earpiece": "Zobraziť možnosť slúchadla iPhone na všetkých platformách", + "crypto_version": "Krypto verzia: {{version}}", + "debug_tile_layout_label": "Ladenie rozloženia dlaždíc", + "device_id": "ID zariadenia: {{id}}", + "duplicate_tiles_label": "Počet ďalších kópií dlaždíc na účastníka", + "environment_variables": "Premenné prostredia", + "hostname": "Názov hostiteľa: {{hostname}}", + "livekit_server_info": "Informácie o serveri LiveKit", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix ID: {{id}}", + "mute_all_audio": "Stlmiť všetky zvuky (účastníkov, reakcií, zvuky pripojenia)", + "show_connection_stats": "Zobraziť štatistiky pripojenia", + "show_non_member_tiles": "Zobraziť dlaždice pre nečlenské médiá", + "url_params": "Parametre URL adresy", + "use_new_membership_manager": "Použiť novú implementáciu hovoru MembershipManager", + "use_to_device_key_transport": "Používa sa na prenos kľúča zariadenia. Toto sa vráti k prenosu kľúča miestnosti, keď iný účastník hovoru poslal kľúč od miestnosti" }, "disconnected_banner": "Spojenie so serverom sa stratilo.", - "full_screen_view_description": "<0>Odoslanie záznamov ladenia nám pomôže nájsť problém.", - "full_screen_view_h1": "<0>Hups, niečo sa pokazilo.", + "error": { + "call_is_not_supported": "Hovor nie je podporovaný", + "call_not_found": "Hovor nebol nájdený", + "call_not_found_description": "<0>Zdá sa, že tento odkaz nepatrí k žiadnemu existujúcemu hovoru. Skontrolujte, či máte správny odkaz, alebo <2>vytvorte nový.", + "connection_lost": "Strata spojenia", + "connection_lost_description": "Boli ste odpojení od hovoru.", + "e2ee_unsupported": "Nekompatibilný prehliadač", + "e2ee_unsupported_description": "Váš webový prehliadač nepodporuje šifrované hovory. Medzi podporované prehliadače patria Chrome, Safari a Firefox 117+.", + "generic": "Niečo sa pokazilo", + "generic_description": "Odoslanie záznamov ladenia nám pomôže nájsť problém.", + "insufficient_capacity": "Nedostatočná kapacita", + "insufficient_capacity_description": "Server dosiahol svoju maximálnu kapacitu a momentálne sa nemôžete pripojiť k hovoru. Skúste to znova neskôr alebo kontaktujte správcu servera, ak problém pretrváva.", + "matrix_rtc_focus_missing": "Server nie je nakonfigurovaný na prácu s aplikáciou {{brand}}. Kontaktujte správcu svojho servera (Doména:{{domain}}, Kód chyby:{{ errorCode }}).", + "open_elsewhere": "Otvorené na inej karte", + "open_elsewhere_description": "Aplikácia {{brand}} bola otvorená na inej karte. Ak sa vám to nezdá, skúste znovu načítať stránku.", + "unexpected_ec_error": "Vyskytla sa neočakávaná chyba (<0>Kód chyby: <1>{{ errorCode }}). Kontaktujte prosím správcu vášho servera." + }, + "group_call_loader": { + "banned_body": "Dostali ste zákaz vstupu do miestnosti.", + "banned_heading": "Zakázané", + "call_ended_body": "Boli ste odstránení z hovoru.", + "call_ended_heading": "Hovor bol ukončený", + "knock_reject_body": "Členovia miestnosti odmietli vašu žiadosť o pripojenie.", + "knock_reject_heading": "Nie je povolené pripojiť sa", + "reason": "Dôvod" + }, "hangup_button_label": "Ukončiť hovor", "header_label": "Domov Element Call", "header_participants_label": "Účastníci", @@ -66,15 +120,25 @@ "layout_grid_label": "Sieť", "layout_spotlight_label": "Stredobod", "lobby": { + "ask_to_join": "Požiadať o pripojenie k hovoru", + "join_as_guest": "Pripojiť sa ako hosť", "join_button": "Pripojiť sa k hovoru", - "leave_button": "Späť k nedávnym" + "leave_button": "Späť k nedávnym", + "waiting_for_invite": "Žiadosť odoslaná" }, + "log_in": "Prihlásiť sa", "logging_in": "Prihlasovanie…", "login_auth_links": "<0>Vytvoriť konto Alebo <2>Prihlásiť sa ako hosť", + "login_auth_links_prompt": "Nie ste ešte zaregistrovaní?", + "login_subheading": "Ak chcete pokračovať na Element", "login_title": "Prihlásiť sa", "microphone_off": "Mikrofón vypnutý", "microphone_on": "Mikrofón zapnutý", "mute_microphone_button_label": "Stlmiť mikrofón", + "participant_count_one": "{{count, number}}", + "participant_count_few": "{{count, number}}", + "participant_count_other": "{{count, number}}", + "qr_code": "QR kód", "rageshake_button_error_caption": "Opakovať odoslanie záznamov", "rageshake_request_modal": { "body": "Ďalší používateľ v tomto hovore má problém. Aby sme mohli lepšie diagnostikovať tieto problémy, chceli by sme získať záznam o ladení.", @@ -84,20 +148,41 @@ "rageshake_sending": "Odosielanie…", "rageshake_sending_logs": "Odosielanie záznamov o ladení…", "rageshake_sent": "Ďakujeme!", - "recaptcha_caption": "Táto stránka je chránená systémom ReCAPTCHA a platia na ňu <2>Pravidlá ochrany osobných údajov spoločnosti Google a <6>Podmienky poskytovania služieb.<9>Kliknutím na tlačidlo \"Registrovať sa\" súhlasíte s našou <12>Licenčnou zmluvou s koncovým používateľom (EULA)", "recaptcha_dismissed": "Recaptcha zamietnutá", "recaptcha_not_loaded": "Recaptcha sa nenačítala", + "recaptcha_ssla_caption": "Táto stránka je chránená reCAPTCHA a platia <2>Zásady ochrany osobných údajov a <6>Podmienky služby spoločnosti Google. <9>Kliknutím na tlačidlo „Registrovať“ súhlasíte s našou <12>Licenčnou zmluvou o softvéri a službách (SSLA)", "register": { "passwords_must_match": "Heslá sa musia zhodovať", "registering": "Registrácia…" }, "register_auth_links": "<0>Už máte konto?<1><0>Prihláste sa Alebo <2>Prihlásiť sa ako hosť", "register_confirm_password_label": "Potvrdiť heslo", + "register_heading": "Vytvorte si účet", "return_home_button": "Návrat na domovskú obrazovku", - "room_auth_view_eula_caption": "Kliknutím na \"Pripojiť sa k hovoru teraz\" súhlasíte s našou <2>Licenčnou zmluvou s koncovým používateľom (EULA)", + "room_auth_view_continue_button": "Pokračovať", + "room_auth_view_ssla_caption": "Kliknutím na „Pripojiť sa k hovoru teraz“ súhlasíte s našou <2>Licenčnou zmluvou o softvéri a službách (SSLA)", "screenshare_button_label": "Zdieľať obrazovku", "settings": { + "audio_tab": { + "effect_volume_description": "Upraviť hlasitosť, pri ktorej sa prehrávajú reakcie a efekty zdvihnutia ruky.", + "effect_volume_label": "Hlasitosť zvukového efektu" + }, + "background_blur_header": "Pozadie", + "background_blur_label": "Rozmazať pozadie videa", + "blur_not_supported_by_browser": "(Rozmazanie pozadia nie je podporované týmto zariadením.)", "developer_tab_title": "Vývojár", + "devices": { + "camera": "Kamera", + "camera_numbered": "Kamera {{n}}", + "change_device_button": "Zmeniť zvukové zariadenie", + "default": "Predvolené", + "default_named": "Predvolené <2>({{name}})", + "loudspeaker": "Reproduktor", + "microphone": "Mikrofón", + "microphone_numbered": "Mikrofón {{n}}", + "speaker": "Reproduktor", + "speaker_numbered": "Reproduktor {{n}}" + }, "feedback_tab_body": "Ak máte problémy alebo jednoducho chcete poskytnúť spätnú väzbu, pošlite nám krátky popis nižšie.", "feedback_tab_description_label": "Vaša spätná väzba", "feedback_tab_h4": "Odoslať spätnú väzbu", @@ -105,18 +190,41 @@ "feedback_tab_thank_you": "Ďakujeme, dostali sme vašu spätnú väzbu!", "feedback_tab_title": "Spätná väzba", "opt_in_description": "<0><1>Súhlas môžete odvolať zrušením označenia tohto políčka. Ak práve prebieha hovor, toto nastavenie nadobudne platnosť po skončení hovoru.", - "speaker_device_selection_label": "Reproduktor" + "preferences_tab": { + "developer_mode_label": "Režim vývojára", + "developer_mode_label_description": "Povoliť režim vývojára a zobraziť kartu Nastavenia vývojára.", + "introduction": "Tu môžete nastaviť ďalšie možnosti pre lepší zážitok.", + "reactions_play_sound_description": "Prehrať zvukový efekt, keď niekto odošle reakciu na hovor.", + "reactions_play_sound_label": "Prehrať zvuky reakcie", + "reactions_show_description": "Zobraziť animáciu, keď niekto odošle reakciu.", + "reactions_show_label": "Zobraziť reakcie", + "show_hand_raised_timer_description": "Zobraziť časovač, keď účastník zdvihne ruku", + "show_hand_raised_timer_label": "Zobraziť trvanie zdvihnutia ruky" + } }, "star_rating_input_label_one": "{{count}} hviezdička", + "star_rating_input_label_few": "{{count}} hviezdičky", "star_rating_input_label_other": "{{count}} hviezdičiek", "start_new_call": "Spustiť nový hovor", "start_video_button_label": "Spustiť video", "stop_screenshare_button_label": "Zdieľanie obrazovky", "stop_video_button_label": "Zastaviť video", "submitting": "Odosielanie…", + "switch_camera": "Prepnúť fotoaparát", "unauthenticated_view_body": "Ešte nie ste zaregistrovaný? <2>Vytvorte si účet", - "unauthenticated_view_eula_caption": "Kliknutím na tlačidlo \"Prejsť\" vyjadrujete súhlas s našou <2>Licenčnou zmluvou s koncovým používateľom (EULA)", "unauthenticated_view_login_button": "Prihláste sa do svojho konta", + "unauthenticated_view_ssla_caption": "Kliknutím na tlačidlo „Prejsť“ súhlasítes našou <2>Licenčnou zmluvou o softvéri a službách (SSLA)", "unmute_microphone_button_label": "Zrušiť stlmenie mikrofónu", - "version": "Verzia: {{version}}" + "version": "Verzia {{productName}}: {{version}}", + "video_tile": { + "always_show": "Vždy zobraziť", + "camera_starting": "Načítavanie videa...", + "change_fit_contain": "Orezať na mieru", + "collapse": "Zbaliť", + "expand": "Rozbaliť", + "mute_for_me": "Pre mňa stlmiť", + "muted_for_me": "Pre mňa stlmené", + "volume": "Hlasitosť", + "waiting_for_media": "Čaká sa na médiá..." + } } diff --git a/locales/sv/app.json b/locales/sv/app.json index 76b7d2d8..f8424225 100644 --- a/locales/sv/app.json +++ b/locales/sv/app.json @@ -1,7 +1,227 @@ { + "a11y": { + "user_menu": "Användarmeny" + }, + "action": { + "close": "Stäng", + "copy_link": "Kopiera länk", + "edit": "Redigera", + "go": "Gå", + "invite": "Bjud in", + "lower_hand": "Sänk handen", + "no": "Nej", + "pick_reaction": "Välj reaktion", + "raise_hand": "Räck upp handen", + "register": "Registrera", + "remove": "Ta bort", + "show_less": "Visa mindre", + "show_more": "Visa mer", + "sign_in": "Logga in", + "sign_out": "Logga ut", + "submit": "Skicka", + "upload_file": "Ladda upp fil" + }, + "analytics_notice": "Genom att delta i denna beta samtycker du till insamling av anonyma uppgifter, som vi använder för att förbättra produkten. Du kan hitta mer information om vilka data vi spårar i vår <2>integritetspolicy och vår <5>cookiepolicy.", + "app_selection_modal": { + "continue_in_browser": "Fortsätt i webbläsaren", + "open_in_app": "Öppna i appen", + "text": "Är du redo att gå med?", + "title": "Välj app" + }, "call_ended_view": { - "headline": "{{displayName}}, ditt samtal har avslutats." + "create_account_button": "Skapa konto", + "create_account_prompt": "<0>Varför inte avsluta genom att skapa ett lösenord för att behålla ditt konto?<1>Du kommer att kunna behålla ditt namn och ställa in en avatar för användning vid framtida samtal", + "feedback_done": "<0>Tack för din feedback! ", + "feedback_prompt": "<0>Vi vill gärna höra din feedback så att vi kan förbättra din upplevelse. ", + "headline": "{{displayName}}, ditt samtal har avslutats.", + "not_now_button": "Inte nu, återgå till startskärmen", + "reconnect_button": "Återanslut", + "survey_prompt": "Hur gick det?" + }, + "call_name": "Namn på samtal", + "common": { + "analytics": "Analysdata", + "audio": "Ljud", + "avatar": "Avatar", + "back": "Tillbaka", + "display_name": "Visningsnamn", + "encrypted": "Krypterad", + "home": "Hem", + "loading": "Laddar …", + "next": "Nästa", + "options": "Alternativ", + "password": "Lösenord", + "preferences": "Alternativ", + "profile": "Profil", + "reaction": "Reaktion", + "reactions": "Reaktioner", + "settings": "Inställningar", + "unencrypted": "Inte krypterad", + "username": "Användarnamn", + "video": "Video" + }, + "developer_mode": { + "always_show_iphone_earpiece": "Visa iPhone-hörsnäckealternativ på alla plattformar", + "crypto_version": "Kryptoversion: {{version}}", + "debug_tile_layout_label": "Felsök panelarrangemang", + "device_id": "Enhets-ID: {{id}}", + "duplicate_tiles_label": "Antal ytterligare panelkopior per deltagare", + "environment_variables": "Miljövariabler", + "hostname": "Värdnamn: {{hostname}}", + "livekit_server_info": "LiveKit-serverinfo", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix-ID: {{id}}", + "mute_all_audio": "Tysta allt ljud (deltagare, reaktioner, anslutningsljud)", + "show_connection_stats": "Visa anslutningsstatistik", + "show_non_member_tiles": "Visa paneler för media som inte är medlemmar", + "url_params": "URL-parametrar", + "use_new_membership_manager": "Använd den nya implementeringen av samtals-MembershipManager", + "use_to_device_key_transport": "Använd \"till enhet\"-nyckeltransport. Detta kommer att falla tillbaka till rumsnyckeltransport om en annan samtalsmedlem skickar en rumsnyckel." + }, + "disconnected_banner": "Anslutningen till servern har brutits.", + "error": { + "call_is_not_supported": "Call stöds inte", + "call_not_found": "Samtal hittades inte", + "call_not_found_description": "<0>Den länken verkar inte tillhöra något befintligt samtal. Kontrollera att du har rätt länk, eller <1>skapa en ny.", + "connection_lost": "Anslutning förlorad", + "connection_lost_description": "Du kopplades bort från samtalet.", + "e2ee_unsupported": "Inkompatibel webbläsare", + "e2ee_unsupported_description": "Din webbläsare stöder inte krypterade samtal. Webbläsare som stöds inkluderar Chrome, Safari och Firefox 117+.", + "generic": "Något gick fel", + "generic_description": "Att skicka felsökningsloggar hjälper oss att spåra problemet.", + "insufficient_capacity": "Otillräcklig kapacitet", + "insufficient_capacity_description": "Servern har nått sin maximala kapacitet och du kan inte gå med i samtalet just nu. Försök igen senare, eller kontakta serveradministratören om problemet kvarstår.", + "matrix_rtc_focus_missing": "Servern är inte konfigurerad för att fungera med {{brand}}. Vänligen kontakta serveradministratören (Domän: {{domain}}, Felkod: {{ errorCode }}).", + "open_elsewhere": "Öppnades i en annan flik", + "open_elsewhere_description": "{{brand}} har öppnats i en annan flik. Om det inte låter rätt, pröva att ladda om sidan.", + "unexpected_ec_error": "Ett oväntat fel inträffade (<0>Felkod: <1>{{ errorCode }}). Kontakta din serveradministratör." + }, + "group_call_loader": { + "banned_body": "Du har bannats från rummet.", + "banned_heading": "Bannad", + "call_ended_body": "Du har har tagits bort från samtalet.", + "call_ended_heading": "Samtal avslutat", + "knock_reject_body": "Rumsmedlemmarna avslog din begäran om att gå med.", + "knock_reject_heading": "Inte tillåten att gå med", + "reason": "Anledning" + }, + "hangup_button_label": "Avsluta samtal", + "header_label": "Element Call Hem", + "header_participants_label": "Deltagare", + "invite_modal": { + "link_copied_toast": "Länk kopierad till klippbordet", + "title": "Bjud in till det här samtalet" + }, + "join_existing_call_modal": { + "join_button": "Ja, gå med i samtal", + "text": "Det här samtalet finns redan, vill du gå med?", + "title": "Gå med i befintligt samtal?" + }, + "layout_grid_label": "Rutnät", + "layout_spotlight_label": "Spotlight", + "lobby": { + "ask_to_join": "Be om att delta i samtalet", + "join_as_guest": "Gå med som gäst", + "join_button": "Anslut till samtal", + "leave_button": "Tillbaka till senaste", + "waiting_for_invite": "Begäran skickad" + }, + "log_in": "Logga in", + "logging_in": "Loggar in …", + "login_auth_links": "<0>Skapa ett konto eller <2>Kom åt som gäst", + "login_auth_links_prompt": "Inte registrerad än?", + "login_subheading": "För att fortsätta till Element", + "login_title": "Logga in", + "microphone_off": "Mikrofon av", + "microphone_on": "Mikrofon på", + "mute_microphone_button_label": "Tysta mikrofonen", + "participant_count_one": "{{count, number}}", + "participant_count_other": "{{count, number}}", + "qr_code": "QR-kod", + "rageshake_button_error_caption": "Försök att skicka loggar igen", + "rageshake_request_modal": { + "body": "En annan användare i det här samtalet har ett problem. För att bättre kunna diagnostisera dessa problem vill vi samla in en felsökningslogg.", + "title": "Begäran om felsökningslogg" + }, + "rageshake_send_logs": "Skicka felsökningsloggar", + "rageshake_sending": "Skickar …", + "rageshake_sending_logs": "Skickar felsökningsloggar …", + "rageshake_sent": "Tack!", + "recaptcha_dismissed": "Recaptcha avvisad", + "recaptcha_not_loaded": "Recaptcha laddades inte", + "recaptcha_ssla_caption": "Denna webbplats skyddas av ReCAPTCHA och Googles <2>sekretesspolicy och <6>användarvillkor gäller.<9>Genom att klicka på ”Registrera” godkänner du vårt <12>licensavtal för programvara och tjänster", + "register": { + "passwords_must_match": "Lösenorden måste överensstämma", + "registering": "Registrerar …" + }, + "register_auth_links": "<0>Har du redan ett konto?<1><0>Logga in eller <2>kom åt som en gäst", + "register_confirm_password_label": "Bekräfta lösenord", + "register_heading": "Skapa ditt konto", + "return_home_button": "Återgå till startskärmen", + "room_auth_view_continue_button": "Fortsätt", + "room_auth_view_ssla_caption": "Genom att klicka på ”Anslut till samtal nu” godkänner du vårt <2>licensavtal för programvara och tjänster", + "screenshare_button_label": "Dela skärm", + "settings": { + "audio_tab": { + "effect_volume_description": "Justera volymen vid vilken reaktioner och handuppräckningseffekter spelas", + "effect_volume_label": "Ljudeffektsvolym" + }, + "background_blur_header": "Bakgrund", + "background_blur_label": "Gör bakgrunden i videon suddig", + "blur_not_supported_by_browser": "(Bakgrundssuddighet stöds inte av den här enheten.)", + "developer_tab_title": "Utvecklare", + "devices": { + "camera": "Kamera", + "camera_numbered": "Kamera {{n}}", + "change_device_button": "Byt ljudenhet", + "default": "Förval", + "default_named": "Förval <2>({{name}})", + "microphone": "Mikrofon", + "microphone_numbered": "Mikrofon {{n}}", + "speaker": "Högtalare", + "speaker_numbered": "Högtalare {{n}}" + }, + "feedback_tab_body": "Om du har problem eller bara vill ge lite återkoppling, skicka oss en kort beskrivning nedan.", + "feedback_tab_description_label": "Din återkoppling", + "feedback_tab_h4": "Skicka återkoppling", + "feedback_tab_send_logs_label": "Inkludera felsökningsloggar", + "feedback_tab_thank_you": "Tack, vi har tagit emot din återkoppling!", + "feedback_tab_title": "Återkoppling", + "opt_in_description": "<0><1>Du kan återkalla ditt samtycke genom att avmarkera den här rutan. Om du för närvarande är i ett samtal träder den här inställningen i kraft vid slutet av samtalet.", + "preferences_tab": { + "developer_mode_label": "Utvecklarläge", + "developer_mode_label_description": "Aktivera utvecklarläger och visa fliken utvecklarinställningar.", + "introduction": "Här kan du konfigurera extra alternativ för en förbättrad upplevelse.", + "reactions_play_sound_description": "Spela en ljudeffekt när någon skickar in en reaktion i ett samtal.", + "reactions_play_sound_label": "Spela reaktionsljud", + "reactions_show_description": "Visa en animering när någon skickar en reaktion.", + "reactions_show_label": "Visa reaktioner", + "show_hand_raised_timer_description": "Visa en timer när en deltagare räcker upp handen", + "show_hand_raised_timer_label": "Visa varaktighet för handuppräckning" + } }, "star_rating_input_label_one": "{{count}} stjärna", - "star_rating_input_label_other": "{{count}} stjärnor" + "star_rating_input_label_other": "{{count}} stjärnor", + "start_new_call": "Starta ett nytt samtal", + "start_video_button_label": "Starta video", + "stop_screenshare_button_label": "Delar skärm", + "stop_video_button_label": "Stoppa video", + "submitting": "Skickar …", + "switch_camera": "Byt kamera", + "unauthenticated_view_body": "Inte registrerad än? <2>Skapa ett konto", + "unauthenticated_view_login_button": "Logga in på ditt konto", + "unauthenticated_view_ssla_caption": "Genom att klicka på ”Kör” godkänner du vårt <2>licensavtal för programvara och tjänster", + "unmute_microphone_button_label": "Sluta tysta mikrofonen", + "version": "Version: {{version}}", + "video_tile": { + "always_show": "Visa alltid", + "camera_starting": "Video laddar …", + "change_fit_contain": "Anpassa till ram", + "collapse": "Kollapsa", + "expand": "Expandera", + "mute_for_me": "Tysta för mig", + "muted_for_me": "Tystad för mig", + "volume": "Volym", + "waiting_for_media": "Väntar på media …" + } } diff --git a/locales/tr/app.json b/locales/tr/app.json index d14f6883..da26eb0f 100644 --- a/locales/tr/app.json +++ b/locales/tr/app.json @@ -1,44 +1,141 @@ { + "a11y": { + "user_menu": "Kullanıcı menüsü" + }, "action": { "close": "Kapat", + "copy_link": "Bağlantıyı kopyala", + "edit": "Düzenle", "go": "Git", + "invite": "Davet et", + "lower_hand": "Elini indir", "no": "Hayır", + "pick_reaction": "Tepki seç", + "raise_hand": "Elini kaldır", "register": "Kaydol", "remove": "Çıkar", + "show_less": "Daha az göster", + "show_more": "Daha fazla göster", "sign_in": "Gir", - "sign_out": "Çık" + "sign_out": "Çık", + "submit": "Gönder", + "upload_file": "Dosya Yükle" + }, + "analytics_notice": "Bu beta sürümüne katılarak, ürünü geliştirmek için kullandığımız anonim verilerin toplanmasına izin vermiş olursunuz. Hangi verileri izlediğimiz hakkında daha fazla bilgiyi <2>Gizlilik Politikamızda ve <6>Çerez Politikamızda bulabilirsiniz..", + "app_selection_modal": { + "continue_in_browser": "Tarayıcıda devam et", + "open_in_app": "Uygulamada aç", + "text": "Katılmaya hazır mısınız?", + "title": "Uygulama seçin" }, "call_ended_view": { "create_account_button": "Hesap aç", "create_account_prompt": "<0>Hesabınızı tutmak için niye bir parola açmıyorsunuz?<1>Böylece ileriki aramalarda adınızı ve avatarınızı kullanabileceksiniz", - "not_now_button": "Şimdi değil, ev ekranına dön" + "feedback_done": "<0>Geri bildiriminiz için teşekkürler!", + "feedback_prompt": "<0>Deneyiminizi geliştirebilmemiz için geri bildirimlerinizi duymak isteriz.", + "headline": "{{displayName}}, çağrınız sona erdi.", + "not_now_button": "Şimdi değil, ev ekranına dön", + "reconnect_button": "Yeniden bağlan", + "survey_prompt": "Nasıl geçti?" }, + "call_name": "Aramanın adı", "common": { + "analytics": "Analiz", "audio": "Ses", - "camera": "Kamera", + "avatar": "Avatar", + "back": "Geri", "display_name": "Ekran adı", + "encrypted": "Şifrelenmiş", "home": "Ev", "loading": "Yükleniyor…", - "microphone": "Mikrofon", + "next": "İleri", + "options": "Seçenekler", "password": "Parola", - "settings": "Ayarlar" + "preferences": "Tercihler", + "profile": "Profil", + "reaction": "Tepki", + "reactions": "Tepkiler", + "settings": "Ayarlar", + "unencrypted": "Şifrelenmemiş", + "username": "Kullanıcı adı", + "video": "Video" + }, + "developer_mode": { + "crypto_version": "Şifreleme sürümü: {{version}}", + "debug_tile_layout_label": "Hata ayıklama döşeme düzeni", + "device_id": "Cihaz Kimliği: {{id}}", + "duplicate_tiles_label": "Katılımcı başına ek döşeme sayısı", + "hostname": "Sunucu adı: {{hostname}}", + "livekit_server_info": "LiveKit Sunucu Bilgisi", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix Kimliği: {{id}}", + "show_connection_stats": "Bağlantı istatistiklerini göster", + "show_non_member_tiles": "Üye olmayan kullanıcılar için ortam döşemelerini göster" + }, + "disconnected_banner": "Sunucuyla bağlantı kesildi.", + "error": { + "call_not_found": "Çağrı bulunamadı", + "call_not_found_description": "<0>Bu bağlantı mevcut herhangi bir çağrıya ait görünmüyor. Doğru bağlantıya sahip olduğunuzu kontrol edin veya <1> yeni bir bağlantı oluşturun. ", + "connection_lost": "Bağlantı kesildi", + "connection_lost_description": "Çağrıdan bağlantınız kesildi.", + "e2ee_unsupported": "Uyumsuz Tarayıcı", + "e2ee_unsupported_description": "İnternet tarayıcınız şifreli aramaları desteklemiyor. Desteklenen tarayıcılar arasında Chrome, Safari ve Firefox 117+ bulunur.", + "generic": "Bir şeyler ters gitti", + "generic_description": "Hata ayıklama günlüklerini göndermeniz sorunu tespit etmemizde yardımcı olacaktır.", + "open_elsewhere": "Başka bir sekmede açıldı", + "open_elsewhere_description": "{{brand}} başka bir sekmede açıldı. Bu doğru değilse, sayfayı yeniden yüklemeyi deneyin." + }, + "group_call_loader": { + "banned_body": "Odaya girmeniz yasaklandı.", + "banned_heading": "Yasaklandı", + "call_ended_body": "Aramadan çıkarıldınız.", + "call_ended_heading": "Arama sonlandırıldı", + "knock_reject_body": "Katılma isteğiniz reddedildi.", + "knock_reject_heading": "Erişim reddedildi", + "reason": "Neden: {{reason}}" + }, + "hangup_button_label": "Aramayı sonlandır", + "header_label": "Element Call Ana Sayfa", + "header_participants_label": "Katılımcılar", + "invite_modal": { + "link_copied_toast": "Bağlantı panoya kopyalandı", + "title": "Bu görüşmeye davet edin" }, "join_existing_call_modal": { + "join_button": "Evet, aramaya katıl", "text": "Bu arama zaten var, katılmak ister misiniz?", "title": "Mevcut aramaya katıl?" }, + "layout_grid_label": "Izgara", + "layout_spotlight_label": "İlgi Odağı", "lobby": { - "join_button": "Aramaya katıl" + "ask_to_join": "Aramaya katılma isteği gönder", + "join_as_guest": "Misafir olarak katıl", + "join_button": "Aramaya katıl", + "leave_button": "Son aramalara dön", + "waiting_for_invite": "İstek gönderildi! Katılmak için izin verilmesi bekleniyor…" }, + "log_in": "Giriş yap", "logging_in": "Giriliyor…", "login_auth_links": "<0>Hesap oluştur yahut <2>Konuk olarak gir", + "login_auth_links_prompt": "Henüz kaydolmadınız mı?", + "login_subheading": "Element'e devam etmek için", "login_title": "Gir", + "microphone_off": "Mikrofon kapalı", + "microphone_on": "Mikrofon açık", + "mute_microphone_button_label": "Mikrofonu sessize al", + "participant_count_one": "{{count, number}}", + "participant_count_other": "{{count, number}}", + "qr_code": "QR Kodu", + "rageshake_button_error_caption": "Günlükleri göndermeyi yeniden dene", "rageshake_request_modal": { "body": "Bu aramadaki başka bir kullanıcı sorun yaşıyor. Sorunu daha iyi çözebilmemiz için hata ayıklama kütüğünü almak isteriz.", "title": "Hata ayıklama kütük istemi" }, "rageshake_send_logs": "Hata ayıklama kütüğünü gönder", "rageshake_sending": "Gönderiliyor…", + "rageshake_sending_logs": "Hata ayıklama günlükleri gönderiliyor...", + "rageshake_sent": "Teşekkürler!", "recaptcha_dismissed": "reCAPTCHA atlandı", "recaptcha_not_loaded": "reCAPTCHA yüklenmedi", "register": { @@ -47,13 +144,66 @@ }, "register_auth_links": "<0>Mevcut hesabınız mı var?<1><0>Gir yahut <2>Konuk girişi", "register_confirm_password_label": "Parolayı tekrar edin", + "register_heading": "Hesabınızı Oluşturun", "return_home_button": "Ev ekranına geri dön", + "room_auth_view_continue_button": "Devam et", "screenshare_button_label": "Ekran paylaş", "settings": { + "audio_tab": { + "effect_volume_description": "Tepkilerin ve el kaldırmaların çaldığı ses düzeyini ayarlayın.", + "effect_volume_label": "Ses efekti sesi" + }, "developer_tab_title": "Geliştirici", + "devices": { + "camera": "Kamera", + "camera_numbered": "Kamera {{n}}", + "default": "Varsayılan", + "default_named": "Varsayılan <2>({{name}})", + "microphone": "Mikrofon", + "microphone_numbered": "Mikrofon {{n}}", + "speaker": "Hoparlör", + "speaker_numbered": "Hoparlör {{n}}" + }, + "feedback_tab_body": "Sorun yaşıyorsanız veya yalnızca geri bildirimde bulunmak istiyorsanız, lütfen bize aşağıdan kısa bir açıklama gönderin.", + "feedback_tab_description_label": "Görüşleriniz", "feedback_tab_h4": "Geri bildirim ver", - "feedback_tab_send_logs_label": "Hata ayıklama kütüğünü dahil et" + "feedback_tab_send_logs_label": "Hata ayıklama kütüğünü dahil et", + "feedback_tab_thank_you": "Teşekkürler, geri bildiriminizi aldık!", + "feedback_tab_title": "Geri Bildirim", + "opt_in_description": "<0><1>Bu kutunun işaretini kaldırarak onayınızı geri çekebilirsiniz. Şu anda bir aramadaysanız, bu ayar aramanın sonunda geçerli olacaktır.", + "preferences_tab": { + "developer_mode_label": "Geliştirici modu", + "developer_mode_label_description": "Geliştirici modunu etkinleştir ve geliştirici ayarları sekmesini göster.", + "introduction": "Burada daha iyi bir deneyim için ek seçenekleri yapılandırabilirsiniz.", + "reactions_play_sound_description": "Birisi aramada tepki gönderdiğinde ses efekti çal.", + "reactions_play_sound_label": "Tepki seslerini çal", + "reactions_show_description": "Biri tepki gönderdiğinde animasyon göster.", + "reactions_show_label": "Tepkileri göster", + "show_hand_raised_timer_description": "Bir katılımcı elini kaldırdığında bir zamanlayıcı göster", + "show_hand_raised_timer_label": "El kaldırma süresini göster" + } }, + "star_rating_input_label_one": "{{count}} yıldız", + "star_rating_input_label_other": "{{count}} yıldız", + "start_new_call": "Yeni arama başlat", + "start_video_button_label": "Videoy paylaşımı Başlat", + "stop_screenshare_button_label": "Ekran paylaşılıyor", + "stop_video_button_label": "Video paylaşımını durdur", + "submitting": "Gönderiliyor...", + "switch_camera": "Kamerayı değiştir", "unauthenticated_view_body": "Kaydolmadınız mı? <2>Hesap açın", - "unauthenticated_view_login_button": "Hesabınıza girin" + "unauthenticated_view_login_button": "Hesabınıza girin", + "unmute_microphone_button_label": "Mikrofonun sesini aç", + "version": "{{productName}} sürüm: {{version}}", + "video_tile": { + "always_show": "Her zaman göster", + "camera_starting": "Video paylaşımı başlatılıyor...", + "change_fit_contain": "Çerçeveye sığdır", + "collapse": "Daralt", + "expand": "Genişlet", + "mute_for_me": "Benim için sessize al", + "muted_for_me": "Benim için susturulanlar", + "volume": "Ses", + "waiting_for_media": "Ortam bekleniyor..." + } } diff --git a/locales/uk/app.json b/locales/uk/app.json index 4faa19df..d7d1b0ea 100644 --- a/locales/uk/app.json +++ b/locales/uk/app.json @@ -5,25 +5,30 @@ "action": { "close": "Закрити", "copy_link": "Скопіювати посилання", + "edit": "Редагувати", "go": "Далі", "invite": "Запросити", + "lower_hand": "Опустити руку", "no": "Ні", + "pick_reaction": "Виберіть реакцію", + "raise_hand": "Підняти руку", "register": "Зареєструватися", "remove": "Вилучити", + "show_less": "Показувати менше", + "show_more": "Показати більше", "sign_in": "Увійти", "sign_out": "Вийти", - "submit": "Надіслати" + "submit": "Надіслати", + "upload_file": "Завантажити файл" }, - "analytics_notice": "Користуючись дочасним доступом, ви даєте згоду на збір анонімних даних, які ми використовуємо для вдосконалення продукту. Ви можете знайти більше інформації про те, які дані ми відстежуємо в нашій <2>Політиці Приватності і нашій <5>Політиці про куки.", + "analytics_notice": "Користуючись дочасним доступом, ви даєте згоду на збір анонімних даних, які ми використовуємо для вдосконалення продукту. Ви можете знайти більше інформації про те, які дані ми відстежуємо в нашій <2>Політиці Приватності і нашій <6>Політиці про файли cookie.", "app_selection_modal": { "continue_in_browser": "Продовжити у браузері", "open_in_app": "Відкрити у застосунку", "text": "Готові приєднатися?", "title": "Вибрати застосунок" }, - "browser_media_e2ee_unsupported": "Ваш браузер не підтримує наскрізне шифрування мультимедійних даних. Підтримувані браузери: Chrome, Safari, Firefox >=117", "call_ended_view": { - "body": "Вас від'єднано від виклику", "create_account_button": "Створити обліковий запис", "create_account_prompt": "<0>Чому б не завершити, налаштувавши пароль для збереження свого облікового запису?<1>Ви зможете зберегти своє ім'я та встановити аватарку для подальшого користування під час майбутніх викликів", "feedback_done": "<0>Дякуємо за ваш відгук!", @@ -35,24 +40,68 @@ }, "call_name": "Назва виклику", "common": { + "analytics": "Аналітика", "audio": "Звук", "avatar": "Аватар", - "camera": "Камера", + "back": "Назад", "display_name": "Псевдонім", "encrypted": "Зашифровано", "home": "Домівка", "loading": "Завантаження…", - "microphone": "Мікрофон", + "next": "Далі", + "options": "Налаштування", "password": "Пароль", + "preferences": "Уподобання", "profile": "Профіль", + "reaction": "Реакція", + "reactions": "Реакції", "settings": "Налаштування", "unencrypted": "Не зашифровано", "username": "Ім'я користувача", "video": "Відео" }, + "developer_mode": { + "crypto_version": "Крипто-версія: {{version}}", + "debug_tile_layout_label": "Налагоджування макету плиток", + "device_id": "ID пристрою: {{id}}", + "duplicate_tiles_label": "Кількість додаткових копій плиток на одного учасника", + "environment_variables": "Змінні середовища", + "hostname": "Ім'я хоста: {{hostname}}", + "livekit_server_info": "Інформація про сервер LiveKit", + "livekit_sfu": "LiveKit SFU: {{url}}", + "matrix_id": "Matrix ID: {{id}}", + "show_connection_stats": "Показувати статистику підключення", + "show_non_member_tiles": "Показувати плитки для медіа, які не є учасниками", + "url_params": "Параметри URL", + "use_new_membership_manager": "Використовуйте нову реалізацію виклику MembershipManager" + }, "disconnected_banner": "Втрачено зв'язок з сервером.", - "full_screen_view_description": "<0>Надсилання журналів налагодження допоможе нам виявити проблему.", - "full_screen_view_h1": "<0>Йой, щось пішло не за планом.", + "error": { + "call_is_not_supported": "Виклик не підтримується", + "call_not_found": "Виклик не знайдено", + "call_not_found_description": "<0>Схоже, що це посилання не належить до жодного існуючого дзвінка. Перевірте, чи посилання правильне, або <1> створіть нове. ", + "connection_lost": "Зв'язок втрачено", + "connection_lost_description": "Вас було відключено від дзвінка.", + "e2ee_unsupported": "Несумісний браузер", + "e2ee_unsupported_description": "Ваш веб-браузер не підтримує зашифровані дзвінки. Підтримувані браузери включають Chrome, Safari та Firefox 117+.", + "generic": "Щось пішло не так", + "generic_description": "Надсилання журналів налагодження допоможе нам відстежити проблему.", + "insufficient_capacity": "Недостатньо обсягу", + "insufficient_capacity_description": "Сервер досяг максимального обсягу, і ви на разі не можете приєднатися до виклику. Спробуйте пізніше або зверніться до адміністратора сервера, якщо проблема не зникне.", + "matrix_rtc_focus_missing": "Сервер не налаштований щоб працювати з {{brand}}. Будь ласка, зв'яжіться з адміністратором сервера (Домен: {{domain}}, Код помилки: {{ errorCode }}).", + "open_elsewhere": "Відкрито в іншій вкладці", + "open_elsewhere_description": "{{brand}} було відкрито в іншій вкладці. Якщо це звучить неправильно, спробуйте перезавантажити сторінку.", + "unexpected_ec_error": "Сталася несподівана помилка (<0>Код помилки: <1> {{ errorCode }}). Будь ласка, зв'яжіться з адміністратором сервера." + }, + "group_call_loader": { + "banned_body": "Вас було забанено в цій кімнаті.", + "banned_heading": "Забанено", + "call_ended_body": "Вас вилучено з виклику.", + "call_ended_heading": "Виклик завершено", + "knock_reject_body": "Ваш запит на приєднання було відхилено.", + "knock_reject_heading": "Доступ заборонено", + "reason": "Причина: {{reason}}" + }, "hangup_button_label": "Завершити виклик", "header_label": "Домівка Element Call", "header_participants_label": "Учасники", @@ -68,15 +117,25 @@ "layout_grid_label": "Сітка", "layout_spotlight_label": "У центрі уваги", "lobby": { + "ask_to_join": "Запит на приєднання до виклику", + "join_as_guest": "Приєднатись як гість", "join_button": "Приєднатися до виклику", - "leave_button": "Повернутися до недавніх" + "leave_button": "Повернутися до недавніх", + "waiting_for_invite": "Запит надіслано! Чекаємо дозволу на приєднання..." }, + "log_in": "Увійти", "logging_in": "Вхід…", "login_auth_links": "<0>Створити обліковий запис або <2>Отримати доступ як гість", + "login_auth_links_prompt": "Ще не зареєстровані?", + "login_subheading": "Продовжити в Element", "login_title": "Увійти", "microphone_off": "Мікрофон вимкнено", "microphone_on": "Мікрофон увімкнено", "mute_microphone_button_label": "Вимкнути мікрофон", + "participant_count_one": "{{count, number}}", + "participant_count_few": "{{count, number}}", + "participant_count_many": "{{count, number}}", + "qr_code": "QR-код", "rageshake_button_error_caption": "Повторити надсилання журналів", "rageshake_request_modal": { "body": "Інший користувач у цьому виклику має проблему. Щоб краще визначити ці проблеми, ми хотіли б зібрати журнал налагодження.", @@ -86,20 +145,36 @@ "rageshake_sending": "Надсилання…", "rageshake_sending_logs": "Надсилання журналу налагодження…", "rageshake_sent": "Дякуємо!", - "recaptcha_caption": "Цей сайт захищений ReCAPTCHA і до нього застосовується <2>Політика приватності і <6>Умови надання послуг Google.<9>Натискаючи \"Зареєструватися\", ви погоджуєтеся з нашою <12>Ліцензійною угодою з кінцевим користувачем (EULA)", "recaptcha_dismissed": "Recaptcha не пройдено", "recaptcha_not_loaded": "Recaptcha не завантажено", + "recaptcha_ssla_caption": "Цей сайт захищений ReCAPTCHA та Google<2>Політикою конфіденційності і <6>Умови обслуговування застосовуються.<9> Натискаючи «Зареєструватися», ви погоджуєтеся з нашою<12> Ліцензійна угодою про програмне забезпечення та послуги (SSLA)", "register": { "passwords_must_match": "Паролі відрізняються", "registering": "Реєстрація…" }, "register_auth_links": "<0>Уже маєте обліковий запис?<1><0>Увійти Or <2>Отримати доступ як гість", "register_confirm_password_label": "Підтвердити пароль", + "register_heading": "Створити свій акаунт", "return_home_button": "Повернутися на екран домівки", - "room_auth_view_eula_caption": "Натискаючи \"Приєднатися до виклику зараз\", ви погоджуєтеся з нашою <2>Ліцензійною угодою з кінцевим користувачем (EULA)", + "room_auth_view_continue_button": "Продовжити", + "room_auth_view_ssla_caption": "Натиснувши «Приєднатися до виклику зараз», ви погоджуєтеся з нашою <2>Ліцензійною угодою на програмне забезпечення та послуги (SSLA) ", "screenshare_button_label": "Поділитися екраном", "settings": { + "audio_tab": { + "effect_volume_description": "Змінити гучність реакцій і ефекту підіймання руки.", + "effect_volume_label": "Гучність звукових ефектів" + }, "developer_tab_title": "Розробнику", + "devices": { + "camera": "Камера", + "camera_numbered": "Камера {{n}}", + "default": "За замовчуванням", + "default_named": "За замовчуванням <2> ({{name}}) ", + "microphone": "Мікрофон", + "microphone_numbered": "Мікрофон {{n}}", + "speaker": "Динамік", + "speaker_numbered": "Динамік {{n}}" + }, "feedback_tab_body": "Якщо у вас виникли проблеми або ви просто хочете залишити відгук, надішліть нам короткий опис нижче.", "feedback_tab_description_label": "Ваш відгук", "feedback_tab_h4": "Надіслати відгук", @@ -107,18 +182,41 @@ "feedback_tab_thank_you": "Дякуємо, ми отримали ваш відгук!", "feedback_tab_title": "Відгук", "opt_in_description": "<0><1>Ви можете відкликати згоду, прибравши цей прапорець. Якщо ви зараз розмовляєте, це налаштування застосується після завершення виклику.", - "speaker_device_selection_label": "Динамік" + "preferences_tab": { + "developer_mode_label": "Режим розробника", + "developer_mode_label_description": "Увімкнути режим розробника та показати вкладку налаштувань розробника.", + "introduction": "Тут ви можете налаштувати додаткові параметри для кращого досвіду.", + "reactions_play_sound_description": "Відтворювати звуковий ефект, коли хтось надсилає реакцію у виклик.", + "reactions_play_sound_label": "Відтворювати звуки реакції", + "reactions_show_description": "Показувати анімацію, коли хтось надсилає реакцію.", + "reactions_show_label": "Показувати реакції", + "show_hand_raised_timer_description": "Показувати таймер, коли учасник піднімає руку", + "show_hand_raised_timer_label": "Показувати тривалість підняття руки" + } }, - "star_rating_input_label_one": "{{count}} зірок", - "star_rating_input_label_other": "{{count}} зірок", + "star_rating_input_label_one": "{{count}} зірка", + "star_rating_input_label_few": "{{count}} зірки", + "star_rating_input_label_many": "{{count}} зірок", "start_new_call": "Розпочати новий виклик", "start_video_button_label": "Розпочати відео", "stop_screenshare_button_label": "Презентація екрана", "stop_video_button_label": "Зупинити відео", "submitting": "Надсилання…", + "switch_camera": "Переключити камеру", "unauthenticated_view_body": "Ще не зареєстровані? <2>Створіть обліковий запис", - "unauthenticated_view_eula_caption": "Натискаючи \"Далі\", ви погоджуєтеся з нашою <2>Ліцензійною угодою з кінцевим користувачем (EULA)", "unauthenticated_view_login_button": "Увійдіть до свого облікового запису", + "unauthenticated_view_ssla_caption": "Натискаючи \"Перейти\", ви погоджуєтеся з нашою <2>Ліцензійною угодою на програмне забезпечення та послуги (SSLA) ", "unmute_microphone_button_label": "Увімкнути мікрофон", - "version": "Версія: {{version}}" + "version": "{{productName}} версія: {{version}}", + "video_tile": { + "always_show": "Показувати завжди", + "camera_starting": "Завантаження відео...", + "change_fit_contain": "Допасувати до рамки", + "collapse": "Згорнути", + "expand": "Розгорнути", + "mute_for_me": "Вимкнути звук для мене", + "muted_for_me": "Вимкнено звук для мене", + "volume": "Гучність", + "waiting_for_media": "Очікування медіа..." + } } diff --git a/locales/vi/app.json b/locales/vi/app.json index 3bd622ce..2659d587 100644 --- a/locales/vi/app.json +++ b/locales/vi/app.json @@ -17,18 +17,14 @@ "common": { "audio": "Âm thanh", "avatar": "Ảnh đại diện", - "camera": "Máy quay", "display_name": "Tên hiển thị", "loading": "Đang tải…", - "microphone": "Micrô", "password": "Mật khẩu", "profile": "Hồ sơ", "settings": "Cài đặt", "username": "Tên người dùng", "video": "Truyền hình" }, - "full_screen_view_description": "<0>Gửi nhật ký gỡ lỗi sẽ giúp chúng tôi theo dõi vấn đề.", - "full_screen_view_h1": "<0>Ối, có cái gì đó sai.", "join_existing_call_modal": { "join_button": "Vâng, tham gia cuộc gọi", "text": "Cuộc gọi đã tồn tại, bạn có muốn tham gia không?", @@ -60,8 +56,7 @@ "feedback_tab_h4": "Gửi phản hồi", "feedback_tab_send_logs_label": "Kèm theo nhật ký gỡ lỗi", "feedback_tab_thank_you": "Cảm ơn, chúng tôi đã nhận được phản hồi!", - "feedback_tab_title": "Phản hồi", - "speaker_device_selection_label": "Loa" + "feedback_tab_title": "Phản hồi" }, "submitting": "Đang gửi…", "unauthenticated_view_body": "Chưa đăng ký? <2>Tạo tài khoản", diff --git a/locales/zh-Hans/app.json b/locales/zh-Hans/app.json index 58d405d0..9c0e7c8f 100644 --- a/locales/zh-Hans/app.json +++ b/locales/zh-Hans/app.json @@ -4,7 +4,9 @@ }, "action": { "close": "关闭", + "copy_link": "复制链接", "go": "开始", + "invite": "邀请", "no": "否", "register": "注册", "remove": "移除", @@ -19,9 +21,7 @@ "text": "准备好加入了吗?", "title": "选择应用程序" }, - "browser_media_e2ee_unsupported": "您的浏览器不支持媒体端对端加密。支持的浏览器有 Chrome、Safari、Firefox >=117", "call_ended_view": { - "body": "通话已中断", "create_account_button": "创建账户", "create_account_prompt": "<0>为何不设置密码来保留你的账户?<1>保留昵称并设置头像,以便在未来的通话中使用。", "feedback_done": "<0>感谢反馈!", @@ -33,14 +33,14 @@ }, "call_name": "通话名称", "common": { + "analytics": "分析", "audio": "音频", "avatar": "头像", - "camera": "摄像头", "display_name": "显示名称", "encrypted": "已加密", "home": "主页", "loading": "加载中……", - "microphone": "麦克风", + "options": "选项", "password": "密码", "profile": "个人信息", "settings": "设置", @@ -49,10 +49,20 @@ "video": "视频" }, "disconnected_banner": "与服务器的连接中断。", - "full_screen_view_description": "<0>提交日志以帮助我们修复问题。", - "full_screen_view_h1": "<0>哎哟,出问题了。", + "group_call_loader": { + "banned_body": "你已被房间封禁", + "banned_heading": "已被封禁", + "call_ended_body": "你已被移出通话", + "call_ended_heading": "通话结束", + "knock_reject_body": "房间成员拒绝了你的加入请求" + }, "hangup_button_label": "通话结束", "header_label": "Element Call主页", + "header_participants_label": "参与者", + "invite_modal": { + "link_copied_toast": "链接已复制到剪贴板", + "title": "邀请参加此次通话" + }, "join_existing_call_modal": { "join_button": "是,加入通话", "text": "该通话已存在,你想加入吗?", @@ -64,12 +74,16 @@ "join_button": "加入通话", "leave_button": "返回最近通话" }, + "log_in": "登录", "logging_in": "登录中……", "login_auth_links": "<0>创建账户 Or <2>以访客身份继续", + "login_auth_links_prompt": "还未注册?", + "login_subheading": "继续使用 Element", "login_title": "登录", "microphone_off": "麦克风关闭", "microphone_on": "麦克风开启", "mute_microphone_button_label": "静音麦克风", + "participant_count_other": "{{count, number}}", "rageshake_button_error_caption": "重传日志", "rageshake_request_modal": { "body": "这个通话中的另一个用户出现了问题。为了更好地诊断这些问题,我们想收集调试日志。", @@ -79,7 +93,6 @@ "rageshake_sending": "正在发送……", "rageshake_sending_logs": "正在发送调试日志……", "rageshake_sent": "谢谢!", - "recaptcha_caption": "该站点受 ReCAPTCHA 保护,适用于Google的 <2>隐私政策和 <6>服务条款。 <9>点击 \"注册\",即表示您同意我们的 <12>最终用户许可协议 (EULA)", "recaptcha_dismissed": "人机验证失败", "recaptcha_not_loaded": "recaptcha未加载", "register": { @@ -88,8 +101,8 @@ }, "register_auth_links": "<0>已有账户?<1><0>登录 Or <2>以访客身份继续", "register_confirm_password_label": "确认密码", + "register_heading": "创建您的账户", "return_home_button": "返回主页", - "room_auth_view_eula_caption": "点击 \"加入通话\",即表示您同意我们的<2>最终用户许可协议 (EULA)", "screenshare_button_label": "屏幕共享", "settings": { "developer_tab_title": "开发者", @@ -99,8 +112,7 @@ "feedback_tab_send_logs_label": "包含调试日志", "feedback_tab_thank_you": "谢谢,我们收到了反馈!", "feedback_tab_title": "反馈", - "opt_in_description": "<0><1>您可以取消选中复选框来撤回同意。如果正在通话中,此设置将在通话结束时生效。", - "speaker_device_selection_label": "发言人" + "opt_in_description": "<0><1>您可以取消选中复选框来撤回同意。如果正在通话中,此设置将在通话结束时生效。" }, "star_rating_input_label_one": "{{count}} 个星", "star_rating_input_label_other": "{{count}} 个星", @@ -110,8 +122,12 @@ "stop_video_button_label": "停止视频", "submitting": "提交中…", "unauthenticated_view_body": "还没有注册? <2>创建账户<2>", - "unauthenticated_view_eula_caption": "点击 \"开始\",即表示您同意我们的<2>最终用户许可协议 (EULA)", "unauthenticated_view_login_button": "登录你的账户", "unmute_microphone_button_label": "取消麦克风静音", - "version": "版本:{{version}}" + "version": "版本:{{version}}", + "video_tile": { + "change_fit_contain": "贴合框架", + "mute_for_me": "为我静音", + "volume": "音量" + } } diff --git a/locales/zh-Hant/app.json b/locales/zh-Hant/app.json index b73e4658..8d474be5 100644 --- a/locales/zh-Hant/app.json +++ b/locales/zh-Hant/app.json @@ -21,9 +21,7 @@ "text": "準備好加入了?", "title": "選取應用程式" }, - "browser_media_e2ee_unsupported": "您的網路瀏覽器不支援媒體端到端加密。支援的瀏覽器包含了 Chrome、Safari、Firefox >=117", "call_ended_view": { - "body": "您已從通話斷線", "create_account_button": "建立帳號", "create_account_prompt": "<0>何不設定密碼以保留此帳號?<1>您可以保留暱稱並設定頭像,以便未來通話時使用", "feedback_done": "<0>感謝您的回饋!", @@ -37,12 +35,10 @@ "common": { "audio": "語音", "avatar": "大頭照", - "camera": "相機", "display_name": "顯示名稱", "encrypted": "已加密", "home": "首頁", "loading": "載入中…", - "microphone": "麥克風", "password": "密碼", "profile": "個人檔案", "settings": "設定", @@ -51,8 +47,6 @@ "video": "視訊" }, "disconnected_banner": "到伺服器的連線已遺失。", - "full_screen_view_description": "<0>送出除錯紀錄,可幫助我們修正問題。", - "full_screen_view_h1": "<0>喔喔,有些地方怪怪的。", "hangup_button_label": "結束通話", "header_label": "Element Call 首頁", "header_participants_label": "參與者", @@ -86,7 +80,6 @@ "rageshake_sending": "傳送中…", "rageshake_sending_logs": "傳送除錯記錄檔中…", "rageshake_sent": "感謝!", - "recaptcha_caption": "此網站被 ReCAPTCHA 保護,並適用 Google 的<2>隱私權政策與<6>服務條款。<9>點擊「註冊」即表示您同意我們的<12>終端使用者授權協議 (EULA)", "recaptcha_dismissed": "略過驗證碼", "recaptcha_not_loaded": "驗證碼未載入", "register": { @@ -96,7 +89,6 @@ "register_auth_links": "<0>已經有帳號?<1><0>登入 或<2>以訪客身份登入", "register_confirm_password_label": "確認密碼", "return_home_button": "回到首頁", - "room_auth_view_eula_caption": "點擊「立刻加入通話」即表示您同意我們的<2>終端使用者授權協議 (EULA)", "screenshare_button_label": "分享畫面", "settings": { "developer_tab_title": "開發者", @@ -106,8 +98,7 @@ "feedback_tab_send_logs_label": "包含除錯紀錄", "feedback_tab_thank_you": "感謝,我們已經收到您的回饋了!", "feedback_tab_title": "回饋", - "opt_in_description": "<0><1>您可以透過取消核取此方塊來撤回同意。若您目前正在通話中,此設定將在通話結束時生效。", - "speaker_device_selection_label": "發言者" + "opt_in_description": "<0><1>您可以透過取消核取此方塊來撤回同意。若您目前正在通話中,此設定將在通話結束時生效。" }, "star_rating_input_label_one": "{{count}} 個星星", "star_rating_input_label_other": "{{count}} 個星星", @@ -117,7 +108,6 @@ "stop_video_button_label": "停止影片", "submitting": "正在遞交……", "unauthenticated_view_body": "還沒註冊嗎?<2>建立帳號", - "unauthenticated_view_eula_caption": "點擊「前往」即表示您同意我們的<2>終端使用者授權協議 (EULA)", "unauthenticated_view_login_button": "登入您的帳號", "unmute_microphone_button_label": "將麥克風取消靜音", "version": "版本: {{version}}" diff --git a/package.json b/package.json index 4ad919f2..ae4b85a1 100644 --- a/package.json +++ b/package.json @@ -3,21 +3,34 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", - "build": "NODE_OPTIONS=--max-old-space-size=16384 vite build", + "dev": "yarn dev:full", + "dev:full": "vite", + "dev:embedded": "vite --config vite-embedded.config.js", + "build": "yarn build:full", + "build:full": "NODE_OPTIONS=--max-old-space-size=16384 vite build", + "build:full:production": "yarn build:full", + "build:full:development": "yarn build:full --mode development", + "build:embedded": "yarn build:full --config vite-embedded.config.js", + "build:embedded:production": "yarn build:embedded", + "build:embedded:development": "yarn build:embedded --mode development", "serve": "vite preview", "prettier:check": "prettier -c .", "prettier:format": "prettier -w .", "lint": "yarn lint:types && yarn lint:eslint && yarn lint:knip", - "lint:eslint": "eslint --max-warnings 0 src", - "lint:eslint-fix": "eslint --max-warnings 0 src --fix", + "lint:eslint": "eslint --max-warnings 0 src playwright", + "lint:eslint-fix": "eslint --max-warnings 0 src playwright --fix", "lint:knip": "knip", "lint:types": "tsc", "i18n": "i18next", "i18n:check": "i18next --fail-on-warnings --fail-on-update", "test": "vitest", "test:coverage": "vitest --coverage", - "backend": "docker-compose -f dev-backend-docker-compose.yml up" + "backend": "docker-compose -f dev-backend-docker-compose.yml up", + "backend-playwright": "docker-compose -f playwright-backend-docker-compose.yml -f playwright-backend-docker-compose.override.yml up", + "test:playwright": "playwright test", + "test:playwright:open": "yarn test:playwright --ui", + "links:enable": "mv .links.disabled.yaml .links.yaml & touch .links.yaml", + "links:disable": "mv .links.yaml .links.disabled.yaml" }, "devDependencies": { "@babel/core": "^7.16.5", @@ -29,69 +42,74 @@ "@fontsource/inter": "^5.1.0", "@formatjs/intl-durationformat": "^0.7.0", "@formatjs/intl-segmenter": "^11.7.3", - "@livekit/components-core": "^0.11.0", + "@livekit/components-core": "^0.12.0", "@livekit/components-react": "^2.0.0", + "@livekit/protocol": "^1.38.0", + "@livekit/track-processors": "^0.5.5", + "@mediapipe/tasks-vision": "^0.10.18", "@opentelemetry/api": "^1.4.0", - "@opentelemetry/core": "^1.25.1", - "@opentelemetry/exporter-trace-otlp-http": "^0.57.0", - "@opentelemetry/resources": "^1.25.1", - "@opentelemetry/sdk-trace-base": "^1.25.1", - "@opentelemetry/sdk-trace-web": "^1.9.1", + "@opentelemetry/core": "^2.0.0", + "@opentelemetry/exporter-trace-otlp-http": "^0.203.0", + "@opentelemetry/resources": "^2.0.0", + "@opentelemetry/sdk-trace-base": "^2.0.0", + "@opentelemetry/sdk-trace-web": "^2.0.0", "@opentelemetry/semantic-conventions": "^1.25.1", + "@playwright/test": "^1.52.0", "@radix-ui/react-dialog": "^1.0.4", "@radix-ui/react-slider": "^1.1.2", "@radix-ui/react-visually-hidden": "^1.0.3", - "@react-spring/web": "^9.4.4", + "@react-spring/web": "^10.0.0", "@sentry/react": "^8.0.0", - "@sentry/vite-plugin": "^2.0.0", - "@stylistic/eslint-plugin": "^2.12.1", + "@sentry/vite-plugin": "^3.0.0", + "@stylistic/eslint-plugin": "^3.0.0", "@testing-library/dom": "^10.1.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.0.0", "@testing-library/user-event": "^14.5.1", "@types/content-type": "^1.1.5", + "@types/dom-mediacapture-transform": "^0.1.11", "@types/grecaptcha": "^3.0.9", "@types/jsdom": "^21.1.7", "@types/lodash-es": "^4.17.12", "@types/node": "^22.0.0", "@types/pako": "^2.0.3", "@types/qrcode": "^1.5.5", - "@types/react": "^18.3.0", - "@types/react-dom": "^18.3.0", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "@types/sdp-transform": "^2.4.5", "@types/uuid": "10", - "@typescript-eslint/eslint-plugin": "^8.0.0", - "@typescript-eslint/parser": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^8.31.0", + "@typescript-eslint/parser": "^8.31.0", "@use-gesture/react": "^10.2.11", - "@vector-im/compound-design-tokens": "^3.0.0", - "@vector-im/compound-web": "^7.2.0", - "@vitejs/plugin-basic-ssl": "^1.0.1", + "@vector-im/compound-design-tokens": "^5.0.0", + "@vector-im/compound-web": "^8.0.0", "@vitejs/plugin-react": "^4.0.1", - "@vitest/coverage-v8": "^2.0.5", + "@vitest/coverage-v8": "^3.0.0", "babel-plugin-transform-vite-meta-env": "^1.0.3", "classnames": "^2.3.1", + "copy-to-clipboard": "^3.3.3", "eslint": "^8.14.0", "eslint-config-google": "^0.14.0", - "eslint-config-prettier": "^9.0.0", + "eslint-config-prettier": "^10.0.0", "eslint-plugin-deprecate": "^0.8.2", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-matrix-org": "^2.0.0", + "eslint-plugin-matrix-org": "2.1.0", "eslint-plugin-react": "^7.29.4", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-rxjs": "^5.0.3", "eslint-plugin-unicorn": "^56.0.0", - "global-jsdom": "^25.0.0", + "global-jsdom": "^26.0.0", "i18next": "^24.0.0", "i18next-browser-languagedetector": "^8.0.0", "i18next-parser": "^9.1.0", - "jsdom": "^25.0.0", + "jsdom": "^26.0.0", "knip": "^5.27.2", - "livekit-client": "^2.5.7", + "livekit-client": "^2.13.0", "lodash-es": "^4.17.21", "loglevel": "^1.9.1", - "matrix-js-sdk": "matrix-org/matrix-js-sdk#develop", - "matrix-widget-api": "^1.10.0", + "matrix-js-sdk": "github:matrix-org/matrix-js-sdk#head=develop", + "matrix-widget-api": "^1.13.0", "normalize.css": "^8.0.1", "observable-hooks": "^4.2.3", "pako": "^2.0.4", @@ -100,23 +118,27 @@ "posthog-js": "1.160.3", "prettier": "^3.0.0", "qrcode": "^1.5.4", - "react": "18", - "react-dom": "18", + "react": "19", + "react-dom": "19", "react-i18next": "^15.0.0", "react-router-dom": "^7.0.0", - "react-use-clipboard": "^1.0.7", "react-use-measure": "^2.1.1", "rxjs": "^7.8.1", "sass": "^1.42.1", - "typescript": "^5.1.6", + "typescript": "^5.8.3", "typescript-eslint-language-service": "^5.0.5", "unique-names-generator": "^4.6.0", "vaul": "^1.0.0", "vite": "^6.0.0", - "vite-plugin-compression2": "^1.3.1", - "vite-plugin-html-template": "^1.1.0", + "vite-plugin-generate-file": "^0.3.0", + "vite-plugin-html": "^3.2.2", "vite-plugin-svgr": "^4.0.0", - "vitest": "^2.0.0", + "vitest": "^3.0.0", "vitest-axe": "^1.0.0-pre.3" - } + }, + "resolutions": { + "@livekit/components-core/rxjs": "^7.8.1", + "@livekit/track-processors/@mediapipe/tasks-vision": "^0.10.18" + }, + "packageManager": "yarn@4.7.0" } diff --git a/playwright-backend-docker-compose.override.yml b/playwright-backend-docker-compose.override.yml new file mode 100644 index 00000000..dadbccc2 --- /dev/null +++ b/playwright-backend-docker-compose.override.yml @@ -0,0 +1,4 @@ +services: + synapse: + volumes: + - ./backend/playwright_homeserver.yaml:/data/cfg/homeserver.yaml:Z diff --git a/playwright-backend-docker-compose.yml b/playwright-backend-docker-compose.yml new file mode 100644 index 00000000..bb6686d0 --- /dev/null +++ b/playwright-backend-docker-compose.yml @@ -0,0 +1,2 @@ +include: + - dev-backend-docker-compose.yml diff --git a/playwright.config.ts b/playwright.config.ts new file mode 100644 index 00000000..7a8ee530 --- /dev/null +++ b/playwright.config.ts @@ -0,0 +1,89 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { defineConfig, devices } from "@playwright/test"; + +const baseURL = process.env.USE_DOCKER + ? "http://localhost:8080" + : "https://localhost:3000"; + +/** + * See https://playwright.dev/docs/test-configuration. + */ +export default defineConfig({ + testDir: "./playwright", + /* Run tests in files in parallel */ + fullyParallel: true, + /* Fail the build on CI if you accidentally left test.only in the source code. */ + forbidOnly: !!process.env.CI, + /* Retry on CI only */ + retries: process.env.CI ? 2 : 0, + /* Opt out of parallel tests on CI. */ + workers: process.env.CI ? 1 : undefined, + /* Reporter to use. See https://playwright.dev/docs/test-reporters */ + reporter: "html", + /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ + use: { + /* Base URL to use in actions like `await page.goto('/')`. */ + baseURL, + + /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ + trace: "on-first-retry", + }, + /* Configure projects for major browsers */ + projects: [ + { + name: "chromium", + use: { + ...devices["Desktop Chrome"], + permissions: [ + "clipboard-write", + "clipboard-read", + "microphone", + "camera", + ], + ignoreHTTPSErrors: true, + launchOptions: { + args: [ + "--use-fake-ui-for-media-stream", + "--use-fake-device-for-media-stream", + "--mute-audio", + ], + }, + }, + }, + + { + name: "firefox", + use: { + ...devices["Desktop Firefox"], + ignoreHTTPSErrors: true, + launchOptions: { + firefoxUserPrefs: { + "permissions.default.microphone": 1, + "permissions.default.camera": 1, + }, + }, + }, + }, + + // No safari for now, until I find a solution to fix `Not allowed to request resource` due to calling + // clear http to the homeserver + ], + + /* Run your local dev server before starting the tests */ + webServer: { + command: "./scripts/playwright-webserver-command.sh", + url: baseURL, + reuseExistingServer: !process.env.CI, + ignoreHTTPSErrors: true, + gracefulShutdown: { + signal: "SIGTERM", + timeout: 500, + }, + }, +}); diff --git a/playwright/access.spec.ts b/playwright/access.spec.ts new file mode 100644 index 00000000..da7ec364 --- /dev/null +++ b/playwright/access.spec.ts @@ -0,0 +1,131 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { expect, test } from "@playwright/test"; + +test("Sign up a new account, then login, then logout", async ({ browser }) => { + const userId = `test_user-id_${Date.now()}`; + + const newUserContext = await browser.newContext(); + const newUserPage = await newUserContext.newPage(); + await newUserPage.goto("/"); + + await expect(newUserPage.getByTestId("home_register")).toBeVisible(); + await newUserPage.getByTestId("home_register").click(); + + await newUserPage.getByTestId("register_username").click(); + await newUserPage.getByTestId("register_username").fill(userId); + + await newUserPage.getByTestId("register_password").click(); + await newUserPage.getByTestId("register_password").fill("password1!"); + await newUserPage.getByTestId("register_confirm_password").click(); + await newUserPage.getByTestId("register_confirm_password").fill("password1!"); + await newUserPage.getByTestId("register_register").click(); + + await expect( + newUserPage.getByRole("heading", { name: "Start new call" }), + ).toBeVisible(); + + // Now use a new page to login this account + const returningUserContext = await browser.newContext(); + const returningUserPage = await returningUserContext.newPage(); + await returningUserPage.goto("/"); + + await expect(returningUserPage.getByTestId("home_login")).toBeVisible(); + await returningUserPage.getByTestId("home_login").click(); + await returningUserPage.getByTestId("login_username").click(); + await returningUserPage.getByTestId("login_username").fill(userId); + await returningUserPage.getByTestId("login_password").click(); + await returningUserPage.getByTestId("login_password").fill("password1!"); + await returningUserPage.getByTestId("login_login").click(); + + await expect( + returningUserPage.getByRole("heading", { name: "Start new call" }), + ).toBeVisible(); + + // logout + await returningUserPage.getByTestId("usermenu_open").click(); + await returningUserPage.locator('[data-testid="usermenu_logout"]').click(); + + await expect( + returningUserPage.getByRole("link", { name: "Log In" }), + ).toBeVisible(); + await expect(returningUserPage.getByTestId("home_login")).toBeVisible(); +}); + +test("As a guest, create a call, share link and other join", async ({ + browser, +}) => { + // Use reduce motion to disable animations that are making the tests a bit flaky + const creatorContext = await browser.newContext({ reducedMotion: "reduce" }); + const creatorPage = await creatorContext.newPage(); + + await creatorPage.goto("/"); + + // ======== + // ARRANGE: The first user creates a call as guest, join it, then click the invite button to copy the invite link + // ======== + await creatorPage.getByTestId("home_callName").click(); + await creatorPage.getByTestId("home_callName").fill("Welcome"); + await creatorPage.getByTestId("home_displayName").click(); + await creatorPage.getByTestId("home_displayName").fill("Inviter"); + await creatorPage.getByTestId("home_go").click(); + await expect(creatorPage.locator("video")).toBeVisible(); + + // join + await creatorPage.getByTestId("lobby_joinCall").click(); + // Spotlight mode to make checking the test visually clearer + await creatorPage.getByRole("radio", { name: "Spotlight" }).check(); + + // Get the invite link + await creatorPage.getByRole("button", { name: "Invite" }).click(); + await expect( + creatorPage.getByRole("heading", { name: "Invite to this call" }), + ).toBeVisible(); + await expect(creatorPage.getByRole("img", { name: "QR Code" })).toBeVisible(); + await expect(creatorPage.getByTestId("modal_inviteLink")).toBeVisible(); + await expect(creatorPage.getByTestId("modal_inviteLink")).toBeVisible(); + await creatorPage.getByTestId("modal_inviteLink").click(); + + const inviteLink = (await creatorPage.evaluate( + "navigator.clipboard.readText()", + )) as string; + expect(inviteLink).toContain("room/#/"); + + // ======== + // ACT: The other user use the invite link to join the call as a guest + // ======== + const guestInviteeContext = await browser.newContext({ + reducedMotion: "reduce", + }); + const guestPage = await guestInviteeContext.newPage(); + + await guestPage.goto(inviteLink); + await guestPage.getByTestId("joincall_displayName").fill("Invitee"); + await expect(guestPage.getByTestId("joincall_joincall")).toBeVisible(); + await guestPage.getByTestId("joincall_joincall").click(); + await guestPage.getByTestId("lobby_joinCall").click(); + await guestPage.getByRole("radio", { name: "Spotlight" }).check(); + + // ======== + // ASSERT: check that there are two members in the call + // ======== + + // There should be two participants now + await expect( + guestPage.getByTestId("roomHeader_participants_count"), + ).toContainText("2"); + expect(await guestPage.getByTestId("videoTile").count()).toBe(2); + + // Same in creator page + await expect( + creatorPage.getByTestId("roomHeader_participants_count"), + ).toContainText("2"); + expect(await creatorPage.getByTestId("videoTile").count()).toBe(2); + + // XXX check the display names on the video tiles +}); diff --git a/playwright/create-call.spec.ts b/playwright/create-call.spec.ts new file mode 100644 index 00000000..759cd2db --- /dev/null +++ b/playwright/create-call.spec.ts @@ -0,0 +1,55 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { expect, test } from "@playwright/test"; + +test("Start a new call then leave and show the feedback screen", async ({ + page, +}) => { + await page.goto("/"); + + await page.getByTestId("home_callName").click(); + await page.getByTestId("home_callName").fill("HelloCall"); + await page.getByTestId("home_displayName").click(); + await page.getByTestId("home_displayName").fill("John Doe"); + await page.getByTestId("home_go").click(); + + await expect(page.locator("video")).toBeVisible(); + await expect(page.getByTestId("lobby_joinCall")).toBeVisible(); + + // Check the button toolbar + // await expect(page.getByRole('button', { name: 'Mute microphone' })).toBeVisible(); + // await expect(page.getByRole('button', { name: 'Stop video' })).toBeVisible(); + await expect(page.getByRole("button", { name: "Settings" })).toBeVisible(); + await expect(page.getByRole("button", { name: "End call" })).toBeVisible(); + + // Join the call + await page.getByTestId("lobby_joinCall").click(); + + // Ensure that the call is connected + await page + .locator("div") + .filter({ hasText: /^HelloCall$/ }) + .click(); + // Check the number of participants + await expect(page.locator("div").filter({ hasText: /^1$/ })).toBeVisible(); + // The tooltip with the name should be visible + await expect(page.getByTestId("name_tag")).toContainText("John Doe"); + + // leave the call + await page.getByTestId("incall_leave").click(); + await expect(page.getByRole("heading")).toContainText( + "John Doe, your call has ended. How did it go?", + ); + await expect(page.getByRole("main")).toContainText( + "Why not finish by setting up a password to keep your account?", + ); + + await expect( + page.getByRole("link", { name: "Not now, return to home screen" }), + ).toBeVisible(); +}); diff --git a/playwright/errors.spec.ts b/playwright/errors.spec.ts new file mode 100644 index 00000000..851e448d --- /dev/null +++ b/playwright/errors.spec.ts @@ -0,0 +1,127 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { expect, test } from "@playwright/test"; + +test("Should show error screen if fails to get JWT token", async ({ page }) => { + await page.goto("/"); + + await page.getByTestId("home_callName").click(); + await page.getByTestId("home_callName").fill("HelloCall"); + await page.getByTestId("home_displayName").click(); + await page.getByTestId("home_displayName").fill("John Doe"); + await page.getByTestId("home_go").click(); + + await page.route( + "**/openid/request_token", + async (route) => + await route.fulfill({ + // 418 is a non retryable error, so test will fail immediately + status: 418, + }), + ); + + // Join the call + await page.getByTestId("lobby_joinCall").click(); + + // Should fail + await expect(page.getByText("Something went wrong")).toBeVisible(); + await expect(page.getByText("OPEN_ID_ERROR")).toBeVisible(); +}); + +test("Should automatically retry non fatal JWT errors", async ({ + page, + browserName, +}) => { + test.skip( + browserName === "firefox", + "The test to check the video visibility is not working in Firefox CI environment. looks like video is disabled?", + ); + await page.goto("/"); + + await page.getByTestId("home_callName").click(); + await page.getByTestId("home_callName").fill("HelloCall"); + await page.getByTestId("home_displayName").click(); + await page.getByTestId("home_displayName").fill("John Doe"); + await page.getByTestId("home_go").click(); + + let firstCall = true; + let hasRetriedCallback: (value: PromiseLike | void) => void; + const hasRetriedPromise = new Promise((resolve) => { + hasRetriedCallback = resolve; + }); + await page.route("**/openid/request_token", async (route) => { + if (firstCall) { + firstCall = false; + await route.fulfill({ + status: 429, + }); + } else { + await route.continue(); + hasRetriedCallback(); + } + }); + + // Join the call + await page.getByTestId("lobby_joinCall").click(); + // Expect that the call has been retried + await hasRetriedPromise; + await expect(page.getByTestId("video").first()).toBeVisible(); +}); + +test("Should show error screen if call creation is restricted", async ({ + page, +}) => { + await page.goto("/"); + + // We need the socket connection to fail, but this cannot be done by using the websocket route. + // Instead, we will trick the app by returning a bad URL for the SFU that will not be reachable an error out. + await page.route( + "**/matrix-rtc.m.localhost/livekit/jwt/sfu/get", + async (route) => + await route.fulfill({ + status: 200, + contentType: "application/json", + body: JSON.stringify({ + url: "wss://badurltotricktest/livekit/sfu", + jwt: "FAKE", + }), + }), + ); + + // Then if the socket connection fails, livekit will try to validate the token! + // Livekit will not auto_create anymore and will return a 404 error. + await page.route( + "**/badurltotricktest/livekit/sfu/rtc/validate?**", + async (route) => + await route.fulfill({ + status: 404, + contentType: "text/plain", + body: "requested room does not exist", + }), + ); + + await page.pause(); + + await page.getByTestId("home_callName").click(); + await page.getByTestId("home_callName").fill("HelloCall"); + await page.getByTestId("home_displayName").click(); + await page.getByTestId("home_displayName").fill("John Doe"); + await page.getByTestId("home_go").click(); + + // Join the call + await page.getByTestId("lobby_joinCall").click(); + + await page.pause(); + // Should fail + await expect(page.getByText("Failed to create call")).toBeVisible(); + await expect( + page.getByText( + /Call creation might be restricted to authorized users only/, + ), + ).toBeVisible(); +}); diff --git a/playwright/fixtures/widget-user.ts b/playwright/fixtures/widget-user.ts new file mode 100644 index 00000000..3ccb2ab2 --- /dev/null +++ b/playwright/fixtures/widget-user.ts @@ -0,0 +1,209 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { + type Browser, + type Page, + test, + expect, + type JSHandle, +} from "@playwright/test"; + +import type { MatrixClient } from "matrix-js-sdk"; + +export type UserBaseFixture = { + mxId: string; + page: Page; + clientHandle: JSHandle; +}; + +export type BaseWidgetSetup = { + brooks: UserBaseFixture; + whistler: UserBaseFixture; +}; + +export interface MyFixtures { + asWidget: BaseWidgetSetup; +} + +const PASSWORD = "foobarbaz1!"; + +// Minimal config.json for the local element-web instance +const CONFIG_JSON = { + default_server_config: { + "m.homeserver": { + base_url: "https://synapse.m.localhost", + server_name: "synapse.m.localhost", + }, + }, + + element_call: { + participant_limit: 8, + brand: "Element Call", + }, + + // The default language is set here for test consistency + setting_defaults: { + language: "en-GB", + feature_group_calls: true, + }, + + // the location tests want a map style url. + map_style_url: + "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx", + + features: { + // We don't want to go through the feature announcement during the e2e test + feature_release_announcement: false, + feature_element_call_video_rooms: true, + feature_video_rooms: true, + feature_group_calls: true, + }, +}; + +/** + * Set the Element Call URL in the dev tool settings using `window.mxSettingsStore` via `page.evaluate`. + * @param page + */ +const setDevToolElementCallDevUrl = process.env.USE_DOCKER + ? async (page: Page): Promise => { + await page.evaluate(() => { + window.mxSettingsStore.setValue( + "Developer.elementCallUrl", + null, + "device", + "http://localhost:8080/room", + ); + }); + } + : async (page: Page): Promise => { + await page.evaluate(() => { + window.mxSettingsStore.setValue( + "Developer.elementCallUrl", + null, + "device", + "https://localhost:3000/room", + ); + }); + }; + +/** + * Registers a new user and returns page, clientHandle and mxId. + */ +async function registerUser( + browser: Browser, + username: string, +): Promise<{ page: Page; clientHandle: JSHandle; mxId: string }> { + const userContext = await browser.newContext({ + reducedMotion: "reduce", + }); + const page = await userContext.newPage(); + await page.goto("http://localhost:8081/#/welcome"); + await page.getByRole("link", { name: "Create Account" }).click(); + await page.getByRole("textbox", { name: "Username" }).fill(username); + await page + .getByRole("textbox", { name: "Password", exact: true }) + .fill(PASSWORD); + await page.getByRole("textbox", { name: "Confirm password" }).click(); + await page.getByRole("textbox", { name: "Confirm password" }).fill(PASSWORD); + await page.getByRole("button", { name: "Register" }).click(); + const continueButton = page.getByRole("button", { name: "Continue" }); + try { + await expect(continueButton).toBeVisible({ timeout: 5000 }); + await page + .getByRole("textbox", { name: "Password", exact: true }) + .fill(PASSWORD); + await continueButton.click(); + } catch { + // continueButton not visible, continue as normal + } + await expect( + page.getByRole("heading", { name: `Welcome ${username}` }), + ).toBeVisible(); + await setDevToolElementCallDevUrl(page); + + const clientHandle = await page.evaluateHandle(() => + window.mxMatrixClientPeg.get(), + ); + const mxId = (await clientHandle.evaluate( + (cli: MatrixClient) => cli.getUserId(), + clientHandle, + ))!; + + return { page, clientHandle, mxId }; +} + +export const widgetTest = test.extend({ + asWidget: async ({ browser, context }, pUse) => { + await context.route(`http://localhost:8081/config.json*`, async (route) => { + await route.fulfill({ json: CONFIG_JSON }); + }); + + const userA = `brooks_${Date.now()}`; + const userB = `whistler_${Date.now()}`; + + // Register users + const { + page: ewPage1, + clientHandle: brooksClientHandle, + mxId: brooksMxId, + } = await registerUser(browser, userA); + const { + page: ewPage2, + clientHandle: whistlerClientHandle, + mxId: whistlerMxId, + } = await registerUser(browser, userB); + + // Invite the second user + await ewPage1.getByRole("button", { name: "Add room" }).click(); + await ewPage1.getByText("New room").click(); + await ewPage1.getByRole("textbox", { name: "Name" }).fill("Welcome Room"); + await ewPage1.getByRole("button", { name: "Create room" }).click(); + await expect(ewPage1.getByText("You created this room.")).toBeVisible(); + await expect(ewPage1.getByText("Encryption enabled")).toBeVisible(); + + await ewPage1 + .getByRole("button", { name: "Invite to this room", exact: true }) + .click(); + await expect( + ewPage1.getByRole("heading", { name: "Invite to Welcome Room" }), + ).toBeVisible(); + + // To get the invite textbox we need to specifically select within the + // dialog, since there is another textbox in the background (the message + // composer). In theory the composer shouldn't be visible to Playwright at + // all because the invite dialog has trapped focus, but the focus trap + // doesn't quite work right on Firefox. + await ewPage1.getByRole("dialog").getByRole("textbox").fill(whistlerMxId); + await ewPage1.getByRole("dialog").getByRole("textbox").click(); + await ewPage1.getByRole("button", { name: "Invite" }).click(); + + // Accept the invite + await expect( + ewPage2.getByRole("treeitem", { name: "Welcome Room" }), + ).toBeVisible(); + await ewPage2.getByRole("treeitem", { name: "Welcome Room" }).click(); + await ewPage2.getByRole("button", { name: "Accept" }).click(); + await expect( + ewPage2.getByRole("main").getByRole("heading", { name: "Welcome Room" }), + ).toBeVisible(); + + // Renamed use to pUse, as a workaround for eslint error that was thinking this use was a react use. + await pUse({ + brooks: { + mxId: brooksMxId, + page: ewPage1, + clientHandle: brooksClientHandle, + }, + whistler: { + mxId: whistlerMxId, + page: ewPage2, + clientHandle: whistlerClientHandle, + }, + }); + }, +}); diff --git a/playwright/global.d.ts b/playwright/global.d.ts new file mode 100644 index 00000000..93f38729 --- /dev/null +++ b/playwright/global.d.ts @@ -0,0 +1,24 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import type * as Matrix from "matrix-js-sdk"; + +declare global { + interface Window { + mxMatrixClientPeg: { + get(): Matrix.MatrixClient; + }; + mxSettingsStore: { + setValue: ( + settingKey: string, + room: string | null, + level: string, + setting: string, + ) => void; + }; + } +} diff --git a/playwright/landing.spec.ts b/playwright/landing.spec.ts new file mode 100644 index 00000000..b22a037e --- /dev/null +++ b/playwright/landing.spec.ts @@ -0,0 +1,30 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { test, expect } from "@playwright/test"; + +test("has title", async ({ page }) => { + await page.goto("/"); + + await expect(page).toHaveTitle(/Element Call/); +}); + +test("Landing page", async ({ page }) => { + await page.goto("/"); + + // There should be a login button in the header + await expect(page.getByRole("link", { name: "Log In" })).toBeVisible(); + + await expect( + page.getByRole("heading", { name: "Start new call" }), + ).toBeVisible(); + + await expect(page.getByTestId("home_callName")).toBeVisible(); + await expect(page.getByTestId("home_displayName")).toBeVisible(); + + await expect(page.getByTestId("home_go")).toBeVisible(); +}); diff --git a/playwright/sfu-reconnect-bug.spec.ts b/playwright/sfu-reconnect-bug.spec.ts new file mode 100644 index 00000000..c756570a --- /dev/null +++ b/playwright/sfu-reconnect-bug.spec.ts @@ -0,0 +1,104 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { expect, test } from "@playwright/test"; + +test("When creator left, avoid reconnect to the same SFU", async ({ + browser, +}) => { + // Use reduce motion to disable animations that are making the tests a bit flaky + const creatorContext = await browser.newContext({ reducedMotion: "reduce" }); + const creatorPage = await creatorContext.newPage(); + + await creatorPage.goto("/"); + + // ======== + // ARRANGE: The first user creates a call as guest, join it, then click the invite button to copy the invite link + // ======== + await creatorPage.getByTestId("home_callName").click(); + await creatorPage.getByTestId("home_callName").fill("Welcome"); + await creatorPage.getByTestId("home_displayName").click(); + await creatorPage.getByTestId("home_displayName").fill("Inviter"); + await creatorPage.getByTestId("home_go").click(); + await expect(creatorPage.locator("video")).toBeVisible(); + + // join + await creatorPage.getByTestId("lobby_joinCall").click(); + // Spotlight mode to make checking the test visually clearer + await creatorPage.getByRole("radio", { name: "Spotlight" }).check(); + + // Get the invite link + await creatorPage.getByRole("button", { name: "Invite" }).click(); + await expect( + creatorPage.getByRole("heading", { name: "Invite to this call" }), + ).toBeVisible(); + await expect(creatorPage.getByRole("img", { name: "QR Code" })).toBeVisible(); + await expect(creatorPage.getByTestId("modal_inviteLink")).toBeVisible(); + await expect(creatorPage.getByTestId("modal_inviteLink")).toBeVisible(); + await creatorPage.getByTestId("modal_inviteLink").click(); + + const inviteLink = (await creatorPage.evaluate( + "navigator.clipboard.readText()", + )) as string; + expect(inviteLink).toContain("room/#/"); + + // ======== + // ACT: The other user use the invite link to join the call as a guest + // ======== + const guestB = await browser.newContext({ + reducedMotion: "reduce", + }); + const guestBPage = await guestB.newPage(); + + await guestBPage.goto(inviteLink); + await guestBPage.getByTestId("joincall_displayName").fill("Invitee"); + await expect(guestBPage.getByTestId("joincall_joincall")).toBeVisible(); + await guestBPage.getByTestId("joincall_joincall").click(); + await guestBPage.getByTestId("lobby_joinCall").click(); + await guestBPage.getByRole("radio", { name: "Spotlight" }).check(); + + // ======== + // ACT: add a third user to the call to reproduce the bug + // ======== + const guestC = await browser.newContext({ + reducedMotion: "reduce", + }); + const guestCPage = await guestC.newPage(); + let sfuGetCallCount = 0; + await guestCPage.route("**/livekit/jwt/sfu/get", async (route) => { + sfuGetCallCount++; + await route.continue(); + }); + // Track WebSocket connections + let wsConnectionCount = 0; + await guestCPage.routeWebSocket("**", (ws) => { + // For some reason the interception is not working with the ** + if (ws.url().includes("livekit/sfu/rtc")) { + wsConnectionCount++; + } + ws.connectToServer(); + }); + + await guestCPage.goto(inviteLink); + await guestCPage.getByTestId("joincall_displayName").fill("Invitee"); + await expect(guestCPage.getByTestId("joincall_joincall")).toBeVisible(); + await guestCPage.getByTestId("joincall_joincall").click(); + await guestCPage.getByTestId("lobby_joinCall").click(); + await guestCPage.getByRole("radio", { name: "Spotlight" }).check(); + + await guestCPage.waitForTimeout(1000); + + // ======== + // the creator leaves the call + await creatorPage.getByTestId("incall_leave").click(); + + await guestCPage.waitForTimeout(2000); + // https://github.com/element-hq/element-call/issues/3344 + // The app used to request a new jwt token then to reconnect to the SFU + expect(wsConnectionCount).toBe(1); + expect(sfuGetCallCount).toBe(1); +}); diff --git a/playwright/widget/simple-create.spec.ts b/playwright/widget/simple-create.spec.ts new file mode 100644 index 00000000..00d5c658 --- /dev/null +++ b/playwright/widget/simple-create.spec.ts @@ -0,0 +1,100 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { expect, test } from "@playwright/test"; + +import { widgetTest } from "../fixtures/widget-user.ts"; + +// Skip test, including Fixtures +widgetTest.skip( + ({ browserName }) => browserName === "firefox", + "This test is not working on firefox, after hangup brooks is locked in a strange state with a blank widget", +); + +widgetTest("Start a new call as widget", async ({ asWidget, browserName }) => { + test.slow(); // Triples the timeout + + const { brooks, whistler } = asWidget; + + await expect( + brooks.page.getByRole("button", { name: "Video call" }), + ).toBeVisible(); + await brooks.page.getByRole("button", { name: "Video call" }).click(); + + await expect( + brooks.page.getByRole("menuitem", { name: "Legacy Call" }), + ).toBeVisible(); + await expect( + brooks.page.getByRole("menuitem", { name: "Element Call" }), + ).toBeVisible(); + + await brooks.page.getByRole("menuitem", { name: "Element Call" }).click(); + + await expect( + brooks.page + .locator('iframe[title="Element Call"]') + .contentFrame() + .getByTestId("lobby_joinCall"), + ).toBeVisible(); + + await brooks.page + .locator('iframe[title="Element Call"]') + .contentFrame() + .getByTestId("lobby_joinCall") + .click(); + + // Check the join indicator on the room list + await expect( + brooks.page.locator("div").filter({ hasText: /^Joined • 1$/ }), + ).toBeVisible(); + + // Join from the other side + await expect(whistler.page.getByText("Video call started")).toBeVisible(); + await expect( + whistler.page.getByRole("button", { name: "Join" }), + ).toBeVisible(); + await whistler.page.getByRole("button", { name: "Join" }).click(); + + await expect( + whistler.page + .locator('iframe[title="Element Call"]') + .contentFrame() + .getByTestId("lobby_joinCall"), + ).toBeVisible(); + + await whistler.page + .locator('iframe[title="Element Call"]') + .contentFrame() + .getByTestId("lobby_joinCall") + .click(); + + await expect( + whistler.page.locator("div").filter({ hasText: /^Joined • 2$/ }), + ).toBeVisible(); + + await expect( + brooks.page.locator("div").filter({ hasText: /^Joined • 2$/ }), + ).toBeVisible(); + + // Whistler leaves + await whistler.page.waitForTimeout(1000); + await whistler.page + .locator('iframe[title="Element Call"]') + .contentFrame() + .getByTestId("incall_leave") + .click(); + + // Brooks leaves + await brooks.page + .locator('iframe[title="Element Call"]') + .contentFrame() + .getByTestId("incall_leave") + .click(); + + await expect(whistler.page.locator(".mx_BasicMessageComposer")).toBeVisible(); + await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible(); +}); diff --git a/public/index.html b/public/index.html deleted file mode 100644 index e14d79be..00000000 --- a/public/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - <%- title %> - - - - - -
- - diff --git a/renovate.json b/renovate.json index 97c776ec..612e6674 100644 --- a/renovate.json +++ b/renovate.json @@ -1,18 +1,22 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:recommended"], + "extends": [ + "config:recommended", + "schedule:monthly", + ":enableVulnerabilityAlertsWithLabel(security)" + ], + "addLabels": ["dependencies"], + "minimumReleaseAge": "5 days", "packageRules": [ { "groupName": "all non-major dependencies", "groupSlug": "all-minor-patch", - "matchUpdateTypes": ["minor", "patch"], - "extends": ["schedule:weekly"] + "matchUpdateTypes": ["minor", "patch"] }, { "groupName": "GitHub Actions", "matchDepTypes": ["action"], - "pinDigests": true, - "extends": ["schedule:monthly"] + "pinDigests": true }, { "description": "Disable Renovate for packages we want to monitor ourselves", @@ -22,28 +26,43 @@ }, { "groupName": "matrix-widget-api", - "matchDepNames": ["matrix-widget-api"] + "matchDepNames": ["matrix-widget-api"], + "extends": ["schedule:weekly"] }, { "groupName": "Compound", - "schedule": "before 5am on Tuesday and Friday", - "matchPackageNames": ["@vector-im/compound-{/,}**"] + "matchPackageNames": ["@vector-im/compound-{/,}**"], + "extends": ["schedule:weekly"] }, { "groupName": "LiveKit client", - "matchDepNames": ["livekit-client"] + "matchDepNames": ["livekit-client"], + "extends": ["schedule:weekly"] }, { "groupName": "LiveKit components", - "matchPackageNames": ["@livekit/components-{/,}**"] + "matchPackageNames": ["@livekit/components-{/,}**"], + "extends": ["schedule:weekly"] }, { "groupName": "Vaul", "matchDepNames": ["vaul"], - "extends": ["schedule:monthly"], "prHeader": "Please review modals on mobile for visual regressions." + }, + { + "groupName": "embedded package dependencies", + "matchFileNames": ["embedded/**/*"] + }, + { + "groupName": "Yarn", + "matchDepNames": ["yarn"] } ], "semanticCommits": "disabled", - "ignoreDeps": ["posthog-js"] + "ignoreDeps": ["posthog-js", "eslint-plugin-matrix-org"], + "vulnerabilityAlerts": { + "schedule": ["at any time"], + "prHourlyLimit": 0, + "minimumReleaseAge": null + } } diff --git a/scripts/dockerbuild.sh b/scripts/dockerbuild.sh index cef7e488..ceabde8e 100755 --- a/scripts/dockerbuild.sh +++ b/scripts/dockerbuild.sh @@ -4,5 +4,6 @@ set -ex export VITE_APP_VERSION=$(git describe --tags --abbrev=0) +corepack enable yarn install yarn run build diff --git a/scripts/playwright-webserver-command.sh b/scripts/playwright-webserver-command.sh new file mode 100755 index 00000000..8c00909b --- /dev/null +++ b/scripts/playwright-webserver-command.sh @@ -0,0 +1,10 @@ +#!/bin/sh +if [ -n "$USE_DOCKER" ]; then + set -ex + yarn build + docker build -t element-call:testing . + exec docker run --rm --name element-call-testing -p 8080:8080 -v ./config/config.devenv.json:/app/config.json:ro,Z element-call:testing +else + cp config/config.devenv.json public/config.json + exec yarn dev +fi diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 398ca4af..ac5ed913 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -1,11 +1,12 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import "matrix-js-sdk/src/@types/global"; +import { type setLogLevel as setLKLogLevel } from "livekit-client"; + import type { DurationFormat as PolyfillDurationFormat } from "@formatjs/intl-durationformat"; import { type Controls } from "../controls"; @@ -18,6 +19,7 @@ declare global { interface Window { controls: Controls; + setLKLogLevel: typeof setLKLogLevel; } interface HTMLElement { diff --git a/src/@types/i18next.d.ts b/src/@types/i18next.d.ts index 13210b0b..7489e15a 100644 --- a/src/@types/i18next.d.ts +++ b/src/@types/i18next.d.ts @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/@types/matrix-js-sdk.d.ts b/src/@types/matrix-js-sdk.d.ts index 3ac7ef66..a9f2e066 100644 --- a/src/@types/matrix-js-sdk.d.ts +++ b/src/@types/matrix-js-sdk.d.ts @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -11,8 +11,16 @@ import { } from "../reactions"; // Extend Matrix JS SDK types via Typescript declaration merging to support unspecced event fields and types -declare module "matrix-js-sdk/src/types" { +declare module "matrix-js-sdk/lib/types" { export interface TimelineEvents { [ElementCallReactionEventType]: ECallReactionEventContent; } + + export interface AccountDataEvents { + // Analytics account data event + "im.vector.analytics": { + id: string; + pseudonymousAnalyticsOptIn?: boolean; + }; + } } diff --git a/src/@types/modules.d.ts b/src/@types/modules.d.ts index b66b6ba5..8d76f71e 100644 --- a/src/@types/modules.d.ts +++ b/src/@types/modules.d.ts @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/App.tsx b/src/App.tsx index 62dc5c8f..6d7d1e1e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,29 +1,40 @@ /* Copyright 2021-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { type FC, Suspense, useEffect, useState } from "react"; +import { + type FC, + type JSX, + Suspense, + useEffect, + useMemo, + useState, +} from "react"; import { BrowserRouter, Route, useLocation, Routes } from "react-router-dom"; import * as Sentry from "@sentry/react"; import { TooltipProvider } from "@vector-im/compound-web"; -import { logger } from "matrix-js-sdk/src/logger"; +import { logger } from "matrix-js-sdk/lib/logger"; import { HomePage } from "./home/HomePage"; import { LoginPage } from "./auth/LoginPage"; import { RegisterPage } from "./auth/RegisterPage"; import { RoomPage } from "./room/RoomPage"; import { ClientProvider } from "./ClientContext"; -import { CrashView, LoadingView } from "./FullScreenView"; +import { ErrorPage, LoadingPage } from "./FullScreenView"; import { DisconnectedBanner } from "./DisconnectedBanner"; import { Initializer } from "./initializer"; -import { MediaDevicesProvider } from "./livekit/MediaDevicesContext"; import { widget } from "./widget"; import { useTheme } from "./useTheme"; +import { ProcessorProvider } from "./livekit/TrackProcessorContext"; +import { type AppViewModel } from "./state/AppViewModel"; +import { MediaDevicesContext } from "./MediaDevicesContext"; +import { getUrlParams, HeaderStyle } from "./UrlParams"; +import { AppBar } from "./AppBar"; -const SentryRoute = Sentry.withSentryReactRouterV6Routing(Route); +const SentryRoute = Sentry.withSentryReactRouterV7Routing(Route); interface SimpleProviderProps { children: JSX.Element; @@ -49,7 +60,11 @@ const ThemeProvider: FC = ({ children }) => { return children; }; -export const App: FC = () => { +interface Props { + vm: AppViewModel; +} + +export const App: FC = ({ vm }) => { const [loaded, setLoaded] = useState(false); useEffect(() => { Initializer.init() @@ -61,37 +76,43 @@ export const App: FC = () => { .catch(logger.error); }); - const errorPage = ; + // Since we are outside the router component, we cannot use useUrlParams here + const { header } = useMemo(getUrlParams, []); + + const content = loaded ? ( + + + + } + > + + + } /> + } /> + } /> + } /> + + + + + + ) : ( + + ); return ( - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - {loaded ? ( - - - - - - - } /> - } /> - } - /> - } /> - - - - - - ) : ( - - )} + + {header === HeaderStyle.AppBar ? ( + {content} + ) : ( + content + )} + diff --git a/src/AppBar.module.css b/src/AppBar.module.css new file mode 100644 index 00000000..d8954759 --- /dev/null +++ b/src/AppBar.module.css @@ -0,0 +1,23 @@ +.bar { + block-size: 64px; + flex-shrink: 0; +} + +.bar > header { + position: absolute; + inset-inline: 0; + inset-block-start: 0; + block-size: 64px; + z-index: var(--call-view-header-footer-layer); +} + +.bar svg path { + fill: var(--cpd-color-icon-primary); +} + +.bar > header > h1 { + margin: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} diff --git a/src/AppBar.test.tsx b/src/AppBar.test.tsx new file mode 100644 index 00000000..a2cce683 --- /dev/null +++ b/src/AppBar.test.tsx @@ -0,0 +1,25 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { render } from "@testing-library/react"; +import { describe, expect, it } from "vitest"; +import { TooltipProvider } from "@vector-im/compound-web"; + +import { AppBar } from "./AppBar"; + +describe("AppBar", () => { + it("renders", () => { + const { container } = render( + + +

This is the content.

+
+
, + ); + expect(container).toMatchSnapshot(); + }); +}); diff --git a/src/AppBar.tsx b/src/AppBar.tsx new file mode 100644 index 00000000..e70bb50d --- /dev/null +++ b/src/AppBar.tsx @@ -0,0 +1,130 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { + createContext, + type FC, + type MouseEvent, + type ReactNode, + use, + useCallback, + useEffect, + useMemo, + useState, +} from "react"; +import { Heading, IconButton, Tooltip } from "@vector-im/compound-web"; +import { CollapseIcon } from "@vector-im/compound-design-tokens/assets/web/icons"; +import { useTranslation } from "react-i18next"; + +import { Header, LeftNav, RightNav } from "./Header"; +import { platform } from "./Platform"; +import styles from "./AppBar.module.css"; + +interface AppBarContext { + setTitle: (value: string) => void; + setSecondaryButton: (value: ReactNode) => void; + setHidden: (value: boolean) => void; +} + +const AppBarContext = createContext(null); + +interface Props { + children: ReactNode; +} + +/** + * A "top app bar" featuring a back button, title and possibly a secondary + * button, similar to what you might see in mobile apps. + */ +export const AppBar: FC = ({ children }) => { + const { t } = useTranslation(); + const onBackClick = useCallback((e: MouseEvent) => { + e.preventDefault(); + window.controls.onBackButtonPressed?.(); + }, []); + + const [title, setTitle] = useState(""); + const [hidden, setHidden] = useState(false); + const [secondaryButton, setSecondaryButton] = useState(null); + const context = useMemo( + () => ({ setTitle, setSecondaryButton, setHidden }), + [setTitle, setHidden, setSecondaryButton], + ); + + return ( + <> + + {children} + + ); +}; + +/** + * React hook which sets the title to be shown in the app bar, if present. It is + * an error to call this hook from multiple sites in the same component tree. + */ +export function useAppBarTitle(title: string): void { + const setTitle = use(AppBarContext)?.setTitle; + useEffect(() => { + if (setTitle !== undefined) { + setTitle(title); + return (): void => setTitle(""); + } + }, [title, setTitle]); +} + +/** + * React hook which sets the title to be shown in the app bar, if present. It is + * an error to call this hook from multiple sites in the same component tree. + */ +export function useAppBarHidden(hidden: boolean): void { + const setHidden = use(AppBarContext)?.setHidden; + useEffect(() => { + if (setHidden !== undefined) { + setHidden(hidden); + return (): void => setHidden(false); + } + }, [setHidden, hidden]); +} + +/** + * React hook which sets the secondary button to be shown in the app bar, if + * present. It is an error to call this hook from multiple sites in the same + * component tree. + */ +export function useAppBarSecondaryButton(button: ReactNode): void { + const setSecondaryButton = use(AppBarContext)?.setSecondaryButton; + useEffect(() => { + if (setSecondaryButton !== undefined) { + setSecondaryButton(button); + return (): void => setSecondaryButton(""); + } + }, [button, setSecondaryButton]); +} diff --git a/src/Avatar.test.tsx b/src/Avatar.test.tsx index 1f3ddb04..a02963e0 100644 --- a/src/Avatar.test.tsx +++ b/src/Avatar.test.tsx @@ -1,13 +1,13 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ import { afterEach, expect, test, vi } from "vitest"; import { render, screen } from "@testing-library/react"; -import { type MatrixClient } from "matrix-js-sdk/src/client"; +import { type MatrixClient } from "matrix-js-sdk"; import { type FC, type PropsWithChildren } from "react"; import { ClientContextProvider } from "./ClientContext"; diff --git a/src/Avatar.tsx b/src/Avatar.tsx index a76afbca..d862dbb1 100644 --- a/src/Avatar.tsx +++ b/src/Avatar.tsx @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -13,7 +13,7 @@ import { useEffect, } from "react"; import { Avatar as CompoundAvatar } from "@vector-im/compound-web"; -import { type MatrixClient } from "matrix-js-sdk/src/client"; +import { type MatrixClient } from "matrix-js-sdk"; import { useClientState } from "./ClientContext"; diff --git a/src/ClientContext.tsx b/src/ClientContext.tsx index 791005bb..1488965a 100644 --- a/src/ClientContext.tsx +++ b/src/ClientContext.tsx @@ -1,7 +1,7 @@ /* Copyright 2021-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -11,25 +11,25 @@ import { useEffect, useState, createContext, - useContext, + use, useRef, useMemo, + type JSX, } from "react"; import { useNavigate } from "react-router-dom"; -import { logger } from "matrix-js-sdk/src/logger"; -import { useTranslation } from "react-i18next"; -import { type ISyncStateData, type SyncState } from "matrix-js-sdk/src/sync"; -import { ClientEvent, type MatrixClient } from "matrix-js-sdk/src/client"; +import { logger } from "matrix-js-sdk/lib/logger"; +import { type ISyncStateData, type SyncState } from "matrix-js-sdk/lib/sync"; +import { ClientEvent, type MatrixClient } from "matrix-js-sdk"; import type { WidgetApi } from "matrix-widget-api"; -import { ErrorView } from "./FullScreenView"; +import { ErrorPage } from "./FullScreenView"; import { widget } from "./widget"; import { PosthogAnalytics, RegistrationType, } from "./analytics/PosthogAnalytics"; -import { translatedError } from "./TranslatedError"; import { useEventTarget } from "./useEvents"; +import { OpenElsewhereError } from "./RichError"; declare global { interface Window { @@ -50,7 +50,7 @@ export type ValidClientState = { reactions: boolean; thumbnails: boolean; }; - setClient: (params?: SetClientParams) => void; + setClient: (client: MatrixClient, session: Session) => void; }; export type AuthenticatedClient = { @@ -65,21 +65,15 @@ export type ErrorState = { error: Error; }; -export type SetClientParams = { - client: MatrixClient; - session: Session; -}; - const ClientContext = createContext(undefined); export const ClientContextProvider = ClientContext.Provider; -export const useClientState = (): ClientState | undefined => - useContext(ClientContext); +export const useClientState = (): ClientState | undefined => use(ClientContext); export function useClient(): { client?: MatrixClient; - setClient?: (params?: SetClientParams) => void; + setClient?: (client: MatrixClient, session: Session) => void; } { let client; let setClient; @@ -96,7 +90,7 @@ export function useClient(): { // Plain representation of the `ClientContext` as a helper for old components that expected an object with multiple fields. export function useClientLegacy(): { client?: MatrixClient; - setClient?: (params?: SetClientParams) => void; + setClient?: (client: MatrixClient, session: Session) => void; passwordlessUser: boolean; loading: boolean; authenticated: boolean; @@ -160,7 +154,11 @@ export const ClientProvider: FC = ({ children }) => { initializing.current = true; loadClient() - .then(setInitClientState) + .then((initResult) => { + setInitClientState(initResult); + if (PosthogAnalytics.instance.isEnabled()) + PosthogAnalytics.instance.startListeningToSettingsChanges(); + }) .catch((err) => logger.error(err)) .finally(() => (initializing.current = false)); }, []); @@ -196,24 +194,20 @@ export const ClientProvider: FC = ({ children }) => { ); const setClient = useCallback( - (clientParams?: SetClientParams) => { + (client: MatrixClient, session: Session) => { const oldClient = initClientState?.client; - const newClient = clientParams?.client; - if (oldClient && oldClient !== newClient) { + if (oldClient && oldClient !== client) { oldClient.stopClient(); } - if (clientParams) { - saveSession(clientParams.session); - setInitClientState({ - widgetApi: null, - client: clientParams.client, - passwordlessUser: clientParams.session.passwordlessUser, - }); - } else { - clearSession(); - setInitClientState(null); - } + saveSession(session); + setInitClientState({ + widgetApi: null, + client, + passwordlessUser: session.passwordlessUser, + }); + if (PosthogAnalytics.instance.isEnabled()) + PosthogAnalytics.instance.startListeningToSettingsChanges(); }, [initClientState?.client], ); @@ -229,11 +223,10 @@ export const ClientProvider: FC = ({ children }) => { clearSession(); setInitClientState(null); await navigate("/"); + PosthogAnalytics.instance.logout(); PosthogAnalytics.instance.setRegistrationType(RegistrationType.Guest); }, [navigate, initClientState?.client]); - const { t } = useTranslation(); - // To protect against multiple sessions writing to the same storage // simultaneously, we send a broadcast message that shuts down all other // running instances of the app. This isn't necessary if the app is running in @@ -250,8 +243,8 @@ export const ClientProvider: FC = ({ children }) => { "message", useCallback(() => { initClientState?.client.stopClient(); - setAlreadyOpenedErr(translatedError("application_opened_another_tab", t)); - }, [initClientState?.client, setAlreadyOpenedErr, t]), + setAlreadyOpenedErr(new OpenElsewhereError()); + }, [initClientState?.client, setAlreadyOpenedErr]), ); const [isDisconnected, setIsDisconnected] = useState(false); @@ -353,12 +346,10 @@ export const ClientProvider: FC = ({ children }) => { }, [initClientState, onSync]); if (alreadyOpenedErr) { - return ; + return ; } - return ( - {children} - ); + return {children}; }; export type InitResult = { diff --git a/src/DisconnectedBanner.module.css b/src/DisconnectedBanner.module.css index d1e1ecca..c15658a2 100644 --- a/src/DisconnectedBanner.module.css +++ b/src/DisconnectedBanner.module.css @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/DisconnectedBanner.tsx b/src/DisconnectedBanner.tsx index 2fdb7b70..57d65795 100644 --- a/src/DisconnectedBanner.tsx +++ b/src/DisconnectedBanner.tsx @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/ErrorView.module.css b/src/ErrorView.module.css new file mode 100644 index 00000000..bd68f5e3 --- /dev/null +++ b/src/ErrorView.module.css @@ -0,0 +1,22 @@ +.error { + display: flex; + flex-direction: column; + align-items: center; + gap: var(--cpd-space-2x); + max-inline-size: 480px; +} + +.icon { + margin-block-end: var(--cpd-space-4x); +} + +.error > h1 { + margin: 0; + text-align: center; +} + +.error > p { + font: var(--cpd-font-body-lg-regular); + color: var(--cpd-color-text-secondary); + text-align: center; +} diff --git a/src/ErrorView.tsx b/src/ErrorView.tsx new file mode 100644 index 00000000..1309ae04 --- /dev/null +++ b/src/ErrorView.tsx @@ -0,0 +1,118 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { BigIcon, Button, Heading } from "@vector-im/compound-web"; +import { + useCallback, + type ComponentType, + type FC, + type ReactNode, + type SVGAttributes, + type ReactElement, +} from "react"; +import { useTranslation } from "react-i18next"; +import { logger } from "matrix-js-sdk/lib/logger"; + +import { RageshakeButton } from "./settings/RageshakeButton"; +import styles from "./ErrorView.module.css"; +import { useUrlParams } from "./UrlParams"; +import { LinkButton } from "./button"; +import { ElementWidgetActions, type WidgetHelpers } from "./widget.ts"; + +interface Props { + Icon: ComponentType>; + title: string; + /** + * Show an option to submit a rageshake. + * @default false + */ + rageshake?: boolean; + /** + * Whether the error is considered fatal, i.e. non-recoverable. Causes the app + * to fully reload when clicking 'return to home'. + * @default false + */ + fatal?: boolean; + children: ReactNode; + widget: WidgetHelpers | null; +} + +export const ErrorView: FC = ({ + Icon, + title, + rageshake, + fatal, + children, + widget, +}) => { + const { t } = useTranslation(); + const { confineToRoom } = useUrlParams(); + + const onReload = useCallback(() => { + window.location.href = "/"; + }, []); + + const CloseWidgetButton: FC<{ widget: WidgetHelpers }> = ({ + widget, + }): ReactElement => { + // in widget mode we don't want to show the return home button but a close button + const closeWidget = (): void => { + widget.api.transport + .send(ElementWidgetActions.Close, {}) + .catch((e) => { + // What to do here? + logger.error("Failed to send close action", e); + }) + .finally(() => { + widget.api.transport.stop(); + }); + }; + return ( + + ); + }; + + // Whether the error is considered fatal or pathname is `/` then reload the all app. + // If not then navigate to home page. + const ReturnToHomeButton = (): ReactElement => { + if (fatal || location.pathname === "/") { + return ( + + ); + } else { + return ( + + {t("return_home_button")} + + ); + } + }; + + return ( +
+ + + + + {title} + + {children} + {rageshake && ( + + )} + {widget ? ( + + ) : ( + !confineToRoom && + )} +
+ ); +}; diff --git a/src/FullScreenView.module.css b/src/FullScreenView.module.css index 2007d5eb..57c6fe68 100644 --- a/src/FullScreenView.module.css +++ b/src/FullScreenView.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/FullScreenView.tsx b/src/FullScreenView.tsx index e88f45de..41e6cb16 100644 --- a/src/FullScreenView.tsx +++ b/src/FullScreenView.tsx @@ -1,25 +1,23 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { type FC, type ReactNode, useCallback, useEffect } from "react"; -import { useLocation } from "react-router-dom"; +import { type FC, type ReactElement, type ReactNode, useEffect } from "react"; import classNames from "classnames"; -import { Trans, useTranslation } from "react-i18next"; +import { useTranslation } from "react-i18next"; import * as Sentry from "@sentry/react"; -import { logger } from "matrix-js-sdk/src/logger"; -import { Button } from "@vector-im/compound-web"; +import { logger } from "matrix-js-sdk/lib/logger"; +import { ErrorSolidIcon } from "@vector-im/compound-design-tokens/assets/web/icons"; import { Header, HeaderLogo, LeftNav, RightNav } from "./Header"; -import { LinkButton } from "./button"; import styles from "./FullScreenView.module.css"; -import { TranslatedError } from "./TranslatedError"; -import { Config } from "./config/Config"; -import { RageshakeButton } from "./settings/RageshakeButton"; import { useUrlParams } from "./UrlParams"; +import { RichError } from "./RichError"; +import { ErrorView } from "./ErrorView"; +import { type WidgetHelpers } from "./widget.ts"; interface FullScreenViewProps { className?: string; @@ -30,13 +28,17 @@ export const FullScreenView: FC = ({ className, children, }) => { - const { hideHeader } = useUrlParams(); + const { header } = useUrlParams(); return (
-
- {!hideHeader && } - -
+ {header === "standard" && ( +
+ + + + +
+ )}
{children}
@@ -44,74 +46,40 @@ export const FullScreenView: FC = ({ ); }; -interface ErrorViewProps { - error: Error; +interface ErrorPageProps { + error: Error | unknown; + widget: WidgetHelpers | null; } -export const ErrorView: FC = ({ error }) => { - const location = useLocation(); - const { confineToRoom } = useUrlParams(); +// Due to this component being used as the crash fallback for Sentry, which has +// weird type requirements, we can't just give this a type of FC +export const ErrorPage = ({ error, widget }: ErrorPageProps): ReactElement => { const { t } = useTranslation(); - useEffect(() => { logger.error(error); Sentry.captureException(error); }, [error]); - const onReload = useCallback(() => { - window.location.href = "/"; - }, []); - return ( -

{t("common.error")}

-

- {error instanceof TranslatedError - ? error.translatedMessage - : error.message} -

- - {!confineToRoom && - (location.pathname === "/" ? ( - - ) : ( - - {t("return_home_button")} - - ))} -
- ); -}; - -export const CrashView: FC = () => { - const { t } = useTranslation(); - - const onReload = useCallback(() => { - window.location.href = "/"; - }, []); - - return ( - - -

Oops, something's gone wrong.

-
- {Config.get().rageshake?.submit_url && ( - -

Submitting debug logs will help us track down the problem.

-
+ {error instanceof RichError ? ( + error.richMessage + ) : ( + +

{t("error.generic_description")}

+
)} - - -
); }; -export const LoadingView: FC = () => { +export const LoadingPage: FC = () => { const { t } = useTranslation(); return ( diff --git a/src/Header.module.css b/src/Header.module.css index 6a7f2937..ccc2b2a9 100644 --- a/src/Header.module.css +++ b/src/Header.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/Header.test.tsx b/src/Header.test.tsx index 681ef991..e352d69a 100644 --- a/src/Header.test.tsx +++ b/src/Header.test.tsx @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/Header.tsx b/src/Header.tsx index a4eb8fff..577410f8 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -1,17 +1,12 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ import classNames from "classnames"; -import { - type FC, - type HTMLAttributes, - type ReactNode, - forwardRef, -} from "react"; +import { type Ref, type FC, type HTMLAttributes, type ReactNode } from "react"; import { Link } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { Heading, Text } from "@vector-im/compound-web"; @@ -24,23 +19,27 @@ import { EncryptionLock } from "./room/EncryptionLock"; import { useMediaQuery } from "./useMediaQuery"; interface HeaderProps extends HTMLAttributes { + ref?: Ref; children: ReactNode; className?: string; } -export const Header = forwardRef( - ({ children, className, ...rest }, ref) => { - return ( -
- {children} -
- ); - }, -); +export const Header: FC = ({ + ref, + children, + className, + ...rest +}) => { + return ( +
+ {children} +
+ ); +}; Header.displayName = "Header"; @@ -161,7 +160,12 @@ export const RoomHeaderInfo: FC = ({ height={20} aria-label={t("header_participants_label")} /> - + {t("participant_count", { count: participantCount ?? 0 })}
diff --git a/src/IndexedDBWorker.ts b/src/IndexedDBWorker.ts index fe1a28ea..478c2b02 100644 --- a/src/IndexedDBWorker.ts +++ b/src/IndexedDBWorker.ts @@ -1,11 +1,11 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { IndexedDBStoreWorker } from "matrix-js-sdk/src/indexeddb-worker"; +import { IndexedDBStoreWorker } from "matrix-js-sdk/lib/indexeddb-worker"; // eslint-disable-next-line @typescript-eslint/no-explicit-any const remoteWorker = new IndexedDBStoreWorker((self as any).postMessage); diff --git a/src/LazyEventEmitter.ts b/src/LazyEventEmitter.ts index 382dcabd..09b22b19 100644 --- a/src/LazyEventEmitter.ts +++ b/src/LazyEventEmitter.ts @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/MediaDevicesContext.ts b/src/MediaDevicesContext.ts new file mode 100644 index 00000000..3cf54c2a --- /dev/null +++ b/src/MediaDevicesContext.ts @@ -0,0 +1,56 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { createContext, use, useMemo } from "react"; +import { useObservableEagerState } from "observable-hooks"; + +import { type MediaDevices } from "./state/MediaDevices"; + +export const MediaDevicesContext = createContext( + undefined, +); + +export function useMediaDevices(): MediaDevices { + const mediaDevices = use(MediaDevicesContext); + if (mediaDevices === undefined) + throw new Error( + "useMediaDevices must be used within a MediaDevices context provider", + ); + return mediaDevices; +} + +export const useIsEarpiece = (): boolean => { + const devices = useMediaDevices(); + const audioOutput = useObservableEagerState(devices.audioOutput.selected$); + const available = useObservableEagerState(devices.audioOutput.available$); + if (!audioOutput?.id) return false; + return available.get(audioOutput.id)?.type === "earpiece"; +}; + +/** + * A convenience hook to get the audio node configuration for the earpiece. + * It will check the `useAsEarpiece` of the `audioOutput` device and return + * the appropriate pan and volume values. + * + * @returns pan and volume values for the earpiece audio node configuration. + */ +export const useEarpieceAudioConfig = (): { + pan: number; + volume: number; +} => { + const devices = useMediaDevices(); + const audioOutput = useObservableEagerState(devices.audioOutput.selected$); + const isVirtualEarpiece = audioOutput?.virtualEarpiece ?? false; + return { + // We use only the right speaker (pan = 1) for the earpiece. + // This mimics the behavior of the native earpiece speaker (only the top speaker on an iPhone) + pan: useMemo(() => (isVirtualEarpiece ? 1 : 0), [isVirtualEarpiece]), + // We also do lower the volume by a factor of 10 to optimize for the usecase where + // a user is holding the phone to their ear. + volume: useMemo(() => (isVirtualEarpiece ? 0.1 : 1), [isVirtualEarpiece]), + }; +}; diff --git a/src/Modal.module.css b/src/Modal.module.css index fc4cf366..ae8006a5 100644 --- a/src/Modal.module.css +++ b/src/Modal.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/Modal.test.tsx b/src/Modal.test.tsx index 6368c7d9..74670b6d 100644 --- a/src/Modal.test.tsx +++ b/src/Modal.test.tsx @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -46,7 +46,7 @@ test("the modal can be closed by clicking the close button", async () => { } const user = userEvent.setup(); const { queryByRole, getByRole } = render(); - await user.click(getByRole("button", { name: "action.close" })); + await user.click(getByRole("button", { name: "Close" })); expect(queryByRole("dialog")).toBeNull(); }); diff --git a/src/Modal.tsx b/src/Modal.tsx index 14b6b68d..491623cc 100644 --- a/src/Modal.tsx +++ b/src/Modal.tsx @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/Overlay.module.css b/src/Overlay.module.css index 6253bcb0..fa972e6f 100644 --- a/src/Overlay.module.css +++ b/src/Overlay.module.css @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/Platform.ts b/src/Platform.ts index 397dc07c..9d98ed6f 100644 --- a/src/Platform.ts +++ b/src/Platform.ts @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/QrCode.module.css b/src/QrCode.module.css index 709ace23..bae73a9c 100644 --- a/src/QrCode.module.css +++ b/src/QrCode.module.css @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/QrCode.test.tsx b/src/QrCode.test.tsx index 2b873952..8ca32d6c 100644 --- a/src/QrCode.test.tsx +++ b/src/QrCode.test.tsx @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/QrCode.tsx b/src/QrCode.tsx index 60946d70..09bd92ea 100644 --- a/src/QrCode.tsx +++ b/src/QrCode.tsx @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/RTCConnectionStats.module.css b/src/RTCConnectionStats.module.css index 0e29eaa9..11ccb8f9 100644 --- a/src/RTCConnectionStats.module.css +++ b/src/RTCConnectionStats.module.css @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/RTCConnectionStats.tsx b/src/RTCConnectionStats.tsx index d092b677..dcd8d019 100644 --- a/src/RTCConnectionStats.tsx +++ b/src/RTCConnectionStats.tsx @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/RichError.tsx b/src/RichError.tsx new file mode 100644 index 00000000..699486e2 --- /dev/null +++ b/src/RichError.tsx @@ -0,0 +1,53 @@ +/* +Copyright 2025 New Vector Ltd. + +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +Please see LICENSE in the repository root for full details. +*/ + +import { useTranslation } from "react-i18next"; +import { PopOutIcon } from "@vector-im/compound-design-tokens/assets/web/icons"; + +import type { FC, ReactNode } from "react"; +import { ErrorView } from "./ErrorView"; +import { widget } from "./widget.ts"; + +/** + * An error consisting of a terse message to be logged to the console and a + * richer message to be shown to the user, as a full-screen page. + */ +export class RichError extends Error { + public constructor( + message: string, + /** + * The pretty, more helpful message to be shown on the error screen. + */ + public readonly richMessage: ReactNode, + ) { + super(message); + } +} + +const OpenElsewhere: FC = () => { + const { t } = useTranslation(); + + return ( + +

+ {t("error.open_elsewhere_description", { + brand: import.meta.env.VITE_PRODUCT_NAME || "Element Call", + })} +

+
+ ); +}; + +export class OpenElsewhereError extends RichError { + public constructor() { + super("App opened in another tab", ); + } +} diff --git a/src/Slider.module.css b/src/Slider.module.css index d7e0830f..44ec838d 100644 --- a/src/Slider.module.css +++ b/src/Slider.module.css @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/Slider.tsx b/src/Slider.tsx index 86141598..c6520e42 100644 --- a/src/Slider.tsx +++ b/src/Slider.tsx @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/Toast.module.css b/src/Toast.module.css index 87a7b1d1..7ba6f22f 100644 --- a/src/Toast.module.css +++ b/src/Toast.module.css @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/Toast.test.tsx b/src/Toast.test.tsx index 83e48934..9ff58754 100644 --- a/src/Toast.test.tsx +++ b/src/Toast.test.tsx @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/Toast.tsx b/src/Toast.tsx index f16cfc04..ada5b29c 100644 --- a/src/Toast.tsx +++ b/src/Toast.tsx @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/TranslatedError.ts b/src/TranslatedError.ts index 420556be..6ffed4a9 100644 --- a/src/TranslatedError.ts +++ b/src/TranslatedError.ts @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -9,6 +9,9 @@ import type { DefaultNamespace, ParseKeys, TFunction, TOptions } from "i18next"; /** * An error with messages in both English and the user's preferred language. + * Use this for errors that need to be displayed inline within another + * component. For errors that could be given their own screen, prefer + * {@link RichError}. */ // Abstract to force consumers to use the function below rather than calling the // constructor directly diff --git a/src/UrlParams.test.ts b/src/UrlParams.test.ts index 092b51d3..fbf0c095 100644 --- a/src/UrlParams.test.ts +++ b/src/UrlParams.test.ts @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -10,7 +10,7 @@ import { describe, expect, it } from "vitest"; import { getRoomIdentifierFromUrl, getUrlParams, - UserIntent, + HeaderStyle, } from "../src/UrlParams"; const ROOM_NAME = "roomNameHere"; @@ -82,6 +82,16 @@ describe("UrlParams", () => { getRoomIdentifierFromUrl("", `?roomId=${ROOM_ID}`, "").roomId, ).toBe(ROOM_ID); }); + it("(roomId with unprintable characters)", () => { + const invisibleChar = "\u2066"; + expect( + getRoomIdentifierFromUrl( + "", + `?roomId=${invisibleChar}${ROOM_ID}${invisibleChar}`, + "", + ).roomId, + ).toBe(ROOM_ID); + }); }); it("ignores room alias", () => { @@ -110,8 +120,8 @@ describe("UrlParams", () => { }); describe("returnToLobby", () => { - it("is true in SPA mode", () => { - expect(getUrlParams("?returnToLobby=false").returnToLobby).toBe(true); + it("is false in SPA mode", () => { + expect(getUrlParams("?returnToLobby=true").returnToLobby).toBe(false); }); it("defaults to false in widget mode", () => { @@ -201,24 +211,68 @@ describe("UrlParams", () => { }); describe("intent", () => { - it("defaults to unknown", () => { - expect(getUrlParams().intent).toBe(UserIntent.Unknown); + const noIntentDefaults = { + confineToRoom: false, + appPrompt: true, + preload: false, + header: HeaderStyle.Standard, + showControls: true, + hideScreensharing: false, + allowIceFallback: false, + perParticipantE2EE: false, + controlledAudioDevices: false, + skipLobby: false, + returnToLobby: false, + sendNotificationType: undefined, + }; + const startNewCallDefaults = (platform: string): object => ({ + confineToRoom: true, + appPrompt: false, + preload: true, + header: platform === "desktop" ? HeaderStyle.None : HeaderStyle.AppBar, + showControls: true, + hideScreensharing: false, + allowIceFallback: true, + perParticipantE2EE: true, + controlledAudioDevices: platform === "desktop" ? false : true, + skipLobby: true, + returnToLobby: false, + sendNotificationType: "notification", + }); + const joinExistingCallDefaults = (platform: string): object => ({ + confineToRoom: true, + appPrompt: false, + preload: true, + header: platform === "desktop" ? HeaderStyle.None : HeaderStyle.AppBar, + showControls: true, + hideScreensharing: false, + allowIceFallback: true, + perParticipantE2EE: true, + controlledAudioDevices: platform === "desktop" ? false : true, + skipLobby: false, + returnToLobby: false, + sendNotificationType: "notification", + }); + it("use no-intent-defaults with unknown intent", () => { + expect(getUrlParams()).toMatchObject(noIntentDefaults); }); it("ignores intent if it is not a valid value", () => { - expect(getUrlParams("?intent=foo").intent).toBe(UserIntent.Unknown); + expect(getUrlParams("?intent=foo")).toMatchObject(noIntentDefaults); }); it("accepts start_call", () => { - expect(getUrlParams("?intent=start_call").intent).toBe( - UserIntent.StartNewCall, - ); + expect( + getUrlParams("?intent=start_call&widgetId=1234&parentUrl=parent.org"), + ).toMatchObject(startNewCallDefaults("desktop")); }); it("accepts join_existing", () => { - expect(getUrlParams("?intent=join_existing").intent).toBe( - UserIntent.JoinExistingCall, - ); + expect( + getUrlParams( + "?intent=join_existing&widgetId=1234&parentUrl=parent.org", + ), + ).toMatchObject(joinExistingCallDefaults("desktop")); }); }); @@ -243,4 +297,12 @@ describe("UrlParams", () => { expect(getUrlParams("?intent=join_existing").skipLobby).toBe(false); }); }); + describe("header", () => { + it("uses header if provided", () => { + expect(getUrlParams("?header=app_bar&hideHeader=true").header).toBe( + "app_bar", + ); + expect(getUrlParams("?header=none&hideHeader=false").header).toBe("none"); + }); + }); }); diff --git a/src/UrlParams.ts b/src/UrlParams.ts index 423235ae..65e3d901 100644 --- a/src/UrlParams.ts +++ b/src/UrlParams.ts @@ -1,17 +1,20 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ import { useMemo } from "react"; import { useLocation } from "react-router-dom"; -import { logger } from "matrix-js-sdk/src/logger"; +import { logger } from "matrix-js-sdk/lib/logger"; +import { type RTCNotificationType } from "matrix-js-sdk/lib/matrixrtc"; +import { pickBy } from "lodash-es"; import { Config } from "./config/Config"; import { type EncryptionSystem } from "./e2ee/sharedKeyManagement"; import { E2eeType } from "./e2ee/e2eeType"; +import { platform } from "./Platform"; interface RoomIdentifier { roomAlias: string | null; @@ -20,17 +23,24 @@ interface RoomIdentifier { } export enum UserIntent { + // TODO: add DM vs room call StartNewCall = "start_call", JoinExistingCall = "join_existing", Unknown = "unknown", } -// If you need to add a new flag to this interface, prefer a name that describes -// a specific behavior (such as 'confineToRoom'), rather than one that describes -// the situations that call for this behavior ('isEmbedded'). This makes it -// clearer what each flag means, and helps us avoid coupling Element Call's -// behavior to the needs of specific consumers. -export interface UrlParams { +export enum HeaderStyle { + None = "none", + Standard = "standard", + AppBar = "app_bar", +} + +/** + * The UrlProperties are used to pass required data to the widget. + * Those are different in different rooms, users, devices. They do not configure the behavior of the + * widget but provide the required data to the widget. + */ +export interface UrlProperties { // Widget api related params widgetId: string | null; parentUrl: string | null; @@ -42,42 +52,11 @@ export interface UrlParams { * is also not validated, where it is in useRoomIdentifier(). */ roomId: string | null; - /** - * Whether the app should keep the user confined to the current call/room. - */ - confineToRoom: boolean; - /** - * Whether upon entering a room, the user should be prompted to launch the - * native mobile app. (Affects only Android and iOS.) - * - * The app prompt must also be enabled in the config for this to take effect. - */ - appPrompt: boolean; - /** - * Whether the app should pause before joining the call until it sees an - * io.element.join widget action, allowing it to be preloaded. - */ - preload: boolean; - /** - * Whether to hide the room header when in a call. - */ - hideHeader: boolean; - /** - * Whether the controls should be shown. For screen recording no controls can be desired. - */ - showControls: boolean; - /** - * Whether to hide the screen-sharing button. - */ - hideScreensharing: boolean; - /** - * Whether to use end-to-end encryption. - */ - e2eEnabled: boolean; /** * The user's ID (only used in matryoshka mode). */ userId: string | null; + /** * The display name to use for auto-registration. */ @@ -105,20 +84,116 @@ export interface UrlParams { /** * The Posthog analytics ID. It is only available if the user has given consent for sharing telemetry in element web. */ - analyticsID: string | null; + posthogUserId: string | null; + /** + * The Posthog API host. This is only used in the embedded package of Element Call. + */ + posthogApiHost: string | null; + /** + * The Posthog API key. This is only used in the embedded package of Element Call. + */ + posthogApiKey: string | null; + /** + * Whether to use end-to-end encryption. + */ + e2eEnabled: boolean; + /** + * E2EE password + */ + password: string | null; + /** This defines the homeserver that is going to be used when joining a room. + * It has to be set to a non default value for links to rooms + * that are not on the default homeserver, + * that is in use for the current user. + */ + viaServers: string | null; + + /** + * This defines the homeserver that is going to be used when registering + * a new (guest) user. + * This can be user to configure a non default guest user server when + * creating a spa link. + */ + homeserver: string | null; + + /** + * The rageshake submit URL. This is only used in the embedded package of Element Call. + */ + rageshakeSubmitUrl: string | null; + + /** + * The Sentry DSN. This is only used in the embedded package of Element Call. + */ + sentryDsn: string | null; + + /** + * The Sentry environment. This is only used in the embedded package of Element Call. + */ + sentryEnvironment: string | null; + /** + * The theme to use for element call. + * can be "light", "dark", "light-high-contrast" or "dark-high-contrast". + */ + theme: string | null; +} + +/** + * The configuration for the app, which can be set via URL parameters. + * Those property are different to the UrlProperties, since they are all optional + * and configure the behavior of the app. Their value is the same if EC is used in + * the same context but with different accounts/users. + * + * Their defaults can be controlled by the `intent` property. + */ +export interface UrlConfiguration { + /** + * Whether the app should keep the user confined to the current call/room. + */ + confineToRoom: boolean; + /** + * Whether upon entering a room, the user should be prompted to launch the + * native mobile app. (Affects only Android and iOS.) + * + * The app prompt must also be enabled in the config for this to take effect. + */ + appPrompt: boolean; + /** + * Whether the app should pause before joining the call until it sees an + * io.element.join widget action, allowing it to be preloaded. + */ + preload: boolean; + /** + * The style of headers to show. "standard" is the default arrangement, "none" + * hides the header entirely, and "app_bar" produces a header with a back + * button like you might see in mobile apps. The callback for the back button + * is window.controls.onBackButtonPressed. + */ + header: HeaderStyle; + /** + * Whether the controls should be shown. For screen recording no controls can be desired. + */ + showControls: boolean; + /** + * Whether to hide the screen-sharing button. + */ + hideScreensharing: boolean; + /** * Whether the app is allowed to use fallback STUN servers for ICE in case the * user's homeserver doesn't provide any. */ allowIceFallback: boolean; + /** - * E2EE password - */ - password: string | null; - /** - * Whether we the app should use per participant keys for E2EE. + * Whether the app should use per participant keys for E2EE. */ perParticipantE2EE: boolean; + /** + * Whether the global JS controls for audio output devices should be enabled, + * allowing the list of output devices to be controlled by the app hosting + * Element Call. + */ + controlledAudioDevices: boolean; /** * Setting this flag skips the lobby and brings you in the call directly. * In the widget this can be combined with preload to pass the device settings @@ -131,32 +206,18 @@ export interface UrlParams { */ returnToLobby: boolean; /** - * The theme to use for element call. - * can be "light", "dark", "light-high-contrast" or "dark-high-contrast". + * Whether and what type of notification EC should send, when the user joins the call. */ - theme: string | null; - /** This defines the homeserver that is going to be used when joining a room. - * It has to be set to a non default value for links to rooms - * that are not on the default homeserver, - * that is in use for the current user. - */ - viaServers: string | null; - /** - * This defines the homeserver that is going to be used when registering - * a new (guest) user. - * This can be user to configure a non default guest user server when - * creating a spa link. - */ - homeserver: string | null; - - /** - * The user's intent with respect to the call. - * e.g. if they clicked a Start Call button, this would be `start_call`. - * If it was a Join Call button, it would be `join_existing`. - */ - intent: string | null; + sendNotificationType?: RTCNotificationType; } +// If you need to add a new flag to this interface, prefer a name that describes +// a specific behavior (such as 'confineToRoom'), rather than one that describes +// the situations that call for this behavior ('isEmbedded'). This makes it +// clearer what each flag means, and helps us avoid coupling Element Call's +// behavior to the needs of specific consumers. +export interface UrlParams extends UrlProperties, UrlConfiguration {} + // This is here as a stopgap, but what would be far nicer is a function that // takes a UrlParams and returns a query string. That would enable us to // consolidate all the data about URL parameters and their meanings to this one @@ -197,6 +258,17 @@ class ParamParser { return this.fragmentParams.get(name) ?? this.queryParams.get(name); } + public getEnumParam( + name: string, + type: { [s: string]: T } | ArrayLike, + ): T | undefined { + const value = this.getParam(name); + if (value !== null && Object.values(type).includes(value as T)) { + return value as T; + } + return undefined; + } + public getAllParams(name: string): string[] { return [ ...this.fragmentParams.getAll(name), @@ -208,6 +280,10 @@ class ParamParser { const param = this.getParam(name); return param === null ? defaultValue : param !== "false"; } + public getFlag(name: string): boolean | undefined { + const param = this.getParam(name); + return param !== null ? param !== "false" : undefined; + } } /** @@ -224,32 +300,79 @@ export const getUrlParams = ( const fontScale = parseFloat(parser.getParam("fontScale") ?? ""); - let intent = parser.getParam("intent"); - if (!intent || !Object.values(UserIntent).includes(intent as UserIntent)) { - intent = UserIntent.Unknown; - } const widgetId = parser.getParam("widgetId"); const parentUrl = parser.getParam("parentUrl"); const isWidget = !!widgetId && !!parentUrl; - return { + /** + * The user's intent with respect to the call. + * e.g. if they clicked a Start Call button, this would be `start_call`. + * If it was a Join Call button, it would be `join_existing`. + * This is a platform specific default set of parameters, that allows to minize the configuration + * needed to start a call. And empowers the EC codebase to control the platform/intent behavior in + * a central place. + * + * In short: either provide url query parameters of UrlConfiguration or set the intent + * (or the global defaults will be used). + */ + const intent = !isWidget + ? UserIntent.Unknown + : (parser.getEnumParam("intent", UserIntent) ?? UserIntent.Unknown); + // Here we only use constants and `platform` to determine the intent preset. + let intentPreset: UrlConfiguration; + const inAppDefault = { + confineToRoom: true, + appPrompt: false, + preload: true, + header: platform === "desktop" ? HeaderStyle.None : HeaderStyle.AppBar, + showControls: true, + hideScreensharing: false, + allowIceFallback: true, + perParticipantE2EE: true, + controlledAudioDevices: platform === "desktop" ? false : true, + skipLobby: true, + returnToLobby: false, + sendNotificationType: "notification" as RTCNotificationType, + }; + switch (intent) { + case UserIntent.StartNewCall: + intentPreset = { + ...inAppDefault, + skipLobby: true, + }; + break; + case UserIntent.JoinExistingCall: + intentPreset = { + ...inAppDefault, + skipLobby: false, + }; + break; + // Non widget usecase defaults + default: + intentPreset = { + confineToRoom: false, + appPrompt: true, + preload: false, + header: HeaderStyle.Standard, + showControls: true, + hideScreensharing: false, + allowIceFallback: false, + perParticipantE2EE: false, + controlledAudioDevices: false, + skipLobby: false, + returnToLobby: false, + sendNotificationType: undefined, + }; + } + + const properties: UrlProperties = { widgetId, parentUrl, - // NB. we don't validate roomId here as we do in getRoomIdentifierFromUrl: // what would we do if it were invalid? If the widget API says that's what // the room ID is, then that's what it is. roomId: parser.getParam("roomId"), password: parser.getParam("password"), - // This flag has 'embed' as an alias for historical reasons - confineToRoom: - parser.getFlagParam("confineToRoom") || parser.getFlagParam("embed"), - appPrompt: parser.getFlagParam("appPrompt", true), - preload: isWidget ? parser.getFlagParam("preload") : false, - hideHeader: parser.getFlagParam("hideHeader"), - showControls: parser.getFlagParam("showControls", true), - hideScreensharing: parser.getFlagParam("hideScreensharing"), - e2eEnabled: parser.getFlagParam("enableE2EE", true), userId: isWidget ? parser.getParam("userId") : null, displayName: parser.getParam("displayName"), deviceId: isWidget ? parser.getParam("deviceId") : null, @@ -257,18 +380,45 @@ export const getUrlParams = ( lang: parser.getParam("lang"), fonts: parser.getAllParams("font"), fontScale: Number.isNaN(fontScale) ? null : fontScale, - analyticsID: parser.getParam("analyticsID"), - allowIceFallback: parser.getFlagParam("allowIceFallback"), - perParticipantE2EE: parser.getFlagParam("perParticipantE2EE"), - skipLobby: parser.getFlagParam( - "skipLobby", - isWidget && intent === UserIntent.StartNewCall, - ), - returnToLobby: isWidget ? parser.getFlagParam("returnToLobby") : true, theme: parser.getParam("theme"), viaServers: !isWidget ? parser.getParam("viaServers") : null, homeserver: !isWidget ? parser.getParam("homeserver") : null, - intent, + posthogApiHost: parser.getParam("posthogApiHost"), + posthogApiKey: parser.getParam("posthogApiKey"), + posthogUserId: + parser.getParam("posthogUserId") ?? parser.getParam("analyticsID"), + rageshakeSubmitUrl: parser.getParam("rageshakeSubmitUrl"), + sentryDsn: parser.getParam("sentryDsn"), + sentryEnvironment: parser.getParam("sentryEnvironment"), + e2eEnabled: parser.getFlagParam("enableE2EE", true), + }; + + const configuration: Partial = { + confineToRoom: parser.getFlag("confineToRoom"), + appPrompt: parser.getFlag("appPrompt"), + preload: isWidget ? parser.getFlag("preload") : undefined, + // Check hideHeader for backwards compatibility. If header is set, hideHeader + // is ignored. + header: parser.getEnumParam("header", HeaderStyle), + showControls: parser.getFlag("showControls"), + hideScreensharing: parser.getFlag("hideScreensharing"), + allowIceFallback: parser.getFlag("allowIceFallback"), + perParticipantE2EE: parser.getFlag("perParticipantE2EE"), + controlledAudioDevices: parser.getFlag("controlledAudioDevices"), + skipLobby: isWidget ? parser.getFlag("skipLobby") : false, + // In SPA mode the user should always exit to the home screen when hanging + // up, rather than being sent back to the lobby + returnToLobby: isWidget ? parser.getFlag("returnToLobby") : false, + sendNotificationType: parser.getEnumParam("sendNotificationType", [ + "ring", + "notification", + ]), + }; + + return { + ...properties, + ...intentPreset, + ...pickBy(configuration, (v) => v !== undefined), }; }; @@ -327,10 +477,16 @@ export function getRoomIdentifierFromUrl( // Make sure roomId is valid let roomId: string | null = parser.getParam("roomId"); - if (!roomId?.startsWith("!")) { - roomId = null; - } else if (!roomId.includes("")) { - roomId = null; + if (roomId !== null) { + // Replace any non-printable characters that another client may have inserted. + // For instance on iOS, some copied links end up with zero width characters on the end which get encoded into the URL. + // This isn't valid for a roomId, so we can freely strip the content. + roomId = roomId.replaceAll(/^[^ -~]+|[^ -~]+$/g, ""); + if (!roomId.startsWith("!")) { + roomId = null; + } else if (!roomId.includes("")) { + roomId = null; + } } return { diff --git a/src/UserMenu.module.css b/src/UserMenu.module.css index 11444f73..6c21b196 100644 --- a/src/UserMenu.module.css +++ b/src/UserMenu.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/UserMenu.tsx b/src/UserMenu.tsx index 77dd7474..e431c328 100644 --- a/src/UserMenu.tsx +++ b/src/UserMenu.tsx @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -119,7 +119,7 @@ export const UserMenu: FC = ({ key={key} Icon={Icon} label={label} - data-test-id={dataTestid} + data-testid={dataTestid} onSelect={() => onAction(key)} /> ))} diff --git a/src/UserMenuContainer.tsx b/src/UserMenuContainer.tsx index fc324210..edc2f118 100644 --- a/src/UserMenuContainer.tsx +++ b/src/UserMenuContainer.tsx @@ -1,13 +1,13 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ import { type FC, useCallback, useState } from "react"; import { useNavigate, useLocation } from "react-router-dom"; -import { logger } from "matrix-js-sdk/src/logger"; +import { logger } from "matrix-js-sdk/lib/logger"; import { useClientLegacy } from "./ClientContext"; import { useProfile } from "./profile/useProfile"; diff --git a/src/__snapshots__/AppBar.test.tsx.snap b/src/__snapshots__/AppBar.test.tsx.snap new file mode 100644 index 00000000..fe61d09b --- /dev/null +++ b/src/__snapshots__/AppBar.test.tsx.snap @@ -0,0 +1,50 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`AppBar > renders 1`] = ` +
+
+
+ +
+
+

+ This is the content. +

+
+`; diff --git a/src/__snapshots__/Modal.test.tsx.snap b/src/__snapshots__/Modal.test.tsx.snap index 8772c543..92d837d1 100644 --- a/src/__snapshots__/Modal.test.tsx.snap +++ b/src/__snapshots__/Modal.test.tsx.snap @@ -2,10 +2,10 @@ exports[`the content is rendered when the modal is open 1`] = ` ); - }), + }, // The scrolling part of the layout is where all the grid tiles live - scrolling: forwardRef(function GridLayout({ model, Slot }, ref) { + scrolling: function GridLayout({ ref, model, Slot }): ReactNode { useUpdateLayout(); useVisibleTiles(model.setVisibleTiles); const { width, height: minHeight } = useObservableEagerState(minBounds$); @@ -98,5 +103,5 @@ export const makeGridLayout: CallLayout = ({ ))} ); - }), + }, }); diff --git a/src/grid/OneOnOneLayout.module.css b/src/grid/OneOnOneLayout.module.css index dd5dfc4e..2e5e7d86 100644 --- a/src/grid/OneOnOneLayout.module.css +++ b/src/grid/OneOnOneLayout.module.css @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/grid/OneOnOneLayout.tsx b/src/grid/OneOnOneLayout.tsx index 9d49ae90..675e4d0a 100644 --- a/src/grid/OneOnOneLayout.tsx +++ b/src/grid/OneOnOneLayout.tsx @@ -1,11 +1,11 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { forwardRef, useCallback, useMemo } from "react"; +import { type ReactNode, useCallback, useMemo } from "react"; import { useObservableEagerState } from "observable-hooks"; import classNames from "classnames"; @@ -13,6 +13,7 @@ import { type OneOnOneLayout as OneOnOneLayoutModel } from "../state/CallViewMod import { type CallLayout, arrangeTiles } from "./CallLayout"; import styles from "./OneOnOneLayout.module.css"; import { type DragCallback, useUpdateLayout } from "./Grid"; +import { useBehavior } from "../useBehavior"; /** * An implementation of the "one-on-one" layout, in which the remote participant @@ -24,15 +25,15 @@ export const makeOneOnOneLayout: CallLayout = ({ }) => ({ scrollingOnTop: false, - fixed: forwardRef(function OneOnOneLayoutFixed(_props, ref) { + fixed: function OneOnOneLayoutFixed({ ref }): ReactNode { useUpdateLayout(); return
; - }), + }, - scrolling: forwardRef(function OneOnOneLayoutScrolling({ model, Slot }, ref) { + scrolling: function OneOnOneLayoutScrolling({ ref, model, Slot }): ReactNode { useUpdateLayout(); const { width, height } = useObservableEagerState(minBounds$); - const pipAlignmentValue = useObservableEagerState(pipAlignment$); + const pipAlignmentValue = useBehavior(pipAlignment$); const { tileWidth, tileHeight } = useMemo( () => arrangeTiles(width, height, 1), [width, height], @@ -66,5 +67,5 @@ export const makeOneOnOneLayout: CallLayout = ({
); - }), + }, }); diff --git a/src/grid/SpotlightExpandedLayout.module.css b/src/grid/SpotlightExpandedLayout.module.css index f94d0ee3..35a8a7bf 100644 --- a/src/grid/SpotlightExpandedLayout.module.css +++ b/src/grid/SpotlightExpandedLayout.module.css @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/grid/SpotlightExpandedLayout.tsx b/src/grid/SpotlightExpandedLayout.tsx index a50cecb9..9dd2a109 100644 --- a/src/grid/SpotlightExpandedLayout.tsx +++ b/src/grid/SpotlightExpandedLayout.tsx @@ -1,17 +1,17 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { forwardRef, useCallback } from "react"; -import { useObservableEagerState } from "observable-hooks"; +import { type ReactNode, useCallback } from "react"; import { type SpotlightExpandedLayout as SpotlightExpandedLayoutModel } from "../state/CallViewModel"; import { type CallLayout } from "./CallLayout"; import { type DragCallback, useUpdateLayout } from "./Grid"; import styles from "./SpotlightExpandedLayout.module.css"; +import { useBehavior } from "../useBehavior"; /** * An implementation of the "expanded spotlight" layout, in which the spotlight @@ -22,10 +22,11 @@ export const makeSpotlightExpandedLayout: CallLayout< > = ({ pipAlignment$ }) => ({ scrollingOnTop: true, - fixed: forwardRef(function SpotlightExpandedLayoutFixed( - { model, Slot }, + fixed: function SpotlightExpandedLayoutFixed({ ref, - ) { + model, + Slot, + }): ReactNode { useUpdateLayout(); return ( @@ -37,14 +38,15 @@ export const makeSpotlightExpandedLayout: CallLayout< /> ); - }), + }, - scrolling: forwardRef(function SpotlightExpandedLayoutScrolling( - { model, Slot }, + scrolling: function SpotlightExpandedLayoutScrolling({ ref, - ) { + model, + Slot, + }): ReactNode { useUpdateLayout(); - const pipAlignmentValue = useObservableEagerState(pipAlignment$); + const pipAlignmentValue = useBehavior(pipAlignment$); const onDragPip: DragCallback = useCallback( ({ xRatio, yRatio }) => @@ -69,5 +71,5 @@ export const makeSpotlightExpandedLayout: CallLayout< )} ); - }), + }, }); diff --git a/src/grid/SpotlightLandscapeLayout.module.css b/src/grid/SpotlightLandscapeLayout.module.css index 02133a1a..ddc4a395 100644 --- a/src/grid/SpotlightLandscapeLayout.module.css +++ b/src/grid/SpotlightLandscapeLayout.module.css @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/grid/SpotlightLandscapeLayout.tsx b/src/grid/SpotlightLandscapeLayout.tsx index a80cb6fa..96343296 100644 --- a/src/grid/SpotlightLandscapeLayout.tsx +++ b/src/grid/SpotlightLandscapeLayout.tsx @@ -1,11 +1,11 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { forwardRef } from "react"; +import { type ReactNode } from "react"; import { useObservableEagerState } from "observable-hooks"; import classNames from "classnames"; @@ -24,10 +24,11 @@ export const makeSpotlightLandscapeLayout: CallLayout< > = ({ minBounds$ }) => ({ scrollingOnTop: false, - fixed: forwardRef(function SpotlightLandscapeLayoutFixed( - { model, Slot }, + fixed: function SpotlightLandscapeLayoutFixed({ ref, - ) { + model, + Slot, + }): ReactNode { useUpdateLayout(); useObservableEagerState(minBounds$); @@ -43,12 +44,13 @@ export const makeSpotlightLandscapeLayout: CallLayout<
); - }), + }, - scrolling: forwardRef(function SpotlightLandscapeLayoutScrolling( - { model, Slot }, + scrolling: function SpotlightLandscapeLayoutScrolling({ ref, - ) { + model, + Slot, + }): ReactNode { useUpdateLayout(); useVisibleTiles(model.setVisibleTiles); useObservableEagerState(minBounds$); @@ -69,5 +71,5 @@ export const makeSpotlightLandscapeLayout: CallLayout< ); - }), + }, }); diff --git a/src/grid/SpotlightPortraitLayout.module.css b/src/grid/SpotlightPortraitLayout.module.css index aa534686..c7a6d14b 100644 --- a/src/grid/SpotlightPortraitLayout.module.css +++ b/src/grid/SpotlightPortraitLayout.module.css @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/grid/SpotlightPortraitLayout.tsx b/src/grid/SpotlightPortraitLayout.tsx index 9f62a520..ad11ed11 100644 --- a/src/grid/SpotlightPortraitLayout.tsx +++ b/src/grid/SpotlightPortraitLayout.tsx @@ -1,11 +1,11 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { type CSSProperties, forwardRef } from "react"; +import { type ReactNode, type CSSProperties } from "react"; import { useObservableEagerState } from "observable-hooks"; import classNames from "classnames"; @@ -13,6 +13,7 @@ import { type CallLayout, arrangeTiles } from "./CallLayout"; import { type SpotlightPortraitLayout as SpotlightPortraitLayoutModel } from "../state/CallViewModel"; import styles from "./SpotlightPortraitLayout.module.css"; import { useUpdateLayout, useVisibleTiles } from "./Grid"; +import { useBehavior } from "../useBehavior"; interface GridCSSProperties extends CSSProperties { "--grid-gap": string; @@ -30,10 +31,11 @@ export const makeSpotlightPortraitLayout: CallLayout< > = ({ minBounds$ }) => ({ scrollingOnTop: false, - fixed: forwardRef(function SpotlightPortraitLayoutFixed( - { model, Slot }, + fixed: function SpotlightPortraitLayoutFixed({ ref, - ) { + model, + Slot, + }): ReactNode { useUpdateLayout(); return ( @@ -47,12 +49,13 @@ export const makeSpotlightPortraitLayout: CallLayout< ); - }), + }, - scrolling: forwardRef(function SpotlightPortraitLayoutScrolling( - { model, Slot }, + scrolling: function SpotlightPortraitLayoutScrolling({ ref, - ) { + model, + Slot, + }): ReactNode { useUpdateLayout(); useVisibleTiles(model.setVisibleTiles); const { width } = useObservableEagerState(minBounds$); @@ -63,8 +66,7 @@ export const makeSpotlightPortraitLayout: CallLayout< width, model.grid.length, ); - const withIndicators = - useObservableEagerState(model.spotlight.media$).length > 1; + const withIndicators = useBehavior(model.spotlight.media$).length > 1; return (
); - }), + }, }); diff --git a/src/grid/TileWrapper.module.css b/src/grid/TileWrapper.module.css index cef5b896..d66fb68a 100644 --- a/src/grid/TileWrapper.module.css +++ b/src/grid/TileWrapper.module.css @@ -1,7 +1,7 @@ /* Copyright 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/grid/TileWrapper.tsx b/src/grid/TileWrapper.tsx index a2eebd43..9e58fd7c 100644 --- a/src/grid/TileWrapper.tsx +++ b/src/grid/TileWrapper.tsx @@ -1,11 +1,17 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { type ComponentType, memo, type RefObject, useRef } from "react"; +import { + type ComponentType, + type JSX, + memo, + type RefObject, + useRef, +} from "react"; import { type EventTypes, type Handler, useDrag } from "@use-gesture/react"; import { type SpringValue } from "@react-spring/web"; import classNames from "classnames"; diff --git a/src/home/CallList.module.css b/src/home/CallList.module.css index faa5bf2d..f1249f38 100644 --- a/src/home/CallList.module.css +++ b/src/home/CallList.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/home/CallList.test.tsx b/src/home/CallList.test.tsx index 5e5a3439..ad0d06e0 100644 --- a/src/home/CallList.test.tsx +++ b/src/home/CallList.test.tsx @@ -1,12 +1,12 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ import { render, type RenderResult } from "@testing-library/react"; -import { type MatrixClient } from "matrix-js-sdk/src/matrix"; +import { type MatrixClient } from "matrix-js-sdk"; import { MemoryRouter } from "react-router-dom"; import { describe, expect, it } from "vitest"; diff --git a/src/home/CallList.tsx b/src/home/CallList.tsx index 12bfae45..44422587 100644 --- a/src/home/CallList.tsx +++ b/src/home/CallList.tsx @@ -1,14 +1,12 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ import { Link } from "react-router-dom"; -import { type MatrixClient } from "matrix-js-sdk/src/client"; -import { type RoomMember } from "matrix-js-sdk/src/models/room-member"; -import { type Room } from "matrix-js-sdk/src/models/room"; +import { type RoomMember, type Room, type MatrixClient } from "matrix-js-sdk"; import { type FC, useCallback, type MouseEvent, useState } from "react"; import { useTranslation } from "react-i18next"; import { IconButton, Text } from "@vector-im/compound-web"; diff --git a/src/home/HomePage.tsx b/src/home/HomePage.tsx index 9340ecc0..ca1f0ea8 100644 --- a/src/home/HomePage.tsx +++ b/src/home/HomePage.tsx @@ -1,7 +1,7 @@ /* Copyright 2021-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -9,10 +9,11 @@ import { useTranslation } from "react-i18next"; import { type FC } from "react"; import { useClientState } from "../ClientContext"; -import { ErrorView, LoadingView } from "../FullScreenView"; +import { ErrorPage, LoadingPage } from "../FullScreenView"; import { UnauthenticatedView } from "./UnauthenticatedView"; import { RegisteredView } from "./RegisteredView"; import { usePageTitle } from "../usePageTitle"; +import { widget } from "../widget.ts"; export const HomePage: FC = () => { const { t } = useTranslation(); @@ -21,9 +22,9 @@ export const HomePage: FC = () => { const clientState = useClientState(); if (!clientState) { - return ; + return ; } else if (clientState.state === "error") { - return ; + return ; } else { return clientState.authenticated ? ( diff --git a/src/home/JoinExistingCallModal.module.css b/src/home/JoinExistingCallModal.module.css index fb0e6175..e7159126 100644 --- a/src/home/JoinExistingCallModal.module.css +++ b/src/home/JoinExistingCallModal.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/home/JoinExistingCallModal.tsx b/src/home/JoinExistingCallModal.tsx index 3f2c3902..df3f7f9a 100644 --- a/src/home/JoinExistingCallModal.tsx +++ b/src/home/JoinExistingCallModal.tsx @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/home/RegisteredView.module.css b/src/home/RegisteredView.module.css index 2806c672..31306780 100644 --- a/src/home/RegisteredView.module.css +++ b/src/home/RegisteredView.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/home/RegisteredView.tsx b/src/home/RegisteredView.tsx index 3d3d864c..361160c5 100644 --- a/src/home/RegisteredView.tsx +++ b/src/home/RegisteredView.tsx @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -12,10 +12,10 @@ import { type FormEventHandler, type FC, } from "react"; -import { type MatrixClient } from "matrix-js-sdk/src/client"; +import { type MatrixClient } from "matrix-js-sdk"; import { useTranslation } from "react-i18next"; import { Heading, Text } from "@vector-im/compound-web"; -import { logger } from "matrix-js-sdk/src/logger"; +import { logger } from "matrix-js-sdk/lib/logger"; import { Button } from "@vector-im/compound-web"; import { useNavigate } from "react-router-dom"; @@ -37,12 +37,14 @@ import { Form } from "../form/Form"; import { AnalyticsNotice } from "../analytics/AnalyticsNotice"; import { E2eeType } from "../e2ee/e2eeType"; import { useOptInAnalytics } from "../settings/settings"; +import { useUrlParams } from "../UrlParams"; interface Props { client: MatrixClient; } export const RegisteredView: FC = ({ client }) => { + const { header } = useUrlParams(); const [loading, setLoading] = useState(false); const [error, setError] = useState(); const [optInAnalytics] = useOptInAnalytics(); @@ -114,14 +116,16 @@ export const RegisteredView: FC = ({ client }) => { return ( <>
-
- - - - - - -
+ {header === "standard" && ( +
+ + + + + + +
+ )}
diff --git a/src/home/UnauthenticatedView.module.css b/src/home/UnauthenticatedView.module.css index 6108abb1..46728268 100644 --- a/src/home/UnauthenticatedView.module.css +++ b/src/home/UnauthenticatedView.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/home/UnauthenticatedView.tsx b/src/home/UnauthenticatedView.tsx index 90c37c50..6e05bc34 100644 --- a/src/home/UnauthenticatedView.tsx +++ b/src/home/UnauthenticatedView.tsx @@ -1,15 +1,15 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ import { type FC, useCallback, useState, type FormEventHandler } from "react"; -import { randomString } from "matrix-js-sdk/src/randomstring"; +import { secureRandomString } from "matrix-js-sdk/lib/randomstring"; import { Trans, useTranslation } from "react-i18next"; import { Button, Heading, Text } from "@vector-im/compound-web"; -import { logger } from "matrix-js-sdk/src/logger"; +import { logger } from "matrix-js-sdk/lib/logger"; import { useNavigate } from "react-router-dom"; import { useClient } from "../ClientContext"; @@ -34,9 +34,11 @@ import { Config } from "../config/Config"; import { E2eeType } from "../e2ee/e2eeType"; import { useOptInAnalytics } from "../settings/settings"; import { ExternalLink, Link } from "../button/Link"; +import { useUrlParams } from "../UrlParams"; export const UnauthenticatedView: FC = () => { const { setClient } = useClient(); + const { header } = useUrlParams(); const [loading, setLoading] = useState(false); const [error, setError] = useState(); const [optInAnalytics] = useOptInAnalytics(); @@ -67,7 +69,7 @@ export const UnauthenticatedView: FC = () => { const userName = generateRandomName(); const [client, session] = await register( userName, - randomString(16), + secureRandomString(16), displayName, recaptchaResponse, true, @@ -89,7 +91,7 @@ export const UnauthenticatedView: FC = () => { // @ts-ignore if (error.errcode === "M_ROOM_IN_USE") { setOnFinished(() => { - setClient({ client, session }); + setClient(client, session); const aliasLocalpart = roomAliasLocalpartFromRoomName(roomName); navigate(`/${aliasLocalpart}`)?.catch((error) => { logger.error("Failed to navigate to alias localpart", error); @@ -111,7 +113,7 @@ export const UnauthenticatedView: FC = () => { if (!createRoomResult.password) throw new Error("Failed to create room with shared secret"); - setClient({ client, session }); + setClient(client, session); await navigate( getRelativeRoomUrl( createRoomResult.roomId, @@ -141,14 +143,16 @@ export const UnauthenticatedView: FC = () => { return ( <>
-
- - - - - - -
+ {header === "standard" && ( +
+ + + + + + +
+ )}
@@ -185,10 +189,10 @@ export const UnauthenticatedView: FC = () => { )} - + By clicking "Go", you agree to our{" "} - - End User Licensing Agreement (EULA) + + Software and Services License Agreement (SSLA) diff --git a/src/home/common.module.css b/src/home/common.module.css index 2032420f..821da771 100644 --- a/src/home/common.module.css +++ b/src/home/common.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/home/useGroupCallRooms.ts b/src/home/useGroupCallRooms.ts index 73464987..e89c3f14 100644 --- a/src/home/useGroupCallRooms.ts +++ b/src/home/useGroupCallRooms.ts @@ -1,18 +1,25 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { type MatrixClient } from "matrix-js-sdk/src/client"; -import { type Room, RoomEvent } from "matrix-js-sdk/src/models/room"; -import { type RoomMember } from "matrix-js-sdk/src/models/room-member"; +import { + type MatrixClient, + type RoomMember, + type Room, + RoomEvent, + EventTimeline, + EventType, + JoinRule, + KnownMembership, +} from "matrix-js-sdk"; import { useState, useEffect } from "react"; -import { EventTimeline, EventType, JoinRule } from "matrix-js-sdk/src/matrix"; -import { type MatrixRTCSession } from "matrix-js-sdk/src/matrixrtc/MatrixRTCSession"; -import { MatrixRTCSessionManagerEvents } from "matrix-js-sdk/src/matrixrtc/MatrixRTCSessionManager"; -import { KnownMembership } from "matrix-js-sdk/src/types"; +import { + MatrixRTCSessionManagerEvents, + type MatrixRTCSession, +} from "matrix-js-sdk/lib/matrixrtc"; import { getKeyForRoom } from "../e2ee/sharedKeyManagement"; @@ -74,8 +81,9 @@ function sortRooms(client: MatrixClient, rooms: Room[]): Room[] { } const roomIsJoinable = (room: Room): boolean => { - if (!room.hasEncryptionStateEvent() && !getKeyForRoom(room.roomId)) { - // if we have an non encrypted room (no encryption state event) we need a locally stored shared key. + const password = getKeyForRoom(room.roomId); + if (!room.hasEncryptionStateEvent() && !password) { + // if we have a non encrypted room (no encryption state event) we need a locally stored shared key. // in case this key also does not exists we cannot join the room. return false; } diff --git a/src/index.css b/src/index.css index aeeccaf4..dc914452 100644 --- a/src/index.css +++ b/src/index.css @@ -1,7 +1,7 @@ /* Copyright 2021-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -45,6 +45,9 @@ layer(compound); --small-drop-shadow: 0px 1.2px 2.4px 0px rgba(0, 0, 0, 0.15); --subtle-drop-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05); --background-gradient: url("graphics/backgroundGradient.svg"); + + --call-view-overlay-layer: 1; + --call-view-header-footer-layer: 2; } :root, @@ -71,6 +74,13 @@ body { -webkit-tap-highlight-color: transparent; } +/* This prohibits the view to scroll for pages smaller than 122px in width +we use this for mobile pip webviews */ +.no-scroll-body { + position: fixed; + width: 100%; +} + /* We use this to not render the page at all until we know the theme.*/ .no-theme { opacity: 0; @@ -100,7 +110,8 @@ body[data-platform="android"] { } body[data-platform="ios"] { - --cpd-font-family-sans: -apple-system, BlinkMacSystemFont, "Inter", sans-serif; + --cpd-font-family-sans: + -apple-system, BlinkMacSystemFont, "Inter", sans-serif; } @layer compound-legacy { diff --git a/src/initializer.test.ts b/src/initializer.test.ts index 19f52b69..0e43ed1f 100644 --- a/src/initializer.test.ts +++ b/src/initializer.test.ts @@ -1,28 +1,162 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ -import { expect, test } from "vitest"; +import { + afterAll, + afterEach, + beforeAll, + beforeEach, + describe, + expect, + it, + vi, +} from "vitest"; -import { Initializer } from "../src/initializer"; +import { mockConfig } from "./utils/test"; -test("initBeforeReact sets font family from URL param", async () => { - window.location.hash = "#?font=DejaVu Sans"; - await Initializer.initBeforeReact(); - expect( - getComputedStyle(document.documentElement).getPropertyValue( - "--font-family", - ), - ).toBe('"DejaVu Sans"'); -}); - -test("initBeforeReact sets font scale from URL param", async () => { - window.location.hash = "#?fontScale=1.2"; - await Initializer.initBeforeReact(); - expect( - getComputedStyle(document.documentElement).getPropertyValue("--font-scale"), - ).toBe("1.2"); +const sentryInitSpy = vi.fn(); + +// Place the mock after the spy is defined +vi.mock("@sentry/react", () => ({ + init: sentryInitSpy, + reactRouterV7BrowserTracingIntegration: vi.fn(), +})); + +describe("Initializer", async () => { + // we import here to make sure that Sentry is mocked first + const { Initializer } = await import("./initializer.tsx"); + describe("initBeforeReact()", () => { + it("sets font family from URL param", async () => { + window.location.hash = "#?font=DejaVu Sans"; + await Initializer.initBeforeReact(); + expect( + getComputedStyle(document.documentElement).getPropertyValue( + "--font-family", + ), + ).toBe('"DejaVu Sans"'); + }); + + it("sets font scale from URL param", async () => { + window.location.hash = "#?fontScale=1.2"; + await Initializer.initBeforeReact(); + expect( + getComputedStyle(document.documentElement).getPropertyValue( + "--font-scale", + ), + ).toBe("1.2"); + }); + }); + + describe("init()", () => { + describe("sentry setup", () => { + describe("embedded package", () => { + beforeAll(() => { + vi.stubEnv("VITE_PACKAGE", "embedded"); + }); + + beforeEach(() => { + mockConfig({}); + window.location.hash = "#"; + Initializer.reset(); + }); + + afterEach(() => { + sentryInitSpy.mockClear(); + }); + + afterAll(() => { + vi.unstubAllEnvs(); + }); + + it("does not call Sentry.init() without config value", async () => { + await Initializer.init(); + expect(sentryInitSpy).not.toHaveBeenCalled(); + }); + + it("ignores config value and does not create instance", async () => { + mockConfig({ + sentry: { + DSN: "https://config.example.com.localhost", + environment: "config", + }, + }); + await Initializer.init(); + expect(sentryInitSpy).not.toHaveBeenCalled(); + }); + + it("uses sentryDsn param if set", async () => { + window.location.hash = `#?sentryDsn=${encodeURIComponent("https://dsn.example.com.localhost")}`; + await Initializer.init(); + expect(sentryInitSpy).toHaveBeenCalledWith( + expect.objectContaining({ + dsn: "https://dsn.example.com.localhost", + environment: undefined, + }), + ); + }); + + it("uses sentryDsn and sentryEnvironment params if set", async () => { + window.location.hash = `#?sentryDsn=${encodeURIComponent("https://dsn.example.com.localhost")}&sentryEnvironment=fooEnvironment`; + await Initializer.init(); + expect(sentryInitSpy).toHaveBeenCalledWith( + expect.objectContaining({ + dsn: "https://dsn.example.com.localhost", + environment: "fooEnvironment", + }), + ); + }); + }); + + describe("full package", () => { + beforeAll(() => { + vi.stubEnv("VITE_PACKAGE", "full"); + }); + + beforeEach(() => { + mockConfig({}); + window.location.hash = "#"; + Initializer.reset(); + }); + + afterEach(() => { + sentryInitSpy.mockClear(); + }); + + afterAll(() => { + vi.unstubAllEnvs(); + }); + + it("does not create instance without config value or URL param", async () => { + await Initializer.init(); + expect(sentryInitSpy).not.toHaveBeenCalled(); + }); + + it("ignores URL params and does not create instance", async () => { + window.location.hash = `#?sentryDsn=${encodeURIComponent("https://dsn.example.com.localhost")}&sentryEnvironment=fooEnvironment`; + await Initializer.init(); + expect(sentryInitSpy).not.toHaveBeenCalled(); + }); + + it("creates instance with config value", async () => { + mockConfig({ + sentry: { + DSN: "https://dsn.example.com.localhost", + environment: "fooEnvironment", + }, + }); + await Initializer.init(); + expect(sentryInitSpy).toHaveBeenCalledWith( + expect.objectContaining({ + dsn: "https://dsn.example.com.localhost", + environment: "fooEnvironment", + }), + ); + }); + }); + }); + }); }); diff --git a/src/initializer.tsx b/src/initializer.tsx index 46eb5952..d0797e9d 100644 --- a/src/initializer.tsx +++ b/src/initializer.tsx @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -14,7 +14,7 @@ import i18n, { import { initReactI18next } from "react-i18next"; import LanguageDetector from "i18next-browser-languagedetector"; import * as Sentry from "@sentry/react"; -import { logger } from "matrix-js-sdk/src/logger"; +import { logger } from "matrix-js-sdk/lib/logger"; import { shouldPolyfill as shouldPolyfillSegmenter } from "@formatjs/intl-segmenter/should-polyfill"; import { shouldPolyfill as shouldPolyfillDurationFormat } from "@formatjs/intl-durationformat/should-polyfill"; import { @@ -28,6 +28,7 @@ import { getUrlParams } from "./UrlParams"; import { Config } from "./config/Config"; import { ElementCallOpenTelemetry } from "./otel/otel"; import { platform } from "./Platform"; +import { isFailure } from "./utils/fetch"; // This generates a map of locale names to their URL (based on import.meta.url), which looks like this: // { @@ -79,7 +80,7 @@ const Backend = { }, }); - if (!response.ok) { + if (isFailure(response)) { throw Error(`Failed to fetch ${url}`); } @@ -108,11 +109,11 @@ class DependencyLoadStates { } export class Initializer { - private static internalInstance: Initializer; + private static internalInstance: Initializer | undefined; private isInitialized = false; public static isInitialized(): boolean { - return Initializer.internalInstance?.isInitialized; + return !!Initializer.internalInstance?.isInitialized; } public static async initBeforeReact(): Promise { @@ -135,6 +136,11 @@ export class Initializer { lookup: () => getUrlParams().lang ?? undefined, }); + // Synchronise the HTML lang attribute with the i18next language + i18n.on("languageChanged", (lng) => { + document.documentElement.lang = lng; + }); + await i18n .use(Backend) .use(languageDetector) @@ -192,11 +198,19 @@ export class Initializer { Initializer.internalInstance.initPromise = new Promise((resolve) => { // initStep calls itself recursively until everything is initialized in the correct order. // Then the promise gets resolved. - Initializer.internalInstance.initStep(resolve); + Initializer.internalInstance?.initStep(resolve); }); return Initializer.internalInstance.initPromise; } + /** + * Resets the initializer. This is used in tests to ensure that the initializer + * is re-initialized for each test. + */ + public static reset(): void { + Initializer.internalInstance = undefined; + } + private loadStates = new DependencyLoadStates(); private initStep(resolve: (value: void | PromiseLike) => void): void { @@ -219,12 +233,24 @@ export class Initializer { this.loadStates.sentry === LoadState.None && this.loadStates.config === LoadState.Loaded ) { - if (Config.get().sentry?.DSN && Config.get().sentry?.environment) { + let dsn: string | undefined; + let environment: string | undefined; + if (import.meta.env.VITE_PACKAGE === "embedded") { + // for the embedded package we always use the values from the URL as the widget host is responsible for analytics configuration + dsn = getUrlParams().sentryDsn ?? undefined; + environment = getUrlParams().sentryEnvironment ?? undefined; + } + if (import.meta.env.VITE_PACKAGE === "full") { + // in full package it is the server responsible for the analytics + dsn = Config.get().sentry?.DSN; + environment = Config.get().sentry?.environment; + } + if (dsn) { Sentry.init({ - dsn: Config.get().sentry?.DSN, - environment: Config.get().sentry?.environment, + dsn, + environment, integrations: [ - Sentry.reactRouterV6BrowserTracingIntegration({ + Sentry.reactRouterV7BrowserTracingIntegration({ useEffect: React.useEffect, useLocation, useNavigationType, diff --git a/src/input/AvatarInputField.module.css b/src/input/AvatarInputField.module.css index 3fe6b124..4213d7c1 100644 --- a/src/input/AvatarInputField.module.css +++ b/src/input/AvatarInputField.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/input/AvatarInputField.tsx b/src/input/AvatarInputField.tsx index a4bccb27..4a3173b4 100644 --- a/src/input/AvatarInputField.tsx +++ b/src/input/AvatarInputField.tsx @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/input/FeedbackInput.module.css b/src/input/FeedbackInput.module.css index 0a18f104..e931ba18 100644 --- a/src/input/FeedbackInput.module.css +++ b/src/input/FeedbackInput.module.css @@ -1,7 +1,7 @@ /* Copyright 2023, 2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/input/Input.module.css b/src/input/Input.module.css index cfe045c9..869416b6 100644 --- a/src/input/Input.module.css +++ b/src/input/Input.module.css @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ diff --git a/src/input/Input.tsx b/src/input/Input.tsx index 761988ad..1f6d35e8 100644 --- a/src/input/Input.tsx +++ b/src/input/Input.tsx @@ -1,7 +1,7 @@ /* Copyright 2022-2024 New Vector Ltd. -SPDX-License-Identifier: AGPL-3.0-only +SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE in the repository root for full details. */ @@ -9,9 +9,10 @@ import { type ChangeEvent, type FC, type ForwardedRef, - forwardRef, type ReactNode, useId, + type JSX, + type Ref, } from "react"; import classNames from "classnames"; @@ -53,6 +54,7 @@ function Field({ children, className }: FieldProps): JSX.Element { } interface InputFieldProps { + ref?: Ref; label?: string; type: string; prefix?: string; @@ -77,88 +79,81 @@ interface InputFieldProps { onChange?: (event: ChangeEvent) => void; } -export const InputField = forwardRef< - HTMLInputElement | HTMLTextAreaElement, - InputFieldProps ->( - ( - { - id, - label, - className, - type, - checked, - prefix, - suffix, - description, - disabled, - min, - ...rest - }, - ref, - ) => { - const descriptionId = useId(); +export const InputField: FC = ({ + ref, + id, + label, + className, + type, + checked, + prefix, + suffix, + description, + disabled, + min, + ...rest +}) => { + const descriptionId = useId(); - return ( - - {prefix && {prefix}} - {type === "textarea" ? ( - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore -