Skip to content

Commit

Permalink
refactor: 重构工作台
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Oct 20, 2024
1 parent ae08678 commit 7970940
Show file tree
Hide file tree
Showing 17 changed files with 516 additions and 742 deletions.
4 changes: 3 additions & 1 deletion src/layout/LayoutDefault.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<a-layout class="layout layout-default">
<a-layout class="layout layout-default" :class="{ mobile: isMobile }">
<Asider></Asider>
<a-layout class="layout-default-right">
<Header></Header>
Expand All @@ -17,9 +17,11 @@ import Main from './components/Main.vue'
import Tabs from './components/Tabs/index.vue'
import GiFooter from '@/components/GiFooter/index.vue'
import { useAppStore } from '@/stores'
import { useDevice } from '@/hooks'
defineOptions({ name: 'LayoutDefault' })
const appStore = useAppStore()
const { isMobile } = useDevice()
</script>

<style lang="scss" scoped>
Expand Down
219 changes: 0 additions & 219 deletions src/views/dashboard/workplace/components/AccessTrendCard.vue

This file was deleted.

33 changes: 33 additions & 0 deletions src/views/dashboard/workplace/components/Carousel.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<template>
<a-carousel
indicator-type="slider"
show-arrow="hover"
auto-play
style="width: 100%; height: 150px; border-radius: 4px; overflow: hidden"
>
<a-carousel-item v-for="(image, idx) in images" :key="idx">
<div>
<a-link
:href="image.url"
target="_blank"
rel="noopener"
>
<img :src="`${image.src}?${new Date().getTime()}`" style="width: 100%" alt="" />
</a-link>
</div>
</a-carousel-item>
</a-carousel>
</template>

<script lang="ts" setup>
const images = [
{
src: 'https://continew.top/qrcode-text.png',
url: 'https://continew.top/about/intro.html'
},
{
src: 'https://continew.top/sponsor.png',
url: 'https://continew.top/sponsor.html'
}
]
</script>
42 changes: 42 additions & 0 deletions src/views/dashboard/workplace/components/Docs.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<template>
<a-card
class="general-card"
title="帮助文档"
:header-style="{ paddingBottom: 0 }"
:body-style="{ paddingTop: '5px' }"
style="height: 166px"
>
<template #extra>
<a-link href="https://continew.top" target="_blank" rel="noopener">更多</a-link>
</template>
<a-row>
<a-col v-for="link in links" :key="link.text" :span="12">
<a-link
:href="link.url"
target="_blank"
rel="noopener"
>
{{ link.text }}
</a-link>
</a-col>
</a-row>
</a-card>
</template>

<script setup lang="ts">
const links = [
{ text: '项目简介', url: 'https://continew.top/admin/intro/what-is.html' },
{ text: '快速开始', url: 'https://continew.top/admin/intro/quick-start.html' },
{ text: '常见问题', url: 'https://continew.top/faq.html' },
{ text: '更新日志', url: 'https://continew.top/admin/other/changelog.html' },
{ text: '贡献指南', url: 'https://continew.top/admin/other/contributing.html' },
{ text: '赞助支持 💖', url: 'https://continew.top/sponsor.html' }
]
</script>

<style lang="less" scoped>
.arco-card-body .arco-link {
margin: 5px 0;
color: rgb(var(--gray-8));
}
</style>
77 changes: 0 additions & 77 deletions src/views/dashboard/workplace/components/FastCard.vue

This file was deleted.

Loading

0 comments on commit 7970940

Please sign in to comment.