<template>
  <div class="space-y-4">
    <a-page-header title="源码与仓库" sub-title="Gitea 仓库访问与源码交付" />

    <a-alert
      type="info"
      show-icon
      message="当前版本为页面骨架：后续将接入“订阅有效 + 已购买源码权益”的可见性与申请流程。"
    />

    <a-card title="仓库访问" :bordered="false" class="card">
      <a-steps :current="1" size="small">
        <a-step title="绑定 Git 账号" />
        <a-step title="提交加组申请" />
        <a-step title="运营处理加组" />
        <a-step title="获得仓库访问权限" />
      </a-steps>

      <div class="mt-4 flex flex-wrap gap-3">
        <a-button type="primary" @click="navigateTo('/developer/git')">去绑定 Git 账号</a-button>
        <a-button @click="navigateTo('/developer/requests')">查看申请记录</a-button>
      </div>
    </a-card>

    <a-card title="我的源码列表" :bordered="false" class="card">
      <a-empty description="待接入：按 templateId 映射仓库 + 权益校验" />
    </a-card>
  </div>
</template>

<script setup lang="ts">
definePageMeta({ layout: 'developer' })
</script>

<style scoped>
.card {
  border-radius: 12px;
}
</style>

