eli-video-interview 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/esm/components/BigBallSvg/index.js +3 -3
- package/esm/components/BigBallSvg/styled.d.ts +3 -0
- package/esm/components/BigBallSvg/styled.js +28 -0
- package/esm/components/Charts/Chart.js +19 -25
- package/esm/components/Charts/ReportPie.d.ts +4 -0
- package/esm/components/Charts/ReportPie.js +135 -0
- package/esm/components/Charts/TemplatePie.d.ts +4 -0
- package/esm/components/Charts/TemplatePie.js +81 -0
- package/esm/components/Charts/const.d.ts +15 -380
- package/esm/components/Charts/const.js +15 -380
- package/esm/components/Charts/interface.d.ts +15 -0
- package/esm/components/RootProvider/index.d.ts +3 -0
- package/esm/components/RootProvider/index.js +27 -0
- package/esm/{modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts → components/ScoreBigBall/index.d.ts} +0 -0
- package/esm/components/ScoreBigBall/index.js +26 -0
- package/esm/components/ScoreBigBall/interface.d.ts +7 -0
- package/esm/components/ScoreBigBall/interface.js +1 -0
- package/esm/components/ScoreBigBall/styled.d.ts +4 -0
- package/esm/components/ScoreBigBall/styled.js +12 -0
- package/esm/components/SvgIcon/index.d.ts +2 -2
- package/esm/components/SvgIcon/index.js +3 -2
- package/esm/components/SvgIcon/interface.d.ts +1 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/modules/ai-ability/Root.d.ts +3 -0
- package/esm/modules/ai-ability/Root.js +135 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +4 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +114 -0
- package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +7 -0
- package/esm/modules/ai-ability/components/UpdateAbility/interface.js +1 -0
- package/esm/modules/ai-ability/index.d.ts +2 -0
- package/esm/modules/ai-ability/index.js +7 -0
- package/esm/modules/ai-ability/interface.d.ts +15 -0
- package/esm/modules/ai-ability/interface.js +1 -0
- package/esm/modules/ai-ability/styled.d.ts +4 -0
- package/esm/modules/ai-ability/styled.js +6 -0
- package/esm/modules/ai-question/Root.js +7 -4
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/index.js +3 -3
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +1 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +5 -5
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +1 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.js +2 -2
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +7 -4
- package/esm/modules/ai-question/components/BootVideo/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/Item.js +4 -4
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/index.js +23 -16
- package/esm/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +2 -2
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +11 -8
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +2 -10
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +10 -3
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +5 -3
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +5 -1
- package/esm/modules/ai-question/index.d.ts +2 -2
- package/esm/modules/ai-question/index.js +2 -4
- package/esm/modules/ai-question/interface.d.ts +5 -3
- package/esm/modules/ai-question/useAiQuestion.d.ts +4 -2
- package/esm/modules/ai-question/useAiQuestion.js +3 -1
- package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +2 -2
- package/esm/modules/ai-report/components/ScoreReport/Report.js +11 -29
- package/esm/modules/ai-report/components/ScoreReport/index.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +0 -7
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +1 -4
- package/esm/modules/ai-report/components/ScoreReport/styled.js +1 -14
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +10 -9
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +16 -16
- package/esm/modules/ai-report/components/VideoQuestion/styled.js +2 -1
- package/esm/modules/ai-report/index.d.ts +2 -2
- package/esm/modules/ai-report/index.js +2 -4
- package/esm/modules/ai-report/interface.d.ts +10 -1
- package/esm/modules/ai-report/useAiReport.d.ts +0 -1
- package/esm/modules/ai-template/Root.d.ts +4 -0
- package/esm/modules/ai-template/Root.js +48 -0
- package/esm/modules/ai-template/components/CapabilityModel/const.d.ts +47 -0
- package/esm/modules/ai-template/components/CapabilityModel/const.js +56 -0
- package/esm/modules/ai-template/components/CapabilityModel/index.d.ts +3 -0
- package/esm/modules/ai-template/components/CapabilityModel/index.js +27 -0
- package/esm/modules/ai-template/components/QuestionList/Item.d.ts +4 -0
- package/esm/modules/ai-template/components/QuestionList/Item.js +24 -0
- package/esm/modules/ai-template/components/QuestionList/index.d.ts +3 -0
- package/esm/modules/ai-template/components/QuestionList/index.js +20 -0
- package/esm/modules/ai-template/components/QuestionList/interface.d.ts +5 -0
- package/esm/modules/ai-template/components/QuestionList/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateHeader/index.d.ts +4 -0
- package/esm/modules/ai-template/components/TemplateHeader/index.js +18 -0
- package/esm/modules/ai-template/components/TemplateHeader/interface.d.ts +6 -0
- package/esm/modules/ai-template/components/TemplateHeader/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateList/index.d.ts +3 -0
- package/esm/modules/ai-template/components/TemplateList/index.js +96 -0
- package/esm/modules/ai-template/components/TemplateList/interface.d.ts +24 -0
- package/esm/modules/ai-template/components/TemplateList/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +37 -0
- package/esm/modules/ai-template/components/TemplateList/styled.js +77 -0
- package/esm/modules/ai-template/components/TemplateMenu/index.d.ts +3 -0
- package/esm/modules/ai-template/components/TemplateMenu/index.js +57 -0
- package/esm/modules/ai-template/components/TemplateMenu/interface.d.ts +12 -0
- package/esm/modules/ai-template/components/TemplateMenu/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +29 -0
- package/esm/modules/ai-template/components/TemplateMenu/styled.js +16 -0
- package/esm/modules/ai-template/index.d.ts +4 -0
- package/esm/modules/{ai-report/components/ScoreReport/RosePie.js → ai-template/index.js} +8 -7
- package/esm/modules/ai-template/interface.d.ts +24 -0
- package/esm/modules/ai-template/interface.js +1 -0
- package/esm/services/ai-ability.d.ts +12 -0
- package/esm/services/ai-ability.js +7 -0
- package/esm/services/ai-question.d.ts +0 -1
- package/esm/services/ai-question.js +1 -3
- package/esm/services/ai-template.d.ts +4 -0
- package/esm/services/ai-template.js +9 -0
- package/esm/store/ai-question/ai-analysis-store.js +2 -1
- package/esm/store/ai-question/global-store.d.ts +9 -6
- package/esm/store/ai-question/global-store.js +0 -1
- package/esm/store/ai-question/question-model-store.js +9 -7
- package/esm/store/ai-report/global-store.d.ts +3 -6
- package/esm/store/ai-report/global-store.js +4 -6
- package/esm/store/ai-template/global-store.d.ts +35 -0
- package/esm/store/ai-template/global-store.js +26 -0
- package/esm/utils/config.d.ts +1 -0
- package/esm/utils/interceptor.js +7 -2
- package/lib/components/BigBallSvg/index.js +2 -5
- package/lib/components/BigBallSvg/styled.d.ts +3 -0
- package/lib/components/BigBallSvg/styled.js +31 -0
- package/lib/components/Charts/Chart.js +41 -27
- package/lib/components/Charts/ReportPie.d.ts +4 -0
- package/lib/components/Charts/ReportPie.js +140 -0
- package/lib/components/Charts/TemplatePie.d.ts +4 -0
- package/lib/components/Charts/TemplatePie.js +86 -0
- package/lib/components/Charts/const.d.ts +15 -380
- package/lib/components/Charts/const.js +16 -381
- package/lib/components/Charts/interface.d.ts +15 -0
- package/lib/components/RootProvider/index.d.ts +3 -0
- package/lib/components/RootProvider/index.js +29 -0
- package/lib/{modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts → components/ScoreBigBall/index.d.ts} +0 -0
- package/lib/components/ScoreBigBall/index.js +31 -0
- package/lib/components/ScoreBigBall/interface.d.ts +7 -0
- package/lib/components/ScoreBigBall/interface.js +2 -0
- package/lib/components/ScoreBigBall/styled.d.ts +4 -0
- package/lib/components/ScoreBigBall/styled.js +15 -0
- package/lib/components/SvgIcon/index.d.ts +2 -2
- package/lib/components/SvgIcon/index.js +26 -2
- package/lib/components/SvgIcon/interface.d.ts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -1
- package/lib/modules/ai-ability/Root.d.ts +3 -0
- package/lib/modules/ai-ability/Root.js +140 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +4 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +116 -0
- package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +7 -0
- package/lib/modules/ai-ability/components/UpdateAbility/interface.js +2 -0
- package/lib/modules/ai-ability/index.d.ts +2 -0
- package/lib/modules/ai-ability/index.js +12 -0
- package/lib/modules/ai-ability/interface.d.ts +15 -0
- package/lib/modules/ai-ability/interface.js +2 -0
- package/lib/modules/ai-ability/styled.d.ts +4 -0
- package/lib/modules/ai-ability/styled.js +9 -0
- package/lib/modules/ai-question/Root.js +7 -4
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +2 -2
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +2 -2
- package/lib/modules/ai-question/components/AiAnalysis/index.js +2 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +7 -7
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +5 -5
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +2 -2
- package/lib/modules/ai-question/components/BaseAccordion/index.js +5 -5
- package/lib/modules/ai-question/components/BaseAccordion/styled.js +7 -4
- package/lib/modules/ai-question/components/BootVideo/index.js +3 -3
- package/lib/modules/ai-question/components/QuestionModel/Item.js +3 -3
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +2 -2
- package/lib/modules/ai-question/components/QuestionModel/index.js +23 -16
- package/lib/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +3 -3
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +11 -8
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +2 -2
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +1 -9
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +9 -2
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +2 -2
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +7 -5
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +5 -1
- package/lib/modules/ai-question/index.d.ts +2 -2
- package/lib/modules/ai-question/index.js +2 -4
- package/lib/modules/ai-question/interface.d.ts +5 -3
- package/lib/modules/ai-question/useAiQuestion.d.ts +4 -2
- package/lib/modules/ai-question/useAiQuestion.js +3 -1
- package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +2 -2
- package/lib/modules/ai-report/components/ScoreReport/Report.js +8 -26
- package/lib/modules/ai-report/components/ScoreReport/index.js +3 -3
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +0 -7
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +1 -4
- package/lib/modules/ai-report/components/ScoreReport/styled.js +1 -14
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +10 -9
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +16 -16
- package/lib/modules/ai-report/components/VideoQuestion/styled.js +3 -2
- package/lib/modules/ai-report/index.d.ts +2 -2
- package/lib/modules/ai-report/index.js +2 -4
- package/lib/modules/ai-report/interface.d.ts +10 -1
- package/lib/modules/ai-report/useAiReport.d.ts +0 -1
- package/lib/modules/ai-template/Root.d.ts +4 -0
- package/lib/modules/ai-template/Root.js +53 -0
- package/lib/modules/ai-template/components/CapabilityModel/const.d.ts +47 -0
- package/lib/modules/ai-template/components/CapabilityModel/const.js +59 -0
- package/lib/modules/ai-template/components/CapabilityModel/index.d.ts +3 -0
- package/lib/modules/ai-template/components/CapabilityModel/index.js +32 -0
- package/lib/modules/ai-template/components/QuestionList/Item.d.ts +4 -0
- package/lib/modules/ai-template/components/QuestionList/Item.js +26 -0
- package/lib/modules/ai-template/components/QuestionList/index.d.ts +3 -0
- package/lib/modules/ai-template/components/QuestionList/index.js +25 -0
- package/lib/modules/ai-template/components/QuestionList/interface.d.ts +5 -0
- package/lib/modules/ai-template/components/QuestionList/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateHeader/index.d.ts +4 -0
- package/lib/modules/ai-template/components/TemplateHeader/index.js +20 -0
- package/lib/modules/ai-template/components/TemplateHeader/interface.d.ts +6 -0
- package/lib/modules/ai-template/components/TemplateHeader/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateList/index.d.ts +3 -0
- package/lib/modules/ai-template/components/TemplateList/index.js +101 -0
- package/lib/modules/ai-template/components/TemplateList/interface.d.ts +24 -0
- package/lib/modules/ai-template/components/TemplateList/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +37 -0
- package/lib/modules/ai-template/components/TemplateList/styled.js +80 -0
- package/lib/modules/ai-template/components/TemplateMenu/index.d.ts +3 -0
- package/lib/modules/ai-template/components/TemplateMenu/index.js +59 -0
- package/lib/modules/ai-template/components/TemplateMenu/interface.d.ts +12 -0
- package/lib/modules/ai-template/components/TemplateMenu/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +29 -0
- package/lib/modules/ai-template/components/TemplateMenu/styled.js +19 -0
- package/lib/modules/ai-template/index.d.ts +4 -0
- package/lib/modules/{ai-report/components/ScoreReport/RosePie.js → ai-template/index.js} +8 -7
- package/lib/modules/ai-template/interface.d.ts +24 -0
- package/lib/modules/ai-template/interface.js +2 -0
- package/lib/services/ai-ability.d.ts +12 -0
- package/lib/services/ai-ability.js +13 -0
- package/lib/services/ai-question.d.ts +0 -1
- package/lib/services/ai-question.js +1 -4
- package/lib/services/ai-template.d.ts +4 -0
- package/lib/services/ai-template.js +16 -0
- package/lib/store/ai-question/ai-analysis-store.js +2 -1
- package/lib/store/ai-question/global-store.d.ts +9 -6
- package/lib/store/ai-question/global-store.js +0 -1
- package/lib/store/ai-question/question-model-store.js +9 -7
- package/lib/store/ai-report/global-store.d.ts +3 -6
- package/lib/store/ai-report/global-store.js +3 -5
- package/lib/store/ai-template/global-store.d.ts +35 -0
- package/lib/store/ai-template/global-store.js +29 -0
- package/lib/utils/config.d.ts +1 -0
- package/lib/utils/interceptor.js +7 -2
- package/package.json +18 -111
- package/esm/components/BigBallSvg/index.module.css +0 -37
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +0 -20
- package/esm/modules/ai-question/components/QuestionTemplate/styled.d.ts +0 -87
- package/esm/modules/ai-question/components/QuestionTemplate/styled.js +0 -33
- package/esm/modules/ai-report/components/ScoreReport/RosePie.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/ScoreBigBall.js +0 -26
- package/esm/modules/ai-report/components/ScoreReport/const.d.ts +0 -34
- package/esm/modules/ai-report/components/ScoreReport/const.js +0 -77
- package/lib/components/BigBallSvg/index.module.css +0 -37
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +0 -25
- package/lib/modules/ai-question/components/QuestionTemplate/styled.d.ts +0 -87
- package/lib/modules/ai-question/components/QuestionTemplate/styled.js +0 -39
- package/lib/modules/ai-report/components/ScoreReport/RosePie.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/ScoreBigBall.js +0 -31
- package/lib/modules/ai-report/components/ScoreReport/const.d.ts +0 -34
- package/lib/modules/ai-report/components/ScoreReport/const.js +0 -80
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostAiTemplatesIncrUse = exports.PostAiTemplatesDetail = exports.PostAiTemplatesList = exports.PostAiTemplatesCollectionList = void 0;
|
|
4
|
+
var request_1 = require("../utils/request");
|
|
5
|
+
// 岗位模版分类列表
|
|
6
|
+
var PostAiTemplatesCollectionList = function () { return (0, request_1.POST)({ url: '/standard/b/aiTemplatesCollection/list' }); };
|
|
7
|
+
exports.PostAiTemplatesCollectionList = PostAiTemplatesCollectionList;
|
|
8
|
+
// 岗位模版列表
|
|
9
|
+
var PostAiTemplatesList = function (token) { return (0, request_1.POST)({ url: '/standard/b/aiTemplates/list', data: { token: token } }); };
|
|
10
|
+
exports.PostAiTemplatesList = PostAiTemplatesList;
|
|
11
|
+
// 岗位模版详情
|
|
12
|
+
var PostAiTemplatesDetail = function (token) { return (0, request_1.POST)({ url: '/standard/b/aiTemplates/detail', data: { token: token } }); };
|
|
13
|
+
exports.PostAiTemplatesDetail = PostAiTemplatesDetail;
|
|
14
|
+
// 增加模版使用次数
|
|
15
|
+
var PostAiTemplatesIncrUse = function (token) { return (0, request_1.POST)({ url: '/standard/b/aiTemplates/IncrUse', data: { token: token } }); };
|
|
16
|
+
exports.PostAiTemplatesIncrUse = PostAiTemplatesIncrUse;
|
|
@@ -52,11 +52,12 @@ exports.useAiAnalysisStore = (_a = (0, hox_1.createStore)(function () {
|
|
|
52
52
|
var token = _a.token, weight = _a.weight;
|
|
53
53
|
if (weightsLen <= 1 && !inInit) {
|
|
54
54
|
var dataLength = data.length;
|
|
55
|
-
var averageWeight = 100 / dataLength;
|
|
55
|
+
var averageWeight = Math.floor((100 / dataLength) * 100) / 100;
|
|
56
56
|
var disableWeight = 100 - Math.floor(averageWeight * (dataLength - 1) * 100) / 100;
|
|
57
57
|
return token === data[dataLength - 1].token ? (0, utils_1.computeDecimalValue)(disableWeight.toString()) : (0, utils_1.computeDecimalValue)(averageWeight.toString());
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
60
|
+
console.log(beforeTotalWeight);
|
|
60
61
|
return lastToken !== token ? weight : (0, utils_1.computeDecimalValue)((100 - beforeTotalWeight).toString());
|
|
61
62
|
}
|
|
62
63
|
};
|
|
@@ -3,30 +3,33 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
3
3
|
updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
|
|
4
4
|
token: string;
|
|
5
5
|
name?: string | undefined;
|
|
6
|
-
|
|
6
|
+
templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
7
7
|
mediaList?: {
|
|
8
8
|
url: string;
|
|
9
9
|
thumbUrl: string;
|
|
10
10
|
}[] | undefined;
|
|
11
|
-
onLoad?: ((steps
|
|
11
|
+
onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
12
|
+
onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
12
13
|
}> | undefined) => {
|
|
13
14
|
updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
|
|
14
15
|
token: string;
|
|
15
16
|
name?: string | undefined;
|
|
16
|
-
|
|
17
|
+
templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
17
18
|
mediaList?: {
|
|
18
19
|
url: string;
|
|
19
20
|
thumbUrl: string;
|
|
20
21
|
}[] | undefined;
|
|
21
|
-
onLoad?: ((steps
|
|
22
|
+
onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
23
|
+
onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
22
24
|
}, getAiQuestionStore: () => {
|
|
23
25
|
updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
|
|
24
26
|
token: string;
|
|
25
27
|
name?: string | undefined;
|
|
26
|
-
|
|
28
|
+
templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
27
29
|
mediaList?: {
|
|
28
30
|
url: string;
|
|
29
31
|
thumbUrl: string;
|
|
30
32
|
}[] | undefined;
|
|
31
|
-
onLoad?: ((steps
|
|
33
|
+
onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
34
|
+
onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
32
35
|
} | undefined;
|
|
@@ -19,7 +19,6 @@ exports.useAiQuestionStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
|
19
19
|
var _a = (0, ahooks_1.useSetState)({
|
|
20
20
|
token: '',
|
|
21
21
|
name: '',
|
|
22
|
-
historyPatterns: [],
|
|
23
22
|
mediaList: [],
|
|
24
23
|
}), state = _a[0], updateState = _a[1];
|
|
25
24
|
return __assign(__assign({}, state), { updateState: updateState });
|
|
@@ -28,7 +28,8 @@ exports.useQuestionModelStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
|
28
28
|
* 权重值计算
|
|
29
29
|
* @param steps 模型数据
|
|
30
30
|
*/
|
|
31
|
-
var computeWeight = (0, react_1.useCallback)(function (steps) {
|
|
31
|
+
var computeWeight = (0, react_1.useCallback)(function (steps, isManualUpdate) {
|
|
32
|
+
if (isManualUpdate === void 0) { isManualUpdate = false; }
|
|
32
33
|
var lastAiTestIndex = 0;
|
|
33
34
|
// AI评分题
|
|
34
35
|
var aiTypeList = steps.filter(function (step, index) {
|
|
@@ -56,8 +57,8 @@ exports.useQuestionModelStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
|
56
57
|
var totalDuration = 0;
|
|
57
58
|
var getWeight = function (_a, i) {
|
|
58
59
|
var weight = _a.weight;
|
|
59
|
-
if (weightsLen <= 1) {
|
|
60
|
-
var averageWeight = 100 / aiTypeListLength;
|
|
60
|
+
if (weightsLen <= 1 && !isManualUpdate) {
|
|
61
|
+
var averageWeight = Math.floor((100 / aiTypeListLength) * 100) / 100;
|
|
61
62
|
var disableWeight = 100 - Math.floor(averageWeight * (aiTypeListLength - 1) * 100) / 100;
|
|
62
63
|
return i === lastAiTestIndex ? (0, utils_1.computeDecimalValue)(disableWeight.toString()) : (0, utils_1.computeDecimalValue)(averageWeight.toString());
|
|
63
64
|
}
|
|
@@ -90,7 +91,7 @@ exports.useQuestionModelStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
|
90
91
|
var maxInputValue = (0, utils_1.computeDecimalValue)((curOriginalWeight + ((disabledStep === null || disabledStep === void 0 ? void 0 : disabledStep.weight) ? Number(disabledStep === null || disabledStep === void 0 ? void 0 : disabledStep.weight) : 0)).toString());
|
|
91
92
|
if (Number(formatValue) <= maxInputValue) {
|
|
92
93
|
var newSteps = (0, immutability_helper_1.default)(steps, (_a = {}, _a[index] = { weight: { $set: formatValue } }, _a));
|
|
93
|
-
computeWeight(newSteps);
|
|
94
|
+
computeWeight(newSteps, true);
|
|
94
95
|
}
|
|
95
96
|
}, [steps, computeWeight]);
|
|
96
97
|
/**
|
|
@@ -98,11 +99,12 @@ exports.useQuestionModelStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
|
98
99
|
* @param modelStep 新增数据项
|
|
99
100
|
*/
|
|
100
101
|
var addModel = (0, react_1.useCallback)(function (modelStep) {
|
|
102
|
+
var isManualUpdate = !steps.length;
|
|
101
103
|
var stepArr = Array.isArray(modelStep)
|
|
102
|
-
? modelStep.map(function (item) { return (__assign(__assign({}, item), { isNotCompute: true, uniqueId: (0, utils_1.uniqueId)() })); })
|
|
103
|
-
: [__assign(__assign({}, modelStep), { isNotCompute: true, uniqueId: (0, utils_1.uniqueId)() })];
|
|
104
|
+
? modelStep.map(function (item) { return (__assign(__assign({}, item), { weight: isManualUpdate ? item.weight : 0, isNotCompute: true, uniqueId: (0, utils_1.uniqueId)() })); })
|
|
105
|
+
: [__assign(__assign({}, modelStep), { weight: isManualUpdate ? modelStep.weight : 0, isNotCompute: true, uniqueId: (0, utils_1.uniqueId)() })];
|
|
104
106
|
var newSteps = (0, immutability_helper_1.default)(steps, { $push: stepArr });
|
|
105
|
-
computeWeight(newSteps);
|
|
107
|
+
computeWeight(newSteps, isManualUpdate);
|
|
106
108
|
}, [computeWeight, steps]);
|
|
107
109
|
/**
|
|
108
110
|
* 编辑模型数据
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
import { AiInterviewReportList, AiReportProps } from '@/modules/ai-report/interface';
|
|
3
3
|
export declare const useAiReportStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
4
4
|
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
5
|
-
updateState: (
|
|
5
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiReportProps>;
|
|
6
6
|
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
7
7
|
token: string;
|
|
8
8
|
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
9
9
|
disabledScore?: boolean | undefined;
|
|
10
10
|
reminderSent?: boolean | undefined;
|
|
11
|
-
showAbilitiesDetails?: boolean | undefined;
|
|
12
11
|
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
13
12
|
stepToken?: string | undefined;
|
|
14
13
|
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
@@ -21,13 +20,12 @@ export declare const useAiReportStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
|
21
20
|
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
22
21
|
}> | undefined) => {
|
|
23
22
|
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
24
|
-
updateState: (
|
|
23
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiReportProps>;
|
|
25
24
|
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
26
25
|
token: string;
|
|
27
26
|
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
28
27
|
disabledScore?: boolean | undefined;
|
|
29
28
|
reminderSent?: boolean | undefined;
|
|
30
|
-
showAbilitiesDetails?: boolean | undefined;
|
|
31
29
|
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
32
30
|
stepToken?: string | undefined;
|
|
33
31
|
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
@@ -40,13 +38,12 @@ export declare const useAiReportStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
|
40
38
|
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
41
39
|
}, getAiReportStore: () => {
|
|
42
40
|
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
43
|
-
updateState: (
|
|
41
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiReportProps>;
|
|
44
42
|
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
45
43
|
token: string;
|
|
46
44
|
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
47
45
|
disabledScore?: boolean | undefined;
|
|
48
46
|
reminderSent?: boolean | undefined;
|
|
49
|
-
showAbilitiesDetails?: boolean | undefined;
|
|
50
47
|
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
51
48
|
stepToken?: string | undefined;
|
|
52
49
|
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
@@ -14,18 +14,16 @@ var _a;
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.getAiReportStore = exports.useAiReportStore = void 0;
|
|
16
16
|
var react_1 = require("react");
|
|
17
|
+
var ahooks_1 = require("ahooks");
|
|
17
18
|
var hox_1 = require("hox");
|
|
18
19
|
exports.useAiReportStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
19
|
-
var _a = (0,
|
|
20
|
+
var _a = (0, ahooks_1.useSetState)({
|
|
20
21
|
token: '',
|
|
21
22
|
stepToken: '',
|
|
22
23
|
disabledScore: true,
|
|
23
24
|
scoreRankIntervals: [],
|
|
24
25
|
operableButtons: [],
|
|
25
|
-
}), state = _a[0],
|
|
26
|
+
}), state = _a[0], updateState = _a[1];
|
|
26
27
|
var _b = (0, react_1.useState)(), reportResult = _b[0], updateReportResult = _b[1];
|
|
27
|
-
var updateState = (0, react_1.useCallback)(function (params) {
|
|
28
|
-
setState(__assign(__assign({}, state), params));
|
|
29
|
-
}, [state]);
|
|
30
28
|
return __assign(__assign({}, state), { reportResult: reportResult, updateState: updateState, updateReportResult: updateReportResult });
|
|
31
29
|
}), _a[0]), exports.getAiReportStore = _a[1];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AiTemplateProps, AiTemplateState } from '@/modules/ai-template/interface';
|
|
2
|
+
export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
+
updateProps: import("ahooks/lib/useSetState").SetState<AiTemplateProps>;
|
|
4
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiTemplateState>;
|
|
5
|
+
handleIncrUse: (token: string) => void;
|
|
6
|
+
menuId: string;
|
|
7
|
+
previewItem?: import("@/modules/ai-template/interface").PreviewItem | undefined;
|
|
8
|
+
open: boolean;
|
|
9
|
+
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
10
|
+
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
11
|
+
onClose?: (() => void) | undefined;
|
|
12
|
+
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
13
|
+
}> | undefined) => {
|
|
14
|
+
updateProps: import("ahooks/lib/useSetState").SetState<AiTemplateProps>;
|
|
15
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiTemplateState>;
|
|
16
|
+
handleIncrUse: (token: string) => void;
|
|
17
|
+
menuId: string;
|
|
18
|
+
previewItem?: import("@/modules/ai-template/interface").PreviewItem | undefined;
|
|
19
|
+
open: boolean;
|
|
20
|
+
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
21
|
+
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
22
|
+
onClose?: (() => void) | undefined;
|
|
23
|
+
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
24
|
+
}, getAiTemplateStore: () => {
|
|
25
|
+
updateProps: import("ahooks/lib/useSetState").SetState<AiTemplateProps>;
|
|
26
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiTemplateState>;
|
|
27
|
+
handleIncrUse: (token: string) => void;
|
|
28
|
+
menuId: string;
|
|
29
|
+
previewItem?: import("@/modules/ai-template/interface").PreviewItem | undefined;
|
|
30
|
+
open: boolean;
|
|
31
|
+
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
32
|
+
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
33
|
+
onClose?: (() => void) | undefined;
|
|
34
|
+
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
35
|
+
} | undefined;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var _a;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.getAiTemplateStore = exports.useAiTemplateStore = void 0;
|
|
16
|
+
var react_1 = require("react");
|
|
17
|
+
var ahooks_1 = require("ahooks");
|
|
18
|
+
var hox_1 = require("hox");
|
|
19
|
+
var ai_template_1 = require("../../services/ai-template");
|
|
20
|
+
exports.useAiTemplateStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
21
|
+
var _a = (0, ahooks_1.useSetState)({ open: false, historyPatterns: [] }), props = _a[0], updateProps = _a[1];
|
|
22
|
+
var _b = (0, ahooks_1.useSetState)({ menuId: '' }), state = _b[0], updateState = _b[1];
|
|
23
|
+
var handleIncrUse = (0, ahooks_1.useRequest)(ai_template_1.PostAiTemplatesIncrUse, { manual: true }).run;
|
|
24
|
+
(0, react_1.useEffect)(function () {
|
|
25
|
+
!props.open && updateState({ menuId: '' });
|
|
26
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
27
|
+
}, [props.open]);
|
|
28
|
+
return __assign(__assign(__assign({}, props), state), { updateProps: updateProps, updateState: updateState, handleIncrUse: handleIncrUse });
|
|
29
|
+
}), _a[0]), exports.getAiTemplateStore = _a[1];
|
package/lib/utils/config.d.ts
CHANGED
package/lib/utils/interceptor.js
CHANGED
|
@@ -54,11 +54,16 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
54
54
|
var js_cookie_1 = __importDefault(require("js-cookie"));
|
|
55
55
|
var dayjs_1 = __importDefault(require("dayjs"));
|
|
56
56
|
var fbm_ui_1 = require("fbm-ui");
|
|
57
|
+
var MAX_RETRY_COUNT = 3;
|
|
57
58
|
var service = axios_1.default.create({ timeout: 60000 });
|
|
59
|
+
var RETRIED_COUNT = 0;
|
|
58
60
|
var tautology = function (err) {
|
|
59
61
|
var back = new Promise(function (resolve) {
|
|
60
62
|
console.log('接口' + err.config.url + '请求失败,重新请求');
|
|
61
|
-
|
|
63
|
+
RETRIED_COUNT++;
|
|
64
|
+
if (RETRIED_COUNT <= MAX_RETRY_COUNT) {
|
|
65
|
+
resolve(true);
|
|
66
|
+
}
|
|
62
67
|
});
|
|
63
68
|
return back.then(function () {
|
|
64
69
|
console.log(err);
|
|
@@ -90,7 +95,7 @@ var handleParams = function (config) { return __awaiter(void 0, void 0, void 0,
|
|
|
90
95
|
avocadoConfig = window['AvocadoVideoInterviewConfig'];
|
|
91
96
|
cookieAccessToken = js_cookie_1.default.get('avocado-video-interview-access-token');
|
|
92
97
|
ts = new Date().getTime();
|
|
93
|
-
config.baseURL = avocadoConfig.server_url
|
|
98
|
+
config.baseURL = avocadoConfig.server_url;
|
|
94
99
|
return [4 /*yield*/, (cookieAccessToken ? Promise.resolve({}) : avocadoConfig.auth_callback())];
|
|
95
100
|
case 1:
|
|
96
101
|
_a = _b.sent(), accessToken = _a.accessToken, expireTime = _a.expireTime;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eli-video-interview",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "鳄梨科技 AI视频面试 React SDK",
|
|
5
5
|
"author": "鳄梨科技",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,82 +12,36 @@
|
|
|
12
12
|
"lib",
|
|
13
13
|
"esm"
|
|
14
14
|
],
|
|
15
|
-
"husky": {
|
|
16
|
-
"hooks": {
|
|
17
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
18
|
-
"pre-commit": "lint-staged"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"lint-staged": {
|
|
22
|
-
"src/**/*.{js,jsx,ts,tsx}": [
|
|
23
|
-
"prettier --write",
|
|
24
|
-
"eslint --fix"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
15
|
"dependencies": {
|
|
28
|
-
"@avocadoui/echarts": "^1.0.0",
|
|
29
|
-
"@juggle/resize-observer": "^3.3.1",
|
|
30
16
|
"@mui/icons-material": "^5.8.3",
|
|
31
17
|
"@mui/lab": "^5.0.0-alpha.85",
|
|
32
|
-
"@
|
|
33
|
-
"@testing-library/react": "^13.2.0",
|
|
34
|
-
"@testing-library/user-event": "^13.5.0",
|
|
35
|
-
"@types/jest": "^27.5.1",
|
|
36
|
-
"@types/node": "^16.11.36",
|
|
37
|
-
"@types/react": "^16.0.0",
|
|
38
|
-
"@types/react-dom": "^16.0.0",
|
|
18
|
+
"@mui/styles": "^5.6.0",
|
|
39
19
|
"ahooks": "^3.4.1",
|
|
40
20
|
"array-move": "^4.0.0",
|
|
41
21
|
"axios": "^0.27.2",
|
|
42
22
|
"dayjs": "^1.11.4",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
23
|
+
"echarts": "^5.3.3",
|
|
24
|
+
"fbm-ui": "^1.4.104",
|
|
25
|
+
"hox": "^2.1.0",
|
|
45
26
|
"immutability-helper": "^3.1.1",
|
|
46
|
-
"react": "17.0.2",
|
|
47
|
-
"react-dom": "17.0.2",
|
|
48
|
-
"react-router-dom": "^6.3.0",
|
|
49
|
-
"react-scripts": "5.0.1",
|
|
50
27
|
"react-svg": "^15.1.3",
|
|
51
28
|
"sortablejs": "^1.15.0",
|
|
52
29
|
"typescript": "^4.7.2",
|
|
53
|
-
"use-immer": "^0.7.0"
|
|
54
|
-
"web-vitals": "^2.1.4"
|
|
30
|
+
"use-immer": "^0.7.0"
|
|
55
31
|
},
|
|
56
32
|
"scripts": {
|
|
57
33
|
"clean": "rimraf lib esm build",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"build": "
|
|
61
|
-
"lib": "npm run
|
|
62
|
-
"lib:cjs": "
|
|
63
|
-
"lib:esm": "
|
|
64
|
-
"lib:debug": "npm run clean && npm run lib:debug:cjs && npm run lib:debug:esm",
|
|
65
|
-
"lib:debug:cjs": "env REACT_APP_ENV=demo2 node ./scripts/lib-cjs.js",
|
|
66
|
-
"lib:debug:esm": "env REACT_APP_ENV=demo2 node ./scripts/lib-esm.js",
|
|
34
|
+
"serve": "npm run dev",
|
|
35
|
+
"dev": "vite",
|
|
36
|
+
"build": "tsc --noEmit && vite build",
|
|
37
|
+
"lib": "npm run lib:cjs && npm run lib:esm",
|
|
38
|
+
"lib:cjs": "node ../../scripts/lib-cjs.js",
|
|
39
|
+
"lib:esm": "node ../../scripts/lib-esm.js",
|
|
67
40
|
"release": "standard-version",
|
|
68
41
|
"pub": "npm run lib && npm run release && npm publish",
|
|
69
42
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
70
43
|
"lint": "eslint --ext .js,.ts,.tsx src/",
|
|
71
|
-
"lint-fix": "eslint --fix --ext .js,.ts,.tsx src/"
|
|
72
|
-
"commit": "git add . && commit"
|
|
73
|
-
},
|
|
74
|
-
"eslintConfig": {
|
|
75
|
-
"extends": [
|
|
76
|
-
"react-app",
|
|
77
|
-
"react-app/jest"
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
"browserslist": {
|
|
81
|
-
"production": [
|
|
82
|
-
">0.2%",
|
|
83
|
-
"not dead",
|
|
84
|
-
"not op_mini all"
|
|
85
|
-
],
|
|
86
|
-
"development": [
|
|
87
|
-
"last 1 chrome version",
|
|
88
|
-
"last 1 firefox version",
|
|
89
|
-
"last 1 safari version"
|
|
90
|
-
]
|
|
44
|
+
"lint-fix": "eslint --fix --ext .js,.ts,.tsx src/"
|
|
91
45
|
},
|
|
92
46
|
"resolutions": {
|
|
93
47
|
"react": "17.0.2",
|
|
@@ -97,56 +51,9 @@
|
|
|
97
51
|
"react": ">=17.0.0",
|
|
98
52
|
"react-dom": ">=17.0.0"
|
|
99
53
|
},
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"@babel/preset-env": "^7.18.2",
|
|
106
|
-
"@babel/preset-react": "^7.17.12",
|
|
107
|
-
"@babel/preset-typescript": "^7.17.12",
|
|
108
|
-
"@commitlint/cli": "^17.0.3",
|
|
109
|
-
"@commitlint/config-conventional": "^17.0.3",
|
|
110
|
-
"@commitlint/prompt-cli": "^17.0.3",
|
|
111
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.6",
|
|
112
|
-
"@types/webpack-env": "^1.17.0",
|
|
113
|
-
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
114
|
-
"@typescript-eslint/parser": "^5.27.0",
|
|
115
|
-
"babel-loader": "^8.2.2",
|
|
116
|
-
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
117
|
-
"babel-plugin-import": "^1.13.3",
|
|
118
|
-
"clean-webpack-plugin": "^4.0.0-alpha.0",
|
|
119
|
-
"core-js": "^3.22.7",
|
|
120
|
-
"css-loader": "^6.4.0",
|
|
121
|
-
"css-minimizer-webpack-plugin": "^3.1.1",
|
|
122
|
-
"eslint": "^8.16.0",
|
|
123
|
-
"eslint-config-airbnb": "^18.2.0",
|
|
124
|
-
"eslint-config-prettier": "^8.5.0",
|
|
125
|
-
"eslint-import-resolver-alias": "1.1.2",
|
|
126
|
-
"eslint-plugin-import": "^2.23.4",
|
|
127
|
-
"eslint-plugin-jsx-a11y": "^6.3.1",
|
|
128
|
-
"eslint-plugin-prettier": "3.4.1",
|
|
129
|
-
"eslint-plugin-react": "^7.30.0",
|
|
130
|
-
"fork-ts-checker-webpack-plugin": "^7.2.12",
|
|
131
|
-
"html-webpack-plugin": "^5.4.0",
|
|
132
|
-
"husky": "^8.0.1",
|
|
133
|
-
"lint-staged": "^13.0.3",
|
|
134
|
-
"mini-css-extract-plugin": "^2.4.2",
|
|
135
|
-
"prettier": "^2.6.2",
|
|
136
|
-
"progress-bar-webpack-plugin": "^2.1.0",
|
|
137
|
-
"react-refresh": "^0.13.0",
|
|
138
|
-
"sass": "^1.51.0",
|
|
139
|
-
"sass-loader": "^12.4.0",
|
|
140
|
-
"shelljs": "^0.8.5",
|
|
141
|
-
"standard-version": "^9.5.0",
|
|
142
|
-
"style-loader": "^3.3.0",
|
|
143
|
-
"thread-loader": "^3.0.4",
|
|
144
|
-
"ts-loader": "^9.3.1",
|
|
145
|
-
"ttypescript": "^1.5.13",
|
|
146
|
-
"typescript-transform-paths": "^3.3.1",
|
|
147
|
-
"webpack": "^5.72.1",
|
|
148
|
-
"webpack-cli": "^4.9.2",
|
|
149
|
-
"webpack-dev-server": "^4.9.0",
|
|
150
|
-
"webpack-merge": "^5.8.0"
|
|
151
|
-
}
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "https://jihulab.com/elihr/elifront/open/lerna-avocado-sdk.git"
|
|
57
|
+
},
|
|
58
|
+
"gitHead": "8f1581d96d8d35a814b6b40a87618725f0037fda"
|
|
152
59
|
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
@keyframes move-forever {
|
|
2
|
-
0% {
|
|
3
|
-
transform: translate3d(-90px, 0, 0); }
|
|
4
|
-
100% {
|
|
5
|
-
transform: translate3d(85px, 0, 0); }
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.waves {
|
|
9
|
-
position: absolute;
|
|
10
|
-
bottom: 0;
|
|
11
|
-
width: 200%;
|
|
12
|
-
height: 50%;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.parallax > use {
|
|
16
|
-
animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.parallax > use:nth-child(1) {
|
|
20
|
-
animation-delay: -2s;
|
|
21
|
-
animation-duration: 7s;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.parallax > use:nth-child(2) {
|
|
25
|
-
animation-delay: -3s;
|
|
26
|
-
animation-duration: 10s;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.parallax > use:nth-child(3) {
|
|
30
|
-
animation-delay: -4s;
|
|
31
|
-
animation-duration: 13s;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.parallax > use:nth-child(4) {
|
|
35
|
-
animation-delay: -5s;
|
|
36
|
-
animation-duration: 20s;
|
|
37
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Box } from 'fbm-ui';
|
|
14
|
-
import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
|
|
15
|
-
import BaseAccordion from '../BaseAccordion';
|
|
16
|
-
var HistoryPattern = function () {
|
|
17
|
-
var historyPatterns = useAiQuestionStore().historyPatterns;
|
|
18
|
-
return (_jsx(Box, __assign({ sx: { mt: '12px' } }, { children: historyPatterns === null || historyPatterns === void 0 ? void 0 : historyPatterns.map(function (item, i) { return (_jsx(BaseAccordion, __assign({ index: i, isShowDesc: true, isShowSummaryAction: true, isShowConfirm: true, isShowPreview: false }, item), item.positionName + i)); }) })));
|
|
19
|
-
};
|
|
20
|
-
export default HistoryPattern;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const CardTabs: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
} & Omit<{
|
|
5
|
-
action?: import("react").Ref<import("@mui/material").TabsActions> | undefined;
|
|
6
|
-
allowScrollButtonsMobile?: boolean | undefined;
|
|
7
|
-
'aria-label'?: string | undefined;
|
|
8
|
-
'aria-labelledby'?: string | undefined;
|
|
9
|
-
centered?: boolean | undefined;
|
|
10
|
-
children?: import("react").ReactNode;
|
|
11
|
-
classes?: Partial<import("@mui/material").TabsClasses> | undefined;
|
|
12
|
-
indicatorColor?: "secondary" | "primary" | undefined;
|
|
13
|
-
onChange?: ((event: import("react").SyntheticEvent<Element, Event>, value: any) => void) | undefined;
|
|
14
|
-
orientation?: "vertical" | "horizontal" | undefined;
|
|
15
|
-
ScrollButtonComponent?: import("react").ElementType<any> | undefined;
|
|
16
|
-
scrollButtons?: boolean | "auto" | undefined;
|
|
17
|
-
selectionFollowsFocus?: boolean | undefined;
|
|
18
|
-
TabIndicatorProps?: Partial<import("react").HTMLAttributes<HTMLDivElement>> | undefined;
|
|
19
|
-
TabScrollButtonProps?: Partial<import("@mui/material").TabScrollButtonProps> | undefined;
|
|
20
|
-
textColor?: "inherit" | "secondary" | "primary" | undefined;
|
|
21
|
-
value?: any;
|
|
22
|
-
variant?: "fullWidth" | "standard" | "scrollable" | undefined;
|
|
23
|
-
visibleScrollbar?: boolean | undefined;
|
|
24
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
25
|
-
}, "children" | "value"> & import("@mui/material/OverridableComponent").CommonProps & Omit<{
|
|
26
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
27
|
-
centerRipple?: boolean | undefined;
|
|
28
|
-
children?: import("react").ReactNode;
|
|
29
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
30
|
-
disabled?: boolean | undefined;
|
|
31
|
-
disableRipple?: boolean | undefined;
|
|
32
|
-
disableTouchRipple?: boolean | undefined;
|
|
33
|
-
focusRipple?: boolean | undefined;
|
|
34
|
-
focusVisibleClassName?: string | undefined;
|
|
35
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
36
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
37
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
38
|
-
tabIndex?: number | undefined;
|
|
39
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
40
|
-
} & Omit<{
|
|
41
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
42
|
-
centerRipple?: boolean | undefined;
|
|
43
|
-
children?: import("react").ReactNode;
|
|
44
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
45
|
-
disabled?: boolean | undefined;
|
|
46
|
-
disableRipple?: boolean | undefined;
|
|
47
|
-
disableTouchRipple?: boolean | undefined;
|
|
48
|
-
focusRipple?: boolean | undefined;
|
|
49
|
-
focusVisibleClassName?: string | undefined;
|
|
50
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
51
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
52
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
53
|
-
tabIndex?: number | undefined;
|
|
54
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
55
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
56
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
57
|
-
}, "children" | "tabIndex" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps">, "children" | "aria-label" | "aria-labelledby" | "onChange" | "orientation" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "action" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
58
|
-
export declare const CardTab: import("@emotion/styled").StyledComponent<{
|
|
59
|
-
children?: null | undefined;
|
|
60
|
-
classes?: Partial<import("@mui/material/Tab").TabClasses> | undefined;
|
|
61
|
-
disabled?: boolean | undefined;
|
|
62
|
-
disableFocusRipple?: boolean | undefined;
|
|
63
|
-
icon?: string | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
64
|
-
iconPosition?: "end" | "top" | "bottom" | "start" | undefined;
|
|
65
|
-
label?: import("react").ReactNode;
|
|
66
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
67
|
-
value?: any;
|
|
68
|
-
wrapped?: boolean | undefined;
|
|
69
|
-
} & Omit<{
|
|
70
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
71
|
-
centerRipple?: boolean | undefined;
|
|
72
|
-
children?: import("react").ReactNode;
|
|
73
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
74
|
-
disabled?: boolean | undefined;
|
|
75
|
-
disableRipple?: boolean | undefined;
|
|
76
|
-
disableTouchRipple?: boolean | undefined;
|
|
77
|
-
focusRipple?: boolean | undefined;
|
|
78
|
-
focusVisibleClassName?: string | undefined;
|
|
79
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
80
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
81
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
82
|
-
tabIndex?: number | undefined;
|
|
83
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
84
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
85
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
86
|
-
}, "children" | "tabIndex" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "sx" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "value" | "disableFocusRipple" | "icon" | "iconPosition" | "wrapped"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
87
|
-
export declare const CardTabPanel: import("@emotion/styled").StyledComponent<import("@mui/lab/TabPanel").TabPanelProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|