Bruno Windels
6aab049052
Merge branch 'master' into bwindels/calls
2022-07-04 16:59:17 +02:00
Bruno Windels
375d8b066c
complete settings view model for logs ui
2022-06-15 11:13:46 +02:00
Bruno Windels
ee5bd3b95f
Merge branch 'master' into bwindels/calls
2022-06-14 11:09:19 +02:00
RMidhunSuresh
b5fd3656a7
Fix code breaking on dev server
2022-06-12 16:53:25 +05:30
RMidhunSuresh
d08cfe3a29
Add more logging
2022-06-07 11:57:57 +05:30
RMidhunSuresh
71c3fb39a2
store theme-name and variant in settings
2022-06-05 20:52:47 +05:30
Bruno Windels
9384fdc885
Merge branch 'bwindels/fix-tracker-changed-key-check' into bwindels/calls
2022-05-31 13:46:10 +02:00
Bruno Windels
1555b0f4bc
put a message in container node when config file is not found
2022-05-18 21:41:31 +02:00
RMidhunSuresh
a550788788
Remove some logging + use wrapOrRun
2022-05-18 18:56:28 +05:30
RMidhunSuresh
7952a34d64
Add logging
2022-05-18 16:09:09 +05:30
RMidhunSuresh
9ba1534390
Remove unused import
2022-05-12 16:03:06 +05:30
RMidhunSuresh
0984aeb570
Move code to ThemeLoader
2022-05-12 13:39:57 +05:30
RMidhunSuresh
654e83a5f9
Remove method
2022-05-12 13:28:11 +05:30
R Midhun Suresh
4231037345
Update src/platform/web/Platform.js
...
Co-authored-by: Bruno Windels <274386+bwindels@users.noreply.github.com>
2022-05-12 12:48:41 +05:30
R Midhun Suresh
d5bc9f5d7d
Update src/platform/web/Platform.js
...
Co-authored-by: Bruno Windels <274386+bwindels@users.noreply.github.com>
2022-05-12 12:48:34 +05:30
RMidhunSuresh
cc88245933
Create themeLoader only if not dev
2022-05-11 15:46:12 +05:30
RMidhunSuresh
174adc0755
Move platform dependent code to Platform
2022-05-11 15:38:37 +05:30
RMidhunSuresh
2761789f45
Move theme code to separate file
2022-05-11 14:58:14 +05:30
RMidhunSuresh
855298bdaf
Read from manifest
2022-05-11 12:40:32 +05:30
RMidhunSuresh
af9cbd727f
Remove existing stylesheets when changing themes
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
a2a17dbf7a
fix unit test
2022-05-09 14:50:52 +02:00
Bruno Windels
0fdc6b1c3a
log both to idb storage and console, include open items in export
...
refactor logging api so a logger has multiple reporters, IDBLogPersister
and/or ConsoleReporter.
By default, we add the idb persister for production and both for dev
You can also inject your own logger when creating the platform now.
2022-05-06 15:54:45 +02:00
Bruno Windels
6e1174e03d
Merge branch 'master' into bwindels/calls-wip
2022-04-25 16:44:44 +02:00
Bruno Windels
fa34315210
undo refactoring typo from #723
2022-04-25 16:44:31 +02:00
Bruno Windels
8b16782270
Merge branch 'master' into bwindels/calls-wip
2022-04-25 12:43:01 +02:00
RMidhunSuresh
1cdc76f5a4
Use undefine instead of null
2022-04-21 14:14:38 +05:30
RMidhunSuresh
468b7e1595
Cache config.json
2022-04-21 12:52:42 +05:30
RMidhunSuresh
6cd3c8ee2b
Read config from URL
2022-04-20 12:42:07 +05:30
RMidhunSuresh
2cfcd4653f
Use named params
2022-04-20 12:00:33 +05:30
Bruno Windels
e482e3aeef
expose mediaDevices and webRTC from platform
2022-03-29 12:01:46 +02:00
Bruno Windels
8b8233ff00
Merge pull request #691 from vector-im/madlittlemods/only-crypto-in-secure-context
...
Only initialize `Crypto` when olm is provided
2022-03-03 17:33:50 +01:00
Eric Eastwood
2f4c639cef
Only initialize Crypto when olm is provided
...
See https://github.com/vector-im/hydrogen-web/pull/691#discussion_r816988082
2022-03-02 03:17:59 -06:00
Tushar
7055f02f16
typescriptify domain/avatar.js
2022-02-25 15:52:54 +05:30
Eric Eastwood
0935f2d23a
Only try to use window.crypto.subtle in secure contexts to avoid it throwing and stopping all JavaScript
...
Relevant error if you crypto is used in a non-secure context like a local LAN IP `http://192.168.1.151:3050/ `
```
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'deriveBits')
at new Crypto
at new Platform
at mountHydrogen
```
For my use-case with https://github.com/matrix-org/matrix-public-archive , I don't need crypto/encryption at all.
Docs:
- https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts
- https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle
- "Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers."
---
Related to https://github.com/vector-im/hydrogen-web/issues/579
2022-02-25 01:59:48 -06:00
Bruno Windels
13e77636a9
export paths from vite.js as required by Platform, reorder ctor params
...
make it easier for SDK users
2021-12-22 17:48:08 +01:00
Bruno Windels
9238961992
cache olm and olm worker promise inside Platform
...
as prep to call them every time a Client is created
2021-12-22 17:19:10 +01:00
Bruno Windels
0ec86b6dc1
Merge branch 'master' into bwindels/vite-mvp
2021-12-09 18:07:17 +01:00
Bruno Windels
62827b92b7
implement placeholder replacement so it still works with minification
2021-12-09 16:37:31 +01:00
Bruno Windels
4c2c99fc07
actually remove lookbehind
2021-12-08 18:05:57 +01:00
Bruno Windels
c8b0354d07
dont use lookbehind in regular expressions, safari & older firefoxes choke on them
2021-12-08 18:00:37 +01:00
Bruno Windels
c87628b614
cleanup
2021-12-06 15:40:15 +01:00
Bruno Windels
155cd4c9bd
make olmPath absolute if it isn't already
2021-12-06 13:49:14 +01:00
Bruno Windels
d91aaabeb3
Merge pull request #596 from vector-im/ts-conversion-matrix-sessioninfo
...
Convert matrix/sessioninfo to typescript
2021-12-02 09:29:11 +01:00
Bruno Windels
7e1818b285
Merge branch 'master' into bwindels/vite-mvp
2021-12-01 12:30:33 +01:00
Bruno Windels
ef712b16f5
Merge pull request #584 from vector-im/ts-conversion-utils
...
Convert /utils to typescript
2021-11-30 14:13:09 +01:00
RMidhunSuresh
fe77b71c97
use transformer function
2021-11-30 13:28:28 +05:30
RMidhunSuresh
bb18af414b
Convert SessionInfoStorage.js to ts
2021-11-25 15:18:03 +05:30