From bb7be5c912c59408fcbc4c675d9db42e20d9e355 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 14 Jan 2025 17:50:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=BC=8F=E6=B4=9E):=20=E5=BC=80=E6=BA=90?= =?UTF-8?q?=E7=89=88=E6=89=AB=E6=8F=8F=E5=87=BA=E7=9A=84=E6=BC=8F=E6=B4=9E?= =?UTF-8?q?=EF=BC=9A=E7=A1=AC=E7=BC=96=E7=A0=81API=E5=87=AD=E6=8D=AE=20Cre?= =?UTF-8?q?dential=20Management:=20Hardcoded=20API=20Credentials?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/flushbonading/index.js | 59 ----------------------- 1 file changed, 59 deletions(-) diff --git a/core/core-frontend/flushbonading/index.js b/core/core-frontend/flushbonading/index.js index 157407886a..7588badfdb 100644 --- a/core/core-frontend/flushbonading/index.js +++ b/core/core-frontend/flushbonading/index.js @@ -3,7 +3,6 @@ import fs from 'node:fs' import pkg from '../package.json' assert { type: "json" }; const suffix = `${pkg.version}-${pkg.name}` -let htmlStr = '' const eleArr = [] function produceTag(obj, name) { @@ -11,15 +10,6 @@ function produceTag(obj, name) { name, attributes: obj, }) - let innerProperty = '' - Object.entries(obj).forEach(([key, value]) => { - if (['href', 'src'].includes(key)) { - innerProperty += ` ${key}="https://de2.fit2cloud.com${value}" ` - } else { - innerProperty += value ? ` ${key}="${value}" ` : '' - } - }) - htmlStr += `\n<${name} crossorigin ${innerProperty}>` } const parserStream = new WritableStream({ onopentag(name, attributes) { @@ -37,52 +27,6 @@ const parserStream = new WritableStream({ const htmlStream = fs.createReadStream('../dist/panel.html') htmlStream.pipe(parserStream).on('finish', () => { - const template = ` - - - - - - - flushbonading - ${htmlStr} - - - -
- flushbonading -
-
-
-
- flushbonading -
- - - -` - const templateJs = `let head = document.createElement('head') let suffix = \`${suffix}\` @@ -133,9 +77,6 @@ htmlStream.pipe(parserStream).on('finish', () => { }) document.documentElement.insertBefore(head, document.querySelector('head'))` - fs.writeFile('../dist/demo.html', template, err => { - }) - fs.writeFile(`../dist/js/div_import_${suffix}.js`, templateJs, err => { }) })