web: Add profile view.
Note that this is incomplete as I do not fetch the events for the user and render them. I am also missing the state check for if you follow the user.
This commit is contained in:
parent
b5a2b5ec2b
commit
9f2af26fa6
8 changed files with 179 additions and 26 deletions
|
@ -66,6 +66,7 @@ function init_home_model() {
|
|||
seen: new Set(),
|
||||
},
|
||||
notifications: init_timeline('notifications'),
|
||||
profile: init_timeline('profile'),
|
||||
},
|
||||
pow: 0, // pow difficulty target
|
||||
deleted: {},
|
||||
|
@ -106,15 +107,6 @@ function update_title(model) {
|
|||
update_notification_markers(has_notes)
|
||||
}
|
||||
|
||||
// update_notification_markers will find all markers and hide or show them
|
||||
// based on the passed in state of 'active'.
|
||||
function update_notification_markers(active) {
|
||||
let els = document.querySelectorAll(".new-notifications")
|
||||
for (const el of els) {
|
||||
el.classList.toggle("hide", !active)
|
||||
}
|
||||
}
|
||||
|
||||
function notice_chatroom(state, id)
|
||||
{
|
||||
if (!state.chatrooms[id])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue