Compare commits

...

196 Commits

Author SHA1 Message Date
fkwp
42d697068d fix run-id 2024-04-22 18:44:42 +02:00
fkwp
96a1c4bf7a fix gh action run-id for a release (fixed order) 2024-04-22 18:39:19 +02:00
fkwp
85c140bc32 fix gh action run-id for a release 2024-04-22 18:36:42 +02:00
fkwp
affac2da40 fix gh action for a release 2024-04-22 18:04:47 +02:00
Robin
257211e8f9 Try disabling LiveKit web audio support
We think there's a chance this is causing some Edge users to not hear any audio.
2024-04-19 13:02:51 -04:00
fkwp
d352fefcaa Merge pull request #2322 from element-hq/renovate/livekit-components-core-0.x
Update dependency @livekit/components-core to ^0.10.0
2024-04-18 17:45:00 +02:00
fkwp
8234211f03 Merge pull request #2324 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.1.0
2024-04-18 17:44:12 +02:00
fkwp
6d0de07f07 Merge pull request #2321 from element-hq/renovate/actions-upload-artifact-digest
Update actions/upload-artifact digest to b06cde3
2024-04-18 17:43:03 +02:00
renovate[bot]
1ed1b7c60c Update dependency livekit-client to v2.1.0 2024-04-18 15:42:55 +00:00
renovate[bot]
e8810882ef Update dependency @livekit/components-core to ^0.10.0 2024-04-18 15:42:22 +00:00
renovate[bot]
244387dc04 Update actions/upload-artifact digest to b06cde3 2024-04-18 15:42:00 +00:00
fkwp
bfd3a61aef adapt to stricter repo permissions part 3 2024-04-17 15:29:57 +02:00
fkwp
c5793b9e7c adapt to stricter repo permissions part 2 2024-04-17 15:27:05 +02:00
fkwp
4283716dcc adapto to stricter repo permissions 2024-04-17 15:18:49 +02:00
Timo
379050ff80 Add back posthog connection time tracking (#2316)
Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Robin <robin@robin.town>
2024-04-16 17:21:37 +02:00
fkwp
df4da4e4ec Merge pull request #2318 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to a530e94
2024-04-16 16:27:06 +02:00
renovate[bot]
99d6ced566 Update docker/setup-buildx-action digest to a530e94 2024-04-16 14:25:51 +00:00
fkwp
46cfa65bc2 Merge pull request #2317 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 7e6f776
2024-04-16 16:25:26 +02:00
renovate[bot]
067c13ebf7 Update docker/build-push-action digest to 7e6f776 2024-04-16 14:21:31 +00:00
Timo
9f4a107865 Revert "Track connection time on posthog (#2313)" (#2315)
This reverts commit 5e2b652690.
2024-04-16 16:21:07 +02:00
Timo
5e2b652690 Track connection time on posthog (#2313) 2024-04-16 11:48:11 +02:00
Robin
fc4ced7bb3 Merge pull request #2294 from robintown/timeout-experiment
Experiment with different timeouts
2024-04-15 10:50:38 -04:00
fkwp
1381640cdb inputs -> with 2024-04-15 14:47:07 +00:00
fkwp
d56dcaf0eb misssing inputs section 2024-04-15 14:45:23 +00:00
fkwp
1d43bd26ed misssing inputs section 2024-04-15 14:44:49 +00:00
Robin
51cc406af7 Experiment with different timeouts
This lets you set the global variables peerConnectionTimeout and websocketTimeout to see what LiveKit does with different values.
2024-04-15 10:38:18 -04:00
fkwp
03d2818c1f added description 2024-04-15 08:57:30 +00:00
fkwp
e1c71327c5 refactored to reuse the build workflow 2024-04-15 08:53:42 +00:00
fkwp
1baed1184a move vite_app_version to inputs 2024-04-15 08:26:06 +00:00
fkwp
c6fc0bb798 Merge pull request #2311 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 1294d94
2024-04-15 09:24:42 +02:00
renovate[bot]
d5ccfa2ac5 Update docker/metadata-action digest to 1294d94 2024-04-15 07:23:12 +00:00
fkwp
7793805f1b Merge pull request #2312 from element-hq/renovate/peter-evans-create-pull-request-6.x
Update peter-evans/create-pull-request action to v6.0.3
2024-04-15 09:22:37 +02:00
fkwp
c67040afe7 lint2 2024-04-15 07:21:07 +00:00
fkwp
444297f3d9 lint 2024-04-15 07:19:46 +00:00
renovate[bot]
afb43d049d Update peter-evans/create-pull-request action to v6.0.3 2024-04-13 20:31:15 +00:00
fkwp
93c2ae768e refactored netlify-pr and docker-pr by calling netlify and docker from pr-deploy 2024-04-12 22:19:20 +00:00
fkwp
2bbd882425 remove debug statements 2024-04-12 22:17:52 +00:00
fkwp
e781dfa164 added artifact details 2024-04-12 22:05:21 +00:00
fkwp
fc65c799d8 var typo 2024-04-12 22:02:11 +00:00
fkwp
d9d218cb1f remove pr_number input 2024-04-12 21:59:57 +00:00
fkwp
9946888d63 add docker deploy 2024-04-12 21:57:18 +00:00
fkwp
202388bd79 set pr_number type to string 2024-04-12 21:45:52 +00:00
fkwp
1df5ee05c9 added types 2024-04-12 21:43:09 +00:00
fkwp
ee2214c14d inputs -> with 2024-04-12 21:27:34 +00:00
fkwp
a2066f300b add netlify deploy 2024-04-12 21:22:49 +00:00
fkwp
a0938bad13 add netlify workflow_call 2024-04-12 21:22:35 +00:00
fkwp
9675df8434 add paths-ignore 2024-04-12 21:19:33 +00:00
fkwp
b9a6ee70a8 safe guard 2024-04-12 21:01:45 +00:00
fkwp
5c399fbfb2 safe guard 2024-04-12 20:59:53 +00:00
fkwp
a5231983e8 fix lint 2024-04-12 20:52:58 +00:00
fkwp
76d3117a1c indent 2024-04-12 20:45:28 +00:00
fkwp
6bcfe61a79 lint 2024-04-12 20:43:24 +00:00
fkwp
9fe7f62a63 lint 2024-04-12 20:39:22 +00:00
fkwp
7455104aaf use element-call.yaml 2024-04-12 20:39:05 +00:00
fkwp
96bf809e8a renamed build_resuable.yaml -> element-call.yaml 2024-04-12 20:36:34 +00:00
fkwp
b5a7c55d70 initial 2024-04-12 20:34:08 +00:00
fkwp
c578bcaf91 cleanup 2024-04-12 20:10:45 +00:00
fkwp
908ca2325a clenaup naming 2024-04-12 19:54:18 +00:00
fkwp
a1659c1fe2 cleanup 2024-04-12 19:41:56 +00:00
fkwp
3d7ef061cd debug 2024-04-12 19:32:51 +00:00
fkwp
a04500f102 lint 2024-04-12 19:24:13 +00:00
fkwp
b8aaa6b079 matrix-org/pr-details-action 2024-04-12 19:21:59 +00:00
fkwp
89911c1747 get PR info 2024-04-12 18:58:12 +00:00
fkwp
f7e63bd2f5 dont limit PR branches 2024-04-12 17:52:46 +00:00
fkwp
76bb72d3ea add debug info 2024-04-12 17:42:46 +00:00
fkwp
fd8ee1542b revert pull_request_target to pull_request 2024-04-12 14:06:01 +00:00
fkwp
ef395efaf8 test if pull_request_target will trigger on_workflow 2024-04-12 13:39:04 +00:00
fkwp
8da2f5c1c7 use run-id from current run 2024-04-11 21:26:03 +00:00
fkwp
0bfe12bcbc use run-id from calling workflow 2024-04-11 21:16:45 +00:00
fkwp
63023f542b download artifact from the triggering workflow 2024-04-11 20:35:24 +00:00
fkwp
74ddcee2af add github-token and run-id parameters to download artifact 2024-04-11 19:45:31 +00:00
fkwp
9cce4bc0ad also trigger in case of labeled 2024-04-11 19:38:29 +00:00
fkwp
be44aa0157 apply Keeping your GitHub Actions and workflows secure practises 2024-04-11 19:32:59 +00:00
fkwp
e74095be54 we dont need prdetails going forward (#2309)
* use pull_request event rather than workflow_run

* use default for enable-pull-request-comment and enable-commit-comment

* we dont need prdetails going forward
2024-04-11 13:47:59 +02:00
fkwp
3458ff9716 use pull_request event rather than workflow_run (#2308)
* use pull_request event rather than workflow_run

* use default for enable-pull-request-comment and enable-commit-comment
2024-04-11 11:39:17 +02:00
Timo
dcc04bb10f limit homserver to not cover the whole loginview input with the string. (#2307) 2024-04-11 11:16:45 +02:00
fkwp
36d754f27f Merge pull request #2306 from element-hq/fkwp-patch-1
netlify PR builds switch to build_reusable
2024-04-11 10:16:58 +02:00
fkwp
1daca7a0d9 cleanup 2024-04-11 07:46:26 +00:00
fkwp
884491d60e depend deploy on build 2024-04-11 07:45:59 +00:00
fkwp
9c00d74924 switch to build_reusable 2024-04-11 07:42:56 +00:00
fkwp
f32934d7e4 Merge pull request #2305 from element-hq/fkwp-patch-1
limit docker image creation to element-hq/element-call PRs only
2024-04-11 09:12:56 +02:00
fkwp
4b1505abb7 limit docker image creation to element-hq/element-call PRs only 2024-04-10 19:34:16 +00:00
fkwp
21b4d46f83 Merge pull request #2304 from element-hq/fkwp-patch-1
fix permissions
2024-04-10 17:20:05 +02:00
fkwp
cb113cbfe4 fix permissions 2024-04-10 15:17:10 +00:00
fkwp
fd6032b44f Merge pull request #2303 from element-hq/fkwp-patch-1
specify secrets explicetly
2024-04-10 17:08:06 +02:00
fkwp
229e5f3ce7 cleanup whitespaces part 2 2024-04-10 15:07:01 +00:00
fkwp
4271685c66 cleanup whitespaces 2024-04-10 15:05:10 +00:00
fkwp
c59610a5c1 specify secrets explicetly 2024-04-10 15:01:51 +00:00
fkwp
94ef74b8bf Merge pull request #2302 from element-hq/fkwp-patch-1
workaround env not available in job.if
2024-04-10 16:51:57 +02:00
fkwp
ea014e1b0c workaround env not available in job.if 2024-04-10 14:48:15 +00:00
fkwp
922bb00722 Merge pull request #2301 from element-hq/fkwp-patch-1
gh actions refactor
2024-04-10 16:36:28 +02:00
fkwp
c412e2550d Merge branch 'livekit' into fkwp-patch-1 2024-04-10 16:35:23 +02:00
fkwp
5bad53c63e refactor 2024-04-10 14:29:59 +00:00
fkwp
4cc077a72a typo 2024-04-10 14:08:54 +00:00
Robin
708cb18332 Merge pull request #2286 from robintown/fix-holds
Fix participants disappearing during focus switch (probably)
2024-04-10 09:58:08 -04:00
fkwp
3c3150a6b6 checkout source -> Dockerfile (#2300)
* make build_docker job dependent on build_element_call

* checkout source -> Dockerfile
2024-04-10 15:11:43 +02:00
fkwp
fc525a6e45 checkout source -> Dockerfile 2024-04-10 12:59:32 +00:00
fkwp
545034d26f make build_docker job dependent on build_element_call (#2299) 2024-04-10 14:53:19 +02:00
fkwp
5f7410c809 make build_docker job dependent on build_element_call 2024-04-10 12:46:45 +00:00
fkwp
db24e544bd Merge pull request #2298 from element-hq/fkwp-patch-1
change to overall strategy to use reusable builds
2024-04-10 14:41:32 +02:00
fkwp
71e3fefc00 added trailing newline 2024-04-10 12:37:37 +00:00
fkwp
1aaa161522 change to overall strategy to use reusable builds 2024-04-10 12:31:39 +00:00
fkwp
0b2c78d563 Merge pull request #2297 from element-hq/fkwp-patch-1
different way of checking docker build label
2024-04-10 13:28:03 +02:00
fkwp
876c904eb0 different way of checking docker build label 2024-04-10 11:25:50 +00:00
fkwp
ffd0832b31 Merge pull request #2296 from element-hq/fkwp-patch-1
attempt to create docker pr images
2024-04-09 21:14:00 +02:00
fkwp
907e7bdf52 remove spaces 2024-04-09 19:11:31 +00:00
fkwp
0d997254d0 newline 2024-04-09 19:04:32 +00:00
fkwp
e40efd57c8 remove get unix time 2024-04-09 19:03:56 +00:00
fkwp
096ddce173 attempt to create docker pr images 2024-04-09 20:52:38 +02:00
renovate[bot]
cc279d849f Update dependency @types/node to v20.12.6 (#2267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 11:40:01 +02:00
renovate[bot]
dd81ff68dd Update dependency @use-gesture/react to v10.3.1 (#2291)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 11:39:36 +02:00
fkwp
750e35015e Merge pull request #2290 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to d70bba7
2024-04-08 21:44:47 +02:00
renovate[bot]
97693639dd Update docker/setup-buildx-action digest to d70bba7 2024-04-08 19:40:37 +00:00
fkwp
a88458aebf Merge pull request #2289 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to c314eea
2024-04-08 21:40:08 +02:00
renovate[bot]
beb408aa04 Update docker/metadata-action digest to c314eea 2024-04-08 18:52:08 +00:00
fkwp
a15ded502f Merge pull request #2288 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to 5f4866a
2024-04-08 20:51:37 +02:00
renovate[bot]
5963bdae6e Update docker/login-action digest to 5f4866a 2024-04-08 16:59:08 +00:00
fkwp
6c5e73513c Merge pull request #2287 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to f8bc7f4
2024-04-08 18:58:35 +02:00
renovate[bot]
d35a070844 Update docker/build-push-action digest to f8bc7f4 2024-04-08 16:25:14 +00:00
renovate[bot]
c2ff3dc8b7 Update dependency vite to v5.1.7 [SECURITY] (#2282)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 18:24:44 +02:00
renovate[bot]
63e3a98c02 Update dependency posthog-js to v1.120.2 (#2275)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-08 18:21:40 +02:00
fkwp
a7053ac595 Merge pull request #2284 from element-hq/renovate/livekit-components-core-0.x-lockfile
Update dependency @livekit/components-core to v0.9.3
2024-04-08 17:22:17 +02:00
renovate[bot]
75d529e66c Update dependency @livekit/components-core to v0.9.3 2024-04-08 15:18:12 +00:00
fkwp
fe7bb76f01 Merge pull request #2285 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.0.6
2024-04-08 17:17:34 +02:00
renovate[bot]
d78b894a6b Update dependency @livekit/components-react to v2.0.6 2024-04-05 20:31:11 +00:00
Robin
5121b956ca Fix participants disappearing during focus switch (probably)
I discovered that this hook was calling complete on the returned observable almost immediately when it gets mounted. This caused the call view model to never know when the application was switching focuses. At first I thought this was just because I forgot to move the call to complete to the effect's clean-up function, but even with that changed, React still calls the effect twice in strict mode. So, let's just remove the call entirely.
2024-04-05 14:27:53 -04:00
ElementRobot
255b3218a5 Merge pull request #2280 from element-hq/actions/localazy-download
Localazy Download
2024-04-04 11:51:25 +01:00
robintown
1614b2e8bd Translations updates 2024-04-02 18:57:05 +00:00
Timo
3f5c7257b3 make click highlight transparent (#2266)
Signed-off-by: Timo K <toger5@hotmail.de>
2024-03-25 16:02:40 +01:00
fkwp
ccea9fc961 Merge pull request #2278 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.0.10
2024-03-25 08:44:02 +01:00
renovate[bot]
5ebaad014c Update dependency livekit-client to v2.0.10 2024-03-24 10:46:09 +00:00
fkwp
aa14051755 Merge pull request #2264 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.0.7
2024-03-21 09:58:34 +01:00
fkwp
e9e79f8ec3 use correct path 2024-03-21 08:57:17 +00:00
fkwp
88471f1462 typo 2024-03-20 13:10:44 +00:00
fkwp
9b8088fb43 protocol is now own npm package 2024-03-20 13:04:01 +00:00
fkwp
8e950e7c0a protocol is now own npm package 2024-03-20 12:58:54 +00:00
renovate[bot]
8de238dfc6 Update dependency livekit-client to v2.0.8 2024-03-20 12:34:46 +00:00
fkwp
2f37787ea3 Merge pull request #2274 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 38b3677
2024-03-19 14:00:16 +01:00
renovate[bot]
7cf50101b3 Update docker/metadata-action digest to 38b3677 2024-03-19 12:58:22 +00:00
fkwp
518f8c8783 Merge pull request #2273 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 090ca15
2024-03-19 13:57:50 +01:00
renovate[bot]
f6094378fe Update docker/build-push-action digest to 090ca15 2024-03-18 09:36:58 +00:00
fkwp
44a8dffd08 Merge pull request #2268 from element-hq/renovate/peter-evans-create-pull-request-6.x
Update peter-evans/create-pull-request action to v6.0.2
2024-03-18 10:36:30 +01:00
renovate[bot]
9d2711a736 Update dependency @opentelemetry/instrumentation-user-interaction to ^0.36.0 (#2270)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 19:50:35 +01:00
renovate[bot]
1a7048f2b8 Update dependency posthog-js to v1.116.0 (#2258)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 19:47:25 +01:00
renovate[bot]
16bc438ee3 Update peter-evans/create-pull-request action to v6.0.2 2024-03-15 08:35:57 +00:00
renovate[bot]
5d670d4bfb Update dependency @opentelemetry/instrumentation-document-load to ^0.36.0 (#2259)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 09:34:34 +01:00
renovate[bot]
ca761b9176 Update dependency vite to v5.1.6 (#2257)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 09:34:14 +01:00
renovate[bot]
d5de8cac2d Update dependency i18next to v23.10.1 (#2256)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 09:33:24 +01:00
fkwp
1c47a83c04 Merge pull request #2261 from element-hq/renovate/docker-login-action-digest
Update docker/login-action digest to e92390c
2024-03-14 10:16:29 +01:00
fkwp
318702ad13 Merge pull request #2262 from element-hq/renovate/docker-metadata-action-digest
Update docker/metadata-action digest to 7535934
2024-03-14 10:16:10 +01:00
fkwp
bf8a2bba45 Merge pull request #2263 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to 2b51285
2024-03-14 10:15:50 +01:00
fkwp
592386daae Merge pull request #2265 from element-hq/renovate/nwtgck-actions-netlify-3.x
Update nwtgck/actions-netlify action to v3
2024-03-14 10:15:32 +01:00
fkwp
e2bd381f65 Merge pull request #2260 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 2cdde99
2024-03-14 10:14:18 +01:00
renovate[bot]
28fcdaf6cb Update nwtgck/actions-netlify action to v3 2024-03-14 09:13:20 +00:00
renovate[bot]
88a67b8fc8 Update docker/setup-buildx-action digest to 2b51285 2024-03-14 09:12:01 +00:00
renovate[bot]
09eb666daf Update docker/metadata-action digest to 7535934 2024-03-14 09:11:56 +00:00
renovate[bot]
c8ebd129ed Update docker/login-action digest to e92390c 2024-03-14 09:11:52 +00:00
renovate[bot]
1aede1e24e Update docker/build-push-action digest to 2cdde99 2024-03-14 09:11:49 +00:00
Timo
c932dd8c9b Theme loading without flickering (#2233) 2024-03-13 14:58:21 +01:00
Robin
4a9a58475f Merge pull request #2253 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to af5a7ed
2024-03-11 09:03:08 -05:00
Robin
b503260caa Merge pull request #2254 from element-hq/renovate/livekit-components-react-2.x-lockfile
Update dependency @livekit/components-react to v2.0.3
2024-03-11 09:02:49 -05:00
Robin
7883db3434 Merge pull request #2249 from element-hq/renovate/react-i18next-14.x-lockfile
Update dependency react-i18next to v14.1.0
2024-03-11 09:02:27 -05:00
renovate[bot]
3310484859 Update dependency @livekit/components-react to v2.0.3 2024-03-11 14:00:43 +00:00
Robin
e6aa60edd0 Merge pull request #2232 from element-hq/renovate/node-20.x-lockfile
Update dependency @types/node to v20.11.25
2024-03-11 09:00:41 -05:00
Robin
5a3d625333 Merge pull request #2247 from element-hq/renovate/vite-5.x-lockfile
Update dependency vite to v5.1.5
2024-03-11 09:00:17 -05:00
Robin
163586a80e Merge pull request #2221 from element-hq/renovate/eslint-8.x-lockfile
Update dependency eslint to v8.57.0
2024-03-11 08:59:50 -05:00
renovate[bot]
6d5887b33e Update docker/build-push-action digest to af5a7ed 2024-03-11 13:59:33 +00:00
Robin
8f2371757e Merge pull request #2248 from element-hq/renovate/posthog-js-1.x-lockfile
Update dependency posthog-js to v1.113.0
2024-03-11 08:59:01 -05:00
renovate[bot]
478745a38d Update dependency posthog-js to v1.113.0 2024-03-11 13:28:50 +00:00
Andrew Ferrazzutti
d79359ae66 Drop unsupported field from backend/livekit.yaml
signal_relay.enabled was removed in v1.5.3: livekit/livekit@3f2f850
2024-03-07 16:21:59 -05:00
Andrew Ferrazzutti
f2b5ba24de Provide example config for Apache HTTP Server 2024-03-07 11:47:42 -05:00
renovate[bot]
33ec5b1451 Update dependency react-i18next to v14.1.0 2024-03-07 09:51:04 +00:00
renovate[bot]
0c87fd3b75 Update dependency @types/node to v20.11.25 2024-03-06 20:33:23 +00:00
fkwp
b1586e07a3 Merge pull request #2246 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 00ae31a
2024-03-06 17:10:22 +01:00
renovate[bot]
b254b38427 Update dependency vite to v5.1.5 2024-03-06 13:44:58 +00:00
renovate[bot]
c3ed8bf139 Update docker/build-push-action digest to 00ae31a 2024-03-06 13:44:34 +00:00
renovate[bot]
661e11a2a4 Update sentry-javascript monorepo to v7.105.0 (#2225)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:36:08 +01:00
renovate[bot]
134a356ba2 Update dependency @livekit/components-react to v2.0.2 (#2244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:35:32 +01:00
fkwp
be3b1c40d0 Merge pull request #2245 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.0.5
2024-03-06 11:32:04 +01:00
renovate[bot]
c09d1ecbff Update dependency livekit-client to v2.0.5 2024-03-06 10:30:02 +00:00
renovate[bot]
186be88c24 Update dependency @vector-im/compound-design-tokens to v1.2.0 (#2237)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:29:32 +01:00
renovate[bot]
f8fa8e3722 Update dependency posthog-js to v1.111.0 (#2217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:28:54 +01:00
renovate[bot]
58b97d8c04 Update dependency @livekit/components-core to v0.9.1 (#2242)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 11:27:44 +01:00
fkwp
419bf22f2a Merge pull request #2239 from element-hq/renovate/docker-setup-buildx-action-digest
Update docker/setup-buildx-action digest to 56a16b8
2024-03-05 10:29:46 +01:00
renovate[bot]
322bbe38f8 Update docker/setup-buildx-action digest to 56a16b8 2024-03-02 16:28:06 +00:00
fkwp
5bd1832770 Merge pull request #2238 from element-hq/renovate/livekit-client-2.x-lockfile
Update dependency livekit-client to v2.0.4
2024-03-02 17:27:34 +01:00
fkwp
13fa572f26 Merge pull request #2236 from element-hq/renovate/docker-build-push-action-digest
Update docker/build-push-action digest to 831ca17
2024-03-02 17:25:09 +01:00
renovate[bot]
bddf6fb856 Update dependency livekit-client to v2.0.4 2024-03-02 16:25:03 +00:00
Timo
ecc7f01933 Skip effect based register in widget mode. (#2230)
Prohibits error message.

Signed-off-by: Timo K <toger5@hotmail.de>
2024-03-01 12:37:42 +01:00
renovate[bot]
48aef98440 Update docker/build-push-action digest to 831ca17 2024-02-29 13:48:07 +00:00
renovate[bot]
46a12c7476 Update dependency @types/node to v20.11.21 (#2210)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:06:28 +01:00
renovate[bot]
f7681a60ab Update peter-evans/create-pull-request action to v6.0.1 (#2226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:06:01 +01:00
renovate[bot]
19f56f27a7 Update typescript-eslint monorepo to v7.1.0 (#2222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:04:46 +01:00
renovate[bot]
1d128bcfe0 Update dependency @vector-im/compound-web to v3.1.3 (#2224)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:03:31 +01:00
renovate[bot]
57548b5d43 Update dependency i18next-parser to v8.13.0 (#2223)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 11:01:45 +01:00
renovate[bot]
9b83cebcad Update dependency eslint to v8.57.0 2024-02-23 23:21:09 +00:00
47 changed files with 854 additions and 801 deletions

View File

@@ -1,34 +1,25 @@
name: Build
on:
pull_request: {}
pull_request:
types:
- synchronize
- opened
- labeled
paths-ignore:
- ".github/**"
- "docs/**"
push:
branches: [livekit, full-mesh]
paths-ignore:
- ".github/**"
- "docs/**"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Yarn cache
uses: actions/setup-node@v4
with:
cache: "yarn"
- name: Install dependencies
run: "yarn install"
- name: Build
run: "yarn run build"
env:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VITE_APP_VERSION: ${{ github.sha }}
NODE_OPTIONS: "--max-old-space-size=4096"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: build
path: dist
# We'll only use this in a triggered job, then we're done with it
retention-days: 1
build_element_call:
uses: ./.github/workflows/element-call.yaml
with:
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
secrets:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

56
.github/workflows/docker.yaml vendored Normal file
View File

@@ -0,0 +1,56 @@
name: Docker - Deploy
on:
workflow_call:
inputs:
docker_tags:
required: true
type: string
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build_and_deploy:
name: Build & publish docker
runs-on: ubuntu-latest
permissions:
contents: write # required to upload release asset
packages: write
steps:
- name: Check it out
uses: actions/checkout@v4
- name: 📥 Download artifact
uses: actions/download-artifact@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id || github.run_id }}
name: build-output
path: dist
- name: Log in to container registry
uses: docker/login-action@5f4866a30a54f16a52d2ecb4a3898e9e424939cf
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@1294d94f8ee362ab42b6da04c35f4cd03a0e6af7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: ${{ inputs.docker_tags}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@a530e948adbeb357dbca95a7f8845d385edf4438
- name: Build and push Docker image
uses: docker/build-push-action@7e6f77677b7892794c8852c6e3773c3e9bc3129a
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

46
.github/workflows/element-call.yaml vendored Normal file
View File

@@ -0,0 +1,46 @@
name: Element Call - Build
on:
workflow_call:
inputs:
vite_app_version:
required: true
type: string
secrets:
SENTRY_ORG:
required: true
SENTRY_PROJECT:
required: true
SENTRY_URL:
required: true
SENTRY_AUTH_TOKEN:
required: true
jobs:
build:
name: Build Element Call
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Yarn cache
uses: actions/setup-node@v4
with:
cache: "yarn"
- name: Install dependencies
run: "yarn install"
- name: Build
run: "yarn run build"
env:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VITE_APP_VERSION: ${{ inputs.vite_app_version }}
NODE_OPTIONS: "--max-old-space-size=4096"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: build-output
path: dist
# We'll only use this in a triggered job, then we're done with it
retention-days: 1

View File

@@ -1,15 +1,29 @@
name: Netlify PR Preview
name: Netlify - Deploy
on:
workflow_run:
workflows: ["Build"]
types:
- completed
branches-ignore:
- "main"
- "livekit"
workflow_call:
inputs:
pr_number:
required: true
type: string
pr_head_full_name:
required: true
type: string
pr_head_ref:
required: true
type: string
deployment_ref:
required: true
type: string
secrets:
ELEMENT_BOT_TOKEN:
required: true
NETLIFY_AUTH_TOKEN:
required: true
NETLIFY_SITE_ID:
required: true
jobs:
deploy:
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request'
runs-on: ubuntu-latest
permissions:
deployments: write
@@ -22,24 +36,17 @@ jobs:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: Netlify
ref: ${{ github.event.workflow_run.head_sha }}
ref: ${{ inputs.deployment_ref }}
desc: |
Do you trust the author of this PR? Maybe this build will steal your keys or give you malware.
Exercise caution. Use test accounts.
- id: prdetails
uses: matrix-org/pr-details-action@v1.3
with:
owner: ${{ github.event.workflow_run.head_repository.owner.login }}
branch: ${{ github.event.workflow_run.head_branch }}
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
- name: 📥 Download artifact
uses: dawidd6/action-download-artifact@v3
uses: actions/download-artifact@v4
with:
run_id: ${{ github.event.workflow_run.id }}
name: build
github-token: ${{ secrets.ELEMENT_BOT_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
name: build-output
path: webapp
- name: Add redirects file
@@ -47,18 +54,15 @@ jobs:
run: curl -s https://raw.githubusercontent.com/element-hq/element-call/main/config/netlify_redirects > webapp/_redirects
- name: Add config file
run: curl -s "https://raw.githubusercontent.com/${{ github.event.workflow_run.head_repository.full_name }}/${{ github.event.workflow_run.head_branch }}/config/element_io_preview.json" > webapp/config.json
run: curl -s "https://raw.githubusercontent.com/${{ inputs.pr_head_full_name }}/${{ inputs.pr_head_ref }}/config/element_io_preview.json" > webapp/config.json
- name: ☁️ Deploy to Netlify
id: netlify
uses: nwtgck/actions-netlify@v2.1
uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: webapp
deploy-message: "Deploy from GitHub Actions"
# These don't work because we're in workflow_run
enable-pull-request-comment: false
enable-commit-comment: false
alias: pr${{ steps.prdetails.outputs.pr_id }}
alias: pr${{ inputs.pr_number }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

48
.github/workflows/pr-deploy.yaml vendored Normal file
View File

@@ -0,0 +1,48 @@
name: PR Preview Deployments
on:
workflow_run:
workflows: ["Build"]
types:
- completed
jobs:
prdetails:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' }}
runs-on: ubuntu-latest
outputs:
pr_number: ${{ steps.prdetails.outputs.pr_id }}
pr_data_json: ${{ steps.prdetails.outputs.data }}
steps:
- id: prdetails
uses: matrix-org/pr-details-action@v1.3
continue-on-error: true
with:
owner: ${{ github.event.workflow_run.head_repository.owner.login }}
branch: ${{ github.event.workflow_run.head_branch }}
netlify:
needs: prdetails
permissions:
deployments: write
uses: ./.github/workflows/netlify.yaml
with:
pr_number: ${{ needs.prdetails.outputs.pr_number }}
pr_head_full_name: ${{ github.event.workflow_run.head_repository.full_name }}
pr_head_ref: ${{ needs.prdetails.outputs.pr_data_json && fromJSON(needs.prdetails.outputs.pr_data_json).head.ref }}
deployment_ref: ${{ needs.prdetails.outputs.pr_data_json && fromJSON(needs.prdetails.outputs.pr_data_json).head.sha || github.ref || github.head_ref }}
secrets:
ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
docker:
if: ${{ needs.prdetails.outputs.pr_data_json && contains(fromJSON(needs.prdetails.outputs.pr_data_json).labels.*.name, 'docker build') }}
needs: prdetails
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker.yaml
with:
docker_tags: |
type=sha,format=short,event=branch
type=raw,value=pr_${{ needs.prdetails.outputs.pr_number }}

View File

@@ -3,17 +3,34 @@ name: Build & publish images to the package registry for tags
on:
release:
types: [published]
push:
workflow_run:
workflows: ["Build"]
branches: [livekit]
types:
- completed
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
name: Build & publish
build_element_call:
if: ${{ github.event_name == 'release' }}
uses: ./.github/workflows/element-call.yaml
with:
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
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
@@ -21,64 +38,33 @@ jobs:
- name: Get current time
id: current-time
run: echo "unix_time=$(date +'%s')" >> $GITHUB_OUTPUT
- name: Check it out
uses: actions/checkout@v4
- name: Log in to container registry
uses: docker/login-action@5139682d94efc37792e6b54386b5b470a68a4737
- name: 📥 Download artifact
uses: actions/download-artifact@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Yarn cache
uses: actions/setup-node@v4
with:
cache: "yarn"
- name: Install dependencies
run: "yarn install"
- name: Build
run: "yarn run build"
env:
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
VITE_APP_VERSION: ${{ github.event.release.tag_name || github.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id || github.run_id }}
name: build-output
path: dist
- 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
- name: Upload
uses: actions/upload-artifact@ef09cdac3e2d3e60d8ccadda691f4f1cec5035cb
uses: actions/upload-artifact@b06cde36fc32a3ee94080e87258567f73f921537
env:
GITHUB_TOKEN: ${{ github.token }}
with:
path: "./element-call-*.tar.gz"
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@232fc64e3a4e54539e087c5976439ea54be0959d
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
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_${{steps.current-time.outputs.unix_time}},enable={{is_default_branch}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c
- name: Build and push Docker image
uses: docker/build-push-action@b3eddbb94c4146a0988a620b01720afe50639271
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
publish_docker:
needs: publish_tarball
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker.yaml
with:
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}}

View File

@@ -38,7 +38,7 @@ jobs:
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6.0.0
uses: peter-evans/create-pull-request@v6.0.3
with:
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
branch: actions/localazy-download

View File

@@ -3,6 +3,8 @@ on:
push:
branches:
- livekit
paths-ignore:
- ".github/**"
jobs:
upload:

View File

@@ -22,5 +22,3 @@ turn:
external_tls: true
keys:
devkey: secret
signal_relay:
enabled: true

30
config/httpd.conf Normal file
View File

@@ -0,0 +1,30 @@
<VirtualHost *:8080>
ServerName localhost
DocumentRoot "/app"
<Location "/">
# disable cache entriely by default (apart from Etag which is accurate enough)
Header add Cache-Control "private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"
CacheDisable on
ExpiresActive off
# also turn off last-modified since they are just the timestamps of the file in the docker image
# and may or may not bear any resemblance to when the resource changed
Header add Last-Modified ""
DirectoryIndex index.html
</Location>
# assets can be cached because they have hashed filenames
<Location "/assets">
ExpiresActive on
ExpiresDefault "access plus 1 week"
Header add Cache-Control "public, no-transform"
</Location>
<Location "/apple-app-site-association">
ForceType application/json
</Location>
</VirtualHost>

View File

@@ -19,15 +19,15 @@
},
"dependencies": {
"@juggle/resize-observer": "^3.3.1",
"@livekit/components-core": "^0.9.0",
"@livekit/components-core": "^0.10.0",
"@livekit/components-react": "^2.0.0",
"@matrix-org/olm": "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.14.tgz",
"@opentelemetry/api": "^1.4.0",
"@opentelemetry/context-zone": "^1.9.1",
"@opentelemetry/exporter-jaeger": "^1.9.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.48.0",
"@opentelemetry/instrumentation-document-load": "^0.35.0",
"@opentelemetry/instrumentation-user-interaction": "^0.35.0",
"@opentelemetry/instrumentation-document-load": "^0.36.0",
"@opentelemetry/instrumentation-user-interaction": "^0.36.0",
"@opentelemetry/sdk-trace-web": "^1.9.1",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-slider": "^1.1.2",
@@ -62,7 +62,7 @@
"i18next-http-backend": "^2.0.0",
"livekit-client": "^2.0.2",
"lodash": "^4.17.21",
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#8123e9a3f1142a7619758c0a238172b007e3a06a",
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#d55c6a36df539f6adacc335efe5b9be27c9cee4a",
"matrix-widget-api": "^1.3.1",
"normalize.css": "^8.0.1",
"pako": "^2.0.4",

View File

@@ -13,7 +13,8 @@
</script>
</head>
<body class="cpd-theme-dark">
<!-- The default class is: .no-theme {display: none}. It will be overwritten once the app is loaded. -->
<body class="no-theme">
<div id="root"></div>
</body>
</html>

View File

@@ -31,8 +31,6 @@
"username": "Потребителско име",
"video": "Видео"
},
"exit_fullscreen_button_label": "Излез от цял екран",
"fullscreen_button_label": "Цял екран",
"join_existing_call_modal": {
"join_button": "Да, присъедини се",
"text": "Този разговор вече съществува, искате ли да се присъедините?",
@@ -42,7 +40,6 @@
"lobby": {
"join_button": "Влез в разговора"
},
"local_volume_label": "Локална сила на звука",
"logging_in": "Влизане…",
"login_auth_links": "<0>Създайте акаунт</0> или <2>Влезте като гост</2>",
"login_title": "Влез",

View File

@@ -29,10 +29,8 @@
"settings": "Nastavení",
"username": "Uživatelské jméno"
},
"exit_fullscreen_button_label": "Ukončit režim celé obrazovky",
"full_screen_view_description": "<0>Odeslání ladících záznamů nám pomůže diagnostikovat problém.</0>",
"full_screen_view_h1": "<0>Oops, něco se pokazilo.</0>",
"fullscreen_button_label": "Zvětšit na celou obrazovku",
"header_label": "Domov Element Call",
"join_existing_call_modal": {
"join_button": "Ano, připojit se",
@@ -43,7 +41,6 @@
"lobby": {
"join_button": "Připojit se k hovoru"
},
"local_volume_label": "Lokální hlasitost",
"logging_in": "Přihlašování se…",
"login_auth_links": "<0>Vytvořit účet</0> Or <2>Jako host</2>",
"login_title": "Přihlášení",

View File

@@ -56,10 +56,8 @@
"video": "Video"
},
"disconnected_banner": "Die Verbindung zum Server wurde getrennt.",
"exit_fullscreen_button_label": "Vollbildmodus verlassen",
"full_screen_view_description": "<0>Übermittelte Problemberichte helfen uns, Fehler zu beheben.</0>",
"full_screen_view_h1": "<0>Hoppla, etwas ist schiefgelaufen.</0>",
"fullscreen_button_label": "Vollbild",
"group_call_loader_failed_heading": "Anruf nicht gefunden",
"group_call_loader_failed_text": "Anrufe sind nun Ende-zu-Ende-verschlüsselt und müssen auf der Startseite erstellt werden. Damit stellen wir sicher, dass alle denselben Schlüssel verwenden.",
"hangup_button_label": "Anruf beenden",
@@ -80,7 +78,6 @@
"join_button": "Anruf beitreten",
"leave_button": "Zurück zu kürzlichen Anrufen"
},
"local_volume_label": "Lokale Lautstärke",
"log_in": "Anmelden",
"logging_in": "Anmelden …",
"login_auth_links": "<0>Konto erstellen</0> Oder <2>Als Gast betreten</2>",
@@ -141,7 +138,6 @@
"unmute_microphone_button_label": "Mikrofon aktivieren",
"version": "Version: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} präsentiert",
"sfu_participant_local": "Du"
},
"waiting_for_participants": "Warte auf weitere Teilnehmer …"

View File

@@ -37,10 +37,8 @@
"username": "Όνομα χρήστη",
"video": "Βίντεο"
},
"exit_fullscreen_button_label": "Έξοδος από πλήρη οθόνη",
"full_screen_view_description": "<0>Η υποβολή αρχείων καταγραφής σφαλμάτων θα μας βοηθήσει να εντοπίσουμε το πρόβλημα.</0>",
"full_screen_view_h1": "<0>Ωχ, κάτι πήγε στραβά.</0>",
"fullscreen_button_label": "Πλήρη οθόνη",
"header_label": "Element Κεντρική Οθόνη Κλήσεων",
"join_existing_call_modal": {
"join_button": "Ναι, συμμετοχή στην κλήση",
@@ -50,7 +48,6 @@
"lobby": {
"join_button": "Συμμετοχή στην κλήση"
},
"local_volume_label": "Τοπική ένταση",
"logging_in": "Σύνδεση…",
"login_auth_links": "<0>Δημιουργήστε λογαριασμό</0> Ή <2>Συμμετέχετε ως επισκέπτης</2>",
"login_title": "Σύνδεση",
@@ -94,8 +91,5 @@
"unauthenticated_view_body": "Δεν έχετε εγγραφεί ακόμα; <2>Δημιουργήστε λογαριασμό</2>",
"unauthenticated_view_login_button": "Συνδεθείτε στον λογαριασμό σας",
"version": "Έκδοση: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} παρουσιάζει"
},
"waiting_for_participants": "Αναμονή για άλλους συμμετέχοντες…"
}

View File

@@ -34,10 +34,8 @@
"settings": "Ajustes",
"username": "Nombre de usuario"
},
"exit_fullscreen_button_label": "Salir de pantalla completa",
"full_screen_view_description": "<0>Subir los registros de depuración nos ayudará a encontrar el problema.</0>",
"full_screen_view_h1": "<0>Ups, algo ha salido mal.</0>",
"fullscreen_button_label": "Pantalla completa",
"header_label": "Inicio de Element Call",
"join_existing_call_modal": {
"join_button": "Si, unirse a la llamada",
@@ -48,7 +46,6 @@
"lobby": {
"join_button": "Unirse a la llamada"
},
"local_volume_label": "Volumen local",
"logging_in": "Iniciando sesión…",
"login_auth_links": "<0>Crear una cuenta</0> o <2>Acceder como invitado</2>",
"login_title": "Iniciar sesión",
@@ -95,8 +92,5 @@
"unauthenticated_view_eula_caption": "Al hacer clic en \"Comenzar\", aceptas nuestro <2>Contrato de Licencia de Usuario Final (CLUF)</2>",
"unauthenticated_view_login_button": "Iniciar sesión en tu cuenta",
"version": "Versión: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} está presentando"
},
"waiting_for_participants": "Esperando a los otros participantes…"
}

View File

@@ -52,10 +52,8 @@
"username": "Kasutajanimi"
},
"disconnected_banner": "Võrguühendus serveriga on katkenud.",
"exit_fullscreen_button_label": "Välju täisekraanivaatest",
"full_screen_view_description": "<0>Kui saadad meile vealogid, siis on lihtsam vea põhjust otsida.</0>",
"full_screen_view_h1": "<0>Ohoo, midagi on nüüd katki.</0>",
"fullscreen_button_label": "Täisekraan",
"group_call_loader_failed_heading": "Kõnet ei leidu",
"group_call_loader_failed_text": "Kõned on nüüd läbivalt krüptitud ning need pead looma kodulehelt. Sellega tagad, et kõik kasutavad samu krüptovõtmeid.",
"hangup_button_label": "Lõpeta kõne",
@@ -75,7 +73,6 @@
"join_button": "Kõnega liitumine",
"leave_button": "Tagasi hiljutiste kõnede juurde"
},
"local_volume_label": "Kohalik helitugevus",
"logging_in": "Sisselogimine …",
"login_auth_links": "<0>Loo konto</0> Või <2>Sisene külalisena</2>",
"login_title": "Sisselogimine",
@@ -133,7 +130,6 @@
"unmute_microphone_button_label": "Lülita mikrofon sisse",
"version": "Versioon: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} on esitlemas",
"sfu_participant_local": "Sina"
},
"waiting_for_participants": "Ootame teiste osalejate lisandumist…"

View File

@@ -32,8 +32,6 @@
"username": "نام کاربری",
"video": "ویدیو"
},
"exit_fullscreen_button_label": "خروج از حالت تمام صفحه",
"fullscreen_button_label": "تمام صحفه",
"header_label": "خانهٔ تماس المنت",
"join_existing_call_modal": {
"join_button": "بله، به تماس بپیوندید",
@@ -44,7 +42,6 @@
"lobby": {
"join_button": "پیوستن به تماس"
},
"local_volume_label": "حجم داخلی",
"logging_in": "ورود…",
"login_auth_links": "<0>ساخت حساب کاربری</0> Or <2>دسترسی به عنوان میهمان</2>",
"login_title": "ورود",

View File

@@ -50,10 +50,8 @@
"video": "Vidéo"
},
"disconnected_banner": "La connexion avec le serveur a été perdue.",
"exit_fullscreen_button_label": "Quitter le plein écran",
"full_screen_view_description": "<0>Soumettre les journaux de débogage nous aidera à déterminer le problème.</0>",
"full_screen_view_h1": "<0>Oups, quelque chose sest mal passé.</0>",
"fullscreen_button_label": "Plein écran",
"group_call_loader_failed_heading": "Appel non trouvé",
"group_call_loader_failed_text": "Les appels sont maintenant chiffrés de bout-en-bout et doivent être créés depuis la page daccueil. Cela permet dêtre sûr que tout le monde utilise la même clé de chiffrement.",
"hangup_button_label": "Terminer lappel",
@@ -73,7 +71,6 @@
"join_button": "Rejoindre lappel",
"leave_button": "Revenir à lhistorique des appels"
},
"local_volume_label": "Volume local",
"logging_in": "Connexion…",
"login_auth_links": "<0>Créer un compte</0> Or <2>Accès invité</2>",
"login_title": "Connexion",
@@ -131,7 +128,6 @@
"unmute_microphone_button_label": "Allumer le microphone",
"version": "Version : {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} est à lécran",
"sfu_participant_local": "Vous"
},
"waiting_for_participants": "En attente dautres participants…"

View File

@@ -50,10 +50,8 @@
"username": "Nama pengguna"
},
"disconnected_banner": "Koneksi ke server telah hilang.",
"exit_fullscreen_button_label": "Keluar dari layar penuh",
"full_screen_view_description": "<0>Mengirim catatan pengawakutuan akan membantu kami melacak masalahnya.</0>",
"full_screen_view_h1": "<0>Aduh, ada yang salah.</0>",
"fullscreen_button_label": "Layar penuh",
"group_call_loader_failed_heading": "Panggilan tidak ditemukan",
"group_call_loader_failed_text": "Panggilan sekarang terenkripsi secara ujung ke ujung dan harus dibuat dari laman beranda. Ini memastikan bahwa semuanya menggunakan kunci enkripsi yang sama.",
"hangup_button_label": "Akhiri panggilan",
@@ -74,7 +72,6 @@
"join_button": "Bergabung ke panggilan",
"leave_button": "Kembali ke terkini"
},
"local_volume_label": "Volume lokal",
"logging_in": "Memasuki…",
"login_auth_links": "<0>Buat akun</0> Atau <2>Akses sebagai tamu</2>",
"login_title": "Masuk",
@@ -132,7 +129,6 @@
"unmute_microphone_button_label": "Nyalakan mikrofon",
"version": "Versi: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} sedang menampilkan",
"sfu_participant_local": "Anda"
},
"waiting_for_participants": "Menunggu peserta lain…"

View File

@@ -48,10 +48,8 @@
"username": "Nome utente"
},
"disconnected_banner": "La connessione al server è stata persa.",
"exit_fullscreen_button_label": "Esci da schermo intero",
"full_screen_view_description": "<0>L'invio di registri di debug ci aiuterà ad individuare il problema.</0>",
"full_screen_view_h1": "<0>Ops, qualcosa è andato storto.</0>",
"fullscreen_button_label": "Schermo intero",
"group_call_loader_failed_heading": "Chiamata non trovata",
"group_call_loader_failed_text": "Le chiamate ora sono cifrate end-to-end e devono essere create dalla pagina principale. Ciò assicura che chiunque usi la stessa chiave di crittografia.",
"hangup_button_label": "Termina chiamata",
@@ -72,7 +70,6 @@
"join_button": "Entra in chiamata",
"leave_button": "Torna ai recenti"
},
"local_volume_label": "Volume locale",
"logging_in": "Accesso…",
"login_auth_links": "<0>Crea un profilo</0> o <2>Accedi come ospite</2>",
"login_title": "Accedi",
@@ -129,7 +126,6 @@
"unmute_microphone_button_label": "Riaccendi il microfono",
"version": "Versione: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} sta presentando",
"sfu_participant_local": "Tu"
},
"waiting_for_participants": "In attesa di altri partecipanti…"

View File

@@ -30,9 +30,7 @@
"username": "ユーザー名",
"video": "ビデオ"
},
"exit_fullscreen_button_label": "全画面表示を終了",
"full_screen_view_h1": "<0>何かがうまく行きませんでした。</0>",
"fullscreen_button_label": "全画面表示",
"header_label": "Element Call ホーム",
"join_existing_call_modal": {
"join_button": "はい、通話に参加",

View File

@@ -40,10 +40,8 @@
"username": "Lietotājvārds"
},
"disconnected_banner": "Ir zaudēts savienojums ar serveri.",
"exit_fullscreen_button_label": "Iziet no pilnekrāna",
"full_screen_view_description": "<0>Atkļūdošanas žurnāla ierakstu iesūtīšana palīdzēs mums atklāt nepilnību.</0>",
"full_screen_view_h1": "<0>Ak vai, kaut kas nogāja greizi!</0>",
"fullscreen_button_label": "Pilnekrāns",
"header_label": "Element Call sākums",
"join_existing_call_modal": {
"join_button": "Jā, pievienoties zvanam",
@@ -54,7 +52,6 @@
"lobby": {
"join_button": "Pievienoties zvanam"
},
"local_volume_label": "Vietējais skaļums",
"logging_in": "Piesakās…",
"login_auth_links": "<0>Izveidot kontu</0> vai <2>Piekļūt kā viesim</2>",
"login_title": "Pieteikties",
@@ -103,8 +100,5 @@
"unauthenticated_view_eula_caption": "Klikšķināšana uz \"Aiziet\" apliecina piekrišanu mūsu <2>galalietotāja licencēšanas nolīgumam (GLLN)</2>",
"unauthenticated_view_login_button": "Pieteikties kontā",
"version": "Versija: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} uzstājas"
},
"waiting_for_participants": "Gaida citus dalībniekus…"
}

View File

@@ -53,10 +53,8 @@
"video": "Wideo"
},
"disconnected_banner": "Utracono połączenie z serwerem.",
"exit_fullscreen_button_label": "Opuść pełny ekran",
"full_screen_view_description": "<0>Wysłanie dzienników debuggowania pomoże nam ustalić przyczynę problemu.</0>",
"full_screen_view_h1": "<0>Ojej, coś poszło nie tak.</0>",
"fullscreen_button_label": "Pełny ekran",
"group_call_loader_failed_heading": "Nie znaleziono połączenia",
"group_call_loader_failed_text": "Połączenia są teraz szyfrowane end-to-end i muszą zostać utworzone ze strony głównej. Pomaga to upewnić się, że każdy korzysta z tego samego klucza szyfrującego.",
"hangup_button_label": "Zakończ połączenie",
@@ -77,7 +75,6 @@
"join_button": "Dołącz do połączenia",
"leave_button": "Wróć do ostatnie"
},
"local_volume_label": "Głośność lokalna",
"logging_in": "Logowanie…",
"login_auth_links": "<0>Utwórz konto</0> lub <2>Dołącz jako gość</2>",
"login_title": "Zaloguj się",
@@ -135,7 +132,6 @@
"unmute_microphone_button_label": "Odcisz mikrofon",
"version": "Wersja: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} prezentuje",
"sfu_participant_local": "Ty"
},
"waiting_for_participants": "Oczekiwanie na pozostałych uczestników…"

View File

@@ -38,10 +38,8 @@
"username": "Имя пользователя",
"video": "Видео"
},
"exit_fullscreen_button_label": "Выйти из полноэкранного режима",
"full_screen_view_description": "<0>Отправка журналов поможет нам найти и устранить проблему.</0>",
"full_screen_view_h1": "<0>Упс, что-то пошло не так.</0>",
"fullscreen_button_label": "Полноэкранный режим",
"header_label": "Главная Element Call",
"join_existing_call_modal": {
"join_button": "Да, присоединиться",
@@ -52,7 +50,6 @@
"lobby": {
"join_button": "Присоединиться"
},
"local_volume_label": "Местная громкость",
"logging_in": "Вход…",
"login_auth_links": "<0>Создать аккаунт</0> или <2>Зайти как гость</2>",
"login_title": "Вход",
@@ -96,8 +93,5 @@
"unauthenticated_view_body": "Ещё не зарегистрированы? <2>Создайте аккаунт</2>",
"unauthenticated_view_login_button": "Войдите в свой аккаунт",
"version": "Версия: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} представляет"
},
"waiting_for_participants": "Ожидание других участников…"
}

View File

@@ -51,10 +51,8 @@
"username": "Meno používateľa"
},
"disconnected_banner": "Spojenie so serverom sa stratilo.",
"exit_fullscreen_button_label": "Ukončiť zobrazenie na celú obrazovku",
"full_screen_view_description": "<0>Odoslanie záznamov ladenia nám pomôže nájsť problém.</0>",
"full_screen_view_h1": "<0>Hups, niečo sa pokazilo.</0>",
"fullscreen_button_label": "Zobrazenie na celú obrazovku",
"group_call_loader_failed_heading": "Hovor nebol nájdený",
"group_call_loader_failed_text": "Hovory sú teraz end-to-end šifrované a je potrebné ich vytvoriť z domovskej stránky. To pomáha zabezpečiť, aby všetci používali rovnaký šifrovací kľúč.",
"hangup_button_label": "Ukončiť hovor",
@@ -75,7 +73,6 @@
"join_button": "Pripojiť sa k hovoru",
"leave_button": "Späť k nedávnym"
},
"local_volume_label": "Lokálna hlasitosť",
"logging_in": "Prihlasovanie…",
"login_auth_links": "<0>Vytvoriť konto</0> Alebo <2>Prihlásiť sa ako hosť</2>",
"login_title": "Prihlásiť sa",
@@ -133,7 +130,6 @@
"unmute_microphone_button_label": "Zrušiť stlmenie mikrofónu",
"version": "Verzia: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} prezentuje",
"sfu_participant_local": "Vy"
},
"waiting_for_participants": "Čaká sa na ďalších účastníkov…"

View File

@@ -3,8 +3,5 @@
"headline": "{{displayName}}, ditt samtal har avslutats."
},
"star_rating_input_label_one": "{{count}} stjärna",
"star_rating_input_label_other": "{{count}} stjärnor",
"video_tile": {
"presenter_label": "{{displayName}} presenterar"
}
"star_rating_input_label_other": "{{count}} stjärnor"
}

