浏览代码

convert html2canvas and Inter

Konstantinos Kaloutas 2 年之前
父节点
当前提交
e04d0c498d
共有 43 个文件被更改,包括 45 次插入19 次删除
  1. 4 0
      gulpfile.js
  2. 2 0
      package.json
  3. 二进制
      resources/fonts/inter/Inter-Black.woff
  4. 二进制
      resources/fonts/inter/Inter-Black.woff2
  5. 二进制
      resources/fonts/inter/Inter-BlackItalic.woff
  6. 二进制
      resources/fonts/inter/Inter-BlackItalic.woff2
  7. 二进制
      resources/fonts/inter/Inter-Bold.woff
  8. 二进制
      resources/fonts/inter/Inter-Bold.woff2
  9. 二进制
      resources/fonts/inter/Inter-BoldItalic.woff
  10. 二进制
      resources/fonts/inter/Inter-BoldItalic.woff2
  11. 二进制
      resources/fonts/inter/Inter-ExtraBold.woff
  12. 二进制
      resources/fonts/inter/Inter-ExtraBold.woff2
  13. 二进制
      resources/fonts/inter/Inter-ExtraBoldItalic.woff
  14. 二进制
      resources/fonts/inter/Inter-ExtraBoldItalic.woff2
  15. 二进制
      resources/fonts/inter/Inter-ExtraLight.woff
  16. 二进制
      resources/fonts/inter/Inter-ExtraLight.woff2
  17. 二进制
      resources/fonts/inter/Inter-ExtraLightItalic.woff
  18. 二进制
      resources/fonts/inter/Inter-ExtraLightItalic.woff2
  19. 二进制
      resources/fonts/inter/Inter-Italic.woff
  20. 二进制
      resources/fonts/inter/Inter-Italic.woff2
  21. 二进制
      resources/fonts/inter/Inter-Light.woff
  22. 二进制
      resources/fonts/inter/Inter-Light.woff2
  23. 二进制
      resources/fonts/inter/Inter-LightItalic.woff
  24. 二进制
      resources/fonts/inter/Inter-LightItalic.woff2
  25. 二进制
      resources/fonts/inter/Inter-Medium.woff
  26. 二进制
      resources/fonts/inter/Inter-Medium.woff2
  27. 二进制
      resources/fonts/inter/Inter-MediumItalic.woff
  28. 二进制
      resources/fonts/inter/Inter-MediumItalic.woff2
  29. 二进制
      resources/fonts/inter/Inter-Regular.woff
  30. 二进制
      resources/fonts/inter/Inter-Regular.woff2
  31. 二进制
      resources/fonts/inter/Inter-SemiBold.woff
  32. 二进制
      resources/fonts/inter/Inter-SemiBold.woff2
  33. 二进制
      resources/fonts/inter/Inter-SemiBoldItalic.woff
  34. 二进制
      resources/fonts/inter/Inter-SemiBoldItalic.woff2
  35. 二进制
      resources/fonts/inter/Inter-Thin.woff
  36. 二进制
      resources/fonts/inter/Inter-Thin.woff2
  37. 二进制
      resources/fonts/inter/Inter-ThinItalic.woff
  38. 二进制
      resources/fonts/inter/Inter-ThinItalic.woff2
  39. 二进制
      resources/fonts/inter/Inter-italic.var.woff2
  40. 二进制
      resources/fonts/inter/Inter-roman.var.woff2
  41. 二进制
      resources/fonts/inter/Inter.var.woff2
  42. 0 19
      resources/js/html2canvas.min.js
  43. 39 0
      yarn.lock

+ 4 - 0
gulpfile.js

@@ -56,8 +56,12 @@ const common = {
         .pipe(gulp.dest(path.join(outputPath, 'js', 'excalidraw-assets'))),
       () => gulp.src('node_modules/katex/dist/katex.min.js')
         .pipe(gulp.dest(path.join(outputPath, 'js'))),
+      () => gulp.src('node_modules/html2canvas/dist/html2canvas.min.js')
+        .pipe(gulp.dest(path.join(outputPath, 'js'))),
       () => gulp.src('node_modules/@tabler/icons/iconfont/tabler-icons.min.css')
         .pipe(gulp.dest(path.join(outputPath, 'css'))),
+      () => gulp.src('node_modules/inter-ui/Inter (web)/*.*')
+        .pipe(gulp.dest(path.join(outputPath, 'fonts', 'inter'))),
       () => gulp.src([
         'node_modules/@tabler/icons/iconfont/fonts/**',
         'node_modules/katex/dist/fonts/*.woff2'

+ 2 - 0
package.json

@@ -115,7 +115,9 @@
         "grapheme-splitter": "1.0.4",
         "graphology": "0.20.0",
         "highlight.js": "10.4.1",
+        "html2canvas": "^1.4.1",
         "ignore": "5.1.8",
+        "inter-ui": "^3.19.3",
         "jszip": "3.8.0",
         "katex": "^0.16.7",
         "mldoc": "1.5.7",

二进制
resources/fonts/inter/Inter-Black.woff


二进制
resources/fonts/inter/Inter-Black.woff2


二进制
resources/fonts/inter/Inter-BlackItalic.woff


二进制
resources/fonts/inter/Inter-BlackItalic.woff2


二进制
resources/fonts/inter/Inter-Bold.woff


二进制
resources/fonts/inter/Inter-Bold.woff2


二进制
resources/fonts/inter/Inter-BoldItalic.woff


二进制
resources/fonts/inter/Inter-BoldItalic.woff2


二进制
resources/fonts/inter/Inter-ExtraBold.woff


二进制
resources/fonts/inter/Inter-ExtraBold.woff2


二进制
resources/fonts/inter/Inter-ExtraBoldItalic.woff


二进制
resources/fonts/inter/Inter-ExtraBoldItalic.woff2


二进制
resources/fonts/inter/Inter-ExtraLight.woff


二进制
resources/fonts/inter/Inter-ExtraLight.woff2


二进制
resources/fonts/inter/Inter-ExtraLightItalic.woff


二进制
resources/fonts/inter/Inter-ExtraLightItalic.woff2


二进制
resources/fonts/inter/Inter-Italic.woff


二进制
resources/fonts/inter/Inter-Italic.woff2


二进制
resources/fonts/inter/Inter-Light.woff


二进制
resources/fonts/inter/Inter-Light.woff2


二进制
resources/fonts/inter/Inter-LightItalic.woff


二进制
resources/fonts/inter/Inter-LightItalic.woff2


二进制
resources/fonts/inter/Inter-Medium.woff


二进制
resources/fonts/inter/Inter-Medium.woff2


二进制
resources/fonts/inter/Inter-MediumItalic.woff


二进制
resources/fonts/inter/Inter-MediumItalic.woff2


二进制
resources/fonts/inter/Inter-Regular.woff


二进制
resources/fonts/inter/Inter-Regular.woff2


二进制
resources/fonts/inter/Inter-SemiBold.woff


二进制
resources/fonts/inter/Inter-SemiBold.woff2


二进制
resources/fonts/inter/Inter-SemiBoldItalic.woff


二进制
resources/fonts/inter/Inter-SemiBoldItalic.woff2


二进制
resources/fonts/inter/Inter-Thin.woff


二进制
resources/fonts/inter/Inter-Thin.woff2


二进制
resources/fonts/inter/Inter-ThinItalic.woff


二进制
resources/fonts/inter/Inter-ThinItalic.woff2


二进制
resources/fonts/inter/Inter-italic.var.woff2


二进制
resources/fonts/inter/Inter-roman.var.woff2


二进制
resources/fonts/inter/Inter.var.woff2


文件差异内容过多而无法显示
+ 0 - 19
resources/js/html2canvas.min.js


+ 39 - 0
yarn.lock

@@ -1355,6 +1355,11 @@ balanced-match@^2.0.0:
   resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-2.0.0.tgz#dc70f920d78db8b858535795867bf48f820633d9"
   integrity sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==
 
+base64-arraybuffer@^1.0.2:
+  version "1.0.2"
+  resolved "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz#1c37589a7c4b0746e34bd1feb951da2df01c1bdc"
+  integrity sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==
+
 base64-js@^1.0.2, base64-js@^1.5.1:
   version "1.5.1"
   resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
@@ -2125,6 +2130,13 @@ css-declaration-sorter@^6.3.0:
   resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-6.3.1.tgz#be5e1d71b7a992433fb1c542c7a1b835e45682ec"
   integrity sha512-fBffmak0bPAnyqc/HO8C3n2sHrp9wcqQz6ES9koRF2/mLOVAx9zIQ3Y7R29sYCteTPqMCwns4WYQoCX91Xl3+w==
 
+css-line-break@^2.1.0:
+  version "2.1.0"
+  resolved "https://registry.npmjs.org/css-line-break/-/css-line-break-2.1.0.tgz#bfef660dfa6f5397ea54116bb3cb4873edbc4fa0"
+  integrity sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w==
+  dependencies:
+    utrie "^1.0.2"
+
 css-select@^4.1.3:
   version "4.3.0"
   resolved "https://registry.yarnpkg.com/css-select/-/css-select-4.3.0.tgz#db7129b2846662fd8628cfc496abb2b59e41529b"
@@ -3601,6 +3613,14 @@ html-tags@^3.1.0:
   resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.2.0.tgz#dbb3518d20b726524e4dd43de397eb0a95726961"
   integrity sha512-vy7ClnArOZwCnqZgvv+ddgHgJiAFXe3Ge9ML5/mBctVJoUoYPCdxVucOywjDARn6CVoh3dRSFdPHy2sX80L0Wg==
 
+html2canvas@^1.4.1:
+  version "1.4.1"
+  resolved "https://registry.npmjs.org/html2canvas/-/html2canvas-1.4.1.tgz#7cef1888311b5011d507794a066041b14669a543"
+  integrity sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==
+  dependencies:
+    css-line-break "^2.1.0"
+    text-segmentation "^1.0.3"
+
 htmlparser2@^3.10.0:
   version "3.10.1"
   resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f"
@@ -3707,6 +3727,11 @@ ini@^3.0.1:
   resolved "https://registry.yarnpkg.com/ini/-/ini-3.0.1.tgz#c76ec81007875bc44d544ff7a11a55d12294102d"
   integrity sha512-it4HyVAUTKBc6m8e1iXWvXSTdndF7HbdN713+kvLrymxTaU4AUBWrJ4vEooP+V7fexnVD3LKcBshjGGPefSMUQ==
 
+inter-ui@^3.19.3:
+  version "3.19.3"
+  resolved "https://registry.npmjs.org/inter-ui/-/inter-ui-3.19.3.tgz#cf4b4b6d30de8d5463e2462588654b325206488c"
+  integrity sha512-5FG9fjuYOXocIfjzcCBhICL5cpvwEetseL3FU6tP3d6Bn7g8wODhB+I9RNGRTizCT7CUG4GOK54OPxqq3msQgg==
+
 internal-slot@^1.0.3:
   version "1.0.3"
   resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c"
@@ -7105,6 +7130,13 @@ tar@^6.1.11:
     mkdirp "^1.0.3"
     yallist "^4.0.0"
 
+text-segmentation@^1.0.3:
+  version "1.0.3"
+  resolved "https://registry.npmjs.org/text-segmentation/-/text-segmentation-1.0.3.tgz#52a388159efffe746b24a63ba311b6ac9f2d7943"
+  integrity sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==
+  dependencies:
+    utrie "^1.0.2"
+
 thenby@^1.3.4:
   version "1.3.4"
   resolved "https://registry.yarnpkg.com/thenby/-/thenby-1.3.4.tgz#81581f6e1bb324c6dedeae9bfc28e59b1a2201cc"
@@ -7534,6 +7566,13 @@ util@^0.11.0:
   dependencies:
     inherits "2.0.3"
 
+utrie@^1.0.2:
+  version "1.0.2"
+  resolved "https://registry.npmjs.org/utrie/-/utrie-1.0.2.tgz#d42fe44de9bc0119c25de7f564a6ed1b2c87a645"
+  integrity sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==
+  dependencies:
+    base64-arraybuffer "^1.0.2"
+
 v8-compile-cache@^2.3.0:
   version "2.3.0"
   resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"

部分文件因为文件数量过多而无法显示