Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TownHallHQ/TownHall
/ functions
Functions
278 in github.com/TownHallHQ/TownHall
⨍
Functions
278
◇
Types & classes
148
↓ 86 callers
Method
to_string
(&self)
crates/core/src/user/model/password.rs:51
↓ 35 callers
Method
insert
(&self, dto: InsertPostDto)
crates/core/src/post/repository.rs:117
↓ 12 callers
Method
is_empty
(&self)
crates/core/src/shared/query_set.rs:51
↓ 7 callers
Method
into_response
(self)
crates/server/src/handlers/api/mod.rs:46
↓ 7 callers
Method
parts
(&self)
crates/test/src/lib.rs:68
↓ 6 callers
Method
count
(&self)
crates/core/src/shared/query_set.rs:38
↓ 6 callers
Method
first
Creates a cursor pagination instance fetching the first value
crates/core/src/shared/pagination.rs:133
↓ 5 callers
Method
list
( &self, pagination: Option<Pagination>, filter: Option<UserFilter>, )
crates/core/src/user/service.rs:80
↓ 5 callers
Function
token_create
( auth_client: &AuthClient, email: String, password: String, )
crates/client/src/modules/auth/token_create/mod.rs:22
↓ 5 callers
Method
user_id
Retrieves the token's user ID
crates/core/src/auth/service.rs:23
↓ 4 callers
Method
register
(&self, dto: CreateUserDto)
crates/core/src/user/service.rs:67
↓ 4 callers
Method
to_string
(&self)
crates/core/src/image/model/use_case.rs:32
↓ 3 callers
Method
apply
(&self, cursor: &mut Cursor<SelectModel<T>>)
crates/core/src/shared/pagination.rs:115
↓ 3 callers
Method
find_by_id
(&self, _id: &str)
crates/server/src/services/image/providers/mod.rs:38
↓ 3 callers
Method
from
(value: EmailError)
crates/core/src/user/error.rs:37
↓ 3 callers
Function
get_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 callers
Method
get_page_info
(&self, records: u64)
crates/core/src/shared/pagination.rs:155
↓ 3 callers
Method
inner_map
Maps records stored internally
crates/core/src/shared/query_set.rs:56
↓ 3 callers
Method
max_size_allowed
(&self)
crates/core/src/image/model/use_case.rs:23
↓ 3 callers
Method
records
(&self)
crates/core/src/shared/query_set.rs:32
↓ 3 callers
Method
sign_token
(&self, uid: Pxid)
crates/core/src/auth/service.rs:68
↓ 3 callers
Method
to
()
crates/entity/src/post.rs:33
↓ 2 callers
Method
delete
(&self, follower_id: Pxid, followee_id: Pxid)
crates/core/src/user/repository/follower.rs:162
↓ 2 callers
Method
find_by_email
(&self, email: &Email)
crates/core/src/user/service.rs:110
↓ 2 callers
Method
insert
(&self, dto: InsertUserDto)
crates/core/src/user/repository/user.rs:107
↓ 2 callers
Method
into_inner
(self)
crates/server/src/graphql/scalars/email.rs:17
↓ 2 callers
Method
is_too_big
(&self, size: usize)
crates/core/src/image/model/use_case.rs:15
↓ 2 callers
Method
new_id
()
crates/core/src/image/model/image.rs:30
↓ 2 callers
Method
parse_jwt
(&self, jwt: &str)
crates/core/src/auth/service.rs:92
↓ 2 callers
Function
posts
( public_client: &PostClient, after: Option<Pxid>, before: Option<Pxid>, first: Option<i64>,
crates/client/src/modules/post/posts/mod.rs:23
↓ 2 callers
Function
start
()
crates/server/src/lib.rs:18
↓ 2 callers
Method
user_register
( &self, input: user_register::UserRegisterInput, )
crates/client/src/modules/auth/mod.rs:47
↓ 2 callers
Method
verify_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 callers
Method
verify_token
(&self, token: &Token)
crates/core/src/auth/service.rs:80
↓ 2 callers
Method
whoami
(&self)
crates/web/src/context/session.rs:23
↓ 1 callers
Function
api
()
crates/server/src/handlers/api/mod.rs:58
↓ 1 callers
Function
auth
()
crates/server/src/handlers/api/v1/auth/mod.rs:6
↓ 1 callers
Function
build_schema_with_context
(context: &Arc<Context>)
crates/server/src/graphql/schema.rs:11
↓ 1 callers
Method
clear_db
(&self)
crates/test/src/lib.rs:64
↓ 1 callers
Method
create
(&self, dto: CreatePostDto)
crates/core/src/post/service.rs:41
↓ 1 callers
Method
exec
(&self)
crates/cli/src/database.rs:31
↓ 1 callers
Method
exec
(self)
crates/cli/src/bin/main.rs:23
↓ 1 callers
Method
find_by_id
(&self, id: Pxid)
crates/core/src/image/service.rs:101
↓ 1 callers
Method
find_by_id
(&self, id: Pxid)
crates/core/src/user/service.rs:100
↓ 1 callers
Method
find_password_hash_by_email
(&self, email: &Email)
crates/core/src/user/repository/user.rs:247
↓ 1 callers
Method
follow
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 callers
Function
get_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 callers
Method
insert
(&self, dto: InsertImageDto)
crates/core/src/image/repository.rs:101
↓ 1 callers
Method
login
(&self, email: String, password: String)
crates/web/src/context/session.rs:55
↓ 1 callers
Function
me
(auth_client: &AuthClient)
crates/client/src/modules/auth/me/mod.rs:23
↓ 1 callers
Method
me
(&self)
crates/client/src/modules/auth/mod.rs:54
↓ 1 callers
Method
post_create
(&self, input: PostCreateInput)
crates/client/src/modules/post/mod.rs:23
↓ 1 callers
Method
posts
( &self, after: Option<Pxid>, before: Option<Pxid>, first: Option<i64>,
crates/client/src/modules/post/mod.rs:27
↓ 1 callers
Function
router
(context: Arc<Context>, schema: GraphQLSchema)
crates/server/src/handlers/mod.rs:14
↓ 1 callers
Method
selection
(&self)
crates/core/src/shared/pagination.rs:144
↓ 1 callers
Method
selection_count
(&self)
crates/core/src/shared/pagination.rs:148
↓ 1 callers
Method
start
(&self)
crates/core/src/shared/pagination.rs:140
↓ 1 callers
Method
token_create
(&self, uid: Pxid)
crates/test/src/lib.rs:72
↓ 1 callers
Method
token_string
Retrieves the internal JWT String
crates/core/src/auth/service.rs:28
↓ 1 callers
Function
try_extract_token
(auth_service: &AuthService, headers: &HeaderMap)
crates/server/src/graphql/context/token.rs:12
↓ 1 callers
Method
unfollow
Deletes a Follow relationship between 2 users
crates/core/src/user/service.rs:193
↓ 1 callers
Method
update
(&self, id: Pxid, dto: UpdateUserDto)
crates/core/src/user/service.rs:92
↓ 1 callers
Method
update
(&self, id: Pxid, dto: UpdateUserDto)
crates/core/src/user/repository/user.rs:142
↓ 1 callers
Method
update_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 callers
Method
upload
(&self, dto: UploadImageDto, use_case: UseCase)
crates/core/src/image/service.rs:71
↓ 1 callers
Function
user_register
( auth_client: &AuthClient, input: UserRegisterInput, )
crates/client/src/modules/auth/user_register/mod.rs:26
↓ 1 callers
Function
v1
()
crates/server/src/handlers/api/v1/mod.rs:5
↓ 1 callers
Method
validate
(&self, bytes: &[u8], use_case: UseCase)
crates/core/src/image/service.rs:56
↓ 1 callers
Method
validate_password
(&self, encoded: &str, raw: &str)
crates/core/src/auth/service.rs:86
Function
App
()
crates/web/src/lib.rs:12
Function
AppLayout
()
crates/web/src/components/layout/app/mod.rs:14
Function
AuthLayout
()
crates/web/src/components/layout/auth/mod.rs:11
Function
Button
( #[prop(optional, into)] id: TextProp, #[prop(optional, into)] class: TextProp, #[prop(optional,
crates/web/src/components/button.rs:35
Function
Feed
()
crates/web/src/components/feed/mod.rs:20
Function
Header
()
crates/web/src/components/layout/app/header.rs:10
Function
Home
(#[prop(into, optional)] class: TextProp)
crates/web/src/components/icons/home.rs:4
Function
Home
()
crates/web/src/views/home/mod.rs:7
Function
Login
()
crates/web/src/views/login.rs:13
Function
LoginCard
( #[prop(into)] signup_status: RwSignal<bool>, #[prop(into)] login_status: RwSignal<bool>, )
crates/web/src/components/auth/login.rs:12
Function
MaybeChildren
( value: Option<T>, children: CF, #[prop(optional)] fallback: Option<Fallback>, )
crates/web/src/components/helper/maybe_children.rs:9
Function
Modal
(#[prop(into)] modal_status: RwSignal<bool>, children: ChildrenFn)
crates/web/src/components/modal.rs:8
Function
Post
(post: PostsPostsEdgesNode)
crates/web/src/components/feed/post.rs:6
Function
Publisher
()
crates/web/src/components/publisher/mod.rs:10
Function
SignUp
()
crates/web/src/views/signup.rs:15
Function
SignupCard
( #[prop(into)] signup_status: RwSignal<bool>, #[prop(into)] login_status: RwSignal<bool>, )
crates/web/src/components/auth/register.rs:15
Function
TextField
( #[prop(into)] value: RwSignal<String>, #[prop(optional, into)] name: TextProp, #[prop(optional,
crates/web/src/components/text_field.rs:34
Function
View
()
crates/web/src/views/mod.rs:22
Method
author
(&self, ctx: &Context<'_>)
crates/server/src/graphql/modules/post/types.rs:40
Method
avatar
(&self, ctx: &Context<'_>)
crates/server/src/graphql/modules/user/types.rs:49
Method
bad_request
(message: impl Into<String>)
crates/server/src/handlers/api/mod.rs:32
Method
check
Checks if the provided raw password corresponds to the internal hash
crates/core/src/user/model/password.rs:91
Method
check
(&self, ctx: &Context<'_>)
crates/server/src/graphql/guard.rs:22
Function
checks_for_invalid_emails
()
crates/types/src/user/email.rs:136
Function
checks_for_invalid_emails
()
crates/core/src/user/model/email.rs:136
Function
checks_for_invalid_passwords
()
crates/core/src/user/model/password.rs:175
Function
checks_for_invalid_usernames
()
crates/types/src/user/username.rs:84
Function
checks_for_invalid_usernames
()
crates/core/src/user/model/username.rs:84
Function
checks_for_lowercase_emails
()
crates/types/src/user/email.rs:104
Function
checks_for_lowercase_emails
()
crates/core/src/user/model/email.rs:104
Function
checks_for_lowercase_usernames
()
crates/types/src/user/username.rs:66
next →
1–100 of 278, ranked by callers