View File

@@ -24,8 +24,6 @@
"password": "Parola",
"settings": "Ayarlar"
},
"exit_fullscreen_button_label": "Tam ekranı terk et",
"fullscreen_button_label": "Tam ekran",
"join_existing_call_modal": {
"text": "Bu arama zaten var, katılmak ister misiniz?",
"title": "Mevcut aramaya katıl?"
@@ -33,7 +31,6 @@
"lobby": {
"join_button": "Aramaya katıl"
},
"local_volume_label": "Yerel ses seviyesi",
"logging_in": "Giriliyor…",
"login_auth_links": "<0>Hesap oluştur</0> yahut <2>Konuk olarak gir</2>",
"login_title": "Gir",

View File

@@ -53,10 +53,8 @@
"video": "Відео"
},
"disconnected_banner": "Втрачено зв'язок з сервером.",
"exit_fullscreen_button_label": "Вийти з повноекранного режиму",
"full_screen_view_description": "<0>Надсилання журналів налагодження допоможе нам виявити проблему.</0>",
"full_screen_view_h1": "<0>Йой, щось пішло не за планом.</0>",
"fullscreen_button_label": "Повноекранний режим",
"group_call_loader_failed_heading": "Виклик не знайдено",
"group_call_loader_failed_text": "Відтепер виклики захищено наскрізним шифруванням, і їх потрібно створювати з домашньої сторінки. Це допомагає переконатися, що всі користувачі використовують один і той самий ключ шифрування.",
"hangup_button_label": "Завершити виклик",
@@ -77,7 +75,6 @@
"join_button": "Приєднатися до виклику",
"leave_button": "Повернутися до недавніх"
},
"local_volume_label": "Локальна гучність",
"logging_in": "Вхід…",
"login_auth_links": "<0>Створити обліковий запис</0> або <2>Отримати доступ як гість</2>",
"login_title": "Увійти",
@@ -135,7 +132,6 @@
"unmute_microphone_button_label": "Увімкнути мікрофон",
"version": "Версія: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} представляє",
"sfu_participant_local": "Ви"
},
"waiting_for_participants": "Очікування на інших учасників…"

