Bruno Windels
00aa40ea7b
copy Daniel's conversion of TemplateView to TypeScript from microui
...
with some minor type adjustments
2021-09-16 15:46:02 +02:00
Bruno Windels
ea4d833a43
reuse ViewNode in Child type
2021-09-16 15:39:25 +02:00
Bruno Windels
040efa970c
make className binding always have a value (may be undefined through T)
2021-09-16 15:39:17 +02:00
Bruno Windels
68fb093c9e
don't require mount args in mountView, like in UIView interface
2021-09-16 15:23:48 +02:00
Bruno Windels
060f4aa297
change extension in preparation for TS conversion
2021-09-16 14:02:36 +02:00
Bruno Windels
65f69a121b
copy Daniel's conversion of BaseUpdateView to TypeScript from microui
2021-09-16 14:01:33 +02:00
Bruno Windels
69672dd99c
copy Daniel's conversion of html.js to TypeScript from microui
2021-09-16 10:45:06 +02:00
Bruno Windels
2396a84c99
leave out svg editor markup from icon
2021-09-15 18:39:04 +02:00
Bruno Windels
e4101ece65
add "jump down" button in timeline
2021-09-15 18:30:08 +02:00
Bruno Windels
1df12b8c89
only allow pixel gaps of < 1px for stick to bottom to prevent eleweb bug
...
https://github.com/matrix-org/matrix-react-sdk/pull/6751
2021-09-15 17:23:53 +02:00
Bruno Windels
2c415e37e7
where ResizeObserver is support, restore anchored node on resize
2021-09-15 17:23:28 +02:00
Bruno Windels
04edff29cf
give more top padding to gaps that appear in the middle of the timeline
2021-09-15 15:57:31 +02:00
Bruno Windels
247d6a2148
add comments
2021-09-14 17:01:30 +02:00
Bruno Windels
feb0cf7e39
fix viewport changing width when timeline starts filling the viewport
...
otherwise centered tiles like announcementview jump a bit vertically
2021-09-13 15:40:15 +02:00
Bruno Windels
906e5886e1
fix tiny jump when timeline starts filling viewport
2021-09-13 15:39:56 +02:00
Bruno Windels
8858cffc55
fallback from scrollBy() to setting scrollTop on IE11
2021-09-13 14:53:08 +02:00
Bruno Windels
02b8b37b4c
disable native scroll anchoring as it interferes with our impl
2021-09-13 13:11:25 +02:00
Bruno Windels
9411e6f065
WIP
2021-09-10 14:47:05 +02:00
Bruno Windels
d1242c4b67
make gaps taller
2021-09-09 17:15:06 +02:00
Bruno Windels
d0f122a2be
WIP-ish, batch visible range requests, allow setting empty ranges and...
...
don't try to notify when the tile becomes invisible again,
we don't need it currently
2021-09-09 17:14:16 +02:00
Bruno Windels
ab67ac00b1
restore bottom of timeline initially after attach to DOM
...
this will also load more items if the viewport isn't filled
2021-09-08 12:06:17 +02:00
Bruno Windels
e89f60bac0
fill gap tiles when they become visible
2021-09-08 12:05:59 +02:00
Bruno Windels
7578bfa3d9
let tiles know when they become visible & load more tiles close to top
2021-09-08 12:05:19 +02:00
Bruno Windels
f4b4638ea8
actually, pass in just the tile instances for expressing the range
2021-09-07 19:10:53 +02:00
Bruno Windels
b3cd2a0e03
express the visible range with EventKeys rather than list indices
...
This is less ambiguous in case the DOM and the ObservableList would be
out of sync.
2021-09-07 17:48:49 +02:00
Bruno Windels
c78a83d398
restore most bottom tile in VP on any list change
...
and tell view model visible range so it can load more or fill gaps, ...
2021-09-07 15:17:27 +02:00
Bruno Windels
ad4ec5f04c
convert TimelineView to typescript
2021-09-06 17:51:32 +02:00
Bruno Windels
632d29795a
convert ListView to typescript
2021-09-06 17:12:14 +02:00
Bruno Windels
c6b020a9e7
Rename TimelineList to TimelineView for consistency
2021-09-06 13:31:43 +02:00
Bruno Windels
6c3a64f020
put switch button below input so it looks less like the big green link is related to the first paragraph
2021-09-01 15:44:14 +02:00
Bruno Windels
e105bc4237
fix lint warnings
2021-08-24 15:31:18 +02:00
Bruno Windels
65bd892d8f
better naming
2021-08-23 20:09:45 +02:00
Bruno Windels
d31e442c16
better text
2021-08-23 20:06:52 +02:00
Bruno Windels
c0d3c950b0
show the homeserver after lookup
2021-08-23 19:29:17 +02:00
Bruno Windels
c7b47bb8d6
fix homeServer misspelling to homeserver across the project
2021-08-23 19:26:39 +02:00
Bruno Windels
d1301fa642
input is not needed in the name here
2021-08-23 15:57:16 +02:00
Bruno Windels
8eab9ab28b
add 2s timeout on input of homeserver to also query the homeserver, in addition to change event
2021-08-23 15:54:40 +02:00
RMidhunSuresh
e80667c935
Remove duplicate style
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-23 15:50:22 +05:30
RMidhunSuresh
04806a1425
Convert link to button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 23:16:03 +05:30
RMidhunSuresh
a5985cba2a
Add spinner
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 22:18:24 +05:30
RMidhunSuresh
55da58893b
Red + bold error
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 21:41:42 +05:30
RMidhunSuresh
a2677a6400
Separate errors for each vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 21:22:12 +05:30
RMidhunSuresh
ff8417dfe2
Set busy state from login vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 20:31:22 +05:30
RMidhunSuresh
5ca732341a
Rename defaultHomeserver to homeserver
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 20:09:12 +05:30
RMidhunSuresh
bdc860eb79
Refactor to pull loadvm into login vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-20 15:19:42 +05:30
RMidhunSuresh
80ea48e8a1
Move input into t.if
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 21:43:44 +05:30
RMidhunSuresh
5ab405fc30
Move back-button to login view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 21:37:26 +05:30
RMidhunSuresh
daf7af17b1
Move logic to vm
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-19 20:50:00 +05:30
RMidhunSuresh
10a6aca477
Move homeserver input into LoginView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:05:25 +05:30
RMidhunSuresh
c4e7dc3b5a
Split SSOLoginViewModel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
6c6c4c7dfd
Style CompleteSSOLoginView
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
93720f6025
Style sso button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
b8f0361157
Split login view into password and sso components
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
cabffd5e3f
Move view to correct directory
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
c82af5a0a3
Replace link with button
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
2c953e361d
Remove queryLoginFromInput()
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
4b87887a4f
Show completion view on sso segment
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
RMidhunSuresh
75d71717d8
Show link for SSO login
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-18 22:04:33 +05:30
Bruno Windels
dbb9e5363c
guard against part types that have not been impl in the view
2021-08-07 09:00:41 +02:00
Danila Fedorin
f239199b1b
Add rendering for horizontal rules
2021-08-06 15:50:03 -07:00
Bruno Windels
2c8e259339
focus composer when replying
2021-08-06 23:43:10 +02:00
Bruno Windels
c3177b06bf
Merge pull request #418 from vector-im/replies
...
Sending replies
2021-08-06 21:28:42 +00:00
Bruno Windels
9f0c3b9cea
await sending a message before clearing composer (this was missing all along)
2021-08-06 23:06:58 +02:00
Danila Fedorin
a8fcf63cf9
Make the close button have a pointer cursor
2021-08-06 10:46:38 -07:00
Danila Fedorin
065b1789be
Remove interactive condition on continuation
2021-08-06 10:44:35 -07:00
RMidhunSuresh
1ce111c317
Css fix
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 21:07:30 +05:30
RMidhunSuresh
b97b9da14a
Link to member-panel from avatar
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 20:51:39 +05:30
Bruno Windels
1862e31396
Merge pull request #417 from MidhunSureshR/member-details
...
Member Panel - PR 2 - UI
2021-08-06 11:18:52 +00:00
RMidhunSuresh
7e8d76a95e
Refactor map into switch-case
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-06 16:21:31 +05:30
RMidhunSuresh
49be4e64ca
Remove object
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
fea4143af9
Use texttransform
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
0ff0850979
Remove dm user option
...
- I don't know why but I thought .../open-room/<user_id> would open an
invite view to a room with the specified user.
- Does not work like that, so removed.
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
16887c3c33
Better formatting
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
448bf3cb3f
Style tile
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
4784bcc590
Make the tiles link to details
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
f9b1068bae
Add links
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
fe6551ff3c
Use powerlevel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
c9224c13a7
Improve code and css
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
7ef7c419e3
Add basic UI and styling
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
acdba8fc02
Add license headers
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
e4bb20575b
Create navigation and add to right panel
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
RMidhunSuresh
fdd4caa0b7
Create vm and view
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-08-05 16:32:30 +05:30
Danila Fedorin
f0b6384ad7
Rename 'disabled' to 'interactive' in BaseMessageView
2021-08-03 13:27:33 -07:00
Bruno Windels
a9308f69b8
Merge pull request #420 from MidhunSureshR/add-license
...
Add missing license headers
2021-08-02 15:10:18 +00:00
Danila Fedorin
28248722a3
Fix incorrect conditions for showing avatar
2021-07-28 16:17:25 -07:00
Danila Fedorin
e2ad589aa3
Go through and clean up affected files.
2021-07-27 16:51:34 -07:00
Danila Fedorin
fb54ab68a3
Tweak reply style
2021-07-27 15:12:03 -07:00
RMidhunSuresh
34f1ecc0dc
Remove unused import
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-23 18:10:17 +05:30
RMidhunSuresh
281dc8bdb4
Add missing license headers
...
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
2021-07-23 18:05:48 +05:30
Danila Fedorin
711732200e
Make the reply box more distinct
2021-07-22 14:44:57 -07:00
Danila Fedorin
b0c5b2f2ce
Use the proper tile view to display reply preview
2021-07-22 14:15:18 -07:00
Danila Fedorin
650389538d
Add some basic styling
2021-07-22 14:07:13 -07:00
Danila Fedorin
83f7391af3
Adjust CSS to match new class structure
2021-07-22 13:39:40 -07:00
Danila Fedorin
1dcfdfc1d8
Split composer into preview and input
2021-07-22 13:37:35 -07:00
Danila Fedorin
013f187dc2
Avoid inserting li tags outside a list
2021-07-22 12:51:24 -07:00
Danila Fedorin
66f686210f
Add a very basic, unstyled view of the message to the composer.
2021-07-22 12:28:24 -07:00
Danila Fedorin
94ae5faa3c
Add a disabled flag to message view.
2021-07-22 11:16:34 -07:00
Danila Fedorin
d33d55376a
Put reply into its own view model.
...
Otherwise, we re-render the reply message on
every keystroke.
2021-07-20 16:51:36 -07:00
Danila Fedorin
fdcafaf6d3
Add _replyTo field to ComposerViewModel that can be set from a message
2021-07-19 16:10:35 -07:00
Bruno Windels
9044f4eebe
also for inline code
2021-07-16 23:32:38 +02:00