From 602fa0725da2118015b2d3b44f4d051452b184d4 Mon Sep 17 00:00:00 2001 From: Searchstars Date: Thu, 23 Jan 2025 23:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=AF=A6=E6=83=85=E5=88=9D?= =?UTF-8?q?=E6=AD=A5=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 32 +- quickapp.config.js | 20 +- src/components/DynShow/DynShow.ux | 108 +- .../FullScreenInput/FullScreenInput.ux | 2 +- src/components/RichText/RichText.ux | 0 src/components/SwitchBar/SwitchBar.ux | 2 +- src/components/TitleBar/TitleBar.ux | 2 +- src/components/Video/Video.ux | 35 +- src/manifest.json | 3 + .../app/features/dynamic/detail/detail.less | 45 + .../app/features/dynamic/detail/detail.ux | 39 +- src/pages/video/videodetail/videodetail.ux | 8 - webpack.config.js | 22 - yarn.lock | 4788 ++++++----------- 14 files changed, 1871 insertions(+), 3235 deletions(-) create mode 100644 src/components/RichText/RichText.ux delete mode 100644 webpack.config.js diff --git a/package.json b/package.json index 94ce123..c9aaf4f 100644 --- a/package.json +++ b/package.json @@ -28,29 +28,27 @@ }, "devDependencies": { "@aiot-toolkit/jsc": "^1.0.7", - "@commitlint/cli": "^17.3.0", - "@commitlint/config-conventional": "^17.3.0", + "@commitlint/cli": "^19.6.1", + "@commitlint/config-conventional": "^19.6.0", "aiot-toolkit": "2.0.4-beta.3", "babel-eslint": "^10.0.1", - "eslint": "^6.0.0", - "eslint-config-prettier": "^6.0.0", + "eslint": "^9.18.0", + "eslint-config-prettier": "^10.0.1", "eslint-import-resolver-node": "^0.3.7", "eslint-plugin-import": "^2.27.5", - "eslint-plugin-prettier": "^3.4.0", + "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-ux": "^0.0.4", - "husky": "^8.0.1", - "less": "^3.12.2", - "less-loader": "^6.2.0", - "lint-staged": "^8.2.1", - "postcss-html": "^1.3.0", + "husky": "^9.1.7", + "less": "^4.2.2", + "less-loader": "^12.2.0", + "lint-staged": "^15.4.1", + "postcss-html": "^1.8.0", "postcss-less": "^6.0.0", - "prettier": "^2.7.1", - "stylelint": "^14.5.3", - "stylelint-config-recess-order": "^3.0.0", - "stylelint-config-standard": "^25.0.0", - "stylelint-order": "^5.0.0", - "ts-loader": "^9.5.1", - "typescript": "^5.6.3", + "prettier": "^3.4.2", + "stylelint": "^16.13.2", + "stylelint-config-recess-order": "^6.0.0", + "stylelint-config-standard": "^37.0.0", + "stylelint-order": "^6.0.4", "ux-types": "^0.1.1" }, "dependencies": { diff --git a/quickapp.config.js b/quickapp.config.js index 9139e81..a201d1d 100644 --- a/quickapp.config.js +++ b/quickapp.config.js @@ -18,17 +18,25 @@ const buildInfoPath = path.resolve(__dirname, 'src/buildinfo.ts'); fs.writeFileSync(buildInfoPath, buildInfoContent, 'utf8'); module.exports = { + // 在toolkit2.0以及更高版本,这实际上是对rspack的配置 webpack: { module: { rules: [ { - test: /\.tsx?$/, - use: [ - { - loader: "ts-loader", + test: /\.ts$/, + exclude: [/node_modules/], + // 因为这实际上是针对rspack的配置,所以可以使用builtin:swc-loader + // 使用该loader可以大幅度提升typescript转换效率 + loader: 'builtin:swc-loader', + options: { + jsc: { + parser: { + syntax: 'typescript', + }, }, - ], - }, + }, + type: 'javascript/auto', + } ] }, resolve: { diff --git a/src/components/DynShow/DynShow.ux b/src/components/DynShow/DynShow.ux index 754d783..fe05d5b 100644 --- a/src/components/DynShow/DynShow.ux +++ b/src/components/DynShow/DynShow.ux @@ -1,34 +1,102 @@ - + @@ -78,5 +146,7 @@ export default { font-size: 20px; font-weight: 600; max-width: 100%; + max-height: 100px; + text-overflow: ellipsis; } \ No newline at end of file diff --git a/src/components/FullScreenInput/FullScreenInput.ux b/src/components/FullScreenInput/FullScreenInput.ux index 8c67caf..b203a6c 100644 --- a/src/components/FullScreenInput/FullScreenInput.ux +++ b/src/components/FullScreenInput/FullScreenInput.ux @@ -1,4 +1,4 @@ - +