Socket
Book a DemoInstallSign in
Socket

@wildberries/portal-routes

Package Overview
Dependencies
Maintainers
0
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wildberries/portal-routes

Описание всех роутов портальский проектов (структура рекурсивная)

latest
npmnpm
Version
1.2.66
Version published
Maintainers
0
Created
Source

@wildberries/portal-routes

Описание всех роутов портальский проектов (структура рекурсивная)

{ routeName: часть имени роута routeNodeName: полное имя роута, routePath: часть пути до роута,

children: {
    routeName: часть имени роута
    routeNodeName: полное имя роута,
    routePath: часть пути до роута,
    
    children: { ... }
}

}

Для того чтобы задать новый роут

  • создаём файл где имя совпадает с названием роута
  • заполняем структуру объекта по аналогии с соседними файлами и правильным образом именуем экспорт роута, например
// Штрихкоды
export const BARCODE_ROUTE = {
  routeName: 'barcode',
  routeNodeName: 'barcode',
  routePath: '/barcode',
  children: {
    // Генерация штрихкодов
    generate: {
      routeName: 'generate',
      routeNodeName: 'barcode.generate',
      routePath: '/generate',
    },
    // Загрузка штрихкодов
    upload: {
      routeName: 'upload',
      routeNodeName: 'barcode.upload',
      routePath: '/upload',
    },
  },
};

FAQs

Package last updated on 20 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts