mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 02:25:23 +00:00
FR-790: Move shops section module up (#595)
This commit is contained in:
parent
71a21bed43
commit
c6a18e28f7
@ -10,11 +10,7 @@ const ROUTES: Routes = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'webhooks',
|
path: 'webhooks',
|
||||||
loadChildren: () => import('./webhooks/webhooks.module').then((m) => m.WebhooksModule),
|
loadChildren: () => import('./webhooks').then((m) => m.WebhooksModule),
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'shops',
|
|
||||||
loadChildren: () => import('./shops').then((m) => m.ShopsModule),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'payment-link',
|
path: 'payment-link',
|
||||||
@ -26,7 +22,7 @@ const ROUTES: Routes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
redirectTo: 'shops',
|
redirectTo: 'payment-link',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -5,9 +5,6 @@ import { Component } from '@angular/core';
|
|||||||
})
|
})
|
||||||
export class IntegrationsComponent {
|
export class IntegrationsComponent {
|
||||||
links = [
|
links = [
|
||||||
{
|
|
||||||
path: 'shops',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: 'payment-link',
|
path: 'payment-link',
|
||||||
},
|
},
|
||||||
|
@ -12,6 +12,10 @@ const PAYMENT_SECTION_ROUTES: Routes = [
|
|||||||
path: 'realm/:realm',
|
path: 'realm/:realm',
|
||||||
component: PaymentSectionComponent,
|
component: PaymentSectionComponent,
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: 'shops',
|
||||||
|
loadChildren: () => import('./shops/shops.module').then((m) => m.ShopsModule),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'analytics',
|
path: 'analytics',
|
||||||
loadChildren: () => import('./analytics/analytics.module').then((m) => m.AnalyticsModule),
|
loadChildren: () => import('./analytics/analytics.module').then((m) => m.AnalyticsModule),
|
||||||
@ -34,7 +38,7 @@ const PAYMENT_SECTION_ROUTES: Routes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
redirectTo: 'analytics',
|
redirectTo: 'shops',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -7,7 +7,7 @@ import { PaymentInstitution, Shop as ApiShop } from '@dsh/api-codegen/capi/swagg
|
|||||||
import { ApiShopsService } from '@dsh/api/shop';
|
import { ApiShopsService } from '@dsh/api/shop';
|
||||||
import { mapToTimestamp, shareReplayRefCount } from '@dsh/operators';
|
import { mapToTimestamp, shareReplayRefCount } from '@dsh/operators';
|
||||||
|
|
||||||
import { filterShopsByRealm } from '../../../../operations/operators';
|
import { filterShopsByRealm } from '../../../operations/operators';
|
||||||
import { ShopBalance } from '../../types/shop-balance';
|
import { ShopBalance } from '../../types/shop-balance';
|
||||||
import { ShopFiltersData } from '../../types/shop-filters-data';
|
import { ShopFiltersData } from '../../types/shop-filters-data';
|
||||||
import { ShopItem } from '../../types/shop-item';
|
import { ShopItem } from '../../types/shop-item';
|
@ -1,4 +1,5 @@
|
|||||||
<div fxLayout="column" fxLayoutGap="32px">
|
<div *transloco="let t; scope: 'shops'; read: 'shops'" fxLayout="column" fxLayoutGap="32px">
|
||||||
|
<h1 class="dsh-display-1">{{ t('headline') }}</h1>
|
||||||
<div
|
<div
|
||||||
fxLayout="column-reverse"
|
fxLayout="column-reverse"
|
||||||
fxLayout.gt-sm="row"
|
fxLayout.gt-sm="row"
|
@ -13,8 +13,8 @@ import { ShopCreationService } from '@dsh/app/shared/components/shop-creation';
|
|||||||
import { provideMockService } from '@dsh/app/shared/tests';
|
import { provideMockService } from '@dsh/app/shared/tests';
|
||||||
import { ButtonModule } from '@dsh/components/buttons';
|
import { ButtonModule } from '@dsh/components/buttons';
|
||||||
|
|
||||||
import { PaymentInstitutionRealmService } from '../../services/payment-institution-realm.service';
|
import { PaymentInstitutionRealmService } from '../services/payment-institution-realm.service';
|
||||||
import { RealmShopsService } from '../../services/realm-shops.service';
|
import { RealmShopsService } from '../services/realm-shops.service';
|
||||||
import { FetchShopsService } from './services/fetch-shops/fetch-shops.service';
|
import { FetchShopsService } from './services/fetch-shops/fetch-shops.service';
|
||||||
import { ShopsBalanceService } from './services/shops-balance/shops-balance.service';
|
import { ShopsBalanceService } from './services/shops-balance/shops-balance.service';
|
||||||
import { ShopsFiltersStoreService } from './services/shops-filters-store/shops-filters-store.service';
|
import { ShopsFiltersStoreService } from './services/shops-filters-store/shops-filters-store.service';
|
@ -4,7 +4,7 @@ import { take } from 'rxjs/operators';
|
|||||||
|
|
||||||
import { ShopCreationService } from '@dsh/app/shared/components/shop-creation';
|
import { ShopCreationService } from '@dsh/app/shared/components/shop-creation';
|
||||||
|
|
||||||
import { PaymentInstitutionRealmService, RealmShopsService } from '../../services';
|
import { PaymentInstitutionRealmService, RealmShopsService } from '../services';
|
||||||
import { FetchShopsService } from './services/fetch-shops/fetch-shops.service';
|
import { FetchShopsService } from './services/fetch-shops/fetch-shops.service';
|
||||||
import { ShopsExpandedIdManagerService } from './shops-list/services/shops-expanded-id-manager/shops-expanded-id-manager.service';
|
import { ShopsExpandedIdManagerService } from './shops-list/services/shops-expanded-id-manager/shops-expanded-id-manager.service';
|
||||||
|
|
@ -7,6 +7,7 @@ export interface NavbarItemConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const toNavbarItemConfig = ({
|
export const toNavbarItemConfig = ({
|
||||||
|
shops,
|
||||||
analytics,
|
analytics,
|
||||||
integrations,
|
integrations,
|
||||||
operations,
|
operations,
|
||||||
@ -15,6 +16,11 @@ export const toNavbarItemConfig = ({
|
|||||||
}: {
|
}: {
|
||||||
[k: string]: string;
|
[k: string]: string;
|
||||||
}): NavbarItemConfig[] => [
|
}): NavbarItemConfig[] => [
|
||||||
|
{
|
||||||
|
routerLink: 'shops',
|
||||||
|
icon: BootstrapIconName.Shop,
|
||||||
|
label: shops,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
routerLink: 'analytics',
|
routerLink: 'analytics',
|
||||||
icon: BootstrapIconName.PieChart,
|
icon: BootstrapIconName.PieChart,
|
||||||
|
@ -25,7 +25,7 @@ import { FormatInputModule } from '@dsh/components/form-controls';
|
|||||||
import { DetailsItemModule } from '@dsh/components/layout';
|
import { DetailsItemModule } from '@dsh/components/layout';
|
||||||
|
|
||||||
import { DaDataModule } from '../../../../dadata';
|
import { DaDataModule } from '../../../../dadata';
|
||||||
import { ShopPayoutToolDetailsService } from '../../../../sections/payment-section/integrations/shops/services/shop-payout-tool-details/shop-payout-tool-details.service';
|
import { ShopPayoutToolDetailsService } from '../../../../sections/payment-section/shops/services/shop-payout-tool-details/shop-payout-tool-details.service';
|
||||||
import { CurrencyAutocompleteFieldModule } from '../../inputs/currency-autocomplete-field';
|
import { CurrencyAutocompleteFieldModule } from '../../inputs/currency-autocomplete-field';
|
||||||
import { NewContractorFormComponent } from './components/new-contractor-form/new-contractor-form.component';
|
import { NewContractorFormComponent } from './components/new-contractor-form/new-contractor-form.component';
|
||||||
import { OrgDetailsFormComponent } from './components/org-details-form/org-details-form.component';
|
import { OrgDetailsFormComponent } from './components/org-details-form/org-details-form.component';
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
"testEnvironment": "Тестовое окружение",
|
"testEnvironment": "Тестовое окружение",
|
||||||
"testEnvironmentHint": "Вы находитесь в тестовом окружении. Этот раздел предназначен для тестового подключения и проверки настроек приема платежей. Здесь же вы можете проверить функции личного кабинета, например, интеграцию магазина, создание и оплата счетов или осуществление возвратов.",
|
"testEnvironmentHint": "Вы находитесь в тестовом окружении. Этот раздел предназначен для тестового подключения и проверки настроек приема платежей. Здесь же вы можете проверить функции личного кабинета, например, интеграцию магазина, создание и оплата счетов или осуществление возвратов.",
|
||||||
"nav": {
|
"nav": {
|
||||||
|
"shops": "Магазины",
|
||||||
"operations": "Операции",
|
"operations": "Операции",
|
||||||
"reports": "Отчеты",
|
"reports": "Отчеты",
|
||||||
"analytics": "Аналитика",
|
"analytics": "Аналитика",
|
||||||
@ -76,7 +77,6 @@
|
|||||||
"headline": "Интеграция",
|
"headline": "Интеграция",
|
||||||
"tabs": {
|
"tabs": {
|
||||||
"webhooks": "Webhooks",
|
"webhooks": "Webhooks",
|
||||||
"shops": "Магазины",
|
|
||||||
"payment-link": "Платежная ссылка",
|
"payment-link": "Платежная ссылка",
|
||||||
"api-key": "API ключ"
|
"api-key": "API ключ"
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"headline": "Магазины",
|
||||||
"description": "Магазин - это отображение вашего веб-сайта или точки продаж в платформе. Используйте идентификатор магазина для технической интеграции с платформой.",
|
"description": "Магазин - это отображение вашего веб-сайта или точки продаж в платформе. Используйте идентификатор магазина для технической интеграции с платформой.",
|
||||||
"createShop": "Создать магазин",
|
"createShop": "Создать магазин",
|
||||||
"emptySearchResult": "Нет ни одного магазина",
|
"emptySearchResult": "Нет ни одного магазина",
|
||||||
|
Loading…
Reference in New Issue
Block a user