MateuszMichalowski b69d2273ae
feat(frontend): add transaction link in latest transactions (#3375)
* fix(frontend): post migration fixes

* fix(frontend): align with stylelint

* fix(frontend): fix tests and dashboard layout

* feat(frontend): add link to transactions

* feat(frontend): remove unused code

* feat(frontend): let dynamic keys in translations

* feat(frontend): fix stylelint

* feat(frontend): add missing styles for breadcrumb

---------

Co-authored-by: einhornimmond <dario.rekowski@gmx.de>
2024-10-15 16:06:34 +02:00

168 lines
3.5 KiB
JavaScript
Executable File

import NotFound from '@/pages/NotFoundPage'
const routes = [
{
path: '/authenticate',
},
{
path: '/',
redirect: (to) => {
return { path: '/login' }
},
},
{
path: '/overview',
component: () => import('@/pages/Overview'),
meta: {
requiresAuth: true,
pageTitle: 'overview',
},
},
{
// userIdentifier can be username, email or gradidoID
// communityIdentifier can be community name or community UUID
path: '/send/:communityIdentifier?/:userIdentifier?',
component: () => import('@/pages/Send'),
name: 'Send',
props: true,
meta: {
requiresAuth: true,
pageTitle: 'send',
},
},
// {
// path: '/profile',
// component: () => import('@/pages/Profile'),
// meta: {
// requiresAuth: true,
// },
// },
{
name: 'Transactions',
path: '/transactions',
component: () => import('@/pages/Transactions'),
props: { gdt: false },
meta: {
requiresAuth: true,
pageTitle: 'transactions',
},
},
{
path: '/gdt',
component: () => import('@/pages/Transactions'),
props: { gdt: true },
meta: {
requiresAuth: true,
pageTitle: 'gdt',
},
},
{
path: '/community',
component: () => import('@/pages/Community'),
meta: {
requiresAuth: true,
pageTitle: 'community',
},
redirect: (to) => {
return { path: '/community/contribute' }
},
},
{
path: '/community/:tab',
component: () => import('@/pages/Community.vue'),
meta: {
requiresAuth: true,
pageTitle: 'community',
},
},
{
path: '/information',
component: () => import('@/pages/InfoStatistic'),
meta: {
requiresAuth: true,
pageTitle: 'information',
},
},
{
path: '/usersearch',
component: () => import('@/pages/UserSearch'),
meta: {
requiresAuth: true,
pageTitle: 'usersearch',
},
},
{
path: '/circles',
component: () => import('@/pages/Circles'),
meta: {
requiresAuth: true,
pageTitle: 'circles',
},
},
// {
// path: '/storys',
// component: () => import('@/pages/TopStorys'),
// meta: {
// requiresAuth: true,
// },
// },
// {
// path: '/addresses',
// component: () => import('@/pages/Addresses'),
// meta: {
// requiresAuth: true,
// },
// },
{
path: '/settings/:tabAlias?',
component: () => import('@/pages/Settings'),
meta: {
requiresAuth: true,
pageTitle: 'settings',
},
},
{
path: '/login/:code?',
component: () => import('@/pages/Login'),
},
{
path: '/register/:code?',
component: () => import('@/pages/Register'),
},
{
path: '/forgot-password',
component: () => import('@/pages/ForgotPassword'),
},
{
path: '/forgot-password/:comingFrom',
component: () => import('@/pages/ForgotPassword'),
},
{
path: '/register-community',
component: () => import('@/pages/RegisterCommunity'),
},
// {
// path: '/select-community',
// component: () => import('@/pages/SelectCommunity'),
// },
{
path: '/reset-password/:optin',
component: () => import('@/pages/ResetPassword'),
},
{
path: '/checkEmail/:optin/:code?',
component: () => import('@/pages/ResetPassword'),
},
{
path: '/redeem/:code',
component: () => import('@/pages/TransactionLink'),
},
{
path: '/:catchAll(.*)',
name: 'NotFound',
component: NotFound,
},
]
export default routes