Movers Crate
v1.0A house removals ops app on kraft board and deep orange: drag rooms into a drawn van, price quotes from rooms and items, and watch today's vans ride their routes.
نشانی صفحه: /
داخلی
آنچه میگیرید- روشن و تیرهاز رنگهای تم شما استفاده میکند
- دسکتاپ، تبلت، و گوشیصفحهنمایشهایی که برایشان ساخته شده
- پکیجها…
- حجم کد…
- کممصرف برای باتری30 فریم بر ثانیه، در حالت ساکن متوقف
- در حالت پنهان متوقف میشودخارج از صفحه یا تب دیگر
- کاهش حرکتآرام برای کسانی که بخواهند
با هر تغییر بررسی میشود
بررسی امنیتی 3 دسامبر- بررسی نوعTypeScript strict
- لینت و قالببندیESLint · Prettier
- تست و بیلدتصاویر روشن و تیره
- ممیزی امنیتیبدون هشدار بالا یا بحرانی
- قدمت پکیجهر نسخه حداقل 7 روز عمومی بوده
- پردازنده در حالت بیکارکمتر از نیم هسته در حالت ساکن، حداکثر 30 فریم بر ثانیه
کد
movers-crateReact
- movers-crate.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.
- invoices.tsxInvoices: what is owed, what is overdue, what came in this month and the deposits waiting, a two-week strip of money in, then every invoice filtered by the address (?state=); take a payment or void one from its row.
- move.tsxOne move: its route on the map, crew, van, the stage steps, the client and notes (Summary); then its item list (Inventory), the van load (Load) and its invoices (Invoice), each a tab in the address (?tab=).
- moves.tsxMoves: this month at a glance (moves, today, booked ahead, the month's value, a two-week strip), then every move filtered by the address (?show=upcoming|today|done|all, ?q=), each row opening the move. New move books one.
- overview.tsxOverview: a bento of today. The hero shows today's moves on the map with each van riding its route live; beside it the van load (drag rooms into the van); then crews out, quotes waiting, this month's takings, the week's moves, the next moves, money owed and the fleet.
- planner.tsxPlanner: the week's board, one row per van and one column per day (Mon-Sat). Drag a move to another van or day and it is planned there; tap one to set its crew. Under it: who is free today, crews booked per day and how busy the vans are. ?week= picks the week.
- quote.tsxThe quote builder (#/quote/new or #/quote/<id>): who and where, the rooms and their items, the extras, and the price beside them, worked out live as the volume changes. Save it, send it, then accept it onto a van (which books the move) or decline it.
- quotes.tsxQuotes: how many wait for an answer, the new ones, the win rate and the open pipeline, a two-week strip of quotes asked for, then every quote filtered by the address (?state=), each row opening the builder.
- reports.tsxReports over the last 6 or 12 months (?range=): takings, moves, the average move and how busy the vans are; takings by month as a line (deposits dashed under it), moves by month as bars, the mix of move sizes and each van's use.
- settings.tsxSettings: the rates every quote is priced from (per m³, per mover hour, per mile, the deposit and the extras), and Appearance (style, theme and language).
- sign-in.tsxThe sign-in page (#/sign-in), without the sidebar and top bar: the form on one card, and beside it (wide screens) a kraft panel with a loaded van and the depot's month in three numbers.
- team.tsxTeam: the movers (role, days off, moves this month, their next move) and the vans (size, plate, service date, use this month) as two tabs (?tab=), each added, changed or removed in a dialog.
- sectionsOne file per page section.
- accept-dialog.tsxAccept a quote: pick the van it goes on (the smallest one it fits is picked to start; a van too small says so), then the move is booked with a deposit invoice and opens on its van load.
- 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).
- crew-dialog.tsxSet a move's crew: every mover with their role, each marked when they're off that day or already on another move, so a clash shows before it's saved.
- move-dialog.tsxThe move form in a dialog: book a new move or change one (who, from and to, the day and start, the van, the crew, the price and notes). Checked as you save, each error under its field.
- move-inventory.tsxA move's item list, room by room: each item steps through listed, packed, loaded and delivered with one tap, a whole room at once, and items are added, changed or removed in a dialog.
- move-invoices.tsxA move's money: its deposit and balance invoices with what is paid, taking a payment, raising the balance and voiding one; beside them the price split and what is still owed.
- overview-tiles.tsxThe Overview's smaller tiles: the van load, crews out, quotes waiting (live: web quotes land while you watch), this month's takings, moves this week, the next moves, money owed and the fleet.
- payment-dialog.tsxTake a payment on an invoice: how much (the whole balance to start) and the day it came in; checked as you save.
- quote-rooms.tsxThe quote's rooms: pick a room, then set how many of each usual item it holds with steppers (or fill a typical room at once); every change reprices the quote live.
- sidebar.tsxThe sidebar: logo, search with the command palette shortcut, and the page links in their groups (Work, Business, Account), the current one on a primary-tinted pill that slides to the page you pick; collapsed, only the icons show.
- 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.
- team-dialogs.tsxThe team's two forms: a mover (name, role, phone, days off) and a van (name, plate, size, next service, miles), each new or changed, removable, and checked as you save.
- today-hero.tsxThe Overview's hero tile: today's moves on the drawn map, each van riding its route live, and the list of moves with their stage, a countdown and how far through the day each is.
- top-bar.tsxThe top bar: the menu button on narrow screens, where you are, search, the theme switch and the account menu. Plain over the page at the top; once the page scrolls it gets the ground behind a blur and a line under it.
- van-load.tsxThe van load (the app's signature): drag each room's items into the drawn van, or tap a room. The van fills in layers, the volume rolls up, and past the roof a warning offers the bigger free van. Every change saves to the move: its items count as loaded, and the planner shows the van's fill.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- deal.tsThe 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.
- 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 Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
- charts.tsxThe charts: rounded bars (the current one in the primary, the rest muted), a smooth line with a soft area under it, and a share bar. Each reads its colors from the chart shades in theme.ts.
- clock.tsThe one live clock every moving tile shares: at most 30 redraws a second, only for the tiles on screen, none in a hidden tab; with reduced motion each tile draws once and stays still.
- 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.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."). Add a helper here when a page needs money, times or a list.
- grids.tsThe bento grid of every page: which tile sits where, at three page widths (2 columns on phones, 4 from 40rem, 6 from 66rem), each a full rectangle with no holes. Tiles take their place by name (style gridArea).
- 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).
- 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.
- route-map.tsxThe drawn map of today's moves: Bristol's river and main roads, every area as a dot, each move's route as a curve from its old home to its new one, and its van riding along it live (the shared clock). Drawn from the ground and tile shades only.
- 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.
- tile.tsxThe bento's one tile, the page heading above every grid, and the still tiles a grid shows while it loads.
- 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.
- van-art.tsxThe drawn van for the van load: a box van seen from its open back, each loaded room a layer that settles onto the ones below, in steps of the primary. Past the roof the layers keep stacking and the roof line turns red.
- 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 through these functions (saves are in data/save.ts), so wiring a real backend happens here only.
- quote-math.tsHow a quote is worked out: the rooms' items to a volume, the volume to a van, a crew and hours, and all of it to a price at the company's rates.
- save.tsThe fake API's saves: every form, drag and button that changes data calls one of these (after a short wait while Slow network is on). Swap each body for a call to your backend.
- seed.tsThe pretend data of a Bristol house removals company: 6 vans, 20 movers, about 40 moves a month for a year back and three weeks ahead, their quotes and invoices. Made once, the same on every load (a seeded random); swap data/api.ts for your backend to use your own.
- types.tsThe shapes of the pretend data: what the fake API (data/api.ts) answers and saves. Swap them for your backend's types.
- 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}).
movers-crate.tsx
The page: the sections in order.
در حال بارگذاری…
- مناسب برای
- Removals and moving companies running vans and crews: quotes, booked moves, inventory, the week's planner, invoices and reports.
- چگونه کار میکند
- Vans ride today's routes live. Drag rooms into the van and it fills in layers, warning when the load won't fit. Quotes price as you add items.
- نحوه استفاده
- Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts and data/save.ts for calls to your backend.