View File

@@ -29,10 +29,8 @@
"username": "Tên người dùng",
"video": "Truyền hình"
},
"exit_fullscreen_button_label": "Rời chế độ toàn mà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 đề.</0>",
"full_screen_view_h1": "<0>Ối, có cái gì đó sai.</0>",
"fullscreen_button_label": "Toàn màn hình",
"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?",
@@ -73,8 +71,5 @@
"unauthenticated_view_body": "Chưa đăng ký? <2>Tạo tài khoản</2>",
"unauthenticated_view_login_button": "Đăng nhập vào tài khoản của bạn",
"version": "Phiên bản: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} đang trình bày"
},
"waiting_for_participants": "Đang đợi những người khác…"
}

View File

@@ -51,10 +51,8 @@
"video": "视频"
},
"disconnected_banner": "与服务器的连接中断。",
"exit_fullscreen_button_label": "退出全屏",
"full_screen_view_description": "<0>提交日志以帮助我们修复问题。</0>",
"full_screen_view_h1": "<0>哎哟,出问题了。</0>",
"fullscreen_button_label": "全屏",
"group_call_loader_failed_heading": "未找到通话",
"group_call_loader_failed_text": "现在,通话是端对端加密的,需要从主页创建。这有助于确保每个人都使用相同的加密密钥。",
"hangup_button_label": "通话结束",
@@ -70,7 +68,6 @@
"join_button": "加入通话",
"leave_button": "返回最近通话"
},
"local_volume_label": "本地音量",
"logging_in": "登录中……",
"login_auth_links": "<0>创建账户</0> Or <2>以访客身份继续</2>",
"login_title": "登录",
@@ -128,7 +125,6 @@
"unmute_microphone_button_label": "取消麦克风静音",
"version": "版本:{{version}}",
"video_tile": {
"presenter_label": "{{displayName}}正在展示",
"sfu_participant_local": "你"
},
"waiting_for_participants": "等待其他参与者……"

