mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-28 11:16:37 +08:00
d5cf5fb4b2
Adopt the cropflre/nowen-video tech stack and rebuild the project from
scratch:
- Backend: Go 1.25 + Gin + GORM + SQLite (WAL) + JWT + WebSocket hub.
Layered packages config / database / model / repository / service /
middleware / handler. Default admin (admin/admin123) seeded on first
run; /api routes for auth, libraries, media, stream and admin
panels. WebSocket scan-progress events at /api/ws.
- Frontend: React 18 + Vite 5 + Tailwind 3.4 + Zustand + axios +
react-router 6 + lucide-react + framer-motion + hls.js. Pages for
Login / Home / Library / Search / MediaDetail / Player / Admin
(Library, Users, Settings tabs).
- Distribution: multi-arch Dockerfile (frontend -> backend -> Alpine
runtime), docker-compose.yml, GitHub Actions for CI and GHCR
publish, Makefile, env-prefixed config (MEDIASTATION_*).
- Docs: README, CONTRIBUTING, .env.example, config.example.yaml.
Backend builds, vets and tests pass. Frontend builds via tsc -b && vite
build (250 kB JS / 16 kB CSS, gzipped 84 / 4 kB).
31 lines
669 B
JavaScript
31 lines
669 B
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
export default {
|
|
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
display: ['Orbitron', 'sans-serif'],
|
|
body: ['Inter', 'PingFang SC', 'Microsoft YaHei', 'sans-serif'],
|
|
},
|
|
colors: {
|
|
primary: {
|
|
400: '#00F0FF',
|
|
500: '#00D4E0',
|
|
600: '#00A8B8',
|
|
},
|
|
accent: {
|
|
400: '#A855F7',
|
|
500: '#8A2BE2',
|
|
},
|
|
surface: {
|
|
700: '#1a2332',
|
|
800: '#121a27',
|
|
900: '#0b1120',
|
|
950: '#060a13',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
}
|