Skip to content

Commit 271c104

Browse files
authored
Merge pull request #137 from buggregator/hotfix/130
Fixes in ray events
2 parents e826d19 + eece94a commit 271c104

File tree

10 files changed

+21
-19
lines changed

10 files changed

+21
-19
lines changed

src/entities/ray/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface RayContent {
2020
label: string,
2121
}
2222

23-
export interface RayContentCarbone {
23+
export interface RayContentCarbon {
2424
formatted: string,
2525
timestamp: number,
2626
timezone: string
@@ -144,7 +144,7 @@ export interface RayPayload {
144144
| RayContent
145145
| RayContentArray
146146
| RayContentObject
147-
| RayContentCarbone
147+
| RayContentCarbon
148148
| RayContentSQL
149149
| RayContentApplicationLog
150150
| RayContentEloquent

src/entities/ray/ui/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export * from './ray-frame';
2-
export * from './ray-carbone';
2+
export * from './ray-carbon';
33
export * from './ray-exception';
44
export * from './ray-file';
55
export * from './ray-trace';

src/entities/ray/ui/preview-card/preview-card.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { NormalizedEvent } from "~/src/shared/types";
44
import { PreviewCard } from "~/src/shared/ui";
55
import type {
66
EnhancedRayEvent,
7-
RayContentCarbone,
7+
RayContentCarbon,
88
RayContentCustom,
99
RayContentEloquent,
1010
RayContentApplicationLog,
@@ -25,7 +25,7 @@ import type {
2525
} from "../../types";
2626
import { RAY_EVENT_TYPES } from "../../types";
2727
import { RayApplicationLog } from "../ray-application-log";
28-
import { RayCarbone } from "../ray-carbone";
28+
import { RayCarbon } from "../ray-carbon";
2929
import { RayCustom } from "../ray-custom";
3030
import { RayEloquent } from "../ray-eloquent";
3131
import { RayEvent } from "../ray-event";
@@ -79,9 +79,9 @@ const COMPONENT_TYPE_MAP = {
7979
}),
8080
},
8181
[RAY_EVENT_TYPES.CARBON]: {
82-
view: RayCarbone,
82+
view: RayCarbon,
8383
getProps: (payload: RayPayload) => ({
84-
carbone: payload.content as RayContentCarbone,
84+
carbon: payload.content as RayContentCarbon,
8585
}),
8686
},
8787
[RAY_EVENT_TYPES.TRACE]: {
@@ -180,3 +180,5 @@ const COMPONENT_TYPE_MAP = {
180180
</template>
181181
</PreviewCard>
182182
</template>
183+
184+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as RayCarbon } from './ray-carbon.vue'

src/entities/ray/ui/ray-carbone/ray-carbone.stories.ts renamed to src/entities/ray/ui/ray-carbon/ray-carbon.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Meta, StoryObj } from "@storybook/vue3";
22
import { useRay } from "../../lib";
33
import { rayCarbonMock } from '../../mocks'
4-
import type { RayContentCarbone } from "../../types";
5-
import RayCarbon from './ray-carbone.vue';
4+
import type { RayContentCarbon } from "../../types";
5+
import RayCarbon from './ray-carbon.vue';
66

77
const { normalizeRayEvent } = useRay();
88

@@ -14,6 +14,6 @@ export default {
1414

1515
export const Default: StoryObj<typeof RayCarbon> = {
1616
args: {
17-
content: (normalizeRayEvent(rayCarbonMock).payload.payloads[0].content as RayContentCarbone)
17+
carbon: (normalizeRayEvent(rayCarbonMock).payload.payloads[0].content as RayContentCarbon)
1818
}
1919
}

src/entities/ray/ui/ray-carbone/ray-carbone.vue renamed to src/entities/ray/ui/ray-carbon/ray-carbon.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script lang="ts" setup>
22
import { TableBase, TableBaseRow } from "~/src/shared/ui";
3-
import type { RayContentCarbone } from "../../types";
3+
import type { RayContentCarbon } from "../../types";
44
55
type Props = {
6-
carbone: RayContentCarbone;
6+
carbon: RayContentCarbon;
77
};
88
99
defineProps<Props>();
@@ -13,13 +13,13 @@ defineProps<Props>();
1313
<div class="ray-carbon">
1414
<TableBase>
1515
<TableBaseRow title="Formatted">
16-
{{ carbone.formatted }}
16+
{{ carbon.formatted }}
1717
</TableBaseRow>
1818
<TableBaseRow title="Timezone">
19-
{{ carbone.timezone }}
19+
{{ carbon.timezone }}
2020
</TableBaseRow>
2121
<TableBaseRow title="Timestamp">
22-
{{ carbone.timestamp }}
22+
{{ carbon.timestamp }}
2323
</TableBaseRow>
2424
</TableBase>
2525
</div>

src/entities/ray/ui/ray-carbone/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/entities/ray/ui/ray-exception/ray-exception.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313

1414
export const Default: StoryObj<typeof RayException> = {
1515
args: {
16-
content: (normalizeRayEvent(rayExceptionMock).payload.payloads[0].content as RayContentException)
16+
exception: (normalizeRayEvent(rayExceptionMock).payload.payloads[0].content as RayContentException)
1717
}
1818
}
1919

src/entities/ray/ui/ray-file/ray-file.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const hasSnippets = computed(() =>
7171
}
7272
7373
.ray-file__icon {
74-
@apply w-5 h-4 border border-purple-300 shadow bg-white dark:bg-gray-600 py-1 rounded;
74+
@apply w-5 h-4 py-1 rounded;
7575
}
7676
7777
.ray-file__icon--collapsed {

src/entities/ray/ui/ray-view/ray-view.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export default {
1414

1515
export const Default: StoryObj<typeof RayViews> = {
1616
args: {
17-
content: (normalizeRayEvent(rayLaravelViewsMock).payload.payloads[0].content as RayContentView)
17+
view: (normalizeRayEvent(rayLaravelViewsMock).payload.payloads[0].content as RayContentView)
1818
}
1919
}

0 commit comments

Comments
 (0)