chore: Upgrade highlight.js to 10.4.1 (#1483)
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.18.5 to 10.4.1. - [Release notes](https://github.com/highlightjs/highlight.js/releases) - [Changelog](https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md) - [Commits](https://github.com/highlightjs/highlight.js/compare/9.18.5...10.4.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -3,14 +3,11 @@
|
||||
<button class="button small button--copy-code" @click="onCopy">
|
||||
{{ $t('COMPONENTS.CODE.BUTTON_TEXT') }}
|
||||
</button>
|
||||
<highlight-code :lang="lang">
|
||||
{{ script }}
|
||||
</highlight-code>
|
||||
<highlightjs :language="lang" :code="script" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* global bus */
|
||||
import 'highlight.js/styles/default.css';
|
||||
import copy from 'copy-text-to-clipboard';
|
||||
|
||||
|
||||
@@ -88,6 +88,6 @@ export default {
|
||||
|
||||
.website--code {
|
||||
margin: $space-normal auto;
|
||||
max-width: 60%;
|
||||
max-width: 70%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -8,15 +8,13 @@ import VueI18n from 'vue-i18n';
|
||||
import VueRouter from 'vue-router';
|
||||
import axios from 'axios';
|
||||
// Global Components
|
||||
import hljs from 'highlight.js';
|
||||
import Multiselect from 'vue-multiselect';
|
||||
import WootSwitch from 'components/ui/Switch';
|
||||
import WootWizard from 'components/ui/Wizard';
|
||||
import { sync } from 'vuex-router-sync';
|
||||
import Vuelidate from 'vuelidate';
|
||||
import VTooltip from 'v-tooltip';
|
||||
import VueHighlightJS from 'vue-highlight.js';
|
||||
import javascript from 'highlight.js/lib/languages/javascript';
|
||||
|
||||
import WootUiKit from '../dashboard/components';
|
||||
import App from '../dashboard/App';
|
||||
import i18n from '../dashboard/i18n';
|
||||
@@ -38,11 +36,7 @@ Vue.use(VueI18n);
|
||||
Vue.use(WootUiKit);
|
||||
Vue.use(Vuelidate);
|
||||
Vue.use(VTooltip);
|
||||
Vue.use(VueHighlightJS, {
|
||||
languages: {
|
||||
javascript,
|
||||
},
|
||||
});
|
||||
Vue.use(hljs.vuePlugin);
|
||||
|
||||
Vue.component('multiselect', Multiselect);
|
||||
Vue.component('woot-switch', WootSwitch);
|
||||
|
||||
Reference in New Issue
Block a user