Bruno Windels
5c5193ef48
remove old build system and unused dependencies
...
some of these are for the ie11 legacy build, which has been
postponed. They will be brougth back when we bring back the legacy build
2021-12-09 18:04:11 +01:00
Bruno Windels
62827b92b7
implement placeholder replacement so it still works with minification
2021-12-09 16:37:31 +01:00
Bruno Windels
9a82f88e1f
log swSource as build fails in CI
2021-12-09 15:13:19 +01:00
Bruno Windels
23e0d3f2ff
get notification badge icon url through import now we transpile the sw
2021-12-09 15:13:05 +01:00
Bruno Windels
a4fac68393
use same method for setting version and build hash placeholder in sw
...
also better naming in service worker plugin
2021-12-09 14:36:12 +01:00
Bruno Windels
14dffa4ad4
remove leftover logging
2021-12-09 12:21:34 +01:00
Bruno Windels
8e4da396ea
replace global hash in given chunks
2021-12-09 12:15:17 +01:00
Bruno Windels
c344032c0a
transpile service worker and cleanup build plugin
2021-12-09 11:39:28 +01:00
Bruno Windels
fb8149b6cf
add base to manifest path, just for completeness
2021-12-08 18:29:07 +01:00
Bruno Windels
0e2a22f509
also look in chunks for cacheable assets for service worker
2021-12-06 15:34:39 +01:00
Bruno Windels
91e69a2bd0
fix icons in manifest not being found
2021-12-06 15:25:44 +01:00
Bruno Windels
7148f6fd41
wip to not babel deps
2021-11-10 19:10:23 +01:00
Bruno Windels
e83781b26a
make ie11 compatible
2021-11-10 19:10:06 +01:00
Bruno Windels
36a982f7e2
WIP to run rollup twice, first with vite and babel, then to inline deps
2021-11-09 18:10:12 +01:00
Bruno Windels
122528f9a9
also transpile typescript files
...
note that these have already been converted to javascript by vite
2021-11-09 17:59:58 +01:00
Bruno Windels
da7f66a531
setup babel for legacy build as input transform plugin
2021-11-09 14:52:03 +01:00
Bruno Windels
fcde507183
WIP
2021-11-08 11:13:02 +01:00
Bruno Windels
3b72157e64
apparently, package-overrides should use esm
...
otherwise they don't get transpiled for some reason
2021-11-08 11:12:19 +01:00
Bruno Windels
7dce579ac3
make babel plugin run after commonjs one added by vite
2021-11-08 11:12:19 +01:00
Bruno Windels
16918ddb7d
ie11 build wip
2021-11-08 11:12:13 +01:00
Bruno Windels
eb60f6717a
add comment for improvements
2021-11-08 11:10:34 +01:00
Bruno Windels
923a1a2057
use vite define option to inject version number everywhere
2021-11-08 11:10:34 +01:00
Bruno Windels
216afd45cc
vite/rollup plugin to inject and transform manifest & service worker
2021-11-08 11:10:34 +01:00
Bruno Windels
e2b20f466d
remove unneeded package override
2021-11-08 11:10:34 +01:00
Bruno Windels
b6fda8865f
make all dependencies use vite and remove post-install script / lib dir
2021-11-08 11:10:34 +01:00
Bruno Windels
54ac5a96ca
rename service-worker.js back to sw.js to unbreak updating
2021-08-23 20:23:38 +02:00
Danila Fedorin
5d764a9f0e
Add comment for srcPath
2021-08-17 14:24:10 -07:00
Danila Fedorin
e8dff6d16b
Move web-specific files to platform/web
2021-08-17 14:13:27 -07:00
Bruno Windels
b6d0d54241
explicitly name snowpack build ouput dir, and remove it after build
2021-08-17 17:20:48 +02:00
Danila Fedorin
b8e32a03f8
Invoke snowpack from build script
2021-08-09 13:30:25 -07:00
Danila Fedorin
b8c8325292
Copy olm and remove dompurify symlink
2021-08-06 12:46:41 -07:00
Danila Fedorin
f6b2d2cca8
Move index.html to a different place
2021-08-06 12:34:20 -07:00
Danila Fedorin
4022c6121b
Switch to DOMPurify in platform layer for sanitization.
2021-07-12 15:00:16 -07:00
Danila Fedorin
1435c2c9a2
Add HTML sanitization to domain layer.
2021-07-09 13:06:24 -07:00
Danila Fedorin
eca5308742
Move deserialization into domain and fix tests.
2021-07-07 12:21:10 -07:00
Bruno Windels
0685fa2622
update olm to 3.2.3
2021-06-08 17:23:39 +02:00
Bruno Windels
711b5be07f
show number of matches in logviewer and don't hide expanded sibling
...
fixes https://github.com/vector-im/hydrogen-web/issues/378
2021-06-02 21:25:46 +02:00
Bruno Windels
88a45470ba
add highlight and filter support to logviewer
2021-06-02 17:10:56 +02:00
Bruno Windels
d5e8481e22
allow side-effects at module level in src/ dir
...
otherwise things like src/observable/index.js break
2021-06-02 13:12:12 +02:00
Bruno Windels
6a5679a338
create mock storage using fake-indexeddb
2021-06-02 12:32:03 +02:00
Bruno Windels
f8f1d49c56
polyfill String.matchAll for IE11
...
See https://github.com/babel/babel/issues/10816
Don't really understand how or why this works, but it did
2021-05-31 13:04:03 +02:00
Johannes Marbach
452a0e7bda
Merge branch 'master' into feature/librejs
2021-04-28 20:22:20 +02:00
Bruno Windels
25e0211ca1
Merge pull request #279 from Johennes/feature/safari-viewport
...
Manually adapt UI when keyboard shows or hides on mobile Safari
2021-04-28 11:04:43 +02:00
Bruno Windels
d8d97c40f7
show start time milliseconds in log viewer
2021-04-08 18:35:30 +02:00
Johannes Marbach
37bb078547
Add license comments to make GNU LibreJS accept Hydrogen's JS
...
This adds proper license comments to all _internal_ JS scripts in the /target
build. This way the code self-identifies as Apache-2.0 which prevents LibreJS
from blocking it.
Closes : #209
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2021-03-27 14:19:58 +01:00
Johannes Marbach
14ed5fd1e8
Manually adapt UI when keyboard shows or hides on mobile Safari
...
Mobile Safari seems to be the only browser that does *not* resize the
viewport when the keyboard shows and hides. Instead the window is moved
to make room for the keyboard which moves content at the top off screen.
This uses the VisualViewport API to manually resize the `SessionView`
in response to keyboard display events. Additionally, if a DOM element
exists that has the `bottom-aligned-scroll` CSS class, its scroll
position is retained. Currently this only applies to the `Timeline`.
Note that the VisualViewport API was only introduced with iOS 13.
According to [statista.com], versions below 13 made up for 19% of
all iOS users in summer 2020, with the share continuing to fall off.
As a result, this seems like an acceptable workaround.
Fixes : #181
[statista.com]: https://www.statista.com/statistics/565270/apple-devices-ios-version-share-worldwide/
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2021-03-26 08:29:33 +01:00
Bruno Windels
2a0045bed7
support override main css file
2021-03-25 18:54:10 +01:00
Bruno Windels
cd615265f8
support overriding imports for customizations
2021-03-25 18:08:47 +01:00
Bruno Windels
165532be30
add badge icon to notifs
2021-03-25 00:12:57 +01:00
Bruno Windels
178790d816
symlink service worker for local dev, so its scope captures whole app
...
also rename service worker (as it is not a template anymore)
2021-03-23 18:20:23 +01:00