-
Notifications
You must be signed in to change notification settings - Fork 26
Refactor message tabs views into separate components #2274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Otherwise attempts to use CDN
import PageHeader from "./components/PageHeader.vue"; | ||
import "bootstrap"; | ||
import { useServiceControlUrls } from "@/composables/serviceServiceControlUrls"; | ||
import "highlight.js/styles/github-dark.css"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is moved to the mount.ts
import { useRouter } from "vue-router"; | ||
import "bootstrap"; | ||
import { monitoringUrl, serviceControlUrl, useIsMonitoringDisabled } from "@/composables/serviceServiceControlUrls"; | ||
import "highlight.js/styles/github-dark.css"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
); | ||
</script> | ||
<template> | ||
<div></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed empty divs
}); | ||
</script> | ||
<template> | ||
<div></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed empty divs
<div v-if="panel === 3 && failedMessage.bodyUnavailable" class="alert alert-info">Message body unavailable.</div> | ||
<FlowDiagram v-if="panel === 4" :conversation-id="failedMessage.conversationId" :message-id="id"></FlowDiagram> | ||
<StackTraceView v-if="panel === 1" :message="failedMessage" /> | ||
<BodyView v-if="panel === 2" :message="failedMessage" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved "message body" to be 2nd tab
|
||
const VCodeBlock = createVCodeBlock({ | ||
theme: "github-dark", | ||
cssPath: "highlight.js/styles/github-dark.css", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed, otherwise the highligh.js lib attempts to contact a CDN
</script> | ||
|
||
<template> | ||
<VCodeBlock :code="props.message.exception.stack_trace" lang="csharp"></VCodeBlock> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be csharp highlighted, given that it's a stack trace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no highlighter mode for stack traces, and c# did not look bad, so I went with that one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would plain text be better then?
This PR refactors the tabs views for the message to be their components