mirror of
https://github.com/zyachel/quetre.git
synced 2025-04-03 04:57:37 +03:00
fix: remove stats from UI that aren't available anymore
includes no. of topic's followers, no. of topics a person is following, etc.
This commit is contained in:
parent
f11d3f2ac6
commit
a0ac36a174
4 changed files with 2 additions and 14 deletions
|
@ -184,7 +184,6 @@ const getProfile = async (slug, lang) => {
|
|||
},
|
||||
spaces: {
|
||||
numActiveInSpaces: rawData.numCanContributeTribes,
|
||||
numFollowingSpaces: rawData.numFollowedTribes,
|
||||
spaces: rawData.followingTribesConnection.edges.map(space => ({
|
||||
numItems: space.node.numItemsOfUser,
|
||||
url: quetrefy(space.node.url),
|
||||
|
@ -194,7 +193,6 @@ const getProfile = async (slug, lang) => {
|
|||
})),
|
||||
},
|
||||
topics: {
|
||||
numFollowingTopics: rawData.numFollowedTopics,
|
||||
topics: rawData.expertiseTopicsConnection.edges.map(topic => ({
|
||||
name: topic.node.name,
|
||||
url: quetrefy(topic.node.url),
|
||||
|
|
|
@ -30,8 +30,6 @@ const data = {
|
|||
name: rawData.name,
|
||||
url: quetrefy(rawData.url),
|
||||
image: rawData.photoUrl,
|
||||
aliases: rawData.aliases,
|
||||
numFollowers: rawData.numFollowers,
|
||||
// isLocked: rawData.isLocked,
|
||||
isAdult: rawData.adult,
|
||||
mostViewedAuthors: rawData.mostViewedAuthors.map(author => ({
|
||||
|
|
|
@ -145,8 +145,7 @@ block content
|
|||
section.profile__spaces.profile-spaces
|
||||
h2.heading.heading__secondary Spaces
|
||||
p.profile-spaces__info
|
||||
span.profile-spaces__item Active in #{data.spaces.numActiveInSpaces},
|
||||
span.profile-spaces__item following #{data.spaces.numFollowingSpaces} spaces
|
||||
span.profile-spaces__item Active in #{data.spaces.numActiveInSpaces} spaces
|
||||
ul.profile-spaces__list
|
||||
each space in data.spaces.spaces
|
||||
li.metadata-primary.profile-spaces__list-item
|
||||
|
@ -160,9 +159,7 @@ block content
|
|||
span sensitive space
|
||||
|
||||
section.profile__topics.profile-topics
|
||||
h2.heading.heading__secondary.profile-topics__heading Topics
|
||||
p.profile-topics__info
|
||||
span.profile-topics__item Following #{data.topics.numFollowingTopics} topics
|
||||
h2.heading.heading__secondary.profile-topics__heading Topics
|
||||
ul.profile-topics__list
|
||||
each topic in data.topics.topics
|
||||
li.metadata-primary.profile-topics__list-item
|
||||
|
|
|
@ -15,12 +15,7 @@ block content
|
|||
.metadata-primary
|
||||
h1.heading.heading__primary.metadata-primary__heading.topic__name= data.name
|
||||
+proxifyImg(data.image)(class='metadata-primary__image', alt='', aria-hidden='true')
|
||||
p.metadata-primary__misc
|
||||
if data.aliases.length
|
||||
span Also known as:
|
||||
span= data.aliases.join(', ')
|
||||
.metadata-secondary
|
||||
+addMetadataSecondary('user','Followers', data.numFollowers)
|
||||
if data.isAdult
|
||||
+addMetadataSecondary('danger', 'Adult Topic', '18+', true)
|
||||
+quorafyUrl(meta.url)(class='link')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue