Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Feb 15, 2024
1 parent d506019 commit 4620ce1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions packages/canyon-platform/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { Outlet, useLocation, useNavigate } from 'react-router-dom';

import book from '../assets/book.svg';
import logoSvg from '../assets/logo.svg';
import lightLogoSvg from '../assets/light-logo.svg'
import AppFooter from '../components/app/footer.tsx';
import { MeDocument } from '../helpers/backend/gen/graphql.ts';
import { genBreadcrumbItems } from '../layouts/genBreadcrumbItems.tsx';
Expand Down Expand Up @@ -132,7 +133,7 @@ function Index() {
nav(`/`);
}}
>
<img className={'w-[30px] mr-[8px]'} src={logoSvg} alt='' />
<img className={'w-[30px] mr-[8px]'} src={localStorage.getItem('theme')==='dark'?lightLogoSvg:logoSvg} alt='' />
Canyon
</Title>

Expand Down Expand Up @@ -169,7 +170,7 @@ function Index() {
}}
selectedKeys={[selectedKey]}
items={items}
className={''}
className={'dark:bg-[#151718]'}
style={{ flex: '1' }}
/>

Expand All @@ -191,7 +192,7 @@ function Index() {
</div>
}
mainContent={
<div className={'flex-1 bg-[#fbfcfd] dark:bg-[#151718] min-h-[100vh]'}>
<div className={'flex-1 bg-[#fbfcfd] dark:bg-[#0c0d0e] min-h-[100vh]'}>
<div className={'m-auto max-w-[1250px]'}>
<div>
<Breadcrumb className={'pt-3 pb-3 pl-6'} items={genBreadcrumbItems(loc.pathname)} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const gridStyle: any = {
const Settings = () => {
const { t } = useTranslation();
return (
<div className={'px-6 dark:bg-black'}>
<div className={'px-6'}>
<Title level={2} className={'flex items-center gap-3'}>
<SettingOutlined className={'text-[#687076] text-[32px]'} />
<span>{t('menus.settings')}</span>
Expand Down
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.128.124.139',
target: 'http://10.139.132.150',
changeOrigin: true,
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/canyon-report/src/Report/loadcss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const cssCode = `
#canyon-report.dark{
color: white;
background-color: #1a1a1a;
background-color: #151718;
}
#canyon-report .small {
Expand Down
2 changes: 1 addition & 1 deletion packages/canyon-report/src/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#canyon-report.dark{
color: white;
background-color: #1a1a1a;
background-color: #151718;
}

#canyon-report .small {
Expand Down

0 comments on commit 4620ce1

Please sign in to comment.