67 lines
1.6 KiB
TypeScript
67 lines
1.6 KiB
TypeScript
import {OrderStatus, Page, PageCode} from "./interface/data";
|
||
|
||
export const PageList: Page[] = [
|
||
{
|
||
code: PageCode.Auth,
|
||
name: 'Вход',
|
||
resName: 'auth',
|
||
onSideBar: false,
|
||
},
|
||
{
|
||
code: PageCode.Orders,
|
||
name: 'Заказы',
|
||
resName: 'orders',
|
||
onSideBar: true,
|
||
},
|
||
];
|
||
|
||
export const PageListWithBonus: Page[] = [
|
||
{
|
||
code: PageCode.Auth,
|
||
name: 'Вход',
|
||
resName: 'auth',
|
||
onSideBar: false,
|
||
},
|
||
{
|
||
code: PageCode.BonusProgram,
|
||
name: 'Ваша карта лояльности',
|
||
description: '',
|
||
resName: 'bonus-program',
|
||
onSideBar: true,
|
||
},
|
||
{
|
||
code: PageCode.Orders,
|
||
name: 'Ваши чеки',
|
||
description: '',
|
||
resName: 'orders',
|
||
onSideBar: true,
|
||
},
|
||
{
|
||
code: PageCode.UserData,
|
||
name: 'Заполнить анкету',
|
||
description: '',
|
||
resName: 'user-data',
|
||
onSideBar: true
|
||
},
|
||
{
|
||
code: PageCode.RefSystem,
|
||
name: 'Пригласить друга',
|
||
description: '',
|
||
resName: 'ref-system',
|
||
onSideBar: true,
|
||
},
|
||
];
|
||
|
||
export const orderStatuses: OrderStatus = {
|
||
'Cancelled': 'Отменен',
|
||
'InProcessing': 'В обработке',
|
||
'Unconfirmed': 'Принят',
|
||
'WaitCooking': 'Принят',
|
||
'ReadyForCooking': 'Принят',
|
||
'CookingStarted': 'Готовится',
|
||
'CookingCompleted': 'Приготовлен',
|
||
'Waiting': 'В пути',
|
||
'OnWay': 'В пути',
|
||
'Delivered': 'Выполнен',
|
||
'Closed': 'Выполнен',
|
||
}; |