مواد پر جائیں

Lab Pipette

v1.0

A bench book for a small research lab on mint and ultraviolet liquid glass: samples, 96-well plates you paint by dragging, experiments, instrument bookings, freezers and reports.

$69

صفحے کا پتہ: /

پہلے سے شامل

آپ کو کیا ملتا ہے
  • لائٹ اور ڈارکآپ کی تھیم کے رنگ استعمال کرتا ہے
  • ڈیسک ٹاپ، ٹیبلٹ، اور فونوہ اسکرینز جن کے لیے یہ بنایا گیا
  • پیکجز…
  • کوڈ کا سائز…
  • بیٹری پر ہلکا30 fps، ساکن ہو تو رک جاتا ہے
  • چھپنے پر رک جاتا ہےاسکرین سے باہر یا دوسرا ٹیب
  • کم حرکتجو لوگ کہیں ان کے لیے پرسکون

ہر تبدیلی پر جانچ

سکیورٹی جانچ 3 دسمبر
  • ٹائپ چیکTypeScript strict
  • لنٹ اور فارمیٹESLint · Prettier
  • ٹیسٹ اور بلڈلائٹ اور ڈارک اسکرین شاٹس
  • سکیورٹی آڈٹکوئی ہائی یا کریٹیکل ایڈوائزری نہیں
  • پیکج کی عمرہر ورژن 7+ دن سے عوامی
  • فارغ CPUآرام میں آدھے کور سے کم، ≤ 30 fps

کوڈ

