ข้ามไปยังเนื้อหา

Orbit Relay

v1.0

A glass dashboard for a satellite ground-station network: live ground tracks, dishes that turn to each pass, a pass board you drag between antennas, contacts, contracts and billing.

$69

ที่อยู่หน้า: /

มีในตัว

สิ่งที่คุณได้รับ
  • สว่างและมืดใช้สีของธีมคุณ
  • เดสก์ท็อป แท็บเล็ต และโทรศัพท์หน้าจอที่สร้างมารองรับ
  • แพ็กเกจ…
  • ขนาดโค้ด…
  • ประหยัดแบตเตอรี่30 fps หยุดพักเมื่อนิ่ง
  • หยุดเมื่อซ่อนอยู่นอกหน้าจอหรืออยู่แท็บอื่น
  • ลดการเคลื่อนไหวสงบสำหรับผู้ที่ตั้งค่าไว้

ตรวจสอบทุกครั้งที่มีการเปลี่ยนแปลง

ตรวจสอบความปลอดภัย 3 ธ.ค.
  • ตรวจสอบไทป์TypeScript แบบ strict
  • Lint และฟอร์แมตESLint · Prettier
  • ทดสอบและบิลด์ภาพหน้าจอโหมดสว่างและมืด
  • ตรวจสอบความปลอดภัยไม่มีคำเตือนระดับสูงหรือวิกฤต
  • อายุแพ็กเกจทุกเวอร์ชันเผยแพร่มาแล้วอย่างน้อย 7 วัน
  • CPU ขณะว่างต่ำกว่าครึ่งคอร์ขณะพัก ≤ 30 fps

โค้ด

