The job tracker has run from its own image at /jobs/ since 931b02c, so its
old copy here goes: the GraphQL schema, resolvers and models for
applications, references, sources, leads and the search profile; the
capture and email handlers and services; the Python posting reader, lead
scorer and email classifier; the Vue pages, stores and the capture-token
card on the Environment tab; and the userscript (nginx already redirects
its old URL to /jobs/).
The six old tables stay in the stp database: AutoMigrate never drops
anything, and dropping them is a manual step. The env variables stay in
the registry, where they already belong to the jobs service.
Docs (CLAUDE.md, DEPLOYMENT.md and the three READMEs) now describe the
site without the tracker, and DEPLOYMENT.md lists the jobs service and
./jobs-data.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
38 lines
889 B
JavaScript
38 lines
889 B
JavaScript
/**
|
|
* Places-to-go list (the "Places" tab inside the Collage widget) — full CRUD,
|
|
* built on createCrudStore().
|
|
*
|
|
* Not part of the homeData query because it is sign-in-only; PlacesTable.vue
|
|
* fetches it lazily once the user is logged in.
|
|
*/
|
|
|
|
import { createCrudStore } from "@/stores/createCrudStore";
|
|
|
|
const PLACE_FIELDS = `
|
|
id
|
|
title
|
|
location
|
|
notes
|
|
imageUrl
|
|
category
|
|
cost
|
|
priority
|
|
done
|
|
createdAt
|
|
updatedAt
|
|
`;
|
|
|
|
export const usePlacesStore = createCrudStore("places", {
|
|
type: "Place",
|
|
list: "places",
|
|
fields: PLACE_FIELDS,
|
|
// The list query returns newest first, so a new place goes on top.
|
|
insert: "prepend",
|
|
// deletePlace returns the deleted Place rather than a Boolean.
|
|
deleteReturns: "object",
|
|
extend: ({ update }) => ({
|
|
/** Flip a place's `done` flag. */
|
|
toggleDone: (place) => update(place.id, { done: !place.done }),
|
|
}),
|
|
});
|