Browse Source

feat(nav): add media console link and merge dashboard card

Made-with: Cursor
tags/邮箱功能前置
npmrun 3 weeks ago
parent
commit
e4adc32c56
  1. 5
      app/components/AppShell.vue
  2. 8
      app/pages/me/index.vue

5
app/components/AppShell.vue

@ -37,14 +37,15 @@ const consoleSubNav = [
{ label: '文章', to: '/me/posts', icon: 'i-lucide-file-text' },
{ label: '时光机', to: '/me/timeline', icon: 'i-lucide-history' },
{ label: 'RSS', to: '/me/rss', icon: 'i-lucide-rss' },
{ label: '媒体', to: '/me/media', icon: 'i-lucide-images' },
] as const
/** 桌面端:下拉内仅个子链接 */
/** 桌面端:下拉内仅个子链接 */
const consoleDropdownItems = computed(() => [
consoleSubNav.map((i) => ({ label: i.label, icon: i.icon, to: i.to })),
])
/** 移动端汉堡菜单:首页、发现 + 「控制台」分组下个子项 */
/** 移动端汉堡菜单:首页、发现 + 「控制台」分组下个子项 */
const mobileMenuItems = computed(() => [
[
{ label: homeNav.label, icon: homeNav.icon, to: homeNav.to },

8
app/pages/me/index.vue

@ -104,13 +104,13 @@ onMounted(async () => {
</UCard>
<UCard>
<div class="font-medium">
文章媒体清理
媒体
</div>
<p class="text-sm text-muted mt-1">
孤儿图片审查与清理
资源库上传与复制链接孤儿图片审查与清理
</p>
<UButton to="/me/media/orphans" class="mt-3" size="sm">
打开
<UButton to="/me/media" class="mt-3" size="sm">
进入
</UButton>
</UCard>
<UCard v-if="user?.role === 'admin'">

Loading…
Cancel
Save