0.5.10-invites-crud
All checks were successful
Deploy on push / deploy (push) Successful in 7s

This commit is contained in:
2025-06-30 22:19:46 +03:00
parent 1e2c85e56a
commit 41395eb7c6
14 changed files with 1748 additions and 385 deletions

View File

@@ -17,15 +17,10 @@ export const ADMIN_GET_SHOUTS_QUERY: string =
cover
cover_caption
media {
type
url
title
body
source
pic
date
genre
artist
lyrics
caption
}
seo
created_at
@@ -35,23 +30,45 @@ export const ADMIN_GET_SHOUTS_QUERY: string =
deleted_at
created_by {
id
email
name
email
slug
}
updated_by {
id
name
email
slug
}
deleted_by {
id
name
email
slug
}
community {
id
name
slug
}
authors {
id
name
email
slug
}
topics {
id
title
slug
}
version_of
draft
stat {
rating
comments_count
viewed
last_commented_at
}
}
total
@@ -115,21 +132,24 @@ export const GET_COMMUNITIES_QUERY: string =
gql`
query GetCommunities {
get_communities_all {
id
slug
name
desc
pic
created_at
created_by {
communities {
id
slug
name
email
}
stat {
shouts
followers
authors
desc
pic
created_at
created_by {
id
name
email
slug
}
stat {
shouts
followers
authors
}
}
}
}
@@ -139,17 +159,22 @@ export const GET_TOPICS_QUERY: string =
gql`
query GetTopics {
get_topics_all {
id
slug
title
body
pic
community
parent_ids
stat {
shouts
authors
followers
topics {
id
slug
title
body
pic
community
parent_ids
stat {
shouts
followers
authors
comments
}
oid
is_main
}
}
}
@@ -159,19 +184,64 @@ export const GET_COLLECTIONS_QUERY: string =
gql`
query GetCollections {
get_collections_all {
id
slug
title
desc
pic
amount
created_at
published_at
created_by {
collections {
id
name
email
slug
title
desc
pic
amount
published_at
created_at
created_by {
id
name
email
slug
}
}
}
}
`.loc?.source.body || ''
export const ADMIN_GET_INVITES_QUERY: string =
gql`
query AdminGetInvites($limit: Int, $offset: Int, $search: String, $status: String) {
adminGetInvites(limit: $limit, offset: $offset, search: $search, status: $status) {
invites {
inviter_id
author_id
shout_id
status
inviter {
id
name
email
slug
}
author {
id
name
email
slug
}
shout {
id
title
slug
created_by {
id
name
email
slug
}
}
created_at
}
total
page
perPage
totalPages
}
}
`.loc?.source.body || ''