feat: remove nginx, add projects/milestones/notifications pages
- Dockerfile: replace nginx with serve for static files - Fix auth endpoint: /auth/login → /auth/token - Add ProjectsPage, ProjectDetailPage - Add MilestonesPage, MilestoneDetailPage with progress bar - Add NotificationsPage with unread count - Sidebar: add milestones/notifications nav, live unread badge - API: configurable VITE_API_BASE for host nginx proxy - Types: add Milestone, MilestoneProgress, Notification, ProjectMember
This commit is contained in:
@@ -118,3 +118,45 @@ dd { font-size: .9rem; }
|
||||
.create-issue label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--text-dim); }
|
||||
.create-issue input, .create-issue textarea, .create-issue select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font-size: .95rem; }
|
||||
.create-issue textarea { min-height: 100px; resize: vertical; }
|
||||
|
||||
/* Project grid */
|
||||
.project-grid, .milestone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
|
||||
.project-card, .milestone-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; cursor: pointer; transition: .15s; }
|
||||
.project-card:hover, .milestone-card:hover { border-color: var(--accent); background: var(--bg-hover); }
|
||||
.project-card h3, .milestone-card h3 { margin-bottom: 8px; }
|
||||
.project-desc { color: var(--text-dim); font-size: .9rem; margin-bottom: 12px; }
|
||||
.project-meta { font-size: .8rem; color: var(--text-dim); display: flex; gap: 12px; }
|
||||
|
||||
/* Milestone card header */
|
||||
.milestone-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
|
||||
.milestone-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
|
||||
.milestone-item:hover { background: var(--bg-hover); }
|
||||
.milestone-title { font-weight: 500; }
|
||||
|
||||
/* Progress bar */
|
||||
.progress-bar-container { width: 100%; height: 20px; background: var(--bg); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
|
||||
.progress-bar { height: 100%; background: var(--success); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center; min-width: 30px; transition: width .3s; border-radius: 10px; }
|
||||
|
||||
/* Notification list */
|
||||
.notification-list { margin-top: 16px; }
|
||||
.notification-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: .15s; }
|
||||
.notification-item:hover { background: var(--bg-hover); }
|
||||
.notification-item.unread { background: var(--bg-card); }
|
||||
.notification-dot { width: 12px; color: var(--accent); font-size: .6rem; padding-top: 4px; }
|
||||
.notification-body p { margin-bottom: 4px; }
|
||||
|
||||
/* Inline form */
|
||||
.inline-form { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
|
||||
.inline-form input, .inline-form select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
|
||||
|
||||
/* Filter checkbox */
|
||||
.filter-check { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: .9rem; cursor: pointer; }
|
||||
|
||||
/* Member list */
|
||||
.member-list { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
|
||||
/* Empty state */
|
||||
.empty { color: var(--text-dim); font-style: italic; padding: 16px 0; }
|
||||
|
||||
/* Text dim helper */
|
||||
.text-dim { color: var(--text-dim); font-size: .85rem; }
|
||||
|
||||
Reference in New Issue
Block a user