सीधे कंटेंट पर जाएँ

Karaoke Encore

v1.0

A karaoke bar's night in puffy neon clay: eight room booths with mic buttons and draining time rings, drag-to-reorder song queues, bookings, kitchen orders and reports.

$69

पेज का पता: /

पहले से मौजूद

आपको क्या मिलता है
  • लाइट और डार्कआपकी थीम के रंग इस्तेमाल करता है
  • डेस्कटॉप, टैबलेट, और फ़ोनजिन स्क्रीन के लिए यह बना है
  • पैकेज…
  • कोड साइज़…
  • बैटरी पर हल्का30 fps, स्थिर होने पर निष्क्रिय
  • छिपने पर रुक जाता हैस्क्रीन से बाहर या दूसरा टैब
  • कम मोशनमाँगने वालों के लिए शांत

हर बदलाव पर जाँचा गया

सिक्योरिटी जाँच 3 दिस॰
  • टाइप जाँचTypeScript स्ट्रिक्ट
  • लिंट और फ़ॉर्मैटESLint · Prettier
  • टेस्ट और बिल्डलाइट और डार्क स्क्रीनशॉट
  • सिक्योरिटी ऑडिटकोई हाई या क्रिटिकल एडवाइज़री नहीं
  • पैकेज की उम्रहर वर्शन 7+ दिन से पब्लिक
  • आइडल CPUरुके रहने पर आधे कोर से कम, ≤ 30 fps

कोड

