refactor: 移除侧边栏相关功能和代码

This commit is contained in:
2026-07-05 21:47:35 +08:00
parent 6be9b31ca2
commit 6589ea3858
19 changed files with 23 additions and 262 deletions
-11
View File
@@ -120,14 +120,3 @@ export function getAllFeatureKeys(): PageType[] {
export function getDefaultPageOrder(): PageType[] {
return FEATURES.filter((f) => f.key !== 'dashboard').map((f) => f.key);
}
export function getEntryPointType(): 'popup' | 'sidepanel' | 'tab' {
const pathname = window.location.pathname;
if (pathname.includes('sidepanel')) {
return 'sidepanel';
}
if (new URLSearchParams(window.location.search).get('mode') === 'tab') {
return 'tab';
}
return 'popup';
}
-1
View File
@@ -4,6 +4,5 @@ export {
getAllFeatureKeys,
getDefaultPageOrder,
getDefaultVisibleFeatureKeys,
getEntryPointType,
getFeatureByKey,
} from '@/config/featureMeta';