An independent toy store's back office in playful Memphis pastels: a catalog of drawn toys, stock by store and web, orders that slide through pick, pack and ship, promotions, customers and reports.
Web
12 halaman
$69
Alamat halaman: /
Selengkapnya di bawah ↓
Sudah termasuk
Yang Anda dapat
Terang dan gelapMemakai warna tema Anda
Desktop, tablet, dan ponselLayar yang didukung
Paket…
Ukuran kode…
Hemat baterai30 fps, diam saat tidak bergerak
Berhenti saat tersembunyiDi luar layar atau tab lain
Kurangi gerakanTenang bagi yang memintanya
Dicek di setiap perubahan
Keamanan dicek 28 Nov
Pengecekan tipeTypeScript strict
Lint dan formatESLint · Prettier
Tes dan buildTangkapan layar terang dan gelap
Audit keamananTanpa advisori tinggi atau kritis
Usia paketSetiap versi sudah publik 7+ hari
CPU saat diamDi bawah setengah core saat diam, ≤ 30 fps
Kode
Ada yang janggal dengan aplikasi ini? Kirim masukan ›
toys-pinwheelReact
toys-pinwheel.tsxpageThe page: the sections in order.
content.tscontentEvery word and number: brand, nav links, each section's copy and lists.
theme.tsthemeThe colors as CSS variables, and the shared class strings.
README.mdreadmeHow to install it, and where to change the text, colors and form.
pagespagesOne file per page: the sections it shows, in order.
catalog.tsxpageCatalog (#/catalog): every toy as a card with its drawn picture on its pastel, filtered by search, category, age and status (all in the address); New product opens the form (also #/catalog?new=1).
customer.tsxpageA customer (#/customer/<id>): their band with spend and orders, then tabs Orders, Wishlist (add and remove toys) and Birthday (the countdown, the club gift, join or leave the club); Edit opens the form.
customers.tsxpageCustomers (#/customers): the birthday club band, then every family with their orders and spend, filtered by search and club; New customer.
order.tsxpageAn order (#/order/<id>): its stages on a dashed wire, the toys in it, the customer, and its returns; move it on, cancel it, or start a return.
orders.tsxpageOrders (#/orders): tabs Board (drag cards Pick → Pack → Ship → Shipped), List (every order, filtered by stage, delivery and search) and Returns.
overview.tsxpageOverview (#/): the hero band with today's numbers and the turning pinwheel, the orders pipeline beside the low-stock shelf, then sales by age, top toys, promotions and this week's birthdays. Every block opens its filtered list.
product.tsxpageA product (#/product/<id>): its picture on its pastel band with Edit and Archive, then tabs: Details, Variants (add, edit, remove), Stock (store and web per variant) and Sales (8 weeks of units, recent orders).
promos.tsxpagePromotions (#/promos): the next 30 days as a strip of colored bars, then every promotion as a card filtered by live / upcoming / ended; create, edit, end now, delete (with Undo). #/promos?new=1 opens the form.
reports.tsxpageReports (#/reports): pick 7, 30 or 90 days; four tiles (sales, orders, toys sold, average order), sales by category as a donut, by age as bars, and the top toys with their share.
settings.tsxpageSettings (#/settings): the store (name, ship-from city, default reorder point, birthday gift, store pickup) and Appearance (palette, theme and language).
sign-in.tsxpageThe sign-in page (#/sign-in): a pastel panel with a pile of drawn toys beside the form card, without the sidebar and top bar; on phones only the card shows.
stock.tsxpageStock (#/stock): tabs Stock (every variant with store and web counts, search and a low-only filter, Adjust / Move / Reorder), Purchase orders (mark received) and Suppliers.
sectionssectionsOne file per page section.
account-menu.tsxsectionThe 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.tsxsectionSettings → Appearance: the palette (Brand, or one of the Memphis palettes, shown as its four colors), the theme (System, Dark or Light, each a small preview) and the language (System or one of locales/list.ts).
customer-dialog.tsxsectionThe customer form, new or edit: name, email, city, the child's first name and birthday (month and day), and the birthday club.
order-board.tsxsectionThe orders board: four lanes, Pick → Pack → Ship → Shipped. Drag a card by its grip (or focus the grip: Space lifts, arrows move, Space drops, Escape puts it back); cards slide to their new place, a move can be undone, and a card reaching Shipped throws confetti.
overview-more.tsxsectionOverview's lower rows: sales by age (bars that open the catalog for that age), the top toys, live and upcoming promotions, and this week's birthday club.
overview-top.tsxsectionOverview's first rows: the hero band (greeting, three tilted stat tiles and the big pinwheel turning slowly, with Pause), the orders pipeline (four lanes of mini order cards; a new order drops into Pick) and the low-stock shelf of drawn toys.
product-dialog.tsxsectionThe product form, new or edit: name, category, age range, the drawn picture and its card color, price, cost and supplier.
promo-dialog.tsxsectionThe promotion form, new or edit: a sale (percent off) or a bundle (one price for two toys or more), the toys in it, its dates and its color.
returns.tsxsectionOrders' Returns tab: each return with its order, toy, reason and amount; approve a request, then refund it (a refund throws confetti).
sidebar.tsxsectionThe block tower: the pinwheel logo, search, and one chunky toy block per page, stacked a little crooked like a child's tower. Each block has a stud on top and a shape tile in its pastel; the current block slides out and fills with its pastel.
sign-in-form.tsxsectionThe 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.
stock-dialog.tsxsectionOne dialog for a stock row's three jobs: Adjust (set store, web and the reorder point), Move (shop floor ↔ web stock room) and Reorder (send a purchase order to the toy's supplier).
suppliers.tsxsectionStock's Suppliers tab: each maker as a card with contact, lead time and how many toys they supply; add, edit, and delete (with Undo; a supplier that still has toys can't go).
top-bar.tsxsectionThe top bar: the menu button and logo on narrow screens, where you are, the live shop chip (orders to ship, opens the board), search, the theme switch and the account menu.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
deal.tspartThe deal card style: each card is dealt from the side of the current nav item, a short slide toward its place, one quickly after another.
rowsrowsWhat several sections share.
count.tspartThe count row motion: each row on screen brightens from faint while its numbers (<Ticker>) count up, rounded every frame.
core.tsxpartThe 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.tspartThe 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.tspartHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
avatar.tsxpartA person's initials in a round badge, tinted with the primary.
backdrop.tsxpartThe backdrop: a few drawn Memphis shapes scattered at the screen's edges behind everything (a half moon, a zigzag, dots, a ring, a triangle, confetti pills), from the primary only (float-1..3) at the Brand setting Glow's strength. With followBackground your background shows instead.
blocks.tsxpartThe building blocks every page shares: the page head on its pastel band with the squiggle, link tabs and filter pills that live in the address, a debounced search, cards, the saving helper (toast + Undo) and links to detail pages that remember the list they came from.
charts.tsxpartThe charts: chunky outlined bars that spring up (sales by age, a toy's weeks) and a donut of slices (sales by category). Series colors are --toys-pinwheel-chart-1..5, so a palette recolors them.
command-palette.tsxpartThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
dialog.tsxpartA 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.tspartDrag between lanes (the orders board): the grabbed card lifts as a tilted copy in the floating layer, follows the pointer or a finger, the lane under it lights up and a gap line marks where it lands; Escape cancels. useFlip slides every card from where it was to where it is after a move.
field.tsxpartA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
format.tspartHow 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.tsxpartThe logo (the pinwheel) and the line icons, drawn on a 24-unit grid with round ends; stroke, ends, joins, size and color read the icon variables (README "Studio follow").
language.tspartThe 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).
live.tspartThe live web shop: a new order arrives about every 45 seconds while the app shows (one shared clock, paused in hidden tabs and while a demo switch holds the API). Each one drops into Pick, a toast says so and the logo pinwheel whirls once (useArrivals' count is its key).
memphis.tsxpartThe Memphis pieces every page draws with: the pinwheel (logo and hero), the squiggle under a page title, small shapes (dots, zigzag, half moon, triangle, ring) and the confetti pop for wins. Flat fills, ink outlines.
moments.tspartThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
motion.tspartMotion helpers: the reduced-motion check, live, and run-once-in-view.
palettes.tspartThe Memphis palettes (the same as meta.json's presets): each is four inputs, and theme.ts makes the five pastels from them. Settings → Appearance picks one for this browser.
router.tspartThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
scroll-to-view.tspartScrolls an element into view moving only its own scroll container, never the page around it.
select-box.tsxpartA native select dressed to match the app: no browser arrow, a drawn chevron instead.
session.tspartWhether 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.tsxpartThe 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.tsxpartThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
store.tspartThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
ticker.tsxpartA number that counts up while its page builds in, and rolls to its new value whenever it changes.
toasts.tsxpartThe toasts: short notes that confirm what just happened, at the bottom end.
toys.tsxpartThe drawn toys: each product's picture, built from flat Memphis shapes with ink outlines on a 100-unit grid. Its fills are the pastels after the card's own tone, so a toy never melts into its card.
use-api.tspartLoads 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.tspartOpens 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.
datadataThe pretend data and the fake API: swap it for your backend.
account.tsdataThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes: the store's owner.
api-save.tsdataThe fake API's saves: every create, edit, move and delete. Swap each body for a call to your backend that returns the same shape; throw to show the error toast.
api.tsdataThe fake API's reads: every page loads through get(key) (parts/use-api.ts useLoad), and readNow(key) answers the first frame when no demo switch is on. To wire a real backend, swap each READS body for a fetch returning the same shape. Saves are in data/api-save.ts.
catalog.tsdataThe pretend catalog: toys with their variants and stock (store shelf and web warehouse), the suppliers and the purchase orders sent to them.
db.tsdataThe pretend database the fake API reads and writes (data/api.ts and data/api-save.ts): copies of the seed data, changed by every save until the page reloads.
net.tsdataThe pretend network every API call goes through: the two demo switches (Slow network, Show error state), ids and dates. Swap with your fetch.
orders.tsdataThe pretend web orders (each walks pick → pack → ship → shipped) and the returns that come back.
people.tsdataThe pretend customers (with their wishlists and the birthday club), the promotions and the store's own settings.
localeslocalesEvery word the app shows, one JSON file a language; list.ts names them.
en.jsoncontentOne language's words, with the keys of en.json.
es.jsoncontentOne language's words, with the keys of en.json.
list.tscontentThe 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-locales.mjs the rest (no extra keys, plural forms, {slots}).
toys-pinwheel.tsx
The page: the sections in order.
Memuat…
Cocok untuk
Independent toy stores with a web shop and one physical store that run catalog, stock, orders and promos in one place.
Cara kerjanya
Toy blocks for nav, drawn toy cards, order cards that slide from pick to ship, and a pinwheel that whirls on each new order.
Cara memakai
Edit words in locales/ and colors in theme.ts or parts/palettes.ts, and swap the bodies in data/api.ts and data/api-save.ts for calls to your backend.