Skip to content

Commit 03d432d

Browse files
committed
refactor: 清理项目结构,移除冗余文件和测试用例
- 删除重复的配置文件 .cursor/extensions.json - 删除过时的备份文件 ThemeSettings.vue.bak - 删除冗余的测试文件 network-retry.spec.ts 和 http-performance.spec.ts - 删除项目根目录中的技术评估报告和项目清理报告 - 更新路由模块文件
1 parent 197af65 commit 03d432d

15 files changed

+19
-40
lines changed

.claude/settings.local.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"permissions": {
33
"allow": [
44
"Bash(npx tsc:*)",
5-
"Bash(npx eslint:*)"
5+
"Bash(npx eslint:*)",
6+
"Bash(for file in src/router/modules/*.example.ts)",
7+
"Bash(do sed -i '1,6{/^function Layout/,/^}/d}' \"$file\")",
8+
"Bash(sed -i \"1i import { Layout } from ''../utils/layout''\" \"$file\")",
9+
"Bash(done)"
610
],
711
"deny": [],
812
"ask": []

src/router/modules/breadcrumb.example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
import { Layout } from '../utils/layout'
12
import type { RouteRecordRaw } from 'vue-router'
23

3-
function Layout() {
4-
return import('@/layouts/index.vue')
5-
}
64

75
const routes: RouteRecordRaw = {
86
path: '/breadcrumb_example',

src/router/modules/component.example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
import { Layout } from '../utils/layout'
12
import type { RouteRecordRaw } from 'vue-router'
23

3-
function Layout() {
4-
return import('@/layouts/index.vue')
5-
}
64

75
const routes: RouteRecordRaw = {
86
path: '/component_example',

src/router/modules/ecology.example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
import { Layout } from '../utils/layout'
12
import type { RouteRecordRaw } from 'vue-router'
23

3-
function Layout() {
4-
return import('@/layouts/index.vue')
5-
}
64

75
const routes: RouteRecordRaw[] = [
86
{

src/router/modules/external.link.example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
import { Layout } from '../utils/layout'
12
import type { RouteRecordRaw } from 'vue-router'
23

3-
function Layout() {
4-
return import('@/layouts/index.vue')
5-
}
64

75
const routes: RouteRecordRaw = {
86
path: '/link',

src/router/modules/feature.example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
import { Layout } from '../utils/layout'
12
import type { RouteRecordRaw } from 'vue-router'
23

3-
function Layout() {
4-
return import('@/layouts/index.vue')
5-
}
64

75
const routes: RouteRecordRaw = {
86
path: '/feature_example',

src/router/modules/icon.example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
import { Layout } from '../utils/layout'
12
import type { RouteRecordRaw } from 'vue-router'
23

3-
function Layout() {
4-
return import('@/layouts/index.vue')
5-
}
64

75
const routes: RouteRecordRaw = {
86
path: '/icon_example',

src/router/modules/jsx.example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
import { Layout } from '../utils/layout'
12
import type { RouteRecordRaw } from 'vue-router'
23

3-
function Layout() {
4-
return import('@/layouts/index.vue')
5-
}
64

75
const routes: RouteRecordRaw = {
86
path: '/jsx_example',

src/router/modules/keep.alive.example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
import { Layout } from '../utils/layout'
12
import type { RouteRecordRaw } from 'vue-router'
23

3-
function Layout() {
4-
return import('@/layouts/index.vue')
5-
}
64

75
const routes: RouteRecordRaw = {
86
path: '/keep_alive_example',

src/router/modules/mock.example.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
import { Layout } from '../utils/layout'
12
import type { RouteRecordRaw } from 'vue-router'
23

3-
function Layout() {
4-
return import('@/layouts/index.vue')
5-
}
64

75
const routes: RouteRecordRaw = {
86
path: '/mock_example',

0 commit comments

Comments
 (0)