Skip to content

Commit

Permalink
feat: add rank
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed May 30, 2024
1 parent 445f348 commit 74add08
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/canyon-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-fast-marquee": "^1.6.4",
"react-highlight-words": "^0.20.0",
"react-i18next": "^14.0.5",
"swr": "^2.2.5"
Expand Down
1 change: 1 addition & 0 deletions packages/canyon-platform/src/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Generated by unplugin-auto-import
export {}
declare global {
const Alert: typeof import('antd')['Alert']
const Button: typeof import('antd')['Button']
const Card: typeof import('antd')['Card']
const ColorPicker: typeof import('antd')['ColorPicker']
Expand Down
12 changes: 9 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 { Avatar, Breadcrumb, Dropdown, Menu, MenuProps, theme, Tooltip, Typograp
import axios from 'axios';
import { CanyonLayoutBase, CanyonModalGlobalSearch } from 'canyon-ui';
import { useEffect, useMemo, useRef, useState } from 'react';
import Marquee from 'react-fast-marquee';
import { useTranslation } from 'react-i18next';
import { Outlet, useLocation, useNavigate } from 'react-router-dom';

Expand Down Expand Up @@ -122,11 +123,11 @@ function Index() {
window.location.href = '/login';
}
};
const { data: baseData } = useRequest(() => axios.get('/api/base').then(({ data }) => data),{
const { data: baseData } = useRequest(() => axios.get('/api/base').then(({ data }) => data), {
onSuccess(data) {
// console.log(data,'ss')
window.GITLAB_URL = data.GITLAB_URL;
}
},
});
const [menuSelectedKey, setMenuSelectedKey] = useState<string>('projects');
window.canyonModalGlobalSearchRef = useRef(null);
Expand All @@ -137,7 +138,12 @@ function Index() {
{/* window.canyonModalGlobalSearchRef.current.report();*/}
{/*}}>开启</Button>*/}
<CanyonLayoutBase
breadcrumb={<Breadcrumb className={'py-3'} items={genBreadcrumbItems(loc.pathname)} />}
breadcrumb={
<div>
{/*榜单mark*/}
<Breadcrumb className={'py-3'} items={genBreadcrumbItems(loc.pathname)} />
</div>
}
itemsDropdown={[
{
label: (
Expand Down

0 comments on commit 74add08

Please sign in to comment.