-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
289 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx commitlint --edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* @NOTE: Prepend a `~` to css file paths that are in your node_modules | ||
* See https://github.com/webpack-contrib/sass-loader#imports | ||
*/ | ||
@import '@/src/style/index'; | ||
$prefixCls: 'songbar-component'; | ||
.#{$prefixCls} { | ||
padding: 10px; | ||
height: 60px; | ||
background-color: rgba(255, 255, 255, 0.3); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React, { useEffect } from 'react'; | ||
import { | ||
CaretRightOutlined, | ||
RightOutlined, | ||
ChromeOutlined, | ||
} from '@ant-design/icons'; | ||
import { shallowEqual } from 'react-redux'; | ||
import { clsPrefix } from '@/utils/serialization'; | ||
import { fetchLatestMusictList } from '@/store/discovers'; | ||
import { useAppSelector, useAppDispatch } from '@/store/hooks'; | ||
import './index.scss'; | ||
|
||
const prefixCls = 'songbar-component'; | ||
const clsName = clsPrefix(prefixCls); | ||
const AppSongBarPage = (props) => { | ||
const dispatch = useAppDispatch(); | ||
const { latestMusictList = [] } = useAppSelector((state) => { | ||
const { | ||
discoversState: { | ||
personalizedList, | ||
discoverBannerList, | ||
latestMusictList, | ||
} = {}, | ||
} = state; | ||
return { personalizedList, discoverBannerList, latestMusictList }; | ||
}, shallowEqual); | ||
useEffect(() => { | ||
dispatch(fetchLatestMusictList(0)); | ||
}, []); | ||
|
||
return <div className={prefixCls}></div>; | ||
}; | ||
export default AppSongBarPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
import React from 'react'; | ||
import React, { ReactNode } from 'react'; | ||
import { Outlet } from 'react-router-dom'; | ||
import { clsPrefix } from '@/utils/serialization'; | ||
import AppHeader from './components/header/index'; | ||
import AppSidebar from './components/sidebar/index'; | ||
import { FakeScrollComponent } from '@/src/components'; | ||
import AppHeader from './components/header/index'; | ||
const prefixCls = 'app-container'; | ||
const clsName = clsPrefix(prefixCls); | ||
const AppComponent = () => { | ||
export const AppLayout = ({ children }: { children: ReactNode }) => { | ||
return ( | ||
<> | ||
<i className="app-vague-bg" /> | ||
<div className={prefixCls}> | ||
<AppHeader /> | ||
<section className={clsName('layout')}> | ||
<AppSidebar /> | ||
<FakeScrollComponent className={clsName('outlet')}> | ||
<Outlet /> | ||
</FakeScrollComponent> | ||
</section> | ||
<section className={clsName('layout')}>{children}</section> | ||
</div> | ||
</> | ||
); | ||
}; | ||
const AppComponent = () => { | ||
return ( | ||
<AppLayout> | ||
<FakeScrollComponent className={clsName('outlet')}> | ||
<Outlet /> | ||
</FakeScrollComponent> | ||
</AppLayout> | ||
); | ||
}; | ||
export default AppComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
/* 带侧边栏的入口 */ | ||
import React from 'react'; | ||
import { Outlet } from 'react-router-dom'; | ||
import { clsPrefix } from '@/utils/serialization'; | ||
import AppSidebar from './components/sidebar/index'; | ||
import { FakeScrollComponent } from '@/src/components'; | ||
import AsyncImportLoadable from '@loadable/component'; | ||
import { AppLayout } from './app'; | ||
const AppSongBarPage = AsyncImportLoadable( | ||
() => import(/* webpackPrefetch: true */ '@/src/pages/songs') | ||
); | ||
const prefixCls = 'app-container'; | ||
const clsName = clsPrefix(prefixCls); | ||
const AppComponent = () => { | ||
return ( | ||
<AppLayout> | ||
<AppSidebar /> | ||
<FakeScrollComponent className={clsName('outlet')}> | ||
<Outlet /> | ||
</FakeScrollComponent> | ||
<AppSongBarPage /> | ||
</AppLayout> | ||
); | ||
}; | ||
export default AppComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import 'antd/dist/antd.less'; | ||
import './App.scss'; | ||
import './app.scss'; | ||
import '../root'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,77 @@ | ||
// import './test2.scss'; | ||
|
||
import React from 'react'; | ||
const Hello = () => { | ||
return <div className="test">您wwww好,不错啊,好用哦</div>; | ||
return ( | ||
<div className="test"> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦2 | ||
<br /> | ||
您wwww好,不错啊,好用哦3 | ||
<br />3 | ||
您wwww4好,不错啊,好用哦 | ||
<br /> | ||
您wwww55555好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦100 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
<br />100 | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
您wwww好,不错啊,好用哦 | ||
<br /> | ||
<p>结束了~~~</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Hello; |
Oops, something went wrong.