Spaces:
Sleeping
Sleeping
Download src/lib/constants.ts from ashnhash/UniHunt: direct link, hf CLI and curl.
- Browser
- Download file 1.75 kB
-
https://huggingface.co/spaces/ashnhash/UniHunt/resolve/main/src/lib/constants.ts
- Command line
-
hf download hf://spaces/ashnhash/UniHunt/src/lib/constants.ts
-
curl -L -o constants.ts https://huggingface.co/spaces/ashnhash/UniHunt/resolve/main/src/lib/constants.ts
1.75 kB
| import type { | |
| CandidateType, | |
| CourseLevel, | |
| CourseType, | |
| SearchCriteria, | |
| } from "./types"; | |
| export const COURSE_LEVELS: CourseLevel[] = [ | |
| "Diploma", | |
| "Certificate", | |
| "Associate", | |
| "Undergraduate", | |
| "Postgraduate", | |
| "Masters", | |
| "Doctorate", | |
| "Postdoctoral", | |
| ]; | |
| export const COURSE_TYPES: CourseType[] = [ | |
| "Engineering", | |
| "Medicine", | |
| "Bachelor's", | |
| "Master's", | |
| "Masters Integrated", | |
| "PhD", | |
| "Business", | |
| "Law", | |
| "Arts & Humanities", | |
| "Science", | |
| "Technology", | |
| "Other", | |
| ]; | |
| export const CANDIDATE_TYPES: { value: CandidateType; label: string }[] = [ | |
| { value: "in-state", label: "In-State (domestic, same state/province)" }, | |
| { value: "out-of-state", label: "Out-of-State (domestic, different region)" }, | |
| { value: "out-of-country", label: "Out-of-Country (international)" }, | |
| ]; | |
| export const DEFAULT_SEARCH_CRITERIA: SearchCriteria = { | |
| courseLevel: "", | |
| courseType: "", | |
| specialization: "", | |
| countries: [], | |
| candidateType: "", | |
| lastQualification: "", | |
| lastSchool: "", | |
| curriculum: "", | |
| subjects: "", | |
| grades: "", | |
| budgetMax: "", | |
| additionalNotes: "", | |
| }; | |
| /** Independent Brave + model searches run once per selected country. */ | |
| export const MAX_SEARCH_COUNTRIES = 5; | |
| /** Combined unique courses after merging per-country searches. */ | |
| export const MAX_COMBINED_RESULTS = 25; | |
| export function tooManyCountriesWarning(count: number): string { | |
| return `You selected ${count} countries. Each country is searched separately, so please select at most ${MAX_SEARCH_COUNTRIES} and retry.`; | |
| } | |
| export function tooManyResultsWarning(count: number): string { | |
| return `This search found ${count} courses, which is more than the limit of ${MAX_COMBINED_RESULTS}. Narrow the countries or other criteria and retry.`; | |
| } | |