MCPcopy Create free account

hub / github.com/TownHallHQ/TownHall / functions

Functions278 in github.com/TownHallHQ/TownHall

↓ 86 callersMethodto_string
(&self)
crates/core/src/user/model/password.rs:51
↓ 35 callersMethodinsert
(&self, dto: InsertPostDto)
crates/core/src/post/repository.rs:117
↓ 12 callersMethodis_empty
(&self)
crates/core/src/shared/query_set.rs:51
↓ 7 callersMethodinto_response
(self)
crates/server/src/handlers/api/mod.rs:46
↓ 7 callersMethodparts
(&self)
crates/test/src/lib.rs:68
↓ 6 callersMethodcount
(&self)
crates/core/src/shared/query_set.rs:38
↓ 6 callersMethodfirst
Creates a cursor pagination instance fetching the first value
crates/core/src/shared/pagination.rs:133
↓ 5 callersMethodlist
( &self, pagination: Option<Pagination>, filter: Option<UserFilter>, )
crates/core/src/user/service.rs:80
↓ 5 callersFunctiontoken_create
( auth_client: &AuthClient, email: String, password: String, )
crates/client/src/modules/auth/token_create/mod.rs:22
↓ 5 callersMethoduser_id
Retrieves the token's user ID
crates/core/src/auth/service.rs:23
↓ 4 callersMethodregister
(&self, dto: CreateUserDto)
crates/core/src/user/service.rs:67
↓ 4 callersMethodto_string
(&self)
crates/core/src/image/model/use_case.rs:32
↓ 3 callersMethodapply
(&self, cursor: &mut Cursor<SelectModel<T>>)
crates/core/src/shared/pagination.rs:115
↓ 3 callersMethodfind_by_id
(&self, _id: &str)
crates/server/src/services/image/providers/mod.rs:38
↓ 3 callersMethodfrom
(value: EmailError)
crates/core/src/user/error.rs:37
↓ 3 callersFunctionget_jwt_from_auth_header
Retrieves the value from the Authorization HTTP Header and attempts to retrieve the JSON Web Token if the Authorization Scheme is `JWT` and a token is
crates/server/src/graphql/context/token.rs:56
↓ 3 callersMethodget_page_info
(&self, records: u64)
crates/core/src/shared/pagination.rs:155
↓ 3 callersMethodinner_map
Maps records stored internally
crates/core/src/shared/query_set.rs:56
↓ 3 callersMethodmax_size_allowed
(&self)
crates/core/src/image/model/use_case.rs:23
↓ 3 callersMethodrecords
(&self)
crates/core/src/shared/query_set.rs:32
↓ 3 callersMethodsign_token
(&self, uid: Pxid)
crates/core/src/auth/service.rs:68
↓ 3 callersMethodto
()
crates/entity/src/post.rs:33
↓ 2 callersMethoddelete
(&self, follower_id: Pxid, followee_id: Pxid)
crates/core/src/user/repository/follower.rs:162
↓ 2 callersMethodfind_by_email
(&self, email: &Email)
crates/core/src/user/service.rs:110
↓ 2 callersMethodinsert
(&self, dto: InsertUserDto)
crates/core/src/user/repository/user.rs:107
↓ 2 callersMethodinto_inner
(self)
crates/server/src/graphql/scalars/email.rs:17
↓ 2 callersMethodis_too_big
(&self, size: usize)
crates/core/src/image/model/use_case.rs:15
↓ 2 callersMethodnew_id
()
crates/core/src/image/model/image.rs:30
↓ 2 callersMethodparse_jwt
(&self, jwt: &str)
crates/core/src/auth/service.rs:92
↓ 2 callersFunctionposts
( public_client: &PostClient, after: Option<Pxid>, before: Option<Pxid>, first: Option<i64>,
crates/client/src/modules/post/posts/mod.rs:23
↓ 2 callersFunctionstart
()
crates/server/src/lib.rs:18
↓ 2 callersMethoduser_register
( &self, input: user_register::UserRegisterInput, )
crates/client/src/modules/auth/mod.rs:47
↓ 2 callersMethodverify_credentials
Verifies a users credentials by checking if the provided email and password match the stored password hash.
crates/core/src/user/service.rs:122
↓ 2 callersMethodverify_token
(&self, token: &Token)
crates/core/src/auth/service.rs:80
↓ 2 callersMethodwhoami
(&self)
crates/web/src/context/session.rs:23
↓ 1 callersFunctionapi
()
crates/server/src/handlers/api/mod.rs:58
↓ 1 callersFunctionauth
()
crates/server/src/handlers/api/v1/auth/mod.rs:6
↓ 1 callersFunctionbuild_schema_with_context
(context: &Arc<Context>)
crates/server/src/graphql/schema.rs:11
↓ 1 callersMethodclear_db
(&self)
crates/test/src/lib.rs:64
↓ 1 callersMethodcreate
(&self, dto: CreatePostDto)
crates/core/src/post/service.rs:41
↓ 1 callersMethodexec
(&self)
crates/cli/src/database.rs:31
↓ 1 callersMethodexec
(self)
crates/cli/src/bin/main.rs:23
↓ 1 callersMethodfind_by_id
(&self, id: Pxid)
crates/core/src/image/service.rs:101
↓ 1 callersMethodfind_by_id
(&self, id: Pxid)
crates/core/src/user/service.rs:100
↓ 1 callersMethodfind_password_hash_by_email
(&self, email: &Email)
crates/core/src/user/repository/user.rs:247
↓ 1 callersMethodfollow
Creates a new Follow relationship between 2 users This receives an instance of [`FollowPeers`] and retrieves another instance of [`FollowPeers`] whic
crates/core/src/user/service.rs:177
↓ 1 callersFunctionget_jwt_from_access_token_cookie
Retrieves the Access Token Cookie and attempts to retrieve the JSON Web Token
crates/server/src/graphql/context/token.rs:43
↓ 1 callersMethodinsert
(&self, dto: InsertImageDto)
crates/core/src/image/repository.rs:101
↓ 1 callersMethodlogin
(&self, email: String, password: String)
crates/web/src/context/session.rs:55
↓ 1 callersFunctionme
(auth_client: &AuthClient)
crates/client/src/modules/auth/me/mod.rs:23
↓ 1 callersMethodme
(&self)
crates/client/src/modules/auth/mod.rs:54
↓ 1 callersMethodpost_create
(&self, input: PostCreateInput)
crates/client/src/modules/post/mod.rs:23
↓ 1 callersMethodposts
( &self, after: Option<Pxid>, before: Option<Pxid>, first: Option<i64>,
crates/client/src/modules/post/mod.rs:27
↓ 1 callersFunctionrouter
(context: Arc<Context>, schema: GraphQLSchema)
crates/server/src/handlers/mod.rs:14
↓ 1 callersMethodselection
(&self)
crates/core/src/shared/pagination.rs:144
↓ 1 callersMethodselection_count
(&self)
crates/core/src/shared/pagination.rs:148
↓ 1 callersMethodstart
(&self)
crates/core/src/shared/pagination.rs:140
↓ 1 callersMethodtoken_create
(&self, uid: Pxid)
crates/test/src/lib.rs:72
↓ 1 callersMethodtoken_string
Retrieves the internal JWT String
crates/core/src/auth/service.rs:28
↓ 1 callersFunctiontry_extract_token
(auth_service: &AuthService, headers: &HeaderMap)
crates/server/src/graphql/context/token.rs:12
↓ 1 callersMethodunfollow
Deletes a Follow relationship between 2 users
crates/core/src/user/service.rs:193
↓ 1 callersMethodupdate
(&self, id: Pxid, dto: UpdateUserDto)
crates/core/src/user/service.rs:92
↓ 1 callersMethodupdate
(&self, id: Pxid, dto: UpdateUserDto)
crates/core/src/user/repository/user.rs:142
↓ 1 callersMethodupdate_avatar
Uploads a new avatar for the user. If the user already holds an avatar, this first deletes the current avatar and uploads a new one.
crates/core/src/user/service.rs:139
↓ 1 callersMethodupload
(&self, dto: UploadImageDto, use_case: UseCase)
crates/core/src/image/service.rs:71
↓ 1 callersFunctionuser_register
( auth_client: &AuthClient, input: UserRegisterInput, )
crates/client/src/modules/auth/user_register/mod.rs:26
↓ 1 callersFunctionv1
()
crates/server/src/handlers/api/v1/mod.rs:5
↓ 1 callersMethodvalidate
(&self, bytes: &[u8], use_case: UseCase)
crates/core/src/image/service.rs:56
↓ 1 callersMethodvalidate_password
(&self, encoded: &str, raw: &str)
crates/core/src/auth/service.rs:86
FunctionApp
()
crates/web/src/lib.rs:12
FunctionAppLayout
()
crates/web/src/components/layout/app/mod.rs:14
FunctionAuthLayout
()
crates/web/src/components/layout/auth/mod.rs:11
FunctionButton
( #[prop(optional, into)] id: TextProp, #[prop(optional, into)] class: TextProp, #[prop(optional,
crates/web/src/components/button.rs:35
FunctionFeed
()
crates/web/src/components/feed/mod.rs:20
FunctionHeader
()
crates/web/src/components/layout/app/header.rs:10
FunctionHome
(#[prop(into, optional)] class: TextProp)
crates/web/src/components/icons/home.rs:4
FunctionHome
()
crates/web/src/views/home/mod.rs:7
FunctionLogin
()
crates/web/src/views/login.rs:13
FunctionLoginCard
( #[prop(into)] signup_status: RwSignal<bool>, #[prop(into)] login_status: RwSignal<bool>, )
crates/web/src/components/auth/login.rs:12
FunctionMaybeChildren
( value: Option<T>, children: CF, #[prop(optional)] fallback: Option<Fallback>, )
crates/web/src/components/helper/maybe_children.rs:9
FunctionModal
(#[prop(into)] modal_status: RwSignal<bool>, children: ChildrenFn)
crates/web/src/components/modal.rs:8
FunctionPost
(post: PostsPostsEdgesNode)
crates/web/src/components/feed/post.rs:6
FunctionPublisher
()
crates/web/src/components/publisher/mod.rs:10
FunctionSignUp
()
crates/web/src/views/signup.rs:15
FunctionSignupCard
( #[prop(into)] signup_status: RwSignal<bool>, #[prop(into)] login_status: RwSignal<bool>, )
crates/web/src/components/auth/register.rs:15
FunctionTextField
( #[prop(into)] value: RwSignal<String>, #[prop(optional, into)] name: TextProp, #[prop(optional,
crates/web/src/components/text_field.rs:34
FunctionView
()
crates/web/src/views/mod.rs:22
Methodauthor
(&self, ctx: &Context<'_>)
crates/server/src/graphql/modules/post/types.rs:40
Methodavatar
(&self, ctx: &Context<'_>)
crates/server/src/graphql/modules/user/types.rs:49
Methodbad_request
(message: impl Into<String>)
crates/server/src/handlers/api/mod.rs:32
Methodcheck
Checks if the provided raw password corresponds to the internal hash
crates/core/src/user/model/password.rs:91
Methodcheck
(&self, ctx: &Context<'_>)
crates/server/src/graphql/guard.rs:22
Functionchecks_for_invalid_emails
()
crates/types/src/user/email.rs:136
Functionchecks_for_invalid_emails
()
crates/core/src/user/model/email.rs:136
Functionchecks_for_invalid_passwords
()
crates/core/src/user/model/password.rs:175
Functionchecks_for_invalid_usernames
()
crates/types/src/user/username.rs:84
Functionchecks_for_invalid_usernames
()
crates/core/src/user/model/username.rs:84
Functionchecks_for_lowercase_emails
()
crates/types/src/user/email.rs:104
Functionchecks_for_lowercase_emails
()
crates/core/src/user/model/email.rs:104
Functionchecks_for_lowercase_usernames
()
crates/types/src/user/username.rs:66
next →1–100 of 278, ranked by callers