Compare commits
332 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b162e54d3f | ||
|
|
1c29b1343c | ||
|
|
d9e8adf59d | ||
|
|
dbb06bbe7d | ||
|
|
2613089c0d | ||
|
|
13e727da1f | ||
|
|
7f9c2908a1 | ||
|
|
8fed43ef1c | ||
|
|
92a271ede9 | ||
|
|
b765d40446 | ||
|
|
4fb1d24ea0 | ||
|
|
a3d39d901b | ||
|
|
df07d51d8b | ||
|
|
048669fa2c | ||
|
|
a571f235d9 | ||
|
|
8b20754424 | ||
|
|
a818184caa | ||
|
|
32abe00354 | ||
|
|
257fb377f8 | ||
|
|
e00a1f76b5 | ||
|
|
8819664ebb | ||
|
|
b4f53756cf | ||
|
|
d67d5d0229 | ||
|
|
428dbc9b76 | ||
|
|
98c12107d0 | ||
|
|
598555f81c | ||
|
|
d20e138c80 | ||
|
|
27d01a431f | ||
|
|
bce2eb54b5 | ||
|
|
1b5ea99bde | ||
|
|
d86e68af19 | ||
|
|
2c2d378f9e | ||
|
|
07f5829320 | ||
|
|
5433109318 | ||
|
|
ab9a3ac051 | ||
|
|
f328f6c882 | ||
|
|
8a720c2882 | ||
|
|
288b0af857 | ||
|
|
0b67787dd9 | ||
|
|
3486bcbf96 | ||
|
|
ea566f6926 | ||
|
|
3122d5522c | ||
|
|
c52f7063b5 | ||
|
|
c32b081abd | ||
|
|
ed28b815a8 | ||
|
|
c6d5e6abbe | ||
|
|
958289bcab | ||
|
|
6f3b4547f5 | ||
|
|
cff6bc14bd | ||
|
|
ff0d46ee4b | ||
|
|
479ad654fa | ||
|
|
a772670867 | ||
|
|
a4171db41b | ||
|
|
c5e85aff41 | ||
|
|
f524394443 | ||
|
|
b03fa43028 | ||
|
|
02c27e3230 | ||
|
|
a646b717a8 | ||
|
|
98c8dd38fc | ||
|
|
3ea7e30812 | ||
|
|
62360cca09 | ||
|
|
64c1afc544 | ||
|
|
b8917a4805 | ||
|
|
68d09734ca | ||
|
|
6cfdea8b6d | ||
|
|
25f398eda9 | ||
|
|
c6be4b9e11 | ||
|
|
f2efa0ace4 | ||
|
|
3efa89f92b | ||
|
|
fe51b493d4 | ||
|
|
85186e353f | ||
|
|
d294beaf99 | ||
|
|
40c4dfc7af | ||
|
|
2bc7648a68 | ||
|
|
1a2af0e566 | ||
|
|
62a12ea30b | ||
|
|
6bcba878fd | ||
|
|
231ee9b187 | ||
|
|
d9420c319d | ||
|
|
050f4d8a26 | ||
|
|
e6d1f16b1d | ||
|
|
3991b28ba5 | ||
|
|
467685dee3 | ||
|
|
5a60a8b057 | ||
|
|
c8ed7b7882 | ||
|
|
3b5069dd3e | ||
|
|
bb28b946d2 | ||
|
|
99117698a6 | ||
|
|
b279638c84 | ||
|
|
c9c9259808 | ||
|
|
91b6c529e3 | ||
|
|
d2bfffb179 | ||
|
|
4692c12d60 | ||
|
|
6bcfb0a0c6 | ||
|
|
f6997147c6 | ||
|
|
e4a405a5f1 | ||
|
|
e475e1ec34 | ||
|
|
5f17b33dbc | ||
|
|
0a64acf236 | ||
|
|
1b20ba1a1a | ||
|
|
16414ae13c | ||
|
|
55935f194f | ||
|
|
7cbe157dbd | ||
|
|
46f25d776d | ||
|
|
1e9400ab2e | ||
|
|
c8b81a87b3 | ||
|
|
337178cbe3 | ||
|
|
417ccb1b90 | ||
|
|
bd139e7e51 | ||
|
|
1fd50ed537 | ||
|
|
fbcbe82562 | ||
|
|
0796c63cfc | ||
|
|
57a7c5a874 | ||
|
|
564422747a | ||
|
|
540e8b955a | ||
|
|
d80249d454 | ||
|
|
144d1169ec | ||
|
|
f5ebcedfa3 | ||
|
|
647e78afd2 | ||
|
|
b255387cde | ||
|
|
7976cc122d | ||
|
|
a2709eebdb | ||
|
|
3018681164 | ||
|
|
800e8f667e | ||
|
|
1363bab648 | ||
|
|
6099885ae5 | ||
|
|
638ba056a0 | ||
|
|
d589b1320b | ||
|
|
9c254a6c62 | ||
|
|
82d1cc5b58 | ||
|
|
c3238ff948 | ||
|
|
b8e3320d41 | ||
|
|
e8a420f8e0 | ||
|
|
8857f033f5 | ||
|
|
15151c92e0 | ||
|
|
0ec5205865 | ||
|
|
5d93801795 | ||
|
|
f8682e43af | ||
|
|
290ecd7fb9 | ||
|
|
26aeb33d0e | ||
|
|
9f6a6ef771 | ||
|
|
8e72c77151 | ||
|
|
0931e8bfad | ||
|
|
8bfcb263ce | ||
|
|
94bd140d92 | ||
|
|
55fb3bde18 | ||
|
|
b8c2e4b286 | ||
|
|
422f2b5f35 | ||
|
|
25c9352df2 | ||
|
|
478f3580a6 | ||
|
|
58d82345cf | ||
|
|
49a2dbbea9 | ||
|
|
e5df109acc | ||
|
|
fd80c93278 | ||
|
|
8b56a68dd0 | ||
|
|
e99b0d9a5d | ||
|
|
9394b4a02e | ||
|
|
b93b5621a8 | ||
|
|
028c6645f6 | ||
|
|
29b721457f | ||
|
|
436ff4266d | ||
|
|
b60557ea14 | ||
|
|
cc40cbbfcb | ||
|
|
53a48ceeb4 | ||
|
|
de750591bb | ||
|
|
7f53673d66 | ||
|
|
a4e9b9a6d1 | ||
|
|
abafe0b579 | ||
|
|
b8a59ebb69 | ||
|
|
e41486e1b4 | ||
|
|
7fee626dbb | ||
|
|
de3ae78346 | ||
|
|
9cb28d29dc | ||
|
|
4fc1c3cef0 | ||
|
|
0d55a94c8d | ||
|
|
0868614791 | ||
|
|
8041a9fcef | ||
|
|
4ef20a8f08 | ||
|
|
d898f229c8 | ||
|
|
75efef6cbb | ||
|
|
3ca3794cc1 | ||
|
|
58fe826905 | ||
|
|
2d8b58a66b | ||
|
|
80ea999dcf | ||
|
|
d57e637ac7 | ||
|
|
4becdfaf1a | ||
|
|
2ed3fd8eb1 | ||
|
|
8a7e098f4f | ||
|
|
5a73f8790c | ||
|
|
1c8bd95bf8 | ||
|
|
da68486f69 | ||
|
|
e338d70303 | ||
|
|
0e793468aa | ||
|
|
1ed71044fd | ||
|
|
61f6bf7e11 | ||
|
|
08ce8185b7 | ||
|
|
7f405a1e6b | ||
|
|
630b30e9cd | ||
|
|
7ceec54658 | ||
|
|
9ff85f5103 | ||
|
|
3402ad2131 | ||
|
|
5410b2b017 | ||
|
|
c9814e25db | ||
|
|
89eb13fa70 | ||
|
|
e8316ee377 | ||
|
|
6603220ece | ||
|
|
9b790d39b7 | ||
|
|
6fbd0e437c | ||
|
|
f03c4e5243 | ||
|
|
3969cc4fe5 | ||
|
|
d4356d2e75 | ||
|
|
3f416461fb | ||
|
|
f951536f97 | ||
|
|
213dcc79bf | ||
|
|
43631d9042 | ||
|
|
7889bd5bba | ||
|
|
a29ec53ef8 | ||
|
|
ff7dc454d1 | ||
|
|
9e0b281b9f | ||
|
|
44dbaf4e5f | ||
|
|
d124978826 | ||
|
|
d2366dca87 | ||
|
|
18c22f35ea | ||
|
|
98c21db158 | ||
|
|
3649849e1c | ||
|
|
f450beb46f | ||
|
|
b4c4b76e52 | ||
|
|
8cb161e997 | ||
|
|
5fdccc8df9 | ||
|
|
9e387f7915 | ||
|
|
a3584e777e | ||
|
|
d1867c7ba6 | ||
|
|
4b6d902230 | ||
|
|
2774e37e72 | ||
|
|
f3f7bec506 | ||
|
|
9735318be9 | ||
|
|
b06afd8e63 | ||
|
|
6403278d37 | ||
|
|
3e2d60a34c | ||
|
|
b02f6409cb | ||
|
|
29e23bd85e | ||
|
|
eed12bfe0b | ||
|
|
1a30c1864d | ||
|
|
cf8933b222 | ||
|
|
9d1d46c30f | ||
|
|
8ca2a5c12a | ||
|
|
2ea3d1b3c8 | ||
|
|
4a48d7978b | ||
|
|
b636aff2ae | ||
|
|
2f4a5d9d5a | ||
|
|
fd18a30b94 | ||
|
|
0dd99f211c | ||
|
|
807c03724d | ||
|
|
90bed040d5 | ||
|
|
82bc13b9cc | ||
|
|
faa3e64bc9 | ||
|
|
898f2db57b | ||
|
|
03e34a374a | ||
|
|
cfbd1cd54e | ||
|
|
429625a920 | ||
|
|
e2a6fd55a2 | ||
|
|
23d4c1106a | ||
|
|
99612d5740 | ||
|
|
2f3b5edfbc | ||
|
|
35ee043100 | ||
|
|
ed9a5d5cd5 | ||
|
|
d9e1eca30e | ||
|
|
ea99f2f4a5 | ||
|
|
35c31e2512 | ||
|
|
370f256143 | ||
|
|
f5a5440cc8 | ||
|
|
e226002bf3 | ||
|
|
9c84c6424f | ||
|
|
97eebecf37 | ||
|
|
0c32ddde1f | ||
|
|
24680e18af | ||
|
|
97e11820b7 | ||
|
|
700d3b23cb | ||
|
|
2859cc73d0 | ||
|
|
aae5a5eecd | ||
|
|
9ed6f56792 | ||
|
|
404f794d10 | ||
|
|
8d5978a8e0 | ||
|
|
c380911b76 | ||
|
|
ac332c311a | ||
|
|
6f78e44bf2 | ||
|
|
2c407c2f3c | ||
|
|
1069750c78 | ||
|
|
99b08d6c0a | ||
|
|
b2e7800788 | ||
|
|
e915c9837c | ||
|
|
8b9c4141a2 | ||
|
|
760a37bdb2 | ||
|
|
d4f05c3748 | ||
|
|
401535ce2d | ||
|
|
fbf2ac8ef4 | ||
|
|
4d0bfd8bf1 | ||
|
|
0d8f2eab6f | ||
|
|
0bc489a337 | ||
|
|
ce0f8eb9be | ||
|
|
f47064f648 | ||
|
|
75d97f2bb3 | ||
|
|
43f64a052d | ||
|
|
27e6c5a442 | ||
|
|
8983e8fcee | ||
|
|
4ec76880a0 | ||
|
|
01ed3cc5ab | ||
|
|
6e4c16ba2e | ||
|
|
b2f3950795 | ||
|
|
2844b64621 | ||
|
|
20582a7fe6 | ||
|
|
de875e14f6 | ||
|
|
6ca10fe63d | ||
|
|
08e65a0769 | ||
|
|
bc031e515e | ||
|
|
ce74f2b418 | ||
|
|
292ffd482b | ||
|
|
8267b04c4f | ||
|
|
4ab831470b | ||
|
|
203fcc8baf | ||
|
|
dbb03144dd | ||
|
|
3e384b6ea4 | ||
|
|
2b70590b4f | ||
|
|
f32618bc44 | ||
|
|
63389b8969 | ||
|
|
2faf4a83c1 | ||
|
|
0de4fcd2c1 | ||
|
|
4501f517cd | ||
|
|
50b81437a3 | ||
|
|
cb2effd01e | ||
|
|
8a0741d6a2 | ||
|
|
8605a2801f |
551
CHANGELOG
551
CHANGELOG
@@ -1,551 +0,0 @@
|
|||||||
[0.1.0]
|
|
||||||
* Initial version
|
|
||||||
|
|
||||||
[0.1.1]
|
|
||||||
* Removed the Riot part of the installation due to security
|
|
||||||
* Changed from Sqlite to Postgres
|
|
||||||
* Added LDAP support
|
|
||||||
* Fixed upload limit in nginx_matrix.conf
|
|
||||||
* Added bogus index.html so cloudron recognizes the matrix server as online
|
|
||||||
* Added coturn as TURN server
|
|
||||||
|
|
||||||
[0.1.2]
|
|
||||||
* Updated logo (transparent)
|
|
||||||
* Enabled email settings
|
|
||||||
|
|
||||||
[0.1.3]
|
|
||||||
* Changed log location of nginx due to backup crashes
|
|
||||||
|
|
||||||
[0.1.4]
|
|
||||||
* Changed log location of synapse due to backup crashes
|
|
||||||
* Updated some configs
|
|
||||||
|
|
||||||
[0.1.5]
|
|
||||||
* Update to synapse v0.31.2
|
|
||||||
|
|
||||||
[0.1.6]
|
|
||||||
* Update to synapse v0.33.8
|
|
||||||
|
|
||||||
[0.1.7]
|
|
||||||
* Update to synapse v0.33.9
|
|
||||||
|
|
||||||
[0.1.8]
|
|
||||||
* Update to synapse v0.99.0
|
|
||||||
* Fixed missing LDAP stuff
|
|
||||||
|
|
||||||
[0.1.9]
|
|
||||||
* Update to synapse v0.99.3
|
|
||||||
|
|
||||||
[0.2.0]
|
|
||||||
* Update to synapse v0.99.4
|
|
||||||
|
|
||||||
[0.2.1]
|
|
||||||
* Update to synapse v0.99.5.1
|
|
||||||
|
|
||||||
[0.2.2]
|
|
||||||
* Update to synapse v0.99.5.2
|
|
||||||
|
|
||||||
[0.2.3]
|
|
||||||
* Update to synapse v1.0.0
|
|
||||||
* Fixed url preview
|
|
||||||
* Fixed voip
|
|
||||||
|
|
||||||
[0.2.4]
|
|
||||||
* Fixed federation
|
|
||||||
|
|
||||||
[0.2.5]
|
|
||||||
* Update to synapse v1.1.0
|
|
||||||
|
|
||||||
[0.2.6]
|
|
||||||
* Update to synapse v1.2.1
|
|
||||||
|
|
||||||
[0.2.7]
|
|
||||||
* Update to synapse v1.3.0
|
|
||||||
|
|
||||||
[0.2.8]
|
|
||||||
* Update to synapse v1.3.1
|
|
||||||
|
|
||||||
[0.2.9]
|
|
||||||
* Update to synapse v1.4.0 (lots of changes)
|
|
||||||
|
|
||||||
[0.3.0]
|
|
||||||
* Update to synapse v1.4.1
|
|
||||||
|
|
||||||
[0.3.1]
|
|
||||||
* Update to synapse v1.5.1
|
|
||||||
|
|
||||||
[0.3.3]
|
|
||||||
* Update to synapse v1.6.0
|
|
||||||
|
|
||||||
[0.3.4]
|
|
||||||
* Update to synapse v1.6.1
|
|
||||||
|
|
||||||
[0.3.5]
|
|
||||||
* Update to synapse v1.8.0
|
|
||||||
|
|
||||||
[0.3.6]
|
|
||||||
* Update to synapse v1.9.1
|
|
||||||
|
|
||||||
[0.3.7]
|
|
||||||
* Update to synapse v1.10.0
|
|
||||||
|
|
||||||
[0.3.8]
|
|
||||||
* Update to synapse v1.11.0
|
|
||||||
|
|
||||||
[0.4.0]
|
|
||||||
* Update to synapse v1.12.0
|
|
||||||
|
|
||||||
[0.4.1]
|
|
||||||
* Update to synapse v1.12.2
|
|
||||||
|
|
||||||
[0.5.0]
|
|
||||||
* New reworked app
|
|
||||||
|
|
||||||
[0.6.0]
|
|
||||||
* Fix title
|
|
||||||
|
|
||||||
[0.7.0]
|
|
||||||
* Set turn_uris to an array and not a string
|
|
||||||
|
|
||||||
[0.7.1]
|
|
||||||
* Users will now automatically join the #discuss channel (only in new installations)
|
|
||||||
|
|
||||||
[1.0.0]
|
|
||||||
* Use latest base image
|
|
||||||
* Update to synapse v1.12.4
|
|
||||||
|
|
||||||
[1.1.0]
|
|
||||||
* Update Synapse to 1.13.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.13.0)
|
|
||||||
* Set Referrer-Policy header to no-referrer on media downloads. (#7009)
|
|
||||||
* Admin API POST /_synapse/admin/v1/join/<roomIdOrAlias> to join users to a room like auto_join_rooms for creation of users. (#7051)
|
|
||||||
* Add options to prevent users from changing their profile or associated 3PIDs. (#7096)
|
|
||||||
* Allow server admins to define and enforce a password policy (MSC2000). (#7118)
|
|
||||||
* Improve the support for SSO authentication on the login fallback page. (#7152, #7235)
|
|
||||||
* Always whitelist the login fallback in the SSO configuration if public_baseurl is set. (#7153)
|
|
||||||
* Admin users are no longer required to be in a room to create an alias for it. (#7191)
|
|
||||||
* Require admin privileges to enable room encryption by default. This does not affect existing rooms. (#7230)
|
|
||||||
|
|
||||||
[1.2.0]
|
|
||||||
* Update Synapse to 1.14.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.14.0)
|
|
||||||
|
|
||||||
[1.3.0]
|
|
||||||
* Add optional sso support
|
|
||||||
|
|
||||||
[1.4.0]
|
|
||||||
* Update Synapse to 1.15.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.15.0)
|
|
||||||
* Advertise support for Client-Server API r0.6.0 and remove related unstable feature flags. (#6585)
|
|
||||||
* Add an option to disable autojoining rooms for guest accounts. (#6637)
|
|
||||||
* Add admin APIs to allow server admins to manage users' devices. Contributed by @dklimpel. (#7481)
|
|
||||||
* Add support for generating thumbnails for WebP images. Previously, users would see an empty box instead of preview image. Contributed by @WGH-. (#7586)
|
|
||||||
* Support the standardized m.login.sso user-interactive authentication flow. (#7630)
|
|
||||||
|
|
||||||
[1.5.0]
|
|
||||||
* Update Synapse to 1.15.2
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.15.2)
|
|
||||||
* A malicious homeserver could force Synapse to reset the state in a room to a small subset of the correct state. This affects all Synapse deployments which federate with untrusted servers. (96e9afe6)
|
|
||||||
* HTML pages served via Synapse were vulnerable to clickjacking attacks. This predominantly affects homeservers with single-sign-on enabled, but all server administrators are encouraged to upgrade. (ea26e9a9)
|
|
||||||
|
|
||||||
[1.6.0]
|
|
||||||
* Update Synapse to 1.16.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.16.0)
|
|
||||||
* Add an option to enable encryption by default for new rooms. (#7639)
|
|
||||||
* Add support for running multiple media repository workers. See docs/workers.md for instructions. (#7706)
|
|
||||||
* Media can now be marked as safe from quarantined. (#7718)
|
|
||||||
* Expand the configuration options for auto-join rooms. (#7763)
|
|
||||||
|
|
||||||
[1.6.1]
|
|
||||||
* Update Synapse to 1.16.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.16.1)
|
|
||||||
* Drop table local_rejections_stream which was incorrectly added in Synapse 1.16.0. (#7816, b1beb3ff5)
|
|
||||||
|
|
||||||
[1.7.0]
|
|
||||||
* Update Synapse to 1.17.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.17.0)
|
|
||||||
* Fix inconsistent handling of upper and lower case in email addresses when used as identifiers for login, etc. Contributed by @dklimpel. (#7021)
|
|
||||||
* Fix "Tried to close a non-active scope!" error messages when opentracing is enabled. (#7732)
|
|
||||||
* Fix incorrect error message when database CTYPE was set incorrectly. (#7760)
|
|
||||||
* Fix to not ignore set_tweak actions in Push Rules that have no value, as permitted by the specification. (#7766)
|
|
||||||
* Fix synctl to handle empty config files correctly. Contributed by @kotovalexarian. (#7779)
|
|
||||||
* Fixes a long standing bug in worker mode where worker information was saved in the devices table instead of the original IP address and user agent. (#7797)
|
|
||||||
* Fix 'stuck invites' which happen when we are unable to reject a room invite received over federation. (#7804, #7809, #7810)
|
|
||||||
|
|
||||||
[1.8.0]
|
|
||||||
* Update Synapse to 1.18.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.18.0)
|
|
||||||
* Include room states on invite events that are sent to application services. Contributed by @Sorunome. (#6455)
|
|
||||||
* Add delete room admin endpoint (POST /_synapse/admin/v1/rooms/<room_id>/delete). Contributed by @dklimpel. (#7613, #7953)
|
|
||||||
* Add experimental support for running multiple federation sender processes. (#7798)
|
|
||||||
* Add the option to validate the iss and aud claims for JWT logins. (#7827)
|
|
||||||
* Add support for handling registration requests across multiple client reader workers. (#7830)
|
|
||||||
* Add an admin API to list the users in a room. Contributed by Awesome Technologies Innovationslabor GmbH. (#7842)
|
|
||||||
* Allow email subjects to be customised through Synapse's configuration. (#7846)
|
|
||||||
* Add the ability to re-activate an account from the admin API. (#7847, #7908)
|
|
||||||
* Support oEmbed for media previews. (#7920)
|
|
||||||
|
|
||||||
[1.9.0]
|
|
||||||
* Update Synapse to 1.19.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.19.0)
|
|
||||||
* Add option to allow server admins to join rooms which fail complexity checks. Contributed by @lugino-emeritus. (#7902)
|
|
||||||
* Add an option to purge room or not with delete room admin endpoint (POST /_synapse/admin/v1/rooms/<room_id>/delete). Contributed by @dklimpel. (#7964)
|
|
||||||
* Add rate limiting to users joining rooms. (#8008)
|
|
||||||
* Add a /health endpoint to every configured HTTP listener that can be used as a health check endpoint by load balancers. (#8048)
|
|
||||||
* Allow login to be blocked based on the values of SAML attributes. (#8052)
|
|
||||||
* Allow guest access to the GET /_matrix/client/r0/rooms/{room_id}/members endpoint, according to MSC2689. Contributed by Awesome Technologies Innovationslabor GmbH. (#7314)
|
|
||||||
|
|
||||||
[1.9.1]
|
|
||||||
* Update Synapse to 1.19.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.19.1)
|
|
||||||
* Fix a bug introduced in v1.19.0 where appservices with ratelimiting disabled would still be ratelimited when joining rooms. (#8139)
|
|
||||||
* Fix a bug introduced in v1.19.0 that would cause e.g. profile updates to fail due to incorrect application of rate limits on join requests. (#8153)
|
|
||||||
|
|
||||||
[1.10.0]
|
|
||||||
* Update Synapse to 1.19.3
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.19.3)
|
|
||||||
* Partially mitigate bug where newly joined servers couldn't get past events in a room when there is a malformed event. (#8350)
|
|
||||||
* Make index.html customizable
|
|
||||||
|
|
||||||
[1.11.0]
|
|
||||||
* Update Synapse to 1.20.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.20.0)
|
|
||||||
* Add an endpoint to query your shared rooms with another user as an implementation of MSC2666. (#7785)
|
|
||||||
* Iteratively encode JSON to avoid blocking the reactor. (#8013, #8116)
|
|
||||||
* Add support for shadow-banning users (ignoring any message send requests). (#8034, #8092, #8095, #8142, #8152, #8157, #8158, #8176)
|
|
||||||
* Use the default template file when its equivalent is not found in a custom template directory. (#8037, #8107, #8252)
|
|
||||||
* Add unread messages count to sync responses, as specified in MSC2654. (#8059, #8254, #8270, #8274)
|
|
||||||
* Optimise /federation/v1/user/devices/ API by only returning devices with encryption keys. (#8198)
|
|
||||||
|
|
||||||
[1.12.0]
|
|
||||||
* Update Synapse to 1.21.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.21.0)
|
|
||||||
* Require the user to confirm that their password should be reset after clicking the email confirmation link. (#8004)
|
|
||||||
* Add an admin API GET /_synapse/admin/v1/event_reports to read entries of table event_reports. Contributed by @dklimpel. (#8217)
|
|
||||||
* Consolidate the SSO error template across all configuration. (#8248, #8405)
|
|
||||||
* Add a configuration option to specify a whitelist of domains that a user can be redirected to after validating their email or phone number. (#8275, #8417)
|
|
||||||
* Add experimental support for sharding event persister. (#8294, #8387, #8396, #8419)
|
|
||||||
* Add the room topic and avatar to the room details admin API. (#8305)
|
|
||||||
* Add an admin API for querying rooms where a user is a member. Contributed by @dklimpel. (#8306)
|
|
||||||
|
|
||||||
[1.12.1]
|
|
||||||
* Updat Synapse to 1.21.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.21.1)
|
|
||||||
|
|
||||||
[1.12.2]
|
|
||||||
* Update Synapse to 1.21.2
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.21.2)
|
|
||||||
* Security: HTML pages served via Synapse were vulnerable to cross-site scripting (XSS) attacks. All server administrators are encouraged to upgrade
|
|
||||||
* Fix rare bug where sending an event would fail due to a racey assertion. (#8530)
|
|
||||||
|
|
||||||
[1.13.0]
|
|
||||||
* Update Synapse to 1.22.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.22.0)
|
|
||||||
* Add ability for ThirdPartyEventRules modules to query and manipulate whether a room is in the public rooms directory. (#8292, #8467)
|
|
||||||
* Add support for olm fallback keys (MSC2732). (#8312, #8501)
|
|
||||||
* Add support for running background tasks in a separate worker process. (#8369, #8458, #8489, #8513, #8544, #8599)
|
|
||||||
* Add support for device dehydration (MSC2697). (#8380)
|
|
||||||
* Add support for MSC2409, which allows sending typing, read receipts, and presence events to appservices. (#8437, #8590)
|
|
||||||
* Change default room version to "6", per MSC2788. (#8461)
|
|
||||||
* Add the ability to send non-membership events into a room via the ModuleApi. (#8479)
|
|
||||||
* Increase default upload size limit from 10M to 50M. Contributed by @Akkowicz. (#8502)
|
|
||||||
* Add support for modifying event content in ThirdPartyRules modules. (#8535, #8564)
|
|
||||||
|
|
||||||
[1.13.1]
|
|
||||||
* Update Synapse to 1.22.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.22.1)
|
|
||||||
* Fix a bug where an appservice may not be forwarded events for a room it was recently invited to. Broke in v1.22.0. (#8676)
|
|
||||||
* Fix Object of type frozendict is not JSON serializable exceptions when using third-party event rules. Broke in v1.22.0. (#8678)
|
|
||||||
|
|
||||||
[1.14.0]
|
|
||||||
* Update Synapse to 1.23.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.23.0)
|
|
||||||
* Add a push rule that highlights when a jitsi conference is created in a room. (#8286)
|
|
||||||
* Add an admin api to delete a single file or files that were not used for a defined time from server. Contributed by @dklimpel. (#8519)
|
|
||||||
* Split admin API for reported events (GET /_synapse/admin/v1/event_reports) into detail and list endpoints. This is a breaking change to #8217 which was introduced in Synapse v1.21.0. Those who already use this API should check their scripts. Contributed by @dklimpel. (#8539)
|
|
||||||
* Support generating structured logs via the standard logging configuration. (#8607, #8685)
|
|
||||||
* Add an admin API to allow server admins to list users' pushers. Contributed by @dklimpel. (#8610, #8689)
|
|
||||||
* Add an admin API GET /_synapse/admin/v1/users/<user_id>/media to get information about uploaded media. Contributed by @dklimpel. (#8647)
|
|
||||||
* Add an admin API for local user media statistics. Contributed by @dklimpel. (#8700)
|
|
||||||
* Add displayname to Shared-Secret Registration for admins. (#8722)
|
|
||||||
|
|
||||||
[1.14.1]
|
|
||||||
* Update Synapse to 1.23.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.23.1)
|
|
||||||
* There is a denial of service attack (CVE-2020-26257) against the federation APIs in which future events will not be correctly sent to other servers over federation. This affects all servers that participate in open federation. (Fixed in #8776).
|
|
||||||
|
|
||||||
[1.15.0]
|
|
||||||
* Update Synapse to 1.24.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.24.0)
|
|
||||||
* Add a maximum version for pysaml2 on Python 3.5
|
|
||||||
|
|
||||||
[1.16.0]
|
|
||||||
* Update Synapse to 1.25.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.25.0)
|
|
||||||
* Add an admin API that lets server admins get power in rooms in which local users have power. (#8756)
|
|
||||||
* Add optional HTTP authentication to replication endpoints. (#8853)
|
|
||||||
* Improve the error messages printed as a result of configuration problems for extension modules. (#8874)
|
|
||||||
* Add the number of local devices to Room Details Admin API. Contributed by @dklimpel. (#8886)
|
|
||||||
* Add X-Robots-Tag header to stop web crawlers from indexing media. Contributed by Aaron Raimist. (#8887)
|
|
||||||
* Spam-checkers may now define their methods as async. (#8890)
|
|
||||||
* Add support for allowing users to pick their own user ID during a single-sign-on login. (#8897, #8900, #8911, #8938, #8941, #8942, #8951)
|
|
||||||
* Add an email.invite_client_location configuration option to send a web client location to the invite endpoint on the identity server which allows customisation of the email template. (#8930)
|
|
||||||
* The search term in the list room and list user Admin APIs is now treated as case-insensitive. (#8931)
|
|
||||||
* Apply an IP range blacklist to push and key revocation requests. (#8821, #8870, #8954)
|
|
||||||
* Add an option to allow re-use of user-interactive authentication sessions for a period of time. (#8970)
|
|
||||||
* Allow running the redact endpoint on workers. (#8994)
|
|
||||||
|
|
||||||
[1.17.0]
|
|
||||||
* Update Synapse to 1.26.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.26.0)
|
|
||||||
* During user-interactive authentication via single-sign-on, give a better error if the user uses the wrong account on the SSO IdP. (#9091)
|
|
||||||
* Give the public_baseurl a default value, if it is not explicitly set in the configuration file. (#9159)
|
|
||||||
* Improve performance when calculating ignored users in large rooms. (#9024)
|
|
||||||
* Implement MSC2176 in an experimental room version. (#8984)
|
|
||||||
* Add an admin API for protecting local media from quarantine. (#9086)
|
|
||||||
* Remove a user's avatar URL and display name when deactivated with the Admin API. (#8932)
|
|
||||||
|
|
||||||
[1.18.0]
|
|
||||||
* Update Synapse to 1.27.0
|
|
||||||
* Use base image v3
|
|
||||||
* Update python to 3.8
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.27.0)
|
|
||||||
* Add an admin API for getting and deleting forward extremities for a room. (#9062)
|
|
||||||
* Add an admin API for retrieving the current room state of a room. (#9168)
|
|
||||||
* Add an admin API endpoint for shadow-banning users. (#9209)
|
|
||||||
|
|
||||||
[1.19.0]
|
|
||||||
* Update Synapse to 1.28.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.28.0)
|
|
||||||
* New admin API to get the context of an event: /_synapse/admin/rooms/{roomId}/context/{eventId}. (#9150)
|
|
||||||
* Further improvements to the user experience of registration via single sign-on. (#9300, #9301)
|
|
||||||
* Add hook to spam checker modules that allow checking file uploads and remote downloads. (#9311)
|
|
||||||
* Add support for receiving OpenID Connect authentication responses via form POSTs rather than GETs. (#9376)
|
|
||||||
* Add the shadow-banning status to the admin API for user info. (#9400)
|
|
||||||
|
|
||||||
[1.20.0]
|
|
||||||
* Update Synapse to 1.29.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.29.0)
|
|
||||||
* Add rate limiters to cross-user key sharing requests. (#8957)
|
|
||||||
* Add order_by to the admin API GET /_synapse/admin/v1/users/<user_id>/media. Contributed by @dklimpel. (#8978)
|
|
||||||
* Add some configuration settings to make users' profile data more private. (#9203)
|
|
||||||
* The no_proxy and NO_PROXY environment variables are now respected in proxied HTTP clients with the lowercase form taking precedence if both are present. Additionally, the lowercase https_proxy environment variable is now respected in proxied HTTP clients on top of existing support for the uppercase HTTPS_PROXY form and takes precedence if both are present. Contributed by Timothy Leung. (#9372)
|
|
||||||
* Add a configuration option, user_directory.prefer_local_users, which when enabled will make it more likely for users on the same server as you to appear above other users. (#9383, #9385)
|
|
||||||
* Add support for regenerating thumbnails if they have been deleted but the original image is still stored. (#9438)
|
|
||||||
|
|
||||||
[1.21.0]
|
|
||||||
* Update Synapse to 1.30.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.30.0)
|
|
||||||
* Add prometheus metrics for number of users successfully registering and logging in. (#9510, #9511, #9573)
|
|
||||||
* Add synapse_federation_last_sent_pdu_time and synapse_federation_last_received_pdu_time prometheus metrics, which monitor federation delays by reporting the timestamps of messages sent and received to a set of remote servers. (#9540)
|
|
||||||
* Add support for generating JSON Web Tokens dynamically for use as OIDC client secrets. (#9549)
|
|
||||||
* Optimise handling of incomplete room history for incoming federation. (#9601)
|
|
||||||
* Finalise support for allowing clients to pick an SSO Identity Provider (MSC2858). (#9617)
|
|
||||||
* Tell spam checker modules about the SSO IdP a user registered through if one was used. (#9626)
|
|
||||||
|
|
||||||
[1.21.1]
|
|
||||||
* Update Synapse to 1.30.1
|
|
||||||
|
|
||||||
[1.22.0]
|
|
||||||
* Update Synapse to 1.31.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.31.0)
|
|
||||||
* Add support to OpenID Connect login for requiring attributes on the userinfo response. Contributed by Hubbe King. (#9609)
|
|
||||||
* Add initial experimental support for a "space summary" API. (#9643, #9652, #9653)
|
|
||||||
* Add support for the busy presence state as described in MSC3026. (#9644)
|
|
||||||
* Add support for credentials for proxy authentication in the HTTPS_PROXY environment variable. (#9657)
|
|
||||||
|
|
||||||
[1.22.1]
|
|
||||||
* Update Synapse to 1.32.0
|
|
||||||
* Add a Synapse module for routing presence updates between users. (#9491)
|
|
||||||
* Add an admin API to manage ratelimit for a specific user. (#9648)
|
|
||||||
* Include request information in structured logging output. (#9654)
|
|
||||||
* Add order_by to the admin API GET /_synapse/admin/v2/users. Contributed by @dklimpel. (#9691)
|
|
||||||
* Replace the room_invite_state_types configuration setting with room_prejoin_state. (#9700)
|
|
||||||
* Add experimental support for MSC3083: restricting room access via group membership. (#9717, #9735)
|
|
||||||
* Update experimental support for Spaces: include m.room.create in the room state sent with room-invites. (#9710)
|
|
||||||
* Synapse now requires Python 3.6 or later. It also requires Postgres 9.6 or later or SQLite 3.22 or later. (#9766)
|
|
||||||
* Prevent synapse_forward_extremities and synapse_excess_extremity_events Prometheus metrics from initially reporting zero-values after startup. (#8926)
|
|
||||||
* Fix recently added ratelimits to correctly honour the application service rate_limited flag. (#9711)
|
|
||||||
* Fix longstanding bug which caused duplicate key value violates unique constraint "remote_media_cache_thumbnails_media_origin_media_id_thumbna_key" errors. (#9725)
|
|
||||||
* Fix bug where sharded federation senders could get stuck repeatedly querying the DB in a loop, using lots of CPU. (#9770)
|
|
||||||
* Fix duplicate logging of exceptions thrown during federation transaction processing. (#9780)
|
|
||||||
|
|
||||||
[1.22.2]
|
|
||||||
* Update Synapse to 1.32.0
|
|
||||||
* Add a Synapse module for routing presence updates between users. (#9491)
|
|
||||||
* Add an admin API to manage ratelimit for a specific user. (#9648)
|
|
||||||
* Include request information in structured logging output. (#9654)
|
|
||||||
* Add order_by to the admin API GET /_synapse/admin/v2/users. Contributed by @dklimpel. (#9691)
|
|
||||||
* Replace the room_invite_state_types configuration setting with room_prejoin_state. (#9700)
|
|
||||||
* Add experimental support for MSC3083: restricting room access via group membership. (#9717, #9735)
|
|
||||||
* Update experimental support for Spaces: include m.room.create in the room state sent with room-invites. (#9710)
|
|
||||||
* Synapse now requires Python 3.6 or later. It also requires Postgres 9.6 or later or SQLite 3.22 or later. (#9766)
|
|
||||||
* Prevent synapse_forward_extremities and synapse_excess_extremity_events Prometheus metrics from initially reporting zero-values after startup. (#8926)
|
|
||||||
* Fix recently added ratelimits to correctly honour the application service rate_limited flag. (#9711)
|
|
||||||
* Fix longstanding bug which caused duplicate key value violates unique constraint "remote_media_cache_thumbnails_media_origin_media_id_thumbna_key" errors. (#9725)
|
|
||||||
* Fix bug where sharded federation senders could get stuck repeatedly querying the DB in a loop, using lots of CPU. (#9770)
|
|
||||||
* Fix duplicate logging of exceptions thrown during federation transaction processing. (#9780)
|
|
||||||
|
|
||||||
[1.22.3]
|
|
||||||
* Update Synapse to 1.32.1
|
|
||||||
* Fix a regression in Synapse 1.32.0 which caused Synapse to report large numbers of Prometheus time series, potentially overwhelming Prometheus instances. (#9854)
|
|
||||||
|
|
||||||
[1.22.4]
|
|
||||||
* Update Synapse to 1.32.2
|
|
||||||
* Fix a regression in Synapse 1.32.0 and 1.32.1 which caused LoggingContext errors in plugins. (#9857)
|
|
||||||
|
|
||||||
[1.23.0]
|
|
||||||
* Update Synapse to 1.33.0
|
|
||||||
* Update experimental support for MSC3083: restricting room access via group membership. (#9800, #9814)
|
|
||||||
* Add experimental support for handling presence on a worker. (#9819, #9820, #9828, #9850)
|
|
||||||
* Return a new template when an user attempts to renew their account multiple times with the same token, stating that their account is set to expire. This replaces the invalid token template that would previously be shown in this case. This change concerns the optional account validity feature. (#9832)
|
|
||||||
* Fixes the OIDC SSO flow when using a public_baseurl value including a non-root URL path. (#9726)
|
|
||||||
* Fix thumbnail generation for some sites with non-standard content types. Contributed by @rkfg. (#9788)
|
|
||||||
* Add some sanity checks to identity server passed to 3PID bind/unbind endpoints. (#9802)
|
|
||||||
* Limit the size of HTTP responses read over federation. (#9833)
|
|
||||||
* Fix a bug which could cause Synapse to get stuck in a loop of resyncing device lists. (#9867)
|
|
||||||
* Fix a long-standing bug where errors from federation did not propagate to the client. (#9868)
|
|
||||||
|
|
||||||
[1.23.1]
|
|
||||||
* Update Synapse to 1.33.1
|
|
||||||
* Fix bug where /sync would break if using the latest version of attrs dependency, by pinning to a previous version. (#9937)
|
|
||||||
|
|
||||||
[1.23.2]
|
|
||||||
* Update Synapse to 1.33.2
|
|
||||||
* This release fixes a denial of service attack (CVE-2021-29471) against Synapse's push rules implementation.
|
|
||||||
|
|
||||||
[1.24.0]
|
|
||||||
* Update Synapse to 1.34.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.34.0)
|
|
||||||
* Add support for DELETE /_synapse/admin/v1/rooms/<room_id>. (#9889)
|
|
||||||
* Improve performance after joining a large room when presence is enabled. (#9910, #9916)
|
|
||||||
* Support stable identifiers for MSC1772 Spaces. m.space.child events will now be taken into account when populating the experimental spaces summary response. Please see the upgrade notes if you have customised room_invite_state_types in your configuration. (#9915, #9966)
|
|
||||||
* Improve performance of backfilling in large rooms. (#9935)
|
|
||||||
|
|
||||||
[1.25.0]
|
|
||||||
* Update Synapse to 1.35.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.35.0)
|
|
||||||
* Add experimental support to allow a user who could join a restricted room to view it in the spaces summary. (#9922, #10007, #10038)
|
|
||||||
* Reduce memory usage when joining very large rooms over federation. (#9958)
|
|
||||||
* Add a configuration option which allows enabling opentracing by user id. (#9978)
|
|
||||||
* Enable experimental support for MSC2946 (spaces summary API) and MSC3083 (restricted join rules) by default. (#10011)
|
|
||||||
|
|
||||||
[1.25.1]
|
|
||||||
* Update Synapse to 1.35.1
|
|
||||||
* Fix a bug introduced in v1.35.0 where invite-only rooms would be shown to all users in a space, regardless of if the user had access to it. (#10109)
|
|
||||||
|
|
||||||
[1.26.0]
|
|
||||||
* Update Synapse to 1.36.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.36.0)
|
|
||||||
|
|
||||||
[1.27.0]
|
|
||||||
* Update Synapse to 1.38.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.38.0)
|
|
||||||
* Implement refresh tokens as specified by MSC2918. (#9450)
|
|
||||||
* Add support for evicting cache entries based on last access time. (#10205)
|
|
||||||
* Omit empty fields from the /sync response. Contributed by @deepbluev7. (#10214)
|
|
||||||
* Improve validation on federation send_{join,leave,knock} endpoints. (#10225, #10243)
|
|
||||||
* Mark events received over federation which fail a spam check as "soft-failed". (#10263)
|
|
||||||
* Add metrics for new inbound federation staging area. (#10284)
|
|
||||||
* Add script to print information about recently registered users. (#10290)
|
|
||||||
|
|
||||||
[1.27.1]
|
|
||||||
* Update Synapse to 1.38.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.38.1)
|
|
||||||
|
|
||||||
[1.28.0]
|
|
||||||
* Update Synapse to 1.39.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.39.0)
|
|
||||||
|
|
||||||
[1.29.0]
|
|
||||||
* Update Synapse to 1.40.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.40.0)
|
|
||||||
|
|
||||||
[1.30.0]
|
|
||||||
* Update Synapse to 1.41.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.41.0)
|
|
||||||
|
|
||||||
[1.30.1]
|
|
||||||
* Send logs to the console
|
|
||||||
* Fix postinstall message about federation
|
|
||||||
|
|
||||||
[1.30.2]
|
|
||||||
* Update Synapse to 1.41.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.41.1)
|
|
||||||
* GHSA-3x4c-pq33-4w3q / CVE-2021-39164: Enumerating a private room's list of members and their display names.
|
|
||||||
* GHSA-jj53-8fmw-f2w2 / CVE-2021-39163: Disclosing a private room's name, avatar, topic, and number of members.
|
|
||||||
|
|
||||||
[1.31.0]
|
|
||||||
* Update Synapse to 1.42.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.42.0)
|
|
||||||
* Support room version 9 from MSC3375. (#10747)
|
|
||||||
* Add support for MSC3231: Token authenticated registration. Users can be required to submit a token during registration to authenticate themselves. Contributed by Callum Brown. (#10142)
|
|
||||||
* Add support for MSC3283: Expose enable_set_displayname in capabilities. (#10452)
|
|
||||||
* Port the PresenceRouter module interface to the new generic interface. (#10524)
|
|
||||||
* Add pagination to the spaces summary based on updates to MSC2946. (#10613, #10725)
|
|
||||||
|
|
||||||
[1.32.0]
|
|
||||||
* Update Synapse to 1.43.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.43.0)
|
|
||||||
|
|
||||||
[1.33.0]
|
|
||||||
* Update Synapse to 1.44.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.44.0)
|
|
||||||
* Only allow the MSC2716 /batch_send?chunk_id=xxx endpoint to connect to an already existing insertion event. (#10776)
|
|
||||||
* Improve oEmbed URL previews by processing the author name, photo, and video information. (#10814, #10819)
|
|
||||||
* Speed up responding with large JSON objects to requests. (#10868, #10905)
|
|
||||||
* Add a user_may_create_room_with_invites spam checker callback to allow modules to allow or deny a room creation request based on the invites and/or 3PID invites it includes. (#10898)
|
|
||||||
|
|
||||||
[1.34.0]
|
|
||||||
* Update Synapse to 1.45.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.45.0)
|
|
||||||
* Fix a long-standing bug when using multiple event persister workers where events were not correctly sent down /sync due to a race. (#11045)
|
|
||||||
* Fix a bug introduced in Synapse 1.45.0rc1 where the user directory would stop updating if it processed an event from a user not in the users table. (#11053)
|
|
||||||
* Fix a bug introduced in Synapse 1.44.0 when logging errors during oEmbed processing. (#11061)
|
|
||||||
|
|
||||||
[1.34.1]
|
|
||||||
* Update Synapse to 1.45.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.45.1)
|
|
||||||
* Revert change to counting of deactivated users towards the monthly active users limit, introduced in 1.45.0rc1. (#11127)
|
|
||||||
|
|
||||||
[1.35.0]
|
|
||||||
* Update Synapse to 1.46.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.46.0)
|
|
||||||
* Fix a bug introduced in v1.46.0rc1 where URL previews of some XML documents would fail. (#11196)
|
|
||||||
|
|
||||||
[1.36.0]
|
|
||||||
* Update Synapse to 1.47.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.47.0)
|
|
||||||
* Fix a bug introduced in 1.47.0rc1 which caused worker processes to not halt startup in the presence of outstanding database migrations. (#11346)
|
|
||||||
* Fix a bug introduced in 1.47.0rc1 which prevented the 'remove deleted devices from device_inbox column' background process from running when updating from a recent Synapse version. (#11303, #11353)
|
|
||||||
|
|
||||||
[1.36.1]
|
|
||||||
* Update Synapse to 1.47.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.47.1)
|
|
||||||
* GHSA-3hfw-x7gx-437c / CVE-2021-41281: Path traversal when downloading remote media.
|
|
||||||
|
|
||||||
[1.37.0]
|
|
||||||
* Update Synapse to 1.48.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.48.0)
|
|
||||||
|
|
||||||
[1.38.0]
|
|
||||||
* Update Synapse to 1.49.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.49.0)
|
|
||||||
|
|
||||||
[1.38.1]
|
|
||||||
* Update Synapse to 1.49.2
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.49.2)
|
|
||||||
|
|
||||||
[1.38.2]
|
|
||||||
* Update Synapse to 1.50.1
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.50.1)
|
|
||||||
|
|
||||||
[1.38.3]
|
|
||||||
* Update Synapse to 1.50.2
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.50.2)
|
|
||||||
* Fix a bug introduced in Synapse 1.40.0 that caused Synapse to fail to process incoming federation traffic after handling a large amount of events in a v1 room. (#11806)
|
|
||||||
|
|
||||||
[1.38.4]
|
|
||||||
* Update Synapse to 1.51.0
|
|
||||||
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.51.0)
|
|
||||||
|
|
||||||
1513
CHANGELOG.md
Normal file
1513
CHANGELOG.md
Normal file
File diff suppressed because it is too large
Load Diff
@@ -3,35 +3,67 @@
|
|||||||
"title": "Matrix Synapse",
|
"title": "Matrix Synapse",
|
||||||
"author": "Matrix synapse authors",
|
"author": "Matrix synapse authors",
|
||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"changelog": "file://CHANGELOG",
|
"changelog": "file://CHANGELOG.md",
|
||||||
"tagline": "Secure & decentralized communication",
|
"tagline": "Secure & decentralized communication",
|
||||||
"version": "1.38.4",
|
"version": "1.124.7",
|
||||||
|
"upstreamVersion": "1.143.0",
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 8008,
|
"httpPort": 8008,
|
||||||
|
"httpPorts": {
|
||||||
|
"MAS_DOMAIN": {
|
||||||
|
"title": "MAS authentication domain",
|
||||||
|
"description": "Cloudron will proxy MAS on this domain so the Element client and Synapse OIDC discovery can reach http://<domain>/.well-known/openid-configuration",
|
||||||
|
"containerPort": 4000,
|
||||||
|
"defaultValue": "mas"
|
||||||
|
}
|
||||||
|
},
|
||||||
"memoryLimit": 536870912,
|
"memoryLimit": 536870912,
|
||||||
"addons": {
|
"addons": {
|
||||||
"localstorage": {},
|
"localstorage": {},
|
||||||
"ldap": {},
|
"oidc": {
|
||||||
|
"loginRedirectUri": "/_synapse/client/oidc/callback"
|
||||||
|
},
|
||||||
"postgresql": {},
|
"postgresql": {},
|
||||||
"sendmail": {},
|
"sendmail": {
|
||||||
"turn": {}
|
"supportsDisplayName": true
|
||||||
|
},
|
||||||
|
"turn": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
"website": "https://matrix.org",
|
"website": "https://matrix.org",
|
||||||
"contactEmail": "support@cloudron.io",
|
"contactEmail": "support@cloudron.io",
|
||||||
"icon": "file://logo.png",
|
"icon": "file://logo.png",
|
||||||
"tags": [
|
"tags": [
|
||||||
"im", "collaboration", "voip", "videochat", "chat", "slack", "zulip", "federated"
|
"im",
|
||||||
|
"collaboration",
|
||||||
|
"voip",
|
||||||
|
"videochat",
|
||||||
|
"chat",
|
||||||
|
"slack",
|
||||||
|
"zulip",
|
||||||
|
"federated",
|
||||||
|
"element",
|
||||||
|
"riot"
|
||||||
],
|
],
|
||||||
"mediaLinks": [
|
"mediaLinks": [
|
||||||
"https://screenshots.cloudron.io/org.matrix.synapse/1.png",
|
"https://screenshots.cloudron.io/org.matrix.synapse/1.png",
|
||||||
"https://screenshots.cloudron.io/org.matrix.synapse/2.png",
|
"https://screenshots.cloudron.io/org.matrix.synapse/2.png",
|
||||||
"https://screenshots.cloudron.io/org.matrix.synapse/3.png"
|
"https://screenshots.cloudron.io/org.matrix.synapse/3.png"
|
||||||
],
|
],
|
||||||
"changelog": "file://CHANGELOG",
|
"checklist": {
|
||||||
|
"configure-federation": {
|
||||||
|
"message": "For federation to work, the delegation URI `https://$CLOUDRON-APP-DOMAIN/.well-known/matrix/server` must be configured. See the [docs](https://docs.cloudron.io/apps/synapse/#post-installation) on how to do this."
|
||||||
|
},
|
||||||
|
"registration-enabled-without-verification": {
|
||||||
|
"message": "Registration is enabled but verification is disabled. See [docs](https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html?highlight=registration_require#enable_registration) for more information",
|
||||||
|
"sso": false
|
||||||
|
}
|
||||||
|
},
|
||||||
"postInstallMessage": "file://POSTINSTALL.md",
|
"postInstallMessage": "file://POSTINSTALL.md",
|
||||||
"minBoxVersion": "5.3.0",
|
"minBoxVersion": "8.2.0",
|
||||||
"forumUrl": "https://forum.cloudron.io/category/50/matrix-synapse-riot",
|
"forumUrl": "https://forum.cloudron.io/category/50/matrix-synapse-riot",
|
||||||
"documentationUrl": "https://docs.cloudron.io/apps/synapse/",
|
"documentationUrl": "https://docs.cloudron.io/packages/synapse/",
|
||||||
"optionalSso": true
|
"optionalSso": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
This app packages Synapse <upstream>1.51.0</upstream>.
|
|
||||||
|
|
||||||
**This package only provides the Matrix backend. A variety of clients are available
|
**This package only provides the Matrix backend. A variety of clients are available
|
||||||
[here](https://matrix.org/clients/). Riot is a popular web frontend for Matrix and
|
[here](https://matrix.org/clients/). Riot is a popular web frontend for Matrix and
|
||||||
is available as a separate app.**
|
is available as a separate app.**
|
||||||
|
|
||||||
Matrix is an ambitious new ecosystem for open federated Instant Messaging and VoIP.
|
## About
|
||||||
|
|
||||||
## Matrix
|
Matrix is an ambitious new ecosystem for open federated Instant Messaging and VoIP.
|
||||||
|
|
||||||
Matrix specifies a set of pragmatic RESTful HTTP JSON APIs as an open standard, which handle:
|
Matrix specifies a set of pragmatic RESTful HTTP JSON APIs as an open standard, which handle:
|
||||||
|
|
||||||
@@ -18,7 +16,7 @@ Matrix specifies a set of pragmatic RESTful HTTP JSON APIs as an open standard,
|
|||||||
* Using 3rd Party IDs (3PIDs) such as email addresses, phone numbers, Facebook accounts to authenticate, identify and discover users on Matrix.
|
* Using 3rd Party IDs (3PIDs) such as email addresses, phone numbers, Facebook accounts to authenticate, identify and discover users on Matrix.
|
||||||
* Placing 1:1 VoIP and Video calls
|
* Placing 1:1 VoIP and Video calls
|
||||||
|
|
||||||
## Synapse
|
## What is Synapse?
|
||||||
|
|
||||||
Synapse is a reference "homeserver" implementation of Matrix from the core development
|
Synapse is a reference "homeserver" implementation of Matrix from the core development
|
||||||
team at matrix.org, written in Python/Twisted.
|
team at matrix.org, written in Python/Twisted.
|
||||||
|
|||||||
25
Dockerfile
25
Dockerfile
@@ -1,26 +1,29 @@
|
|||||||
FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263ea
|
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
|
||||||
|
|
||||||
RUN mkdir -p /app/pkg
|
RUN mkdir -p /app/pkg
|
||||||
|
|
||||||
WORKDIR /app/code
|
WORKDIR /app/code
|
||||||
|
|
||||||
# https://pythonspeed.com/articles/activate-virtualenv-dockerfile/
|
# https://github.com/element-hq/synapse/blob/master/docs/setup/installation.md?plain=1#L202
|
||||||
RUN virtualenv -p python3 /app/code/env
|
RUN python3 -m venv /app/code/env
|
||||||
ENV VIRTUAL_ENV=/app/code/env
|
|
||||||
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
|
||||||
|
|
||||||
ARG VERSION=v1.51.0
|
# renovate: datasource=github-releases depName=element-hq/synapse versioning=semver extractVersion=^v(?<version>.+)$
|
||||||
|
ARG SYNAPSE_VERSION=1.143.0
|
||||||
|
|
||||||
|
# renovate: datasource=github-releases depName=matrix-org/synapse-s3-storage-provider versioning=semver extractVersion=^v(?<version>.+)$
|
||||||
|
ARG S3PROVIDER_VERSION=1.6.0
|
||||||
|
|
||||||
# Synapse (https://github.com/matrix-org/synapse/blob/master/INSTALL.md)
|
# Synapse (https://github.com/matrix-org/synapse/blob/master/INSTALL.md)
|
||||||
# lxml - required for previews
|
# lxml - required for previews
|
||||||
RUN pip install --upgrade pip && \
|
RUN source /app/code/env/bin/activate && \
|
||||||
pip install --upgrade setuptools && \
|
pip3 install --no-cache-dir matrix-synapse==v${SYNAPSE_VERSION} psycopg2-binary python-ldap matrix-synapse-ldap3 lxml publicsuffix2 git+https://github.com/matrix-org/synapse-s3-storage-provider.git@v${S3PROVIDER_VERSION} matrix-synapse[oidc]
|
||||||
pip install matrix-synapse==${VERSION} psycopg2-binary python-ldap matrix-synapse-ldap3 lxml publicsuffix2
|
|
||||||
|
|
||||||
RUN ln -sf /app/data/index.html /app/code/env/lib/python3.8/site-packages/synapse/static/index.html
|
# Updated suffix list
|
||||||
|
RUN curl -L https://publicsuffix.org/list/public_suffix_list.dat -o /app/code/env/lib/python3.12/site-packages/publicsuffix2/public_suffix_list.dat
|
||||||
|
|
||||||
RUN chown -R cloudron.cloudron /app/code
|
RUN ln -sf /app/data/index.html /app/code/env/lib/python3.12/site-packages/synapse/static/index.html
|
||||||
|
|
||||||
ADD index.html homeserver.yaml.template start.sh /app/pkg/
|
ADD index.html homeserver.yaml.template start.sh /app/pkg/
|
||||||
|
ADD mas /app/pkg/mas
|
||||||
|
|
||||||
CMD [ "/app/pkg/start.sh" ]
|
CMD [ "/app/pkg/start.sh" ]
|
||||||
|
|||||||
74
MAS-implementation-plan.md
Normal file
74
MAS-implementation-plan.md
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
# MAS Integration Research & Plan
|
||||||
|
|
||||||
|
## Objectives
|
||||||
|
- Understand what the Matrix Authentication Service (MAS) needs to replace or augment in the Cloudron Synapse package.
|
||||||
|
- Capture upstream recommendations for deployment (domains, reverse proxy, database, config) and map them to Cloudron-specific constraints (single app bundle, OpenID provider, Element compatibility).
|
||||||
|
- Document the next steps to get from the working Synapse package to a MAS-enabled deployment that keeps Element/Element X happy.
|
||||||
|
|
||||||
|
## Upstream MAS requirements (source: https://element-hq.github.io/matrix-authentication-service/setup/)
|
||||||
|
1. **Dedicated authentication service**: MAS runs on its own domain (e.g. `auth.example.com`) and handles account/session management via OIDC. The homeserver (Synapse) becomes an OIDC relying party.
|
||||||
|
2. **Assets & binaries**: Upstream shipped packages bundle `mas-cli`, the frontend assets, policy wasm, templates, translations, etc. These can be overridden via configuration (paths configurable).
|
||||||
|
3. **Database**: MAS maintains its own PostgreSQL database with user/session/registration information. Upstream provides `mas-cli database migrate` to manage schema.
|
||||||
|
4. **Homeserver configuration**: Synapse needs to be configured to trust MAS—this includes replacing the `MXID_LOCALPART_REGEXP`, `oidc_config`, and adjusting `User Interactive Auth` settings to redirect to MAS endpoints.
|
||||||
|
5. **Reverse proxy**: Both MAS and Synapse must be exposed through a reverse proxy (or Cloudron routing layer) so they can talk over HTTPS. OIDC discovery endpoints must be reachable at sensible URLs.
|
||||||
|
6. **SSO / upstream provider**: MAS is configurable to use external SSO providers (email, identity providers) but for Cloudron we expect MAS to hook into Cloudron's OpenID provider layer (since Cloudron exposes apps via OpenID for dashboard login).
|
||||||
|
7. **CLI tooling**: `mas-cli` ships a `config`, `database`, `manage`, `server`, `syn2mas`, `worker`, `templates`, `doctor` command suite. We'll likely rely on the `template` assets and the `doctor` check when packaging.
|
||||||
|
8. **Templates & policies**: The frontend, policy engine (OPA), and default templates drive what flows look like; for Cloudron we should ensure these assets are present and configurable by the package (perhaps via volume mounts or extraction during install).
|
||||||
|
|
||||||
|
## Cloudron-specific considerations
|
||||||
|
- **Single-app package**: Currently the Cloudron Synapse package bundles Synapse (homeserver) and exposes it via `matrix.example.com`. MAS needs a separate service but Cloudron apps normally run in a single container. Need to decide: 1) include MAS binary / assets in the same package but run a second process, or 2) run MAS as a child service through Cloudron's `run.yml`/`start.sh`. Need to inspect existing packaging to see how (1) Synapse currently runs (maybe `start.sh`), (2) if additional processes are possible (should be via background start commands). Cloudron package manifest may need adjustments to expose MAS endpoints via additional subdomain or path.
|
||||||
|
- The existing `start.sh` is an idempotent bootstrap that provisions `homeserver.yaml` from the pip-installed Synapse, copies a static `homeserver.yaml.template`, writes generated secrets, and configures the database, email, OIDC (if Cloudron-provided), TURN, and logging before finally `exec`-ing Synapse with `gosu`. Adding MAS will require launching a second process (probably before the `exec`) so we can keep `start.sh` running both MAS and Synapse. Cloudron apps expose a single HTTP port (`8008` per `CloudronManifest.json`), so MAS would need to listen on a different port and rely on Cloudron’s reverse proxy rules (manifest may need to expose additional `exposePorts` or route via a subpath).
|
||||||
|
- **OpenID integration**: MAS expects to be an OIDC provider. Cloudron uses OpenID Connect to allow users to log into the dashboard/app. The original Cloudron issue (https://forum.cloudron.io/topic/13648) mentioned `openid uri configuration issue for synapse-s-mas`. We need to ensure MAS's `.well-known/openid-configuration` URL is accessible and correctly registered in Cloudron. This might require adding proper `manifest.json` entries so MAS endpoints are published to Cloudron's OIDC routing layer.
|
||||||
|
- **Element/Element X login improvements**: MAS unlocks QR-code login, passkeys, etc. Need to ensure the packaged MAS supports the flow required by Element/Element X (i.e., MAS must report as the OIDC server for `matrix.org` domain). The `homeserver.yaml.template` might need updates to point at MAS discovery endpoints.
|
||||||
|
- **Cloudron assets**: Determine how to ship MAS assets (frontend/policy/manifest) with the package so MAS can locate them without needing network downloads (Cloudron apps need offline reliability). Could use `test/` folder to store sample config? Need to ensure `start.sh` extracts these assets and sets environment variables.
|
||||||
|
|
||||||
|
## Observations from the current package
|
||||||
|
- `CloudronManifest.json` exposes only `httpPort` 8008, so Synapse listens there. There are addons for localstorage, oidc, postgresql, sendmail, and optional TURN, meaning Cloudron will inject database, mail, and OIDC env vars. Introducing MAS likely requires either:
|
||||||
|
- adding `exposePorts` or `httpService` entries so the reverse proxy knows about MAS’s port, and optionally an `oidc` addon entry for MAS’s `.well-known` metadata, or
|
||||||
|
- routing MAS through the same HTTP port but behind a different path (e.g., `/auth`). The docs for MAS mention it should run on a dedicated domain, but we might be able to serve it on a subpath if Cloudron doesn’t allow multiple ports.
|
||||||
|
- `start.sh` already uses environment-supplied OIDC configuration when Cloudron provides it. That logic may need to be extended so MAS can either (a) act as the provider and register itself with Cloudron, or (b) rely on Cloudron’s OpenID stack if MAS is configured as a relying party. The script currently does not interact with Cloudron beyond templating `homeserver.yaml`, so we have full control over how MAS is provisioned once we decide where to run it.
|
||||||
|
|
||||||
|
## Recent implementation notes
|
||||||
|
- `CloudronManifest.json` now advertises a second `httpService` named `mas` on port `4000` so a Cloudron TLS route can reach the MAS discovery endpoints at `/mas/.well-known`.
|
||||||
|
- Added `mas/mas-config.template.yaml` plus `mas/README.md` so the package now ships an editable MAS config skeleton, expected assets directory, and guidance on where upstream binaries live.
|
||||||
|
- `start.sh` generates `/app/data/configs/mas.yaml`, keeps a persistent MAS client secret, and is ready to launch `mas-cli server --config ...` with proper signal handling.
|
||||||
|
- `mas/` now holds the upstream v1.7.0 release artifacts: the `mas-cli` binary plus `share/` assets (frontend, manifest, policy, translations) that the config template points to, enabling MAS to run without building from source.
|
||||||
|
|
||||||
|
## Manifest & runtime guardrails
|
||||||
|
- Cloudron manifest v2 gives every app a single declared `httpPort`, but you can add `httpServices` entries if you need additional HTTPS-terminating services routed through Cloudron’s reverse proxy. Each `httpService` can specify a `port`, `path`, `certificate`, and `protocol`, making it possible to expose MAS on a different internal port or mount it under a distinct path (e.g., `/auth`). Alternatively, `exposePorts` allows you to expose TCP ports directly if a separate plain TCP route is acceptable.
|
||||||
|
- The existing `oidc` addon signals Cloudron to proxy `.well-known/openid-configuration`. To surface MAS’s discovery documents we can either:
|
||||||
|
- register MAS as a second HTTP service with its own path for `.well-known/`, or
|
||||||
|
- keep MAS on the same port and let the reverse proxy forward `/auth/.well-known/*` to the MAS port.
|
||||||
|
- Since MAS needs to run alongside the homeserver, `start.sh` now writes `/app/data/configs/mas.yaml`, backgrounds `mas-cli server --config ...`, and installs traps so signals kill both services before the script exits, keeping the container responsive while the MAS service shares the same app lifecycle.
|
||||||
|
- The script also configures Synapse’s `homeserver.yaml` to treat MAS as its login provider: password registration is disabled and the MAS OIDC endpoints/secret are templated at startup so Element clients see an OIDC-capable homeserver.
|
||||||
|
|
||||||
|
## Rough plan for MAS implementation
|
||||||
|
1. **Gather upstream assets**
|
||||||
|
- Confirm we can download a MAS release tarball as part of the build (prefer Docker image if Cloudron supports it, otherwise pre-built binary).
|
||||||
|
- Verify what assets need to be packaged (frontend dist, policy wasm, translations, templates, `mas-cli`). Document in this repo how they will be bundled.
|
||||||
|
2. **Process orchestration**
|
||||||
|
- Update `start.sh` to launch MAS alongside Synapse (probably via `&` background process) and ensure proper log capture.
|
||||||
|
- Ensure MAS listens on a different port (e.g., `4000`), while Synapse remains on its port. Cloudron reverse proxy must route `/mas` or assign a subdomain (maybe `auth.<app domain>`). Need to explore Cloudron manifest to see if multiple ports can be exposed; if not, we may need to run MAS on the same port but separate path? Need to review Cloudron packaging docs.
|
||||||
|
- Sketch a background-run pattern: configure MAS before Synapse, run `/app/pkg/mas/mas-cli server --config ...` as `gosu cloudron:cloudron ... &`, save the child PID, and trap SIGTERM/SIGINT so both MAS and Synapse are terminated when the container stops; the script can then `wait` on Synapse while MAS serves requests in the background.
|
||||||
|
3. **Configuration mapping**
|
||||||
|
- Determine MAS config file structure and defaults. We'll likely need `mas-config.yaml` referencing Synapse endpoints, database credentials, and OIDC discovery data. Need to map Cloudron config variables (domain, TLS cert path) into MAS's config.
|
||||||
|
- Update `homeserver.yaml.template` to include the `oidc` settings pointing at MAS (including `client_id`, `client_secret`, `authorization_endpoint`, etc.). This may require new templating variables that Cloudron populates at runtime.
|
||||||
|
4. **Cloudron integration (OpenID provider)**
|
||||||
|
- Evaluate how Cloudron registers OpenID providers for apps; we might need to adjust `CloudronManifest.json` or `start.sh` to register MAS's `.well-known/openid-configuration` with Cloudron (maybe through environment variables or `start.sh` hooking into Cloudron's OpenID provider interface). Need to research Cloudron packaging guidelines for apps that expose their own OIDC endpoints.
|
||||||
|
- Identify required scopes and metadata so MAS appears as the identity provider for Element clients used by Cloudron.
|
||||||
|
5. **Test flows (Element, CLI)**
|
||||||
|
- Ensure Element clients can authenticate via MAS (login flow). Document manual steps to test after packaging.
|
||||||
|
- Provide instructions for administrators to configure MAS if Cloudron-specific modifications (domain names, secrets) are needed.
|
||||||
|
6. **Documentation/Assets**
|
||||||
|
- Update README or create a new `docs/` entry explaining how MAS is configured for Cloudron (OAUTH endpoints, necessary environment variables).
|
||||||
|
- Add `POSTINSTALL.md` or similar update to inform Cloudron admins of new MAS dependencies.
|
||||||
|
|
||||||
|
## Next steps (action items)
|
||||||
|
1. **Clarify process/port constraints**: confirm whether Cloudron allows exposing two ports or mapping a subpath to MAS; if the manifest must change, note which keys support the MAS discovery endpoints. Ensure `start.sh` can launch MAS before Synapse `exec`.
|
||||||
|
2. **Fetch latest MAS release** (prefer Docker image if Cloudron supports pulling `ghcr.io/element-hq/matrix-authentication-service:latest`). Determine how to extract assets and integrate into our package (hopefully by storing release tarball in repo or downloading during install?).
|
||||||
|
3. **Define MAS config template** that references Cloudron environment variables (domain, TLS certs, database credentials). Draft a template config file in `test/` or new folder.
|
||||||
|
4. **Map OpenID requirements**: find Cloudron docs for apps that need to expose OIDC metadata. Write down the necessary manifest keys or scripts to register MAS endpoints.
|
||||||
|
5. **Document user flows**: in this repo, outline how MAS interacts with Synapse and Element (i.e., MAS obtains upstream login info, issues tokens to Synapse, Element authenticates via Synapse -> MAS). This can serve as both reference and testing checklist.
|
||||||
|
6. **Additional research**: determine if Cloudron's OpenID stack can act as an upstream provider for MAS (i.e., MAS is the relying party to Cloudron's OIDC provider) or if MAS should be the provider and Cloudron just routes to it.
|
||||||
|
|
||||||
|
Once the above are addressed, we'll have a clearer technical path for implementing MAS within this package. Let me know if you'd like me to iterate on any of these sections or move into prototyping a MAS-powered build.
|
||||||
@@ -1,7 +1,2 @@
|
|||||||
Account ids are created with the username and the second level domain under which the
|
Account ids are created with the username and the second level domain under which the
|
||||||
app is installed e.g. `@$CLOUDRON-USERNAME@$CLOUDRON-APP-DOMAIN`.
|
app is installed e.g. `@$CLOUDRON-USERNAME:$CLOUDRON-APP-DOMAIN`.
|
||||||
|
|
||||||
For federation to work, the second level domain (`$CLOUDRON-APP-DOMAIN`) has to be configured to serve up the
|
|
||||||
`.well-known/matrix/server` URI. See the [federation docs](https://cloudron.io/documentation/apps/synapse/) on
|
|
||||||
how to do this.
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# https://github.com/matrix-org/synapse/blob/master/docs/sample_config.yaml
|
# https://github.com/element-hq/synapse/blob/master/docs/sample_config.yaml
|
||||||
|
|
||||||
# if you change this, change the auto_join_rooms below as well
|
# if you change this, change the auto_join_rooms below as well
|
||||||
server_name: "example.com"
|
server_name: "example.com"
|
||||||
@@ -13,7 +13,6 @@ listeners:
|
|||||||
type: http
|
type: http
|
||||||
x_forwarded: true
|
x_forwarded: true
|
||||||
bind_addresses: ['0.0.0.0']
|
bind_addresses: ['0.0.0.0']
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- names: [client,federation]
|
- names: [client,federation]
|
||||||
compress: false
|
compress: false
|
||||||
@@ -21,7 +20,6 @@ listeners:
|
|||||||
database:
|
database:
|
||||||
name: "psycopg2"
|
name: "psycopg2"
|
||||||
args:
|
args:
|
||||||
# Path to the database
|
|
||||||
user: ${POSTGRESQL_USERNAME}
|
user: ${POSTGRESQL_USERNAME}
|
||||||
password: ${POSTGRESQL_PASSWORD}
|
password: ${POSTGRESQL_PASSWORD}
|
||||||
database: ${POSTGRESQL_DATABASE}
|
database: ${POSTGRESQL_DATABASE}
|
||||||
@@ -29,6 +27,17 @@ database:
|
|||||||
cp_min: 5
|
cp_min: 5
|
||||||
cp_max: 10
|
cp_max: 10
|
||||||
|
|
||||||
|
log_config: "/app/data/configs/log.config"
|
||||||
|
media_store_path: "/app/data/data/media_store"
|
||||||
|
registration_shared_secret: "some_shared_secret"
|
||||||
|
report_stats: false
|
||||||
|
macaroon_secret_key: "some_macaroon_secret"
|
||||||
|
form_secret: "some_form_secret"
|
||||||
|
signing_key_path: "/app/data/configs/signing.key"
|
||||||
|
trusted_key_servers:
|
||||||
|
- server_name: "matrix.org"
|
||||||
|
|
||||||
|
## Cloudron packaging
|
||||||
email:
|
email:
|
||||||
smtp_host: mail.server
|
smtp_host: mail.server
|
||||||
smtp_port: 587
|
smtp_port: 587
|
||||||
@@ -40,73 +49,37 @@ email:
|
|||||||
enable_notifs: true
|
enable_notifs: true
|
||||||
notif_for_new_users: true
|
notif_for_new_users: true
|
||||||
|
|
||||||
password_providers:
|
|
||||||
- module: "synapse.util.ldap_auth_provider.LdapAuthProvider"
|
|
||||||
config:
|
|
||||||
enabled: true
|
|
||||||
uri: "ldap://ldap.example.com:389"
|
|
||||||
start_tls: true
|
|
||||||
base: "ou=users,dc=example,dc=com"
|
|
||||||
attributes:
|
|
||||||
uid: "username"
|
|
||||||
mail: "mail"
|
|
||||||
name: "username"
|
|
||||||
bind_dn: "ou=users,dc=cloudron"
|
|
||||||
bind_password: "password"
|
|
||||||
filter: "(objectClass=posixAccount)"
|
|
||||||
|
|
||||||
# turn
|
# turn
|
||||||
turn_uris: []
|
turn_uris: []
|
||||||
turn_shared_secret: "sharedsecret"
|
turn_shared_secret: "sharedsecret"
|
||||||
turn_allow_guests: true
|
turn_allow_guests: true
|
||||||
|
|
||||||
federation_ip_range_blacklist:
|
# sso (https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#single-sign-on-integration)
|
||||||
- '127.0.0.0/8'
|
|
||||||
- '10.0.0.0/8'
|
|
||||||
- '172.16.0.0/12'
|
|
||||||
- '192.168.0.0/16'
|
|
||||||
- '100.64.0.0/10'
|
|
||||||
- '169.254.0.0/16'
|
|
||||||
- '::1/128'
|
|
||||||
- 'fe80::/64'
|
|
||||||
- 'fc00::/7'
|
|
||||||
|
|
||||||
enable_registration: false
|
enable_registration: false
|
||||||
registration_shared_secret: "somesecret"
|
# without this, registration requires one of email/captcha/token verification
|
||||||
allow_guest_access: false
|
enable_registration_without_verification: true
|
||||||
|
|
||||||
enable_group_creation: true
|
oidc_providers:
|
||||||
|
- idp_id: cloudron
|
||||||
report_stats: False
|
idp_name: "CLOUDRON_OIDC_PROVIDER_NAME"
|
||||||
|
issuer: "CLOUDRON_OIDC_ISSUER"
|
||||||
signing_key_path: "/app/data/configs/signing.key"
|
client_id: "CLOUDRON_OIDC_CLIENT_ID"
|
||||||
|
client_secret: "CLOUDRON_OIDC_CLIENT_SECRET"
|
||||||
url_preview_enabled: true
|
scopes: ["openid", "profile", "email"]
|
||||||
url_preview_ip_range_blacklist:
|
authorization_endpoint: "CLOUDRON_OIDC_AUTH_ENDPOINT"
|
||||||
- '127.0.0.0/8'
|
token_endpoint: "CLOUDRON_OIDC_TOKEN_ENDPOINT"
|
||||||
- '10.0.0.0/8'
|
userinfo_endpoint: "CLOUDRON_OIDC_AUTH_ENDPOINT"
|
||||||
- '172.16.0.0/12'
|
allow_existing_users: true
|
||||||
- '192.168.0.0/16'
|
enable_registration: true
|
||||||
- '100.64.0.0/10'
|
backchannel_logout_enabled: false
|
||||||
- '169.254.0.0/16'
|
user_mapping_provider:
|
||||||
- '::1/128'
|
config:
|
||||||
- 'fe80::/64'
|
localpart_template: "{{ user.sub }}"
|
||||||
- 'fc00::/7'
|
display_name_template: "{{ user.name }}"
|
||||||
|
email_template: "{{ user.email }}"
|
||||||
media_store_path: "/app/data/data/media_store"
|
|
||||||
max_upload_size: 200M
|
|
||||||
max_image_pixels: "32M"
|
|
||||||
dynamic_thumbnails: false
|
|
||||||
|
|
||||||
autocreate_auto_join_rooms: true
|
|
||||||
auto_join_rooms:
|
|
||||||
- "#discuss:example.com"
|
|
||||||
|
|
||||||
trusted_key_servers:
|
|
||||||
- server_name: "matrix.org"
|
|
||||||
suppress_key_server_warning: true
|
|
||||||
|
|
||||||
password_config:
|
password_config:
|
||||||
enabled: true
|
enabled: false
|
||||||
localdb_enabled: false
|
localdb_enabled: false
|
||||||
|
pepper: "some_pepper_secret"
|
||||||
|
|
||||||
|
|||||||
BIN
logo.png
BIN
logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 11 KiB |
105
logo.svg
Normal file
105
logo.svg
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg:svg
|
||||||
|
width="92"
|
||||||
|
height="92"
|
||||||
|
viewBox="0 0 92 92"
|
||||||
|
version="1.1"
|
||||||
|
id="svg5"
|
||||||
|
sodipodi:docname="logo.svg"
|
||||||
|
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
|
||||||
|
inkscape:export-filename="logo.png"
|
||||||
|
inkscape:export-xdpi="534.26086"
|
||||||
|
inkscape:export-ydpi="534.26086"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<svg:defs
|
||||||
|
id="defs5" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview5"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:showpageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#d1d1d1"
|
||||||
|
inkscape:zoom="3.5066667"
|
||||||
|
inkscape:cx="34.93346"
|
||||||
|
inkscape:cy="46.340304"
|
||||||
|
inkscape:window-width="1280"
|
||||||
|
inkscape:window-height="654"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="matrix-logo-white" />
|
||||||
|
<!-- Generator: Sketch 55 (78076) - https://sketchapp.com -->
|
||||||
|
<svg:title
|
||||||
|
id="title1">matrix logo white</svg:title>
|
||||||
|
<svg:desc
|
||||||
|
id="desc1">Created with Sketch.</svg:desc>
|
||||||
|
<svg:g
|
||||||
|
id="Page-1"
|
||||||
|
stroke="none"
|
||||||
|
stroke-width="1"
|
||||||
|
fill="none"
|
||||||
|
fill-rule="evenodd"
|
||||||
|
style="fill:#000000">
|
||||||
|
<svg:g
|
||||||
|
id="matrix-logo-white"
|
||||||
|
fill="#FFFFFF"
|
||||||
|
fill-rule="nonzero"
|
||||||
|
style="fill:#000000">
|
||||||
|
<svg:g
|
||||||
|
id="g5"
|
||||||
|
transform="matrix(1.1943286,0,0,1.1943286,1.1945584,26.901573)"
|
||||||
|
style="fill:#666666;stroke:none;stroke-opacity:1;stroke-width:0.99972487;stroke-dasharray:none">
|
||||||
|
<svg:polygon
|
||||||
|
id="Path"
|
||||||
|
points="0.93631479,31.249567 3.1294248,31.249567 3.1294248,31.981769 0.094721871,31.981769 0.094721871,9.495549e-05 3.1294248,9.495549e-05 3.1294248,0.73220178 0.93631479,0.73220178 "
|
||||||
|
style="fill:#666666;stroke:none;stroke-opacity:1;stroke-width:0.99972487;stroke-dasharray:none" />
|
||||||
|
<svg:path
|
||||||
|
d="m 9.3857143,10.406647 v 1.544356 h 0.0439 c 0.4113148,-0.587869 0.9067317,-1.04432 1.4871047,-1.367929 0.579994,-0.323038 1.244849,-0.485222 1.993711,-0.485222 0.719469,0 1.376833,0.140059 1.971523,0.419228 0.59488,0.279644 1.046587,0.772083 1.355025,1.478172 0.337548,-0.49994 0.796461,-0.941293 1.376834,-1.323679 0.579993,-0.382196 1.266561,-0.573721 2.059797,-0.573721 0.602181,0 1.159988,0.07369 1.674463,0.220771 0.513717,0.147086 0.95433,0.382386 1.321555,0.705899 0.366846,0.323799 0.653192,0.746635 0.859229,1.268321 0.205468,0.522635 0.308439,1.15105 0.308439,1.88667 v 7.633092 l -3.128382,-9.5e-5 v -6.464 c 0,-0.382196 -0.0146,-0.742551 -0.04409,-1.081068 -0.02968,-0.338041 -0.110082,-0.632024 -0.242257,-0.882421 -0.132269,-0.249828 -0.327117,-0.44857 -0.583786,-0.595751 -0.257048,-0.146516 -0.605973,-0.220487 -1.046492,-0.220487 -0.440518,0 -0.796744,0.08508 -1.068489,0.253626 -0.271934,0.169401 -0.484703,0.390173 -0.63878,0.661935 -0.154172,0.272427 -0.257048,0.581128 -0.308344,0.926956 -0.05167,0.345448 -0.07718,0.694884 -0.07718,1.047834 v 6.353471 h -3.128097 v -6.397626 c 0,-0.338231 -0.0077,-0.672949 -0.02181,-1.003679 -0.01498,-0.33111 -0.07718,-0.636202 -0.187547,-0.915846 -0.110177,-0.279169 -0.293837,-0.503644 -0.55079,-0.673045 -0.257048,-0.168545 -0.635177,-0.253626 -1.134482,-0.253626 -0.147061,0 -0.341625,0.03314 -0.583692,0.09951 -0.242351,0.06618 -0.477497,0.19143 -0.704962,0.374979 -0.227939,0.184024 -0.4223133,0.44876 -0.5838809,0.794113 -0.1616625,0.345828 -0.2423515,0.797816 -0.2423515,1.356629 v 6.618492 l -3.1280025,9.5e-5 V 10.406647 Z"
|
||||||
|
id="path1"
|
||||||
|
style="fill:#666666;stroke:none;stroke-opacity:1;stroke-width:0.99972487;stroke-dasharray:none" />
|
||||||
|
<svg:path
|
||||||
|
d="m 25.841719,12.083561 c 0.322851,-0.485508 0.734261,-0.875015 1.233755,-1.169472 0.499115,-0.294077 1.06062,-0.503549 1.684987,-0.6287 0.624084,-0.124867 1.252055,-0.187632 1.883534,-0.187632 0.572882,0 1.152781,0.04064 1.740265,0.121258 0.58739,0.08119 1.123578,0.239478 1.608281,0.474492 0.484608,0.235205 0.881037,0.562707 1.18957,0.98165 0.308439,0.419134 0.462611,0.974434 0.462611,1.665804 v 5.934149 c 0,0.515418 0.02939,1.007572 0.08827,1.478172 0.05831,0.470884 0.161283,0.823834 0.308249,1.059038 h -3.172092 c -0.05888,-0.176617 -0.106764,-0.356557 -0.143268,-0.540581 -0.03698,-0.183549 -0.06267,-0.371086 -0.07709,-0.562422 -0.4994,0.514849 -1.087073,0.875205 -1.762168,1.081164 -0.675759,0.205388 -1.366024,0.3087 -2.070986,0.3087 -0.543584,0 -1.050285,-0.06628 -1.520196,-0.198457 C 26.82534,21.768261 26.414309,21.562493 26.061876,21.282564 25.709347,21.003585 25.434,20.65054 25.235738,20.224095 25.037476,19.79765 24.938203,19.289733 24.938203,18.701674 c 0,-0.646932 0.113685,-1.180297 0.341719,-1.599051 0.227466,-0.419418 0.521018,-0.753851 0.881322,-1.004154 0.359639,-0.249923 0.770764,-0.43746 1.233565,-0.562421 0.462515,-0.124867 0.928729,-0.223906 1.398735,-0.297876 0.470007,-0.07331 0.932523,-0.132273 1.387927,-0.176332 0.455215,-0.04425 0.859229,-0.110528 1.211663,-0.198742 0.352528,-0.08821 0.631289,-0.216688 0.837136,-0.385994 0.205278,-0.169116 0.300759,-0.41543 0.286346,-0.739229 0,-0.338041 -0.05499,-0.60667 -0.16517,-0.805127 -0.110082,-0.198457 -0.257048,-0.35314 -0.440519,-0.463383 -0.183659,-0.110243 -0.396618,-0.183834 -0.63878,-0.220771 -0.242446,-0.03627 -0.503381,-0.05508 -0.782048,-0.05508 -0.616877,0 -1.101485,0.132463 -1.454013,0.397199 -0.352339,0.264736 -0.558376,0.706184 -0.616878,1.32368 h -3.128097 c 0.04381,-0.735146 0.227086,-1.345804 0.5506,-1.830837 z m 6.179109,4.423311 c -0.198167,0.06609 -0.41122,0.121069 -0.638685,0.165318 -0.22775,0.04415 -0.466309,0.081 -0.715961,0.110243 -0.249842,0.02972 -0.499494,0.06628 -0.748957,0.110433 -0.235145,0.04378 -0.466403,0.103122 -0.693774,0.176333 -0.227939,0.07397 -0.426201,0.173009 -0.59488,0.29797 -0.169152,0.125056 -0.30493,0.283442 -0.407711,0.474208 -0.102876,0.19124 -0.154172,0.434041 -0.154172,0.728118 0,0.27917 0.0513,0.514849 0.154172,0.705615 0.102781,0.191525 0.242541,0.342219 0.41871,0.452463 0.17617,0.110243 0.381637,0.187632 0.616972,0.231501 0.234672,0.04425 0.477023,0.06628 0.72677,0.06628 0.616783,0 1.0939,-0.102742 1.432017,-0.30889 0.337642,-0.205674 0.587105,-0.452178 0.748957,-0.739229 0.161378,-0.28667 0.260651,-0.576569 0.29744,-0.871121 0.03641,-0.294077 0.05499,-0.529472 0.05499,-0.705899 v -1.169472 c -0.132364,0.11803 -0.297534,0.209851 -0.495891,0.27613 z"
|
||||||
|
id="Shape"
|
||||||
|
style="fill:#666666;stroke:none;stroke-opacity:1;stroke-width:0.99972487;stroke-dasharray:none" />
|
||||||
|
<svg:path
|
||||||
|
d="m 43.883533,10.406647 v 2.095858 h -2.290866 v 5.647857 c 0,0.529187 0.08799,0.882326 0.264349,1.058659 0.17598,0.176522 0.528698,0.264736 1.057396,0.264736 0.176264,0 0.344943,-0.0072 0.506606,-0.02203 0.161472,-0.01443 0.315739,-0.03684 0.462515,-0.06609 v 2.426777 c -0.264348,0.04415 -0.558185,0.0734 -0.881131,0.0884 -0.32304,0.01415 -0.63878,0.02184 -0.947219,0.02184 -0.484608,0 -0.94371,-0.03323 -1.376833,-0.09951 C 40.244943,21.757154 39.863211,21.62877 39.53287,21.43734 39.202339,21.246385 38.941593,20.973957 38.750822,20.621008 38.559671,20.268343 38.46438,19.804865 38.46438,19.230954 v -6.72845 H 36.569943 V 10.406647 H 38.46438 V 6.9871098 h 3.128193 v 3.4195372 z"
|
||||||
|
id="path2"
|
||||||
|
style="fill:#666666;stroke:none;stroke-opacity:1;stroke-width:0.99972487;stroke-dasharray:none" />
|
||||||
|
<svg:path
|
||||||
|
d="m 48.355373,10.406647 v 2.117982 h 0.04409 c 0.146586,-0.353234 0.344753,-0.680166 0.59469,-0.981935 0.249747,-0.301199 0.535904,-0.558813 0.859039,-0.772083 0.322851,-0.21289 0.668173,-0.378397 1.035683,-0.496427 0.366751,-0.11746 0.748862,-0.176522 1.14548,-0.176522 0.205563,0 0.432933,0.03703 0.68287,0.110433 v 2.912285 c -0.147061,-0.02963 -0.323325,-0.05545 -0.528698,-0.07729 -0.205752,-0.02213 -0.403919,-0.03323 -0.59488,-0.03323 -0.572787,0 -1.057395,0.09591 -1.453729,0.28686 -0.396524,0.191241 -0.715866,0.452083 -0.958312,0.783098 -0.242257,0.33111 -0.415203,0.716914 -0.517889,1.158267 -0.102687,0.441068 -0.154077,0.919359 -0.154077,1.434018 V 21.81232 H 45.381542 V 10.406647 Z"
|
||||||
|
id="path3"
|
||||||
|
style="fill:#666666;stroke:none;stroke-opacity:1;stroke-width:0.99972487;stroke-dasharray:none" />
|
||||||
|
<svg:path
|
||||||
|
d="m 54.038875,8.6416142 v -2.581175 h 3.128382 v 2.581175 z m 3.128382,1.7650328 V 21.812415 H 54.038875 V 10.406647 Z"
|
||||||
|
id="path4"
|
||||||
|
style="fill:#666666;stroke:none;stroke-opacity:1;stroke-width:0.99972487;stroke-dasharray:none" />
|
||||||
|
<svg:polygon
|
||||||
|
id="polygon4"
|
||||||
|
points="61.94725,21.81251 58.444912,21.81251 62.542225,15.811988 58.79725,10.406647 62.365866,10.406647 64.37067,13.384926 66.353382,10.406647 69.811915,10.406647 66.067035,15.745614 70.274715,21.81251 66.705815,21.81251 64.32658,18.216546 "
|
||||||
|
style="fill:#666666;stroke:none;stroke-opacity:1;stroke-width:0.99972487;stroke-dasharray:none" />
|
||||||
|
<svg:polygon
|
||||||
|
id="polygon5"
|
||||||
|
points="74.093837,0.73220178 71.900727,0.73220178 71.900727,9.495549e-05 74.93562,9.495549e-05 74.93562,31.981769 71.900727,31.981769 71.900727,31.249567 74.093837,31.249567 "
|
||||||
|
style="fill:#666666;stroke:none;stroke-opacity:1;stroke-width:0.99972487;stroke-dasharray:none" />
|
||||||
|
</svg:g>
|
||||||
|
</svg:g>
|
||||||
|
</svg:g>
|
||||||
|
<script />
|
||||||
|
<svg:metadata
|
||||||
|
id="metadata5">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:title>matrix logo white</dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</svg:metadata>
|
||||||
|
</svg:svg>
|
||||||
|
After Width: | Height: | Size: 9.6 KiB |
661
mas/LICENSE
Normal file
661
mas/LICENSE
Normal file
@@ -0,0 +1,661 @@
|
|||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
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.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
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 <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
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
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
9
mas/README.md
Normal file
9
mas/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# MAS assets
|
||||||
|
|
||||||
|
This directory is reserved for the Matrix Authentication Service release that will ship with this package.
|
||||||
|
|
||||||
|
- `mas-cli` is the upstream binary that currently provides the CLI and `server` subcommand used by `start.sh`.
|
||||||
|
- `share/` will contain the frontend assets, manifest, policy wasm, translations, and templates that MAS expects.
|
||||||
|
- `mas-config.template.yaml` is the Cloudron-aware configuration template that `start.sh` expands into `/app/data/configs/mas.yaml` at runtime.
|
||||||
|
|
||||||
|
During build time we will download the official `matrix-authentication-service` release (Docker or the prebuilt tarball) into this directory so that the package can start the MAS server as soon as the app boots.
|
||||||
BIN
mas/mas-cli
Executable file
BIN
mas/mas-cli
Executable file
Binary file not shown.
54
mas/mas-config.template.yaml
Normal file
54
mas/mas-config.template.yaml
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
# MAS configuration template for Cloudron per https://element-hq.github.io/matrix-authentication-service/setup/
|
||||||
|
|
||||||
|
server:
|
||||||
|
bind_address: "0.0.0.0"
|
||||||
|
port: ${MAS_PORT}
|
||||||
|
|
||||||
|
site:
|
||||||
|
base_url: "https://${MAS_DOMAIN}"
|
||||||
|
developer_mode: false
|
||||||
|
|
||||||
|
logging:
|
||||||
|
level: info
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
database:
|
||||||
|
provider: postgresql
|
||||||
|
host: "${CLOUDRON_POSTGRESQL_HOST}"
|
||||||
|
port: ${CLOUDRON_POSTGRESQL_PORT}
|
||||||
|
username: "${CLOUDRON_POSTGRESQL_USERNAME}"
|
||||||
|
password: "${CLOUDRON_POSTGRESQL_PASSWORD}"
|
||||||
|
database: "${CLOUDRON_POSTGRESQL_DATABASE}_mas"
|
||||||
|
|
||||||
|
oidc:
|
||||||
|
issuer: "https://${MAS_DOMAIN}"
|
||||||
|
clients:
|
||||||
|
- id: "synapse"
|
||||||
|
secret: "${MAS_OIDC_CLIENT_SECRET}"
|
||||||
|
redirect_uris:
|
||||||
|
- "${CLOUDRON_APP_ORIGIN}/_synapse/client/oidc/callback"
|
||||||
|
response_types:
|
||||||
|
- "code"
|
||||||
|
grant_types:
|
||||||
|
- "authorization_code"
|
||||||
|
- "refresh_token"
|
||||||
|
scopes:
|
||||||
|
- "openid"
|
||||||
|
- "profile"
|
||||||
|
- "email"
|
||||||
|
|
||||||
|
homeserver:
|
||||||
|
name: "${CLOUDRON_APP_DOMAIN}"
|
||||||
|
public_baseurl: "${CLOUDRON_APP_ORIGIN}"
|
||||||
|
discovery_url: "${CLOUDRON_APP_ORIGIN}/.well-known/openid-configuration"
|
||||||
|
|
||||||
|
assets:
|
||||||
|
frontend: "/app/pkg/mas/share/assets"
|
||||||
|
manifest: "/app/pkg/mas/share/manifest.json"
|
||||||
|
policy: "/app/pkg/mas/share/policy.wasm"
|
||||||
|
translations: "/app/pkg/mas/share/translations"
|
||||||
|
secrets:
|
||||||
|
encryption_file: "${MAS_ENCRYPTION_FILE}"
|
||||||
|
keys_dir: "/app/data/configs/mas-keys"
|
||||||
2
mas/share/assets/Avatar-B3RWCmae.js
Normal file
2
mas/share/assets/Avatar-B3RWCmae.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
import{r as f,a4 as u,w as m,j as g}from"./main-CiAhdYQG.js";const h="@",v="#",A="+",I=new Intl.Segmenter;function M(t){if(t.length<1)return"";const e=t[0];[h,v,A].includes(e)&&(t=t.substring(1));const a=I.segment(t)[Symbol.iterator]().next();return a.done?"":a.value.segment}const E="_avatar_1qbcf_8",R="_image_1qbcf_41",o={avatar:E,image:R,"avatar-imageless":"_avatar-imageless_1qbcf_52"};function X(t){return t.split("").reduce((r,n)=>r+n.charCodeAt(0),0)%6+1}function b(t){return!!(t.onClick||t.onKeyDown||t.onKeyUp)}const y=f.forwardRef(function({src:e,id:a,name:c="",type:r="round",className:n="",size:s,style:i={},onError:d,...l},_){return u.createElement(b(l)?"button":"span",{ref:_,role:"img","aria-label":a,...l,"data-type":r,"data-color":X(a),className:m(o.avatar,n,{[o["avatar-imageless"]]:!e}),style:{...i,"--cpd-avatar-size":s}},g.jsx(u.Fragment,{children:e?g.jsx("img",{loading:"lazy",alt:"",src:e,referrerPolicy:"no-referrer",className:m(o.image),"data-type":r,style:i,width:s,height:s,onError:d}):M(c)}))});export{y as A};
|
||||||
|
//# sourceMappingURL=Avatar-B3RWCmae.js.map
|
||||||
BIN
mas/share/assets/Avatar-B3RWCmae.js.br
Normal file
BIN
mas/share/assets/Avatar-B3RWCmae.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/Avatar-B3RWCmae.js.gz
Normal file
BIN
mas/share/assets/Avatar-B3RWCmae.js.gz
Normal file
Binary file not shown.
1
mas/share/assets/Avatar-B3RWCmae.js.map
Normal file
1
mas/share/assets/Avatar-B3RWCmae.js.map
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"Avatar-B3RWCmae.js","sources":["../node_modules/@vector-im/compound-web/dist/utils/string.js","../node_modules/@vector-im/compound-web/dist/components/Avatar/Avatar.module.css.js","../node_modules/@vector-im/compound-web/dist/components/Avatar/useIdColorHash.js","../node_modules/@vector-im/compound-web/dist/components/Avatar/Avatar.js"],"sourcesContent":["const MX_USERNAME_PREFIX = \"@\";\nconst MX_ROOM_PREFIX = \"#\";\nconst MX_ALIAS_PREFIX = \"+\";\nconst graphemeSegmenter = new Intl.Segmenter();\nfunction getInitialLetter(name) {\n if (name.length < 1) {\n return \"\";\n }\n const initial = name[0];\n if ([MX_USERNAME_PREFIX, MX_ROOM_PREFIX, MX_ALIAS_PREFIX].includes(initial)) {\n name = name.substring(1);\n }\n const result = graphemeSegmenter.segment(name)[Symbol.iterator]().next();\n return result.done ? \"\" : result.value.segment;\n}\nexport {\n MX_ALIAS_PREFIX,\n MX_ROOM_PREFIX,\n MX_USERNAME_PREFIX,\n getInitialLetter\n};\n//# sourceMappingURL=string.js.map\n","const avatar = \"_avatar_1qbcf_8\";\nconst image = \"_image_1qbcf_41\";\nconst styles = {\n avatar,\n image,\n \"avatar-imageless\": \"_avatar-imageless_1qbcf_52\",\n \"stacked-avatars\": \"_stacked-avatars_1qbcf_102\",\n \"clip-path\": \"_clip-path_1qbcf_121\"\n};\nexport {\n avatar,\n styles as default,\n image\n};\n//# sourceMappingURL=Avatar.module.css.js.map\n","function useIdColorHash(id) {\n const MIN = 1;\n const MAX = 6;\n const charCodeSum = id.split(\"\").reduce((sum, char) => {\n return sum + char.charCodeAt(0);\n }, 0);\n return charCodeSum % MAX + MIN;\n}\nexport {\n useIdColorHash\n};\n//# sourceMappingURL=useIdColorHash.js.map\n","import { jsx } from \"react/jsx-runtime\";\nimport classNames from \"classnames\";\nimport React, { forwardRef } from \"react\";\nimport { getInitialLetter } from \"../../utils/string.js\";\nimport styles from \"./Avatar.module.css.js\";\nimport { useIdColorHash } from \"./useIdColorHash.js\";\nfunction shouldBeAButton(props) {\n return !!(props.onClick || props.onKeyDown || props.onKeyUp);\n}\nconst Avatar = forwardRef(function Avatar2({\n src,\n id,\n name = \"\",\n type = \"round\",\n className = \"\",\n size,\n style = {},\n onError,\n ...props\n}, ref) {\n return React.createElement(\n shouldBeAButton(props) ? \"button\" : \"span\",\n {\n ref,\n role: \"img\",\n // Default the aria-label to id\n \"aria-label\": id,\n ...props,\n \"data-type\": type,\n \"data-color\": useIdColorHash(id),\n className: classNames(styles.avatar, className, {\n [styles[\"avatar-imageless\"]]: !src\n }),\n style: {\n ...style,\n \"--cpd-avatar-size\": size\n }\n },\n /* @__PURE__ */ jsx(React.Fragment, { children: !src ? getInitialLetter(name) : /* @__PURE__ */ jsx(\n \"img\",\n {\n loading: \"lazy\",\n alt: \"\",\n src,\n referrerPolicy: \"no-referrer\",\n className: classNames(styles.image),\n \"data-type\": type,\n style,\n width: size,\n height: size,\n onError\n }\n ) })\n );\n});\nexport {\n Avatar\n};\n//# sourceMappingURL=Avatar.js.map\n"],"names":["MX_USERNAME_PREFIX","MX_ROOM_PREFIX","MX_ALIAS_PREFIX","graphemeSegmenter","getInitialLetter","name","initial","result","avatar","image","styles","useIdColorHash","id","sum","char","shouldBeAButton","props","Avatar","forwardRef","src","type","className","size","style","onError","ref","React","classNames","jsx"],"mappings":"6DAAA,MAAMA,EAAqB,IACrBC,EAAiB,IACjBC,EAAkB,IAClBC,EAAoB,IAAI,KAAK,UACnC,SAASC,EAAiBC,EAAM,CAC9B,GAAIA,EAAK,OAAS,EAChB,MAAO,GAET,MAAMC,EAAUD,EAAK,CAAC,EAClB,CAACL,EAAoBC,EAAgBC,CAAe,EAAE,SAASI,CAAO,IACxED,EAAOA,EAAK,UAAU,CAAC,GAEzB,MAAME,EAASJ,EAAkB,QAAQE,CAAI,EAAE,OAAO,QAAQ,EAAC,EAAG,KAAI,EACtE,OAAOE,EAAO,KAAO,GAAKA,EAAO,MAAM,OACzC,CCdA,MAAMC,EAAS,kBACTC,EAAQ,kBACRC,EAAS,CACb,OAAAF,EACA,MAAAC,EACA,mBAAoB,4BAGtB,ECRA,SAASE,EAAeC,EAAI,CAM1B,OAHoBA,EAAG,MAAM,EAAE,EAAE,OAAO,CAACC,EAAKC,IACrCD,EAAMC,EAAK,WAAW,CAAC,EAC7B,CAAC,EACiB,EAAM,CAC7B,CCDA,SAASC,EAAgBC,EAAO,CAC9B,MAAO,CAAC,EAAEA,EAAM,SAAWA,EAAM,WAAaA,EAAM,QACtD,CACK,MAACC,EAASC,EAAAA,WAAW,SAAiB,CACzC,IAAAC,EACA,GAAAP,EACA,KAAAP,EAAO,GACP,KAAAe,EAAO,QACP,UAAAC,EAAY,GACZ,KAAAC,EACA,MAAAC,EAAQ,CAAA,EACR,QAAAC,EACA,GAAGR,CACL,EAAGS,EAAK,CACN,OAAOC,EAAM,cACXX,EAAgBC,CAAK,EAAI,SAAW,OACpC,CACE,IAAAS,EACA,KAAM,MAEN,aAAcb,EACd,GAAGI,EACH,YAAaI,EACb,aAAcT,EAAeC,CAAE,EAC/B,UAAWe,EAAWjB,EAAO,OAAQW,EAAW,CAC9C,CAACX,EAAO,kBAAkB,CAAC,EAAG,CAACS,CACvC,CAAO,EACD,MAAO,CACL,GAAGI,EACH,oBAAqBD,CAC7B,CACA,EACoBM,MAAIF,EAAM,SAAU,CAAE,SAAWP,EAA+CS,EAAAA,IAC9F,MACA,CACE,QAAS,OACT,IAAK,GACL,IAAAT,EACA,eAAgB,cAChB,UAAWQ,EAAWjB,EAAO,KAAK,EAClC,YAAaU,EACb,MAAAG,EACA,MAAOD,EACP,OAAQA,EACR,QAAAE,CACR,CACA,EAd2DpB,EAAiBC,CAAI,CAc3E,CAAE,CACP,CACA,CAAC","x_google_ignoreList":[0,1,2,3]}
|
||||||
BIN
mas/share/assets/Avatar-B3RWCmae.js.zz
Normal file
BIN
mas/share/assets/Avatar-B3RWCmae.js.zz
Normal file
Binary file not shown.
1
mas/share/assets/ButtonLink-C4AMHHR_.css
Normal file
1
mas/share/assets/ButtonLink-C4AMHHR_.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
a._button-link_x5txo_8[href]{inline-size:initial}
|
||||||
2
mas/share/assets/ButtonLink-kWcKQZoZ.js
Normal file
2
mas/share/assets/ButtonLink-kWcKQZoZ.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
import{ag as e,r as i,j as r,B as c,w as l}from"./main-CiAhdYQG.js";const u="_button-link_x5txo_8",b={buttonLink:u},x=e(i.forwardRef(({children:s,className:a,...t},n)=>{const o=!!t.disabled||!!t["aria-disabled"]||!1;return r.jsx(c,{as:"a",...t,className:l(b.buttonLink,a),disabled:o,ref:n,children:s})}));export{x as B};
|
||||||
|
//# sourceMappingURL=ButtonLink-kWcKQZoZ.js.map
|
||||||
1
mas/share/assets/ButtonLink-kWcKQZoZ.js.map
Normal file
1
mas/share/assets/ButtonLink-kWcKQZoZ.js.map
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"ButtonLink-kWcKQZoZ.js","sources":["../src/components/ButtonLink.tsx"],"sourcesContent":["// Copyright 2024, 2025 New Vector Ltd.\n// Copyright 2024 The Matrix.org Foundation C.I.C.\n//\n// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial\n// Please see LICENSE files in the repository root for full details.\n\nimport { createLink } from \"@tanstack/react-router\";\nimport { Button } from \"@vector-im/compound-web\";\nimport cx from \"classnames\";\nimport { forwardRef, type PropsWithChildren } from \"react\";\nimport styles from \"./ButtonLink.module.css\";\n\ntype Props = {\n kind?: \"primary\" | \"secondary\" | \"tertiary\";\n size?: \"sm\" | \"lg\";\n Icon?: React.ComponentType<React.SVGAttributes<SVGElement>>;\n destructive?: boolean;\n disabled?: boolean;\n className?: string;\n} & React.AnchorHTMLAttributes<HTMLAnchorElement>;\n\nexport const ButtonLink = createLink(\n forwardRef<HTMLAnchorElement, PropsWithChildren<Props>>(\n ({ children, className, ...props }, ref) => {\n const disabled = !!props.disabled || !!props[\"aria-disabled\"] || false;\n return (\n <Button\n as=\"a\"\n {...props}\n className={cx(styles.buttonLink, className)}\n disabled={disabled}\n ref={ref}\n >\n {children}\n </Button>\n );\n },\n ),\n);\n"],"names":["ButtonLink","createLink","forwardRef","children","className","props","ref","disabled","jsx","Button","cx","styles"],"mappings":"oHAqBaA,EAAaC,EACxBC,EAAAA,WACE,CAAC,CAAE,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAAQ,CAC1C,MAAMC,EAAW,CAAC,CAACF,EAAM,UAAY,CAAC,CAACA,EAAM,eAAe,GAAK,GACjE,OACEG,EAAAA,IAACC,EAAA,CACC,GAAG,IACF,GAAGJ,EACJ,UAAWK,EAAGC,EAAO,WAAYP,CAAS,EAC1C,SAAAG,EACA,IAAAD,EAEC,SAAAH,CAAA,CAAA,CAGP,CAAA,CAEJ"}
|
||||||
21
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js
Normal file
21
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import{r as l,j as e,u as _,w as p,ag as A,D as I,e as B,G as C,B as m,N as v,h as S,i as q,c as w,d as x,l as y,k as h,b as T}from"./main-CiAhdYQG.js";import{I as k,C as E}from"./computer-Cx9wZ7Nf.js";function f(s,n){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:n,...s,children:e.jsx("path",{d:"M7 23q-.824 0-1.412-.587A1.93 1.93 0 0 1 5 21V3q0-.824.588-1.412A1.93 1.93 0 0 1 7 1h10q.824 0 1.413.587Q19 2.176 19 3v18q0 .824-.587 1.413A1.93 1.93 0 0 1 17 23zm0-5h10V6H7z"})})}f.displayName="MobileIcon";const M=l.forwardRef(f);function b(s,n){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:n,...s,children:[e.jsx("path",{d:"M5 21q-.824 0-1.412-.587A1.93 1.93 0 0 1 3 19V5q0-.824.587-1.412A1.93 1.93 0 0 1 5 3h14q.824 0 1.413.587Q21 4.176 21 5v14q0 .824-.587 1.413A1.93 1.93 0 0 1 19 21zm0-2h14V5H5z"}),e.jsx("path",{d:"M11 10a1 1 0 1 1 1.479.878c-.31.17-.659.413-.94.741-.286.334-.539.8-.539 1.381a1 1 0 0 0 2 .006.3.3 0 0 1 .057-.085 1.4 1.4 0 0 1 .382-.288A3 3 0 1 0 9 10a1 1 0 1 0 2 0m1.999 3.012v-.005zM12 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})]})}b.displayName="UnknownIcon";const L=l.forwardRef(b);function j(s,n){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:n,...s,children:e.jsx("path",{d:"M4 20q-.824 0-1.412-.587A1.93 1.93 0 0 1 2 18V6q0-.824.587-1.412A1.93 1.93 0 0 1 4 4h16q.824 0 1.413.588Q22 5.175 22 6v12q0 .824-.587 1.413A1.93 1.93 0 0 1 20 20zm0-2h16V8H4z"})})}j.displayName="WebBrowserIcon";const R=l.forwardRef(j),D="_device-type-icon_10tr1_8",O={deviceTypeIcon:D},Q={UNKNOWN:L,PC:k,MOBILE:M,TABLET:R},K=({deviceType:s})=>{const{t:n}=_(),a=Q[s],i={UNKNOWN:n("frontend.device_type_icon_label.unknown"),PC:n("frontend.device_type_icon_label.pc"),MOBILE:n("frontend.device_type_icon_label.mobile"),TABLET:n("frontend.device_type_icon_label.tablet")}[s];return e.jsx(a,{className:O.deviceTypeIcon,"aria-label":i})},z="_session-card-root_8sc98_8",H="_action_8sc98_13",U="_session-card_8sc98_8",V="_card-header_8sc98_13",P="_disabled_8sc98_59",W="_compact_8sc98_65",F="_content_8sc98_75",$="_name_8sc98_84",G="_client_8sc98_94",J="_metadata_8sc98_109",X="_key_8sc98_118",Y="_value_8sc98_124",t={sessionCardRoot:z,action:H,sessionCard:U,cardHeader:V,disabled:P,compact:W,content:F,name:$,client:G,metadata:J,key:X,value:Y},re=({children:s})=>e.jsx("section",{className:t.sessionCardRoot,children:s}),ce=A(l.forwardRef(({children:s,compact:n,className:a,...o},i)=>{const r=!!o.disabled||!!o["aria-disabled"]||!1;return e.jsx("a",{className:p(a,t.sessionCard,n&&t.compact,r&&t.disabled),...o,ref:i,children:s})})),Z=({children:s,compact:n,disabled:a})=>e.jsx("div",{className:p(t.sessionCard,n&&t.compact,a&&t.disabled),children:s}),ee=({type:s,children:n})=>e.jsxs("header",{className:t.cardHeader,children:[e.jsx(K,{deviceType:s}),e.jsx("div",{className:t.content,children:n})]}),se=({name:s})=>e.jsx("div",{className:t.name,children:s}),ne=({name:s,logoUri:n})=>e.jsxs("div",{className:t.client,children:[e.jsx(E,{name:s,size:"var(--cpd-space-5x)",logoUri:n}),s]}),de=({children:s})=>e.jsx("ul",{className:t.metadata,children:s}),le=({label:s,children:n})=>e.jsxs("li",{children:[e.jsx("div",{className:t.key,children:s}),e.jsx("div",{className:t.value,children:n})]}),ue=({children:s})=>e.jsx("div",{className:t.action,children:s}),oe=({children:s,mutation:n,size:a})=>{const[o,i]=l.useState(!1),{t:r}=_(),u=c=>{c.preventDefault(),n.mutate(void 0,{onSuccess:()=>i(!1)})};return e.jsxs(I,{open:o,onOpenChange:i,trigger:e.jsx(m,{kind:"secondary",destructive:!0,size:a,Icon:v,children:r("frontend.end_session_button.text")}),children:[e.jsx(B,{children:r("frontend.end_session_button.confirmation_modal_title")}),s&&e.jsx(C,{children:s}),e.jsxs(m,{type:"button",kind:"primary",destructive:!0,onClick:u,disabled:n.isPending,Icon:n.isPending?void 0:v,children:[n.isPending&&e.jsx(S,{inline:!0}),r("frontend.end_session_button.text")]}),e.jsx(q,{asChild:!0,children:e.jsx(m,{kind:"tertiary",children:r("action.cancel")})})]})},te=h(`
|
||||||
|
fragment EndBrowserSessionButton_session on BrowserSession {
|
||||||
|
id
|
||||||
|
userAgent {
|
||||||
|
name
|
||||||
|
os
|
||||||
|
model
|
||||||
|
deviceType
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),g=h(`
|
||||||
|
mutation EndBrowserSession($id: ID!) {
|
||||||
|
endBrowserSession(input: { browserSessionId: $id }) {
|
||||||
|
status
|
||||||
|
browserSession {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),me=(s,n)=>{const a=w();return x({mutationFn:()=>y({query:g,variables:{id:s}}),onSuccess:i=>{a.invalidateQueries({queryKey:["sessionsOverview"]}),a.invalidateQueries({queryKey:["browserSessionList"]}),a.invalidateQueries({queryKey:["sessionDetail",i.endBrowserSession.browserSession?.id]}),window.location.reload()}})},_e=({session:s,size:n})=>{const{t:a}=_(),o=T(te,s),i=w(),r=x({mutationFn:()=>y({query:g,variables:{id:o.id}}),onSuccess:N=>{i.invalidateQueries({queryKey:["sessionsOverview"]}),i.invalidateQueries({queryKey:["appSessionList"]}),i.invalidateQueries({queryKey:["sessionDetail",N.endBrowserSession.browserSession?.id]})}}),u=o.userAgent?.deviceType??"UNKNOWN";let c=null,d=null;return o.userAgent?.model?(c=o.userAgent.model,o.userAgent?.name&&(o.userAgent?.os?d=a("frontend.session.name_for_platform",{name:o.userAgent.name,platform:o.userAgent.os}):d=o.userAgent.name)):(c=o.userAgent?.name??a("frontend.session.unknown_browser"),d=o.userAgent?.os??null),e.jsx(oe,{mutation:r,size:n,children:e.jsx(Z,{compact:!0,children:e.jsxs(ee,{type:u,children:[e.jsx(se,{name:c}),d&&e.jsx(ne,{name:d})]})})})};export{ue as A,Z as B,ne as C,_e as E,ee as H,le as I,ce as L,de as M,se as N,re as R,oe as a,me as u};
|
||||||
|
//# sourceMappingURL=EndBrowserSessionButton-DXsnVcVV.js.map
|
||||||
BIN
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js.br
Normal file
BIN
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js.gz
Normal file
BIN
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js.gz
Normal file
Binary file not shown.
1
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js.map
Normal file
1
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js.zz
Normal file
BIN
mas/share/assets/EndBrowserSessionButton-DXsnVcVV.js.zz
Normal file
Binary file not shown.
1
mas/share/assets/EndBrowserSessionButton-b2eg7MjM.css
Normal file
1
mas/share/assets/EndBrowserSessionButton-b2eg7MjM.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
._device-type-icon_10tr1_8{color:var(--cpd-color-icon-secondary);background-color:var(--cpd-color-bg-subtle-secondary);box-sizing:content-box;height:var(--cpd-space-6x);width:var(--cpd-space-6x);padding:var(--cpd-space-2x);border-radius:var(--cpd-space-2x)}._session-card-root_8sc98_8{position:relative}@media screen and (min-width: 768px){._session-card-root_8sc98_8:has(._action_8sc98_13) ._session-card_8sc98_8 ._card-header_8sc98_13{padding-inline-end:calc(var(--cpd-space-16x) + 10ch)}}@media screen and (max-width: 767px){._session-card-root_8sc98_8:has(._action_8sc98_13) ._session-card_8sc98_8{padding-block-end:calc(var(--cpd-space-9x) + var(--cpd-space-6x) + var(--cpd-space-6x))}}._session-card_8sc98_8{display:flex;gap:var(--cpd-space-4x);flex-direction:column;text-align:start;border-radius:var(--cpd-space-4x);background-color:var(--cpd-color-bg-canvas-default);outline:1px solid var(--cpd-color-border-interactive-secondary);outline-offset:-1px;box-shadow:0 1.2px 2.4px #00000026;padding:var(--cpd-space-6x)}._session-card_8sc98_8._disabled_8sc98_59{outline-color:var(--cpd-color-border-disabled);background-color:var(--cpd-color-bg-canvas-disabled);box-shadow:none}._session-card_8sc98_8._compact_8sc98_65{box-shadow:none;padding:var(--cpd-space-3x)}._session-card_8sc98_8 ._card-header_8sc98_13{display:flex;gap:var(--cpd-space-4x);align-items:center}:is(._session-card_8sc98_8 ._card-header_8sc98_13) ._content_8sc98_75{display:flex;flex-direction:column;flex:0 1 auto;min-width:0}._auto_8sc98_83:is(:is(._session-card_8sc98_8 ._card-header_8sc98_13) ._content_8sc98_75) div:first-child,:is(:is(._session-card_8sc98_8 ._card-header_8sc98_13) ._content_8sc98_75) ._name_8sc98_84{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:var(--cpd-font-body-md-semibold);letter-spacing:var(--cpd-font-letter-spacing-body-md);color:var(--cpd-color-text-primary)}._auto_8sc98_83:is(:is(._session-card_8sc98_8 ._card-header_8sc98_13) ._content_8sc98_75) div:not(:first-child),:is(:is(._session-card_8sc98_8 ._card-header_8sc98_13) ._content_8sc98_75) ._client_8sc98_94{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:var(--cpd-font-body-sm-regular);letter-spacing:var(--cpd-font-letter-spacing-body-sm);color:var(--cpd-color-text-secondary)}:is(._auto_8sc98_83:is(:is(._session-card_8sc98_8 ._card-header_8sc98_13) ._content_8sc98_75) div:not(:first-child),:is(:is(._session-card_8sc98_8 ._card-header_8sc98_13) ._content_8sc98_75) ._client_8sc98_94) img{margin-inline-end:var(--cpd-space-1x)}._session-card_8sc98_8 ._metadata_8sc98_109{display:flex;flex-wrap:wrap;gap:var(--cpd-space-4x) var(--cpd-space-10x)}:is(._session-card_8sc98_8 ._metadata_8sc98_109)>*{min-width:0}:is(._session-card_8sc98_8 ._metadata_8sc98_109) ._key_8sc98_118{font:var(--cpd-font-body-sm-regular);letter-spacing:var(--cpd-font-letter-spacing-body-sm);color:var(--cpd-color-text-secondary)}:is(._session-card_8sc98_8 ._metadata_8sc98_109) ._value_8sc98_124{font:var(--cpd-font-body-md-regular);letter-spacing:var(--cpd-font-letter-spacing-body-md);color:var(--cpd-color-text-primary);overflow:hidden;text-overflow:ellipsis}a._session-card_8sc98_8:not(._disabled_8sc98_59){transition-property:outline-color,box-shadow;transition-duration:.1s;transition-timing-function:linear}a._session-card_8sc98_8:not(._disabled_8sc98_59):hover,a._session-card_8sc98_8:not(._disabled_8sc98_59):focus-visible{box-shadow:none;outline:2px solid var(--cpd-color-border-interactive-hovered);outline-offset:-2px}a._session-card_8sc98_8:not(._disabled_8sc98_59):focus-visible{outline-color:var(--cpd-color-border-focused)}@media screen and (min-width: 768px){._session-card-root_8sc98_8 ._action_8sc98_13{position:absolute;padding:var(--cpd-space-6x) var(--cpd-space-6x) var(--cpd-space-2x) var(--cpd-space-2x);inset-block-start:0;inset-inline-end:0}}@media screen and (max-width: 767px){._session-card-root_8sc98_8 ._action_8sc98_13{display:flex;flex-direction:column;position:absolute;padding:var(--cpd-space-6x);inset-block-end:0;inset-inline:0}}
|
||||||
BIN
mas/share/assets/EndBrowserSessionButton-b2eg7MjM.css.br
Normal file
BIN
mas/share/assets/EndBrowserSessionButton-b2eg7MjM.css.br
Normal file
Binary file not shown.
BIN
mas/share/assets/EndBrowserSessionButton-b2eg7MjM.css.gz
Normal file
BIN
mas/share/assets/EndBrowserSessionButton-b2eg7MjM.css.gz
Normal file
Binary file not shown.
BIN
mas/share/assets/EndBrowserSessionButton-b2eg7MjM.css.zz
Normal file
BIN
mas/share/assets/EndBrowserSessionButton-b2eg7MjM.css.zz
Normal file
Binary file not shown.
52
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js
Normal file
52
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
import{u as l,c as p,d as S,l as g,k as r,b as y,j as t}from"./main-CiAhdYQG.js";import{a as v,B as A,H as N,N as E,C as h}from"./EndBrowserSessionButton-DXsnVcVV.js";const T=s=>{let n;try{n=new URL(s)}catch{return s}return n.search="",n.hash="",n.protocol==="https:"?n.hostname:n.toString()},I=r(`
|
||||||
|
fragment EndCompatSessionButton_session on CompatSession {
|
||||||
|
id
|
||||||
|
userAgent {
|
||||||
|
name
|
||||||
|
os
|
||||||
|
model
|
||||||
|
deviceType
|
||||||
|
}
|
||||||
|
ssoLogin {
|
||||||
|
id
|
||||||
|
redirectUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),f=r(`
|
||||||
|
mutation EndCompatSession($id: ID!) {
|
||||||
|
endCompatSession(input: { compatSessionId: $id }) {
|
||||||
|
status
|
||||||
|
compatSession {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),D=({session:s,size:n})=>{const{t:i}=l(),e=y(I,s),o=p(),c=S({mutationFn:()=>g({query:f,variables:{id:e.id}}),onSuccess:m=>{o.invalidateQueries({queryKey:["sessionsOverview"]}),o.invalidateQueries({queryKey:["appSessionList"]}),o.invalidateQueries({queryKey:["sessionDetail",m.endCompatSession.compatSession?.id]})}}),a=e.ssoLogin?.redirectUri?T(e.ssoLogin.redirectUri):void 0,u=e.userAgent?.deviceType??"UNKNOWN",d=e.userAgent?.model??(e.userAgent?.name?e.userAgent?.os?i("frontend.session.name_for_platform",{name:e.userAgent.name,platform:e.userAgent.os}):e.userAgent.name:i("frontend.session.unknown_device"));return t.jsx(v,{mutation:c,size:n,children:t.jsx(A,{compact:!0,children:t.jsxs(N,{type:u,children:[t.jsx(E,{name:d}),a&&t.jsx(h,{name:a})]})})})},_="urn:matrix:org.matrix.msc2967.client:device:",x="urn:matrix:client:device:",B=s=>{const[,n]=s.split(x),[,i]=s.split(_);return n||i},O=r(`
|
||||||
|
fragment EndOAuth2SessionButton_session on Oauth2Session {
|
||||||
|
id
|
||||||
|
|
||||||
|
userAgent {
|
||||||
|
name
|
||||||
|
model
|
||||||
|
os
|
||||||
|
deviceType
|
||||||
|
}
|
||||||
|
|
||||||
|
client {
|
||||||
|
clientId
|
||||||
|
clientName
|
||||||
|
applicationType
|
||||||
|
logoUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),C=r(`
|
||||||
|
mutation EndOAuth2Session($id: ID!) {
|
||||||
|
endOauth2Session(input: { oauth2SessionId: $id }) {
|
||||||
|
status
|
||||||
|
oauth2Session {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),U=s=>s==="WEB"?"PC":s==="NATIVE"?"MOBILE":"UNKNOWN",F=({session:s,size:n})=>{const{t:i}=l(),e=y(O,s),o=p(),c=S({mutationFn:()=>g({query:C,variables:{id:e.id}}),onSuccess:m=>{o.invalidateQueries({queryKey:["sessionsOverview"]}),o.invalidateQueries({queryKey:["appSessionList"]}),o.invalidateQueries({queryKey:["sessionDetail",m.endOauth2Session.oauth2Session?.id]})}}),a=(e.userAgent?.deviceType==="UNKNOWN"?null:e.userAgent?.deviceType)??U(e.client.applicationType),u=e.client.clientName||e.client.clientId,d=e.userAgent?.model??(e.userAgent?.name?e.userAgent?.os?i("frontend.session.name_for_platform",{name:e.userAgent.name,platform:e.userAgent.os}):e.userAgent.name:i("frontend.session.unknown_device"));return t.jsx(v,{mutation:c,size:n,children:t.jsx(A,{compact:!0,children:t.jsxs(N,{type:a,children:[t.jsx(E,{name:d}),t.jsx(h,{name:u,logoUri:e.client.logoUri??void 0})]})})})};export{D as E,F as a,B as g,T as s};
|
||||||
|
//# sourceMappingURL=EndOAuth2SessionButton-CPWjVtc_.js.map
|
||||||
BIN
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js.br
Normal file
BIN
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js.gz
Normal file
BIN
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js.gz
Normal file
Binary file not shown.
1
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js.map
Normal file
1
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js.zz
Normal file
BIN
mas/share/assets/EndOAuth2SessionButton-CPWjVtc_.js.zz
Normal file
Binary file not shown.
16
mas/share/assets/Filter-_9i8iQpA.js
Normal file
16
mas/share/assets/Filter-_9i8iQpA.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import{u as _,b as x,j as s,k as g,r as f,w as u,ag as p,C as w}from"./main-CiAhdYQG.js";import{p as d,L as h,D as j,B as v}from"./LastActive-D4SP35FS.js";import{R as b,L as N,H as y,N as B,C as F,M as S,I as m,A as I,E as L}from"./EndBrowserSessionButton-DXsnVcVV.js";const E=""+new URL("chrome_64x64-TTj2uZYF.png",import.meta.url).href,R=""+new URL("firefox_64x64-sbBPu9C9.png",import.meta.url).href,T=""+new URL("safari_64x64-DJVjfeAY.png",import.meta.url).href,C=g(`
|
||||||
|
fragment BrowserSession_session on BrowserSession {
|
||||||
|
id
|
||||||
|
createdAt
|
||||||
|
finishedAt
|
||||||
|
...EndBrowserSessionButton_session
|
||||||
|
userAgent {
|
||||||
|
deviceType
|
||||||
|
name
|
||||||
|
os
|
||||||
|
model
|
||||||
|
}
|
||||||
|
lastActiveAt
|
||||||
|
}
|
||||||
|
`),U=r=>{const t=r?.toLowerCase();if(t?.includes("chrome")||t?.includes("chromium"))return E;if(t?.includes("firefox"))return R;if(t?.includes("safari"))return T},G=({session:r,isCurrent:t})=>{const e=x(C,r),{t:n}=_(),a=e.userAgent?.deviceType??"UNKNOWN";let o=null,i=null;e.userAgent?.model?(o=e.userAgent.model,e.userAgent?.name&&(e.userAgent?.os?i=n("frontend.session.name_for_platform",{name:e.userAgent.name,platform:e.userAgent.os}):i=e.userAgent.name)):(o=e.userAgent?.name??n("frontend.session.unknown_browser"),i=e.userAgent?.os??null);const A=d(e.createdAt),c=e.lastActiveAt?d(e.lastActiveAt):void 0;return s.jsxs(b,{children:[s.jsxs(N,{to:"/sessions/$id",params:{id:e.id},disabled:!!e.finishedAt,children:[s.jsxs(y,{type:a,children:[s.jsx(B,{name:o}),i&&s.jsx(F,{name:i,logoUri:U(e.userAgent?.name??void 0)})]}),s.jsxs(S,{children:[c&&!t&&s.jsx(m,{label:n("frontend.session.last_active_label"),children:s.jsx(h,{lastActive:c})}),s.jsx(m,{label:n("frontend.session.signed_in_label"),children:s.jsx(j,{datetime:A})}),t&&s.jsx(v,{kind:"green",className:"self-center",children:n("frontend.session.current")})]})]}),!e.finishedAt&&s.jsx(I,{children:s.jsx(L,{session:e,size:"sm"})})]})},k="_empty-state_1lwui_8",D={emptyState:k},J=f.forwardRef(function({children:t,...e},n){const a=u(D.emptyState,e.className);return s.jsx("div",{ref:n,...e,className:a,children:t})}),M="_filter_nv8wu_8",H="_enabled-filter_nv8wu_18",O="_close-icon_nv8wu_22",Y="_disabled-filter_nv8wu_43",l={filter:M,enabledFilter:H,closeIcon:O,disabledFilter:Y},K=p(f.forwardRef(function({children:t,enabled:e,...n},a){const o=u(l.filter,e?l.enabledFilter:l.disabledFilter,n.className);return s.jsxs("a",{...n,ref:a,className:o,children:[t,e&&s.jsx(w,{className:l.closeIcon})]})}));export{G as B,J as E,K as F,U as b};
|
||||||
|
//# sourceMappingURL=Filter-_9i8iQpA.js.map
|
||||||
BIN
mas/share/assets/Filter-_9i8iQpA.js.br
Normal file
BIN
mas/share/assets/Filter-_9i8iQpA.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/Filter-_9i8iQpA.js.gz
Normal file
BIN
mas/share/assets/Filter-_9i8iQpA.js.gz
Normal file
Binary file not shown.
1
mas/share/assets/Filter-_9i8iQpA.js.map
Normal file
1
mas/share/assets/Filter-_9i8iQpA.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/Filter-_9i8iQpA.js.zz
Normal file
BIN
mas/share/assets/Filter-_9i8iQpA.js.zz
Normal file
Binary file not shown.
1
mas/share/assets/Filter-lwtJLR9L.css
Normal file
1
mas/share/assets/Filter-lwtJLR9L.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
._empty-state_1lwui_8{display:flex;flex-direction:column;gap:var(--cpd-space-2x);padding:var(--cpd-space-4x);background:var(--cpd-color-gray-200);color:var(--cpd-color-text-secondary);font:var(--cpd-font-body-sm-regular);letter-spacing:var(--cpd-font-letter-spacing-body-sm)}._filter_nv8wu_8{display:flex;align-items:center;gap:var(--cpd-space-2x);font:var(--cpd-font-body-xs-regular);letter-spacing:var(--cpd-font-letter-spacing-body-xs);padding:var(--cpd-space-2x) var(--cpd-space-3x);border-radius:var(--cpd-radius-pill-effect)}._enabled-filter_nv8wu_18{background:var(--cpd-color-bg-action-primary-rest);color:var(--cpd-color-text-on-solid-primary)}._enabled-filter_nv8wu_18>._close-icon_nv8wu_22{height:var(--cpd-space-4x);width:var(--cpd-space-4x);opacity:.5}._enabled-filter_nv8wu_18:hover{background:var(--cpd-color-bg-action-primary-hovered)}._enabled-filter_nv8wu_18:hover>._close-icon_nv8wu_22{opacity:1}._enabled-filter_nv8wu_18:active{background:var(--cpd-color-bg-action-primary-rest)}._enabled-filter_nv8wu_18:active>._close-icon_nv8wu_22{opacity:1}._disabled-filter_nv8wu_43{color:var(--cpd-color-text-action-primary);background:var(--cpd-color-bg-canvas-default);outline:1px solid var(--cpd-color-border-interactive-secondary)}._disabled-filter_nv8wu_43:hover{background:var(--cpd-color-bg-subtle-secondary)}
|
||||||
BIN
mas/share/assets/Filter-lwtJLR9L.css.br
Normal file
BIN
mas/share/assets/Filter-lwtJLR9L.css.br
Normal file
Binary file not shown.
BIN
mas/share/assets/Filter-lwtJLR9L.css.gz
Normal file
BIN
mas/share/assets/Filter-lwtJLR9L.css.gz
Normal file
Binary file not shown.
3
mas/share/assets/Filter-lwtJLR9L.css.zz
Normal file
3
mas/share/assets/Filter-lwtJLR9L.css.zz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
xÚ¥TAŽÛ0¼÷9Vïl`¿bÈ•%<25>¢Aÿ^Øi€x{·íÅ€8r8¤µ¯±‹<BbÉXÜ9ÛúxÑ6E'Dzu8TÓ´%Tlƒ/Up¹ó•‘±ì%}PQCŠR!ƒ¨¢ÔÚzó€½
|
||||||
|
¢j¤úi(d¯ï`\ 0$G(^^D5ŸpÆ<70>!¡
|
||||||
|
^KEÕÏw—¦#4A<34><41>: 4ÙI•Cf¤YÀRÒ|}‰ÞØâ×¾nc¤Ú÷Çsþè†tÖx°Œ]*zFZµbUã<55>þGã<47>Ö].±û{<7B>œ¤‘€¤¶9ݱ®ˆÖ9À¶EÅSÿèeãPÇÃñ²1¿Æ€œ÷"ÙNÒ„‰7§<¤à¬¾16*¿ïkåBB°*ø?Ñ¢¸œÐš?]µ³Õ|zŠ„ÉKËý<C38B>õzå)ôH×ïLA->˺ÒËMÖaƒ?UìñÆðiÎ/ˆÒ6=ÉðözÙñRËæÐPÒ÷2<C3B7>ÆVfÇ¢
|
||||||
2
mas/share/assets/Heading-zTQC9Kqs.js
Normal file
2
mas/share/assets/Heading-zTQC9Kqs.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
import{j as t,av as r,T as o}from"./main-CiAhdYQG.js";const a=({as:s="h1",children:e,...i})=>t.jsx(r,{as:s,type:"heading",...i,children:e}),h=({children:s,...e})=>t.jsx(a,{as:"h3",weight:"semibold",size:"md",...e,children:s}),m=({children:s,...e})=>t.jsx(a,{as:"h4",weight:"semibold",size:"sm",...e,children:s}),x=({children:s,...e})=>t.jsx(o,{as:"h5",weight:"semibold",size:"lg",...e,children:s});export{a as H,m as a,h as b,x as c};
|
||||||
|
//# sourceMappingURL=Heading-zTQC9Kqs.js.map
|
||||||
1
mas/share/assets/Heading-zTQC9Kqs.js.map
Normal file
1
mas/share/assets/Heading-zTQC9Kqs.js.map
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"Heading-zTQC9Kqs.js","sources":["../node_modules/@vector-im/compound-web/dist/components/Typography/Heading.js"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nimport { Typography } from \"./Typography.js\";\nimport { Text } from \"./Text.js\";\nconst Heading = ({ as = \"h1\", children, ...props }) => {\n return /* @__PURE__ */ jsx(Typography, { as, type: \"heading\", ...props, children });\n};\nconst H1 = ({ children, ...props }) => {\n return /* @__PURE__ */ jsx(Heading, { as: \"h1\", weight: \"semibold\", size: \"xl\", ...props, children });\n};\nconst H2 = ({ children, ...props }) => {\n return /* @__PURE__ */ jsx(Heading, { as: \"h2\", weight: \"semibold\", size: \"lg\", ...props, children });\n};\nconst H3 = ({ children, ...props }) => {\n return /* @__PURE__ */ jsx(Heading, { as: \"h3\", weight: \"semibold\", size: \"md\", ...props, children });\n};\nconst H4 = ({ children, ...props }) => {\n return /* @__PURE__ */ jsx(Heading, { as: \"h4\", weight: \"semibold\", size: \"sm\", ...props, children });\n};\nconst H5 = ({ children, ...props }) => {\n return /* @__PURE__ */ jsx(Text, { as: \"h5\", weight: \"semibold\", size: \"lg\", ...props, children });\n};\nconst H6 = ({ children, ...props }) => {\n return /* @__PURE__ */ jsx(Text, { as: \"h6\", weight: \"semibold\", size: \"md\", ...props, children });\n};\nexport {\n H1,\n H2,\n H3,\n H4,\n H5,\n H6,\n Heading\n};\n//# sourceMappingURL=Heading.js.map\n"],"names":["Heading","as","children","props","jsx","Typography","H3","H4","H5","Text"],"mappings":"sDAGK,MAACA,EAAU,CAAC,CAAE,GAAAC,EAAK,KAAM,SAAAC,EAAU,GAAGC,KAClBC,EAAAA,IAAIC,EAAY,CAAE,GAAAJ,EAAI,KAAM,UAAW,GAAGE,EAAO,SAAAD,EAAU,EAQ9EI,EAAK,CAAC,CAAE,SAAAJ,EAAU,GAAGC,CAAK,IACPC,MAAIJ,EAAS,CAAE,GAAI,KAAM,OAAQ,WAAY,KAAM,KAAM,GAAGG,EAAO,SAAAD,CAAQ,CAAE,EAEhGK,EAAK,CAAC,CAAE,SAAAL,EAAU,GAAGC,CAAK,IACPC,MAAIJ,EAAS,CAAE,GAAI,KAAM,OAAQ,WAAY,KAAM,KAAM,GAAGG,EAAO,SAAAD,CAAQ,CAAE,EAEhGM,EAAK,CAAC,CAAE,SAAAN,EAAU,GAAGC,CAAK,IACPC,MAAIK,EAAM,CAAE,GAAI,KAAM,OAAQ,WAAY,KAAM,KAAM,GAAGN,EAAO,SAAAD,CAAQ,CAAE","x_google_ignoreList":[0]}
|
||||||
1
mas/share/assets/LastActive-C9wo4AOG.css
Normal file
1
mas/share/assets/LastActive-C9wo4AOG.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
._active_1y6r4_8{color:var(--cpd-color-text-success-primary)}
|
||||||
2
mas/share/assets/LastActive-D4SP35FS.js
Normal file
2
mas/share/assets/LastActive-D4SP35FS.js
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/LastActive-D4SP35FS.js.br
Normal file
BIN
mas/share/assets/LastActive-D4SP35FS.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/LastActive-D4SP35FS.js.gz
Normal file
BIN
mas/share/assets/LastActive-D4SP35FS.js.gz
Normal file
Binary file not shown.
1
mas/share/assets/LastActive-D4SP35FS.js.map
Normal file
1
mas/share/assets/LastActive-D4SP35FS.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/LastActive-D4SP35FS.js.zz
Normal file
BIN
mas/share/assets/LastActive-D4SP35FS.js.zz
Normal file
Binary file not shown.
2
mas/share/assets/Link-Do_sTHM7.js
Normal file
2
mas/share/assets/Link-Do_sTHM7.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
import{ag as a,a8 as i}from"./main-CiAhdYQG.js";const o=a(i);export{o as L};
|
||||||
|
//# sourceMappingURL=Link-Do_sTHM7.js.map
|
||||||
1
mas/share/assets/Link-Do_sTHM7.js.map
Normal file
1
mas/share/assets/Link-Do_sTHM7.js.map
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"Link-Do_sTHM7.js","sources":["../src/components/Link.tsx"],"sourcesContent":["// Copyright 2024, 2025 New Vector Ltd.\n// Copyright 2023, 2024 The Matrix.org Foundation C.I.C.\n//\n// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial\n// Please see LICENSE files in the repository root for full details.\n\nimport { createLink } from \"@tanstack/react-router\";\nimport { Link as CompoundLink } from \"@vector-im/compound-web\";\n\nexport const Link = createLink(CompoundLink);\n"],"names":["Link","createLink","CompoundLink"],"mappings":"gDASO,MAAMA,EAAOC,EAAWC,CAAY"}
|
||||||
1
mas/share/assets/Separator-C2iSg9zz.css
Normal file
1
mas/share/assets/Separator-C2iSg9zz.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
._separator_1qgmy_7{border-block-start:1px solid var(--cpd-color-bg-subtle-primary)}._section_1qgmy_11{border-block-start-width:2px}
|
||||||
2
mas/share/assets/Separator-CVNE-7yB.js
Normal file
2
mas/share/assets/Separator-CVNE-7yB.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
import{r as e,j as n,w as c}from"./main-CiAhdYQG.js";const i="_separator_1qgmy_7",p="_section_1qgmy_11",s={separator:i,section:p},_=e.forwardRef(({kind:a,className:o,...r},t)=>n.jsx("div",{"aria-orientation":"horizontal",role:"separator",className:c(s.separator,a==="section"&&s.section,o),...r,ref:t}));export{_ as S};
|
||||||
|
//# sourceMappingURL=Separator-CVNE-7yB.js.map
|
||||||
1
mas/share/assets/Separator-CVNE-7yB.js.map
Normal file
1
mas/share/assets/Separator-CVNE-7yB.js.map
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"Separator-CVNE-7yB.js","sources":["../src/components/Separator/Separator.tsx"],"sourcesContent":["// Copyright 2025 New Vector Ltd.\n//\n// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial\n// Please see LICENSE files in the repository root for full details.\n\n// biome-ignore-all lint/a11y/useFocusableInteractive: this is a false positive\n// biome-ignore-all lint/a11y/useAriaPropsForRole: this is a false positive\n// biome-ignore-all lint/a11y/useSemanticElements: I don't want to use an <hr />\n\nimport cx from \"classnames\";\nimport { forwardRef } from \"react\";\n\nimport styles from \"./Separator.module.css\";\n\ntype Props = {\n kind?: \"section\";\n} & React.HTMLAttributes<HTMLDivElement>;\n\nconst Separator = forwardRef<HTMLDivElement, Props>(\n ({ kind, className, ...props }: Props, ref) => (\n <div\n aria-orientation=\"horizontal\"\n role=\"separator\"\n className={cx(\n styles.separator,\n kind === \"section\" && styles.section,\n className,\n )}\n {...props}\n ref={ref}\n />\n ),\n);\n\nexport default Separator;\n"],"names":["Separator","forwardRef","kind","className","props","ref","jsx","cx","styles"],"mappings":"kIAkBMA,EAAYC,EAAAA,WAChB,CAAC,CAAE,KAAAC,EAAM,UAAAC,EAAW,GAAGC,CAAA,EAAgBC,IACrCC,EAAAA,IAAC,MAAA,CACC,mBAAiB,aACjB,KAAK,YACL,UAAWC,EACTC,EAAO,UACPN,IAAS,WAAaM,EAAO,QAC7BL,CAAA,EAED,GAAGC,EACJ,IAAAC,CAAA,CAAA,CAGN"}
|
||||||
2
mas/share/assets/SessionInfo-BtmlaGNW.js
Normal file
2
mas/share/assets/SessionInfo-BtmlaGNW.js
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/SessionInfo-BtmlaGNW.js.br
Normal file
BIN
mas/share/assets/SessionInfo-BtmlaGNW.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/SessionInfo-BtmlaGNW.js.gz
Normal file
BIN
mas/share/assets/SessionInfo-BtmlaGNW.js.gz
Normal file
Binary file not shown.
1
mas/share/assets/SessionInfo-BtmlaGNW.js.map
Normal file
1
mas/share/assets/SessionInfo-BtmlaGNW.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/SessionInfo-BtmlaGNW.js.zz
Normal file
BIN
mas/share/assets/SessionInfo-BtmlaGNW.js.zz
Normal file
Binary file not shown.
2
mas/share/assets/Submit-DW2aiKTW.js
Normal file
2
mas/share/assets/Submit-DW2aiKTW.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
import{r as i,j as t,S as o,B as u}from"./main-CiAhdYQG.js";const m=i.forwardRef(function(r,s){return t.jsx(o,{asChild:!0,children:t.jsx(u,{type:"submit",ref:s,...r})})});export{m as S};
|
||||||
|
//# sourceMappingURL=Submit-DW2aiKTW.js.map
|
||||||
1
mas/share/assets/Submit-DW2aiKTW.js.map
Normal file
1
mas/share/assets/Submit-DW2aiKTW.js.map
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"Submit-DW2aiKTW.js","sources":["../node_modules/@vector-im/compound-web/dist/components/Form/Submit.js"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { Submit as Submit$1 } from \"@radix-ui/react-form\";\nimport { Button } from \"../Button/Button.js\";\nconst Submit = forwardRef(\n function Submit2(props, ref) {\n return /* @__PURE__ */ jsx(Submit$1, { asChild: true, children: /* @__PURE__ */ jsx(Button, { type: \"submit\", ref, ...props }) });\n }\n);\nexport {\n Submit\n};\n//# sourceMappingURL=Submit.js.map\n"],"names":["Submit","forwardRef","props","ref","jsx","Submit$1","Button"],"mappings":"4DAIK,MAACA,EAASC,EAAAA,WACb,SAAiBC,EAAOC,EAAK,CAC3B,OAAuBC,EAAAA,IAAIC,EAAU,CAAE,QAAS,GAAM,SAA0BD,EAAAA,IAAIE,EAAQ,CAAE,KAAM,SAAU,IAAAH,EAAK,GAAGD,CAAK,CAAE,CAAC,CAAE,CAClI,CACF","x_google_ignoreList":[0]}
|
||||||
2
mas/share/assets/Trans-CeobkUgR.js
Normal file
2
mas/share/assets/Trans-CeobkUgR.js
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/Trans-CeobkUgR.js.br
Normal file
BIN
mas/share/assets/Trans-CeobkUgR.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/Trans-CeobkUgR.js.gz
Normal file
BIN
mas/share/assets/Trans-CeobkUgR.js.gz
Normal file
Binary file not shown.
1
mas/share/assets/Trans-CeobkUgR.js.map
Normal file
1
mas/share/assets/Trans-CeobkUgR.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/Trans-CeobkUgR.js.zz
Normal file
BIN
mas/share/assets/Trans-CeobkUgR.js.zz
Normal file
Binary file not shown.
2
mas/share/assets/VisualListItem-Dd-weqBc.js
Normal file
2
mas/share/assets/VisualListItem-Dd-weqBc.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
import{j as e,w as a}from"./main-CiAhdYQG.js";const n={"visual-list":"_visual-list_15wzx_8"};function o({className:i,children:t,...l}){return e.jsx("ul",{className:a(n["visual-list"],i),...l,children:t})}const s={"visual-list-item":"_visual-list-item_1ma3e_8","visual-list-item-icon":"_visual-list-item-icon_1ma3e_17","visual-list-item-icon-success":"_visual-list-item-icon-success_1ma3e_22","visual-list-item-icon-destructive":"_visual-list-item-icon-destructive_1ma3e_26"};function _({className:i,children:t,Icon:l,success:u=!1,destructive:c=!1,...m}){return e.jsxs("li",{className:a(s["visual-list-item"],i),...m,children:[e.jsx(l,{className:a(s["visual-list-item-icon"],{[s["visual-list-item-icon-success"]]:u,[s["visual-list-item-icon-destructive"]]:c}),width:"24px",height:"24px","aria-hidden":!0}),t]})}export{o as V,_ as a};
|
||||||
|
//# sourceMappingURL=VisualListItem-Dd-weqBc.js.map
|
||||||
1
mas/share/assets/VisualListItem-Dd-weqBc.js.map
Normal file
1
mas/share/assets/VisualListItem-Dd-weqBc.js.map
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"VisualListItem-Dd-weqBc.js","sources":["../node_modules/@vector-im/compound-web/dist/components/VisualList/VisualList.module.css.js","../node_modules/@vector-im/compound-web/dist/components/VisualList/VisualList.js","../node_modules/@vector-im/compound-web/dist/components/VisualList/VisualListItem.module.css.js","../node_modules/@vector-im/compound-web/dist/components/VisualList/VisualListItem.js"],"sourcesContent":["const styles = {\n \"visual-list\": \"_visual-list_15wzx_8\"\n};\nexport {\n styles as default\n};\n//# sourceMappingURL=VisualList.module.css.js.map\n","import { jsx } from \"react/jsx-runtime\";\nimport styles from \"./VisualList.module.css.js\";\nimport classNames from \"classnames\";\nfunction VisualList({\n className,\n children,\n ...props\n}) {\n return /* @__PURE__ */ jsx(\"ul\", { className: classNames(styles[\"visual-list\"], className), ...props, children });\n}\nexport {\n VisualList\n};\n//# sourceMappingURL=VisualList.js.map\n","const styles = {\n \"visual-list-item\": \"_visual-list-item_1ma3e_8\",\n \"visual-list-item-icon\": \"_visual-list-item-icon_1ma3e_17\",\n \"visual-list-item-icon-success\": \"_visual-list-item-icon-success_1ma3e_22\",\n \"visual-list-item-icon-destructive\": \"_visual-list-item-icon-destructive_1ma3e_26\"\n};\nexport {\n styles as default\n};\n//# sourceMappingURL=VisualListItem.module.css.js.map\n","import { jsxs, jsx } from \"react/jsx-runtime\";\nimport styles from \"./VisualListItem.module.css.js\";\nimport classNames from \"classnames\";\nfunction VisualListItem({\n className,\n children,\n Icon,\n success = false,\n destructive = false,\n ...props\n}) {\n return /* @__PURE__ */ jsxs(\n \"li\",\n {\n className: classNames(styles[\"visual-list-item\"], className),\n ...props,\n children: [\n /* @__PURE__ */ jsx(\n Icon,\n {\n className: classNames(styles[\"visual-list-item-icon\"], {\n [styles[\"visual-list-item-icon-success\"]]: success,\n [styles[\"visual-list-item-icon-destructive\"]]: destructive\n }),\n width: \"24px\",\n height: \"24px\",\n \"aria-hidden\": true\n }\n ),\n children\n ]\n }\n );\n}\nexport {\n VisualListItem\n};\n//# sourceMappingURL=VisualListItem.js.map\n"],"names":["styles","VisualList","className","children","props","jsx","classNames","VisualListItem","Icon","success","destructive","jsxs"],"mappings":"8CAAA,MAAMA,EAAS,CACb,cAAe,sBACjB,ECCA,SAASC,EAAW,CAClB,UAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAAG,CACD,OAAuBC,MAAI,KAAM,CAAE,UAAWC,EAAWN,EAAO,aAAa,EAAGE,CAAS,EAAG,GAAGE,EAAO,SAAAD,CAAQ,CAAE,CAClH,CCTA,MAAMH,EAAS,CACb,mBAAoB,4BACpB,wBAAyB,kCACzB,gCAAiC,0CACjC,oCAAqC,6CACvC,ECFA,SAASO,EAAe,CACtB,UAAAL,EACA,SAAAC,EACA,KAAAK,EACA,QAAAC,EAAU,GACV,YAAAC,EAAc,GACd,GAAGN,CACL,EAAG,CACD,OAAuBO,EAAAA,KACrB,KACA,CACE,UAAWL,EAAWN,EAAO,kBAAkB,EAAGE,CAAS,EAC3D,GAAGE,EACH,SAAU,CACQC,EAAAA,IACdG,EACA,CACE,UAAWF,EAAWN,EAAO,uBAAuB,EAAG,CACrD,CAACA,EAAO,+BAA+B,CAAC,EAAGS,EAC3C,CAACT,EAAO,mCAAmC,CAAC,EAAGU,CAC7D,CAAa,EACD,MAAO,OACP,OAAQ,OACR,cAAe,EAC3B,CACA,EACQP,CACR,CACA,CACA,CACA","x_google_ignoreList":[0,1,2,3]}
|
||||||
34
mas/share/assets/_account-BMDlqbFy.js
Normal file
34
mas/share/assets/_account-BMDlqbFy.js
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import{j as e,a as U,r as p,b as g,c as A,d as B,u as N,T as u,D,e as F,R as S,F as h,f as _,A as w,C as G,H as E,g as R,h as L,i as M,B as O,k as c,l as I,m as z,n as k,o as $,q as H,p as P,L as Q,O as K}from"./main-CiAhdYQG.js";import{H as V}from"./Heading-zTQC9Kqs.js";import{I as Y}from"./edit-DvN6hAeY.js";import{A as v}from"./Avatar-B3RWCmae.js";import{S as J}from"./Submit-DW2aiKTW.js";import"./_commonjsHelpers-DaWZu8wl.js";/* empty css */const W="_nav-bar_16kbp_8",X="_nav-bar-items_16kbp_12",y={navBar:W,navBarItems:X},Z=({children:a})=>e.jsx("nav",{className:y.navBar,children:e.jsx("ul",{className:y.navBarItems,children:a})}),ee="_nav-tab_9fhit_8",se="_nav-item_9fhit_26",j={navTab:ee,navItem:se},x=a=>e.jsx("li",{className:j.navTab,children:e.jsx(U,{className:j.navItem,activeProps:{"aria-current":"page"},...a})}),ae="_user_lnqhg_8",te="_meta_lnqhg_19",ne="_edit-button_lnqhg_32",ie="_mxid_lnqhg_36",re="_dialog-form_lnqhg_40",o={user:ae,meta:te,editButton:ne,mxid:ie,dialogForm:re},oe=c(`
|
||||||
|
fragment UserGreeting_user on User {
|
||||||
|
id
|
||||||
|
matrix {
|
||||||
|
mxid
|
||||||
|
displayName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),le=c(`
|
||||||
|
fragment UserGreeting_siteConfig on SiteConfig {
|
||||||
|
displayNameChangeAllowed
|
||||||
|
}
|
||||||
|
`),ce=c(`
|
||||||
|
mutation SetDisplayName($userId: ID!, $displayName: String) {
|
||||||
|
setDisplayName(input: { userId: $userId, displayName: $displayName }) {
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),de=p.forwardRef(({label:a,...r},t)=>e.jsx(z,{label:a,children:e.jsx(k,{ref:t,type:"button",size:"var(--cpd-space-6x)",className:o.editButton,...r,children:e.jsx(Y,{})})})),me=({user:a,siteConfig:r})=>{const t=p.useRef(null),s=g(oe,a),{displayNameChangeAllowed:d}=g(le,r),b=A(),l=B({mutationFn:({userId:i,displayName:m})=>I({query:ce,variables:{userId:i,displayName:m}}),onSuccess:i=>{b.invalidateQueries({queryKey:["currentUserGreeting"]}),i.setDisplayName.status==="SET"&&f(!1)}}),[C,f]=p.useState(!1),{t:n}=N(),q=i=>{i.preventDefault();const m=i.currentTarget,T=new FormData(m).get("displayname")||null;l.mutate({displayName:T,userId:s.id})};return e.jsxs("div",{className:o.user,children:[e.jsx(v,{size:"var(--cpd-space-14x)",id:s.matrix.mxid,name:s.matrix.displayName||s.matrix.mxid,className:o.avatar}),e.jsx("div",{className:o.meta,children:s.matrix.displayName?e.jsxs(e.Fragment,{children:[e.jsx(u,{size:"lg",weight:"semibold",children:s.matrix.displayName}),e.jsx(u,{size:"md",className:o.mxid,children:s.matrix.mxid})]}):e.jsx(u,{size:"lg",weight:"semibold",children:s.matrix.mxid})}),d&&e.jsxs(D,{trigger:e.jsx(de,{label:n("action.edit")}),open:C,onOpenChange:i=>{t.current?.form?.reset(),f(i)},children:[e.jsx(F,{children:n("frontend.account.edit_profile.title")}),e.jsx(v,{size:"88px",className:"self-center",id:s.matrix.mxid,name:s.matrix.displayName||s.matrix.mxid}),e.jsxs(S,{onSubmit:q,children:[e.jsxs("div",{className:o.dialogForm,children:[e.jsxs(h,{name:"displayname",serverInvalid:l.data?.setDisplayName.status==="INVALID",children:[e.jsx(_,{children:n("frontend.account.edit_profile.display_name_label")}),e.jsx(w,{type:"text",Icon:G,autoComplete:"name",defaultValue:s.matrix.displayName||void 0,actionLabel:n("action.clear"),ref:t,onActionClick:()=>{t.current&&(t.current.value="",t.current.focus())}}),e.jsx(E,{children:n("frontend.account.edit_profile.display_name_help")})]}),e.jsxs(h,{name:"mxid",children:[e.jsx(_,{children:n("frontend.account.edit_profile.username_label")}),e.jsx(R,{value:s.matrix.mxid,readOnly:!0})]})]}),e.jsxs(J,{disabled:l.isPending,children:[l.isPending&&e.jsx(L,{inline:!0}),n("action.save")]})]}),e.jsx(M,{asChild:!0,children:e.jsx(O,{kind:"tertiary",children:n("action.cancel")})})]})]})},ue=c(`
|
||||||
|
query CurrentUserGreeting {
|
||||||
|
viewer {
|
||||||
|
__typename
|
||||||
|
... on User {
|
||||||
|
...UserGreeting_user
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
siteConfig {
|
||||||
|
...UserGreeting_siteConfig
|
||||||
|
planManagementIframeUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),xe=H({queryKey:["currentUserGreeting"],queryFn:({signal:a})=>I({query:ue,signal:a})});function Ne(){const{t:a}=N(),r=$(xe),t=r.data.viewer;if(t?.__typename!=="User")throw P();const{siteConfig:s}=r.data,{planManagementIframeUri:d}=s;return e.jsxs(Q,{wide:!0,children:[e.jsxs("div",{className:"flex flex-col gap-10",children:[e.jsx(V,{size:"md",weight:"semibold",children:a("frontend.account.title")}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(me,{user:t,siteConfig:s}),e.jsxs(Z,{children:[e.jsx(x,{to:"/",children:a("frontend.nav.settings")}),e.jsx(x,{to:"/sessions",children:a("frontend.nav.devices")}),d&&e.jsx(x,{to:"/plan",children:a("frontend.nav.plan")})]})]})]}),e.jsx(K,{})]})}export{Ne as component};
|
||||||
|
//# sourceMappingURL=_account-BMDlqbFy.js.map
|
||||||
BIN
mas/share/assets/_account-BMDlqbFy.js.br
Normal file
BIN
mas/share/assets/_account-BMDlqbFy.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/_account-BMDlqbFy.js.gz
Normal file
BIN
mas/share/assets/_account-BMDlqbFy.js.gz
Normal file
Binary file not shown.
1
mas/share/assets/_account-BMDlqbFy.js.map
Normal file
1
mas/share/assets/_account-BMDlqbFy.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/_account-BMDlqbFy.js.zz
Normal file
BIN
mas/share/assets/_account-BMDlqbFy.js.zz
Normal file
Binary file not shown.
1
mas/share/assets/_account-Bo4jHeuD.css
Normal file
1
mas/share/assets/_account-Bo4jHeuD.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
._nav-bar_16kbp_8{border-bottom:var(--cpd-border-width-1) solid var(--cpd-color-gray-400)}._nav-bar-items_16kbp_12{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:var(--cpd-space-3x)}._nav-tab_9fhit_8{padding:var(--cpd-space-4x) 0;position:relative}._nav-tab_9fhit_8:before{content:"";position:absolute;bottom:0;left:0;right:0;height:0;border-radius:var(--cpd-radius-pill-effect) var(--cpd-radius-pill-effect) 0 0;background-color:var(--cpd-color-bg-action-primary-rest);transition:height .1s ease-in-out}._nav-tab_9fhit_8:has(._nav-item_9fhit_26[aria-current=page]):before{height:var(--cpd-border-width-4)}._nav-item_9fhit_26{padding:var(--cpd-space-1x) var(--cpd-space-2x);color:var(--cpd-color-text-secondary);line-height:var(--cpd-space-6x);border-radius:var(--cpd-radius-pill-effect);border:transparent var(--cpd-border-width-2) solid}._nav-item_9fhit_26._external-link_9fhit_39{text-decoration:underline;color:var(--cpd-color-text-primary)}._nav-item_9fhit_26:hover{color:var(--cpd-color-text-primary);background-color:var(--cpd-color-bg-subtle-secondary)}._nav-item_9fhit_26:active{color:var(--cpd-color-text-primary);background-color:var(--cpd-color-bg-subtle-primary)}._nav-item_9fhit_26:focus{outline:none;border-color:var(--cpd-color-border-focused)}._nav-item_9fhit_26[aria-current=page]{color:var(--cpd-color-text-primary)}._user_lnqhg_8{display:flex;flex-direction:row;align-items:center;gap:var(--cpd-space-4x);outline:1px solid var(--cpd-color-gray-400);outline-offset:-1px;border-radius:var(--cpd-space-3x);padding:var(--cpd-space-4x)}._meta_lnqhg_19{flex:1 1;min-width:0}._meta_lnqhg_19 p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._edit-button_lnqhg_32{align-self:flex-start}._mxid_lnqhg_36{color:var(--cpd-color-text-secondary)}._dialog-form_lnqhg_40{display:flex;flex-direction:column;gap:var(--cpd-space-4x);align-self:center;max-width:378px;width:100%;margin-block-end:var(--cpd-space-9x)}
|
||||||
BIN
mas/share/assets/_account-Bo4jHeuD.css.br
Normal file
BIN
mas/share/assets/_account-Bo4jHeuD.css.br
Normal file
Binary file not shown.
BIN
mas/share/assets/_account-Bo4jHeuD.css.gz
Normal file
BIN
mas/share/assets/_account-Bo4jHeuD.css.gz
Normal file
Binary file not shown.
BIN
mas/share/assets/_account-Bo4jHeuD.css.zz
Normal file
BIN
mas/share/assets/_account-Bo4jHeuD.css.zz
Normal file
Binary file not shown.
1
mas/share/assets/_account-D5pwwkVm.css
Normal file
1
mas/share/assets/_account-D5pwwkVm.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
._link_1g96u_8{display:inline-block;text-decoration:underline;color:var(--cpd-color-text-primary);font-weight:var(--cpd-font-weight-medium);border-radius:var(--cpd-radius-pill-effect);padding-inline:.25rem}._link_1g96u_8:hover{background:var(--cpd-color-gray-300)}._link_1g96u_8:active{background:var(--cpd-color-text-primary);color:var(--cpd-color-text-on-solid-primary)}._root_1hqni_8{display:flex;flex-direction:column;gap:var(--cpd-space-6x)}._heading_1hqni_14{display:flex;flex-direction:column;gap:var(--cpd-space-2x)}._trigger_1hqni_20{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:start;gap:var(--cpd-space-2x)}._trigger-title_1hqni_29{cursor:pointer;flex-grow:1}._trigger-icon_1hqni_34{transition:transform .1s ease-out}._root_1hqni_8[data-state=closed] ._trigger-icon_1hqni_34{transform:rotate(180deg)}._description_1hqni_42{color:var(--cpd-color-text-secondary);font:var(--cpd-font-body-md-regular);letter-spacing:var(--cpd-font-letter-spacing-body-md)}._content_1hqni_48{display:flex;flex-direction:column;gap:var(--cpd-space-6x)}
|
||||||
BIN
mas/share/assets/_account-D5pwwkVm.css.br
Normal file
BIN
mas/share/assets/_account-D5pwwkVm.css.br
Normal file
Binary file not shown.
BIN
mas/share/assets/_account-D5pwwkVm.css.gz
Normal file
BIN
mas/share/assets/_account-D5pwwkVm.css.gz
Normal file
Binary file not shown.
BIN
mas/share/assets/_account-D5pwwkVm.css.zz
Normal file
BIN
mas/share/assets/_account-D5pwwkVm.css.zz
Normal file
Binary file not shown.
73
mas/share/assets/_account.index-Bgj2uEUe.js
Normal file
73
mas/share/assets/_account.index-Bgj2uEUe.js
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
import{r,j as e,v as we,w as $,x as O,y as Ce,R as z,F as D,f as S,g as G,m as X,S as be,B as y,C as ve,z as ye,E as Ee,V as Ae,H,b as T,u as I,d as te,l as V,k as E,D as se,e as ne,G as Ne,T as k,J as Re,K as C,M as Ie,N as Z,h as re,i as ae,a as Se,Q as Te,U as ke,W as Pe,X as Q,Y as De,Z as Fe,_ as qe,$ as Me,n as Oe,c as Be,a0 as Le,a1 as Ue,a2 as $e,o as ze,q as Ge,p as He,a3 as Ve}from"./main-CiAhdYQG.js";import{A as Qe}from"./Avatar-B3RWCmae.js";import{I as oe}from"./check-Cx46Fv0J.js";import{S as R}from"./Separator-CVNE-7yB.js";import{T as We}from"./Trans-CeobkUgR.js";import{B as Ke}from"./ButtonLink-kWcKQZoZ.js";import{a as Ye}from"./Heading-zTQC9Kqs.js";import{u as Je}from"./EndBrowserSessionButton-DXsnVcVV.js";import"./_commonjsHelpers-DaWZu8wl.js";/* empty css */import"./computer-Cx9wZ7Nf.js";const Xe="_container_1hel1_10",Ze="_input_1hel1_18",et="_ui_1hel1_19",B={container:Xe,input:Ze,ui:et},tt=r.forwardRef(function({className:t,...a},n){const i=$(B.container,t);return e.jsxs("div",{className:i,children:[e.jsx("input",{ref:n,className:B.input,...a,type:"checkbox"}),e.jsx("div",{className:B.ui,children:e.jsx(oe,{"aria-hidden":!0})})]})}),st=r.forwardRef(function(t,a){return e.jsx(we,{asChild:!0,children:e.jsx(tt,{ref:a,...t})})}),nt=r.forwardRef(function({className:t,control:a,children:n,...i},u){const c=$(O["inline-field"],t);return e.jsxs(Ce,{ref:u,...i,className:c,children:[e.jsx("div",{className:O["inline-field-control"],children:a}),e.jsx("div",{className:O["inline-field-body"],children:n})]})}),rt="_controls_17lij_8",L={controls:rt,"button-group":"_button-group_17lij_18"};function at(s,t){switch(t){case 0:return s===0||s===3?1:s;case 1:return 2;case 4:return 0;case 2:return s===2?3:s;case 3:return s===2?0:s;case 5:return s===3?0:s}ot(t)}function ot(s){throw new Error(`Unreachable value: ${s}`)}const it=r.forwardRef(function({className:t,label:a,onSave:n,onCancel:i,onInput:u,onClearServerErrors:c,serverInvalid:h,saveButtonLabel:p,cancelButtonLabel:f,savedLabel:g,savingLabel:x,helpLabel:_,disabled:m,children:b,...o},j){const[l,d]=r.useReducer(at,0),v=r.useRef(!1),[q,P]=r.useState(!1),he=l===1||l===2||q,N=r.useRef(void 0);r.useEffect(()=>(l===3&&(N.current=setTimeout(()=>{d(5),N.current=void 0},2e3)),()=>{N.current&&clearTimeout(N.current),N.current=void 0}),[l]);const fe=r.useRef(null),J=r.useRef(null),M=r.useRef(null),pe=r.useCallback(()=>{v.current||(v.current=!0,P(!0))},[q,P]),ge=r.useCallback(w=>{v.current&&(w.currentTarget.contains(w.relatedTarget)||(v.current=!1,P(!1)))},[q,P]),xe=r.useCallback(w=>{d(0),u?.(w)},[d,u]),_e=r.useCallback(async w=>{if(w.preventDefault(),l!==0)try{d(1),J.current?.blur(),await n?.(w),d(2)}catch{d(3)}},[n,l,N]),je=r.useCallback(w=>{M.current?.blur(),i?.(w),d(4)},[M,i]);return e.jsx(z,{className:t,onSubmit:_e,onReset:je,onFocus:pe,onBlur:ge,onClearServerErrors:c,ref:fe,children:e.jsxs(D,{name:"input",serverInvalid:h,children:[e.jsx(S,{children:a}),e.jsxs("div",{className:L.controls,children:[e.jsx(G,{ref:j,...o,onInput:xe,disabled:m||l===2}),he&&e.jsxs("div",{className:L["button-group"],children:[e.jsx(X,{label:p,children:e.jsx(be,{asChild:!0,children:e.jsx(y,{type:"submit",kind:"primary",size:"sm",ref:J,disabled:l!==1,iconOnly:!0,Icon:oe})})}),e.jsx(X,{label:f,children:e.jsx(y,{type:"reset",kind:"secondary",size:"sm",ref:M,className:L.button,disabled:l===2,iconOnly:!0,Icon:ve})})]})]}),l===2?e.jsx(ye,{children:x}):b,g&&l===3&&e.jsx(Ee,{children:g}),_&&(l===0||l===1)&&e.jsx(Ae,{children:w=>(w===void 0||w.valid)&&!h&&e.jsx(H,{children:_})})]})})});function ie(s,t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:t,...s,children:e.jsx("path",{d:"M9 12.031q0-.424.288-.712A.97.97 0 0 1 10 11.03h7.15l-1.875-1.875a.96.96 0 0 1-.3-.7q0-.4.325-.725a.93.93 0 0 1 .712-.287.98.98 0 0 1 .688.287l3.6 3.6q.15.15.212.325.063.175.063.375 0 .201-.062.375a.9.9 0 0 1-.213.325l-3.6 3.6q-.3.3-.712.288a.98.98 0 0 1-.688-.288 1.02 1.02 0 0 1-.312-.712.93.93 0 0 1 .287-.713l1.875-1.875H10a.97.97 0 0 1-.712-.287A.97.97 0 0 1 9 12.03m-6-7q0-.824.588-1.412A1.93 1.93 0 0 1 5 3.03h6q.424 0 .713.288.287.287.287.712t-.287.713A.97.97 0 0 1 11 5.03H5v14h6q.424 0 .713.288.287.287.287.712t-.287.713a.97.97 0 0 1-.713.287H5q-.824 0-1.412-.587A1.93 1.93 0 0 1 3 19.03z"})})}ie.displayName="SignOutIcon";const ee=r.forwardRef(ie),ct=E(`
|
||||||
|
fragment AccountDeleteButton_user on User {
|
||||||
|
username
|
||||||
|
hasPassword
|
||||||
|
matrix {
|
||||||
|
mxid
|
||||||
|
displayName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),lt=E(`
|
||||||
|
fragment AccountDeleteButton_siteConfig on SiteConfig {
|
||||||
|
passwordLoginEnabled
|
||||||
|
}
|
||||||
|
`),dt=E(`
|
||||||
|
mutation DeactivateUser($hsErase: Boolean!, $password: String) {
|
||||||
|
deactivateUser(input: { hsErase: $hsErase, password: $password }) {
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),ut=({mxid:s,displayName:t,username:a})=>e.jsxs("section",{className:"flex items-center p-4 gap-4 border border-[var(--cpd-color-gray-400)] rounded-xl",children:[e.jsx(Qe,{id:s,name:t||a,size:"56px"}),e.jsxs("div",{className:"flex-1 flex flex-col",children:[e.jsx(k,{type:"body",weight:"semibold",size:"lg",className:"text-primary",children:t||a}),e.jsx(k,{type:"body",weight:"regular",size:"md",className:"text-secondary",children:s})]})]}),mt=s=>{const t=T(ct,s.user),a=T(lt,s.siteConfig),{t:n}=I(),i=te({mutationFn:({password:o,hsErase:j})=>V({query:dt,variables:{password:o,hsErase:j}}),onSuccess:o=>{o.deactivateUser.status==="DEACTIVATED"&&window.location.reload()}}),[u,c]=r.useState(!1),[h,p]=r.useState(!1);r.useEffect(()=>{if(u){const o=setTimeout(()=>{p(!0)},500);return()=>clearTimeout(o)}p(!1)},[u]);const f=r.useCallback(o=>{c(o.currentTarget.value!=="")},[]),g=r.useCallback(o=>{c(o.currentTarget.value===t.matrix.mxid)},[t.matrix.mxid]),x=r.useCallback(o=>{if(o.preventDefault(),!h)return;const j=new FormData(o.currentTarget),l=j.get("password");if(l!==null&&typeof l!="string")throw new Error;const d=j.get("hs-erase")==="on";i.mutate({password:l,hsErase:d})},[i.mutate,h]),_=i.data?.deactivateUser.status==="INCORRECT_PASSWORD",m=i.isPending||i.data?.deactivateUser.status==="DEACTIVATED",b=t.hasPassword&&a.passwordLoginEnabled;return e.jsxs(se,{trigger:e.jsx(y,{kind:"tertiary",destructive:!0,size:"sm",className:"self-center",Icon:Z,children:n("frontend.account.delete_account.button")}),children:[e.jsx(ne,{children:n("frontend.account.delete_account.dialog_title")}),e.jsx(Ne,{className:"flex flex-col gap-4",children:e.jsx(We,{t:n,i18nKey:"frontend.account.delete_account.dialog_description",components:{text:e.jsx(k,{type:"body",weight:"regular",size:"md"}),list:e.jsx("ul",{className:"list-disc list-outside pl-6"}),item:e.jsx(k,{as:"li",type:"body",weight:"regular",size:"md"}),profile:e.jsx(ut,{mxid:t.matrix.mxid,username:t.username,displayName:t.matrix.displayName})}})}),e.jsxs(z,{onSubmit:x,children:[e.jsx(nt,{control:e.jsx(st,{}),name:"hs-erase",children:e.jsx(S,{children:n("frontend.account.delete_account.erase_checkbox_label")})}),e.jsx(R,{className:"my-1"}),b?e.jsxs(D,{name:"password",serverInvalid:_,children:[e.jsx(S,{children:n("frontend.account.delete_account.password_label")}),e.jsx(Re,{autoComplete:"current-password",required:!0,onInput:f}),e.jsx(C,{match:"valueMissing",children:n("frontend.errors.field_required")}),_&&e.jsx(C,{children:n("frontend.account.delete_account.incorrect_password")})]}):e.jsxs(D,{name:"mxid",children:[e.jsx(S,{children:n("frontend.account.delete_account.mxid_label",{mxid:t.matrix.mxid})}),e.jsx(G,{required:!0,placeholder:t.matrix.mxid,onInput:g}),e.jsx(C,{match:"valueMissing",children:n("frontend.errors.field_required")}),e.jsx(C,{match:o=>o!==t.matrix.mxid,children:n("frontend.account.delete_account.mxid_mismatch")})]}),u&&e.jsx(Ie,{type:"critical",title:n("frontend.account.delete_account.alert_title"),children:n("frontend.account.delete_account.alert_description")}),e.jsxs(y,{type:"submit",kind:"primary",destructive:!0,disabled:!h||m,Icon:m?void 0:Z,children:[m&&e.jsx(re,{inline:!0}),n("frontend.account.delete_account.button")]})]}),e.jsx(ae,{asChild:!0,children:e.jsx(y,{kind:"tertiary",children:n("action.cancel")})})]})},ht="_link_1g96u_8",ft={link:ht},pt=E(`
|
||||||
|
fragment PasswordChange_siteConfig on SiteConfig {
|
||||||
|
passwordChangeAllowed
|
||||||
|
}
|
||||||
|
`);function gt({siteConfig:s}){const{t}=I(),{passwordChangeAllowed:a}=T(pt,s);return e.jsx(z,{children:e.jsxs(D,{name:"password_preview",children:[e.jsx(S,{children:t("frontend.account.password.label")}),e.jsx(G,{type:"password",readOnly:!0,value:"this looks like a password"}),e.jsxs(H,{children:[a&&e.jsx(Se,{to:"/password/change",className:ft.link,children:t("frontend.account.password.change")}),!a&&t("frontend.account.password.change_disabled")]})]})})}var F="Collapsible",[xt,Kt]=ke(F),[_t,W]=xt(F),ce=r.forwardRef((s,t)=>{const{__scopeCollapsible:a,open:n,defaultOpen:i,disabled:u,onOpenChange:c,...h}=s,[p,f]=Te({prop:n,defaultProp:i??!1,onChange:c,caller:F});return e.jsx(_t,{scope:a,disabled:u,contentId:Pe(),open:p,onOpenToggle:r.useCallback(()=>f(g=>!g),[f]),children:e.jsx(Q.div,{"data-state":Y(p),"data-disabled":u?"":void 0,...h,ref:t})})});ce.displayName=F;var le="CollapsibleTrigger",de=r.forwardRef((s,t)=>{const{__scopeCollapsible:a,...n}=s,i=W(le,a);return e.jsx(Q.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Y(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:De(s.onClick,i.onOpenToggle)})});de.displayName=le;var K="CollapsibleContent",ue=r.forwardRef((s,t)=>{const{forceMount:a,...n}=s,i=W(K,s.__scopeCollapsible);return e.jsx(Fe,{present:a||i.open,children:({present:u})=>e.jsx(jt,{...n,ref:t,present:u})})});ue.displayName=K;var jt=r.forwardRef((s,t)=>{const{__scopeCollapsible:a,present:n,children:i,...u}=s,c=W(K,a),[h,p]=r.useState(n),f=r.useRef(null),g=qe(t,f),x=r.useRef(0),_=x.current,m=r.useRef(0),b=m.current,o=c.open||h,j=r.useRef(o),l=r.useRef(void 0);return r.useEffect(()=>{const d=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(d)},[]),Me(()=>{const d=f.current;if(d){l.current=l.current||{transitionDuration:d.style.transitionDuration,animationName:d.style.animationName},d.style.transitionDuration="0s",d.style.animationName="none";const v=d.getBoundingClientRect();x.current=v.height,m.current=v.width,j.current||(d.style.transitionDuration=l.current.transitionDuration,d.style.animationName=l.current.animationName),p(n)}},[c.open,n]),e.jsx(Q.div,{"data-state":Y(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!o,...u,ref:g,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...s.style},children:o&&i})});function Y(s){return s?"open":"closed"}var wt=ce,Ct=de,bt=ue;function me(s,t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",ref:t,...s,children:e.jsx("path",{d:"m12 10.775-3.9 3.9a.95.95 0 0 1-.7.275.95.95 0 0 1-.7-.275.95.95 0 0 1-.275-.7q0-.425.275-.7l4.6-4.6q.15-.15.325-.212Q11.8 8.4 12 8.4t.375.063a.9.9 0 0 1 .325.212l4.6 4.6a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7.95.95 0 0 1-.7.275.95.95 0 0 1-.7-.275z"})})}me.displayName="ChevronUpIcon";const vt=r.forwardRef(me),yt="_root_1hqni_8",Et="_heading_1hqni_14",At="_trigger_1hqni_20",Nt="_trigger-title_1hqni_29",Rt="_trigger-icon_1hqni_34",It="_description_1hqni_42",St="_content_1hqni_48",A={root:yt,heading:Et,trigger:At,triggerTitle:Nt,triggerIcon:Rt,description:It,content:St},U=({title:s,description:t,defaultOpen:a,className:n,children:i,...u})=>{const{t:c}=I(),[h,p]=r.useState(a||!1),f=r.useId(),g=r.useId(),x=r.useCallback(_=>{_.preventDefault(),p(m=>!m)},[]);return e.jsx(wt,{...u,open:h,onOpenChange:p,asChild:!0,"aria-labelledby":f,"aria-describedby":t?g:void 0,className:$(A.root,n),children:e.jsxs("section",{children:[e.jsxs("header",{className:A.heading,children:[e.jsxs("div",{className:A.trigger,children:[e.jsx(Ye,{onClick:x,id:f,className:A.triggerTitle,children:s}),e.jsx(Ct,{className:A.triggerIcon,asChild:!0,children:e.jsx(Oe,{tooltip:c(h?"action.collapse":"action.expand"),children:e.jsx(vt,{})})})]}),t&&e.jsx("p",{className:A.description,id:g,children:t})]}),e.jsx(bt,{asChild:!0,children:e.jsx("article",{className:A.content,children:i})})]})})},Tt=E(`
|
||||||
|
fragment AddEmailForm_user on User {
|
||||||
|
hasPassword
|
||||||
|
}
|
||||||
|
`),kt=E(`
|
||||||
|
fragment AddEmailForm_siteConfig on SiteConfig {
|
||||||
|
passwordLoginEnabled
|
||||||
|
}
|
||||||
|
`),Pt=E(`
|
||||||
|
mutation AddEmail($email: String!, $password: String, $language: String!) {
|
||||||
|
startEmailAuthentication(
|
||||||
|
input: { email: $email, password: $password, language: $language }
|
||||||
|
) {
|
||||||
|
status
|
||||||
|
violations
|
||||||
|
authentication {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),Dt=({user:s,siteConfig:t,onAdd:a})=>{const{hasPassword:n}=T(Tt,s),{passwordLoginEnabled:i}=T(kt,t),u=n&&i,{t:c,i18n:h}=I(),p=Be(),[f,g]=Le(),x=te({mutationFn:({email:o,password:j,language:l})=>V({query:Pt,variables:{email:o,password:j,language:l}}),onSuccess:async o=>{if(p.invalidateQueries({queryKey:["userEmails"]}),o.startEmailAuthentication.status==="STARTED"){if(!o.startEmailAuthentication.authentication?.id)throw new Error("Unexpected response from server");await a(o.startEmailAuthentication.authentication?.id)}}}),_=r.useCallback(async o=>{o.preventDefault();const l=new FormData(o.currentTarget).get("input");let d;if(u&&(d=await f()),(await x.mutateAsync({email:l,password:d,language:h.languages[0]})).startEmailAuthentication.status!=="STARTED")throw new Error},[x.mutateAsync,u,f,h.languages]),m=x.data?.startEmailAuthentication.status??null,b=x.data?.startEmailAuthentication.violations??[];return e.jsxs(e.Fragment,{children:[e.jsx(Ue,{title:c("frontend.add_email_form.password_confirmation"),ref:g}),e.jsxs(it,{onSave:_,required:!0,type:"email",serverInvalid:!!m&&m!=="STARTED",label:c("frontend.add_email_form.email_field_label"),helpLabel:c("frontend.add_email_form.email_field_help"),saveButtonLabel:c("action.save"),savingLabel:c("common.saving"),savedLabel:c("common.saved"),cancelButtonLabel:c("action.cancel"),children:[e.jsx(C,{match:"typeMismatch",forceMatch:m==="INVALID_EMAIL_ADDRESS",children:c("frontend.add_email_form.email_invalid_error")}),m==="IN_USE"&&e.jsx(C,{children:c("frontend.add_email_form.email_in_use_error")}),m==="RATE_LIMITED"&&e.jsx(C,{children:c("frontend.errors.rate_limit_exceeded")}),m==="DENIED"&&e.jsxs(e.Fragment,{children:[e.jsx(C,{children:c("frontend.add_email_form.email_denied_error")}),b.map(o=>e.jsx(H,{children:o},o))]}),m==="INCORRECT_PASSWORD"&&e.jsx(C,{children:c("frontend.add_email_form.incorrect_password_error")})]})]})},Ft=E(`
|
||||||
|
query UserProfile {
|
||||||
|
viewerSession {
|
||||||
|
__typename
|
||||||
|
... on BrowserSession {
|
||||||
|
id
|
||||||
|
user {
|
||||||
|
...AddEmailForm_user
|
||||||
|
...UserEmailList_user
|
||||||
|
...AccountDeleteButton_user
|
||||||
|
hasPassword
|
||||||
|
emails(first: 0) {
|
||||||
|
totalCount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
siteConfig {
|
||||||
|
emailChangeAllowed
|
||||||
|
passwordLoginEnabled
|
||||||
|
accountDeactivationAllowed
|
||||||
|
...AddEmailForm_siteConfig
|
||||||
|
...UserEmailList_siteConfig
|
||||||
|
...PasswordChange_siteConfig
|
||||||
|
...AccountDeleteButton_siteConfig
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),qt=Ge({queryKey:["userProfile"],queryFn:({signal:s})=>V({query:Ft,signal:s})}),Mt=({id:s})=>{const{t}=I(),a=Je(s);return e.jsxs(se,{trigger:e.jsx(y,{kind:"primary",destructive:!0,size:"lg",Icon:ee,children:t("frontend.account.sign_out.button")}),children:[e.jsx(ne,{children:t("frontend.account.sign_out.dialog")}),e.jsxs(y,{type:"button",kind:"primary",destructive:!0,onClick:()=>a.mutate(),disabled:a.isPending,Icon:a.isPending?void 0:ee,children:[a.isPending&&e.jsx(re,{inline:!0}),t("action.sign_out")]}),e.jsx(ae,{asChild:!0,children:e.jsx(y,{kind:"tertiary",children:t("action.cancel")})})]})};function Yt(){const s=$e(),{t}=I(),{data:{viewerSession:a,siteConfig:n}}=ze(qt);if(a?.__typename!=="BrowserSession")throw He();const i=async u=>{await s({to:"/emails/$id/verify",params:{id:u}})};return e.jsxs("div",{className:"flex flex-col gap-6",children:[(n.emailChangeAllowed||a.user.emails.totalCount>0)&&e.jsxs(e.Fragment,{children:[e.jsxs(U,{defaultOpen:!0,title:t("frontend.account.contact_info"),children:[e.jsx(Ve,{user:a.user,siteConfig:n}),n.emailChangeAllowed&&e.jsx(Dt,{user:a.user,siteConfig:n,onAdd:i})]}),e.jsx(R,{kind:"section"})]}),n.passwordLoginEnabled&&a.user.hasPassword&&e.jsxs(e.Fragment,{children:[e.jsx(U,{defaultOpen:!0,title:t("frontend.account.account_password"),children:e.jsx(gt,{siteConfig:n})}),e.jsx(R,{kind:"section"})]}),e.jsxs(U,{title:t("common.e2ee"),children:[e.jsx(k,{className:"text-secondary",size:"md",children:t("frontend.reset_cross_signing.description")}),e.jsx(Ke,{to:"/reset-cross-signing",kind:"secondary",destructive:!0,children:t("frontend.reset_cross_signing.start_reset")})]}),e.jsx(R,{kind:"section"}),e.jsx(Mt,{id:a.id}),n.accountDeactivationAllowed&&e.jsxs(e.Fragment,{children:[e.jsx(R,{}),e.jsx(mt,{user:a.user,siteConfig:n})]}),e.jsx(R,{})]})}export{Yt as component};
|
||||||
|
//# sourceMappingURL=_account.index-Bgj2uEUe.js.map
|
||||||
BIN
mas/share/assets/_account.index-Bgj2uEUe.js.br
Normal file
BIN
mas/share/assets/_account.index-Bgj2uEUe.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/_account.index-Bgj2uEUe.js.gz
Normal file
BIN
mas/share/assets/_account.index-Bgj2uEUe.js.gz
Normal file
Binary file not shown.
1
mas/share/assets/_account.index-Bgj2uEUe.js.map
Normal file
1
mas/share/assets/_account.index-Bgj2uEUe.js.map
Normal file
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/_account.index-Bgj2uEUe.js.zz
Normal file
BIN
mas/share/assets/_account.index-Bgj2uEUe.js.zz
Normal file
Binary file not shown.
2
mas/share/assets/_account.plan.index-az7l7N5p.js
Normal file
2
mas/share/assets/_account.plan.index-az7l7N5p.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
import{o as c,ah as l,j as u,ai as m,r as o}from"./main-CiAhdYQG.js";import"./_commonjsHelpers-DaWZu8wl.js";/* empty css */function b(){const a=c(l),{planManagementIframeUri:t}=a.data.siteConfig;return t?u.jsx(f,{planManagementIframeUri:t}):u.jsx(m,{to:"/",replace:!0})}function f({planManagementIframeUri:a}){const t=o.useRef(null),r=o.useCallback(()=>{const e=t.current;if(!e)return;const n=e.contentWindow?.document.body.parentElement?.scrollHeight;n?e.height=`${n}px`:e.height="500px"},[]),s=o.useMemo(()=>new MutationObserver(e=>{r(),setTimeout(()=>{r()},1e3)}),[r]),i=o.useCallback(e=>{const n=e.contentWindow?.document.body;n&&(r(),s.observe(n,{childList:!0,subtree:!0,attributes:!0}))},[r,s]);return o.useEffect(()=>{const e=t.current;return e&&i(e),()=>s.disconnect()},[s,i]),u.jsx("iframe",{title:"iframe",ref:t,onLoad:e=>i(e.target),src:a,scrolling:"no"})}export{b as component};
|
||||||
|
//# sourceMappingURL=_account.plan.index-az7l7N5p.js.map
|
||||||
1
mas/share/assets/_account.plan.index-az7l7N5p.js.map
Normal file
1
mas/share/assets/_account.plan.index-az7l7N5p.js.map
Normal file
File diff suppressed because one or more lines are too long
1
mas/share/assets/_account.sessions-CQQxPQtC.css
Normal file
1
mas/share/assets/_account.sessions-CQQxPQtC.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
._browser-sessions-overview_xlk0o_8{display:flex;align-items:center;gap:var(--cpd-space-4x);padding:var(--cpd-space-4x);border-radius:var(--cpd-space-3x);background-color:var(--cpd-color-bg-canvas-default);outline:1px solid var(--cpd-color-gray-400);outline-offset:-1px}
|
||||||
47
mas/share/assets/_account.sessions.browsers-DNRESZGR.js
Normal file
47
mas/share/assets/_account.sessions.browsers-DNRESZGR.js
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import{u as l,au as u,o as f,q as m,p as v,ae as p,j as s,l as w,k as _,af as b}from"./main-CiAhdYQG.js";import{c as x}from"./Heading-zTQC9Kqs.js";import{F as S,B as g,E as h}from"./Filter-_9i8iQpA.js";import{B as d}from"./ButtonLink-kWcKQZoZ.js";import"./_commonjsHelpers-DaWZu8wl.js";/* empty css */import"./LastActive-D4SP35FS.js";import"./EndBrowserSessionButton-DXsnVcVV.js";import"./computer-Cx9wZ7Nf.js";const y=6,j=_(`
|
||||||
|
query BrowserSessionList(
|
||||||
|
$first: Int
|
||||||
|
$after: String
|
||||||
|
$last: Int
|
||||||
|
$before: String
|
||||||
|
$lastActive: DateFilter
|
||||||
|
) {
|
||||||
|
viewerSession {
|
||||||
|
__typename
|
||||||
|
... on BrowserSession {
|
||||||
|
id
|
||||||
|
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
|
||||||
|
browserSessions(
|
||||||
|
first: $first
|
||||||
|
after: $after
|
||||||
|
last: $last
|
||||||
|
before: $before
|
||||||
|
lastActive: $lastActive
|
||||||
|
state: ACTIVE
|
||||||
|
) {
|
||||||
|
totalCount
|
||||||
|
|
||||||
|
edges {
|
||||||
|
cursor
|
||||||
|
node {
|
||||||
|
id
|
||||||
|
...BrowserSession_session
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pageInfo {
|
||||||
|
hasNextPage
|
||||||
|
hasPreviousPage
|
||||||
|
startCursor
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),q=(e,r)=>m({queryKey:["browserSessionList",r,e],queryFn:({signal:o})=>w({query:j,variables:{lastActive:r?{before:b()}:void 0,...e},signal:o})});function N(){const{t:e}=l(),{inactive:r,pagination:o}=u.useLoaderDeps(),{data:{viewerSession:t}}=f(q(o,r));if(t.__typename!=="BrowserSession")throw v();const[i,n]=p(o,t.user.browserSessions.pageInfo,y),c=[...t.user.browserSessions.edges].reverse();return s.jsxs("div",{className:"flex flex-col gap-6",children:[s.jsx(x,{children:e("frontend.browser_sessions_overview.heading")}),s.jsx("div",{className:"flex gap-2 items-start",children:s.jsx(S,{to:"/sessions/browsers",enabled:r,search:{inactive:r?void 0:!0},children:e("frontend.last_active.inactive_90_days")})}),c.map(a=>s.jsx(g,{session:a.node,isCurrent:t.id===a.node.id},a.cursor)),t.user.browserSessions.totalCount===0&&s.jsx(h,{children:e(r?"frontend.browser_sessions_overview.no_active_sessions.inactive_90_days":"frontend.browser_sessions_overview.no_active_sessions.default")}),(n||i)&&s.jsxs("div",{className:"flex *:flex-1",children:[s.jsx(d,{kind:"secondary",size:"sm",disabled:!n,to:"/sessions/browsers",search:n||o,resetScroll:!0,children:e("common.previous")}),s.jsx("div",{}),s.jsx(d,{kind:"secondary",size:"sm",disabled:!i,to:"/sessions/browsers",search:i||o,resetScroll:!0,children:e("common.next")})]})]})}export{N as component};
|
||||||
|
//# sourceMappingURL=_account.sessions.browsers-DNRESZGR.js.map
|
||||||
BIN
mas/share/assets/_account.sessions.browsers-DNRESZGR.js.br
Normal file
BIN
mas/share/assets/_account.sessions.browsers-DNRESZGR.js.br
Normal file
Binary file not shown.
BIN
mas/share/assets/_account.sessions.browsers-DNRESZGR.js.gz
Normal file
BIN
mas/share/assets/_account.sessions.browsers-DNRESZGR.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
mas/share/assets/_account.sessions.browsers-DNRESZGR.js.zz
Normal file
BIN
mas/share/assets/_account.sessions.browsers-DNRESZGR.js.zz
Normal file
Binary file not shown.
110
mas/share/assets/_account.sessions.index-ChqhRgNC.js
Normal file
110
mas/share/assets/_account.sessions.index-ChqhRgNC.js
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
import{u as v,b as f,j as s,k as m,T as U,ad as C,o as _,q as g,p as h,ae as L,l as j,af as $}from"./main-CiAhdYQG.js";import{c as q,b as k}from"./Heading-zTQC9Kqs.js";import{B as x}from"./ButtonLink-kWcKQZoZ.js";import{s as B,E as F,g as R,a as P}from"./EndOAuth2SessionButton-CPWjVtc_.js";import{b as D,F as M,E as K}from"./Filter-_9i8iQpA.js";import{p as u,L as y,D as w}from"./LastActive-D4SP35FS.js";import{R as S,L as b,H as N,N as T,C as E,M as I,I as d,A as O}from"./EndBrowserSessionButton-DXsnVcVV.js";import{S as z}from"./Separator-CVNE-7yB.js";import{L as G}from"./Link-Do_sTHM7.js";import"./_commonjsHelpers-DaWZu8wl.js";/* empty css */import"./computer-Cx9wZ7Nf.js";const H=m(`
|
||||||
|
fragment CompatSession_session on CompatSession {
|
||||||
|
id
|
||||||
|
createdAt
|
||||||
|
deviceId
|
||||||
|
finishedAt
|
||||||
|
lastActiveIp
|
||||||
|
lastActiveAt
|
||||||
|
humanName
|
||||||
|
...EndCompatSessionButton_session
|
||||||
|
userAgent {
|
||||||
|
name
|
||||||
|
os
|
||||||
|
model
|
||||||
|
deviceType
|
||||||
|
}
|
||||||
|
ssoLogin {
|
||||||
|
id
|
||||||
|
redirectUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),Q=({session:t})=>{const{t:n}=v(),e=f(H,t),o=e.humanName??(e.ssoLogin?.redirectUri?B(e.ssoLogin.redirectUri):void 0),c=e.userAgent?.deviceType??"UNKNOWN",i=e.userAgent?.model??(e.userAgent?.name?e.userAgent?.os?n("frontend.session.name_for_platform",{name:e.userAgent.name,platform:e.userAgent.os}):e.userAgent.name:n("frontend.session.unknown_device")),a=u(e.createdAt),r=e.lastActiveAt?u(e.lastActiveAt):void 0;return s.jsxs(S,{children:[s.jsxs(b,{to:"/sessions/$id",params:{id:e.id},disabled:!!e.finishedAt,children:[s.jsxs(N,{type:c,children:[s.jsx(T,{name:i}),o&&s.jsx(E,{name:o,logoUri:D(e.userAgent?.name??void 0)})]}),s.jsxs(I,{children:[r&&s.jsx(d,{label:n("frontend.session.last_active_label"),children:s.jsx(y,{lastActive:r})}),s.jsx(d,{label:n("frontend.session.signed_in_label"),children:s.jsx(w,{datetime:a})}),s.jsx(d,{label:n("frontend.session.device_id_label"),children:e.deviceId})]})]}),!e.finishedAt&&s.jsx(O,{children:s.jsx(F,{session:e,size:"sm"})})]})},W=m(`
|
||||||
|
fragment OAuth2Session_session on Oauth2Session {
|
||||||
|
id
|
||||||
|
scope
|
||||||
|
createdAt
|
||||||
|
finishedAt
|
||||||
|
lastActiveIp
|
||||||
|
lastActiveAt
|
||||||
|
humanName
|
||||||
|
|
||||||
|
...EndOAuth2SessionButton_session
|
||||||
|
|
||||||
|
userAgent {
|
||||||
|
name
|
||||||
|
model
|
||||||
|
os
|
||||||
|
deviceType
|
||||||
|
}
|
||||||
|
|
||||||
|
client {
|
||||||
|
id
|
||||||
|
clientId
|
||||||
|
clientName
|
||||||
|
applicationType
|
||||||
|
logoUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),V=t=>t==="WEB"?"PC":t==="NATIVE"?"MOBILE":"UNKNOWN",Y=({session:t})=>{const{t:n}=v(),e=f(W,t),o=R(e.scope),c=u(e.createdAt),i=e.lastActiveAt?u(e.lastActiveAt):void 0,a=(e.userAgent?.deviceType==="UNKNOWN"?null:e.userAgent?.deviceType)??V(e.client.applicationType),r=e.client.clientName||e.client.clientId,p=e.humanName??e.userAgent?.model??(e.userAgent?.name?e.userAgent?.os?n("frontend.session.name_for_platform",{name:e.userAgent.name,platform:e.userAgent.os}):e.userAgent.name:n("frontend.session.unknown_device"));return s.jsxs(S,{children:[s.jsxs(b,{to:"/sessions/$id",params:{id:e.id},disabled:!!e.finishedAt,children:[s.jsxs(N,{type:a,children:[s.jsx(T,{name:p}),s.jsx(E,{name:r,logoUri:e.client.logoUri??void 0})]}),s.jsxs(I,{children:[i&&s.jsx(d,{label:n("frontend.session.last_active_label"),children:s.jsx(y,{lastActive:i})}),s.jsx(d,{label:n("frontend.session.signed_in_label"),children:s.jsx(w,{datetime:c})}),o&&s.jsx(d,{label:n("frontend.session.device_id_label"),children:o})]})]}),!e.finishedAt&&s.jsx(O,{children:s.jsx(P,{session:e,size:"sm"})})]})},Z="_browser-sessions-overview_xlk0o_8",J={browserSessionsOverview:Z},X=m(`
|
||||||
|
fragment BrowserSessionsOverview_user on User {
|
||||||
|
id
|
||||||
|
|
||||||
|
browserSessions(first: 0, state: ACTIVE) {
|
||||||
|
totalCount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),ee=({user:t})=>{const n=f(X,t),{t:e}=v();return s.jsxs("div",{className:J.browserSessionsOverview,children:[s.jsxs("div",{className:"flex flex-1 flex-col",children:[s.jsx(q,{children:e("frontend.browser_sessions_overview.heading")}),s.jsx(U,{children:e("frontend.browser_sessions_overview.body",{count:n.browserSessions.totalCount})})]}),s.jsx(G,{to:"/sessions/browsers",children:e("frontend.browser_sessions_overview.view_all_button")})]})},se=6,ne=m(`
|
||||||
|
query SessionsOverview {
|
||||||
|
viewer {
|
||||||
|
__typename
|
||||||
|
|
||||||
|
... on User {
|
||||||
|
id
|
||||||
|
...BrowserSessionsOverview_user
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),te=g({queryKey:["sessionsOverview"],queryFn:({signal:t})=>j({query:ne,signal:t})}),oe=m(`
|
||||||
|
query AppSessionsList(
|
||||||
|
$before: String
|
||||||
|
$after: String
|
||||||
|
$first: Int
|
||||||
|
$last: Int
|
||||||
|
$lastActive: DateFilter
|
||||||
|
) {
|
||||||
|
viewer {
|
||||||
|
__typename
|
||||||
|
|
||||||
|
... on User {
|
||||||
|
id
|
||||||
|
appSessions(
|
||||||
|
before: $before
|
||||||
|
after: $after
|
||||||
|
first: $first
|
||||||
|
last: $last
|
||||||
|
lastActive: $lastActive
|
||||||
|
state: ACTIVE
|
||||||
|
) {
|
||||||
|
edges {
|
||||||
|
cursor
|
||||||
|
node {
|
||||||
|
__typename
|
||||||
|
...CompatSession_session
|
||||||
|
...OAuth2Session_session
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
totalCount
|
||||||
|
pageInfo {
|
||||||
|
startCursor
|
||||||
|
endCursor
|
||||||
|
hasNextPage
|
||||||
|
hasPreviousPage
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`),ie=(t,n)=>g({queryKey:["appSessionList",n,t],queryFn:({signal:e})=>j({query:oe,variables:{lastActive:n?{before:$()}:void 0,...t},signal:e})}),re=t=>{throw new Error(`Unknown session type: ${t}`)};function xe(){const{t}=v(),{inactive:n,pagination:e}=C.useLoaderDeps(),{data:{viewer:o}}=_(te);if(o.__typename!=="User")throw h();const{data:c}=_(ie(e,n));if(c.viewer.__typename!=="User")throw h();const i=c.viewer.appSessions,[a,r]=L(e,i.pageInfo,se),p=[...i.edges].reverse();return s.jsxs("div",{className:"flex flex-col gap-6",children:[s.jsx(k,{children:t("frontend.user_sessions_overview.heading")}),s.jsx(ee,{user:o}),s.jsx(z,{kind:"section"}),s.jsx("div",{className:"flex gap-2 justify-start items-center",children:s.jsx(M,{to:"/sessions",enabled:n,search:{inactive:n?void 0:!0},children:t("frontend.last_active.inactive_90_days")})}),p.map(l=>{const A=l.node.__typename;switch(A){case"Oauth2Session":return s.jsx(Y,{session:l.node},l.cursor);case"CompatSession":return s.jsx(Q,{session:l.node},l.cursor);default:return re(A)}}),i.totalCount===0&&s.jsx(K,{children:t(n?"frontend.user_sessions_overview.no_active_sessions.inactive_90_days":"frontend.user_sessions_overview.no_active_sessions.default")}),(r||a)&&s.jsxs("div",{className:"flex *:flex-1",children:[s.jsx(x,{kind:"secondary",size:"sm",disabled:!r,to:"/sessions",search:{inactive:n,...r||e},resetScroll:!0,children:t("common.previous")}),s.jsx("div",{}),s.jsx(x,{kind:"secondary",size:"sm",disabled:!a,to:"/sessions",search:{inactive:n,...a||e},resetScroll:!0,children:t("common.next")})]})]})}export{xe as component};
|
||||||
|
//# sourceMappingURL=_account.sessions.index-ChqhRgNC.js.map
|
||||||
BIN
mas/share/assets/_account.sessions.index-ChqhRgNC.js.br
Normal file
BIN
mas/share/assets/_account.sessions.index-ChqhRgNC.js.br
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user