-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b382f17
commit a87157e
Showing
111 changed files
with
34,286 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Publish canyon-uploader | ||
|
||
on: | ||
push: | ||
branches: [ "*" ] | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: pnpm install | ||
- run: pnpm --filter=canyon-uploader publish -f --no-git-checks --access=public --filter | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build and Deploy Vite Project | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev # 监听主分支的推送事件 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# 检查代码库 | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# 设置 Node.js 环境 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' # 根据项目需求选择 Node.js 版本 | ||
|
||
# 安装依赖 | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
# 运行构建命令 | ||
- name: Build Vite project | ||
run: pnpm run build:report && ls | ||
|
||
# 保存构建结果到工作空间 | ||
# - name: Upload build artifact | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: build-output | ||
# path: dist/ # 根据 Vite 的默认输出目录 | ||
|
||
# 如果需要部署,可以添加一个部署步骤,例如使用 GitHub Pages 或其他服务 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Local | ||
.DS_Store | ||
*.local | ||
*.log* | ||
|
||
# Dist | ||
node_modules | ||
dist/ | ||
|
||
# IDE | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
|
||
screenshots | ||
|
||
test-results | ||
|
||
.canyon_output | ||
.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rspack编写的istanbuk report仓库 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,229 @@ | ||
window["App.tsx"] = { | ||
"content": "import enUS from \"antd/es/locale/en_US\";\nimport jaJP from \"antd/es/locale/ja_JP\";\nimport zhCN from \"antd/es/locale/zh_CN\";\nimport { useRoutes } from \"react-router-dom\";\n\nimport routes from \"~react-pages\";\n\nconst languages = {\n cn: zhCN,\n en: enUS,\n ja: jaJP,\n};\n\nconst lng = (localStorage.getItem(\"language\") ||\n \"cn\") as keyof typeof languages;\n\nconst { darkAlgorithm } = theme;\nconst App = () => {\n const isDark = localStorage.getItem(\"theme\")\n ? localStorage.getItem(\"theme\") === \"dark\"\n : false;\n return (\n <div className={\"dark:text-white dark:text-opacity-85\"}>\n <ConfigProvider\n locale={languages[lng]}\n theme={{\n token: {\n colorPrimary: \"#0071c2\",\n },\n algorithm: isDark ? [darkAlgorithm] : [],\n }}\n >\n {useRoutes(routes)}\n </ConfigProvider>\n </div>\n );\n};\n\nexport default App;\n", | ||
"coverage": { | ||
"path": "App.tsx", | ||
"b": { | ||
"0": [ | ||
8, | ||
8 | ||
], | ||
"1": [ | ||
0, | ||
32 | ||
], | ||
"2": [ | ||
0, | ||
32 | ||
] | ||
}, | ||
"f": { | ||
"0": 32 | ||
}, | ||
"s": { | ||
"0": 8, | ||
"1": 8, | ||
"2": 8, | ||
"3": 8, | ||
"4": 32, | ||
"5": 32 | ||
}, | ||
"branchMap": { | ||
"0": { | ||
"loc": { | ||
"start": { | ||
"line": 14, | ||
"column": 13 | ||
}, | ||
"end": { | ||
"line": 15, | ||
"column": 6 | ||
} | ||
}, | ||
"type": "binary-expr", | ||
"locations": [ | ||
{ | ||
"start": { | ||
"line": 14, | ||
"column": 13 | ||
}, | ||
"end": { | ||
"line": 14, | ||
"column": 45 | ||
} | ||
}, | ||
{ | ||
"start": { | ||
"line": 15, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 15, | ||
"column": 6 | ||
} | ||
} | ||
], | ||
"line": 14 | ||
}, | ||
"1": { | ||
"loc": { | ||
"start": { | ||
"line": 19, | ||
"column": 17 | ||
}, | ||
"end": { | ||
"line": 21, | ||
"column": 11 | ||
} | ||
}, | ||
"type": "cond-expr", | ||
"locations": [ | ||
{ | ||
"start": { | ||
"line": 20, | ||
"column": 6 | ||
}, | ||
"end": { | ||
"line": 20, | ||
"column": 46 | ||
} | ||
}, | ||
{ | ||
"start": { | ||
"line": 21, | ||
"column": 6 | ||
}, | ||
"end": { | ||
"line": 21, | ||
"column": 11 | ||
} | ||
} | ||
], | ||
"line": 19 | ||
}, | ||
"2": { | ||
"loc": { | ||
"start": { | ||
"line": 30, | ||
"column": 21 | ||
}, | ||
"end": { | ||
"line": 30, | ||
"column": 50 | ||
} | ||
}, | ||
"type": "cond-expr", | ||
"locations": [ | ||
{ | ||
"start": { | ||
"line": 30, | ||
"column": 30 | ||
}, | ||
"end": { | ||
"line": 30, | ||
"column": 45 | ||
} | ||
}, | ||
{ | ||
"start": { | ||
"line": 30, | ||
"column": 48 | ||
}, | ||
"end": { | ||
"line": 30, | ||
"column": 50 | ||
} | ||
} | ||
], | ||
"line": 30 | ||
} | ||
}, | ||
"fnMap": { | ||
"0": { | ||
"name": "(anonymous_0)", | ||
"decl": { | ||
"start": { | ||
"line": 18, | ||
"column": 12 | ||
}, | ||
"end": { | ||
"line": 18, | ||
"column": 13 | ||
} | ||
}, | ||
"loc": { | ||
"start": { | ||
"line": 18, | ||
"column": 18 | ||
}, | ||
"end": { | ||
"line": 37, | ||
"column": 1 | ||
} | ||
}, | ||
"line": 18 | ||
} | ||
}, | ||
"statementMap": { | ||
"0": { | ||
"start": { | ||
"line": 8, | ||
"column": 18 | ||
}, | ||
"end": { | ||
"line": 12, | ||
"column": 1 | ||
} | ||
}, | ||
"1": { | ||
"start": { | ||
"line": 14, | ||
"column": 12 | ||
}, | ||
"end": { | ||
"line": 15, | ||
"column": 33 | ||
} | ||
}, | ||
"2": { | ||
"start": { | ||
"line": 17, | ||
"column": 26 | ||
}, | ||
"end": { | ||
"line": 17, | ||
"column": 31 | ||
} | ||
}, | ||
"3": { | ||
"start": { | ||
"line": 18, | ||
"column": 12 | ||
}, | ||
"end": { | ||
"line": 37, | ||
"column": 1 | ||
} | ||
}, | ||
"4": { | ||
"start": { | ||
"line": 19, | ||
"column": 17 | ||
}, | ||
"end": { | ||
"line": 21, | ||
"column": 11 | ||
} | ||
}, | ||
"5": { | ||
"start": { | ||
"line": 22, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 36, | ||
"column": 4 | ||
} | ||
} | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
packages/canyon-report/mock/dynamic-data/assets/icons/EpTopRight.tsx.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
window["assets/icons/EpTopRight.tsx"] = { | ||
"content": "// import React from 'react';\nimport type { SVGProps } from \"react\";\n\nexport function EpTopRight(props: SVGProps<SVGSVGElement>) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 1024 1024\"\n {...props}\n >\n <path\n fill=\"currentColor\"\n d=\"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z\"\n ></path>\n <path\n fill=\"currentColor\"\n d=\"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z\"\n ></path>\n </svg>\n );\n}\n", | ||
"coverage": { | ||
"path": "assets/icons/EpTopRight.tsx", | ||
"b": {}, | ||
"f": { | ||
"0": 0 | ||
}, | ||
"s": { | ||
"0": 0 | ||
}, | ||
"branchMap": {}, | ||
"fnMap": { | ||
"0": { | ||
"name": "EpTopRight", | ||
"decl": { | ||
"start": { | ||
"line": 4, | ||
"column": 16 | ||
}, | ||
"end": { | ||
"line": 4, | ||
"column": 26 | ||
} | ||
}, | ||
"loc": { | ||
"start": { | ||
"line": 4, | ||
"column": 59 | ||
}, | ||
"end": { | ||
"line": 23, | ||
"column": 1 | ||
} | ||
}, | ||
"line": 4 | ||
} | ||
}, | ||
"statementMap": { | ||
"0": { | ||
"start": { | ||
"line": 5, | ||
"column": 2 | ||
}, | ||
"end": { | ||
"line": 22, | ||
"column": 4 | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.