orbit-relayReact
  • orbit-relay.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.
    • antennas.tsxAntennas: one glass tile per dish, the dish drawn turning to its pass, with its status, feeds, what it is doing and a strip of its next 36 hours. A dish's own page opens at #/antennas/<id>.
    • billing.tsxBilling: what's outstanding, overdue, collected and still in draft; invoiced revenue by month beside the card that drafts this month's invoice for a customer; then every invoice, filtered by status (kept in the address), with send, mark paid and delete draft.
    • contacts.tsxContacts: every finished pass with how much came down against plan, its errors and whether the customer has the data; filter by search, result, antenna and range (kept in the address), fifty at a time. A contact's own page opens at #/contacts/<id>.
    • customers.tsxCustomers: who you fly for, each with their satellites, plan and how much of this month's minutes they've used; a customer's page (#/customers/<id>) shows the contract, their satellites and invoices in tabs, with edit and remove.
    • overview.tsxThe overview: four headline numbers, the live ground-track map beside the six dishes turning to their passes, the next twelve hours of passes beside the latest contacts, then fleet health, minutes by customer and the watch list.
    • reports.tsxReports: over 7 days, 30 days or 12 weeks (kept in the address) — the headline numbers, pass success through time beside each antenna's contact hours, data volume beside the share by customer and success by band, and a CSV of every contact in the range.
    • satellites.tsxSatellites: the live map with the picked satellite's card beside it, then the filterable list (search, orbit, owner, health; kept in the address so Back returns to them). A satellite's own page opens at #/satellites/<id>.
    • schedule.tsxThe schedule: every booked pass by antenna as a board (drag a pass to another dish at its site, or Alt and the arrow keys) or as a list, over 12, 24 or 36 hours, with a conflicts-only switch; the view, span and switch stay in the address. A pass's own page opens at #/schedule/<id>.
    • settings.tsxSettings: the network's booking rules (elevation mask, default priority, auto-resolve, delivery deadline) and its alerts beside Appearance (style, theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): on wide screens the live ground-track map and the tagline beside the card; on narrow ones just the card over the backdrop. No nav rail or header.
  • 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.
    • antenna-detail.tsxOne antenna's page: set its status from the head, then the big dish with where it points and its next passes, its maintenance windows (add, see clashes, remove) and its use over twelve weeks, in tabs.
    • antenna-form.tsxThe antenna form in a dialog: name, site, dish diameter, the bands it has feeds for and its elevation mask.
    • 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).
    • contact-detail.tsxOne contact's page: what came down against plan, the link rate through the pass with its error marks, the facts, then the error log and the delivery to the customer in tabs; review, deliver again or delete from the head.
    • customer-form.tsxThe customer form in a dialog: the company, its contact and email, and the contract (minutes a month, rate, overage, start and end).
    • nav-rail.tsxThe nav column down the end edge: a slim glass rail of page keys (their names in a tooltip), operations first, then business, settings at the foot; the current page sits on a glass bead that moves on the liquid spring. In the phone sheet it is a list with the names beside the icons.
    • pass-detail.tsxOne pass's page: the countdown to AOS (or LOS while it is up), its sky track from rise to set, the plan with the antenna and priority you can change, then its result and its step-by-step log in tabs; resolve a clash or cancel it from the head.
    • pass-form.tsxBook a pass in a dialog: pick the satellite and the antenna, then one of the real windows when it rises above the mask over that site in the next 36 hours, the priority and a note.
    • pass-lanes.tsxThe pass lanes: one row per antenna across a stretch of hours, each pass a pill at its real time (live ones amber, clashes red, done ones faded), its satellite's name beside it, hour marks on top and a "now" line. On the Schedule the pills can be dragged, or moved with Alt and the arrow keys, to another lane.
    • pass-strip.tsxThe pass strip, the header's second row: the next six passes as glass chips with a ticking countdown to AOS; a pass under way fills amber like a progress bar and counts to LOS; a clash shows its red light. Each chip opens its pass.
    • satellite-detail.tsxOne satellite's page: its orbit numbers, a day of battery and temperature, the facts card, then its booked passes and its contacts in tabs; edit, remove and book a pass from the head.
    • satellite-form.tsxThe satellite form in a dialog: name, NORAD id, owner, band, the four orbit numbers, default priority, health and mission. Checks each field, saves, and hands the saved satellite back.
    • 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 header: the menu key on narrow screens, the mark and the network's name, the live UTC mission clock with its speed key, search, pause, the theme switch and the account menu; under them the next passes (on a phone, just the next one beside the mark).
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • spotlight.tsThe spotlight card style: the page shows dim, then each card lights up in turn, 50ms apart, with a brief primary edge.
      • rowsWhat several sections share.
        • cols.tsThe cols row motion, a column wave: the parts of each row on screen (its children) arrive left to right, 35ms apart.
      • 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: deep space behind the glass, a drawn mesh of four slow color clouds (amber, indigo, violet and a warm rose, all turns of the primary), a still starfield and one faint orbit ring; with followBackground it paints your background instead.
    • charts.tsxThe charts, each plotted in a recessed glass well: a line with a soft glow (drawn in by the kit's BuildLine), rounded pill bars with the current one in amber, a donut and a small spark. Axis words stay flat and readable outside the drawing.
    • clock.tsThe one shared clock: mission time (real time, or 30 times faster from the header key), one animation loop at most 30 frames a second for the map and the dishes, and a slower beat for the countdowns. It rests in hidden tabs, with reduced motion and with Motion off.
    • 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.
    • dish.tsxA drawn antenna dish that turns to its pass: the bowl tilts to the elevation and swings toward the azimuth (seen from the side, so it foreshortens as it turns), with a compass needle on its base ring and a live az/el readout.
    • 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.
    • ground-track.tsxThe ground-track map: a drawn world with the night side shaded, each station's footprint, every satellite's track from half an hour ago to one orbit ahead, and the satellites gliding along them on the shared clock.
    • icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
    • lane-drag.tsDrag a pass to another antenna's lane: mouse and pen at once, touch after a short press (a swipe still scrolls), the lifted copy kept under the press point and following 1:1, lanes that can't take it dimmed, a glide into the exact slot on drop or back home on a miss, and Escape to cancel. Links inside never start the browser's own drag.
    • 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 the nav column, every segmented control and every tab row.
    • 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.
    • orbit.tsOrbit math, kept simple and honest: a circular orbit over a turning Earth gives each satellite's ground point at any moment, and a ground station's look angles (azimuth and elevation) to it.
    • passes.tsWhat a pass is right now and what clashes: shared by the schedule, the pass strip, the antennas and the fake API.
    • 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.
    • sky-plot.tsxThe sky plot of a pass: the station's sky as rings of elevation (horizon outside, zenith in the middle), the satellite's path across it from rise to set, and where it is now while the pass runs.
    • 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 small shared parts: glass panels, page heads, segmented controls and tab rows on the liquid marker, status dots and chips, compact stat cards, meters 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-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.
    • world.tsThe drawn world for the ground-track map: hand-simplified coastlines as longitude and latitude points, turned into one path on a 360 x 180 map (x = lon + 180, y = 90 - lat).
  • 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: the network's operations lead.
    • api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
    • history.tsThe pretend schedule and records, worked out from data/seed.ts: booked passes from the real visibility windows of each satellite over each site (the next day and a half), twelve weeks of finished contacts, and six months of invoices.
    • seed.tsThe pretend network: three ground sites with six antennas, seven customers and the fourteen satellites they fly. Passes, contacts and invoices are worked out from these in data/history.ts.
  • 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}).

orbit-relay.tsx

The page: the sections in order.

กำลังโหลด…
เหมาะสำหรับ
Ground-station and satellite operators who book passes, watch antennas and bill customers for contact minutes.
ทำงานอย่างไร
Satellites move on a live world map, a strip counts down to the next passes, and each drawn dish turns to the pass it tracks.
วิธีใช้
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.