From 3e323c06f38f95457e406da1707cc6b11c6208a1 Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Thu, 13 Mar 2025 18:40:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=9B=9E=E8=BD=A6=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/config/dev.ts | 4 +- core/core-frontend/flushbonading/index.js | 11 +- core/core-frontend/index.html | 24 +- core/core-frontend/mobile.html | 24 +- core/core-frontend/prettier.config.js | 35 +- core/core-frontend/src/api/aiComponent.ts | 2 +- core/core-frontend/src/style/mixin.less | 34 +- core/core-frontend/src/style/variable.less | 15 +- .../js/panel/common/common_table.ts | 8 +- core/core-frontend/tsconfig.json | 21 +- core/core-frontend/yarn.lock | 8232 +++++++++++++++++ 11 files changed, 8314 insertions(+), 96 deletions(-) create mode 100644 core/core-frontend/yarn.lock diff --git a/core/core-frontend/config/dev.ts b/core/core-frontend/config/dev.ts index 6300308..54e66e3 100644 --- a/core/core-frontend/config/dev.ts +++ b/core/core-frontend/config/dev.ts @@ -2,13 +2,13 @@ export default { server: { proxy: { '/api/f': { - target: 'http://localhost:8100', + target: 'http://192.168.1.16:8100', changeOrigin: true, rewrite: path => path.replace(/^\/api\/f/, '') }, // 使用 proxy 实例 '/api': { - target: 'http://localhost:8105', + target: 'http://192.168.1.16:8100', changeOrigin: true, rewrite: path => path.replace(/^\/api/, '') } diff --git a/core/core-frontend/flushbonading/index.js b/core/core-frontend/flushbonading/index.js index 81259a4..a72b726 100644 --- a/core/core-frontend/flushbonading/index.js +++ b/core/core-frontend/flushbonading/index.js @@ -1,8 +1,8 @@ import { WritableStream } from 'htmlparser2/lib/WritableStream' import fs from 'node:fs' -import { createRequire } from 'module'; -const require = createRequire(import.meta.url); -const pkg = require('../package.json'); +import { createRequire } from 'module' +const require = createRequire(import.meta.url) +const pkg = require('../package.json') const suffix = `${pkg.version}-${pkg.name}` const eleArr = [] @@ -10,7 +10,7 @@ const eleArr = [] function produceTag(obj, name) { eleArr.push({ name, - attributes: obj, + attributes: obj }) } const parserStream = new WritableStream({ @@ -79,6 +79,5 @@ htmlStream.pipe(parserStream).on('finish', () => { }) document.documentElement.insertBefore(head, document.querySelector('head'))` - fs.writeFile(`../dist/js/div_import_${suffix}.js`, templateJs, err => { - }) + fs.writeFile(`../dist/js/div_import_${suffix}.js`, templateJs, err => {}) }) diff --git a/core/core-frontend/index.html b/core/core-frontend/index.html index 3822848..a9eba0c 100644 --- a/core/core-frontend/index.html +++ b/core/core-frontend/index.html @@ -1,16 +1,14 @@ +
+ + + +