remove sentry
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import '@/bridge';
|
||||
import { router } from '@/shared/configs/sentry';
|
||||
import { router } from '@/shared/configs/router';
|
||||
import { Toasts } from '@/shared/ui/toasts/toasts';
|
||||
import { useInitTheme } from './hooks';
|
||||
import { RouterProvider } from 'react-router-dom';
|
||||
|
||||
@@ -2,7 +2,7 @@ import { linkBridge, registerWebMethod } from '@webview-bridge/web';
|
||||
import { NavigateOptions } from 'react-router-dom';
|
||||
|
||||
import { AppBridge, AppPostMessageSchema } from './output';
|
||||
import { router } from './shared/configs/sentry';
|
||||
import { router } from './shared/configs/router';
|
||||
|
||||
// Register functions in the registerWebMethod object in your web code
|
||||
export const webBridge = registerWebMethod({
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { UserManagePage } from './user/manage-page';
|
||||
import { UserLoginAuthInfoPage } from './user/login-auth-info-page';
|
||||
@@ -14,7 +13,7 @@ export const AccountPages = () => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.account.user.base}>
|
||||
<Route path={ROUTE_NAMES.account.user.manage} element={<UserManagePage />} />
|
||||
<Route path={ROUTE_NAMES.account.user.loginAuthInfo} element={<UserLoginAuthInfoPage />} />
|
||||
@@ -27,7 +26,7 @@ export const AccountPages = () => {
|
||||
<Route path={ROUTE_NAMES.account.password.modifyLoginPassword} element={<PasswordModifyLoginPasswordPage />} />
|
||||
<Route path={ROUTE_NAMES.account.password.modifyCancelPassword} element={<PasswordModifyCancelPasswordPage />} />
|
||||
</Route>
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { ListPage } from './list-page';
|
||||
import { ArsListPage } from './ars/list-page';
|
||||
@@ -35,7 +34,7 @@ import { FaceAuthPage } from './face-auth/face-auth-page';
|
||||
export const AdditionalServicePages = () => {
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.additionalService.list} element={<ListPage />} />
|
||||
<Route path={ROUTE_NAMES.additionalService.ars.base}>
|
||||
<Route path={ROUTE_NAMES.additionalService.ars.list} element={<ArsListPage />} />
|
||||
@@ -85,7 +84,7 @@ export const AdditionalServicePages = () => {
|
||||
<Route path={ROUTE_NAMES.additionalService.faceAuth.base}>
|
||||
<Route path={ROUTE_NAMES.additionalService.faceAuth.list} element={<FaceAuthPage />} />
|
||||
</Route>
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { ListPage } from './list/list-page';
|
||||
|
||||
export const AlarmPages = () => {
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.alarm.list} element={<ListPage />} />
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { InfoPage } from './info/info-page';
|
||||
import { RegistrationStatusPage } from './registration-status/registration-status-page';
|
||||
@@ -7,10 +6,10 @@ import { RegistrationStatusPage } from './registration-status/registration-statu
|
||||
export const MerchantPages = () => {
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.merchant.info} element={<InfoPage />} />
|
||||
<Route path={ROUTE_NAMES.merchant.registrationStatus} element={<RegistrationStatusPage />} />
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { InfoPage } from './info/info-page';
|
||||
import { NotificationDataPage } from './notification-data/notification-data-page';
|
||||
@@ -7,10 +6,10 @@ import { NotificationDataPage } from './notification-data/notification-data-page
|
||||
export const PaymentPages = () => {
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.payment.info} element={<InfoPage />} />
|
||||
<Route path={ROUTE_NAMES.payment.notificationData} element={<NotificationDataPage />} />
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { CalendarPage } from './calendar/calendar-page';
|
||||
import { ListPage } from './list/list-page';
|
||||
@@ -7,10 +6,10 @@ import { ListPage } from './list/list-page';
|
||||
export const SettlementPages = () => {
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.settlement.calendar} element={<CalendarPage />} />
|
||||
<Route path={ROUTE_NAMES.settlement.list} element={<ListPage />} />
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { NoticeListPage } from './notice/list-page';
|
||||
import { FaqListPage } from './faq/list-page';
|
||||
@@ -9,7 +8,7 @@ import { QnaRegisterPage } from './qna/register-page';
|
||||
export const SupportPages = () => {
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.support.notice.base}>
|
||||
<Route path={ROUTE_NAMES.support.notice.list} element={<NoticeListPage />} />
|
||||
<Route path={ROUTE_NAMES.support.notice.list + '/:seq'} element={<NoticeListPage />} />
|
||||
@@ -22,7 +21,7 @@ export const SupportPages = () => {
|
||||
<Route path={ROUTE_NAMES.support.qna.list + '/:seq'} element={<QnaListPage />} />
|
||||
<Route path={ROUTE_NAMES.support.qna.register} element={<QnaRegisterPage />} />
|
||||
</Route>
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { SamplePage } from './sample/sample-page';
|
||||
|
||||
export const VatReturnPages = () => {
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.taxInvoice.sample} element={<SamplePage />} />
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { AllTransactionListPage } from './all-transaction/list-page';
|
||||
import { AllTransactionCancelPage } from './all-transaction/cancel-page';
|
||||
@@ -12,7 +11,7 @@ import { BillingChargePage } from './billing/charge-page';
|
||||
export const TransactionPages = () => {
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.transaction.allTransaction.base}>
|
||||
<Route path={ROUTE_NAMES.transaction.allTransaction.list} element={<AllTransactionListPage />} />
|
||||
<Route path={ROUTE_NAMES.transaction.allTransaction.cancel} element={<AllTransactionCancelPage />} />
|
||||
@@ -28,7 +27,7 @@ export const TransactionPages = () => {
|
||||
<Route path={ROUTE_NAMES.transaction.billing.list} element={<BillingListPage />} />
|
||||
<Route path={ROUTE_NAMES.transaction.billing.charge} element={<BillingChargePage />} />
|
||||
</Route>
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import { SentryRoutes } from '@/shared/configs/sentry';
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { ListPage } from './list-page';
|
||||
import { ReferencePage } from './reference-page';
|
||||
@@ -7,10 +6,10 @@ import { ReferencePage } from './reference-page';
|
||||
export const VatReturnPages = () => {
|
||||
return (
|
||||
<>
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route path={ROUTE_NAMES.vatReturn.list} element={<ListPage />} />
|
||||
<Route path={ROUTE_NAMES.vatReturn.reference} element={<ReferencePage />} />
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import * as Sentry from '@sentry/react';
|
||||
import { OverlayProvider } from 'overlay-kit';
|
||||
import { lazy } from 'react';
|
||||
import {
|
||||
@@ -15,8 +14,6 @@ import { SubLayout } from '@/widgets/sub-layout';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { toCamelCase } from '@/shared/lib/to-camel-case';
|
||||
|
||||
const sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV6(createBrowserRouter);
|
||||
|
||||
const modules = import.meta.glob('~/pages/**/*.tsx');
|
||||
|
||||
const lazyLoad = (path: string) => {
|
||||
@@ -47,13 +44,12 @@ const XkeypadPage = lazyLoad('/src/pages/xkeypad/xkeypad-page');
|
||||
const XkeypadSample = lazyLoad('/src/pages/xkeypad/xkeypad-sample');
|
||||
const TaxInvoicePages = lazyLoad('/src/pages/tax-invoice/tax-invoice-pages');
|
||||
|
||||
export const SentryRoutes = Sentry.withSentryReactRouterV6Routing(Routes);
|
||||
const Pages = () => {
|
||||
return (
|
||||
<OverlayProvider>
|
||||
<GlobalAPIErrorBoundary>
|
||||
<AppChildren />
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route element={<SubLayout />}>
|
||||
<Route element={<ProtectedRoute />}>
|
||||
<Route path={ROUTE_NAMES.home} element={<HomePage />} />
|
||||
@@ -73,13 +69,13 @@ const Pages = () => {
|
||||
</Route>
|
||||
<Route path="*" element={<NotFoundError />} />
|
||||
</Route>
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</GlobalAPIErrorBoundary>
|
||||
</OverlayProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export const router = sentryCreateBrowserRouter([
|
||||
export const router = createBrowserRouter([
|
||||
{
|
||||
path: '/',
|
||||
element: <Navigate to={ROUTE_NAMES.home} />,
|
||||
@@ -2,7 +2,7 @@ import { RouterState } from '@remix-run/router';
|
||||
import { useEffect } from 'react';
|
||||
import { NavigationType } from 'react-router';
|
||||
|
||||
import { router } from '@/shared/configs/sentry';
|
||||
import { router } from '@/shared/configs/router';
|
||||
|
||||
type IRouterListener = (state: RouterState) => void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user