karaoke-encoreReact
  • karaoke-encore.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.
    • bookings.tsxBookings (#/bookings?day=2): pick a night, see every room by the hour and book an open slot or open a booking; tonight also lists the parties still to come. ?new, ?room and ?start prefill a new booking, ?edit=<id> opens one.
    • orders.tsxOrders (#/orders?tab=menu): the kitchen board of tonight's tickets and a New order button, or the food and drinks menu to edit.
    • overview.tsxOverview (#/): tonight at a glance: the four numbers of the night, the room board of eight booths with their timers and mics, takings by hour, who is singing and the kitchen's open tickets.
    • reports.tsxReports (#/reports?range=14): the last 7 or 14 nights: takings, per night, rooms booked and the bar, then takings by night, room utilisation, the top songs and plays by language.
    • room.tsxOne room (#/rooms/<id>?tab=queue): its booth and facts, then tabs for the session (start, extend, end), the song queue, its food and drinks orders and tonight's bookings.
    • rooms.tsxRooms (#/rooms, ?status=singing): every room in one clay card as a flat list with its seats, rate, features, status and next party, filtered by status; a room's own page is #/rooms/<id> (pages/room.tsx).
    • settings.tsxThe settings page: Appearance (style, theme and language) and the venue's hours and house rules (cleaning time, walk-in length, happy hour).
    • sign-in.tsxThe sign-in page (#/sign-in): a puffy clay card over the stage lights, the mic logo floating on top, without the marquee.
    • songs.tsxSongs (#/songs?lang=ko&sort=title&q=moon): the library, searched, filtered by language and sorted (all kept in the address, so Back keeps them); queue a song in a singing room, add, edit or delete one.
  • 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-dialog.tsxThe booking form in a dialog: party, guests, room, night, start and length, plus phone; editing one adds +30 min and a cancel that asks first. The API refuses clashes and finishes past closing.
    • booking-grid.tsxThe bookings grid for one night: a row per room across the open hours (6 PM to 2 AM) in half-hour steps; a booking is a puffy block that opens its edit form, an open hour is a slot that starts a new booking there. It scrolls sideways inside its own box on narrow screens.
    • booth.tsxA room's booth, the app's signature: a puffy clay tile in its status color with a time ring and a big clay mic. Press the mic on a free or booked room and it squishes, the booth pops to singing, and the ring fills, then drains second by second; press it again to end the session.
    • kitchen.tsxThe kitchen board: tonight's tickets in four columns (new, cooking, ready, served), oldest first; each ticket moves one step on with its button or is cancelled.
    • marquee.tsxThe marquee: a puffy clay sign across the top with light bulbs around its edge that chase slowly, the neon wordmark, the page pills, the live open-now clock, search, the theme switch and the account menu; on phones the pills move into a sheet.
    • menu-list.tsxThe food and drinks menu: two flat lists with each item's price, a sold-out switch, edit and delete, and the item form in a dialog.
    • order-dialog.tsxA new food and drinks order in a dialog: the room, a stepper per menu item (sold-out ones can't be added), a note for the kitchen and the running total; it sends a ticket to the kitchen.
    • queue.tsxA room's song queue: the song singing now on top, the rest flat in a sunken well that you reorder by drag (the row stays under your finger, the others spring aside) or with the arrow keys on its handle; skip, remove, and add a song for a singer.
    • reports-charts.tsxThe report's cards: the four range numbers, takings by night (line), room utilisation (bars), the top songs and a donut of plays by language.
    • room-dialog.tsxThe room form in a dialog: name, seats, rate and features, checked before it saves through the API; a new room or an edit.
    • 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.
    • song-dialog.tsxThe song form in a dialog (title, artist, language, length as m:ss), and the dialog that queues a song in a singing room for a singer.
    • songs-table.tsxThe songs library as one flat list in a clay card: title and artist, language, length and plays (a bar against the most sung), with queue, edit and delete on each row.
    • tonight.tsxOverview's blocks around the room board: the four numbers of the night, takings by hour, who is singing now and the kitchen's open tickets, each a way into its full page.
  • 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.
        • 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.
    • attempt.tsRuns a save through the fake API: on success the pages it touched redraw from the API at once and a toast says so; on failure a toast says why, and nothing is lost.
    • avatar.tsxA person's initials in a round badge, tinted with the primary.
    • backdrop.tsxThe stage behind the cards: two soft spotlight beams from the top corners, a warm wash over the floor and a scatter of glitter dots, drawn from the ground and the primary and tint only; faded out in Solid; with followBackground it paints your background instead.
    • bar-chart.tsxA 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.
    • clock.tsOne shared clock for every loop in the app (the marquee's bulbs, the rooms' timers): at most 30 ticks a second, resting while the tab is hidden, and each listener only while its own element is on screen.
    • command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
    • confirm.tsxAn in-app confirm (end a session, delete a room): a dialog with what happens and two pills, the risky one in the primary; never a browser popup.
    • 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-list.tsDrag to reorder a vertical list: the row lifts at the grab point and follows the pointer 1:1, the others spring aside to open a gap, and on drop every row glides to its new place; Escape puts it back, and the arrow keys on a row's handle move it one step.
    • 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).
    • line-chart.tsxA 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.
    • 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.
    • pills.tsxA row of pill choices (page links, tabs, filters, a range) with one puffy primary pill under the current one that springs across when the choice changes; the row may wrap, and the pill follows to the next line.
    • 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.
    • 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.
  • 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.
    • bookings.tsRoom bookings by the hour for tonight and the six nights after it: the pretend data the fake API (data/api.ts) serves.
    • menu.tsThe food and drinks menu, tonight's room orders and the takings history: the pretend data the fake API (data/api.ts) serves.
    • rooms.tsThe eight private rooms, tonight's sessions in them and the venue's clock: the pretend data the fake API (data/api.ts) serves.
    • songs.tsThe song library (languages, lengths, play counts) and each room's queue tonight: the pretend data the fake API (data/api.ts) serves.
  • 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}).

karaoke-encore.tsx

The page: the sections in order.

लोड हो रहा है…
इनके लिए अच्छा
Karaoke bars and party venues that rent private rooms by the hour and serve food and drinks to them.
यह कैसे काम करता है
Press a booth's clay mic to start a session; its ring drains, songs drag into order, tickets move through the kitchen.
कैसे इस्तेमाल करें
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.