Candles Wick
v1.0A candle studio's shop and workroom in warm honey glass: orders to ship, a pour jar you drag to fill, curing batches melting down to ready, materials and workshops.
Pagina-adres: /
Ingebouwd
Wat je krijgt- Licht en donkerGebruikt de kleuren van je thema
- Desktop, tablet en telefoonDe schermen waarvoor het is gebouwd
- Pakketten…
- Codegrootte…
- Zuinig voor de batterij30 fps, rust als er niets beweegt
- Pauzeert als het verborgen isBuiten beeld of ander tabblad
- Minder bewegingRustig voor wie erom vraagt
Bij elke wijziging gecheckt
Beveiliging gecheckt op 3 dec- TypecheckTypeScript strict
- Lint en opmaakESLint · Prettier
- Tests en buildScreenshots in licht en donker
- BeveiligingsauditGeen hoge of kritieke advisories
- Leeftijd van pakkettenElke versie al 7+ dagen openbaar
- CPU in rustOnder een halve core in rust, ≤ 30 fps
Code
candles-wickReact
- candles-wick.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.
- batch.tsxOne batch: its recipe (what the pour took and cost), its cure (the candle melting down to ready, then Stock) and its notes, cure days and count, saved in place; delete with a confirm.
- batches.tsxBatches: the pour jar to start a new pour, the curing shelf melting down, and every batch with its scent, size, count, load and cure.
- materials.tsxMaterials: wax, oils, wicks and jars with a stock meter each (warn at the reorder point), Reorder from the supplier, the purchase orders on their way to receive, and add, edit or delete a material.
- order.tsxOne order: its candles and totals, shipping (carrier and tracking) and its history, with the next step for its status (pack, ship, mark delivered), edit, cancel and delete.
- orders.tsxOrders: every web and studio order by status, searchable by customer, number or city, newest first; live orders land on top; New order opens the form.
- overview.tsxOverview: today's sales and orders, the orders to ship, the curing shelf melting down, the next workshop, what to reorder, the best scents and the candles on the shelf, whose stock ticks as live orders come in.
- product.tsxOne product: its candle lit large with the scent notes and figures, the stock of each size (adjust by hand, each count ticks), and its recent orders and batches.
- products.tsxProducts: every candle as a card that glows warm on hover, filtered by scent family and searchable, with New product.
- reports.tsxReports: sales by scent against the weeks before, units by week, the size mix, materials cost by month and what each size leaves after materials, over 4 or 12 weeks.
- settings.tsxSettings: the studio's own (default cure days and scent load, shipping and the free-shipping line, live web orders on or off) and Appearance (style, theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): a lit candle over the warm backdrop, the logo and the form on one glass card, without the top bar and dock.
- workshop.tsxOne workshop: its bookings (book, edit or cancel seats), the kit to set out for the people booked, and its details with edit and delete.
- workshops.tsxWorkshops: the pour-your-own classes coming up (and past ones) as cards with their date, host, seats meter and takings, and New workshop.
- 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).
- candle-card.tsxA candle card: the drawn candle in its glass, whose flame flickers and whose glass glows warm on hover, with the scent, its notes, the price from and the stock that ticks as orders take it.
- confirm.tsxA small confirm dialog for deleting or cancelling something: the reason in words, Keep and the red action.
- curing-shelf.tsxThe curing shelf: each curing batch as a candle whose wax melts down with the time left on its cure, a live countdown under it, and Stock once it is ready.
- dock.tsxThe glass dock at the bottom: the pages as soft glowing icons, a warm flame bead gliding under the current one; on phones four pages and More, which opens the rest in a sheet.
- material-forms.tsxThe materials forms: add or edit a material (wax, oil, wick or jar, its stock, reorder point, cost and supplier) and Reorder (how much to order, with its cost).
- order-form.tsxThe order forms: a new or edited order (customer, candles by scent and size, a note) and Ship (carrier and tracking number). Both check their own fields and say what is wrong under each.
- order-row.tsxOne order as a row: the scent dots, the number and customer, how long ago, the total and its status; the whole row opens the order.
- pour-jar.tsxThe pour jar, the app's signature: drag the wax up a big glass jar to set how many candles to pour, pick the scent, size and scent load, see the wax, oil, wicks, jars and cost live, then Pour: it takes the materials and starts the batch's cure.
- product-form.tsxThe product form: a candle's scent, its glass, whether it is on sale and the price of each size, checked field by field.
- 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: a floating glass bar with the mark and where you are, search, Pause for the live orders and timers, the theme switch and the account menu.
- workshop-forms.tsxThe workshop forms: a pour-your-own class (title, date and time, length, seats, price, host and the scents on the table) and a booking (who, how many seats, paid or not).
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- spotlight.tsThe spotlight card style: the page shows dim, then each card lights up in turn, 50ms apart, with a brief primary edge.
- rowsWhat several sections share.
- odo.tsxThe odo row motion: each row on screen rises 6px from faint while every number rolls digit by digit to its value.
- 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 four big soft clouds, warm honey and smoky plum, behind the glass, like a room lit by candles; dusky in dark, pale pastel in light, drifting very slowly. With followBackground it paints your background instead.
- candle.tsxThe drawn candle: a glass jar, its wax in the scent's color filled to a level, a wick and a flame that flickers while its card is hovered; a curing candle melts down as its timer runs.
- charts.tsxThe charts, each plotted in a recessed glass well: pill bars (the current one in the accent), horizontal pill bars by scent, a glowing line with its area, a size donut and a small sparkline.
- clock.tsThe one shared clock: cure timers tick once a second, the live orders arrive every ~40 seconds; both rest while the tab is hidden or the top bar's Pause is on.
- 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.
- 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."). 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 selected marker that moves like a drop of liquid: shared by every segmented control, tab row and the dock's flame bead.
- 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 app's shared pieces: the glass panel, a segmented switch and a tab row with the liquid bead, a stock meter, a page head, a status chip and a "See all" key.
- 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-studio.tsThe fake API's studio side: batches (pour, cure, stock), materials and purchase orders, workshops and bookings, the reports and the studio settings.
- api.tsThe fake API: every page loads and saves through these functions (this file: the shop side, Overview and the live orders; data/api-studio.ts: the studio side), so wiring a real backend happens here only.
- catalog.tsThe pretend studio catalog: the shapes every page works with, the scents, the candles for sale and the materials they are poured from.
- state.tsThe fake API's memory and shared helpers: the demo switches, the network wait, the live tables and how each row is shown (its name, totals and cost).
- studio.tsThe pretend studio's work: orders, poured batches, purchase orders, workshops and the sales history the reports read, all placed around the demo's "now".
- 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}).
candles-wick.tsx
The page: the sections in order.
Laden…
- Goed voor
- Small candle makers who sell online and run pour-your-own workshops, and anyone building a maker's shop with stock and batches.
- Hoe het werkt
- Live orders drop in and stock ticks; drag the pour jar to fill it and pour; curing candles melt down to ready; flames flicker on hover.
- Hoe je het gebruikt
- Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts and data/api-studio.ts for calls to your backend.