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:
Pranav Raj S 2020-12-05 01:22:16 +05:30 committed by GitHub
parent 5e190aad3c
commit c87cdf25c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 51 deletions

View file

@ -3,14 +3,11 @@
<button class="button small button--copy-code" @click="onCopy"> <button class="button small button--copy-code" @click="onCopy">
{{ $t('COMPONENTS.CODE.BUTTON_TEXT') }} {{ $t('COMPONENTS.CODE.BUTTON_TEXT') }}
</button> </button>
<highlight-code :lang="lang"> <highlightjs :language="lang" :code="script" />
{{ script }}
</highlight-code>
</div> </div>
</template> </template>
<script> <script>
/* global bus */
import 'highlight.js/styles/default.css'; import 'highlight.js/styles/default.css';
import copy from 'copy-text-to-clipboard'; import copy from 'copy-text-to-clipboard';

View file

@ -88,6 +88,6 @@ export default {
.website--code { .website--code {
margin: $space-normal auto; margin: $space-normal auto;
max-width: 60%; max-width: 70%;
} }
</style> </style>

View file

@ -8,15 +8,13 @@ import VueI18n from 'vue-i18n';
import VueRouter from 'vue-router'; import VueRouter from 'vue-router';
import axios from 'axios'; import axios from 'axios';
// Global Components // Global Components
import hljs from 'highlight.js';
import Multiselect from 'vue-multiselect'; import Multiselect from 'vue-multiselect';
import WootSwitch from 'components/ui/Switch'; import WootSwitch from 'components/ui/Switch';
import WootWizard from 'components/ui/Wizard'; import WootWizard from 'components/ui/Wizard';
import { sync } from 'vuex-router-sync'; import { sync } from 'vuex-router-sync';
import Vuelidate from 'vuelidate'; import Vuelidate from 'vuelidate';
import VTooltip from 'v-tooltip'; 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 WootUiKit from '../dashboard/components';
import App from '../dashboard/App'; import App from '../dashboard/App';
import i18n from '../dashboard/i18n'; import i18n from '../dashboard/i18n';
@ -38,11 +36,7 @@ Vue.use(VueI18n);
Vue.use(WootUiKit); Vue.use(WootUiKit);
Vue.use(Vuelidate); Vue.use(Vuelidate);
Vue.use(VTooltip); Vue.use(VTooltip);
Vue.use(VueHighlightJS, { Vue.use(hljs.vuePlugin);
languages: {
javascript,
},
});
Vue.component('multiselect', Multiselect); Vue.component('multiselect', Multiselect);
Vue.component('woot-switch', WootSwitch); Vue.component('woot-switch', WootSwitch);

View file

@ -44,7 +44,8 @@ class Channel::WebWidget < ApplicationRecord
end end
def web_widget_script def web_widget_script
"<script> "
<script>
(function(d,t) { (function(d,t) {
var BASE_URL=\"#{ENV.fetch('FRONTEND_URL', '')}\"; var BASE_URL=\"#{ENV.fetch('FRONTEND_URL', '')}\";
var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
@ -57,7 +58,8 @@ class Channel::WebWidget < ApplicationRecord
}) })
} }
})(document,\"script\"); })(document,\"script\");
</script>" </script>
"
end end
def create_contact_inbox def create_contact_inbox

View file

@ -24,7 +24,7 @@
"date-fns": "^2.16.1", "date-fns": "^2.16.1",
"dotenv": "^8.0.0", "dotenv": "^8.0.0",
"foundation-sites": "~6.5.3", "foundation-sites": "~6.5.3",
"highlight.js": "~9.18.5", "highlight.js": "~10.4.1",
"ionicons": "~2.0.1", "ionicons": "~2.0.1",
"js-cookie": "^2.2.1", "js-cookie": "^2.2.1",
"lodash.groupby": "^4.6.0", "lodash.groupby": "^4.6.0",
@ -40,7 +40,6 @@
"vue-chartjs": "^3.4.2", "vue-chartjs": "^3.4.2",
"vue-clickaway": "~2.1.0", "vue-clickaway": "~2.1.0",
"vue-color": "^2.7.1", "vue-color": "^2.7.1",
"vue-highlight.js": "^3.1.0",
"vue-i18n": "~5.0.3", "vue-i18n": "~5.0.3",
"vue-loader": "^15.7.0", "vue-loader": "^15.7.0",
"vue-multiselect": "~2.1.6", "vue-multiselect": "~2.1.6",

View file

@ -3747,11 +3747,6 @@ detect-file@^1.0.0:
resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7" resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7"
integrity sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc= integrity sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=
detect-indent@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d"
integrity sha1-OHHMCmoALow+Wzz38zYmRnXwa50=
detect-newline@^3.0.0: detect-newline@^3.0.0:
version "3.1.0" version "3.1.0"
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
@ -5228,10 +5223,10 @@ hex-color-regex@^1.1.0:
resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e" resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ== integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==
highlight.js@~9.18.5: highlight.js@~10.4.1:
version "9.18.5" version "10.4.1"
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.5.tgz#d18a359867f378c138d6819edfc2a8acd5f29825" resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.4.1.tgz#d48fbcf4a9971c4361b3f95f302747afe19dbad0"
integrity sha512-a5bFyofd/BHCX52/8i8uJkjr9DYwXIPnM/plwI6W7ezItLGqzt7X2G2nXuYSfsIJdkwwj/g9DG1LkcGJI/dDoA== integrity sha512-yR5lWvNz7c85OhVAEAeFhVCc/GV4C30Fjzc/rCP0aCWzc1UUOPUk55dK/qdwTZHBvMZo+eZ2jpk62ndX/xMFlg==
hmac-drbg@^1.0.0: hmac-drbg@^1.0.0:
version "1.0.1" version "1.0.1"
@ -9238,14 +9233,6 @@ redent@^1.0.0:
indent-string "^2.1.0" indent-string "^2.1.0"
strip-indent "^1.0.1" strip-indent "^1.0.1"
redent@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa"
integrity sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=
dependencies:
indent-string "^3.0.0"
strip-indent "^2.0.0"
reduce-css-calc@^2.1.6: reduce-css-calc@^2.1.6:
version "2.1.7" version "2.1.7"
resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-2.1.7.tgz#1ace2e02c286d78abcd01fd92bfe8097ab0602c2" resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-2.1.7.tgz#1ace2e02c286d78abcd01fd92bfe8097ab0602c2"
@ -10310,11 +10297,6 @@ strip-indent@^1.0.1:
dependencies: dependencies:
get-stdin "^4.0.1" get-stdin "^4.0.1"
strip-indent@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68"
integrity sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=
strip-json-comments@^2.0.0: strip-json-comments@^2.0.0:
version "2.0.1" version "2.0.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
@ -10718,7 +10700,7 @@ tsconfig@^7.0.0:
strip-bom "^3.0.0" strip-bom "^3.0.0"
strip-json-comments "^2.0.0" strip-json-comments "^2.0.0"
tslib@^1.9.0, tslib@^1.9.3: tslib@^1.9.0:
version "1.11.1" version "1.11.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35"
integrity sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA== integrity sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==
@ -11062,15 +11044,6 @@ vue-eslint-parser@^7.0.0:
esquery "^1.0.1" esquery "^1.0.1"
lodash "^4.17.15" lodash "^4.17.15"
vue-highlight.js@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/vue-highlight.js/-/vue-highlight.js-3.1.0.tgz#87b60b4931fd310b318f2b2c9116fe71b69dd053"
integrity sha512-i55SERtdV0CYQppGo29iT6NOq+oOenOKVwkLWZRt7bSynbsQoj/e8GJy/5xL1s5OOYObC/CxA39bRadVyPQt1A==
dependencies:
detect-indent "^5.0.0"
redent "^2.0.0"
tslib "^1.9.3"
vue-hot-reload-api@^2.3.0: vue-hot-reload-api@^2.3.0:
version "2.3.4" version "2.3.4"
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2" resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"