How zxcvbnmzsedr/alist-course-plugin works
Project Type and Purpose
• The project is a front-end plugin for online course video playback that integrates with an external Alist server for file storage/authentication.
• Its main features are tree-style course directory display, online video playback using artplayer, progress tracking/resume playback, and flexible configuration (course root, server address, access token).
File Structure
• The top-level files and folders (like README.md, package.json, index.html) indicate that this is a web application built with Vue 3 and TypeScript.
• The src folder is organized in common sections:
• “api”: Contains files (e.g., alist.ts) used to interact with the external Alist API.
• “router”: Contains routing logic for navigating between views (config view, course list, single course view).
• “stores”: Implements state management (e.g., progress tracking, alist-specific state) that likely uses Vue’s composition and/or Pinia.
• “views”: Contains high-level pages where different UI components are composed.
• “utils” and “types”: Utility functions and type definitions to ensure robust coding practices.
• Configuration files (e.g., vite.config.ts, uno.config.ts) highlight that the project is built with modern tooling and has clear separation of code modules.