MCPcopy Create free account

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

Functions761 in github.com/devsoc-unsw/chaos

FunctionSidebarMenuBadge
({ className, ...props }: React.ComponentProps<"div">)
frontend-nextjs/src/components/ui/sidebar.tsx:580
FunctionSidebarMenuButton
({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className,
frontend-nextjs/src/components/ui/sidebar.tsx:498
FunctionSidebarMenuItem
({ className, ...props }: React.ComponentProps<"li">)
frontend-nextjs/src/components/ui/sidebar.tsx:465
FunctionSidebarMenuSkeleton
({ className, showIcon = false, ...props }: React.ComponentProps<"div"> & { showIcon?: boolean })
frontend-nextjs/src/components/ui/sidebar.tsx:602
FunctionSidebarMenuSub
({ className, ...props }: React.ComponentProps<"ul">)
frontend-nextjs/src/components/ui/sidebar.tsx:640
FunctionSidebarMenuSubButton
({ asChild = false, size = "md", isActive = false, className, ...props }: React.ComponentProps<"a">
frontend-nextjs/src/components/ui/sidebar.tsx:669
FunctionSidebarMenuSubItem
({ className, ...props }: React.ComponentProps<"li">)
frontend-nextjs/src/components/ui/sidebar.tsx:655
FunctionSidebarProvider
({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ..
frontend-nextjs/src/components/ui/sidebar.tsx:56
FunctionSidebarRail
({ className, ...props }: React.ComponentProps<"button">)
frontend-nextjs/src/components/ui/sidebar.tsx:282
FunctionSidebarSeparator
({ className, ...props }: React.ComponentProps<typeof Separator>)
frontend-nextjs/src/components/ui/sidebar.tsx:357
FunctionSidebarTrigger
({ className, onClick, ...props }: React.ComponentProps<typeof Button>)
frontend-nextjs/src/components/ui/sidebar.tsx:256
FunctionSkeleton
({ className, ...props }: React.ComponentProps<"div">)
frontend-nextjs/src/components/ui/skeleton.tsx:3
FunctionSlugInput
({ orgId, name, value, currentSlug, onChange, onBlur, updateSlugAvailable, dict }: { orgId: string, name: stri
frontend-nextjs/src/components/slug-input.tsx:6
FunctionSpinner
({ className, ...props }: React.ComponentProps<"svg">)
frontend-nextjs/src/components/ui/spinner.tsx:5
FunctionStarDisplay
({ value }: { value: number })
frontend-nextjs/src/components/application-review/star-display.tsx:3
FunctionStarDisplay
({ value }: { value: number })
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/application-rating-form.tsx:21
FunctionStarRow
({ value, onChange }: { value: number; onChange: (v: number) => void })
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/review/application-rating-form.tsx:48
FunctionStatusCell
({ app, dict, onPrivateStatusChange, filteredRoleId, roleStatuses, isMutating, }: { app: Applica
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/applications/columns.tsx:242
FunctionTabSwitcher
({ roles, selectedRoleIds, activeTab, onChangeActiveTab, dict, }: { roles: RoleDetails[] | undefin
frontend-nextjs/src/components/application-answer/tab-switcher.tsx:6
FunctionTable
({ className, ...props }: React.ComponentProps<"table">)
frontend-nextjs/src/components/ui/table.tsx:7
FunctionTableBody
({ className, ...props }: React.ComponentProps<"tbody">)
frontend-nextjs/src/components/ui/table.tsx:32
FunctionTableCaption
({ className, ...props }: React.ComponentProps<"caption">)
frontend-nextjs/src/components/ui/table.tsx:94
FunctionTableCell
({ className, ...props }: React.ComponentProps<"td">)
frontend-nextjs/src/components/ui/table.tsx:81
FunctionTableFooter
({ className, ...props }: React.ComponentProps<"tfoot">)
frontend-nextjs/src/components/ui/table.tsx:42
FunctionTableHead
({ className, ...props }: React.ComponentProps<"th">)
frontend-nextjs/src/components/ui/table.tsx:68
FunctionTableHeader
({ className, ...props }: React.ComponentProps<"thead">)
frontend-nextjs/src/components/ui/table.tsx:22
FunctionTableRow
({ className, ...props }: React.ComponentProps<"tr">)
frontend-nextjs/src/components/ui/table.tsx:55
FunctionTabs
({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>)
frontend-nextjs/src/components/ui/tabs.tsx:8
FunctionTabsContent
({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>)
frontend-nextjs/src/components/ui/tabs.tsx:53
FunctionTabsList
({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>)
frontend-nextjs/src/components/ui/tabs.tsx:21
FunctionTabsTrigger
({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>)
frontend-nextjs/src/components/ui/tabs.tsx:37
FunctionTemplateEditForm
({ templateId, orgId, dict, }: { templateId: string; orgId: string; dict: any; })
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/[templateId]/edit/edit-template.tsx:7
FunctionTemplateEditPage
({ params, }: { params: Promise<{ orgId: string; templateId: string; lang: string }>; })
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/[templateId]/edit/page.tsx:10
FunctionTemplateForm
({ templateId, template, orgId, dict, submitData, }: { templateId: string; template?: EmailTempl
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/template-form.tsx:18
FunctionTemplateNewForm
({ orgId, dict, }: { orgId: string; dict: any; })
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/new/new-template.tsx:12
FunctionTemplateNewPage
({ params, }: { params: Promise<{ orgId: string; lang: string }>; })
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/templates/new/page.tsx:9
FunctionTextarea
({ className, ...props }: React.ComponentProps<"textarea">)
frontend-nextjs/src/components/ui/textarea.tsx:5
FunctionToaster
({ ...props }: ToasterProps)
frontend-nextjs/src/components/ui/sonner.tsx:13
FunctionTooltip
({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>)
frontend-nextjs/src/components/ui/tooltip.tsx:21
FunctionTooltipContent
({ className, sideOffset = 0, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Conte
frontend-nextjs/src/components/ui/tooltip.tsx:37
FunctionTooltipProvider
({ delayDuration = 0, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>)
frontend-nextjs/src/components/ui/tooltip.tsx:8
FunctionTooltipTrigger
({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>)
frontend-nextjs/src/components/ui/tooltip.tsx:31
FunctionUpdateRoleButton
({ member, onUpdate, }: { member: Member; onUpdate: (userId: string, newRole: "Admin" | "User") => Pro
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/members/columns.tsx:24
Methodadd_to_queue
( recipient_name: Option<String>, recipient_email_address: String, subject: String,
backend/server/src/models/email.rs:172
Methodadd_user
( organisation_id: i64, user_id: i64, transaction: &mut Transaction<'_, Postgres>,
backend/server/src/models/organisation.rs:709
Functionassert_user_is_not_in_organisation
Verifies if a user is in an organization This function checks if the user is a member of the specified organisation. # Arguments `user_id` - The ID
backend/server/src/service/organisation.rs:57
Methodcheck_application_exists
Checks if an application exists for a given campaign and user. # Arguments `campaign_id` - ID of the campaign to check `user_id` - ID of the user to
backend/server/src/models/application.rs:289
Methodcheck_application_exists
Checks if an application exists for a given campaign and user. # Arguments `campaign_id` - ID of the campaign to check `user` - The authenticated us
backend/server/src/handler/application.rs:72
Methodcheck_campaign_slug_availability
Checks if a campaign slug is available. This handler allows organisation admins to check slug availability. # Arguments `organisation_id` - The ID
backend/server/src/handler/organisation.rs:520
Methodcheck_organisation_slug_availability
Checks if an organisation slug is available. This handler allows super users to check slug availability. # Arguments `state` - The application stat
backend/server/src/handler/organisation.rs:79
Methodcheck_slug_availability
Checks if a slug is available for a new campaign. # Arguments `organisation_id` - ID of the organization creating the campaign `slug` - Slug to chec
backend/server/src/models/campaign.rs:379
Methodcheck_slug_availability
Checks if a slug is available for use. # Arguments `slug` - The slug to check `pool` - A reference to the database connection pool # Returns Returns
backend/server/src/models/organisation.rs:284
Methodcheck_user_already_member
( organisation_id: i64, user_id: i64, transaction: &mut Transaction<'_, Postgres>,
backend/server/src/models/organisation.rs:736
FunctioncompareCampaignRoles
(roles: RoleDetails[], clientRoles: ClientRole[])
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/campaign-details.tsx:50
FunctioncompareRatingCategories
(categories: RatingCategory[], clientCategories: ClientCategory[])
frontend-nextjs/src/app/[lang]/dashboard/organisation/[orgId]/campaigns/[campaignId]/campaign-details.tsx:62
Methodconstructor
(status: number, statusText: string, message?: string)
frontend-nextjs/src/lib/api.ts:12
Methodcover_image_presigned_get_url
Returns a presigned GET URL for the banner object at `/banner/{campaign_id}/{cover_image}`, if any.
backend/server/src/models/campaign.rs:294
Methodcreate
Creates a new role in a campaign. # Arguments `campaign_id` - The ID of the campaign to create the role in `role_data` - The data for the new role `t
backend/server/src/models/role.rs:97
Methodcreate
Creates a new comment for an application. # Arguments `body` - The comment body. `author_id` - The authenticated user creating the comment. `applicat
backend/server/src/models/comment.rs:73
Methodcreate
Creates a new application in the system. # Arguments `campaign_id` - ID of the campaign to apply to `user_id` - ID of the user submitting the applic
backend/server/src/models/application.rs:318
Methodcreate
Creates a new offer. # Arguments `campaign_id` - The ID of the campaign `application_id` - The ID of the application `email_template_id` - The ID of
backend/server/src/models/offer.rs:129
Methodcreate
Creates a new answer. # Arguments `application_id` - ID of the application this answer belongs to `question_id` - ID of the question being answered
backend/server/src/models/answer.rs:130
Methodcreate
Creates a new organisation. # Arguments `admin_id` - The ID of the user who will be the initial administrator `slug` - The URL-friendly identifier fo
backend/server/src/models/organisation.rs:225
Methodcreate
( campaign_id: i64, title: String, description: Option<String>, common: bool,
backend/server/src/models/question.rs:98
Methodcreate
Creates a new answer for an application. This handler allows application owners to create answers for their application. The application must be open
backend/server/src/handler/answer.rs:39
Methodcreate
Creates a new organisation. This handler allows super users to create new organisations. # Arguments `state` - The application state `_user` - The
backend/server/src/handler/organisation.rs:45
Methodcreate
Creates a new rating with comment and category scores. Done this by calling 2 functions in models to first create application_rating first with commen
backend/server/src/handler/rating.rs:130
Methodcreate
Creates a new question for a campaign. This handler allows campaign admins to create questions. # Arguments `state` - The application state `campai
backend/server/src/handler/question.rs:36
Methodcreate_application
Creates a new application for a campaign. This handler allows authenticated users to apply to open campaigns. # Arguments `state` - The application
backend/server/src/handler/campaign.rs:299
Methodcreate_application_rating
Creates a new application rating in ApplicationRating WITHOUT numerical rating score Ensures that the application rating must be unique for rater_id a
backend/server/src/models/rating.rs:307
Methodcreate_availability_slots
Creates availability slots in bulk for a given user-campaign. Designed to create in bulk to avoid multiple calls to the database # Arguments `availab
backend/server/src/models/availabilities.rs:94
Methodcreate_campaign
( organisation_id: i64, mut slug: String, name: String, description: Option<St
backend/server/src/models/organisation.rs:919
Methodcreate_campaign
Creates a new campaign for an organisation. This handler allows organisation admins to create campaigns. # Arguments `id` - The ID of the organisat
backend/server/src/handler/organisation.rs:473
Methodcreate_category
Creates a new category for a campaign for rating # Arguments `new_category` - The category name that is created `campaign_id` - Campaign that is addi
backend/server/src/models/rating.rs:189
Methodcreate_category
Creates a new rating category for a campaign. # Arguments `state` - The application state `campaign_id` - The ID of the campaign `_admin` - The auth
backend/server/src/handler/rating.rs:35
Methodcreate_category_rating
Creates an ENTIRELY new application category rating in ApplicationCategoryRating WITH numerical rating score Ensures that the application category rat
backend/server/src/models/rating.rs:536
Methodcreate_category_rating_from_existing_application_rating
Creates a new category rating for an existing application rating. # Arguments `rating_id` - The ID of the application rating `_admin` - The authenti
backend/server/src/handler/rating.rs:232
Methodcreate_comment
Creates a new comment on an application. # Arguments `state` - Application state (includes snowflake generator). `application_id` - ID of the applica
backend/server/src/handler/comment.rs:30
Methodcreate_email_template
( organisation_id: i64, name: String, template_subject: String, template_body:
backend/server/src/models/organisation.rs:966
Methodcreate_email_template
Creates a new email template for an organisation. This handler allows organisation admins to create email templates. # Arguments `id` - The ID of t
backend/server/src/handler/organisation.rs:546
Methodcreate_offer
Creates a new offer for an application. This handler allows campaign admins to create offers for applications. # Arguments `id` - The ID of the cam
backend/server/src/handler/campaign.rs:358
Methodcreate_or_get
Creates a new application if it doesn't exist, otherwise returns the existing application ID. # Arguments `campaign_id` - ID of the campaign to appl
backend/server/src/models/application.rs:234
Methodcreate_or_get
Creates a new application if it doesn't exist, otherwise returns the existing application ID. # Arguments `campaign_id` - ID of the campaign to appl
backend/server/src/handler/application.rs:41
Methodcreate_or_update_multiple
Creates or updates multiple attachments for a campaign. If an attachment already exists for the campaign, it will be updated. Otherwise, a new attach
backend/server/src/models/campaign.rs:716
Methodcreate_rating
Creates a new rating for an application with comment and category scores. This handler allows application reviewers to create ratings. First creates
backend/server/src/handler/application.rs:324
Methodcreate_role
Creates a new role in the campaign. Returns BadRequest if campaign is published.
backend/server/src/models/campaign.rs:627
Methodcreate_role
Creates a new role in a campaign. This handler allows campaign admins to create new roles. # Arguments `transaction` - Database transaction `state`
backend/server/src/handler/campaign.rs:242
Methodcreate_user
Creates a User, This should only used for database seeding
backend/server/src/models/user.rs:318
Methodcreate_user_campaign_availability
Creates an ID for a user-campaign availability pair # Arguments `user_id` - ID of the interviewer `campaign_id` - ID of the campaign in which the use
backend/server/src/models/availabilities.rs:58
Methoddelete
Deletes an existing comment. The delete is scoped to both the comment ID and the author, so users can only delete their own comments. # Arguments `i
backend/server/src/models/comment.rs:202
Methoddelete
Deletes a campaign. # Arguments `id` - ID of the campaign to delete `transaction` - Database transaction to use # Returns `Result<(), ChaosError>`
backend/server/src/models/campaign.rs:606
Methoddelete
Deletes an offer. # Arguments `id` - The ID of the offer to delete `transaction` - A mutable reference to the database transaction # Returns Returns
backend/server/src/models/offer.rs:253
Methoddelete
Deletes an answer. # Arguments `id` - ID of the answer to delete `transaction` - Database transaction to use # Returns `Result<(), ChaosError>` -
backend/server/src/models/answer.rs:454
Methoddelete
Deletes an organisation. # Arguments `id` - The ID of the organisation to delete `pool` - A reference to the database connection pool # Returns Retu
backend/server/src/models/organisation.rs:427
Methoddelete
( id: i64, transaction: &mut Transaction<'_, Postgres>, )
backend/server/src/models/question.rs:506
Methoddelete
Deletes an email template. # Arguments `id` - The ID of the template to delete `pool` - A reference to the database connection pool # Returns Return
backend/server/src/models/email_template.rs:159
Methoddelete
Deletes a role. This handler allows role admins to delete roles. # Arguments `state` - The application state `id` - The ID of the role to delete `_
backend/server/src/handler/role.rs:59
Methoddelete
Deletes a campaign. This handler allows campaign admins to delete campaigns. # Arguments `transaction` - Database transaction `id` - The ID of the
backend/server/src/handler/campaign.rs:217
Methoddelete
Deletes an offer. This handler allows offer admins to delete offers. # Arguments `transaction` - Database transaction `id` - The ID of the offer to
backend/server/src/handler/offer.rs:89
Methoddelete
Deletes an answer. This handler allows answer owners to delete their answers. The application must be open and not already submitted. # Arguments `
backend/server/src/handler/answer.rs:161
← previousnext →401–500 of 761, ranked by callers