MCPcopy Create free account

hub / github.com/devsoc-unsw/chaos / functions

Functions761 in github.com/devsoc-unsw/chaos

↓ 173 callersFunctioncn
(...inputs: ClassValue[])
frontend-nextjs/src/lib/utils.ts:7
↓ 21 callersFunctiondateToString
(date: string)
frontend-nextjs/src/lib/utils.ts:11
↓ 20 callersFunctionextract_user_id_from_request
Extracts the user ID from an HTTP request using the JWT token in cookies. # Arguments `parts` - The request parts containing headers and cookies `st
backend/server/src/service/auth.rs:109
↓ 19 callersMethodget
Retrieves a role by its ID. # Arguments `id` - The ID of the role to retrieve `pool` - A reference to the database connection pool # Returns Returns
backend/server/src/models/role.rs:135
↓ 19 callersFunctiongetCampaign
(campaignId: string)
frontend-nextjs/src/models/campaign.ts:97
↓ 19 callersFunctiongetDictionary
(locale: string)
frontend-nextjs/src/app/[lang]/dictionaries.ts:8
↓ 15 callersFunctiongetCampaignRoles
(campaignId: string)
frontend-nextjs/src/models/campaign.ts:161
↓ 14 callersFunctionhandleQuestionUpdate
(action: "update" | "delete", question: Question)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:97
↓ 11 callersMethoddelete
Deletes a role. # Arguments `id` - The ID of the role to delete `pool` - A reference to the database connection pool # Returns Returns a `Result` co
backend/server/src/models/role.rs:164
↓ 10 callersMethodis_empty
(&self)
backend/server/src/models/answer.rs:555
↓ 9 callersFunctionapiRequest
( path: string, options: RequestOptions = {} )
frontend-nextjs/src/lib/api.ts:32
↓ 9 callersFunctionlinkQuestionsAndAnswers
(questions: Question[], answers: Answer[])
frontend-nextjs/src/models/question.ts:123
↓ 7 callersFunctiongetAllCommonQuestions
(campaignId: string)
frontend-nextjs/src/models/question.ts:45
↓ 7 callersFunctiongetAllRoleQuestions
(campaignId: string, roleId: string)
frontend-nextjs/src/models/question.ts:49
↓ 7 callersFunctiongetCurrentUser
(okRequiredOtherwiseLogin?: boolean)
frontend-nextjs/src/lib/auth.ts:8
↓ 7 callersFunctiongetRatingCategories
(campaignId: string)
frontend-nextjs/src/models/rating.ts:35
↓ 6 callersFunctionMultiSelect
({ question, applicationId, answerId, submitAnswer, dict, }: { question: any; appl
frontend-nextjs/src/components/application-answer/questions/multiselect.tsx:9
↓ 6 callersFunctiongetAllCommonAnswers
(applicationId: string)
frontend-nextjs/src/models/answer.ts:16
↓ 6 callersFunctiongetAllRoleAnswers
(applicationId: string, roleId: string)
frontend-nextjs/src/models/answer.ts:20
↓ 6 callersFunctionsubmitAnswer
( question: QuestionAndAnswer, value: AnswerValue, applicationId: string, answerId: st
frontend-nextjs/src/components/application-answer/main-content.tsx:92
↓ 5 callersFunctionMultiChoice
({ question, applicationId, answerId, submitAnswer, dict }: { question: QuestionAndAnswer; appli
frontend-nextjs/src/components/application-answer/questions/multichoice.tsx:9
↓ 5 callersFunctionRanking
({ question, applicationId, answerId, submitAnswer, dict, }: { question: any; dict: any
frontend-nextjs/src/components/application-answer/questions/ranking.tsx:14
↓ 4 callersFunctionShortAnswer
({ question, applicationId, answerId, submitAnswer, dict }: { question: any; applicationId: stri
frontend-nextjs/src/components/application-answer/questions/shortanswer.tsx:6
↓ 4 callersFunctioncreate_proper_slug
(input: &str)
backend/server/src/service/campaign.rs:114
↓ 4 callersFunctionencode_auth_token
Encodes a new authorization JWT token. This function creates a new JWT token with the provided user information and signs it using the provided encod
backend/server/src/service/jwt.rs:66
↓ 4 callersFunctiongetOrganisationUserRole
(orgId: string)
frontend-nextjs/src/models/organisation.ts:44
↓ 4 callersFunctionhandleCampaignDetailsUpdate
(overrides?: Partial<CampaignUpdate>)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/edit/campaign-settings.tsx:118
↓ 4 callersFunctionuseSidebar
()
frontend-nextjs/src/components/ui/sidebar.tsx:47
↓ 3 callersFunctioncreateComment
( applicationId: string, body: string, )
frontend-nextjs/src/models/comment.ts:11
↓ 3 callersFunctioncreateProperSlug
(input: string)
frontend-nextjs/src/models/slug.ts:1
↓ 3 callersFunctiongetApplicationRoleStatuses
( applicationId: string, )
frontend-nextjs/src/models/application.ts:143
↓ 3 callersFunctiongetCategoryRatingsByApplication
(applicationId: string)
frontend-nextjs/src/models/rating.ts:74
↓ 3 callersFunctiongetOffersByCampaign
( campaignId: string, )
frontend-nextjs/src/models/offer.ts:37
↓ 3 callersFunctiongetOrganisationEmailTemplates
( organisationId: string )
frontend-nextjs/src/models/email.ts:83
↓ 3 callersFunctioninit_app_state
()
backend/server/src/models/app.rs:112
↓ 3 callersFunctiononChange
()
frontend-nextjs/src/hooks/use-mobile.ts:10
↓ 3 callersFunctionuser_is_application_owner
Verifies if a user is the owner of an application. This function checks if the user created the application. # Arguments `user_id` - The ID of the
backend/server/src/service/application.rs:72
↓ 3 callersMethodvalidate
(&self)
backend/server/src/models/role.rs:248
↓ 2 callersFunctionaddNewQuestion
(type: QuestionType, roleId: string)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:105
↓ 2 callersFunctionaddToHistory
(newBody: string)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/template-form.tsx:76
↓ 2 callersFunctionassert_is_super_user
Verifies if a user has super user privileges. # Arguments `user_id` - The ID of the user to check `pool` - Database connection pool # Returns `Res
backend/server/src/service/auth.rs:78
↓ 2 callersFunctionassert_user_is_organisation_member
Verifies if a user is a member of the organisation that owns an application. This function checks if the user is a current member of the organisation
backend/server/src/service/rating.rs:134
↓ 2 callersFunctioncreateCategory
(name: string, campaignId: string)
frontend-nextjs/src/models/rating.ts:41
↓ 2 callersFunctiondeleteCategory
(campaignId: string, categoryId: string)
frontend-nextjs/src/models/rating.ts:58
↓ 2 callersFunctiondeleteComment
( applicationId: string, commentId: string, )
frontend-nextjs/src/models/comment.ts:42
↓ 2 callersFunctiondeleteRole
(roleId: string)
frontend-nextjs/src/models/role.ts:19
↓ 2 callersFunctionderiveIdsFromAnswer
( answer: string | string[] | undefined, options: MultiOptionQuestionOption[] )
frontend-nextjs/src/components/application-answer/questions/multiselect.tsx:26
↓ 2 callersFunctiondeserialize
(deserializer: D)
backend/server/src/models/serde_string.rs:26
↓ 2 callersFunctionformatDate
(d: string | undefined)
frontend-nextjs/src/app/[lang]/campaign/apply/[campaignId]/application/[applicationId]/application-answer.tsx:25
↓ 2 callersMethodget
Retrieves an application by its ID. # Arguments `id` - ID of the application to retrieve `transaction` - Database transaction to use # Returns `Re
backend/server/src/models/application.rs:373
↓ 2 callersFunctiongetAllOrganisationMembers
(orgId: string)
frontend-nextjs/src/models/organisation.ts:81
↓ 2 callersFunctiongetApplicationRatingsSummary
( campaignId: string, )
frontend-nextjs/src/models/application.ts:109
↓ 2 callersFunctiongetCampaignApplications
(campaignId: string)
frontend-nextjs/src/models/campaign.ts:172
↓ 2 callersFunctiongetCampaignAttachments
(campaignId: string)
frontend-nextjs/src/models/campaign.ts:68
↓ 2 callersFunctiongetCampaignBySlugs
(orgSlug: string, campaignSlug: string)
frontend-nextjs/src/models/campaign.ts:176
↓ 2 callersFunctiongetCommentsByApplication
( applicationId: string, )
frontend-nextjs/src/models/comment.ts:54
↓ 2 callersFunctiongetEmailTemplate
( templateId: string )
frontend-nextjs/src/models/email.ts:101
↓ 2 callersFunctiongetInProgressApplication
( applicationId: string, )
frontend-nextjs/src/models/application.ts:44
↓ 2 callersFunctiongetInvite
(code: string)
frontend-nextjs/src/models/invite.ts:15
↓ 2 callersFunctiongetIsSuperuser
()
frontend-nextjs/src/models/user.ts:32
↓ 2 callersFunctiongetOffer
(offerId: string)
frontend-nextjs/src/models/offer.ts:45
↓ 2 callersFunctiongetOptionFromQuestion
(question: QuestionAndAnswer)
frontend-nextjs/src/components/application-answer/questions/multichoice.tsx:23
↓ 2 callersFunctiongetOrganisationCampaigns
(orgId: string)
frontend-nextjs/src/models/organisation.ts:34
↓ 2 callersFunctiongetValueAndAnswer
()
frontend-nextjs/src/components/application-answer/questions/dropdown.tsx:37
↓ 2 callersFunctionget_or_create_uc_id
Gets or creates the user-campaign id, helper function # Arguments `user_id` - ID of the user for the UC pair `campaign_id` - ID of the campaign for t
backend/server/src/handler/availabilities.rs:32
↓ 2 callersFunctionhandleReply
(reply:OfferReply)
frontend-nextjs/src/app/[lang]/campaign/[orgSlug]/[campaignSlug]/offer/[offerId]/accept-offer.tsx:17
↓ 2 callersFunctioninit
()
backend/database-seeding/src/seeder.rs:21
↓ 2 callersMethodinsert_into_db
Inserts the answer data into the database. # Arguments `answer_id` - ID of the answer to insert data for `transaction` - Database transaction to use
backend/server/src/models/answer.rs:597
↓ 2 callersMethodinsert_into_db
( self, question_id: i64, transaction: &mut Transaction<'_, Postgres>, snowfla
backend/server/src/models/question.rs:636
↓ 2 callersFunctionmakeQueryClient
()
frontend-nextjs/src/app/providers.tsx:9
↓ 2 callersFunctionmergeOutcomePlaceholders
Replace `{{name}}`, `{{role}}`, etc. in template strings.
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/applications/send-email-modal.tsx:37
↓ 2 callersMethodprint
(&self)
backend/server/src/models/error.rs:105
↓ 2 callersFunctionprivateStatusLabel
(status: ApplicationStatus)
frontend-nextjs/src/lib/utils.ts:60
↓ 2 callersFunctionrenderAnswerPreview
(qa: QuestionAndAnswer)
frontend-nextjs/src/components/application-answer/review-card.tsx:54
↓ 2 callersFunctionreorderOptionsFromAnswer
( answer: string | string[] | undefined, options: MultiOptionQuestionOption[] )
frontend-nextjs/src/components/application-answer/questions/ranking.tsx:29
↓ 2 callersFunctionsetCampaignCoverImage
(campaignId: string)
frontend-nextjs/src/models/campaign.ts:157
↓ 2 callersFunctiontoApplicant
( app: ApplicationRatingSummary, roleIdsToNames: Record<string, string>, )
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/applications/application-summary.tsx:115
↓ 2 callersFunctionupdateAnswer
(answerId: string, body: any)
frontend-nextjs/src/models/answer.ts:33
↓ 2 callersFunctionupdateApplicationRoleStatus
( applicationId: string, campaignRoleId: string, status: ApplicationStatus, )
frontend-nextjs/src/models/application.ts:151
↓ 2 callersFunctionupdateCategory
(name: string, campaignId: string, categoryId: string)
frontend-nextjs/src/models/rating.ts:49
↓ 2 callersFunctionupdateRole
(roleId: string, role: RoleUpdate)
frontend-nextjs/src/models/role.ts:12
↓ 2 callersFunctionupdateTitle
(title: string)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:343
↓ 2 callersFunctionuploadFile
(putUrl: string, file: File)
frontend-nextjs/src/models/file.ts:1
↓ 2 callersMethodvalidate
Validates the answer data. # Returns `Result<(), ChaosError>` - Success if valid, error if not
backend/server/src/models/answer.rs:569
↓ 2 callersMethodvalidate
(&self)
backend/server/src/models/question.rs:620
↓ 1 callersFunctionacceptInvite
(code: string)
frontend-nextjs/src/models/invite.ts:20
↓ 1 callersFunctionaddExistingQuestion
(questionId: string, oldRoleId: string, newRoleId: string)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:116
↓ 1 callersFunctionaddOption
(text: string)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/questions/campaign-questions.tsx:324
↓ 1 callersFunctionapp
()
backend/server/src/models/app.rs:188
↓ 1 callersFunctionassert_answer_application_is_open
Verifies if an answer can be modified. This function checks if the application containing the answer has not been submitted and if the campaign deadl
backend/server/src/service/answer.rs:68
↓ 1 callersFunctionassert_application_is_open
Verifies if an application is still open for submissions. This function checks if the application has not been submitted and if the campaign deadline
backend/server/src/service/application.rs:113
↓ 1 callersFunctionassert_campaign_is_open
Verifies if a campaign is still open for applications. This function checks if the campaign deadline has not passed. # Arguments `campaign_id` - Th
backend/server/src/service/campaign.rs:93
↓ 1 callersFunctionassert_user_is_application_reviewer_given_rating_id
Verifies if a user can review an application based on a rating ID. This function checks if the user is a member of the organisation that owns the cam
backend/server/src/service/rating.rs:31
↓ 1 callersFunctionassert_user_is_offer_admin
Verifies if a user has admin privileges for an offer. This function checks if the user is an admin of the organisation that owns the campaign the off
backend/server/src/service/offer.rs:26
↓ 1 callersFunctionassert_user_is_offer_recipient
Verifies if a user is the recipient of an offer. This function checks if the user is the intended recipient of the offer. # Arguments `user_id` - T
backend/server/src/service/offer.rs:68
↓ 1 callersFunctionassert_user_is_organisation_admin
Verifies if a user has admin privileges for an organisation. This function checks if the user is an admin member of the specified organisation. # Ar
backend/server/src/service/organisation.rs:24
↓ 1 callersFunctionassert_user_is_organisation_admin_or_super_user
Verifies if a user has admin privileges for an organisation or is a super user. This function checks if the user is an admin member of the specified
backend/server/src/service/organisation.rs:90
↓ 1 callersFunctionassert_user_is_rating_creator_and_organisation_member
Verifies if a user is both the creator of a rating and a current member of the organisation. This function checks if: 1. The user created the rating
backend/server/src/service/rating.rs:82
↓ 1 callersFunctionavatarColor
(name: string)
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/application-discussion-panel.tsx:27
↓ 1 callersFunctionaverageCategoryScore
(rating: RatingDetails)
frontend-nextjs/src/components/application-details/application-ratings-section/application-ratings-section.tsx:24
next →1–100 of 761, ranked by callers