Commit graph

166 commits

Author SHA1 Message Date
Bruno Windels
be9e476874 extract theme from current styling 2020-08-12 11:52:03 +02:00
Bruno Windels
23d96b554a make theme directory
+ readme of ~what should go in a theme
2020-08-12 11:51:21 +02:00
Bruno Windels
5546460510 more brawl -> hydrogen renaming 2020-08-12 11:42:42 +02:00
Bruno Windels
eb92b9a086 Disable rubberband scrolling for IE11 2020-08-07 18:15:17 +01:00
Bruno Windels
e054dfb623 Merge branch 'master' into bwindels/legacy-css 2020-08-07 17:03:45 +01:00
Bruno Windels
a0c8d147c3 Use parentNode, parentElement is not supported on IE11 2020-08-07 15:07:44 +01:00
Bruno Windels
b1dd3933e2 WIP 2020-08-07 11:16:46 +01:00
Bruno Windels
00a85697ab add license header in all source files 2020-08-05 18:38:55 +02:00
Bruno Windels
e2c8b5e595 pass vm field to emitChange 2020-06-24 22:43:29 +02:00
Bruno Windels
0e5ad9805a use intrinsic aspect-ratio supported by chrome and firefox (although not safari) 2020-05-13 10:20:28 +02:00
Bruno Windels
1ec2543467 fix image aspect ratio when scaling, again
also when image hasn't loaded yet to prevent scroll position jumps
2020-05-10 11:56:05 +02:00
Bruno Windels
174b0b7d52 disable pull to refresh on android 2020-05-10 10:00:13 +02:00
Bruno Windels
d79e34e450 fix image height scaling when full width doesn't fit on screen 2020-05-10 09:59:51 +02:00
Bruno Windels
df08ac216d prevent images from growing larger than container 2020-05-09 21:22:30 +02:00
Bruno Windels
d6882f075a don't let long status messages create overflow 2020-05-09 21:22:09 +02:00
Bruno Windels
2b17d0f691 spell height correctly 2020-05-09 21:21:55 +02:00
Bruno Windels
7f221cda65 show images intimeline 2020-05-09 20:02:08 +02:00
Bruno Windels
426dd726e7 default to true 2020-05-08 09:31:41 +02:00
Bruno Windels
5aee3df7fe fix SessionPickerItemView not updating 2020-05-08 09:12:33 +02:00
Bruno Windels
06fc3101e8 make login view enabled again if load view is not busy anymore 2020-05-06 23:44:52 +02:00
Bruno Windels
abc99c2f0b fix svg error in spinner 2020-05-06 23:31:22 +02:00
Bruno Windels
d0f09c5334 add status bar to view gallery for design 2020-05-05 23:18:44 +02:00
Bruno Windels
22821af346 css changes for status bar 2020-05-05 23:18:31 +02:00
Bruno Windels
0623c1c665 subViews is in TemplateView 2020-05-05 23:17:48 +02:00
Bruno Windels
3adc609e07 implement session status bar, with feedback on connection status 2020-05-05 23:16:51 +02:00
Bruno Windels
4ffaa82435 add interval to clock 2020-05-05 23:12:14 +02:00
Bruno Windels
d70a57a7c9 remove support for observablevalues from templateview
it's not used, and so params haven't been standardized
trying to unify it, it messes up overriding update in RoomView
that extends it to set the timelineViewModel upon update.
2020-05-04 22:24:49 +02:00
Bruno Windels
d6645cbba9 null guard if list was never set 2020-05-04 22:24:10 +02:00
Bruno Windels
d7a8b1616a use t.view for room sub views
also move composer to own vm
2020-05-04 22:23:43 +02:00
Bruno Windels
225fe873be show session load view when picking a session 2020-05-04 19:38:03 +02:00
Bruno Windels
3dde23fc4b dispose viewmodels from TemplateView 2020-05-04 19:24:27 +02:00
Bruno Windels
1ef564bdb0 cleanup 2020-05-04 19:24:20 +02:00
Bruno Windels
d91ab5355c support svg namespace, fix spinner 2020-05-03 01:08:53 +02:00
Bruno Windels
d69987b426 make view gallery of views in different states 2020-04-30 18:28:21 +02:00
Bruno Windels
d3f7fb5089 prototype how i18n would look like 2020-04-30 18:27:59 +02:00
Bruno Windels
ceec8937ef apply template view api changes 2020-04-30 18:27:21 +02:00
Bruno Windels
cdf051f19b api changes 2020-04-29 19:16:52 +02:00
Bruno Windels
2c8c1eb767 move el with the publics 2020-04-29 19:12:48 +02:00
Bruno Windels
6a9315e70a do what we said in the comment 2020-04-29 19:12:12 +02:00
Bruno Windels
f4bb609ab6 notes 2020-04-29 10:10:33 +02:00
Bruno Windels
8bde627cdb more WIP 2020-04-29 10:10:20 +02:00
Bruno Windels
37c602f7d2 rename Template to TemplateView, as it is a view now. 2020-04-29 10:04:40 +02:00
Bruno Windels
2008cf74f1 Template becomes a view 2020-04-29 10:01:08 +02:00
Bruno Windels
e0799181d9 show error when mount() fails in SwitchView 2020-04-22 20:53:18 +02:00
Bruno Windels
e37101210c adjust LoginView(Model) further to showing loading status in place 2020-04-22 20:52:28 +02:00
Bruno Windels
96aa4f83b9 remove loading section in BrawlView 2020-04-22 20:49:49 +02:00
Bruno Windels
001dbefbcf stop using default exports
because it becomes hard to remember where you used them and where not
2020-04-20 21:26:39 +02:00
Bruno Windels
0de5e899ea remove dead code 2020-04-20 21:25:17 +02:00
Bruno Windels
8c5411cb7d moar WIP 2020-04-19 19:02:10 +02:00
Bruno Windels
1f15ca6498 more WIP 2020-04-18 19:16:16 +02:00
Bruno Windels
378b75c98a more WIP and breakage 2020-04-09 23:19:49 +02:00
Bruno Windels
eda4022692 show version before login and link to release 2020-03-23 22:46:31 +01:00
Bruno Windels
35c090dcb4 add proper import/export functionality 2019-12-14 18:29:35 +01:00
Bruno Windels
9c42710f9b add github link to home screens 2019-11-22 09:46:19 +01:00
Bruno Windels
d073f2825b show json in one line when clearing cache
also make naming consistent
2019-10-24 10:54:20 +02:00
Bruno Windels
d34a0c73b5 show json in list instead of alert so we can copy it 2019-10-13 08:29:23 +02:00
Bruno Windels
6f73d3983f add export/import of session data 2019-10-13 08:16:08 +02:00
Bruno Windels
e2b9e9dfdc add clear cache button for session 2019-10-13 07:48:49 +02:00
Bruno Windels
2fa5fa7890 add delete button in session picker 2019-10-12 21:16:48 +02:00
Bruno Windels
076582edc3 css fixes
- don't pronounce avatar initials
 - prevent room header growing wider than screen
 - ensure messages wrap their text
