- Migrate from legacy .eslintrc.json to modern flat config system - Remove conflicting ESLint configuration files - Fix auto-generation of eslint.config.mjs by Nuxt - Update ESLint rules to use single quotes and proper formatting - Add comprehensive theme switching system with 24 palettes - Implement proper daisyUI theme integration - Add theme store with persistence and dark/light mode support - Create ThemeSwitcher component with enhanced UI - Fix package.json scripts to work with new ESLint flat config - Update VS Code settings for proper ESLint integration - Add changelogen scripts for proper changelog management BREAKING CHANGE: ESLint configuration migrated to flat config system
28 lines
545 B
TypeScript
28 lines
545 B
TypeScript
export const useNavigation = () => {
|
|
const router = useRouter();
|
|
const appStore = useAppStore();
|
|
|
|
const navigateToDashboard = () => {
|
|
router.push('/dashboard');
|
|
};
|
|
|
|
const navigateToProfile = () => {
|
|
router.push('/profile');
|
|
};
|
|
|
|
const navigateToHuntingGround = () => {
|
|
router.push('/hunting-ground');
|
|
};
|
|
|
|
const handleLogout = async () => {
|
|
await appStore.logout();
|
|
router.push('/login');
|
|
};
|
|
|
|
return {
|
|
navigateToDashboard,
|
|
navigateToProfile,
|
|
navigateToHuntingGround,
|
|
handleLogout,
|
|
};
|
|
};
|