aboutsummaryrefslogtreecommitdiff
path: root/packages/auditor-backoffice-ui/src/InstanceRoutes.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/auditor-backoffice-ui/src/InstanceRoutes.tsx')
-rw-r--r--packages/auditor-backoffice-ui/src/InstanceRoutes.tsx245
1 files changed, 1 insertions, 244 deletions
diff --git a/packages/auditor-backoffice-ui/src/InstanceRoutes.tsx b/packages/auditor-backoffice-ui/src/InstanceRoutes.tsx
index c661fb900..4d7a423ed 100644
--- a/packages/auditor-backoffice-ui/src/InstanceRoutes.tsx
+++ b/packages/auditor-backoffice-ui/src/InstanceRoutes.tsx
@@ -1,6 +1,6 @@
/*
This file is part of GNU Taler
- (C) 2021-2023 Taler Systems S.A.
+ (C) 2021-2024 Taler Systems S.A.
GNU Taler is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -371,249 +371,6 @@ export function InstanceRoutes({
route(InstancePaths.deposit_confirmation_list);
}}
/>
- {/**
- * Order pages
- */}
- <Route
- path={InstancePaths.order_list}
- component={OrderListPage}
- onCreate={() => {
- route(InstancePaths.order_new);
- }}
- onSelect={(id: string) => {
- route(InstancePaths.order_details.replace(":oid", id));
- }}
- onUnauthorized={LoginPageAccessDenied}
- onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- />
- <Route
- path={InstancePaths.order_details}
- component={OrderDetailsPage}
- onUnauthorized={LoginPageAccessDenied}
- onLoadError={ServerErrorRedirectTo(InstancePaths.order_list)}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onBack={() => {
- route(InstancePaths.order_list);
- }}
- />
- <Route
- path={InstancePaths.order_new}
- component={OrderCreatePage}
- onConfirm={(orderId: string) => {
- route(InstancePaths.order_details.replace(":oid", orderId));
- }}
- onBack={() => {
- route(InstancePaths.order_list);
- }}
- />
- {/**
- * Transfer pages
- */}
- <Route
- path={InstancePaths.transfers_list}
- component={TransferListPage}
- onUnauthorized={LoginPageAccessDenied}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
- onCreate={() => {
- route(InstancePaths.transfers_new);
- }}
- />
- <Route
- path={InstancePaths.transfers_new}
- component={TransferCreatePage}
- onConfirm={() => {
- route(InstancePaths.transfers_list);
- }}
- onBack={() => {
- route(InstancePaths.transfers_list);
- }}
- />
- {/**
- * Webhooks pages
- */}
- <Route
- path={InstancePaths.webhooks_list}
- component={WebhookListPage}
- onUnauthorized={LoginPageAccessDenied}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
- onCreate={() => {
- route(InstancePaths.webhooks_new);
- }}
- onSelect={(id: string) => {
- route(InstancePaths.webhooks_update.replace(":tid", id));
- }}
- />
- <Route
- path={InstancePaths.webhooks_update}
- component={WebhookUpdatePage}
- onConfirm={() => {
- route(InstancePaths.webhooks_list);
- }}
- onUnauthorized={LoginPageAccessDenied}
- onLoadError={ServerErrorRedirectTo(InstancePaths.webhooks_list)}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onBack={() => {
- route(InstancePaths.webhooks_list);
- }}
- />
- <Route
- path={InstancePaths.webhooks_new}
- component={WebhookCreatePage}
- onConfirm={() => {
- route(InstancePaths.webhooks_list);
- }}
- onBack={() => {
- route(InstancePaths.webhooks_list);
- }}
- />
- {/**
- * Validator pages
- */}
- <Route
- path={InstancePaths.otp_devices_list}
- component={ValidatorListPage}
- onUnauthorized={LoginPageAccessDenied}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
- onCreate={() => {
- route(InstancePaths.otp_devices_new);
- }}
- onSelect={(id: string) => {
- route(InstancePaths.otp_devices_update.replace(":vid", id));
- }}
- />
- <Route
- path={InstancePaths.otp_devices_update}
- component={ValidatorUpdatePage}
- onConfirm={() => {
- route(InstancePaths.otp_devices_list);
- }}
- onUnauthorized={LoginPageAccessDenied}
- onLoadError={ServerErrorRedirectTo(InstancePaths.otp_devices_list)}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onBack={() => {
- route(InstancePaths.otp_devices_list);
- }}
- />
- <Route
- path={InstancePaths.otp_devices_new}
- component={ValidatorCreatePage}
- onConfirm={() => {
- route(InstancePaths.otp_devices_list);
- }}
- onBack={() => {
- route(InstancePaths.otp_devices_list);
- }}
- />
- {/**
- * Templates pages
- */}
- <Route
- path={InstancePaths.templates_list}
- component={TemplateListPage}
- onUnauthorized={LoginPageAccessDenied}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
- onCreate={() => {
- route(InstancePaths.templates_new);
- }}
- onNewOrder={(id: string) => {
- route(InstancePaths.templates_use.replace(":tid", id));
- }}
- onQR={(id: string) => {
- route(InstancePaths.templates_qr.replace(":tid", id));
- }}
- onSelect={(id: string) => {
- route(InstancePaths.templates_update.replace(":tid", id));
- }}
- />
- <Route
- path={InstancePaths.templates_update}
- component={TemplateUpdatePage}
- onConfirm={() => {
- route(InstancePaths.templates_list);
- }}
- onUnauthorized={LoginPageAccessDenied}
- onLoadError={ServerErrorRedirectTo(InstancePaths.templates_list)}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onBack={() => {
- route(InstancePaths.templates_list);
- }}
- />
- <Route
- path={InstancePaths.templates_new}
- component={TemplateCreatePage}
- onConfirm={() => {
- route(InstancePaths.templates_list);
- }}
- onBack={() => {
- route(InstancePaths.templates_list);
- }}
- />
- <Route
- path={InstancePaths.templates_use}
- component={TemplateUsePage}
- onOrderCreated={(id: string) => {
- route(InstancePaths.order_details.replace(":oid", id));
- }}
- onUnauthorized={LoginPageAccessDenied}
- onLoadError={ServerErrorRedirectTo(InstancePaths.templates_list)}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onBack={() => {
- route(InstancePaths.templates_list);
- }}
- />
- <Route
- path={InstancePaths.templates_qr}
- component={TemplateQrPage}
- onUnauthorized={LoginPageAccessDenied}
- onLoadError={ServerErrorRedirectTo(InstancePaths.templates_list)}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onBack={() => {
- route(InstancePaths.templates_list);
- }}
- />
-
- {/**
- * reserves pages
- */}
- <Route
- path={InstancePaths.reserves_list}
- component={ReservesListPage}
- onUnauthorized={LoginPageAccessDenied}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
- onSelect={(id: string) => {
- route(InstancePaths.reserves_details.replace(":rid", id));
- }}
- onCreate={() => {
- route(InstancePaths.reserves_new);
- }}
- />
- <Route
- path={InstancePaths.reserves_details}
- component={ReservesDetailsPage}
- onUnauthorized={LoginPageAccessDenied}
- onLoadError={ServerErrorRedirectTo(InstancePaths.reserves_list)}
- onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- onBack={() => {
- route(InstancePaths.reserves_list);
- }}
- />
- <Route
- path={InstancePaths.reserves_new}
- component={ReservesCreatePage}
- onConfirm={() => {
- route(InstancePaths.reserves_list);
- }}
- onBack={() => {
- route(InstancePaths.reserves_list);
- }}
- />
- <Route path={InstancePaths.kyc} component={ListKYCPage} />
<Route path={InstancePaths.interface} component={Settings} />
{/**
* Example pages