diff --git a/packages/canyon-platform/src/assets/IBMPlexMono-SemiBold.woff2 b/packages/canyon-platform/src/assets/IBMPlexMono-SemiBold.woff2 deleted file mode 100644 index 7d272221..00000000 Binary files a/packages/canyon-platform/src/assets/IBMPlexMono-SemiBold.woff2 and /dev/null differ diff --git a/packages/canyon-platform/src/index.css b/packages/canyon-platform/src/index.css index 8f65cb77..faf63090 100644 --- a/packages/canyon-platform/src/index.css +++ b/packages/canyon-platform/src/index.css @@ -2,6 +2,8 @@ @tailwind components; @tailwind utilities; +/*canyon-report的样式*/ + @font-face { font-family: "IBMPlexMono"; src: url("./assets/IBMPlexMono-Regular.woff2"); @@ -12,9 +14,38 @@ .shiki > code { font-size: 12px; font-family: "IBMPlexMono"; - line-height: 20px; + line-height: 21px; +} + +.content-class-no-found { + background: #f6c6ce; +} + +.content-class-found { + background: #f6c6ce; +} + +.dark .content-class-no-found { + background: rgb(122, 84, 116); +} + +.dark .content-class-found { + background: rgb(122, 84, 116); +} + +.highlight { + color: red !important; } +.YourHighlightClass { + padding: 0 !important; + color: white !important; + background: rgb(244, 176, 27) !important; +} + +/*canyon-report的样式*/ + + .fullscreen-modal { position: fixed; top: 0; @@ -79,35 +110,6 @@ a:hover { visibility: unset; } -.content-class-no-found { - background: #f6c6ce; -} - -.content-class-found { - background: #f6c6ce; -} - -.dark .content-class-no-found { - background: rgb(122, 84, 116); -} - -.dark .content-class-found { - background: rgb(122, 84, 116); -} - -/*thead tr:nth-child(2){*/ -/* display: none !important;*/ -/*}*/ - -.highlight { - color: red !important; -} - -.YourHighlightClass { - padding: 0 !important; - color: white !important; - background: rgb(244, 176, 27) !important; -} .editable-cell { position: relative; diff --git a/packages/canyon-report/.eslintignore b/packages/canyon-report/.eslintignore index 8a34cc6a..d6e62c57 100644 --- a/packages/canyon-report/.eslintignore +++ b/packages/canyon-report/.eslintignore @@ -3,3 +3,4 @@ coverage dist lib/ html-spa.js +webpack.config.js diff --git a/packages/canyon-report/src/components/Report/components/FileCoverageDetail.tsx b/packages/canyon-report/src/components/Report/components/FileCoverageDetail.tsx index 684c8aa1..5f0542db 100644 --- a/packages/canyon-report/src/components/Report/components/FileCoverageDetail.tsx +++ b/packages/canyon-report/src/components/Report/components/FileCoverageDetail.tsx @@ -2,7 +2,7 @@ import React, { FC } from "react"; import { useEffect, useState } from "react"; import { createHighlighterCoreInstance } from "../../helpers/loadShiki"; -function jisuanColor(coun) { +function jisuanColor(coun: number) { if (coun === 0) { return "rgba(255, 0, 0, 0.5)"; } @@ -40,8 +40,8 @@ const FileCoverageDetail: FC<{ return (
{index + 1}
@@ -59,9 +59,9 @@ const FileCoverageDetail: FC<{ return (
code { font-size: 12px; - line-height: 24px; + line-height: 21px; } a{ diff --git a/packages/canyon-report/webpack.config.js b/packages/canyon-report/webpack.config.js index 64094219..7484ce5a 100755 --- a/packages/canyon-report/webpack.config.js +++ b/packages/canyon-report/webpack.config.js @@ -14,8 +14,7 @@ const config = { filename: "asset/[name].js", // 修改这里,指定输出的 js 文件路径和名称格式 }, devServer: { - // open: true, - // host: "localhost", + port: 3030, }, plugins: [ new HtmlWebpackPlugin({