2.3.29 • Published 9 months ago
@ilb/dossier-ui v2.3.29
Установка:
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.28
10 months ago
2.3.27
10 months ago
2.3.29
9 months ago
2.3.24
11 months ago
2.3.26
10 months ago
2.3.25
10 months ago
2.3.19
12 months ago
2.3.23
12 months ago
2.3.20
12 months ago
2.3.22
12 months ago
2.3.21
12 months ago
2.3.17
1 year ago
2.3.16
1 year ago
2.3.18
1 year 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