Ziya/app/composables/navigation.ts
rizary 67fb3a203e
feat: implement CEX analysis cards and real-time token monitoring
- Add TokenCard and CexAnalysisCard components for displaying token data
- Implement real-time Redis event streaming for token updates
- Add environment-based configuration system for dev/prod Redis servers
- Create comprehensive hunting ground dashboard with card management
- Add individual and bulk card removal functionality
- Implement browser integration for token details viewing
- Add timestamp utilities and proper type handling for Redis events
- Create production-ready configuration with 154.38.185.112 Redis server
- Add comprehensive documentation in README.md and CONTRIBUTORS.md
- Restructure project architecture with proper Electron-Vue integration

BREAKING CHANGE: Redis configuration now uses environment-based settings
2025-06-23 09:03:39 +07:00

31 lines
631 B
TypeScript

import { useRouter } from 'vue-router';
import { useAppStore } from '../stores/app';
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,
};
};