Skip to content

Commit

Permalink
style: 文章列表tag颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Jan 25, 2023
1 parent 64c86a2 commit be7c1cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 93 deletions.
Binary file modified backend/.tmp/data.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2023-01-25T11:05:55.416Z"
"x-generation-date": "2023-01-25T11:25:51.172Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down
23 changes: 3 additions & 20 deletions frontend/components/Articles/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const artModeHandler = (mode: string) => {
})
const el = document.getElementById(mode) as unknown as HTMLElement
if (el.style)
el.style.color = 'deepskyblue'
el.style.color = '#007fff'
artlistData.value = []
// TODO: 请求数据
artlistData.value = initialItem
Expand Down Expand Up @@ -59,23 +59,6 @@ onUnmounted(() => {
热榜
</li>
</ul>
<!-- <select
v-if="artlistNav === 'hot'" v-model="hotRange" class="text-2 px-2 border-1"
@change="hotRangeHandler"
>
<option class="" :value="24 * 60 * 60 * 1000 * 3">
3天内
</option>
<option class="" :value="24 * 60 * 60 * 1000 * 7">
7天内
</option>
<option class="" :value="24 * 60 * 60 * 1000 * 30">
30天内
</option>
<option value="all">
全部
</option>
</select> -->
<UnoSelect v-if="artlistNav === 'hot'" class="" />
</div>
<ul v-if="!isLoading && initialItem">
Expand All @@ -92,9 +75,9 @@ onUnmounted(() => {

<style scoped>
li:hover {
color: deepskyblue!important;
color: #007fff!important;
}
#recommend {
color: deepskyblue;
color: #007fff;
}
</style>
72 changes: 0 additions & 72 deletions frontend/composables/useFetchPostData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,78 +101,6 @@ export default async (/* mode = 'recommend' | 'latest' | 'heat' , pagenum = 1,
desc: '在开发中,不论是一个团队一起开发一个项目,还是自己独立开发一个项目。都少不了',
topicHeat: [2022, 26, 6],
},
{
uname: 'OrzR3',
duration: '2月',
tags: ['后端', 'Go', '前端'],
title: 'Go 语言中的 Gin 框架',
desc: 'Go 语言中的 gin 框架简易上手指南,初始化安装,加载静态资源和页面,以及表单提交Go 语言中的 gin 框架简易上手指南,初始化安装,加载静态资源和页面,以及表单提交',
topicHeat: [3182, 22, 6],
},
{
uname: 'xj',
duration: '2月',
tags: ['Vue.js', 'arco design', 'koa'],
title: '帮朋友搭建后台管理系统',
desc: '对,还是那位朋友,一位接近40的澳洲老哥,找我帮忙搞一个管理后台,他刚找到编程',
topicHeat: [15000, 276, 45],
},
{
uname: 'sx',
duration: '8天',
tags: ['前端', '后端'],
title: '如何打造一个优雅的git工作流',
desc: '在开发中,不论是一个团队一起开发一个项目,还是自己独立开发一个项目。都少不了',
topicHeat: [2022, 26, 6],
},
{
uname: 'OrzR3',
duration: '2月',
tags: ['后端', 'Go', '前端'],
title: 'Go 语言中的 Gin 框架',
desc: 'Go 语言中的 gin 框架简易上手指南,初始化安装,加载静态资源和页面,以及表单提交Go 语言中的 gin 框架简易上手指南,初始化安装,加载静态资源和页面,以及表单提交',
topicHeat: [3182, 22, 6],
},
{
uname: 'xj',
duration: '2月',
tags: ['Vue.js', 'arco design', 'koa'],
title: '帮朋友搭建后台管理系统',
desc: '对,还是那位朋友,一位接近40的澳洲老哥,找我帮忙搞一个管理后台,他刚找到编程',
topicHeat: [15000, 276, 45],
},
{
uname: 'sx',
duration: '8天',
tags: ['前端', '后端'],
title: '如何打造一个优雅的git工作流',
desc: '在开发中,不论是一个团队一起开发一个项目,还是自己独立开发一个项目。都少不了',
topicHeat: [2022, 26, 6],
},
{
uname: 'OrzR3',
duration: '2月',
tags: ['后端', 'Go', '前端'],
title: 'Go 语言中的 Gin 框架',
desc: 'Go 语言中的 gin 框架简易上手指南,初始化安装,加载静态资源和页面,以及表单提交Go 语言中的 gin 框架简易上手指南,初始化安装,加载静态资源和页面,以及表单提交',
topicHeat: [3182, 22, 6],
},
{
uname: 'xj',
duration: '2月',
tags: ['Vue.js', 'arco design', 'koa'],
title: '帮朋友搭建后台管理系统',
desc: '对,还是那位朋友,一位接近40的澳洲老哥,找我帮忙搞一个管理后台,他刚找到编程',
topicHeat: [15000, 276, 45],
},
{
uname: 'sx',
duration: '8天',
tags: ['前端', '后端'],
title: '如何打造一个优雅的git工作流',
desc: '在开发中,不论是一个团队一起开发一个项目,还是自己独立开发一个项目。都少不了',
topicHeat: [2022, 26, 6],
},
]
// 数据内容
postData.push(...value)
Expand Down

0 comments on commit be7c1cc

Please sign in to comment.