Skip to content

Commit

Permalink
feat: update css
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Feb 14, 2024
1 parent c87a3a7 commit cd76f0d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/canyon-platform/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default defineConfig({
host: '0.0.0.0',
proxy: {
'^/graphql|^/api': {
target: 'http://10.139.166.57',
target: 'http://10.130.238.190',
changeOrigin: true,
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const IstanbulReport: FC<IstanbulReportProps> = ({
fileCoverage={fileCoverage}
fileContent={fileContent}
fileCodeChange={fileCodeChange}
theme={'dark'}
theme={theme}
/>
)
)}
Expand Down
1 change: 1 addition & 0 deletions packages/canyon-report/src/Report/components/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const Code:FC<{
fileCodeChange: number[];
theme:string
}> = ({ fileCoverage, fileContent:code, fileCodeChange,theme }) => {
console.log(theme)
// const code = `const a=1`
const [html, setHtml] = useState('');
const { lines } = coreFn(fileCoverage, code);
Expand Down
4 changes: 0 additions & 4 deletions packages/canyon-report/src/Report/loadcss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,6 @@ const cssCode = `
height: 48px;
}
html{
background-color: #1a1a1a;
}
`;
export const loadCssCode = () => {
const style = document.createElement('style');
Expand Down
4 changes: 0 additions & 4 deletions packages/canyon-report/src/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,3 @@
#canyon-report .push {
height: 48px;
}

html{
background-color: #1a1a1a;
}
2 changes: 1 addition & 1 deletion packages/canyon-report/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getDecode(str: string) {
}

const report = init(document.querySelector('#root') as any, {
theme:'dark',
theme:'light',
onSelectFile(path: string) {
return new Promise((resolve) => {
setTimeout(()=>{
Expand Down

0 comments on commit cd76f0d

Please sign in to comment.