Closes the lib → stores boundary violations that WS-3 sessie 1c flagged. lib/axios.ts is now pure HTTP infrastructure: it exports the configured `apiClient` plus a `registerInterceptors(client, deps)` function that takes a typed `AxiosBindingsDeps` callback bag (`getActiveOrgId`, `notify`, `onAuthFail`, `onImpersonationRevoked`). All four `eslint-disable-next-line boundaries/element-types` comments referencing TECH-AXIOS-STORE-COUPLING are removed in the same change because the imports they suppressed are gone — they would otherwise be orphan disables. Behavior is preserved 1:1: same status-code branching, same toast messages, same DEV-only console logs, same sessionStorage-driven X-Impersonate-User header (which never depended on a store and stays in lib/axios.ts as before). The two redirects that used to live in axios.ts (`/platform` on impersonation revocation, `/login` on auth fail) move into the bindings-plugin closures so the HTTP module stops knowing about routing. The `apiClient` singleton is now exported without interceptors attached — the bindings plugin (`plugins/3.axios-bindings.ts`, follow-up commit) wires them up during plugin-init, before `app.mount`. Refs TECH-AXIOS-STORE-COUPLING. Co-Authored-By: Claude <noreply@anthropic.com>
Crewli — Organizer SPA
Main product UI for organisation and event staff (Vue 3 + Vuexy + Vuetify). Lives in this repo; only re-copy from Vuexy when upgrading the template.
Setup
- Install dependencies:
pnpm install
- Create
.env.local:
VITE_API_URL=http://localhost:8000/api/v1
VITE_APP_NAME="Crewli Organizer"
- Dev server uses port 5174 (see
vite.config.tsor run from repo root:make app).
pnpm dev --port 5174
Port
Runs on http://localhost:5174
Production: e.g. VITE_API_URL=https://api.crewli.app/api/v1 and host the SPA at https://crewli.app (see api/.env.example for FRONTEND_APP_URL and SANCTUM_STATEFUL_DOMAINS).