mirror of https://github.com/buster-so/buster.git
update imports
This commit is contained in:
parent
f59225addb
commit
0a8427bd62
|
@ -47,7 +47,7 @@
|
||||||
"ahooks": "^3.8.4",
|
"ahooks": "^3.8.4",
|
||||||
"antd": "5.23.3",
|
"antd": "5.23.3",
|
||||||
"antd-style": "^3.7.1",
|
"antd-style": "^3.7.1",
|
||||||
"axios": "^1.7.9",
|
"axios": "^1.8.1",
|
||||||
"canvas-confetti": "^1.9.3",
|
"canvas-confetti": "^1.9.3",
|
||||||
"chart.js": "^4.4.8",
|
"chart.js": "^4.4.8",
|
||||||
"chartjs": "^0.3.24",
|
"chartjs": "^0.3.24",
|
||||||
|
@ -115,14 +115,14 @@
|
||||||
"virtua": "^0.40.0"
|
"virtua": "^0.40.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@chromatic-com/storybook": "^3.2.4",
|
"@chromatic-com/storybook": "^3.2.5",
|
||||||
"@storybook/addon-essentials": "^8.6.0",
|
"@storybook/addon-essentials": "^8.6.2",
|
||||||
"@storybook/addon-interactions": "^8.6.0",
|
"@storybook/addon-interactions": "^8.6.2",
|
||||||
"@storybook/addon-onboarding": "^8.6.0",
|
"@storybook/addon-onboarding": "^8.6.2",
|
||||||
"@storybook/blocks": "^8.6.0",
|
"@storybook/blocks": "^8.6.2",
|
||||||
"@storybook/nextjs": "^8.6.0",
|
"@storybook/nextjs": "^8.6.2",
|
||||||
"@storybook/react": "^8.6.0",
|
"@storybook/react": "^8.6.2",
|
||||||
"@storybook/test": "^8.6.0",
|
"@storybook/test": "^8.6.2",
|
||||||
"@tailwindcss/postcss": "^4.0.9",
|
"@tailwindcss/postcss": "^4.0.9",
|
||||||
"@tanstack/eslint-plugin-query": "^5.66.1",
|
"@tanstack/eslint-plugin-query": "^5.66.1",
|
||||||
"@testing-library/jest-dom": "^6.6.3",
|
"@testing-library/jest-dom": "^6.6.3",
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { prefetchGetUserPermissionGroups } from '@/api/buster_rest/users';
|
import { prefetchGetUserPermissionGroups } from '@/api/buster_rest/users';
|
||||||
import { HydrationBoundary, dehydrate } from '@tanstack/react-query';
|
import { HydrationBoundary, dehydrate } from '@tanstack/react-query';
|
||||||
import { UserPermissionGroupsController } from './UserPermissionGroupsController';
|
import { UserPermissionGroupsController } from './UserPermissionGroupsController';
|
||||||
import { useCheckIfUserIsAdmin_server } from '../../../../../../../server_context/user';
|
|
||||||
import { redirect } from 'next/navigation';
|
import { redirect } from 'next/navigation';
|
||||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||||
|
import { useCheckIfUserIsAdmin_server } from '@/server_context/user';
|
||||||
|
|
||||||
export default async function Page({ params }: { params: { userId: string } }) {
|
export default async function Page({ params }: { params: { userId: string } }) {
|
||||||
const isAdmin = await useCheckIfUserIsAdmin_server();
|
const isAdmin = await useCheckIfUserIsAdmin_server();
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { useDebounceSearch } from '@/hooks/useDebounceSearch';
|
||||||
import { useGetOrganizationUsers } from '@/api/buster_rest';
|
import { useGetOrganizationUsers } from '@/api/buster_rest';
|
||||||
import { useUserConfigContextSelector } from '@/context/Users';
|
import { useUserConfigContextSelector } from '@/context/Users';
|
||||||
import { ListUsersComponent } from './ListUsersComponent';
|
import { ListUsersComponent } from './ListUsersComponent';
|
||||||
import { PermissionSearch } from '../../../../../components/features/PermissionComponents';
|
import { PermissionSearch } from '@/components/features/PermissionComponents';
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
const userOrganization = useUserConfigContextSelector((x) => x.userOrganizations);
|
const userOrganization = useUserConfigContextSelector((x) => x.userOrganizations);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { useCheckIfUserIsAdmin_server } from '../../../../../server_context/user';
|
import { useCheckIfUserIsAdmin_server } from '@/server_context/user';
|
||||||
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
||||||
import { ApiKeysController } from './ApiKeysController';
|
import { ApiKeysController } from './ApiKeysController';
|
||||||
import { createBusterRoute, BusterRoutes } from '@/routes';
|
import { createBusterRoute, BusterRoutes } from '@/routes';
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {
|
||||||
} from '@/components/ui/list';
|
} from '@/components/ui/list';
|
||||||
import { BusterInfiniteList } from '@/components/ui/list';
|
import { BusterInfiniteList } from '@/components/ui/list';
|
||||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||||
import { PermissionLineageBreadcrumb } from '../../../../../../../components/features/PermissionComponents';
|
import { PermissionLineageBreadcrumb } from '@/components/features/PermissionComponents';
|
||||||
import { ListUserItem } from '@/components/features/lists';
|
import { ListUserItem } from '@/components/features/lists';
|
||||||
|
|
||||||
export const PermissionListUserContainer: React.FC<{
|
export const PermissionListUserContainer: React.FC<{
|
||||||
|
|
|
@ -21,6 +21,8 @@ export const Sidebar: React.FC<SidebarProps> = React.memo(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Sidebar.displayName = 'Sidebar';
|
||||||
|
|
||||||
const ContentSelector: React.FC<{
|
const ContentSelector: React.FC<{
|
||||||
content: SidebarProps['content'][number];
|
content: SidebarProps['content'][number];
|
||||||
activeItem: SidebarProps['activeItem'];
|
activeItem: SidebarProps['activeItem'];
|
||||||
|
@ -45,6 +47,8 @@ const SidebarList: React.FC<{
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
SidebarList.displayName = 'SidebarList';
|
||||||
|
|
||||||
const isSidebarGroup = (content: SidebarProps['content'][number]): content is ISidebarGroup => {
|
const isSidebarGroup = (content: SidebarProps['content'][number]): content is ISidebarGroup => {
|
||||||
return 'label' in content && content.label !== undefined;
|
return 'label' in content && content.label !== undefined;
|
||||||
};
|
};
|
||||||
|
|
|
@ -70,3 +70,5 @@ export const SidebarItem: React.FC<ISidebarItem & VariantProps<typeof itemVarian
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
SidebarItem.displayName = 'SidebarItem';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BusterRoutes } from '@/routes';
|
import { BusterRoutes } from '@/routes';
|
||||||
|
import React from 'react';
|
||||||
export interface ISidebarItem {
|
export interface ISidebarItem {
|
||||||
label: string;
|
label: string;
|
||||||
icon: React.ReactNode;
|
icon: React.ReactNode;
|
||||||
|
|
Loading…
Reference in New Issue