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

8
app/pages/me/index.vue

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

Loading…
Cancel
Save