// The one place the Functions name the product. tools/build-site.py holds the same values for // the generated pages. A rename is these constants plus the generator's. export const APP = { name: 'Jobley', domain: 'jobley.ai', site: 'https://jobley.ai', prefix: 'jl', // short prefix for session tokens (jl_session_…), passkey setup codes (jl_enroll_…) and manage tokens (jl_job_…) database: 'jobley-db', // D1 database name; the binding is always DB }; // Passkeys are the only way a person signs in. The relying party is the website's domain, which // also serves /.well-known/apple-app-site-association for the apps (team 22HV69L32T; the Mac and // iPhone apps share the bundle id com.protomota.jobley in the jobley repo's project.yml). export const PASSKEYS = { rpName: 'Jobley', rpID: 'jobley.ai', appIDs: ['22HV69L32T.com.protomota.jobley'], challengeMinutes: 5, enrollmentMinutes: 15, sessionDays: 30, }; export const WORKPLACES = { remote: 'Remote', hybrid: 'Hybrid', onsite: 'On site' }; export const EMPLOYMENT_TYPES = { full_time: 'Full time', part_time: 'Part time', contract: 'Contract', temporary: 'Temporary', internship: 'Internship' }; export const PAY_PERIODS = { year: 'year', month: 'month', week: 'week', day: 'day', hour: 'hour' }; // The pay floor. A job's lowest pay, turned into an hourly figure, must be at least MIN_HOURLY_USD. // PAY_FLOOR is the one switch: 'all' checks every pay period (a year is 2,080 hours, a month 1/12 of // that, a week 40 hours, a day 8), 'hourly' checks only jobs paid by the hour, 'off' turns the floor // off. It applies to USD only; for other currencies the person reviewing judges "the same in local // currency". The page copy lives in tools/build-site.py (MIN_HOURLY_USD there too). export const MIN_HOURLY_USD = 100; export const PAY_FLOOR = 'all'; export const HOURS_A_YEAR = 2080; // How many of each pay period make a full-time year. export const PERIODS_A_YEAR = { hour: HOURS_A_YEAR, day: HOURS_A_YEAR / 8, week: HOURS_A_YEAR / 40, month: 12, year: 1 }; export const CATEGORIES = { engineering: 'Engineering', design: 'Design', product: 'Product', data: 'Data', marketing: 'Marketing', sales: 'Sales', support: 'Customer support', operations: 'Operations', finance: 'Finance', people: 'People and HR', writing: 'Writing and editing', education: 'Education', healthcare: 'Healthcare', trades: 'Skilled trades', other: 'Other', }; export const LIMITS = { bodyBytes: 64 * 1024, jobDaysLive: 45, // a published job comes down after this many days unless it is published again keepMonths: 12, // posts that are off the board, candidates' notes and applications are deleted after this pageSize: 30, maxPageSize: 100, // Submissions allowed per IP per hour. rate: { jobs: 5, candidates: 10, moderators: 3, passkeys: 60 }, };