Skip to content

Commit 0d24e32

Browse files
committed
fix types
1 parent cb46b72 commit 0d24e32

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

packages/web-app-mail/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"mark.js": "^8.11.1",
1919
"pinia": "3.0.3",
2020
"vue-concurrency": "5.0.3",
21-
"vue-router": "4.5.1",
21+
"vue-router": "^4.2.5",
2222
"vue3-gettext": "2.4.0",
2323
"zod": "4.1.12"
2424
},

packages/web-app-mail/src/index.ts

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import translations from '../l10n/translations.json'
22
import { useGettext } from 'vue3-gettext'
33
import { computed } from 'vue'
4+
import Inbox from './views/Inbox.vue'
5+
import MailCompose from './views/MailCompose.vue'
6+
import LayoutContainer from './LayoutContainer.vue'
7+
import EmptyLayoutContainer from './EmptyLayoutContainer.vue'
48

59
import {
610
AppMenuItemExtension,
@@ -26,38 +30,39 @@ export default defineWebApplication({
2630

2731
const routes: RouteRecordRaw[] = [
2832
{
29-
path: '/',
30-
name: 'root',
31-
component: () => import('./LayoutContainer.vue'),
33+
path: '',
34+
name: 'mail-root',
35+
component: LayoutContainer,
3236
meta: {
3337
authContext: 'user'
3438
},
3539
children: [
3640
{
3741
path: '',
38-
redirect: urlJoin(appInfo.id, 'all', 'inbox')
42+
redirect: { name: 'mail-all-inbox' }
3943
},
4044
{
4145
path: 'create',
4246
name: 'mail-create',
43-
component: () => import('./views/MailCompose.vue'),
47+
component: MailCompose,
4448
meta: {
4549
authContext: 'user',
4650
title: $gettext('Create new email')
4751
}
4852
},
4953
{
5054
path: 'all',
51-
name: 'all',
52-
component: () => import('./EmptyLayoutContainer.vue'),
55+
name: 'mail-all',
56+
component: EmptyLayoutContainer,
57+
redirect: { name: 'mail-all-inbox' },
5358
meta: {
5459
authContext: 'user'
5560
},
5661
children: [
5762
{
5863
path: 'inbox',
59-
name: 'all-inbox',
60-
component: () => import('./views/Inbox.vue'),
64+
name: 'mail-all-inbox',
65+
component: Inbox,
6166
meta: {
6267
authContext: 'user',
6368
title: $gettext('All emails')

pnpm-lock.yaml

Lines changed: 2 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)