Ember Learn
v1.0A learning management app for a company's L&D team: courses, enrollments, progress, quizzes and certificates, in a quiet gray look with one ember-orange accent.
Địa chỉ trang: /
Tích hợp sẵn
Bạn nhận được- Sáng và tốiDùng màu theo giao diện của bạn
- Máy tính, máy tính bảng và điện thoạiCác màn hình mục này được thiết kế cho
- Package…
- Dung lượng mã…
- Tiết kiệm pin30 fps, nghỉ khi đứng yên
- Tạm dừng khi bị ẩnNgoài màn hình hoặc tab khác
- Giảm chuyển độngÊm dịu cho người có yêu cầu
Được kiểm tra ở mỗi thay đổi
Kiểm tra bảo mật 3 thg 12- Kiểm tra kiểuTypeScript strict
- Lint và định dạngESLint · Prettier
- Test và buildẢnh chụp sáng và tối
- Kiểm tra bảo mậtKhông có cảnh báo mức cao hoặc nghiêm trọng
- Tuổi của packageMọi phiên bản công khai từ 7 ngày trở lên
- CPU khi nghỉDưới nửa nhân khi đứng yên, ≤ 30 fps
Mã nguồn
lms-emberReact
- lms-ember.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.
- certificates.tsxCertificates: every certificate by status (expiring soon, valid, expired, revoked) with renew and revoke on each row, what runs out in the coming months, and a way to issue one by hand.
- courses.tsxCourses: every course with its category, length, learners and completion, and how many are in it right now; tabs and a category filter narrow it, a row opens the course's sheet.
- enrollments.tsxEnrollments: who is assigned what, grouped by where they are (overdue, in progress, not started, completed), filtered by status, course or team. Tick rows to extend, complete or remove them together; a row opens its sheet.
- overview.tsxThe overview: the four headline numbers, completion by team, the live feed, Learning now (the bars that fill as lessons complete) and who is overdue.
- people.tsxPeople: everyone in the company with their team, required courses done, open and overdue courses and live certificates; filter by team or search, open a person's sheet, or add someone.
- quizzes.tsxQuizzes: each course's quiz with its questions, pass mark, attempts, pass rate and average score; a row opens the quiz's sheet to edit questions and rules or read results.
- reports.tsxReports: completions a week over the range you pick (4, 12 or 26 weeks), required-course completion by team, every course's numbers and the quiz pass rates, with the course table exported as CSV.
- settings.tsxThe settings page: tabs for Teams, Categories, Certificates (how long they last, reminders, the default due window) and Appearance (theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card, without the sidebar and top bar, and under it a course's progress bar filling lesson by lesson, the app's mark.
- 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 theme (System, Dark or Light), each shown as a small preview, and the language (System or one of locales/list.ts).
- bottom-tabs.tsxThe phone's bottom tabs: the four pages used most, and More for the rest (the sidebar in a sheet).
- course-form.tsxThe course form: title, summary, category, whether it is required, its status and how long its certificate lasts. New course opens it in a dialog; a course's Settings tab shows it in the sheet.
- course-sheet.tsxA course's side sheet (#/courses?course=C-104): its numbers, then tabs for the lessons (reorder, edit, add), the learners in it, its quiz and its settings (edit, archive, delete).
- enroll-dialog.tsxAssign a course: pick the course, then a whole team or single people (search and tick), and the due date. Anyone already in the course is skipped.
- enrollment-sheet.tsxOne enrollment's side sheet (#/enrollments?open=E-0001): tick its lessons as the person finishes them (the bar fills; the last one, with the quiz passed, completes the course and stamps its certificate), record a quiz score, move the due date, or remove it.
- kpi-strip.tsxThe four headline numbers in one bordered strip: each a label, a number that rolls to its new value, a note, and a small trend line.
- learning-now.tsxLearning now, the overview's signature: the five courses people are in right now, each bar filling a notch as a lesson completes; a finished course stamps "Certified" and its certificate slides into Issued today below.
- lesson-list.tsxA course's lessons: drag one by its handle (or press Alt with the arrow keys on it) to reorder, edit a title and its minutes in place, delete one, or add a new one at the end. Each save goes through the fake API.
- live-feed.tsxThe live feed: what learners just did (a lesson, a finished course, a certificate, a quiz), newest first; a new row slides in at the top as it happens.
- overdue-list.tsxOverdue learners: who is furthest behind on an assigned course, with a word to send a reminder, and what falls due this week underneath.
- person-sheet.tsxA person's side sheet (#/people?person=EMP-0142): who they are, their courses with progress, certificates and quiz results; edit them or remove them. The same form adds a new person (?person=new).
- quiz-sheet.tsxA quiz's side sheet (#/quizzes?quiz=Q-01): its questions (add, edit with the right answer marked, move, delete), its results (score bands and the latest attempts) and its rules (pass mark, attempts allowed, delete).
- settings-lists.tsxSettings → Teams, Categories and Certificates: add, rename and remove teams (with their lead) and course categories (with their colour), and set how long certificates last and when reminders go out.
- sidebar.tsxThe sidebar: logo, search with the command palette shortcut, the page links in two groups with their counts (a pill glides to the page you are on), Settings, and the live strap that pauses the stream.
- 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-bars.tsxRequired-course completion by team: one bar per team, best first, with its rate and how many are overdue; the bars grow in with the page and slide to new values live.
- top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the live dot, search, the theme switch, New course (the one main action) and the account menu. It frosts only once the page has scrolled.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- turn.tsThe turn card style: cards swing in like pages, hinged on their left edge.
- rowsWhat several sections share.
- rise.tsThe rise row motion: each row on screen rises 8px from faint.
- 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: a smooth line with its area (completions over time), columns (score bands, certificates by month) and the small sparkline in a KPI cell. Each one scales to its box; pointing at a point or column shows its value.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- csv.tsSaves rows as a CSV file the browser downloads (Reports → Export CSV).
- 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.
- flip.tsRows that change place glide to it (FLIP): each row marked data-flip="<id>" is measured before and after a redraw and slides from its old spot.
- 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).
- live-clock.tsxOne shared clock for everything live on the page: it ticks only while something listens, the app is on screen, the tab is shown and nobody paused it, so the app stays still at rest.
- live.tsThe app's live clock: every four seconds a learner does something (data/live.ts) and every page loads again in place, so bars fill, rows arrive and numbers roll while you watch.
- lms.tsxThe small pieces every page shares: a person's face, the lesson progress bar that fills, status and category tags, the certificate stamp, filter tabs with a gliding underline, and the "new row" marker for live lists.
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet, the side sheet and toasts play, timed by their moments in theme.ts.
- motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
- page.tsxThe frame every page shares: its title line, the panels its blocks sit on, and the loading skeleton.
- 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.
- side-sheet.tsxThe side sheet: one thing's details (a course, an enrollment, a person) slide in from the end edge over the page; Esc, the scrim or Close slides it out.
- 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. Maya runs learning and development (EMP-0001 in the people list).
- api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- db.tsThe pretend database every read and save goes through (data/api.ts wraps these in network-like calls). Saves change it in place; data/views.ts reads it.
- live.tsThe live demo: staff learning while you watch. Each call is one thing a learner does (finishes a lesson, finishes a course and gets the certificate, starts a new course) through the same database the pages read. Wire your backend's events here instead.
- now.tsThe demo's "now": today at 10:40 plus the real time since the app loaded, so today is busy at any hour; every seeded date is set from it. Wire your backend and use the real time.
- seed-courses.tsThe pretend course library: 20 internal courses with their lessons, and the quizzes that close some of them.
- seed-learning.tsThe pretend learning record, made the same way on every load: who is enrolled in what, how far they got, their quiz attempts, their certificates and today's activity. Completions spread smoothly over the last 26 weeks, so every chart period is filled.
- seed-people.tsThe pretend company: 300 staff in ten teams, made the same way on every load (no two share a name), and the course categories.
- types.tsThe shapes of the pretend data: what a real backend would answer with. Every page reads these through data/api.ts.
- views.tsWhat each page reads, worked out from the pretend database: statuses, progress, counts, the overview's numbers and the reports' weeks. Every read is a plain function of db, so the live feed and every save show everywhere at once.
- 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}).
lms-ember.tsx
The page: the sections in order.
Đang tải…
- Phù hợp cho
- L&D and HR teams running internal training: required courses, due dates, quizzes and certificates for a few hundred staff.
- Cách hoạt động
- Lesson completions stream in live: progress bars fill a notch at a time and a finished course stamps its certificate.
- Cách dùng
- Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.