lab-pipetteReact
  • lab-pipette.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.
    • experiment-detail.tsxOne run: its protocol steps to check off, the plates in it and its results notes, each a tab with its own address; the main action moves it to its next stage.
    • experiments.tsxThe experiments board: one lane a stage (planned, running, in review, done), one card a run with its protocol, owner and checked steps, and the experiment form (#/experiments?new=1). #/experiments/EXP-122 shows one run (experiment-detail.tsx).
    • freezer-detail.tsxOne freezer: its temperature log, its boxes (pick one to see its slots; add, rename or remove a box) and its alarm limits, each a tab with its own address.
    • freezers.tsxThe freezers: a card each with its temperature now and over 24 hours against its alarm limits, then every alarm (acknowledge the open ones) and how full each box is. #/freezers/F2 shows one freezer (freezer-detail.tsx).
    • instrument-detail.tsxOne instrument: its coming bookings and two weeks of use, and its service log (log, edit, mark done, remove), each a tab with its own address.
    • instruments.tsxThe instruments: one day's bookings on the drag grid (the day in the address, ?day=), then a card an instrument with its week's hours and next service. #/instruments?new=1 opens the booking form; #/instruments/I3 shows one instrument (instrument-detail.tsx).
    • overview.tsxThe start page: today at a glance (four figures), the plate bench with the runs and alarms beside it, freezer temperatures and today's bookings, then runs per week and recent activity.
    • plate-detail.tsxOne plate: the plate map to paint (the bench), its wells listed by sample, and its notes, each a tab with its own address.
    • plates.tsxThe plates: one card a 96-well plate (a still map of its wells, its run and how full it is), a card to start a new one, and the plate form (#/plates?new=1). #/plates/P-104 shows one plate (plate-detail.tsx).
    • reports.tsxReports: the last 4 or 12 weeks (the range in the address, ?range=4) as three totals, runs per week, runs by status, samples added per week and each instrument's hours this week against last week.
    • sample-detail.tsxOne sample: its facts and the plates it is on, where it sits (the box map and the freezer's temperature) and its history, each a tab with its own address.
    • samples.tsxThe samples list: search and filters kept in the address (so Back returns to them), a table at desk width and stacked cards on a phone, and the New sample dialog (#/samples?new=1). #/samples/S-2041 shows one sample.
    • settings.tsxThe settings page: the lab (name, when an open alarm is called out, booking hours), its people, and Appearance (style, theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): the form on a glass card over the backdrop, without the rail and command bar, and beside it on wide screens a still plate map with what the app keeps.
  • 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).
    • booking-form.tsxThe booking form in a dialog: new (from an empty hour or Book) or edit (from a booking), checked for clashes and opening hours by the API; an edit can also remove the booking.
    • booking-grid.tsxOne day of bookings: a lane an instrument, a column an hour. Drag a booking to another hour or instrument (it checks for clashes, saves, and offers Undo), tap it to edit, or tap an empty hour to book it.
    • box-map.tsxA 9 x 9 freezer box seen from above: each filled slot a tube cap in its sample type's color (a link to the sample), each empty slot a link to add a sample there.
    • overview-cards.tsxThe Overview's cards: runs in progress, open freezer alarms, freezer temperatures, today's bookings on a timeline and recent activity. Each list is capped and ends in See all.
    • plate-bench.tsxThe signature: a 96-well plate in a glass tray. Load a sample from the tray, press a well and drag across others; each fills with tinted liquid glass while the pipette glides along the row. Saves the well map through the API, with Undo.
    • rail.tsxThe slim icon rail: the mark, one glass key a page with a liquid bead behind the current one and a glass label on hover, Settings at its foot. In the phone sheet it shows the labels beside the icons.
    • run-steps.tsxA run's protocol steps: check them off, move them up or down, remove one or add a new one. Each change saves at once and steps back if the save fails.
    • sample-form.tsxThe sample form in a dialog: new or edit, its box and slot checked against the freezer map by the API.
    • shared.tsxWhat every page shares: its head (title, line, actions), the people lookup, a back link on detail pages and the confirm-before-delete dialog.
    • 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 command bar: a floating glass bar with where you are, the find field (⌘K), the main actions, a live freezer chip, the theme switch and the account menu. Once the page scrolls, a solid strip fades in behind it so content never reads through.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • draw.tsThe draw card style: cards just fade in, and the data does the show.
      • rowsWhat several sections share.
        • stack.tsThe stack row motion, a drawer: the rows on screen start stacked under the first and spread to their places together.
      • 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 mint and ultraviolet clouds behind the glass, dusky in dark and near-white pastel in light, drifting very slowly, over a faint grid of well dots. With followBackground it paints your background instead.
    • charts.tsxThe charts: pill bars and a glowing line in a recessed glass well, a ring and paired bars; every color a theme variable, still at rest.
    • 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 rail's 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.
    • plate-art.tsxWhat every plate drawing shares: the well names, the liquid color of each sample type and a small still plate thumbnail.
    • 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: glass panels, the liquid segmented control and tab row, card heads, status chips and small meters.
    • 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-booking-drag.tsDrag bookings on the day grid: mouse and pen at once, touch after a short press (a swipe still scrolls). The booking stays under the grab point while a dashed slot shows where it will land (snapped to the hour, on the instrument under the pointer); on drop it glides into that slot (FLIP). Escape cancels; Space lifts, the arrows move it an hour or an instrument, Space drops.
    • 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.
    • use-plate-drag.tsThe plate's hands: press a well and drag across others to select a block (mouse, pen or touch), or move with the arrow keys and select with Shift; release or Space applies the loaded sample. The pipette follows the well under the pointer.
  • 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.
    • now.tsThe demo's "now": today's real date at a pinned 11:20, so today's bookings, runs and readings are full at any hour. A real backend uses the real clock.
    • seed-lab.tsThe pretend lab work: instruments and their bookings and service log, experiments with their protocol steps, 96-well plates, twelve weeks of history and the activity feed.
    • seed-samples.tsThe pretend lab: its people, freezers, boxes, samples, temperature log and alarms.
    • types.tsThe shapes the fake API answers with: a real backend returns the same.
  • 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}).

lab-pipette.tsx

The page: the sections in order.

لوڈ ہو رہا ہے…
کس کے لیے بہتر
A biology lab of 8-12 scientists sharing freezers and instruments: every tube, plate, run and booking in one place.
یہ کیسے کام کرتا ہے
Drag across a 96-well plate and each well fills with tinted liquid as a pipette glides along; bookings drag between hours.
استعمال کا طریقہ
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.