Saltar al contenido

Glassworks Cullet

v1.0

A glassblowing studio app on smoky molten glass: a rail of glowing canes, bench bookings, classes, pieces and an annealer whose glow follows the cool-down curve you drag.

$69

Dirección de la página: /

Incluido

Lo que obtienes
  • Claro y oscuroUsa los colores de tu tema
  • Escritorio, tableta y móvilLas pantallas para las que está hecho
  • Paquetes…
  • Tamaño del código…
  • Ahorra batería30 fps, en reposo cuando está quieto
  • Se pausa si no se veFuera de pantalla o en otra pestaña
  • Movimiento reducidoTranquilo para quien lo pide

Revisado en cada cambio

Seguridad revisada el 3 dic
  • Comprobación de tiposTypeScript estricto
  • Lint y formatoESLint · Prettier
  • Pruebas y buildCapturas en claro y oscuro
  • Auditoría de seguridadSin avisos altos ni críticos
  • Antigüedad de paquetesCada versión es pública desde hace 7+ días
  • CPU en reposoMenos de medio núcleo en reposo, ≤ 30 fps

Código

glassworks-culletReact
  • glassworks-cullet.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.
    • class-detail.tsxOne class (#/classes/<id>): roster, waitlist and details tabs, booking a seat, editing and deleting.
    • classes.tsxThe classes (#/classes): sessions filtered by when and kind, class fill by week and the longest waitlists.
    • colours.tsxThe colours (#/colours): frit, rod and powder stock with levels, reorders, supplier orders and the stock's value.
    • furnace.tsxThe furnace (#/furnace): the annealer studio, the temperature log with its readings, and the cool-down programs.
    • hot-shop.tsxThe hot shop (#/hotshop): a day's bench grid to book and drag, gaffer hours this week, bench use and what the time is for.
    • overview.tsxThe overview (#/): today's stats, the annealer, the furnace, the benches today, pieces coming out, the week's sales, low colour and the next classes.
    • piece-detail.tsxOne piece (#/pieces/<id>): its drawing and stage, story, colours and sale tabs, moving it on, editing, selling and deleting.
    • pieces.tsxThe pieces (#/pieces): a board of stages to drag pieces through, or a list, filtered by maker and stage.
    • reports.tsxThe reports (#/reports): sales and class fill by month, annealer use and top makers over 3 or 6 months.
    • settings.tsxThe settings page: the studio (name, furnace setpoint, opening hours), the people who work it, and Appearance (style, theme and language).
    • shop.tsxThe shop (#/shop): takings by week, sales by channel, pieces on the shelf, the sales list and ringing up a sale.
    • sign-in.tsxThe sign-in page (#/sign-in): a glowing vessel in a glass well beside the form card, over the backdrop, without the rail and top bar.
  • 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.
    • annealer-studio.tsxThe annealer: a drawn piece glowing in its chamber beside its cool-down curve. Drag the glowing bead along the curve to watch the glass cool from molten to clear; drag the soak and cool handles to reshape the program, and save it to the annealer (every loaded piece's ready time follows).
    • 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).
    • booking-dialog.tsxThe booking form in a dialog: a new block of bench time or a change to one, with its own errors (a clash or outside opening hours) and Delete.
    • booking-grid.tsxOne day of hot-shop time: benches across, hours down, each booking a glass block you drag to another bench or hour (or move with Space and the arrow keys).
    • colour-dialogs.tsxThe colour forms: a frit, rod or powder added or changed (with a live swatch from its hue), and a reorder from a supplier.
    • piece-dialog.tsxThe piece form in a dialog: a new piece off the pipe or a change to one, its colours picked as glass beads.
    • program-dialog.tsxThe annealer program form in a dialog: soak temperature, hold, cooling rate and end temperature, kept inside safe limits.
    • session-dialog.tsxThe class form in a dialog: a new taster or course session, or a change to one, with its own errors.
    • sidebar.tsxThe rail of glass canes: each page is a coloured rod; the chosen one glows from inside and a glass bead glides to it on the liquid spring. Under it, the furnace's live heat.
    • 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 studio's day and time, search, the theme switch and the account menu. Once the page scrolls, the bar frosts itself.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • draw.tsThe draw card style: cards just fade in, and the data does the show.
      • rowsWhat several sections share.
        • turn.tsThe turn row motion: each row on screen swings in from behind, hinged on its left edge, from faint (its free edge never comes forward, so it never widens the page).
      • 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 soft furnace light behind the glass — a low amber glory-hole glow, an ember cloud and smoke — dusky in dark and near-white pastel in light, drifting very slowly. With followBackground it paints your background instead.
    • charts.tsxThe charts: pill bars and a glowing line in a recessed glass well (the current bar or last point in the accent), a donut, and a level meter.
    • command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
    • cool-curve.tsAn annealer program as a cool-down curve: the temperature of a piece hour by hour, and how brightly glass glows at a temperature.
    • 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 ordered lanes (a tech's stops, a repair stage): 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.
    • format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."), plus money, hours, times and weights.
    • glass.tsxThe glass parts every page shares: the panel, the segmented control with its liquid bead, a card's header, a small stat and a colour swatch.
    • 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 selected marker that moves like a drop of liquid: shared by every segmented control, tab row and the nav droplet.
    • 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.
    • 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.
    • vessel.tsxA drawn piece of glass in its form and colour, glowing by its heat: clear coloured glass when cool, through ember red to molten when hot (1 = off the pipe).
  • 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.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
    • seed-studio.tsThe studio's pretend furnace log, annealers and their programs, colour stock, supplier orders, sales and settings.
    • seed.tsThe studio's pretend people, benches, hot-shop bookings, classes and pieces, seeded around today's real date with a pinned demo time (2:20 pm), so "today" is full at any hour.
    • types.tsThe shapes of the studio's data: what the fake API (data/api.ts) loads and saves, and what a real backend would return.
  • 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}).

glassworks-cullet.tsx

The page: the sections in order.

Cargando…
Ideal para
Glassblowing and hot-glass studios with a few gaffers, taster classes and a small shop to run from one place.
Cómo funciona
Book bench hours by drag, fill classes, move pieces from gather to done, and drag the annealer curve to watch the vessel cool.
Cómo usarlo
Edit words in locales/, colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.