chore(前端): 删掉三个从 ojnext 搬来就没人用的文件
阶段 1 是「原样搬入、不改业务代码」,所以 ojnext 里已经死掉的东西也一起 搬了过来。这三个文件全仓零引用: - utils/permissions.ts(usePermissions / checkRoutePermission) - oj/ai/components/StreakStats.vue - shared/components/IconButton.vue 确认方式:在 apps/web 全部 .ts / .vue / .json / .html / .js 里搜这五个名字 (排除文件自身)零命中;两个组件也不在自动生成的 components.d.ts 里, permissions.ts 的两个导出同样不在 auto-imports.d.ts 里 —— 也就是说 它们连自动导入的注册都没拿到,不存在「模板里隐式用到」的可能。 permissions.ts 在 ojnext 里也是死的,不是搬运过程产生的。 vue-tsc 0 error,vite build 通过。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
<template>
|
||||
<n-tooltip>
|
||||
<template #trigger>
|
||||
<n-button round :type="type ?? 'default'" @click="$emit('click')">
|
||||
<template #icon>
|
||||
<Icon :icon="icon" />
|
||||
</template>
|
||||
</n-button>
|
||||
</template>
|
||||
{{ tip }}
|
||||
</n-tooltip>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { Icon } from "@iconify/vue"
|
||||
|
||||
defineProps<{
|
||||
tip: string
|
||||
icon: string
|
||||
type?:
|
||||
| "default"
|
||||
| "tertiary"
|
||||
| "primary"
|
||||
| "info"
|
||||
| "success"
|
||||
| "warning"
|
||||
| "error"
|
||||
}>()
|
||||
defineEmits(["click"])
|
||||
</script>
|
||||
Reference in New Issue
Block a user