This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ContextMenu> | |
| <ContextMenuTrigger> | |
| <Card key={discussion.id} className="border-0 sm:border"> | |
| <CardHeader> | |
| {(discussion.author ?? false) && ( | |
| <Profile | |
| username={discussion.author!.username} | |
| displayName={discussion.author!.display_name} | |
| avatarUrl={discussion.author!.avatar_url ?? undefined} | |
| isBanned={false} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {createEvent, createStore, sample} from 'effector'; | |
| import {createEffect} from 'effector/compat'; | |
| import {toast} from 'sonner'; | |
| import {apiV1CommentsDiscussionIdReactionsPostFx, apiV1CommentsGetFx} from '~/shared/api'; | |
| // Словарь [айди коммента] -> реакции | |
| export const $viewerReactions = createStore<Record<string, {draft: string[]; committed: string[]}>>( | |
| {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| ContextMenu, | |
| ContextMenuContent, | |
| ContextMenuTrigger | |
| } from '@/components/ui/context-menu.tsx' | |
| import { | |
| Card, | |
| CardContent, | |
| CardFooter, | |
| CardHeader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| public class HashGenerator | |
| { | |
| public static string GenerateHash(Dictionary<string, object> data, string botToken) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var query = _graphClient.Cypher.WithParams(new { discussionId, authorId }); | |
| var matchSelector = authorId is not null | |
| ? "(author:Author { Id: $authorId })<-[:AUTHORED_BY]-(comment:Comment)" | |
| : "(author:Author)<-[:AUTHORED_BY]-(comment:Comment)"; | |
| if (discussionId is not null) | |
| matchSelector += "-[:REPLIES_TO]->(discussion:Discussion { Id: $discussionId })"; | |
| var pages = await query |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var result = await query | |
| .Match(matchSelector) | |
| .With("COLLECT(author) AS authors, COLLECT(comment) AS comments, COUNT(comment) AS totalCount") | |
| .Unwind("authors", "author") | |
| .Unwind("comments", "comment") | |
| .With("author, comment, totalCount") | |
| .OrderBy("comment.CreatedAt") | |
| .Skip(offset) | |
| .Limit(count) | |
| .OptionalMatch("(replyAuthor:Author)<-[:AUTHORED_BY]-(reply:Comment)-[:REPLIES_TO]->(comment)") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.0.1 | |
| info: | |
| title: Crowd Parlay API | |
| description: Crowd Parlay's RESTful API. | |
| version: '1.0' | |
| servers: | |
| - url: https://crowdparlay.com | |
| tags: | |
| - name: Users | |
| x-displayName: Users |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as typed from 'typed-contracts'; | |
| import {chainRoute} from 'atomic-router'; | |
| import {attach, createStore, sample} from 'effector'; | |
| import { | |
| apiV1DiscussionsGet, | |
| apiV1DiscussionsGetOk, | |
| apiV1UsersResolveGet, | |
| apiV1UsersResolveGetOk, | |
| } from '~/shared/api'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.0.1 | |
| info: | |
| title: Crowd Parlay API | |
| description: Crowd Parlay's RESTful API. | |
| version: '1.0' | |
| servers: | |
| - url: https://crowdparlay | |
| tags: | |
| - name: Users | |
| x-displayName: Users |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.0.1 | |
| info: | |
| title: Crowd Parlay API | |
| description: Crowd Parlay's RESTful API. | |
| version: '1.0' | |
| servers: | |
| - url: https://crowdparlay | |
| tags: | |
| - name: Users | |
| x-displayName: Users |
NewerOlder