feat: add Digest tab to nav and router
This commit is contained in:
parent
d76e74c200
commit
16b0e51654
2 changed files with 9 additions and 2 deletions
|
|
@ -71,9 +71,13 @@ import {
|
||||||
CalendarDaysIcon,
|
CalendarDaysIcon,
|
||||||
LightBulbIcon,
|
LightBulbIcon,
|
||||||
MagnifyingGlassIcon,
|
MagnifyingGlassIcon,
|
||||||
|
NewspaperIcon,
|
||||||
Cog6ToothIcon,
|
Cog6ToothIcon,
|
||||||
} from '@heroicons/vue/24/outline'
|
} from '@heroicons/vue/24/outline'
|
||||||
|
|
||||||
|
import { useDigestStore } from '../stores/digest'
|
||||||
|
const digestStore = useDigestStore()
|
||||||
|
|
||||||
// Logo click easter egg — 9.6: Click the Bird 5× rapidly
|
// Logo click easter egg — 9.6: Click the Bird 5× rapidly
|
||||||
const logoClickCount = ref(0)
|
const logoClickCount = ref(0)
|
||||||
const ruffling = ref(false)
|
const ruffling = ref(false)
|
||||||
|
|
@ -101,14 +105,16 @@ function exitHackerMode() {
|
||||||
localStorage.removeItem('cf-hacker-mode')
|
localStorage.removeItem('cf-hacker-mode')
|
||||||
}
|
}
|
||||||
|
|
||||||
const navLinks = [
|
const navLinks = computed(() => [
|
||||||
{ to: '/', icon: HomeIcon, label: 'Home' },
|
{ to: '/', icon: HomeIcon, label: 'Home' },
|
||||||
{ to: '/review', icon: ClipboardDocumentListIcon, label: 'Job Review' },
|
{ to: '/review', icon: ClipboardDocumentListIcon, label: 'Job Review' },
|
||||||
{ to: '/apply', icon: PencilSquareIcon, label: 'Apply' },
|
{ to: '/apply', icon: PencilSquareIcon, label: 'Apply' },
|
||||||
{ to: '/interviews', icon: CalendarDaysIcon, label: 'Interviews' },
|
{ to: '/interviews', icon: CalendarDaysIcon, label: 'Interviews' },
|
||||||
|
{ to: '/digest', icon: NewspaperIcon, label: 'Digest',
|
||||||
|
badge: digestStore.entries.length || undefined },
|
||||||
{ to: '/prep', icon: LightBulbIcon, label: 'Interview Prep' },
|
{ to: '/prep', icon: LightBulbIcon, label: 'Interview Prep' },
|
||||||
{ to: '/survey', icon: MagnifyingGlassIcon, label: 'Survey' },
|
{ to: '/survey', icon: MagnifyingGlassIcon, label: 'Survey' },
|
||||||
]
|
])
|
||||||
|
|
||||||
// Mobile: only the 5 most-used views
|
// Mobile: only the 5 most-used views
|
||||||
const mobileLinks = [
|
const mobileLinks = [
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ export const router = createRouter({
|
||||||
{ path: '/apply', component: () => import('../views/ApplyView.vue') },
|
{ path: '/apply', component: () => import('../views/ApplyView.vue') },
|
||||||
{ path: '/apply/:id', component: () => import('../views/ApplyWorkspaceView.vue') },
|
{ path: '/apply/:id', component: () => import('../views/ApplyWorkspaceView.vue') },
|
||||||
{ path: '/interviews', component: () => import('../views/InterviewsView.vue') },
|
{ path: '/interviews', component: () => import('../views/InterviewsView.vue') },
|
||||||
|
{ path: '/digest', component: () => import('../views/DigestView.vue') },
|
||||||
{ path: '/prep', component: () => import('../views/InterviewPrepView.vue') },
|
{ path: '/prep', component: () => import('../views/InterviewPrepView.vue') },
|
||||||
{ path: '/prep/:id', component: () => import('../views/InterviewPrepView.vue') },
|
{ path: '/prep/:id', component: () => import('../views/InterviewPrepView.vue') },
|
||||||
{ path: '/survey', component: () => import('../views/SurveyView.vue') },
|
{ path: '/survey', component: () => import('../views/SurveyView.vue') },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue