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