2.3.29 • Published 1 year 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
1 year ago
2.3.27
1 year ago
2.3.29
1 year ago
2.3.24
1 year ago
2.3.26
1 year ago
2.3.25
1 year ago
2.3.19
1 year ago
2.3.23
1 year ago
2.3.20
1 year ago
2.3.22
1 year ago
2.3.21
1 year ago
2.3.17
1 year ago
2.3.16
1 year ago
2.3.18
1 year ago
2.3.13
2 years ago
2.3.12
2 years ago
2.3.15
2 years ago
2.3.14
2 years ago
2.3.11
2 years ago