Remove admin functionality related code

The admin functionality related code has been removed which includes various user and organization functionalities like delete, update, ban etc. This includes action logic, UI components and supportive utility functions. Notable deletions include the server action files, dialog components for actions like banning and deleting, and related utility functions. This massive cleanup is aimed at simplifying the codebase and the commit reflects adherence to project restructuring.
This commit is contained in:
giancarlo
2024-03-25 15:40:43 +08:00
parent 752259ab17
commit 95793c42b4
135 changed files with 1062 additions and 2872 deletions

View File

@@ -1,10 +1,9 @@
import { PageBody, PageHeader } from '@kit/ui/page';
import { Trans } from '@kit/ui/trans';
import { PersonalAccountCheckoutForm } from '~/(dashboard)/home/(user)/billing/_components/personal-account-checkout-form';
import { withI18n } from '~/lib/i18n/with-i18n';
import { PersonalAccountCheckoutForm } from './components/personal-account-checkout-form';
function PersonalAccountBillingPage() {
return (
<>

View File

@@ -0,0 +1,3 @@
// We reuse the page from the billing module
// as there is no need to create a new one.
export * from '../return/page';

View File

@@ -82,6 +82,10 @@ export async function createBillingPortalSession() {
const customerId = await getCustomerIdFromAccountId(accountId);
const returnUrl = getBillingPortalReturnUrl();
if (!customerId) {
throw new Error('Customer not found');
}
const { url } = await service.createBillingPortalSession({
customerId,
returnUrl,

View File

@@ -1,6 +1,6 @@
import { Page } from '@kit/ui/page';
import { HomeSidebar } from '~/(dashboard)/home/components/home-sidebar';
import { HomeSidebar } from '~/(dashboard)/home/_components/home-sidebar';
import { withI18n } from '~/lib/i18n/with-i18n';
function UserHomeLayout({ children }: React.PropsWithChildren) {