View File

@@ -53,10 +53,8 @@
"video": "視訊"
},
"disconnected_banner": "到伺服器的連線已遺失。",
"exit_fullscreen_button_label": "退出全螢幕",
"full_screen_view_description": "<0>送出除錯紀錄,可幫助我們修正問題。</0>",
"full_screen_view_h1": "<0>喔喔,有些地方怪怪的。</0>",
"fullscreen_button_label": "全螢幕",
"group_call_loader_failed_heading": "找不到通話",
"group_call_loader_failed_text": "通話現在是端對端加密的,必須從首頁建立。這有助於確保每個人都使用相同的加密金鑰。",
"hangup_button_label": "結束通話",
@@ -77,7 +75,6 @@
"join_button": "加入通話",
"leave_button": "回到最近的通話"
},
"local_volume_label": "您的音量",
"logging_in": "登入中…",
"login_auth_links": "<0>建立帳號</0> 或<2>以訪客身份登入</2>",
"login_title": "登入",
@@ -135,7 +132,6 @@
"unmute_microphone_button_label": "將麥克風取消靜音",
"version": "版本: {{version}}",
"video_tile": {
"presenter_label": "{{displayName}} 正在展示",
"sfu_participant_local": "您"
},
"waiting_for_participants": "等待其他參加者…"