2019-09-28 09:46:09 +02:00
Bruno Windels
f7f9129b8b show send errors in UI 2019-09-15 12:23:26 +02:00
Bruno Windels
ed67689fdf some minimal styling for login and session picker 2019-09-08 10:40:05 +02:00
Bruno Windels
09b9eff7c1 fix remaining errors to make login work 2019-09-08 10:19:16 +02:00
Bruno Windels
a7194e0c7a implement missing views 2019-09-08 10:18:59 +02:00
Bruno Windels
1082233de4 start of session picker view 2019-07-31 00:07:12 +02:00
Bruno Windels
49a577991b login and session picker view models, sessions store 2019-07-31 00:06:53 +02:00
Bruno Windels
378eea8ceb
Merge pull request #5 from bwindels/bwindels/sending
Send text messages
2019-07-29 18:28:29 +00:00
Bruno Windels
5b4d984645 height of app should always fill screen (not more or less) 2019-07-29 20:11:15 +02:00
Bruno Windels
8665bcb897 concat synced events in timeline with pending events for local echo 2019-07-29 19:53:58 +02:00
Bruno Windels
3ed72df620 put everything together to make it roughly work
no local echo yet, and send errors are being swallowed
2019-07-27 10:51:51 +02:00
Bruno Windels
c5b2d0c8b2 WIP 2019-06-28 00:52:54 +02:00
Bruno Windels
e09d2963df fix timeline scrolling 2019-06-28 00:44:49 +02:00
Bruno Windels
fc873fbfa5 more css fixes, and make back button work for compact layout 2019-06-26 23:14:39 +02:00
Bruno Windels
38a8132397 fix narrow layout 2019-06-26 22:43:59 +02:00
Bruno Windels
cd9f25ea80 convert tabs to spaces where needed 2019-06-26 22:31:36 +02:00
Bruno Windels
72c193cce5 page to debug app on mobile phones without remote access to tools 2019-06-26 22:19:40 +02:00
Bruno Windels
106146660c define storage keys to be 32bit for idb / web platform
as a preparation to serialize the eventIndex and fragmentId
as a 8 character string, part of a concatenated string PK,
as lumia doesn't support array keys.
2019-06-26 21:52:41 +02:00
Bruno Windels
9cd5257959 load more events when scrolled to top 2019-06-16 17:29:33 +02:00
Bruno Windels
c12300bfa5 make loadList not private when we're going to override it 2019-06-16 17:28:51 +02:00
Bruno Windels
2131329442 scroll to bottom when loading timeline 2019-06-16 16:39:20 +02:00
Bruno Windels
a1c23f715a always show date for now (but omit year to make it less annoying) 2019-06-16 16:19:26 +02:00
Bruno Windels
d7bc92c391 center placeholder text in both directions 2019-06-16 16:19:00 +02:00
Bruno Windels
a09c3e7bed hide sender name if previous message was by same sender 2019-06-16 15:48:54 +02:00
Bruno Windels
4a657b279d apply css from prototype, other small changes, keep scroll at bottom 2019-06-16 15:21:20 +02:00
Bruno Windels
d72a7102b2 only bind className when the obj has at least 1 fn, also support it html 2019-06-16 15:12:54 +02:00
Bruno Windels
590ed56d68 leftover things that got moved during directory org 2019-06-16 10:54:37 +02:00
Bruno Windels
a5a333b71a organize view code in directory like viewmodels 2019-06-16 10:53:01 +02:00
Bruno Windels
95e1d55b97 extract argument detection for el and use it in both html and Template 2019-06-15 17:50:54 +02:00
Bruno Windels
03df472c53 show placeholder in middle panel when no room is selected 2019-06-15 17:50:15 +02:00
Bruno Windels
16fed27a8a SwitchView, to alternate between different views 2019-06-15 17:49:45 +02:00
Bruno Windels
ad92356b40 css class same name as prop 2019-06-14 23:46:47 +02:00
Bruno Windels
bec7720c42 cleanup template code 2019-06-14 23:46:31 +02:00
Bruno Windels
468af4755b cleanup html utils 2019-06-14 23:46:18 +02:00
Bruno Windels
5feca5e0f4 gap has its own view now 2019-06-14 23:44:31 +02:00
Bruno Windels
0a6c50b3bb support bindings for className object 2019-06-14 23:08:41 +02:00
Bruno Windels
f9038e2af9 dedicated template view for gaps 2019-06-14 22:55:07 +02:00
Bruno Windels
69be5012e8 templateview exposes viewModel prop 2019-06-14 22:54:51 +02:00
Bruno Windels
eba92399e3 update TemplateView with changes 2019-06-14 22:45:13 +02:00
Bruno Windels
0503b48c98 support conditional subtemplate & optimizations 2019-06-14 22:43:31 +02:00
Bruno Windels
773b4ed941 remove support for refs
not really needed, as render functions work with DOM nodes
that can be easily stored as a side-effect of the render fn
2019-06-14 22:41:50 +02:00