Добавлен канал личных публикаций

This commit is contained in:
AidarKC
2026-11-28 01:18:53 +03:00
parent 7d3f5db206
commit d1ca64d1c1
28 changed files with 325 additions and 473 deletions
+5 -2
View File
@@ -59,12 +59,14 @@ export function render({ navigate, route, chrome }) {
card,
login: requestedLogin,
isSelf,
tilesHtml: isSelf ? '' : [
tilesHtml: [
profileTileHtml({ icon: 'channels', label: t('remaining.channels.publications'), attrs: 'data-profile-action="publications"' }),
...(isSelf ? [] : [
profileTileHtml({ icon: 'user-plus', label: t('screens.user_profile_view.text_004'), attrs: 'data-profile-action="add"' }),
profileTileHtml({ label: t('screens.user_profile_view.text_005'), attrs: 'data-profile-action="links"', iconMarkup: `<img class="pf-tile-mandala" src="${SHINE_CONNECTIONS_LOGO_SRC}" alt="" aria-hidden="true">` }),
profileTileHtml({ icon: 'message', label: t('screens.user_profile_view.text_006'), attrs: 'data-profile-action="chat"' }),
profileTileHtml({ icon: 'heart', label: t('screens.support_phase2.donate'), attrs: 'data-profile-action="support"' }),
].join(''),
])].join(''),
});
attachSupportStats(body, { login: card.login, isActive: () => !disposed });
@@ -117,6 +119,7 @@ export function render({ navigate, route, chrome }) {
const actionButton = event.target.closest('[data-profile-action]');
const action = actionButton?.dataset.profileAction;
if (action === 'publications') { navigate(`SHiNE/${encodeURIComponent(card.login)}/stories`); return; }
if (action === 'add') {
navigate(`SHiNE/${encodeURIComponent(card.login)}/manage`);
return;