View File

@@ -72,7 +72,9 @@ export const App: FC<AppProps> = ({ history }) => {
const [loaded, setLoaded] = useState(false);
useEffect(() => {
Initializer.init()?.then(() => {
if (loaded) return;
setLoaded(true);
widget?.api.sendContentLoaded();
});
});

View File

@@ -27,6 +27,7 @@ import styles from "./FullScreenView.module.css";
import { TranslatedError } from "./TranslatedError";
import { Config } from "./config/Config";
import { RageshakeButton } from "./settings/RageshakeButton";
import { useUrlParams } from "./UrlParams";
interface FullScreenViewProps {
className?: string;
@@ -37,12 +38,11 @@ export const FullScreenView: FC<FullScreenViewProps> = ({
className,
children,
}) => {
const { hideHeader } = useUrlParams();
return (
<div className={classNames(styles.page, className)}>
<Header>
<LeftNav>
<HeaderLogo />
</LeftNav>
<LeftNav>{!hideHeader && <HeaderLogo />}</LeftNav>
<RightNav />
</Header>
<div className={styles.container}>

View File

@@ -31,6 +31,7 @@ import {
UndecryptableToDeviceEventTracker,
QualitySurveyEventTracker,
CallDisconnectedEventTracker,
CallConnectDurationTracker,
} from "./PosthogEvents";
import { Config } from "../config/Config";
import { getUrlParams } from "../UrlParams";
@@ -444,4 +445,5 @@ export class PosthogAnalytics {
public eventUndecryptableToDevice = new UndecryptableToDeviceEventTracker();
public eventQualitySurvey = new QualitySurveyEventTracker();
public eventCallDisconnected = new CallDisconnectedEventTracker();
public eventCallConnectDuration = new CallConnectDurationTracker();
}

View File

@@ -15,6 +15,7 @@ limitations under the License.
*/
import { DisconnectReason } from "livekit-client";
import { logger } from "matrix-js-sdk/src/logger";
import {
IPosthogEvent,
@@ -201,3 +202,38 @@ export class CallDisconnectedEventTracker {
});
}
}
interface CallConnectDuration extends IPosthogEvent {
eventName: "CallConnectDuration";
totalDuration: number;
websocketDuration: number;
peerConnectionDuration: number;
}
export class CallConnectDurationTracker {
private connectStart = 0;
private websocketConnected = 0;
public cacheConnectStart(): void {
this.connectStart = Date.now();
}
public cacheWsConnect(): void {
this.websocketConnected = Date.now();
}
public track(options = { log: false }): void {
const now = Date.now();
const totalDuration = now - this.connectStart;
const websocketDuration = this.websocketConnected - this.connectStart;
const peerConnectionDuration = now - this.websocketConnected;
PosthogAnalytics.instance.trackEvent<CallConnectDuration>({
eventName: "CallConnectDuration",
totalDuration,
websocketDuration,
peerConnectionDuration,
});
if (options.log)
logger.log(
`Time to connect:\ntotal: ${totalDuration}ms\npeerConnection: ${websocketDuration}ms\nwebsocket: ${peerConnectionDuration}ms`,
);
}
}

View File

@@ -82,7 +82,12 @@ export const LoginPage: FC = () => {
},
[login, location, history, homeserver, setClient],
);
// we need to limit the length of the homserver name to not cover the whole loginview input with the string.
let shortendHomeserverName = Config.defaultServerName()?.slice(0, 25);
shortendHomeserverName =
shortendHomeserverName?.length !== Config.defaultServerName()?.length
? shortendHomeserverName + "..."
: shortendHomeserverName;
return (
<>
<div className={styles.container}>
@@ -102,7 +107,7 @@ export const LoginPage: FC = () => {
autoCorrect="off"
autoCapitalize="none"
prefix="@"
suffix={`:${Config.defaultServerName()}`}
suffix={`:${shortendHomeserverName}`}
data-testid="login_username"
/>
</FieldRow>

View File

@@ -21,6 +21,7 @@ import { createClient, MatrixClient } from "matrix-js-sdk/src/matrix";
import { initClient } from "../matrix-utils";
import { Session } from "../ClientContext";
import { Config } from "../config/Config";
import { widget } from "../widget";
export const useInteractiveRegistration = (): {
privacyPolicyUrl?: string;
@@ -48,6 +49,8 @@ export const useInteractiveRegistration = (): {
}
useEffect(() => {
if (widget) return;
// An empty registerRequest is used to get the privacy policy and recaptcha key.
authClient.current!.registerRequest({}).catch((error) => {
setPrivacyPolicyUrl(
error.data?.params["m.login.terms"]?.policies?.privacy_policy?.en?.url,

View File

@@ -156,6 +156,12 @@ body {
margin: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: transparent;
}
/* We use this to not render the page at all until we know the theme.*/
.no-theme {
opacity: 0;
}
html,

View File

@@ -59,4 +59,5 @@ export const defaultLiveKitOptions: RoomOptions = {
stopLocalTrackOnUnpublish: true,
reconnectPolicy: new DefaultReconnectPolicy(),
disconnectOnPageLeave: true,
webAudioMix: false,
};

View File

@@ -27,6 +27,14 @@ import { logger } from "matrix-js-sdk/src/logger";
import * as Sentry from "@sentry/react";
import { SFUConfig, sfuConfigEquals } from "./openIDSFU";
import { PosthogAnalytics } from "../analytics/PosthogAnalytics";
declare global {
interface Window {
peerConnectionTimeout?: number;
websocketTimeout?: number;
}
}
/*
* Additional values for states that a call can be in, beyond what livekit
@@ -124,7 +132,21 @@ async function connectAndPublish(
micTrack: LocalTrack | undefined,
screenshareTracks: MediaStreamTrack[],
): Promise<void> {
await livekitRoom!.connect(sfuConfig!.url, sfuConfig!.jwt);
const tracker = PosthogAnalytics.instance.eventCallConnectDuration;
// Track call connect duration
tracker.cacheConnectStart();
livekitRoom.once(RoomEvent.SignalConnected, tracker.cacheWsConnect);
await livekitRoom!.connect(sfuConfig!.url, sfuConfig!.jwt, {
// Due to stability issues on Firefox we are testing the effect of different
// timeouts, and allow these values to be set through the console
peerConnectionTimeout: window.peerConnectionTimeout ?? 45000,
websocketTimeout: window.websocketTimeout ?? 45000,
});
// remove listener in case the connect promise rejects before `SignalConnected` is emitted.
livekitRoom.off(RoomEvent.SignalConnected, tracker.cacheWsConnect);
tracker.track({ log: true });
if (micTrack) {
logger.info(`Publishing precreated mic track`);

View File

@@ -1,5 +1,5 @@
/*
Copyright 2023 New Vector Ltd
Copyright 2023-2024 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,18 +14,17 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { useEffect, useRef } from "react";
import { useRef } from "react";
import { BehaviorSubject, Observable } from "rxjs";
/**
* React hook that creates an Observable from a changing value. The Observable
* replays its current value upon subscription, emits whenever the value
* changes, and completes when the component is unmounted.
* replays its current value upon subscription and emits whenever the value
* changes.
*/
export function useObservable<T>(value: T): Observable<T> {
const subject = useRef<BehaviorSubject<T>>();
subject.current ??= new BehaviorSubject(value);
if (value !== subject.current.value) subject.current.next(value);
useEffect(() => subject.current!.complete(), []);
return subject.current;
}

View File

@@ -22,10 +22,9 @@ export const useTheme = (): void => {
const { theme: themeName } = useUrlParams();
const previousTheme = useRef<string | null>(document.body.classList.item(0));
useLayoutEffect(() => {
// Don't update the current theme if the url does not contain a theme prop.
if (!themeName) return;
const theme = themeName.includes("light") ? "light" : "dark";
const themeHighContrast = themeName.includes("high-contrast") ? "-hc" : "";
// If the url does not contain a theme props we default to "dark".
const theme = themeName?.includes("light") ? "light" : "dark";
const themeHighContrast = themeName?.includes("high-contrast") ? "-hc" : "";
const themeString = "cpd-theme-" + theme + themeHighContrast;
if (themeString !== previousTheme.current) {
document.body.classList.remove(
@@ -37,5 +36,6 @@ export const useTheme = (): void => {
document.body.classList.add(themeString);
previousTheme.current = themeString;
}
document.body.classList.remove("no-theme");
}, [previousTheme, themeName]);
};

View File

@@ -158,6 +158,8 @@ export const widget = ((): WidgetHelpers | null => {
useE2eForGroupCall: e2eEnabled,
fallbackICEServerAllowed: allowIceFallback,
},
// ContentLoaded event will be sent as soon as the theme is set (see useTheme.ts)
false,
);
const clientPromise = new Promise<MatrixClient>((resolve) => {

View File

@@ -26,7 +26,7 @@
"./node_modules/livekit-client/dist/src/room/participant/Participant.d.ts"
],
"livekit-client/dist/src/proto/livekit_models_pb": [
"./node_modules/livekit-client/dist/src/proto/livekit_models_pb.d.ts"
"./node_modules/@livekit/protocol/src/gen/livekit_models_pb.d.ts"
]
},

1061
yarn.lock

File diff suppressed because it is too large Load Diff