Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eslint rule import-sort by eslint-plugin-perfectionist #74

Merged
merged 2 commits into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

![release](https://github.com/Linkontoask/radishes/workflows/release/badge.svg)

<img src="./snapshots/home.jpg" />

`Radishes`是这个项目的名称,它是由`萝卜`翻译而来。可以在这里试听和下载“灰色”歌曲哟

界面表现和功能参考 windows 网易云音乐界面和 ios 的网易云音乐,会对一些功能进行移动端支持。希望能找到合适的基于 vue3 的移动端打包工具(非套壳)。
Expand Down
Binary file added snapshots/home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components-business/secondary-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const SecondaryBar = defineComponent({
}

return () => (
<div class={`${prefix}-bar`}>
<div class={`${prefix}-bar mx-4`}>
<ul>
{nav.value?.map(link => (
<RouterLink
Expand Down
19 changes: 14 additions & 5 deletions src/components-business/song-list/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@

> ul {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
// grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-gap: 20px;
height: 100%;
}
&-container {
display: flex;
flex-direction: column;
min-height: 220px;
position: relative;
// min-height: 220px;
cursor: pointer;
user-select: none;
.song-pic {
position: relative;
flex: 1;
width: 0;
height: 0;
padding-left: 100%;
padding-bottom: 100%;
.daily-img,
.bg-img {
position: absolute;
left: 0;
width: 100%;
height: 100%;
}
&-count {
position: absolute;
top: 2px;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/auth/component/sidebar-auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const SidebarAuth = defineComponent({
const text = isLogin.value ? profile.value.nickname : '未登录'
const head = isLogin.value ? profile.value.avatarUrl : DEFAULT_AVATAR
return (
<div class="sidebar-nav-login" onClick={unLoginClick}>
<div class="sidebar-nav-login m-4" onClick={unLoginClick}>
<div class="sidebar-nav-loginbox">
<Image
width="40"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/auth/component/sidebar-auth/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

.sidebar-nav {
&-login {
padding: 10px 0;
// padding: 10px 0;
}
&-loginbox {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/news/view/index.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.news {
display: flex;
flex-direction: column;
padding: 20px;
// padding: 20px;
}
2 changes: 1 addition & 1 deletion src/pages/news/view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const News = defineComponent({
<div class="news">
<SecondaryBar nav={nav}></SecondaryBar>
{/* See https://github.com/vuejs/jsx-next/issues/161 */}
<RouterView v-slots={Slots}></RouterView>
<RouterView class="px-4" v-slots={Slots}></RouterView>
</div>
)
}
Expand Down
3 changes: 2 additions & 1 deletion src/pages/sidebar/view/index.less
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@import '~@/theme/index.less';

.sidebar {
padding: 10px;
border-right: @base-border;
&-nav {
&-contanier {
height: calc(100% - 72px);
padding: 16px;
overflow-x: hidden;
overflow-y: auto;
}
Expand All @@ -17,6 +17,7 @@
font-size: 15px;
line-height: 40px;
color: var(--secondary-text);
transition: all 0.3s;
&:hover {
color: var(--secondary-text-hover);
background-color: #f3f3f3;
Expand Down
2 changes: 1 addition & 1 deletion src/theme/color.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
@success-color: #31da36;
@success-hover-color: darken(@success-color, 20%);

@sidebar-width: 180px;
@sidebar-width: 208px;
2 changes: 1 addition & 1 deletion src/theme/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
--gay-hover-color: #6c6c6c;
--success-color: #31da36;
--success-hover-color: #198c1d;
--sidebar-width: 180px;
--sidebar-width: 208px;
}
Loading