Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Oct 8, 2024
1 parent 163d052 commit fb7e562
Show file tree
Hide file tree
Showing 139 changed files with 30,145 additions and 2,321 deletions.
130 changes: 65 additions & 65 deletions packages/canyon-report/index.html

Large diffs are not rendered by default.

229 changes: 229 additions & 0 deletions packages/canyon-report/mock/dynamic-data/App.tsx.js
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
}
}
}
}
}
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
}
}
}
}
}
Loading

0 comments on commit fb7e562

Please sign in to comment.