eli-video-interview 1.2.28 → 1.2.29-beta.1
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/package.json +7 -1
- package/esm/assets/icons/AI.svg +0 -1
- package/esm/assets/icons/free.svg +0 -1
- package/esm/assets/icons/video.svg +0 -1
- package/esm/components/AiHeaderTitle/index.d.ts +0 -4
- package/esm/components/AiHeaderTitle/index.js +0 -19
- package/esm/components/AiHeaderTitle/interface.d.ts +0 -4
- package/esm/components/AiHeaderTitle/interface.js +0 -1
- package/esm/components/BigBallSvg/index.d.ts +0 -3
- package/esm/components/BigBallSvg/index.js +0 -17
- package/esm/components/BigBallSvg/styled.d.ts +0 -3
- package/esm/components/BigBallSvg/styled.js +0 -28
- package/esm/components/Charts/Chart.d.ts +0 -4
- package/esm/components/Charts/Chart.js +0 -32
- package/esm/components/Charts/ReportPie.d.ts +0 -4
- package/esm/components/Charts/ReportPie.js +0 -142
- package/esm/components/Charts/TemplatePie.d.ts +0 -4
- package/esm/components/Charts/TemplatePie.js +0 -81
- package/esm/components/Charts/const.d.ts +0 -17
- package/esm/components/Charts/const.js +0 -17
- package/esm/components/Charts/interface.d.ts +0 -18
- package/esm/components/Charts/interface.js +0 -1
- package/esm/components/RootProvider/index.d.ts +0 -3
- package/esm/components/RootProvider/index.js +0 -27
- package/esm/components/ScoreBigBall/index.d.ts +0 -4
- package/esm/components/ScoreBigBall/index.js +0 -26
- package/esm/components/ScoreBigBall/interface.d.ts +0 -7
- package/esm/components/ScoreBigBall/interface.js +0 -1
- package/esm/components/ScoreBigBall/styled.d.ts +0 -4
- package/esm/components/ScoreBigBall/styled.js +0 -12
- package/esm/components/ScrollDialogContent/index.d.ts +0 -5
- package/esm/components/ScrollDialogContent/index.js +0 -6
- package/esm/components/SvgIcon/index.d.ts +0 -4
- package/esm/components/SvgIcon/index.js +0 -32
- package/esm/components/SvgIcon/interface.d.ts +0 -4
- package/esm/components/SvgIcon/interface.js +0 -1
- package/esm/components/VideoPreview/index.d.ts +0 -4
- package/esm/components/VideoPreview/index.js +0 -19
- package/esm/components/VideoPreview/interface.d.ts +0 -15
- package/esm/components/VideoPreview/interface.js +0 -1
- package/esm/components/VideoPreview/styled.d.ts +0 -10
- package/esm/components/VideoPreview/styled.js +0 -24
- package/esm/constants/ai-question.d.ts +0 -27
- package/esm/constants/ai-question.js +0 -39
- package/esm/constants/ai-report.d.ts +0 -29
- package/esm/constants/ai-report.js +0 -39
- package/esm/enum/ai-question.d.ts +0 -38
- package/esm/enum/ai-question.js +0 -42
- package/esm/enum/ai-report.d.ts +0 -27
- package/esm/enum/ai-report.js +0 -30
- package/esm/index.d.ts +0 -8
- package/esm/index.js +0 -8
- package/esm/modules/ai-ability/Root.d.ts +0 -3
- package/esm/modules/ai-ability/Root.js +0 -135
- package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +0 -4
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +0 -115
- package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
- package/esm/modules/ai-ability/components/UpdateAbility/interface.js +0 -1
- package/esm/modules/ai-ability/index.d.ts +0 -2
- package/esm/modules/ai-ability/index.js +0 -7
- package/esm/modules/ai-ability/interface.d.ts +0 -16
- package/esm/modules/ai-ability/interface.js +0 -1
- package/esm/modules/ai-ability/styled.d.ts +0 -4
- package/esm/modules/ai-ability/styled.js +0 -6
- package/esm/modules/ai-question/Root.d.ts +0 -4
- package/esm/modules/ai-question/Root.js +0 -144
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +0 -44
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +0 -54
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +0 -62
- package/esm/modules/ai-question/components/AiAnalysis/const.d.ts +0 -5
- package/esm/modules/ai-question/components/AiAnalysis/const.js +0 -11
- package/esm/modules/ai-question/components/AiAnalysis/index.d.ts +0 -3
- package/esm/modules/ai-question/components/AiAnalysis/index.js +0 -27
- package/esm/modules/ai-question/components/AiAnalysis/interface.d.ts +0 -23
- package/esm/modules/ai-question/components/AiAnalysis/interface.js +0 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +0 -25
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +0 -30
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +0 -112
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +0 -33
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.js +0 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +0 -5
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +0 -9
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.js +0 -29
- package/esm/modules/ai-question/components/BaseAccordion/const.d.ts +0 -1
- package/esm/modules/ai-question/components/BaseAccordion/const.js +0 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.d.ts +0 -4
- package/esm/modules/ai-question/components/BaseAccordion/index.js +0 -98
- package/esm/modules/ai-question/components/BaseAccordion/interface.d.ts +0 -9
- package/esm/modules/ai-question/components/BaseAccordion/interface.js +0 -1
- package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +0 -10
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +0 -76
- package/esm/modules/ai-question/components/BootVideo/index.d.ts +0 -4
- package/esm/modules/ai-question/components/BootVideo/index.js +0 -113
- package/esm/modules/ai-question/components/BootVideo/interface.d.ts +0 -8
- package/esm/modules/ai-question/components/BootVideo/interface.js +0 -1
- package/esm/modules/ai-question/components/BootVideo/styled.d.ts +0 -13
- package/esm/modules/ai-question/components/BootVideo/styled.js +0 -48
- package/esm/modules/ai-question/components/QuestionModel/Header.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionModel/Header.js +0 -23
- package/esm/modules/ai-question/components/QuestionModel/Item.d.ts +0 -4
- package/esm/modules/ai-question/components/QuestionModel/Item.js +0 -72
- package/esm/modules/ai-question/components/QuestionModel/List.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionModel/List.js +0 -47
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +0 -17
- package/esm/modules/ai-question/components/QuestionModel/index.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionModel/index.js +0 -71
- package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +0 -19
- package/esm/modules/ai-question/components/QuestionModel/interface.js +0 -1
- package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +0 -4
- package/esm/modules/ai-question/components/QuestionModel/styled.js +0 -8
- package/esm/modules/ai-question/components/QuestionPreview/index.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionPreview/index.js +0 -31
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +0 -11
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +0 -11
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +0 -50
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +0 -17
- package/esm/modules/ai-question/components/QuestionTemplate/index.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +0 -30
- package/esm/modules/ai-question/components/QuestionTemplate/interface.d.ts +0 -43
- package/esm/modules/ai-question/components/QuestionTemplate/interface.js +0 -1
- package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +0 -4
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +0 -110
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +0 -64
- package/esm/modules/ai-question/components/QuestionUpdate/const.d.ts +0 -14
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +0 -54
- package/esm/modules/ai-question/components/QuestionUpdate/index.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +0 -257
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +0 -63
- package/esm/modules/ai-question/components/QuestionUpdate/interface.js +0 -1
- package/esm/modules/ai-question/index.d.ts +0 -4
- package/esm/modules/ai-question/index.js +0 -20
- package/esm/modules/ai-question/interface.d.ts +0 -78
- package/esm/modules/ai-question/interface.js +0 -1
- package/esm/modules/ai-question/useAiQuestion.d.ts +0 -17
- package/esm/modules/ai-question/useAiQuestion.js +0 -20
- package/esm/modules/ai-report/Root.d.ts +0 -4
- package/esm/modules/ai-report/Root.js +0 -77
- package/esm/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +0 -13
- package/esm/modules/ai-report/components/AIEvaluate/Evaluate.js +0 -60
- package/esm/modules/ai-report/components/AIEvaluate/Graph.d.ts +0 -13
- package/esm/modules/ai-report/components/AIEvaluate/Graph.js +0 -225
- package/esm/modules/ai-report/components/AIEvaluate/index.d.ts +0 -2
- package/esm/modules/ai-report/components/AIEvaluate/index.js +0 -40
- package/esm/modules/ai-report/components/MenuAnchor/index.d.ts +0 -4
- package/esm/modules/ai-report/components/MenuAnchor/index.js +0 -115
- package/esm/modules/ai-report/components/NotFinish/index.d.ts +0 -3
- package/esm/modules/ai-report/components/NotFinish/index.js +0 -25
- package/esm/modules/ai-report/components/RankingRange/Item.d.ts +0 -4
- package/esm/modules/ai-report/components/RankingRange/Item.js +0 -30
- package/esm/modules/ai-report/components/RankingRange/index.d.ts +0 -4
- package/esm/modules/ai-report/components/RankingRange/index.js +0 -171
- package/esm/modules/ai-report/components/RankingRange/interface.d.ts +0 -26
- package/esm/modules/ai-report/components/RankingRange/interface.js +0 -1
- package/esm/modules/ai-report/components/RankingRange/styled.d.ts +0 -7
- package/esm/modules/ai-report/components/RankingRange/styled.js +0 -11
- package/esm/modules/ai-report/components/ScoreReport/Bar.d.ts +0 -3
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +0 -50
- package/esm/modules/ai-report/components/ScoreReport/Failed.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/Failed.js +0 -25
- package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +0 -3
- package/esm/modules/ai-report/components/ScoreReport/Report.js +0 -35
- package/esm/modules/ai-report/components/ScoreReport/Score.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/Score.js +0 -34
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +0 -33
- package/esm/modules/ai-report/components/ScoreReport/index.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/index.js +0 -41
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +0 -13
- package/esm/modules/ai-report/components/ScoreReport/interface.js +0 -1
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +0 -22
- package/esm/modules/ai-report/components/ScoreReport/styled.js +0 -23
- package/esm/modules/ai-report/components/Suggestion/Suggestion.d.ts +0 -4
- package/esm/modules/ai-report/components/Suggestion/Suggestion.js +0 -29
- package/esm/modules/ai-report/components/Suggestion/index.d.ts +0 -2
- package/esm/modules/ai-report/components/Suggestion/index.js +0 -27
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +0 -4
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +0 -40
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +0 -4
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +0 -91
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +0 -4
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +0 -30
- package/esm/modules/ai-report/components/VideoQuestion/index.d.ts +0 -3
- package/esm/modules/ai-report/components/VideoQuestion/index.js +0 -22
- package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +0 -14
- package/esm/modules/ai-report/components/VideoQuestion/interface.js +0 -1
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +0 -71
- package/esm/modules/ai-report/components/VideoQuestion/styled.js +0 -91
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +0 -4
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.js +0 -24
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +0 -11
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +0 -55
- package/esm/modules/ai-report/components/WorkPlaces/index.d.ts +0 -2
- package/esm/modules/ai-report/components/WorkPlaces/index.js +0 -67
- package/esm/modules/ai-report/components/WorkPlaces/interface.d.ts +0 -7
- package/esm/modules/ai-report/components/WorkPlaces/interface.js +0 -1
- package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +0 -62
- package/esm/modules/ai-report/components/WorkPlaces/styled.js +0 -27
- package/esm/modules/ai-report/index.d.ts +0 -4
- package/esm/modules/ai-report/index.js +0 -21
- package/esm/modules/ai-report/interface.d.ts +0 -187
- package/esm/modules/ai-report/interface.js +0 -1
- package/esm/modules/ai-report/useAiReport.d.ts +0 -28
- package/esm/modules/ai-report/useAiReport.js +0 -16
- package/esm/modules/ai-report/utils.d.ts +0 -1
- package/esm/modules/ai-report/utils.js +0 -1
- package/esm/modules/ai-template/Root.d.ts +0 -4
- package/esm/modules/ai-template/Root.js +0 -48
- package/esm/modules/ai-template/components/CapabilityModel/const.d.ts +0 -47
- package/esm/modules/ai-template/components/CapabilityModel/const.js +0 -56
- package/esm/modules/ai-template/components/CapabilityModel/index.d.ts +0 -3
- package/esm/modules/ai-template/components/CapabilityModel/index.js +0 -27
- package/esm/modules/ai-template/components/QuestionList/Item.d.ts +0 -4
- package/esm/modules/ai-template/components/QuestionList/Item.js +0 -24
- package/esm/modules/ai-template/components/QuestionList/index.d.ts +0 -3
- package/esm/modules/ai-template/components/QuestionList/index.js +0 -20
- package/esm/modules/ai-template/components/QuestionList/interface.d.ts +0 -5
- package/esm/modules/ai-template/components/QuestionList/interface.js +0 -1
- package/esm/modules/ai-template/components/TemplateHeader/index.d.ts +0 -4
- package/esm/modules/ai-template/components/TemplateHeader/index.js +0 -18
- package/esm/modules/ai-template/components/TemplateHeader/interface.d.ts +0 -6
- package/esm/modules/ai-template/components/TemplateHeader/interface.js +0 -1
- package/esm/modules/ai-template/components/TemplateList/index.d.ts +0 -3
- package/esm/modules/ai-template/components/TemplateList/index.js +0 -96
- package/esm/modules/ai-template/components/TemplateList/interface.d.ts +0 -24
- package/esm/modules/ai-template/components/TemplateList/interface.js +0 -1
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +0 -37
- package/esm/modules/ai-template/components/TemplateList/styled.js +0 -77
- package/esm/modules/ai-template/components/TemplateMenu/index.d.ts +0 -3
- package/esm/modules/ai-template/components/TemplateMenu/index.js +0 -57
- package/esm/modules/ai-template/components/TemplateMenu/interface.d.ts +0 -12
- package/esm/modules/ai-template/components/TemplateMenu/interface.js +0 -1
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +0 -29
- package/esm/modules/ai-template/components/TemplateMenu/styled.js +0 -16
- package/esm/modules/ai-template/index.d.ts +0 -4
- package/esm/modules/ai-template/index.js +0 -20
- package/esm/modules/ai-template/interface.d.ts +0 -24
- package/esm/modules/ai-template/interface.js +0 -1
- package/esm/services/ai-ability.d.ts +0 -14
- package/esm/services/ai-ability.js +0 -7
- package/esm/services/ai-question.d.ts +0 -12
- package/esm/services/ai-question.js +0 -15
- package/esm/services/ai-report.d.ts +0 -14
- package/esm/services/ai-report.js +0 -13
- package/esm/services/ai-template.d.ts +0 -4
- package/esm/services/ai-template.js +0 -9
- package/esm/store/ai-ability/question-ability-store.d.ts +0 -12
- package/esm/store/ai-ability/question-ability-store.js +0 -10
- package/esm/store/ai-question/ai-analysis-store.d.ts +0 -33
- package/esm/store/ai-question/ai-analysis-store.js +0 -158
- package/esm/store/ai-question/boot-video-store.d.ts +0 -17
- package/esm/store/ai-question/boot-video-store.js +0 -21
- package/esm/store/ai-question/global-store.d.ts +0 -35
- package/esm/store/ai-question/global-store.js +0 -22
- package/esm/store/ai-question/question-model-store.d.ts +0 -24
- package/esm/store/ai-question/question-model-store.js +0 -136
- package/esm/store/ai-question/question-preview-store.d.ts +0 -14
- package/esm/store/ai-question/question-preview-store.js +0 -21
- package/esm/store/ai-question/question-template-store.d.ts +0 -12
- package/esm/store/ai-question/question-template-store.js +0 -10
- package/esm/store/ai-question/question-update-store.d.ts +0 -11
- package/esm/store/ai-question/question-update-store.js +0 -33
- package/esm/store/ai-report/global-store.d.ts +0 -81
- package/esm/store/ai-report/global-store.js +0 -30
- package/esm/store/ai-template/global-store.d.ts +0 -35
- package/esm/store/ai-template/global-store.js +0 -26
- package/esm/utils/config.d.ts +0 -13
- package/esm/utils/config.js +0 -17
- package/esm/utils/interceptor.d.ts +0 -2
- package/esm/utils/interceptor.js +0 -127
- package/esm/utils/request.d.ts +0 -3
- package/esm/utils/request.js +0 -14
- package/esm/utils/utils.d.ts +0 -58
- package/esm/utils/utils.js +0 -115
- package/lib/assets/icons/AI.svg +0 -1
- package/lib/assets/icons/free.svg +0 -1
- package/lib/assets/icons/video.svg +0 -1
- package/lib/components/AiHeaderTitle/index.d.ts +0 -4
- package/lib/components/AiHeaderTitle/index.js +0 -24
- package/lib/components/AiHeaderTitle/interface.d.ts +0 -4
- package/lib/components/AiHeaderTitle/interface.js +0 -2
- package/lib/components/BigBallSvg/index.d.ts +0 -3
- package/lib/components/BigBallSvg/index.js +0 -19
- package/lib/components/BigBallSvg/styled.d.ts +0 -3
- package/lib/components/BigBallSvg/styled.js +0 -31
- package/lib/components/Charts/Chart.d.ts +0 -4
- package/lib/components/Charts/Chart.js +0 -57
- package/lib/components/Charts/ReportPie.d.ts +0 -4
- package/lib/components/Charts/ReportPie.js +0 -147
- package/lib/components/Charts/TemplatePie.d.ts +0 -4
- package/lib/components/Charts/TemplatePie.js +0 -86
- package/lib/components/Charts/const.d.ts +0 -17
- package/lib/components/Charts/const.js +0 -20
- package/lib/components/Charts/interface.d.ts +0 -18
- package/lib/components/Charts/interface.js +0 -2
- package/lib/components/RootProvider/index.d.ts +0 -3
- package/lib/components/RootProvider/index.js +0 -29
- package/lib/components/ScoreBigBall/index.d.ts +0 -4
- package/lib/components/ScoreBigBall/index.js +0 -31
- package/lib/components/ScoreBigBall/interface.d.ts +0 -7
- package/lib/components/ScoreBigBall/interface.js +0 -2
- package/lib/components/ScoreBigBall/styled.d.ts +0 -4
- package/lib/components/ScoreBigBall/styled.js +0 -15
- package/lib/components/ScrollDialogContent/index.d.ts +0 -5
- package/lib/components/ScrollDialogContent/index.js +0 -8
- package/lib/components/SvgIcon/index.d.ts +0 -4
- package/lib/components/SvgIcon/index.js +0 -57
- package/lib/components/SvgIcon/interface.d.ts +0 -4
- package/lib/components/SvgIcon/interface.js +0 -2
- package/lib/components/VideoPreview/index.d.ts +0 -4
- package/lib/components/VideoPreview/index.js +0 -21
- package/lib/components/VideoPreview/interface.d.ts +0 -15
- package/lib/components/VideoPreview/interface.js +0 -2
- package/lib/components/VideoPreview/styled.d.ts +0 -10
- package/lib/components/VideoPreview/styled.js +0 -27
- package/lib/constants/ai-question.d.ts +0 -27
- package/lib/constants/ai-question.js +0 -43
- package/lib/constants/ai-report.d.ts +0 -29
- package/lib/constants/ai-report.js +0 -42
- package/lib/enum/ai-question.d.ts +0 -38
- package/lib/enum/ai-question.js +0 -45
- package/lib/enum/ai-report.d.ts +0 -27
- package/lib/enum/ai-report.js +0 -33
- package/lib/index.d.ts +0 -8
- package/lib/index.js +0 -22
- package/lib/modules/ai-ability/Root.d.ts +0 -3
- package/lib/modules/ai-ability/Root.js +0 -140
- package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +0 -4
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +0 -117
- package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
- package/lib/modules/ai-ability/components/UpdateAbility/interface.js +0 -2
- package/lib/modules/ai-ability/index.d.ts +0 -2
- package/lib/modules/ai-ability/index.js +0 -12
- package/lib/modules/ai-ability/interface.d.ts +0 -16
- package/lib/modules/ai-ability/interface.js +0 -2
- package/lib/modules/ai-ability/styled.d.ts +0 -4
- package/lib/modules/ai-ability/styled.js +0 -9
- package/lib/modules/ai-question/Root.d.ts +0 -4
- package/lib/modules/ai-question/Root.js +0 -149
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +0 -49
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +0 -59
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +0 -64
- package/lib/modules/ai-question/components/AiAnalysis/const.d.ts +0 -5
- package/lib/modules/ai-question/components/AiAnalysis/const.js +0 -14
- package/lib/modules/ai-question/components/AiAnalysis/index.d.ts +0 -3
- package/lib/modules/ai-question/components/AiAnalysis/index.js +0 -32
- package/lib/modules/ai-question/components/AiAnalysis/interface.d.ts +0 -23
- package/lib/modules/ai-question/components/AiAnalysis/interface.js +0 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +0 -25
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +0 -33
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +0 -117
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +0 -33
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.js +0 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +0 -8
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +0 -9
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.js +0 -33
- package/lib/modules/ai-question/components/BaseAccordion/const.d.ts +0 -1
- package/lib/modules/ai-question/components/BaseAccordion/const.js +0 -4
- package/lib/modules/ai-question/components/BaseAccordion/index.d.ts +0 -4
- package/lib/modules/ai-question/components/BaseAccordion/index.js +0 -100
- package/lib/modules/ai-question/components/BaseAccordion/interface.d.ts +0 -9
- package/lib/modules/ai-question/components/BaseAccordion/interface.js +0 -2
- package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +0 -10
- package/lib/modules/ai-question/components/BaseAccordion/styled.js +0 -79
- package/lib/modules/ai-question/components/BootVideo/index.d.ts +0 -4
- package/lib/modules/ai-question/components/BootVideo/index.js +0 -118
- package/lib/modules/ai-question/components/BootVideo/interface.d.ts +0 -8
- package/lib/modules/ai-question/components/BootVideo/interface.js +0 -2
- package/lib/modules/ai-question/components/BootVideo/styled.d.ts +0 -13
- package/lib/modules/ai-question/components/BootVideo/styled.js +0 -51
- package/lib/modules/ai-question/components/QuestionModel/Header.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionModel/Header.js +0 -28
- package/lib/modules/ai-question/components/QuestionModel/Item.d.ts +0 -4
- package/lib/modules/ai-question/components/QuestionModel/Item.js +0 -74
- package/lib/modules/ai-question/components/QuestionModel/List.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionModel/List.js +0 -52
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +0 -19
- package/lib/modules/ai-question/components/QuestionModel/index.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionModel/index.js +0 -76
- package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +0 -19
- package/lib/modules/ai-question/components/QuestionModel/interface.js +0 -2
- package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +0 -4
- package/lib/modules/ai-question/components/QuestionModel/styled.js +0 -11
- package/lib/modules/ai-question/components/QuestionPreview/index.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionPreview/index.js +0 -36
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +0 -11
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +0 -14
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +0 -55
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +0 -19
- package/lib/modules/ai-question/components/QuestionTemplate/index.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +0 -35
- package/lib/modules/ai-question/components/QuestionTemplate/interface.d.ts +0 -43
- package/lib/modules/ai-question/components/QuestionTemplate/interface.js +0 -2
- package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +0 -4
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +0 -115
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +0 -66
- package/lib/modules/ai-question/components/QuestionUpdate/const.d.ts +0 -14
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +0 -57
- package/lib/modules/ai-question/components/QuestionUpdate/index.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +0 -262
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +0 -63
- package/lib/modules/ai-question/components/QuestionUpdate/interface.js +0 -2
- package/lib/modules/ai-question/index.d.ts +0 -4
- package/lib/modules/ai-question/index.js +0 -25
- package/lib/modules/ai-question/interface.d.ts +0 -78
- package/lib/modules/ai-question/interface.js +0 -2
- package/lib/modules/ai-question/useAiQuestion.d.ts +0 -17
- package/lib/modules/ai-question/useAiQuestion.js +0 -24
- package/lib/modules/ai-report/Root.d.ts +0 -4
- package/lib/modules/ai-report/Root.js +0 -82
- package/lib/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +0 -13
- package/lib/modules/ai-report/components/AIEvaluate/Evaluate.js +0 -62
- package/lib/modules/ai-report/components/AIEvaluate/Graph.d.ts +0 -13
- package/lib/modules/ai-report/components/AIEvaluate/Graph.js +0 -227
- package/lib/modules/ai-report/components/AIEvaluate/index.d.ts +0 -2
- package/lib/modules/ai-report/components/AIEvaluate/index.js +0 -45
- package/lib/modules/ai-report/components/MenuAnchor/index.d.ts +0 -4
- package/lib/modules/ai-report/components/MenuAnchor/index.js +0 -117
- package/lib/modules/ai-report/components/NotFinish/index.d.ts +0 -3
- package/lib/modules/ai-report/components/NotFinish/index.js +0 -27
- package/lib/modules/ai-report/components/RankingRange/Item.d.ts +0 -4
- package/lib/modules/ai-report/components/RankingRange/Item.js +0 -32
- package/lib/modules/ai-report/components/RankingRange/index.d.ts +0 -4
- package/lib/modules/ai-report/components/RankingRange/index.js +0 -176
- package/lib/modules/ai-report/components/RankingRange/interface.d.ts +0 -26
- package/lib/modules/ai-report/components/RankingRange/interface.js +0 -2
- package/lib/modules/ai-report/components/RankingRange/styled.d.ts +0 -7
- package/lib/modules/ai-report/components/RankingRange/styled.js +0 -14
- package/lib/modules/ai-report/components/ScoreReport/Bar.d.ts +0 -3
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +0 -52
- package/lib/modules/ai-report/components/ScoreReport/Failed.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/Failed.js +0 -27
- package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +0 -3
- package/lib/modules/ai-report/components/ScoreReport/Report.js +0 -40
- package/lib/modules/ai-report/components/ScoreReport/Score.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/Score.js +0 -39
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +0 -35
- package/lib/modules/ai-report/components/ScoreReport/index.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/index.js +0 -46
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +0 -13
- package/lib/modules/ai-report/components/ScoreReport/interface.js +0 -2
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +0 -22
- package/lib/modules/ai-report/components/ScoreReport/styled.js +0 -26
- package/lib/modules/ai-report/components/Suggestion/Suggestion.d.ts +0 -4
- package/lib/modules/ai-report/components/Suggestion/Suggestion.js +0 -31
- package/lib/modules/ai-report/components/Suggestion/index.d.ts +0 -2
- package/lib/modules/ai-report/components/Suggestion/index.js +0 -32
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +0 -4
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +0 -45
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +0 -4
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +0 -96
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +0 -4
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +0 -32
- package/lib/modules/ai-report/components/VideoQuestion/index.d.ts +0 -3
- package/lib/modules/ai-report/components/VideoQuestion/index.js +0 -27
- package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +0 -14
- package/lib/modules/ai-report/components/VideoQuestion/interface.js +0 -2
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +0 -71
- package/lib/modules/ai-report/components/VideoQuestion/styled.js +0 -94
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +0 -4
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.js +0 -26
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +0 -11
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +0 -57
- package/lib/modules/ai-report/components/WorkPlaces/index.d.ts +0 -2
- package/lib/modules/ai-report/components/WorkPlaces/index.js +0 -72
- package/lib/modules/ai-report/components/WorkPlaces/interface.d.ts +0 -7
- package/lib/modules/ai-report/components/WorkPlaces/interface.js +0 -2
- package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +0 -62
- package/lib/modules/ai-report/components/WorkPlaces/styled.js +0 -30
- package/lib/modules/ai-report/index.d.ts +0 -4
- package/lib/modules/ai-report/index.js +0 -26
- package/lib/modules/ai-report/interface.d.ts +0 -187
- package/lib/modules/ai-report/interface.js +0 -2
- package/lib/modules/ai-report/useAiReport.d.ts +0 -28
- package/lib/modules/ai-report/useAiReport.js +0 -20
- package/lib/modules/ai-report/utils.d.ts +0 -1
- package/lib/modules/ai-report/utils.js +0 -5
- package/lib/modules/ai-template/Root.d.ts +0 -4
- package/lib/modules/ai-template/Root.js +0 -53
- package/lib/modules/ai-template/components/CapabilityModel/const.d.ts +0 -47
- package/lib/modules/ai-template/components/CapabilityModel/const.js +0 -59
- package/lib/modules/ai-template/components/CapabilityModel/index.d.ts +0 -3
- package/lib/modules/ai-template/components/CapabilityModel/index.js +0 -32
- package/lib/modules/ai-template/components/QuestionList/Item.d.ts +0 -4
- package/lib/modules/ai-template/components/QuestionList/Item.js +0 -26
- package/lib/modules/ai-template/components/QuestionList/index.d.ts +0 -3
- package/lib/modules/ai-template/components/QuestionList/index.js +0 -25
- package/lib/modules/ai-template/components/QuestionList/interface.d.ts +0 -5
- package/lib/modules/ai-template/components/QuestionList/interface.js +0 -2
- package/lib/modules/ai-template/components/TemplateHeader/index.d.ts +0 -4
- package/lib/modules/ai-template/components/TemplateHeader/index.js +0 -20
- package/lib/modules/ai-template/components/TemplateHeader/interface.d.ts +0 -6
- package/lib/modules/ai-template/components/TemplateHeader/interface.js +0 -2
- package/lib/modules/ai-template/components/TemplateList/index.d.ts +0 -3
- package/lib/modules/ai-template/components/TemplateList/index.js +0 -101
- package/lib/modules/ai-template/components/TemplateList/interface.d.ts +0 -24
- package/lib/modules/ai-template/components/TemplateList/interface.js +0 -2
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +0 -37
- package/lib/modules/ai-template/components/TemplateList/styled.js +0 -80
- package/lib/modules/ai-template/components/TemplateMenu/index.d.ts +0 -3
- package/lib/modules/ai-template/components/TemplateMenu/index.js +0 -59
- package/lib/modules/ai-template/components/TemplateMenu/interface.d.ts +0 -12
- package/lib/modules/ai-template/components/TemplateMenu/interface.js +0 -2
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +0 -29
- package/lib/modules/ai-template/components/TemplateMenu/styled.js +0 -19
- package/lib/modules/ai-template/index.d.ts +0 -4
- package/lib/modules/ai-template/index.js +0 -25
- package/lib/modules/ai-template/interface.d.ts +0 -24
- package/lib/modules/ai-template/interface.js +0 -2
- package/lib/services/ai-ability.d.ts +0 -14
- package/lib/services/ai-ability.js +0 -13
- package/lib/services/ai-question.d.ts +0 -12
- package/lib/services/ai-question.js +0 -25
- package/lib/services/ai-report.d.ts +0 -14
- package/lib/services/ai-report.js +0 -20
- package/lib/services/ai-template.d.ts +0 -4
- package/lib/services/ai-template.js +0 -16
- package/lib/store/ai-ability/question-ability-store.d.ts +0 -12
- package/lib/store/ai-ability/question-ability-store.js +0 -13
- package/lib/store/ai-question/ai-analysis-store.d.ts +0 -33
- package/lib/store/ai-question/ai-analysis-store.js +0 -164
- package/lib/store/ai-question/boot-video-store.d.ts +0 -17
- package/lib/store/ai-question/boot-video-store.js +0 -24
- package/lib/store/ai-question/global-store.d.ts +0 -35
- package/lib/store/ai-question/global-store.js +0 -25
- package/lib/store/ai-question/question-model-store.d.ts +0 -24
- package/lib/store/ai-question/question-model-store.js +0 -142
- package/lib/store/ai-question/question-preview-store.d.ts +0 -14
- package/lib/store/ai-question/question-preview-store.js +0 -24
- package/lib/store/ai-question/question-template-store.d.ts +0 -12
- package/lib/store/ai-question/question-template-store.js +0 -13
- package/lib/store/ai-question/question-update-store.d.ts +0 -11
- package/lib/store/ai-question/question-update-store.js +0 -36
- package/lib/store/ai-report/global-store.d.ts +0 -81
- package/lib/store/ai-report/global-store.js +0 -33
- package/lib/store/ai-template/global-store.d.ts +0 -35
- package/lib/store/ai-template/global-store.js +0 -29
- package/lib/utils/config.d.ts +0 -13
- package/lib/utils/config.js +0 -20
- package/lib/utils/interceptor.d.ts +0 -2
- package/lib/utils/interceptor.js +0 -132
- package/lib/utils/request.d.ts +0 -3
- package/lib/utils/request.js +0 -22
- package/lib/utils/utils.d.ts +0 -58
- package/lib/utils/utils.js +0 -129
|
@@ -1,19 +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 { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Box, IconButton, KeyboardArrowLeftIcon, KeyboardArrowRightIcon, Typography } from 'fbm-ui';
|
|
14
|
-
import { FaceAnalysisRoot, PageTurningRoot, VideoPreviewRoot } from './styled';
|
|
15
|
-
var VideoPreview = function (props) {
|
|
16
|
-
var url = props.url, width = props.width, faceAnalysis = props.faceAnalysis, _a = props.currentPage, currentPage = _a === void 0 ? 1 : _a, _b = props.totalPage, totalPage = _b === void 0 ? 1 : _b, _c = props.isShowPageTurning, isShowPageTurning = _c === void 0 ? true : _c, _d = props.disabledPrev, disabledPrev = _d === void 0 ? false : _d, _e = props.disabledNext, disabledNext = _e === void 0 ? false : _e, style = props.style, onPrev = props.onPrev, onNext = props.onNext;
|
|
17
|
-
return (_jsxs(VideoPreviewRoot, __assign({ style: __assign({ width: width }, style) }, { children: [faceAnalysis && (_jsxs(FaceAnalysisRoot, { children: [(faceAnalysis === null || faceAnalysis === void 0 ? void 0 : faceAnalysis.beauty) >= 0 && (_jsxs(Typography, __assign({ variant: "body2", color: "#fff" }, { children: ["AI\u989C\u503C\uFF1A", faceAnalysis === null || faceAnalysis === void 0 ? void 0 : faceAnalysis.beauty, "\u5206"] }))), (faceAnalysis === null || faceAnalysis === void 0 ? void 0 : faceAnalysis.age) >= 0 && (_jsxs(Typography, __assign({ variant: "body2", color: "#fff" }, { children: ["AI\u5E74\u9F84\uFF1A", faceAnalysis === null || faceAnalysis === void 0 ? void 0 : faceAnalysis.age, "\u5C81"] })))] })), _jsx("video", { src: url, height: 530, controls: true, controlsList: "nodownload noremoteplayback", disablePictureInPicture: true }), isShowPageTurning && (_jsxs(PageTurningRoot, { children: [_jsx(IconButton, __assign({ disabled: disabledPrev, onClick: onPrev }, { children: _jsx(KeyboardArrowLeftIcon, {}) })), _jsxs(Box, { children: [currentPage, "/", totalPage] }), _jsx(IconButton, __assign({ disabled: disabledNext, onClick: onNext }, { children: _jsx(KeyboardArrowRightIcon, {}) }))] }))] })));
|
|
18
|
-
};
|
|
19
|
-
export default VideoPreview;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { FaceAnalysis } from '@/modules/ai-report/interface';
|
|
3
|
-
export interface VideoPreviewProps {
|
|
4
|
-
url: string;
|
|
5
|
-
faceAnalysis?: FaceAnalysis;
|
|
6
|
-
currentPage?: number;
|
|
7
|
-
totalPage?: number;
|
|
8
|
-
disabledPrev?: boolean;
|
|
9
|
-
disabledNext?: boolean;
|
|
10
|
-
width?: number | string;
|
|
11
|
-
isShowPageTurning?: boolean;
|
|
12
|
-
style?: CSSProperties;
|
|
13
|
-
onPrev?: () => void;
|
|
14
|
-
onNext?: () => void;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const VideoPreviewRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
-
export declare const PageTurningRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
6
|
-
children?: import("react").ReactNode;
|
|
7
|
-
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
|
-
export declare const FaceAnalysisRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
9
|
-
children?: import("react").ReactNode;
|
|
10
|
-
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Box, styled } from 'fbm-ui';
|
|
2
|
-
export var VideoPreviewRoot = styled(Box)({
|
|
3
|
-
display: 'flex',
|
|
4
|
-
flexDirection: 'column',
|
|
5
|
-
width: 300,
|
|
6
|
-
borderRadius: 4,
|
|
7
|
-
backgroundColor: 'transparent',
|
|
8
|
-
overflow: 'hidden',
|
|
9
|
-
});
|
|
10
|
-
export var PageTurningRoot = styled(Box)({
|
|
11
|
-
backgroundColor: '#fff',
|
|
12
|
-
display: 'flex',
|
|
13
|
-
justifyContent: 'space-between',
|
|
14
|
-
alignItems: 'center',
|
|
15
|
-
padding: '4px 8px',
|
|
16
|
-
});
|
|
17
|
-
export var FaceAnalysisRoot = styled(Box)({
|
|
18
|
-
display: 'flex',
|
|
19
|
-
justifyContent: 'space-around',
|
|
20
|
-
position: 'absolute',
|
|
21
|
-
width: '100%',
|
|
22
|
-
padding: '0 32px',
|
|
23
|
-
marginTop: '8px',
|
|
24
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { QuestionParams } from '@/modules/ai-question/components/QuestionUpdate/interface';
|
|
2
|
-
import { ADD_QUESTION_TYPE } from '@enum/ai-question';
|
|
3
|
-
export declare const ADD_QUESTION_TYPE_LIST: {
|
|
4
|
-
type: ADD_QUESTION_TYPE;
|
|
5
|
-
title: string;
|
|
6
|
-
desc: string;
|
|
7
|
-
}[];
|
|
8
|
-
export declare const QUESTION_TYPE_MAPPING_LABEL: {
|
|
9
|
-
1: string;
|
|
10
|
-
2: string;
|
|
11
|
-
4: string;
|
|
12
|
-
6: string;
|
|
13
|
-
7: string;
|
|
14
|
-
8: string;
|
|
15
|
-
9: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const DEFAULT_GUIDE_VIDEO_URL = "https://public-static-assets.oss-cn-beijing.aliyuncs.com/wxprogram/guide_video.mp4";
|
|
18
|
-
export declare const DEFAULT_GUIDE_VIDEO_THUMB_URL = "https://public-static-assets.oss-cn-beijing.aliyuncs.com/wxprogram/guide_video.mp4?x-oss-process=video/snapshot,t_0,f_jpg";
|
|
19
|
-
export declare const DEFAULT_GUIDE_VIDEO: {
|
|
20
|
-
videoUrl: string;
|
|
21
|
-
frameUrl: string;
|
|
22
|
-
}[];
|
|
23
|
-
export declare const MAX_UPLOAD_FILE_SIZE: number;
|
|
24
|
-
export declare const MAX_UPLOAD_VIDEO_FILE_SIZE: number;
|
|
25
|
-
export declare const TEST_TYPE_READONLY: number[];
|
|
26
|
-
export declare const DISABLED_REPEAT_TYPE: number[];
|
|
27
|
-
export declare const IS_AI_ANALYSIS: (step: Pick<QuestionParams, 'aiType'>) => boolean;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var _a;
|
|
2
|
-
import { ADD_QUESTION_TYPE, QUESTION_TYPE } from "../enum/ai-question";
|
|
3
|
-
var FREE = ADD_QUESTION_TYPE.FREE, LANGUAGE = ADD_QUESTION_TYPE.LANGUAGE;
|
|
4
|
-
var QA = QUESTION_TYPE.QA, COLOR_BLINDNESS = QUESTION_TYPE.COLOR_BLINDNESS, ALPHABETIC_DICTATION = QUESTION_TYPE.ALPHABETIC_DICTATION, AI_ANALYSIS = QUESTION_TYPE.AI_ANALYSIS, POLICY_DECISION_GAME = QUESTION_TYPE.POLICY_DECISION_GAME, MEMORY_GAME = QUESTION_TYPE.MEMORY_GAME, EMOTION_GAME = QUESTION_TYPE.EMOTION_GAME;
|
|
5
|
-
export var ADD_QUESTION_TYPE_LIST = [
|
|
6
|
-
{
|
|
7
|
-
type: FREE,
|
|
8
|
-
title: '自由作答题',
|
|
9
|
-
desc: '以问答的形式要求候选人对你定问题作答。',
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
type: LANGUAGE,
|
|
13
|
-
title: '语言能力题',
|
|
14
|
-
desc: '候选人根据所提供的文案进行朗读。',
|
|
15
|
-
},
|
|
16
|
-
];
|
|
17
|
-
export var QUESTION_TYPE_MAPPING_LABEL = (_a = {},
|
|
18
|
-
_a[QA] = '问答题',
|
|
19
|
-
_a[COLOR_BLINDNESS] = '色盲题',
|
|
20
|
-
_a[ALPHABETIC_DICTATION] = '字母听写题',
|
|
21
|
-
_a[AI_ANALYSIS] = 'AI分析题',
|
|
22
|
-
_a[POLICY_DECISION_GAME] = '决策能力-游戏题',
|
|
23
|
-
_a[MEMORY_GAME] = '短期记忆-游戏题',
|
|
24
|
-
_a[EMOTION_GAME] = '情绪判断-游戏题',
|
|
25
|
-
_a);
|
|
26
|
-
export var DEFAULT_GUIDE_VIDEO_URL = 'https://public-static-assets.oss-cn-beijing.aliyuncs.com/wxprogram/guide_video.mp4';
|
|
27
|
-
export var DEFAULT_GUIDE_VIDEO_THUMB_URL = 'https://public-static-assets.oss-cn-beijing.aliyuncs.com/wxprogram/guide_video.mp4?x-oss-process=video/snapshot,t_0,f_jpg';
|
|
28
|
-
export var DEFAULT_GUIDE_VIDEO = [
|
|
29
|
-
{
|
|
30
|
-
videoUrl: DEFAULT_GUIDE_VIDEO_URL,
|
|
31
|
-
frameUrl: DEFAULT_GUIDE_VIDEO_THUMB_URL,
|
|
32
|
-
},
|
|
33
|
-
];
|
|
34
|
-
export var MAX_UPLOAD_FILE_SIZE = 1024 * 1024 * 20;
|
|
35
|
-
export var MAX_UPLOAD_VIDEO_FILE_SIZE = 1024 * 1024 * 500;
|
|
36
|
-
export var TEST_TYPE_READONLY = [2, 3, 4, 7, 8, 9, 10, 11, 12];
|
|
37
|
-
export var DISABLED_REPEAT_TYPE = [2, 4, 7, 8, 9, 11, 12];
|
|
38
|
-
// 是否开启AI分析
|
|
39
|
-
export var IS_AI_ANALYSIS = function (step) { return step.aiType === 2; };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const RosePieColors: string[][];
|
|
2
|
-
export declare const scoreRankIntervalColors: string[];
|
|
3
|
-
export declare const REPORT_MODULE_MAP: {
|
|
4
|
-
score: {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
workplace: {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
evaluate: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
suggestion: {
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
type: string;
|
|
23
|
-
};
|
|
24
|
-
videoQuestion: {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
type: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export var RosePieColors = [
|
|
2
|
-
['rgba(78, 163, 253, 0.2)', 'rgba(78, 163, 253, 0.4)', 'rgba(78, 163, 253, 0.6)', 'rgba(78, 163, 253, 1)'],
|
|
3
|
-
['rgba(82, 206, 220, 0.2)', 'rgba(82, 206, 220, 0.4)', 'rgba(82, 206, 220, 0.6)', 'rgba(82, 206, 220, 1)'],
|
|
4
|
-
['rgba(196, 134, 252, 0.2)', 'rgba(196, 134, 252, 0.4)', 'rgba(196, 134, 252, 0.6)', 'rgba(196, 134, 252, 1)'],
|
|
5
|
-
['rgba(139, 151, 252, 0.2)', 'rgba(139, 151, 252, 0.4)', 'rgba(139, 151, 252, 0.6)', 'rgba(139, 151, 252, 1)'],
|
|
6
|
-
['rgba(255, 149, 239, 0.2)', 'rgba(255, 149, 239, 0.4)', 'rgba(255, 149, 239, 0.6)', 'rgba(255, 149, 239, 1)'],
|
|
7
|
-
['rgba(255, 181, 129, 0.2)', 'rgba(255, 181, 129, 0.4)', 'rgba(255, 181, 129, 0.6)', 'rgba(255, 181, 129, 1)'],
|
|
8
|
-
['rgba(253, 210, 87, 0.2)', 'rgba(253, 210, 87, 0.4)', 'rgba(253, 210, 87, 0.6)', 'rgba(253, 210, 87, 1)'],
|
|
9
|
-
['rgba(63, 214, 245, 0.2)', 'rgba(63, 214, 245, 0.4)', 'rgba(63, 214, 245, 0.6)', 'rgba(63, 214, 245, 1)'],
|
|
10
|
-
['rgba(160, 115, 255, 0.2)', 'rgba(160, 115, 255, 0.4)', 'rgba(160, 115, 255, 0.6)', 'rgba(160, 115, 255, 1)'],
|
|
11
|
-
];
|
|
12
|
-
export var scoreRankIntervalColors = ['#C8E6C9', '#A5D6A7', '#81C784', '#66BB6A', '#4CAF50'];
|
|
13
|
-
export var REPORT_MODULE_MAP = {
|
|
14
|
-
score: {
|
|
15
|
-
id: 'report-score',
|
|
16
|
-
name: '综合表现',
|
|
17
|
-
type: 'score',
|
|
18
|
-
},
|
|
19
|
-
workplace: {
|
|
20
|
-
id: 'report-workplace',
|
|
21
|
-
name: '职场能力表现',
|
|
22
|
-
type: 'workplace',
|
|
23
|
-
},
|
|
24
|
-
evaluate: {
|
|
25
|
-
id: 'report-evaluate',
|
|
26
|
-
name: 'AI基础能力',
|
|
27
|
-
type: 'evaluate',
|
|
28
|
-
},
|
|
29
|
-
suggestion: {
|
|
30
|
-
id: 'report-suggestion',
|
|
31
|
-
name: '考察建议',
|
|
32
|
-
type: 'suggestion',
|
|
33
|
-
},
|
|
34
|
-
videoQuestion: {
|
|
35
|
-
id: 'report-question',
|
|
36
|
-
name: '视频题',
|
|
37
|
-
type: 'videoQuestion',
|
|
38
|
-
},
|
|
39
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 新增题目类型
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ADD_QUESTION_TYPE {
|
|
5
|
-
FREE = 1,
|
|
6
|
-
LANGUAGE = 2
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* AI考核标准类型
|
|
10
|
-
*/
|
|
11
|
-
export declare enum CATEGORY_TYPE {
|
|
12
|
-
LANGUAGE = 1,
|
|
13
|
-
SEMANTICS = 2,
|
|
14
|
-
EXPRESSION = 3,
|
|
15
|
-
FORM = 4,
|
|
16
|
-
LANGUAGE_ABILITY = 6
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* AI考核标准语言类型
|
|
20
|
-
*/
|
|
21
|
-
export declare enum LANGUAGE_TYPE {
|
|
22
|
-
MANDARIN = 2,
|
|
23
|
-
CANTONESE = 13,
|
|
24
|
-
JAPANESE = 12,
|
|
25
|
-
ENGLISH = 11
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 题目类型
|
|
29
|
-
*/
|
|
30
|
-
export declare enum QUESTION_TYPE {
|
|
31
|
-
QA = 1,
|
|
32
|
-
COLOR_BLINDNESS = 2,
|
|
33
|
-
ALPHABETIC_DICTATION = 4,
|
|
34
|
-
AI_ANALYSIS = 6,
|
|
35
|
-
POLICY_DECISION_GAME = 7,
|
|
36
|
-
MEMORY_GAME = 8,
|
|
37
|
-
EMOTION_GAME = 9
|
|
38
|
-
}
|
package/esm/enum/ai-question.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 新增题目类型
|
|
3
|
-
*/
|
|
4
|
-
export var ADD_QUESTION_TYPE;
|
|
5
|
-
(function (ADD_QUESTION_TYPE) {
|
|
6
|
-
ADD_QUESTION_TYPE[ADD_QUESTION_TYPE["FREE"] = 1] = "FREE";
|
|
7
|
-
ADD_QUESTION_TYPE[ADD_QUESTION_TYPE["LANGUAGE"] = 2] = "LANGUAGE";
|
|
8
|
-
})(ADD_QUESTION_TYPE || (ADD_QUESTION_TYPE = {}));
|
|
9
|
-
/**
|
|
10
|
-
* AI考核标准类型
|
|
11
|
-
*/
|
|
12
|
-
export var CATEGORY_TYPE;
|
|
13
|
-
(function (CATEGORY_TYPE) {
|
|
14
|
-
CATEGORY_TYPE[CATEGORY_TYPE["LANGUAGE"] = 1] = "LANGUAGE";
|
|
15
|
-
CATEGORY_TYPE[CATEGORY_TYPE["SEMANTICS"] = 2] = "SEMANTICS";
|
|
16
|
-
CATEGORY_TYPE[CATEGORY_TYPE["EXPRESSION"] = 3] = "EXPRESSION";
|
|
17
|
-
CATEGORY_TYPE[CATEGORY_TYPE["FORM"] = 4] = "FORM";
|
|
18
|
-
CATEGORY_TYPE[CATEGORY_TYPE["LANGUAGE_ABILITY"] = 6] = "LANGUAGE_ABILITY";
|
|
19
|
-
})(CATEGORY_TYPE || (CATEGORY_TYPE = {}));
|
|
20
|
-
/**
|
|
21
|
-
* AI考核标准语言类型
|
|
22
|
-
*/
|
|
23
|
-
export var LANGUAGE_TYPE;
|
|
24
|
-
(function (LANGUAGE_TYPE) {
|
|
25
|
-
LANGUAGE_TYPE[LANGUAGE_TYPE["MANDARIN"] = 2] = "MANDARIN";
|
|
26
|
-
LANGUAGE_TYPE[LANGUAGE_TYPE["CANTONESE"] = 13] = "CANTONESE";
|
|
27
|
-
LANGUAGE_TYPE[LANGUAGE_TYPE["JAPANESE"] = 12] = "JAPANESE";
|
|
28
|
-
LANGUAGE_TYPE[LANGUAGE_TYPE["ENGLISH"] = 11] = "ENGLISH";
|
|
29
|
-
})(LANGUAGE_TYPE || (LANGUAGE_TYPE = {}));
|
|
30
|
-
/**
|
|
31
|
-
* 题目类型
|
|
32
|
-
*/
|
|
33
|
-
export var QUESTION_TYPE;
|
|
34
|
-
(function (QUESTION_TYPE) {
|
|
35
|
-
QUESTION_TYPE[QUESTION_TYPE["QA"] = 1] = "QA";
|
|
36
|
-
QUESTION_TYPE[QUESTION_TYPE["COLOR_BLINDNESS"] = 2] = "COLOR_BLINDNESS";
|
|
37
|
-
QUESTION_TYPE[QUESTION_TYPE["ALPHABETIC_DICTATION"] = 4] = "ALPHABETIC_DICTATION";
|
|
38
|
-
QUESTION_TYPE[QUESTION_TYPE["AI_ANALYSIS"] = 6] = "AI_ANALYSIS";
|
|
39
|
-
QUESTION_TYPE[QUESTION_TYPE["POLICY_DECISION_GAME"] = 7] = "POLICY_DECISION_GAME";
|
|
40
|
-
QUESTION_TYPE[QUESTION_TYPE["MEMORY_GAME"] = 8] = "MEMORY_GAME";
|
|
41
|
-
QUESTION_TYPE[QUESTION_TYPE["EMOTION_GAME"] = 9] = "EMOTION_GAME";
|
|
42
|
-
})(QUESTION_TYPE || (QUESTION_TYPE = {}));
|
package/esm/enum/ai-report.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AI面试状态(本场面试的状态)
|
|
3
|
-
*/
|
|
4
|
-
export declare enum INTERVIEW_STATUS {
|
|
5
|
-
NO_ANSWER = 1,
|
|
6
|
-
IN_CALCULATION = 2,
|
|
7
|
-
COMPLETED = 3,
|
|
8
|
-
FAILED = 4,
|
|
9
|
-
CHEAT = 5
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* 题目面试状态(当场面试中单道题目的状态)
|
|
13
|
-
*/
|
|
14
|
-
export declare enum INTERVIEW_STEP_STATUS {
|
|
15
|
-
STEP_NO_ANSWER = 1,
|
|
16
|
-
STEP_IN_CALCULATION = 2,
|
|
17
|
-
STEP_COMPLETED = 3,
|
|
18
|
-
STEP_FAILED = 4
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 题目完成状态
|
|
22
|
-
*/
|
|
23
|
-
export declare enum COMPLETED_STATUS {
|
|
24
|
-
NOT_START = 1,
|
|
25
|
-
NOT_COMPLETED = 2,
|
|
26
|
-
COMPLETED = 3
|
|
27
|
-
}
|
package/esm/enum/ai-report.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AI面试状态(本场面试的状态)
|
|
3
|
-
*/
|
|
4
|
-
export var INTERVIEW_STATUS;
|
|
5
|
-
(function (INTERVIEW_STATUS) {
|
|
6
|
-
INTERVIEW_STATUS[INTERVIEW_STATUS["NO_ANSWER"] = 1] = "NO_ANSWER";
|
|
7
|
-
INTERVIEW_STATUS[INTERVIEW_STATUS["IN_CALCULATION"] = 2] = "IN_CALCULATION";
|
|
8
|
-
INTERVIEW_STATUS[INTERVIEW_STATUS["COMPLETED"] = 3] = "COMPLETED";
|
|
9
|
-
INTERVIEW_STATUS[INTERVIEW_STATUS["FAILED"] = 4] = "FAILED";
|
|
10
|
-
INTERVIEW_STATUS[INTERVIEW_STATUS["CHEAT"] = 5] = "CHEAT";
|
|
11
|
-
})(INTERVIEW_STATUS || (INTERVIEW_STATUS = {}));
|
|
12
|
-
/**
|
|
13
|
-
* 题目面试状态(当场面试中单道题目的状态)
|
|
14
|
-
*/
|
|
15
|
-
export var INTERVIEW_STEP_STATUS;
|
|
16
|
-
(function (INTERVIEW_STEP_STATUS) {
|
|
17
|
-
INTERVIEW_STEP_STATUS[INTERVIEW_STEP_STATUS["STEP_NO_ANSWER"] = 1] = "STEP_NO_ANSWER";
|
|
18
|
-
INTERVIEW_STEP_STATUS[INTERVIEW_STEP_STATUS["STEP_IN_CALCULATION"] = 2] = "STEP_IN_CALCULATION";
|
|
19
|
-
INTERVIEW_STEP_STATUS[INTERVIEW_STEP_STATUS["STEP_COMPLETED"] = 3] = "STEP_COMPLETED";
|
|
20
|
-
INTERVIEW_STEP_STATUS[INTERVIEW_STEP_STATUS["STEP_FAILED"] = 4] = "STEP_FAILED";
|
|
21
|
-
})(INTERVIEW_STEP_STATUS || (INTERVIEW_STEP_STATUS = {}));
|
|
22
|
-
/**
|
|
23
|
-
* 题目完成状态
|
|
24
|
-
*/
|
|
25
|
-
export var COMPLETED_STATUS;
|
|
26
|
-
(function (COMPLETED_STATUS) {
|
|
27
|
-
COMPLETED_STATUS[COMPLETED_STATUS["NOT_START"] = 1] = "NOT_START";
|
|
28
|
-
COMPLETED_STATUS[COMPLETED_STATUS["NOT_COMPLETED"] = 2] = "NOT_COMPLETED";
|
|
29
|
-
COMPLETED_STATUS[COMPLETED_STATUS["COMPLETED"] = 3] = "COMPLETED";
|
|
30
|
-
})(COMPLETED_STATUS || (COMPLETED_STATUS = {}));
|
package/esm/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as AiQuestion } from './modules/ai-question';
|
|
2
|
-
export { default as AiReport } from './modules/ai-report';
|
|
3
|
-
export { default as AiTemplate } from './modules/ai-template';
|
|
4
|
-
export { default as AiAbility } from './modules/ai-ability';
|
|
5
|
-
export { default as VideoPreview } from './components/VideoPreview';
|
|
6
|
-
export { useAiQuestion } from './modules/ai-question/useAiQuestion';
|
|
7
|
-
export { useAiReport } from './modules/ai-report/useAiReport';
|
|
8
|
-
export { avocadoVideoInterview } from './utils/config';
|
package/esm/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default as AiQuestion } from './modules/ai-question';
|
|
2
|
-
export { default as AiReport } from './modules/ai-report';
|
|
3
|
-
export { default as AiTemplate } from './modules/ai-template';
|
|
4
|
-
export { default as AiAbility } from './modules/ai-ability';
|
|
5
|
-
export { default as VideoPreview } from './components/VideoPreview';
|
|
6
|
-
export { useAiQuestion } from './modules/ai-question/useAiQuestion';
|
|
7
|
-
export { useAiReport } from './modules/ai-report/useAiReport';
|
|
8
|
-
export { avocadoVideoInterview } from './utils/config';
|
|
@@ -1,135 +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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
|
-
import { useCallback } from 'react';
|
|
50
|
-
import { AddIcon, Box, Button, confirm, DeleteIcon, EditIcon, Header, Link, Message, Table } from 'fbm-ui';
|
|
51
|
-
import { useRequest, useSetState } from 'ahooks';
|
|
52
|
-
import dayjs from 'dayjs';
|
|
53
|
-
import { PostQuestionCollectionDelete, PostQuestionCollectionList } from "../../services/ai-ability";
|
|
54
|
-
import UpdateAbility from './components/UpdateAbility';
|
|
55
|
-
import { AbilityRoot } from './styled';
|
|
56
|
-
var AiAbilityRoot = function () {
|
|
57
|
-
var _a = useSetState({ open: false, name: '', token: '' }), state = _a[0], setState = _a[1];
|
|
58
|
-
var _b = useRequest(PostQuestionCollectionList), data = _b.data, getList = _b.run, listLoading = _b.loading;
|
|
59
|
-
var deleteList = useRequest(PostQuestionCollectionDelete, {
|
|
60
|
-
manual: true,
|
|
61
|
-
onSuccess: function () {
|
|
62
|
-
Message.success('删除能力成功');
|
|
63
|
-
getList();
|
|
64
|
-
},
|
|
65
|
-
}).run;
|
|
66
|
-
var handleAdd = useCallback(function () {
|
|
67
|
-
setState({ open: true });
|
|
68
|
-
}, [setState]);
|
|
69
|
-
var handleEdit = useCallback(function (_a) {
|
|
70
|
-
var name = _a.name, token = _a.token;
|
|
71
|
-
setState({ open: true, name: name, token: token });
|
|
72
|
-
}, [setState]);
|
|
73
|
-
var handleDelete = useCallback(function (_a) {
|
|
74
|
-
var token = _a.token, used = _a.used, tag = _a.tag;
|
|
75
|
-
if (used) {
|
|
76
|
-
Message.error('有题目正在使用该能力标签,暂不支持删除');
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
confirm({
|
|
80
|
-
title: '确认删除?',
|
|
81
|
-
content: "\u786E\u8BA4\u5C06".concat(tag, "\u4ECE\u7CFB\u7EDF\u4E2D\u5220\u9664\u5417\uFF1F\u8BE5\u5220\u9664\u52A8\u4F5C\u65E0\u6CD5\u88AB\u64A4\u9500\u3002"),
|
|
82
|
-
okText: '删除',
|
|
83
|
-
okProps: {
|
|
84
|
-
color: 'error',
|
|
85
|
-
variant: 'contained',
|
|
86
|
-
},
|
|
87
|
-
onOk: function (_a) {
|
|
88
|
-
var onClose = _a.onClose;
|
|
89
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
90
|
-
return __generator(this, function (_b) {
|
|
91
|
-
deleteList(token);
|
|
92
|
-
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
93
|
-
return [2 /*return*/];
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}, [deleteList]);
|
|
100
|
-
var handleClose = useCallback(function () {
|
|
101
|
-
setState({ open: false, name: '', token: '' });
|
|
102
|
-
}, [setState]);
|
|
103
|
-
var columns = [
|
|
104
|
-
{
|
|
105
|
-
id: 'name',
|
|
106
|
-
label: '能力名称',
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
id: 'updatedAt',
|
|
110
|
-
label: '最后更新时间',
|
|
111
|
-
render: function (_a) {
|
|
112
|
-
var cell = _a.cell, row = _a.row;
|
|
113
|
-
return _jsx(_Fragment, { children: row.type === 1 ? '-' : dayjs(cell * 1000).format('YYYY-MM-DD HH:mm:ss') });
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
id: 'mateData',
|
|
118
|
-
label: '最后更新人',
|
|
119
|
-
render: function (_a) {
|
|
120
|
-
var cell = _a.cell, row = _a.row;
|
|
121
|
-
return _jsx(_Fragment, { children: row.type === 1 ? '-' : cell === null || cell === void 0 ? void 0 : cell.account });
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: 'action',
|
|
126
|
-
label: '操作',
|
|
127
|
-
render: function (_a) {
|
|
128
|
-
var row = _a.row;
|
|
129
|
-
return row.type === 1 ? null : (_jsxs(_Fragment, { children: [_jsx(Link, { sx: { color: 'rgba(0, 0, 0, 0.56)', mr: 3, cursor: 'pointer' }, text: _jsx(EditIcon, {}), onClick: function () { return handleEdit(row); } }), _jsx(Link, { sx: { color: 'rgba(0, 0, 0, 0.56)', cursor: 'pointer' }, text: _jsx(DeleteIcon, {}), onClick: function () { return handleDelete(row); } })] }));
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
];
|
|
133
|
-
return (_jsxs(AbilityRoot, { children: [_jsx(UpdateAbility, __assign({}, state, { onClose: handleClose, onSuccess: getList })), _jsx(Header, { title: "\u8003\u5BDF\u80FD\u529B\u7BA1\u7406", renderAction: function () { return (_jsx(Button, __assign({ icon: _jsx(AddIcon, {}), onClick: handleAdd }, { children: "\u65B0\u589E\u80FD\u529B" }))); } }), _jsx(Box, __assign({ mt: 2, border: "1px solid rgba(0, 0, 0, 0.08)", borderRadius: 0.5, overflow: "hidden" }, { children: _jsx(Table, { emptyText: "\u6682\u65E0\u6570\u636E", loading: listLoading, data: data === null || data === void 0 ? void 0 : data.data.list, columns: columns }) }))] }));
|
|
134
|
-
};
|
|
135
|
-
export default AiAbilityRoot;
|
|
@@ -1,115 +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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
50
|
-
import { Dialog, Message, TextField, useTextField } from 'fbm-ui';
|
|
51
|
-
import { useRequest } from 'ahooks';
|
|
52
|
-
import { PostQuestionCollectionUpsert } from "../../../../services/ai-ability";
|
|
53
|
-
var UpdateAbility = function (props) {
|
|
54
|
-
var open = props.open, _a = props.name, name = _a === void 0 ? '' : _a, token = props.token, onClose = props.onClose, onSuccess = props.onSuccess;
|
|
55
|
-
var _b = useState(''), value = _b[0], setValue = _b[1];
|
|
56
|
-
var _c = useRequest(PostQuestionCollectionUpsert, {
|
|
57
|
-
manual: true,
|
|
58
|
-
onSuccess: function () {
|
|
59
|
-
Message.success("".concat(token ? '编辑' : '新增', "\u80FD\u529B\u6210\u529F"));
|
|
60
|
-
onClose();
|
|
61
|
-
onSuccess();
|
|
62
|
-
},
|
|
63
|
-
}), run = _c.run, loading = _c.loading;
|
|
64
|
-
var nameTextField = useTextField({
|
|
65
|
-
value: value,
|
|
66
|
-
label: '能力名称',
|
|
67
|
-
required: true,
|
|
68
|
-
rules: [
|
|
69
|
-
{
|
|
70
|
-
required: true,
|
|
71
|
-
message: '请输入能力名称',
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
onChange: function (e) { return setValue(e.target.value); },
|
|
75
|
-
max: 7,
|
|
76
|
-
sx: {
|
|
77
|
-
height: '48px',
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
var handleOk = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
var error, avocadoConfig;
|
|
82
|
-
return __generator(this, function (_a) {
|
|
83
|
-
switch (_a.label) {
|
|
84
|
-
case 0: return [4 /*yield*/, nameTextField.handleValidate()];
|
|
85
|
-
case 1:
|
|
86
|
-
error = _a.sent();
|
|
87
|
-
if (!error) {
|
|
88
|
-
avocadoConfig = window['AvocadoVideoInterviewConfig'];
|
|
89
|
-
run({
|
|
90
|
-
name: value,
|
|
91
|
-
tag: value,
|
|
92
|
-
token: token,
|
|
93
|
-
mateData: {
|
|
94
|
-
account: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.account,
|
|
95
|
-
enterpriseId: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.enterpriseId,
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
return [2 /*return*/];
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}); }, [nameTextField, run, token, value]);
|
|
103
|
-
useEffect(function () {
|
|
104
|
-
setValue(name);
|
|
105
|
-
}, [name]);
|
|
106
|
-
useEffect(function () {
|
|
107
|
-
if (!open) {
|
|
108
|
-
setValue('');
|
|
109
|
-
nameTextField.setError();
|
|
110
|
-
}
|
|
111
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
112
|
-
}, [open]);
|
|
113
|
-
return (_jsx(Dialog, __assign({ title: token ? '编辑能力' : '新增能力', open: open, okText: token ? '保存' : '新建', okProps: { loading: loading }, onClose: onClose, onOk: handleOk }, { children: _jsx(TextField, __assign({}, nameTextField)) })));
|
|
114
|
-
};
|
|
115
|
-
export default UpdateAbility;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|