Перейти к содержимому

Onsen Steam

v1.0

A bathhouse and spa front desk in warm frosted glass: pools as basins filling with guests under drifting steam, timed entry sessions, a drag treatment board, members, cafe till and reports.

$69

Адрес страницы: /

Уже внутри

Что вы получаете
  • Светлая и тёмнаяБерёт цвета вашей темы
  • ПК, планшет и телефонЭкраны, для которых сделано
  • Пакеты…
  • Размер кода…
  • Бережёт батарею30 кадров/с, в покое простаивает
  • Пауза в фонеВне экрана или в другой вкладке
  • Меньше анимацииСпокойно для тех, кто просит

Проверяется при каждом изменении

Безопасность проверена 3 дек.
  • Проверка типовСтрогий TypeScript
  • Линтер и форматESLint · Prettier
  • Тесты и сборкаСкриншоты в светлой и тёмной теме
  • Аудит безопасностиНет уязвимостей высокого и критического уровня
  • Возраст пакетовКаждая версия опубликована 7+ дней назад
  • Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с

Код

onsen-steamReact
  • onsen-steam.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.
    • member.tsxOne member: who they are and their plan, their visits over twelve weeks, and tabs for visits, treatments, credits and notes. Check in, edit, change credits and notes from here; the tab lives in the address.
    • members.tsxMembers: how the membership stands (active, visits, credits, new), the plans as glass cards with how many hold each, and every member to filter by plan and status (kept in the address) and open.
    • overview.tsxOverview: the house at a glance. The pools as round glass basins filling with guests live and the heat rooms beside them, who is in right now and the next entries, the day's hours, the treatment queue, members in, the cafe and what needs cleaning.
    • pool.tsxOne pool or sauna: its basin filling with guests, its heat against its target, and tabs for the day's temperature line, the cleaning log and its settings. Log a reading or a cleaning, delete a log line, change the target, capacity and status; the tab lives in the address.
    • pools.tsxPools and saunas: how the waters and heat rooms stand (open, guests, off target, cleaning due), then a glass card for each with its heat against its target, its guests and when it is next cleaned. Filter pools or saunas (kept in the address); a card opens its page.
    • reports.tsxReports: over the last week, month or twelve weeks (kept in the address), the totals, how full the house is by hour, what each treatment earned, treatment revenue over time and member visits. Export downloads the days as a CSV file.
    • sessions.tsxSessions: the timed entry slots of a day. A grid of slots filling to their capacity, the picked slot with its capacity and who comes in, and every entry of the day to check in, edit or cancel. The day, slot and filters live in the address, so Back keeps them.
    • settings.tsxThe settings page: Appearance (style and theme) beside the house's own details and the language: its opening hours, entry slots and the areas it runs.
    • shop.tsxShop and cafe: a till (tap products into a basket, charge it to a guest or a member), the recent sales to refund, and the stock to add to and edit. The tab and the till's shelf live in the address.
    • sign-in.tsxThe sign-in page (#/sign-in): over the steaming backdrop, the house's welcome on the start side and the frosted sign-in card on the end side (stacked on phones), without the nav.
    • staff.tsxStaff: the week's roster (tap a day to switch early, late or off) and the team as cards with their role, the treatments they give and today's load. Filter by role (kept in the address); add, edit and remove people.
    • treatments.tsxTreatments: the day's board of therapists and hours to book and move treatments on, the treatment menu with what each sold this month, and the treatment rooms. The day lives in the address.
  • 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.
    • 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).
    • forms-area.tsxThe forms for a pool or sauna: a temperature reading, a cleaning done, and its settings (target heat, capacity, status, how often it is cleaned).
    • forms-booking.tsxThe two booking forms: an entry into a session slot (guest, member, party, circuit) and a treatment booking (client, treatment, therapist, room, time).
    • forms-people.tsxThe forms for people: a member, a membership plan, a change to a member's treatment balance, and a staff member.
    • forms-trade.tsxThe forms for what the house sells: a treatment on the menu, a treatment room, and a shop or cafe product.
    • rail.tsxThe nav: a floating glass capsule on the start edge (icons, their names on hover or focus) under a liquid bead that glides between pages, and on phones a glass dock along the bottom with a More sheet.
    • 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: two floating glass capsules, the house's name on the start side and, on the end side, the live clock, search, the theme switch and the account menu.
    • treatment-board.tsxThe treatment board: therapists on shift down the side, the day's hours across, each booking a glass card to drag to another therapist or hour (it lifts under the finger, follows it and glides into its slot; Space and the arrows move it by keyboard). An empty hour books a new treatment there.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • iris.tsThe iris card style: each card opens as a circle from its center.
      • rowsWhat several sections share.
        • unfold.tsThe unfold row motion: each row on screen opens down from its top edge, 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).
    • 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: a drawn mesh of warm dusk clouds behind the glass with slow wisps of steam rising through it, dusky in dark and pale yuzu in light. With followBackground it paints your background instead.
    • basin.tsxThe signature: each pool as a round glass basin whose water rises to how full it is right now, warm amber when hot and jade when cold; each heat room as a glass capsule with a ring that fills with guests.
    • charts.tsxThe charts, each in a recessed glass well: rounded pill bars with a soft rim (the current one in amber), a glowing line that draws itself in, and a small sparkline.
    • 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): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
    • drag-lanes.tsDrag cards between lanes (a therapist's hour on the treatment board): mouse and pen at once, touch after a short press (a swipe still scrolls), the lifted copy kept under the grab point, the others sliding aside (FLIP), the page and the board scrolling near their edges, Escape to cancel, and a keyboard path (Space lifts, arrows move, Space drops).
    • field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
    • form-dialog.tsxA form in a dialog, used by every add and edit: it checks the fields and shows its own errors under them (never the browser's), saves through the fake API, says so in a toast, reloads what the pages show and closes. A Delete key sits on the start side when editing.
    • 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 and the line icons, drawn on a 24-unit grid with round ends.
    • 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).
    • liquid-marker.tsThe picked marker that moves like a drop of liquid: shared by the nav capsule, the phone dock, segmented controls and tab rows.
    • live.tsThe one live clock: every 8 seconds the house's guests move and the pages showing them load again in place (the basins ease to their new level); it rests in hidden tabs.
    • 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.
    • 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 is made of: the glass panel, the liquid segmented control, card heads, meters, status chips and the save helper.
    • 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.
    • api-save.tsThe fake API's saves: every form, drag and button that changes something writes through these functions; each throws a sentence the page shows when the change can't be made.
    • api.tsThe fake API's loads: every page reads through these functions (saves are in api-save.ts), so wiring a real backend happens here only.
    • db.tsThe pretend database the fake API reads and writes (copies of the seeds), the demo clock, and the rules a number and the list it opens share.
    • seed-areas.tsThe pretend pools and saunas: six pools and three heat rooms, their water and air temperatures through today, and the cleaning log.
    • seed-base.tsThe pieces every pretend list is made from: the demo day, a seeded random so every visit sees the same bathhouse, and the name lists people are drawn from.
    • seed-people.tsThe pretend people: membership plans, members and their visits over twelve weeks, and the staff with their week of shifts.
    • seed-trade.tsThe pretend bookings and sales: entry sessions for the week ahead, the treatment menu, rooms and bookings, and the shop and cafe with thirty days of sales.
  • 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}).

onsen-steam.tsx

The page: the sections in order.

Загрузка…
Подходит для
Bathhouses, spas and wellness clubs running pools, saunas, treatment rooms, memberships and a cafe from one desk.
Как это работает
Basins fill as guests come in, steam drifts behind the glass, bookings drag between therapists and every list filters, adds and edits.
Как использовать
Edit words in locales/, the brand in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.