-
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
Allen Zhang (张涛)
committed
Oct 8, 2024
1 parent
163d052
commit fb7e562
Showing
139 changed files
with
30,145 additions
and
2,321 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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.