refactor(mod queue): rename routes from /queue to /modqueue

This commit is contained in:
plebeius
2026-02-09 17:42:23 +08:00
parent 1704686a6f
commit 41b7fee439
4 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -106,7 +106,7 @@ export const isFeedRoute = (pathname: string): boolean => {
if (normalizedPath.includes('/thread/')) return false;
if (normalizedPath.startsWith('/pending/')) return false;
if (normalizedPath.includes('/queue')) return false;
if (normalizedPath.includes('/modqueue')) return false;
const pathWithoutSettings = normalizedPath.replace(/\/settings$/, '');
@@ -140,7 +140,7 @@ export const isPendingPostRoute = (pathname: string): boolean => {
export const isModQueueRoute = (pathname: string): boolean => {
const normalizedPath = pathname.replace(/\/settings$/, '');
return normalizedPath.includes('/queue');
return normalizedPath.includes('/modqueue');
};
export const getFeedCacheKey = (pathname: string): string | null => {
@@ -156,7 +156,7 @@ export const getFeedCacheKey = (pathname: string): string | null => {
return null;
}
if (normalizedPath.includes('/queue')) {
if (normalizedPath.includes('/modqueue')) {
return null;
}
+1 -1
View File
@@ -60,7 +60,7 @@ export const isModView = (pathname: string): boolean => {
};
export const isModQueueView = (pathname: string): boolean => {
return pathname.includes('/queue');
return pathname.includes('/modqueue');
};
export const isPendingPostView = (pathname: string, params: ParamsType): boolean => {