Răsfoiți Sursa

update hljs 10 > 11.7, fix perf issue in demo presentation caused by auto lang detection

hakimel 2 ani în urmă
părinte
comite
b648a56009

+ 2 - 2
demo.html

@@ -86,7 +86,7 @@
 
 
 				<section data-auto-animate>
 				<section data-auto-animate>
 					<h2 data-id="code-title">Pretty Code</h2>
 					<h2 data-id="code-title">Pretty Code</h2>
-					<pre data-id="code-animation"><code class="hljs" data-trim data-line-numbers>
+					<pre data-id="code-animation"><code class="hljs javascript" data-trim data-line-numbers>
 						import React, { useState } from 'react';
 						import React, { useState } from 'react';
 
 
 						function Example() {
 						function Example() {
@@ -102,7 +102,7 @@
 
 
 				<section data-auto-animate>
 				<section data-auto-animate>
 					<h2 data-id="code-title">With animations</h2>
 					<h2 data-id="code-title">With animations</h2>
-					<pre data-id="code-animation"><code class="hljs" data-trim data-line-numbers="|4,8-11|17|22-24"><script type="text/template">
+					<pre data-id="code-animation"><code class="hljs javascript" data-trim data-line-numbers="|4,8-11|17|22-24"><script type="text/template">
 						import React, { useState } from 'react';
 						import React, { useState } from 'react';
 
 
 						function Example() {
 						function Example() {

+ 8 - 8
package-lock.json

@@ -28,7 +28,7 @@
         "gulp-header": "^2.0.9",
         "gulp-header": "^2.0.9",
         "gulp-tap": "^2.0.0",
         "gulp-tap": "^2.0.0",
         "gulp-zip": "^4.2.0",
         "gulp-zip": "^4.2.0",
-        "highlight.js": "^10.0.3",
+        "highlight.js": "^11.7.0",
         "marked": "^4.0.12",
         "marked": "^4.0.12",
         "node-qunit-puppeteer": "^2.1.2",
         "node-qunit-puppeteer": "^2.1.2",
         "qunit": "^2.19.3",
         "qunit": "^2.19.3",
@@ -5292,12 +5292,12 @@
       }
       }
     },
     },
     "node_modules/highlight.js": {
     "node_modules/highlight.js": {
-      "version": "10.7.2",
-      "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.2.tgz",
-      "integrity": "sha512-oFLl873u4usRM9K63j4ME9u3etNF0PLiJhSQ8rdfuL51Wn3zkD6drf9ZW0dOzjnZI22YYG24z30JcmfCZjMgYg==",
+      "version": "11.7.0",
+      "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.7.0.tgz",
+      "integrity": "sha512-1rRqesRFhMO/PRF+G86evnyJkCgaZFOI+Z6kdj15TA18funfoqJXvgPCLSf0SWq3SRfg1j3HlDs8o4s3EGq1oQ==",
       "dev": true,
       "dev": true,
       "engines": {
       "engines": {
-        "node": "*"
+        "node": ">=12.0.0"
       }
       }
     },
     },
     "node_modules/homedir-polyfill": {
     "node_modules/homedir-polyfill": {
@@ -14197,9 +14197,9 @@
       }
       }
     },
     },
     "highlight.js": {
     "highlight.js": {
-      "version": "10.7.2",
-      "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.2.tgz",
-      "integrity": "sha512-oFLl873u4usRM9K63j4ME9u3etNF0PLiJhSQ8rdfuL51Wn3zkD6drf9ZW0dOzjnZI22YYG24z30JcmfCZjMgYg==",
+      "version": "11.7.0",
+      "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.7.0.tgz",
+      "integrity": "sha512-1rRqesRFhMO/PRF+G86evnyJkCgaZFOI+Z6kdj15TA18funfoqJXvgPCLSf0SWq3SRfg1j3HlDs8o4s3EGq1oQ==",
       "dev": true
       "dev": true
     },
     },
     "homedir-polyfill": {
     "homedir-polyfill": {

+ 1 - 1
package.json

@@ -49,7 +49,7 @@
     "gulp-header": "^2.0.9",
     "gulp-header": "^2.0.9",
     "gulp-tap": "^2.0.0",
     "gulp-tap": "^2.0.0",
     "gulp-zip": "^4.2.0",
     "gulp-zip": "^4.2.0",
-    "highlight.js": "^10.0.3",
+    "highlight.js": "^11.7.0",
     "marked": "^4.0.12",
     "marked": "^4.0.12",
     "node-qunit-puppeteer": "^2.1.2",
     "node-qunit-puppeteer": "^2.1.2",
     "qunit": "^2.19.3",
     "qunit": "^2.19.3",

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/highlight/highlight.esm.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/highlight/highlight.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/markdown/markdown.esm.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/markdown/markdown.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/notes/notes.esm.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/notes/notes.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/search/search.esm.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
plugin/search/search.js


Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff