lsc 7 mēneši atpakaļ
vecāks
revīzija
105c96bbfd

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.77d14782ec78866cd4f33516e7e11806.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.99ecd68f0ea1b548f2f6.js></script><script type=text/javascript src=./static/js/app.5a3ef3bb92ad2397e981.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.0aeb1946d6fb99ae5c765602e74d5157.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.a82b79982b082928b294.js></script><script type=text/javascript src=./static/js/app.8796d3b97adc2f005b36.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/app.0aeb1946d6fb99ae5c765602e74d5157.css


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/app.0aeb1946d6fb99ae5c765602e74d5157.css.map


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.8796d3b97adc2f005b36.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.8796d3b97adc2f005b36.js.map


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/manifest.571c38d63f24b1ae9e16.js.map


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/vendor.a82b79982b082928b294.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/vendor.a82b79982b082928b294.js.map


+ 41 - 0
package-lock.json

@@ -43,6 +43,7 @@
         "qrcodejs2": "^0.0.2",
         "qs": "^6.10.1",
         "relation-graph": "^1.1.0",
+        "turndown": "^7.2.0",
         "v-viewer": "^1.6.4",
         "vant": "^2.12.10",
         "vue": "^2.5.2",
@@ -194,6 +195,11 @@
         "@jridgewell/sourcemap-codec": "^1.4.14"
       }
     },
+    "node_modules/@mixmark-io/domino": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmmirror.com/@mixmark-io/domino/-/domino-2.2.0.tgz",
+      "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw=="
+    },
     "node_modules/@npmcli/fs": {
       "version": "1.1.1",
       "resolved": "https://registry.npmmirror.com/@npmcli/fs/-/fs-1.1.1.tgz",
@@ -16743,6 +16749,14 @@
         "node": "*"
       }
     },
+    "node_modules/turndown": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmmirror.com/turndown/-/turndown-7.2.0.tgz",
+      "integrity": "sha512-eCZGBN4nNNqM9Owkv9HAtWRYfLA4h909E/WGAWWBpmB275ehNhZyk87/Tpvjbp0jjNl9XwCsbe6bm6CqFsgD+A==",
+      "dependencies": {
+        "@mixmark-io/domino": "^2.2.0"
+      }
+    },
     "node_modules/tweetnacl": {
       "version": "0.14.5",
       "resolved": "https://registry.npmmirror.com/tweetnacl/-/tweetnacl-0.14.5.tgz",
@@ -19327,6 +19341,11 @@
         "@jridgewell/sourcemap-codec": "^1.4.14"
       }
     },
+    "@mixmark-io/domino": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmmirror.com/@mixmark-io/domino/-/domino-2.2.0.tgz",
+      "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw=="
+    },
     "@npmcli/fs": {
       "version": "1.1.1",
       "resolved": "https://registry.npmmirror.com/@npmcli/fs/-/fs-1.1.1.tgz",
@@ -21807,6 +21826,7 @@
         "script-loader": "^0.7.2",
         "semver": "^5.3.0",
         "shelljs": "^0.7.6",
+        "turndown": "*",
         "uglifyjs-webpack-plugin": "^1.1.1",
         "url-loader": "^0.5.9",
         "v-viewer": "^1.6.4",
@@ -21919,6 +21939,11 @@
             "@jridgewell/sourcemap-codec": "^1.4.14"
           }
         },
+        "@mixmark-io/domino": {
+          "version": "2.2.0",
+          "resolved": "https://registry.npmmirror.com/@mixmark-io/domino/-/domino-2.2.0.tgz",
+          "integrity": "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw=="
+        },
         "@npmcli/fs": {
           "version": "1.1.1",
           "resolved": "https://registry.npmmirror.com/@npmcli/fs/-/fs-1.1.1.tgz",
@@ -35523,6 +35548,14 @@
             "safe-buffer": "^5.0.1"
           }
         },
+        "turndown": {
+          "version": "7.2.0",
+          "resolved": "https://registry.npmmirror.com/turndown/-/turndown-7.2.0.tgz",
+          "integrity": "sha512-eCZGBN4nNNqM9Owkv9HAtWRYfLA4h909E/WGAWWBpmB275ehNhZyk87/Tpvjbp0jjNl9XwCsbe6bm6CqFsgD+A==",
+          "requires": {
+            "@mixmark-io/domino": "^2.2.0"
+          }
+        },
         "tweetnacl": {
           "version": "0.14.5",
           "resolved": "https://registry.npmmirror.com/tweetnacl/-/tweetnacl-0.14.5.tgz",
@@ -48768,6 +48801,14 @@
         "safe-buffer": "^5.0.1"
       }
     },
+    "turndown": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmmirror.com/turndown/-/turndown-7.2.0.tgz",
+      "integrity": "sha512-eCZGBN4nNNqM9Owkv9HAtWRYfLA4h909E/WGAWWBpmB275ehNhZyk87/Tpvjbp0jjNl9XwCsbe6bm6CqFsgD+A==",
+      "requires": {
+        "@mixmark-io/domino": "^2.2.0"
+      }
+    },
     "tweetnacl": {
       "version": "0.14.5",
       "resolved": "https://registry.npmmirror.com/tweetnacl/-/tweetnacl-0.14.5.tgz",

+ 1 - 0
package.json

@@ -45,6 +45,7 @@
     "qrcodejs2": "^0.0.2",
     "qs": "^6.10.1",
     "relation-graph": "^1.1.0",
+    "turndown": "^7.2.0",
     "v-viewer": "^1.6.4",
     "vant": "^2.12.10",
     "vue": "^2.5.2",

+ 6 - 4
src/components/pages/aiAddCourse/addCourse.vue

@@ -6953,6 +6953,7 @@ import aiCreateVideoDialog from './aiCreateVideoDialog.vue'
 import wpdf from "../test/file/wPdf2.vue";
 import wOffice from "../test/file/wOffice.vue";
 import htmlDocx from "html-docx-js/dist/html-docx";
+import TurndownService from 'turndown';
 
 var OpenCC = require("opencc-js");
 let converter = OpenCC.Converter({
@@ -15403,16 +15404,17 @@ export default {
     },
     getPaste2() {
       let iframe = document.querySelectorAll(".interIframe")[0];
+      const turndownService = new TurndownService();
 
       let confirm_next_step = iframe ? iframe.contentWindow.confirm_next_step : '';
       let work_area_text = iframe ? iframe.contentWindow.work_area_text : '';
       if(confirm_next_step){
-        this.courseText += confirm_next_step
+        this.courseText += turndownService.turndown(confirm_next_step)
         iframe.contentWindow.confirm_next_step = ''
       }
       if(work_area_text && work_area_text.aiContent){
-        this.courseText += work_area_text.aiContent
-        iframe.contentWindow.app.work_area_text = ''
+        this.courseText += turndownService.turndown(work_area_text.aiContent)
+        iframe.contentWindow.work_area_text = ''
       }
     },
     setCover() {
@@ -22527,7 +22529,7 @@ ${msg}
     // }, 1000);
     this.pasteTimer = setInterval(() => {
       this.getPaste2();
-    }, 1000);
+    }, 500);
     setTimeout(() => {
       // this.selectAllType();
 

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels