2.3.23 • Published 9 months ago

@ilb/dossier-ui v2.3.23

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Установка:

npm i @ilb/classifiercomponent

Пример (классификация не работает):

git clone https://github.com/ilb/classifiercomponent.git
npm i
cp .env.example .env
npm run dev

Перейти на http://127.0.0.1:3010

Использование:

Задать переменную apps.loandossier.dossierDocumentPath в .env

Клиент:

<Classifier uuid={uuid} name="classifier" schema={classifierSchema} />

Пример schema: https://github.com/ilb/classifiercomponent/blob/master/src/mocks/schema.mjs

Сервер:

// pages/api/classifications/[...classifier].js
import { ClassifierApi } from "@ilb/classifiercomponent/src/server.mjs";
import { createScope } from "../../../libs/usecases/index.mjs";
import { onError, onNoMatch } from "../../../libs/middlewares/index.mjs";

export const config = {
  api: {
    bodyParser: false,
  },
};

export default ClassifierApi(createScope, onError, onNoMatch);

В DI должна быть переменная dossierBuilder являющаяся экземпляром класса DossierBuilder

И, случае использования классификатора: verificationService, verificationRepository, classifierQuantity

2.3.19

9 months ago

2.3.23

9 months ago

2.3.20

9 months ago

2.3.22

9 months ago

2.3.21

9 months ago

2.3.17

10 months ago

2.3.16

10 months ago

2.3.18

10 months ago

2.3.13

1 year ago

2.3.12

1 year ago

2.3.15

1 year ago

2.3.14

1 year ago

2.3.11

1 year ago