Greenhouse Dew
v1.0A commercial greenhouse app on misted glass: houses as tall panes with dew running down, setpoint dials, crops, irrigation, staff tasks, harvest, orders and reports.
Alamat halaman: /
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 3 Des- 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
greenhouse-dewReact
- greenhouse-dew.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.
- crops.tsxCrops: every batch on the beds with its sow, transplant and harvest dates, counted by stage and filtered by stage, house and a search kept in the address; a batch opens to its timeline, beds and harvests.
- harvest.tsxHarvest: kilos picked per day, which crops gave most, the grade A share, and the log of every pick you add, edit or remove.
- houses.tsxHouses: every house as a card with its live climate against its setpoints and a setpoint table; a house opens to its own page with setpoint dials, the 24-hour climate, its zones, crops and log.
- irrigation.tsxIrrigation: water used per day, what runs now with its misting pulse, every program with Run now and on/off, the week schedule and the valves you open and close by hand.
- orders.tsxOrders: what buyers asked for, filtered by status, the picked order's steps from open to shipped, and the packing slip the pack house works from.
- overview.tsxThe Overview: the glass wall of all six houses with live climate and dew, four stat cards that open their lists, the 24-hour climate of one house beside today's tasks, then open orders beside the irrigation that runs next.
- reports.tsxReports: hours each house spent outside its climate band, kilos picked per square metre, water per house over two weeks, and one table you can download as CSV.
- settings.tsxThe settings page: the climate alert bands every house is checked against, then Appearance (style, theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): the form card beside one tall glass pane with the gable roof, dew on the glass and the grower's day in a line, without the roof bar.
- tasks.tsxTasks: the staff board (To do, Doing, Done) you drag cards across, filtered by house, person or overdue, plus who carries the most and what falls due this week.
- 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).
- batch-detail.tsxOne crop batch on its own page: its facts, then tabs for the timeline from sowing to the end of the crop, the beds of its house and what has been picked.
- house-zones.tsxA house's Zones tab: its zones with benches, temperature and humidity, added, edited and deleted in the shared record form.
- roof.tsxThe roof: a glass greenhouse header with a Venlo ridge line drawn along its top, the brand, search, the theme switch and the account menu, and under it the pages as glass panes split by mullions, the current one lit by a pane that slides on the liquid spring.
- 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.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- sheen.tsThe sheen card style: cards rise, plus one soft light sweep across each card as it lands.
- rowsWhat several sections share.
- mask.tsThe mask row motion: each part of a row on screen (its children) slides up from behind its own mask.
- 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 soft green clouds (leaf, sun, mist and dew) behind the glass with a faint glazing grid over them, dusky in dark and pale in light, drifting very slowly. With followBackground it paints your background instead.
- charts.tsxThe charts: a line chart in a recessed glass well with a soft glow and a hover guide, rounded pill bars, horizontal bars, a sparkline and a progress ring; every series paints in a chart shade so presets recolor it.
- clock.tsThe one shared clock every continuous loop rides on (the dew beads, the misting rings): at most 30 frames a second, stopped while the tab is hidden or nothing listens.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- dew-wall.tsxThe greenhouse wall on Overview: every house a tall glass pane side by side under its own gable, with its live climate, a humidity ring and soft dew beads drifting down the glass (one canvas on the shared 30fps clock); a pane whose house is misting gets spreading mist rings.
- dial.tsxA setpoint dial for a house: a 270° glass arc you drag (or step with the arrow keys) to set the target, with the live reading as a tick on the same arc; the new target saves when you let go.
- 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.
- form.tsxThe one record form every page uses to add or edit a row: fields from a short list, its own error lines (no browser bubbles), Save and, when editing, Delete.
- 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.
- gate.tsxShows a page only once everything it loads is ready: still skeletons in the page's shape while loading, the big error with Try again when a load fails.
- 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 and a page error with Try again.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- switch.tsxAn on/off switch (irrigation programs and valves).
- 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 shared pieces every page is built from: glass panels, the liquid segmented control and tab row, page and card headings, stat cards, status dots and the confirm dialog.
- 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-collection.tsOne list from the fake API with its saves: load it, save or remove a row, replace the list, each confirmed by a toast and caught when it fails (an optimistic change reverts).
- 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.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- seed-ops.tsThe pretend day-to-day work: irrigation programs and valves, water used, staff tasks, harvests and buyer orders, each dated from today.
- seed.tsThe pretend greenhouse: six houses with their setpoints, the zones inside them, the staff and the crop batches on the beds; dates count from today so the demo always looks current.
- 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}).
greenhouse-dew.tsx
The page: the sections in order.
Memuat…
- Cocok untuk
- A grower running several glasshouses and a crew: climate, crops, watering, jobs and buyer orders in one place.
- Cara kerjanya
- Dew beads run down each house pane, humidity rings fill, misting programs pulse while they water and dials set each house.
- Cara memakai
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.