Commit Graph

915 Commits

Author SHA1 Message Date
Hugh Nimmo-Smith
34627f498f Use unstable OIDC scope names 2022-08-03 17:18:30 +01:00
Hugh Nimmo-Smith
3dc4a4c690 Link out to OIDC account management URL if available 2022-07-31 17:17:00 +01:00
Hugh Nimmo-Smith
a0ee8a9607 Actually make SessionLoadViewModel.logout do something 2022-07-31 10:06:01 +01:00
Hugh Nimmo-Smith
97bea400f6 Improve error handling for OIDC discovery and registration 2022-07-25 09:22:06 +01:00
Hugh Nimmo-Smith
60c149713b fix: hide OIDC button when not in use 2022-07-25 09:00:30 +01:00
Hugh Nimmo-Smith
385b9cc713 Try to improve error message on no login method available 2022-07-25 09:00:16 +01:00
Hugh Nimmo-Smith
b48e6b3fb6 Request urn:matrix:api:* scope for OIDC 2022-07-25 08:58:04 +01:00
Quentin Gliech
12d1760582
Make hydrogen generate the device scope 2022-07-04 18:44:31 +02:00
Quentin Gliech
897fc54103
Add client_uri, tos_uri and policy_uri client metadata 2022-07-04 16:22:59 +02:00
Quentin Gliech
f1cc22a920
OIDC dynamic client registration 2022-07-04 16:22:59 +02:00
Quentin Gliech
fdf11cc791
Typo. 2022-07-04 16:22:59 +02:00
Quentin Gliech
ace7ad7065
Use platform APIs for text encoding and hashing 2022-07-04 16:18:06 +02:00
Quentin Gliech
2086dc8f32
Simplify OIDC callback navigation handling 2022-07-04 16:18:06 +02:00
Quentin Gliech
d723561d66
Generate the OIDC redirect URI from the URLRouter
This also saves the redirectUri during the flow
2022-07-04 16:18:06 +02:00
Quentin Gliech
dac68f362a
Only generate the auth URL and start the login flow on click 2022-07-04 16:18:06 +02:00
Quentin Gliech
c9b1c72d5b
Native OIDC login 2022-07-04 16:18:06 +02:00
Bruno Windels
7430aa7aab allow download media in media view model 2022-06-25 20:14:32 +02:00
Bruno Windels
3b66ed8c17 fix type 2022-06-15 11:24:16 +02:00
Bruno Windels
375d8b066c complete settings view model for logs ui 2022-06-15 11:13:46 +02:00
Bruno Windels
69ada73dd4 cleanup rageshake code 2022-06-15 11:13:05 +02:00
Bruno Windels
2129a97588 remove unused param 2022-06-15 11:12:49 +02:00
Bruno Windels
a644621889 basic support for sending rageshake in view model 2022-06-14 18:46:02 +02:00
RMidhunSuresh
69d8e6031e This isn't used anywhere 2022-06-14 19:26:59 +05:30
RMidhunSuresh
2f0f7143b5 Simplify code 2022-06-06 17:20:36 +05:30
RMidhunSuresh
71c3fb39a2 store theme-name and variant in settings 2022-06-05 20:52:47 +05:30
RMidhunSuresh
b74f4b612b Change UI 2022-06-05 20:52:47 +05:30
RMidhunSuresh
efb1a67470 Make method name a verb 2022-06-05 20:52:47 +05:30
RMidhunSuresh
0b98473e85 Render a radio button for default variants 2022-06-05 20:52:47 +05:30
RMidhunSuresh
2761789f45 Move theme code to separate file 2022-05-11 14:58:14 +05:30
RMidhunSuresh
c39f0d2efb Don't show theme chooser on dev 2022-05-10 14:12:36 +05:30
RMidhunSuresh
c611d3f85c Select current theme in dropdown 2022-05-10 14:12:36 +05:30
RMidhunSuresh
ecb83bb277 Store and load theme from setting 2022-05-10 14:12:36 +05:30
RMidhunSuresh
daae7442bb Create theme chooser 2022-05-10 14:12:36 +05:30
Bruno Windels
e903d3a6a4 mark options as readonly 2022-05-09 14:12:31 +02:00
Bruno Windels
3888291758 updateOptions is unused,not the best idea since options is/can be shared 2022-05-09 14:10:50 +02:00
Bruno Windels
6beff7e552 override emitChange so no need to clone option object for all tiles
instead, we don't store the emitChange in the options but rather on
the tile itself.
2022-05-09 14:09:45 +02:00
RMidhunSuresh
139a87de99 Pass a copy of the options to the tiles 2022-05-08 19:14:51 +05:30
Bruno Windels
57f50cc416 fix lint warnings 2022-04-08 15:01:27 +02:00
Bruno Windels
a913671f0c make tileClassForEntry optional, as otherwise it is a breaking change 2022-04-08 14:19:34 +02:00
Bruno Windels
5445db2a42 allow injecting the tilesCreator from the Root/Session/RoomViewModel
this changes the API slightly to be more future-proof,
as we'll expose it in the SDK now.

The function now returns a SimpleTile constructor, rather than an
instance. This allows us to test if an entry would render in the
timeline without creating a tile, which is something we might want in
the matrix layer later on.

The function is now called tileClassForEntry, analogue to what we
do in TimelineView.
2022-04-08 12:52:30 +02:00
Bruno Windels
88482292e1
Merge pull request #700 from vector-im/ajbura-patch-2
Add observeNavigation in ViewModel
2022-04-07 14:08:40 +02:00
Bruno Windels
ca211f929b
Merge pull request #702 from vector-im/bwindels/observablemapts
convert (Base)ObservableMap to typescript
2022-03-09 11:53:59 +01:00
Bruno Windels
6d7c983e8e convert (Base)ObservableMap to typescript 2022-03-09 11:33:49 +01:00
Ajay Bura
e07abfa02a
Add missing type 2022-03-07 11:33:51 +05:30
Ajay Bura
61ce2f9e3d
Add observeNavigation in ViewModel 2022-03-03 15:36:25 +05:30
Eric Eastwood
c09964dc30
Add data-event-id="$xxx" attributes to timeline items for easy selecting in end-to-end tests (#690)
Split out from https://github.com/vector-im/hydrogen-web/pull/653

Example test assertions: db6d3797d7/test/e2e-tests.js (L248-L252)

```js
// Make sure the $abc event on the page has "foobarbaz" text in it
assert.match(
  dom.document.querySelector(`[data-event-id="$abc"]`).outerHTML,
  new RegExp(`.*foobarbaz.*`)
);
```
2022-03-01 18:36:14 -06:00
Tushar
17acda7741 typescriptify domain/LogoutViewModel.js 2022-02-25 16:45:07 +05:30
Tushar
7055f02f16 typescriptify domain/avatar.js 2022-02-25 15:52:54 +05:30
Bruno Windels
7f1fed6f8c always pass options to ViewModel constructor 2022-02-17 09:24:18 +01:00
RMidhunSuresh
498a43327f Check if options exist in emitChange 2022-02-17 11:30:04 +05:30