Shelter Whisker
v1.0An animal rescue shelter app in soft clay on honey: drag drawn animal portraits between kennels or through the Adopted door.
페이지 주소: /
기본 제공
제공 내용- 라이트 및 다크사용 중인 테마 색상 적용
- 데스크톱, 태블릿 및 휴대폰지원하는 화면
- 패키지…
- 코드 크기…
- 배터리 절약30 fps, 멈춰 있을 땐 대기
- 숨겨지면 일시 정지화면 밖 또는 다른 탭
- 모션 줄이기원하는 사용자에겐 차분하게
변경할 때마다 검사
보안 검사 12월 3일- 타입 검사TypeScript strict 모드
- 린트 및 포맷ESLint · Prettier
- 테스트 및 빌드라이트/다크 스크린샷
- 보안 감사높음 또는 심각 등급 권고 없음
- 패키지 공개 기간모든 버전 공개 후 7일 이상
- 대기 시 CPU대기 시 코어 절반 미만, 30 fps 이하
코드
shelter-whiskerReact
- shelter-whisker.tsxThe page: the sections in order.
- content.tsEvery word and number: brand, nav links, each section's copy and lists.
- theme.tsThe colors as CSS variables, and the shared class strings.
- README.mdHow to install it, and where to change the text, colors and form.
- pagesOne file per page: the sections it shows, in order.
- adoptions.tsxThe Adoptions page: open applications on a board from New to Paperwork (drag a card or move it with the keyboard), the closed ones below, the new application dialog (#/adoptions?new=) and, at #/adoptions/<id>, one application's page.
- animal.tsxOne animal's page (#/animals/<id>): its big clay portrait and status, Edit and Delete, and tabs for its profile, vet tasks, adoption applications and history.
- animals.tsxThe Animals page: everyone in care as a list with species pills, a status filter and a search (all kept in the address, so Back keeps them), the intake dialog (#/animals?new=) and, at #/animals/<id>, one animal's page.
- application.tsxOne adoption application (#/adoptions/<id>): the animal and the applicant, Approve or Decline, and tabs for the applicant's details, the meet-and-greet and the paperwork that completes the adoption.
- fosters.tsxThe Fosters page: the animals in foster now with their next check-in, the latest check-ins, and the foster homes; dialogs place an animal, log a check-in and add or edit a home.
- kennels.tsxThe Kennels page: free, cleaning and waiting counts, the kennel map (tap an empty kennel to mark it cleaning or remove it), and the rooms, each renamed or given another kennel.
- medical.tsxThe Medical page: vaccines, treatments and vet visits grouped by when they're due (overdue first), filtered by kind, with vaccine coverage and open tasks by vet beside them; dialogs add a task or move its date.
- overview.tsxThe Overview: four number tiles, the kennel map with the Adopted door, the animals ready to go home, today's vet tasks and six months of intake against adoptions.
- reports.tsxThe Reports page: 6 or 12 months of animals in against animals adopted, the average stay as a line, this year's outcomes as a donut and the stay by species.
- settings.tsxThe settings page: the shelter's name, adoption fees and foster check-in rhythm, then Appearance (style, theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): the clay sign-in card over the honey hills, with three of the shelter's animals peeking around it, without the sidebar and top bar.
- volunteers.tsxThe Volunteers page: this week's shifts by day and time (open ones stand out), the crew with their hours, and the jobs list; dialogs add or edit a shift or a volunteer.
- sectionsOne file per page section.
- account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
- adopted-door.tsxThe Adopted door beside the kennel map: a clay arch whose door swings open when a portrait hovers over it, a counter of animals gone home in 30 days that rolls up, and a puff of clay hearts each time one goes through.
- animal-form.tsxThe intake and edit form for an animal, in a wide dialog: its clay portrait beside the fields redraws as the species, fur, ears and markings change.
- appearance.tsxSettings → Appearance: the style (Glass or Solid) and the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
- application-form.tsxThe new and edit form for an adoption application, in a dialog: which animal, who is asking, their home and a note.
- crew-forms.tsxThe Volunteers page's two dialogs: a shift (day, time, job and who takes it; remove it when editing) and a volunteer (name, usual job and phone).
- home-form.tsxThe new and edit form for a foster home, in a dialog: its name, area, how many animals it takes and which kinds.
- kennel-map.tsxThe kennel map (the app's signature): every room's kennels as clay wells holding the animals' portraits. Drag a portrait to another kennel and it hops in with a happy wiggle; drop one with an approved application on the Adopted door and it goes home, the counter rolling up. Space picks one up from the keyboard.
- sidebar.tsxThe sidebar: the logo, search, and the pages as puffy paw-pad tabs in groups; the current tab presses in, turns teal and its toe beans pop one by one.
- sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
- top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the Intake button, search, the theme switch and the account menu; once the page scrolls, a frosted honey strip fades in behind it so nothing reads through.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- burst.tsThe burst card style: cards spread out from the middle of the page, the nearest first.
- rowsWhat several sections share.
- avatar.tsThe avatar row motion: each row's face (data-build="face") pops first, then the row's other parts follow from faint.
- core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
- index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
- act.tsShows a save on every page at once: the fake API changes its records before it waits, so the loaded answers are swapped for the new records in the same frame (a dropped animal lands in the render the drag ends). With Undo, the records before the save come back.
- appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
- avatar.tsxA person's initials in a round badge, tinted with the primary.
- backdrop.tsxThe backdrop: soft honey hills with a few clay pebbles and bones resting on them, behind the app, mixed from the ground and card colors (and the primary, faintly); faded out in Solid; with followBackground it paints your background instead. It never moves.
- board-model.tsA board as data: every card's place (one order) and column, and how a move changes them.
- board.tsxA board of columns and cards: drag a card (mouse, pen or a short press on touch) with a lift and a gap where it will land, or pick it up with Space and move it with the arrow keys; the other cards glide out of the way.
- clay-charts.tsxThe clay charts: grouped bars that rise like puffy clay columns, and a donut of clay segments with its legend. Both grow in once, then sit still.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- dialog.tsxA centered modal dialog (a form, a confirm) on a clay card: pops in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
- drag-board.tsThe board's drag engine: mouse, pen and touch drags with a lift, a gap where the card will land, auto-scroll near the edges, and a drop or Escape that settles the card into place.
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- flip.tsFLIP: when cards change place, each one glides from where it was to where it is now instead of jumping.
- format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
- icons.tsxThe logo, the paw pad and the line icons, drawn on a 24-unit grid with round ends.
- kennel-drag.tsDragging an animal's clay portrait on the kennel map: it lifts under the press point, follows it 1:1, and on drop glides into its new kennel and hops in with a happy wiggle, shrinks through the Adopted door, or glides home when the drop isn't allowed (Escape too).
- keyboard-move.tsMoving a board card with the keyboard: Space picks it up, the arrow keys move it, Space or Enter drops it, Escape puts it back; each step is read out.
- language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
- line-chart.tsxA line chart with a soft area under it, in the primary: the line draws itself in, the latest point marked, and new values roll the line to its new shape.
- loads.tsxEvery page's loads: one hook per kind of record, and Loaded, which waits for all of a page's loads and shows the loading skeleton or the error with Try again meanwhile.
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
- motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
- portrait.tsxAn animal's clay portrait, drawn (no photos): its species' head, ears, fur color and markings, lit like modelled clay, on a round clay disc. Fur colors are mixed from the theme (tint, secondary), so a preset recolors every animal.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
- select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
- session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
- sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
- states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- ui.tsxThe small pieces every page shares: the page heading, a card's heading, status chips, tabs and filter pills, a number tile, a confirm dialog and how an age reads.
- use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
- use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
- dataThe pretend data and the fake API: swap it for your backend.
- account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
- actions.tsThe fake API's saves: each changes the records at once (so the pages can show it in the same frame, parts/act.ts) and then waits like a network call. Swap a body for a call to your backend.
- api.tsThe fake API: every page loads and saves through these functions (saves are in data/actions.ts), so wiring a real backend happens here only.
- people.tsThe pretend people and plans around the animals: adoption applications, foster homes and their check-ins, vet tasks, volunteers and their shifts, the year's numbers and the shelter's settings.
- seed.tsThe pretend animals, rooms and kennels of Whisker Hollow Rescue; every date is counted from today, so the demo always reads as this week.
- localesEvery word the app shows, one JSON file a language; list.ts names them.
- en.jsonOne language's words, with the keys of en.json.
- es.jsonOne language's words, with the keys of en.json.
- list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
shelter-whisker.tsx
The page: the sections in order.
불러오는 중…
- 이럴 때 좋아요
- Animal shelters and rescues tracking animals, kennels, adoptions, fosters, vet tasks and volunteer shifts.
- 작동 방식
- Drag a clay portrait to another kennel and it hops in; drop an approved one on the Adopted door and the counter rolls up.
- 사용 방법
- Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.