Skip to content

Commit 6a1aa23

Browse files
committed
Specify cssPath for code highlight
Otherwise attempts to use CDN
1 parent e7f163c commit 6a1aa23

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Frontend/src/App.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import PageFooter from "./components/PageFooter.vue";
55
import PageHeader from "./components/PageHeader.vue";
66
import "bootstrap";
77
import { useServiceControlUrls } from "@/composables/serviceServiceControlUrls";
8-
import "highlight.js/styles/github-dark.css";
98
import { useServiceControl } from "@/composables/serviceServiceControl";
109
import LicenseNotifications from "@/components/LicenseNotifications.vue";
1110
import BackendChecksNotifications from "@/components/BackendChecksNotifications.vue";

src/Frontend/src/components/BackendChecksNotifications.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { computed, watch } from "vue";
33
import { useRouter } from "vue-router";
44
import "bootstrap";
55
import { monitoringUrl, serviceControlUrl, useIsMonitoringDisabled } from "@/composables/serviceServiceControlUrls";
6-
import "highlight.js/styles/github-dark.css";
76
import { monitoringConnectionState, connectionState, environment } from "@/composables/serviceServiceControl";
87
import routeLinks from "@/router/routeLinks";
98
import { useShowToast } from "@/composables/toast";
@@ -53,5 +52,5 @@ watch(
5352
);
5453
</script>
5554
<template>
56-
<div></div>
55+
<template></template>
5756
</template>

src/Frontend/src/components/LicenseNotifications.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ onMounted(async () => {
6161
});
6262
</script>
6363
<template>
64-
<div></div>
64+
<template></template>
6565
</template>

src/Frontend/src/mount.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import VueTippy from "vue-tippy";
66
import { createPinia } from "pinia";
77
import SimpleTypeahead from "vue3-simple-typeahead";
88
import { createVCodeBlock } from "@wdns/vue-code-block";
9+
import "highlight.js/styles/github-dark.css";
910

1011
const toastOptions: PluginOptions = {
1112
position: POSITION.BOTTOM_RIGHT,
@@ -25,6 +26,7 @@ export function mount({ router }: { router: Router }) {
2526

2627
const VCodeBlock = createVCodeBlock({
2728
theme: "github-dark",
29+
cssPath: "highlight.js/styles/github-dark.css",
2830
highlightjs: true,
2931
});
3032

0 commit comments

Comments
 (0)