import type { Component } from 'vue'

export type DeveloperNavItem = {
  key: string
  label: string
  to: string
  icon?: string    // emoji icon
  badge?: string   // NEW / BETA 等标签
  divider?: boolean // 分组分割线
  group?: string   // 分组名称
}

export const developerNav: DeveloperNavItem[] = [
  // 概览
  { key: 'developer-home', label: '概览', to: '/developer', icon: '🏠', group: '' },

  // CI/CD 与部署
  { key: 'developer-build', label: '构建任务', to: '/developer/build', icon: '🔨', group: 'CI/CD 与部署', badge: 'NEW' },
  { key: 'developer-pipeline', label: '流水线管理', to: '/developer/pipeline', icon: '⚙️', group: 'CI/CD 与部署', badge: 'NEW' },
  { key: 'developer-publish', label: '发布管理', to: '/developer/publish', icon: '🚀', group: 'CI/CD 与部署' },
  { key: 'developer-versions', label: '版本管理', to: '/developer/versions', icon: '🏷️', group: 'CI/CD 与部署' },

  // 开发资源
  { key: 'developer-apps', label: '应用中心', to: '/developer/apps', icon: '📦', group: '开发资源' },
  { key: 'developer-apikeys', label: 'API Key 管理', to: '/developer/apikeys', icon: '🔑', group: '开发资源', badge: 'NEW' },
  { key: 'developer-cloud-credentials', label: '云账号凭证', to: '/developer/cloudCredentials', icon: '☁️', group: '开发资源', badge: 'NEW' },
  { key: 'developer-source', label: '源码与仓库', to: '/developer/source', icon: '💻', group: '开发资源' },

  // 资源中心
  { key: 'developer-resources', label: '资源总览', to: '/developer/resources', icon: '🗂️', group: '资源中心' },
  { key: 'developer-servers', label: '服务器', to: '/developer/resources/servers', icon: '🖥️', group: '资源中心' },
  { key: 'developer-databases', label: '数据库', to: '/developer/resources/databases', icon: '🗄️', group: '资源中心' },
  { key: 'developer-storage', label: '云存储', to: '/developer/resources/storage', icon: '☁️', group: '资源中心' },
  { key: 'developer-domains', label: '域名管理', to: '/developer/resources/domains', icon: '🌐', group: '资源中心' },
  { key: 'developer-ssl', label: 'SSL 证书', to: '/developer/resources/ssl', icon: '🔒', group: '资源中心' },
  { key: 'developer-git-repos', label: '代码仓库', to: '/developer/resources/git', icon: '🐙', group: '资源中心' },

  // 数据
  { key: 'developer-analytics', label: '数据统计', to: '/developer/analytics', icon: '📊', group: '数据', badge: 'NEW' },

  // 学习与文档
  { key: 'developer-docs', label: '开发文档', to: '/developer/docs', icon: '📚', group: '学习与文档' },

  // 账号与权限
  { key: 'developer-git', label: 'Git 账号绑定', to: '/developer/git', icon: '🐙', group: '账号与权限' },
  { key: 'developer-requests', label: '权限申请记录', to: '/developer/requests', icon: '📋', group: '账号与权限' },

  // 帮助
  { key: 'developer-support', label: '支持与反馈', to: '/developer/support', icon: '💬', group: '帮助' },
  { key: 'developer-tickets', label: '工单处理', to: '/developer/tickets', icon: '🎫', group: '帮助', badge: 'NEW' },
]
