Skip to content

Commit

Permalink
chore: daily development
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Feb 2, 2025
1 parent 5292e8f commit 5294376
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions tools/canyon-reporter/lib/test2.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
a {
color: #0071c2;
}
a:hover {
color: #0071c2;
opacity: 0.8;
text-decoration: underline;
}
</style>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script src="https://unpkg.com/[email protected]/dayjs.min.js"></script>
<script src="https://unpkg.com/[email protected]/umd/react.development.js"></script>
Expand All @@ -23,6 +33,7 @@
<script type="text/babel">
const { createRoot } = ReactDOM;
const { useEffect,useState } = React;
const { ConfigProvider } = antd;
const dataSource = window.data;
const reportName = window.reportName;
const date = window.date;
Expand Down Expand Up @@ -63,15 +74,24 @@
return (
<div className={"p-[10px] pb-0"}>
<div style={{ minHeight: "calc(100vh - 50px)" }}>
<CanyonReport
name={reportName}
dataSource={dataSource.reduce((acc, cur) => {
acc[cur.path] = cur;
return acc;
}, {})}
onSelect={onSelect}
value={value}
/>
<ConfigProvider
theme={{
token: {
colorPrimary: "#0071c2",
},
// algorithm: isDark ? [darkAlgorithm] : [],
}}
>
<CanyonReport
name={reportName}
dataSource={dataSource.reduce((acc, cur) => {
acc[cur.path] = cur;
return acc;
}, {})}
onSelect={onSelect}
value={value}
/>
</ConfigProvider>
</div>
<footer
style={{
Expand Down

0 comments on commit 5294376

Please sign in to comment.