Give the job tracker stores and fix the admin route guard
createCrudStore captures the places store's pattern and now backs places, job applications and job references. JobApplications.vue no longer calls gql() itself and is split into the applications table, the references table and the add form, with the status vocabulary in jobStatus.js. api.js is a thin REST client that turns failures into an ApiError carrying the backend's message; the admin views and Listening.vue use it in place of raw axios and fetch. The router guard waited on the home query's loaded flag, which is never set when that query fails, so /admin and /cv/jobs could hang. It now awaits a standalone me query owned by the auth store, and homeData gains a settled flag for widgets that only need to know the fetch finished. The Vite proxy targets are configurable through VITE_PROXY_*, and build:js runs the Vite build without wasm-pack. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Form controls shared by the job tracker's components (JobApplications.vue and
|
||||
* the JobReferences / JobApplicationForm components it renders).
|
||||
*
|
||||
* These lived in JobApplications.vue's scoped block until the page was split.
|
||||
* Scoped styles stop at a child component's root element, so the inputs inside
|
||||
* the children would have lost them; this file is imported by each component
|
||||
* instead. It is unscoped, so every selector is prefixed with the page's
|
||||
* `.ja-root` class — which also keeps the specificity at (0,2,0), the same as
|
||||
* the scoped originals, so they still beat CVLayout's `.cv-layout input`.
|
||||
*
|
||||
* Colours are the paper palette from CVLayout.vue.
|
||||
*/
|
||||
|
||||
.ja-root .ja-input {
|
||||
padding: 0.35rem 0.6rem;
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: 4px;
|
||||
font-size: 0.85rem;
|
||||
background: var(--color-paper);
|
||||
flex: 1;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.ja-root .ja-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-ink-muted);
|
||||
}
|
||||
|
||||
.ja-root .ja-select {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ja-root .ja-input-sm {
|
||||
padding: 0.2rem 0.4rem;
|
||||
font-size: 0.8rem;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user