A soft neumorphic workshop app for a tyre and alignment shop: a bay board you drag bookings across, alignment gauges whose needles settle into the green, stock and a tyre hotel.
Web
9 trang
$69
Địa chỉ trang: /
Xem thêm bên dưới ↓
Tích hợp sẵn
Bạn nhận được
Sáng và tốiDùng màu theo giao diện của bạn
Máy tính, máy tính bảng và điện thoạiCác màn hình mục này được thiết kế cho
Package…
Dung lượng mã…
Tiết kiệm pin30 fps, nghỉ khi đứng yên
Tạm dừng khi bị ẩnNgoài màn hình hoặc tab khác
Giảm chuyển độngÊm dịu cho người có yêu cầu
Được kiểm tra ở mỗi thay đổi
Kiểm tra bảo mật 28 thg 11
Kiểm tra kiểuTypeScript strict
Lint và định dạngESLint · Prettier
Test và buildẢnh chụp sáng và tối
Kiểm tra bảo mậtKhông có cảnh báo mức cao hoặc nghiêm trọng
Tuổi của packageMọi phiên bản công khai từ 7 ngày trở lên
CPU khi nghỉDưới nửa nhân khi đứng yên, ≤ 30 fps
Mã nguồn
App này có gì không ổn? Gửi góp ý ›
tyres-treadReact
tyres-tread.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.
bookings.tsxpageBookings: one day's bay board (the day in the address, ?day=), the keys to step a day back or on, and the booking form for a new booking (?new=1 opens it) or the one tapped.
customers.tsxpageCustomers: everyone in a table (name, plates, phone, visits), and one customer (#/customers/<id>) with their vehicles and tyre sizes, every visit and what they have stored.
home.tsxpageOverview: the bays now, today's numbers, what needs doing (low stock, swaps due, what's next) and how the weeks went.
hotel.tsxpageTyre hotel: the rack (drag a set to a free spot), every stored set in a table, and the swaps coming due with reminders one by one or for the picked.
jobs.tsxpageJobs: every job from the board, filtered by status, bay and service in the address, in a table that opens one (#/jobs/<id>) with its work, alignment and bill.
reports.tsxpageReports over 4, 10 or 26 weeks (?range=): tyres sold per week, the split by season, how booked each bay was, hotel spots used per month and the work done per week.
settings.tsxpageThe settings page: its title, Appearance (style, theme and language) and the shop's own settings, side by side on wide screens.
sign-in.tsxpageThe sign-in page (#/sign-in): a row of drawn tyres pressed out of the ground with the shop's line beside the form card, without the switch bank and top bar.
stock.tsxpageStock: the tyres on the shelf filtered by season, brand and level (in the address), each opening its form with reorder, and the orders tab where deliveries are received.
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 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).
bay-board.tsxsectionThe bay board: one sunk lane per bay across the day, bookings raised in them; drag one to another bay or time (or Space and the arrows) and it glides into its new slot, with Undo in the toast.
booking-dialog.tsxsectionA booking's form: who, which car, what work, which bay and when; an existing one can be deleted (with Undo) or opened as a job.
customer-dialogs.tsxsectionThe customer forms: a person (name, phone, email; delete with Undo) and one of their vehicles (plate, make, model, year, tyre size; delete).
hotel-rack.tsxsectionThe tyre hotel's rack: four aisles of twelve spots, each stored set a raised block lit by its season, each free spot a sunk slot; drag a set to a free spot (mouse, pen, touch hold, or Space and the arrows) and it glides in, or open it to move it.
job-alignment.tsxsectionA job's Alignment tab: pick a wheel on the drawn car, then its toe and camber gauges (the needle settles from the reading before to the one now; drag it or use the arrow keys), Set to spec, Save readings, and every reading in one table.
job-bill.tsxsectionA job's Bill tab: the labour line and any tyres, each tyre line removable (with Undo), tyres added from stock, and the total.
job-detail.tsxsectionOne job (#/jobs/<id>): the car and who it belongs to, the status keys (start, done, reopen), delete, and the Work, Alignment and Bill tabs (?tab=).
job-work.tsxsectionA job's Work tab: the checklist of its service, each step a key that sinks and lights when done (saved as it is pressed), and the balance weights per wheel.
overview.tsxsectionOverview's cards: the bays now, today's numbers, low stock, swaps due, what is coming up, tyres sold over ten weeks and how busy each bay was; each one opens its filtered list.
set-dialogs.tsxsectionThe tyre hotel's two forms: one stored set (its tread, dates, move to another spot, check out with Undo) and checking a new set in to a free spot.
shop-settings.tsxsectionSettings → Shop: the shop's name, each bay's name, opening hours, the bay board's step and how early swap reminders go out.
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.
switch-bank.tsxsectionThe switch bank: the pages as a row of raised dashboard keys, each with a small LED bar on top; the current page's key sits pressed in with its LED lit. In the phone sheet the same keys stand in a column.
top-bar.tsxsectionThe top bar: the logo and shop, the live bay strip (each bay a sunk lane with what is on the lift now and how far it is), search, the theme switch and the account menu.
tyre-dialog.tsxsectionA tyre's form: brand, model, size, season, load, how many are on the shelf and the reorder level; an existing one can be reordered or deleted.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
rise.tspartThe rise card style: cards rise and fade in (24px, a hair smaller), one after another.
rowsrowsWhat several sections share.
cols.tspartThe cols row motion, a column wave: the parts of each row on screen (its children) arrive left to right, 35ms apart.
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 Soft style's backdrop: one calm ground with a faint, still tyre-tread hatch in the top end corner only, faded out in Flat; with followBackground it paints your background instead.
bar-chart.tsxpartA bar chart: bars grow in, and the picked bar (in the primary), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a new range morphs the bars instead of drawing them again.
bulk-bar.tsxpartThe bar that rises over a list once rows are picked: how many, the actions for all of them, and a way to drop the pick.
command-palette.tsxpartThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
confirm.tsxpartA guarded action's second step: a small dialog that says what will happen, with Cancel and the action in red.
data-table.tsxpartA data table: a search box, columns that sort (aria-sort), still skeleton rows while loading, an empty note that clears the search, and rows you move through with the arrow keys, Home and End and open with Enter or a click.
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-board.tspartMoving bookings on the bay board: by mouse or pen at once, by touch after a short press (a swipe still scrolls), by keys (Space picks up, arrows move, Space drops, Escape puts back); the lifted booking stays under the point it was pressed at, snaps to the board's step, scrolls the board at its edges, never lands on another booking and glides into its slot (or back) on release.
field.tsxpartA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
filters.tsxpartA list's search and filters, all kept in the address: a search box, a select per filter, the active ones as chips that remove themselves, and Clear filters.
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.
gauge.tsxpartThe alignment gauge: a raised bezel round a sunk face with the spec as a green arc; its needle is a slider you drag round or step with the keys, and it settles softly into place after a key, a click or a new reading.
glide.tspartA dropped card glides from where it was let go into its slot (or back to its old one) in the menu moment's time, with no pop when the drag ends; reduced motion puts it straight down.
icons.tsxpartThe logo and the line icons, drawn on a 24-unit grid with round ends.
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).
line-chart.tsxpartA 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.
minute.tspartThe shop's clock for live parts (the bay strip, the now line): read again on every page switch and whenever the tab comes back, so nothing changes on its own while someone watches.
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.
neu.tsxpartThe soft controls every page shares: an LED, tabs that sink when picked, a slot meter, a number plate, a status chip, a card head with its link and a ring.
rack-drag.tspartMoving a stored set on the rack: by mouse or pen at once, by touch after a short press (a swipe still scrolls), by keys (Space picks up, arrows walk the spots, Space drops on a free one, Escape puts back); the lifted set stays under the point it was pressed at and glides into its spot (or back) on release.
router.tspartThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
save.tspartOne way to run a save from a click: the wait, a toast that says it worked (with Undo where there is one), every page's data loaded again, and a toast with the reason when it fails.
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.
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.
api.tsdataThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
db.tsdataThe pretend shop the fake API reads and saves: customers and vehicles, bookings by bay, jobs, tyre stock, the tyre hotel and weekly sales, made from a fixed seed so every visit looks the same.
totals.tsdataThe sums the overview and reports show: a week's tyres sold, a job's bill, money taken over a range and how booked each bay was, each read from the fake API's live lists.
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}).
tyres-tread.tsx
The page: the sections in order.
Đang tải…
Phù hợp cho
Tyre fitters, alignment shops and garages with a few bays that book by slot and store customers' off-season sets.
Cách hoạt động
Bookings press into bay lanes as you drag them; picked switch-bank keys sink and light; gauge needles settle into the spec zone.
Cách dùng
Edit words in locales/, colors and fonts in theme.ts, and swap the bodies in data/api.ts for calls to your backend.