-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
288 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts" setup> | ||
import { PageHeader, PageContent } from '@/widgets/ui' | ||
import { PageHeader, LayoutPreviewEvents } from '@/widgets/ui' | ||
import { PAGE_TYPES } from '@/shared/constants' | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<template #header> | ||
<PageHeader :type="PAGE_TYPES.HTTP_DUMP" title="Http-dump" /> | ||
<PageHeader :type="PAGE_TYPES.HttpDump" title="Http-dump" /> | ||
</template> | ||
|
||
<PageContent :type="PAGE_TYPES.HTTP_DUMP" title="Http-dump" /> | ||
<LayoutPreviewEvents :type="PAGE_TYPES.HttpDump" title="Http-dump" /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts" setup> | ||
import { PageHeader, PageContent } from '@/widgets/ui' | ||
import { PageHeader, LayoutPreviewEvents } from '@/widgets/ui' | ||
import { PAGE_TYPES } from '@/shared/constants' | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<template #header> | ||
<PageHeader :type="PAGE_TYPES.INSPECTOR" title="Inspector" /> | ||
<PageHeader :type="PAGE_TYPES.Inspector" title="Inspector" /> | ||
</template> | ||
|
||
<PageContent :type="PAGE_TYPES.INSPECTOR" title="Inspector" /> | ||
<LayoutPreviewEvents :type="PAGE_TYPES.Inspector" title="Inspector" /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts" setup> | ||
import { PageHeader, PageContent } from '@/widgets/ui' | ||
import { PageHeader, LayoutPreviewEvents } from '@/widgets/ui' | ||
import { PAGE_TYPES } from '@/shared/constants' | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<template #header> | ||
<PageHeader :type="PAGE_TYPES.MONOLOG" title="Monolog" /> | ||
<PageHeader :type="PAGE_TYPES.Monolog" title="Monolog" /> | ||
</template> | ||
|
||
<PageContent :type="PAGE_TYPES.MONOLOG" title="Monolog" /> | ||
<LayoutPreviewEvents :type="PAGE_TYPES.Monolog" title="Monolog" /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts" setup> | ||
import { PageHeader, PageContent } from '@/widgets/ui' | ||
import { PageHeader, LayoutPreviewEvents } from '@/widgets/ui' | ||
import { PAGE_TYPES } from '@/shared/constants' | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<template #header> | ||
<PageHeader :type="PAGE_TYPES.PROFILER" title="Profiler" /> | ||
<PageHeader :type="PAGE_TYPES.Profiler" title="Profiler" /> | ||
</template> | ||
|
||
<PageContent :type="PAGE_TYPES.PROFILER" title="Profiler" /> | ||
<LayoutPreviewEvents :type="PAGE_TYPES.Profiler" title="Profiler" /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts" setup> | ||
import { PageHeader, PageContent } from '@/widgets/ui' | ||
import { PageHeader, LayoutPreviewEvents } from '@/widgets/ui' | ||
import { PAGE_TYPES } from '@/shared/constants' | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<template #header> | ||
<PageHeader :type="PAGE_TYPES.RAY_DUMP" title="Ray Dumps" /> | ||
<PageHeader :type="PAGE_TYPES.RayDump" title="Ray Dumps" /> | ||
</template> | ||
|
||
<PageContent :type="PAGE_TYPES.RAY_DUMP" title="Ray Dumps" /> | ||
<LayoutPreviewEvents :type="PAGE_TYPES.RayDump" title="Ray Dumps" /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts" setup> | ||
import { PageHeader, PageContent } from '@/widgets/ui' | ||
import { PageHeader, LayoutPreviewEvents } from '@/widgets/ui' | ||
import { PAGE_TYPES } from '@/shared/constants' | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<template #header> | ||
<PageHeader :type="PAGE_TYPES.SENTRY" title="Sentry" /> | ||
<PageHeader :type="PAGE_TYPES.Sentry" title="Sentry" /> | ||
</template> | ||
|
||
<PageContent :type="PAGE_TYPES.SENTRY" title="Sentry" /> | ||
<LayoutPreviewEvents :type="PAGE_TYPES.Sentry" title="Sentry" /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts" setup> | ||
import { PageHeader, PageContent } from '@/widgets/ui' | ||
import { PageHeader, LayoutPreviewEvents } from '@/widgets/ui' | ||
import { PAGE_TYPES } from '@/shared/constants' | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<template #header> | ||
<PageHeader :type="PAGE_TYPES.SMTP" title="Smtp" /> | ||
<PageHeader :type="PAGE_TYPES.Smtp" title="Smtp" /> | ||
</template> | ||
|
||
<PageContent :type="PAGE_TYPES.SMTP" title="Smtp" /> | ||
<LayoutPreviewEvents :type="PAGE_TYPES.Smtp" title="Smtp" /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts" setup> | ||
import { PageHeader, PageContent } from '@/widgets/ui' | ||
import { PageHeader, LayoutPreviewEvents } from '@/widgets/ui' | ||
import { PAGE_TYPES } from '@/shared/constants' | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<template #header> | ||
<PageHeader :type="PAGE_TYPES.VAR_DUMP" title="Var Dumps" /> | ||
<PageHeader :type="PAGE_TYPES.VarDump" title="Var Dumps" /> | ||
</template> | ||
|
||
<PageContent :type="PAGE_TYPES.VAR_DUMP" title="Var Dumps" /> | ||
<LayoutPreviewEvents :type="PAGE_TYPES.VarDump" title="Var Dumps" /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,77 @@ | ||
import {EVENT_TYPES} from "../types/events"; | ||
import {RouteName} from "../types/app"; | ||
import { EventTypes, } from "../types/events"; | ||
import { type PageEventTypes } from "../types/pages"; | ||
|
||
export const ALL_EVENT_TYPES = 'all-events' as const | ||
|
||
// TODO convert it to enum | ||
export const PAGE_TYPES = { | ||
...EVENT_TYPES, | ||
ALL_EVENTS: "all-events", | ||
...EventTypes, | ||
ALL_EVENT_TYPES, | ||
} | ||
|
||
export const PAGES_SETTINGS: { [key in PageEventTypes ]: { title: string, sidebarTitle: string, iconName: string, routeName: RouteName, eventType: EventTypes | typeof ALL_EVENT_TYPES }} = { | ||
[ALL_EVENT_TYPES]: { | ||
title: 'Home', | ||
sidebarTitle: 'Home', | ||
iconName: 'home', | ||
routeName: RouteName.Home, | ||
eventType: ALL_EVENT_TYPES, | ||
}, | ||
[EventTypes.Sentry]: { | ||
title: 'Sentry', | ||
sidebarTitle: 'Sentry logs', | ||
iconName: 'sentry', | ||
routeName: RouteName.Sentry, | ||
eventType: EventTypes.Sentry, | ||
}, | ||
[EventTypes.Profiler]: { | ||
title: 'Profiler', | ||
sidebarTitle: 'Profiler', | ||
iconName: 'profiler', | ||
routeName: RouteName.Profiler, | ||
eventType: EventTypes.Profiler, | ||
}, | ||
[EventTypes.Smtp]: { | ||
title: 'SMTP', | ||
sidebarTitle: 'SMTP mails', | ||
iconName: 'smtp', | ||
routeName: RouteName.Smtp, | ||
eventType: EventTypes.Smtp, | ||
}, | ||
[EventTypes.HttpDump]: { | ||
title: 'Http dumps', | ||
sidebarTitle: 'Http dumps', | ||
iconName: 'http-dump', | ||
routeName: RouteName.HttpDump, | ||
eventType: EventTypes.HttpDump, | ||
}, | ||
[EventTypes.Inspector]: { | ||
title: 'Inspector', | ||
sidebarTitle: 'Inspector logs', | ||
iconName: 'inspector', | ||
routeName: RouteName.Inspector, | ||
eventType: EventTypes.Inspector, | ||
}, | ||
[EventTypes.VarDump]: { | ||
title: 'Var dump', | ||
sidebarTitle: 'Var dump logs', | ||
iconName: 'var-dump', | ||
routeName: RouteName.VarDump, | ||
eventType: EventTypes.VarDump, | ||
}, | ||
[EventTypes.Monolog]: { | ||
title: 'Monolog', | ||
sidebarTitle: 'Monolog logs', | ||
iconName: 'monolog', | ||
routeName: RouteName.Monolog, | ||
eventType: EventTypes.Monolog, | ||
}, | ||
[EventTypes.RayDump]: { | ||
title: 'Ray dump', | ||
sidebarTitle: 'Ray dump logs', | ||
iconName: 'ray', | ||
routeName: RouteName.RayDump, | ||
eventType: EventTypes.RayDump, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.