Add the profile image UI and docs (SCR-1)
CI / validate-monitoring (push) Successful in 10s
CI / lint (push) Successful in 14s
CI / federation-interop (push) Successful in 1m15s
CI / test (push) Successful in 7m2s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 5s
CI / validate-monitoring (push) Successful in 10s
CI / lint (push) Successful in 14s
CI / federation-interop (push) Successful in 1m15s
CI / test (push) Successful in 7m2s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 5s
A Profile page to upload, use Gravatar or remove the image, the avatar in the page header and on the public profile, a Sharing switch for it, and user/admin guide notes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b878523d51
commit
b388e7112d
10 files changed
+246
-2
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { api } from "./api.js";
|
||||
import { avatarImage } from "./avatar.js";
|
||||
import { errorBox, h, replace } from "./dom.js";
|
||||
import { publicPage } from "./layout.js";
|
||||
|
||||
@@ -22,6 +23,9 @@ try {
|
||||
});
|
||||
replace(
|
||||
root,
|
||||
profile.has_avatar
|
||||
? avatarImage(profile, "avatar-xl", `/federation/profiles/${encodeURIComponent(username)}/avatar`)
|
||||
: null,
|
||||
h("h1", {}, profile.display_name),
|
||||
h("div", { class: "approve-app handle" }, profile.handle),
|
||||
profile.bio ? h("p", { class: "lede profile-bio" }, profile.bio) : null,
|
||||
|
||||
Reference in new issue
Block a user