eli-video-interview 1.2.29-beta.1 → 1.2.29-beta.2
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/esm/assets/icons/AI.svg +1 -0
- package/esm/assets/icons/free.svg +1 -0
- package/esm/assets/icons/video.svg +1 -0
- package/esm/components/AiHeaderTitle/index.d.ts +4 -0
- package/esm/components/AiHeaderTitle/index.js +19 -0
- package/esm/components/AiHeaderTitle/interface.d.ts +4 -0
- package/esm/components/AiHeaderTitle/interface.js +1 -0
- package/esm/components/BigBallSvg/index.d.ts +3 -0
- package/esm/components/BigBallSvg/index.js +17 -0
- package/esm/components/BigBallSvg/styled.d.ts +3 -0
- package/esm/components/BigBallSvg/styled.js +28 -0
- package/esm/components/Charts/Chart.d.ts +4 -0
- package/esm/components/Charts/Chart.js +32 -0
- package/esm/components/Charts/ReportPie.d.ts +4 -0
- package/esm/components/Charts/ReportPie.js +142 -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 +17 -0
- package/esm/components/Charts/const.js +17 -0
- package/esm/components/Charts/interface.d.ts +18 -0
- package/esm/components/Charts/interface.js +1 -0
- package/esm/components/RootProvider/index.d.ts +3 -0
- package/esm/components/RootProvider/index.js +27 -0
- package/esm/components/ScoreBigBall/index.d.ts +4 -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/ScrollDialogContent/index.d.ts +5 -0
- package/esm/components/ScrollDialogContent/index.js +6 -0
- package/esm/components/SvgIcon/index.d.ts +4 -0
- package/esm/components/SvgIcon/index.js +32 -0
- package/esm/components/SvgIcon/interface.d.ts +4 -0
- package/esm/components/SvgIcon/interface.js +1 -0
- package/esm/components/VideoPreview/index.d.ts +4 -0
- package/esm/components/VideoPreview/index.js +19 -0
- package/esm/components/VideoPreview/interface.d.ts +15 -0
- package/esm/components/VideoPreview/interface.js +1 -0
- package/esm/components/VideoPreview/styled.d.ts +10 -0
- package/esm/components/VideoPreview/styled.js +24 -0
- package/esm/constants/ai-question.d.ts +27 -0
- package/esm/constants/ai-question.js +39 -0
- package/esm/constants/ai-report.d.ts +29 -0
- package/esm/constants/ai-report.js +39 -0
- package/esm/enum/ai-question.d.ts +38 -0
- package/esm/enum/ai-question.js +42 -0
- package/esm/enum/ai-report.d.ts +27 -0
- package/esm/enum/ai-report.js +30 -0
- package/esm/index.d.ts +9 -0
- package/esm/index.js +9 -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 +115 -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 +3 -0
- package/esm/modules/ai-ability/index.js +7 -0
- package/esm/modules/ai-ability/interface.d.ts +16 -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.d.ts +4 -0
- package/esm/modules/ai-question/Root.js +144 -0
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +44 -0
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +54 -0
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +62 -0
- package/esm/modules/ai-question/components/AiAnalysis/const.d.ts +5 -0
- package/esm/modules/ai-question/components/AiAnalysis/const.js +11 -0
- package/esm/modules/ai-question/components/AiAnalysis/index.d.ts +3 -0
- package/esm/modules/ai-question/components/AiAnalysis/index.js +27 -0
- package/esm/modules/ai-question/components/AiAnalysis/interface.d.ts +23 -0
- package/esm/modules/ai-question/components/AiAnalysis/interface.js +1 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +25 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +30 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +112 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +33 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.js +1 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +5 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +9 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.js +29 -0
- package/esm/modules/ai-question/components/BaseAccordion/const.d.ts +1 -0
- package/esm/modules/ai-question/components/BaseAccordion/const.js +1 -0
- package/esm/modules/ai-question/components/BaseAccordion/index.d.ts +4 -0
- package/esm/modules/ai-question/components/BaseAccordion/index.js +98 -0
- package/esm/modules/ai-question/components/BaseAccordion/interface.d.ts +9 -0
- package/esm/modules/ai-question/components/BaseAccordion/interface.js +1 -0
- package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +10 -0
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +76 -0
- package/esm/modules/ai-question/components/BootVideo/index.d.ts +4 -0
- package/esm/modules/ai-question/components/BootVideo/index.js +113 -0
- package/esm/modules/ai-question/components/BootVideo/interface.d.ts +8 -0
- package/esm/modules/ai-question/components/BootVideo/interface.js +1 -0
- package/esm/modules/ai-question/components/BootVideo/styled.d.ts +13 -0
- package/esm/modules/ai-question/components/BootVideo/styled.js +48 -0
- package/esm/modules/ai-question/components/QuestionModel/Header.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/Header.js +23 -0
- package/esm/modules/ai-question/components/QuestionModel/Item.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionModel/Item.js +72 -0
- package/esm/modules/ai-question/components/QuestionModel/List.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/List.js +47 -0
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +17 -0
- package/esm/modules/ai-question/components/QuestionModel/index.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/index.js +71 -0
- package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +19 -0
- package/esm/modules/ai-question/components/QuestionModel/interface.js +1 -0
- package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionModel/styled.js +8 -0
- package/esm/modules/ai-question/components/QuestionPreview/index.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionPreview/index.js +31 -0
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +11 -0
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +11 -0
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +50 -0
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +17 -0
- package/esm/modules/ai-question/components/QuestionTemplate/index.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +30 -0
- package/esm/modules/ai-question/components/QuestionTemplate/interface.d.ts +43 -0
- package/esm/modules/ai-question/components/QuestionTemplate/interface.js +1 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +110 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +64 -0
- package/esm/modules/ai-question/components/QuestionUpdate/const.d.ts +14 -0
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +54 -0
- package/esm/modules/ai-question/components/QuestionUpdate/index.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +257 -0
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +63 -0
- package/esm/modules/ai-question/components/QuestionUpdate/interface.js +1 -0
- package/esm/modules/ai-question/index.d.ts +4 -0
- package/esm/modules/ai-question/index.js +20 -0
- package/esm/modules/ai-question/interface.d.ts +78 -0
- package/esm/modules/ai-question/interface.js +1 -0
- package/esm/modules/ai-question/useAiQuestion.d.ts +17 -0
- package/esm/modules/ai-question/useAiQuestion.js +20 -0
- package/esm/modules/ai-report/Root.d.ts +4 -0
- package/esm/modules/ai-report/Root.js +77 -0
- package/esm/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +13 -0
- package/esm/modules/ai-report/components/AIEvaluate/Evaluate.js +60 -0
- package/esm/modules/ai-report/components/AIEvaluate/Graph.d.ts +13 -0
- package/esm/modules/ai-report/components/AIEvaluate/Graph.js +225 -0
- package/esm/modules/ai-report/components/AIEvaluate/index.d.ts +3 -0
- package/esm/modules/ai-report/components/AIEvaluate/index.js +40 -0
- package/esm/modules/ai-report/components/MenuAnchor/MenuAnchor.d.ts +4 -0
- package/esm/modules/ai-report/components/MenuAnchor/MenuAnchor.js +106 -0
- package/esm/modules/ai-report/components/MenuAnchor/index.d.ts +4 -0
- package/esm/modules/ai-report/components/MenuAnchor/index.js +20 -0
- package/esm/modules/ai-report/components/MenuAnchor/interface.d.ts +10 -0
- package/esm/modules/ai-report/components/MenuAnchor/interface.js +1 -0
- package/esm/modules/ai-report/components/NotFinish/index.d.ts +3 -0
- package/esm/modules/ai-report/components/NotFinish/index.js +25 -0
- package/esm/modules/ai-report/components/RankingRange/Item.d.ts +4 -0
- package/esm/modules/ai-report/components/RankingRange/Item.js +30 -0
- package/esm/modules/ai-report/components/RankingRange/index.d.ts +4 -0
- package/esm/modules/ai-report/components/RankingRange/index.js +171 -0
- package/esm/modules/ai-report/components/RankingRange/interface.d.ts +26 -0
- package/esm/modules/ai-report/components/RankingRange/interface.js +1 -0
- package/esm/modules/ai-report/components/RankingRange/styled.d.ts +7 -0
- package/esm/modules/ai-report/components/RankingRange/styled.js +11 -0
- package/esm/modules/ai-report/components/ScoreReport/Bar.d.ts +3 -0
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +50 -0
- package/esm/modules/ai-report/components/ScoreReport/Failed.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/Failed.js +25 -0
- package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +3 -0
- package/esm/modules/ai-report/components/ScoreReport/Report.js +35 -0
- package/esm/modules/ai-report/components/ScoreReport/Score.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/Score.js +34 -0
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +33 -0
- package/esm/modules/ai-report/components/ScoreReport/index.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/index.js +41 -0
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +13 -0
- package/esm/modules/ai-report/components/ScoreReport/interface.js +1 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +22 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.js +23 -0
- package/esm/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
- package/esm/modules/ai-report/components/Suggestion/Suggestion.js +29 -0
- package/esm/modules/ai-report/components/Suggestion/index.d.ts +3 -0
- package/esm/modules/ai-report/components/Suggestion/index.js +27 -0
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +4 -0
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +40 -0
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +4 -0
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +91 -0
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +4 -0
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +30 -0
- package/esm/modules/ai-report/components/VideoQuestion/index.d.ts +3 -0
- package/esm/modules/ai-report/components/VideoQuestion/index.js +22 -0
- package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +14 -0
- package/esm/modules/ai-report/components/VideoQuestion/interface.js +1 -0
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +71 -0
- package/esm/modules/ai-report/components/VideoQuestion/styled.js +91 -0
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.js +24 -0
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +55 -0
- package/esm/modules/ai-report/components/WorkPlaces/index.d.ts +3 -0
- package/esm/modules/ai-report/components/WorkPlaces/index.js +67 -0
- package/esm/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
- package/esm/modules/ai-report/components/WorkPlaces/interface.js +1 -0
- package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
- package/esm/modules/ai-report/components/WorkPlaces/styled.js +27 -0
- package/esm/modules/ai-report/index.d.ts +4 -0
- package/esm/modules/ai-report/index.js +20 -0
- package/esm/modules/ai-report/interface.d.ts +177 -0
- package/esm/modules/ai-report/interface.js +1 -0
- package/esm/modules/ai-report/useAiReport.d.ts +28 -0
- package/esm/modules/ai-report/useAiReport.js +16 -0
- package/esm/modules/ai-report/utils.d.ts +1 -0
- package/esm/modules/ai-report/utils.js +1 -0
- 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-template/index.js +20 -0
- 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 +14 -0
- package/esm/services/ai-ability.js +7 -0
- package/esm/services/ai-question.d.ts +12 -0
- package/esm/services/ai-question.js +15 -0
- package/esm/services/ai-report.d.ts +14 -0
- package/esm/services/ai-report.js +13 -0
- package/esm/services/ai-template.d.ts +4 -0
- package/esm/services/ai-template.js +9 -0
- package/esm/store/ai-ability/question-ability-store.d.ts +12 -0
- package/esm/store/ai-ability/question-ability-store.js +10 -0
- package/esm/store/ai-question/ai-analysis-store.d.ts +33 -0
- package/esm/store/ai-question/ai-analysis-store.js +158 -0
- package/esm/store/ai-question/boot-video-store.d.ts +17 -0
- package/esm/store/ai-question/boot-video-store.js +21 -0
- package/esm/store/ai-question/global-store.d.ts +35 -0
- package/esm/store/ai-question/global-store.js +22 -0
- package/esm/store/ai-question/question-model-store.d.ts +24 -0
- package/esm/store/ai-question/question-model-store.js +136 -0
- package/esm/store/ai-question/question-preview-store.d.ts +14 -0
- package/esm/store/ai-question/question-preview-store.js +21 -0
- package/esm/store/ai-question/question-template-store.d.ts +12 -0
- package/esm/store/ai-question/question-template-store.js +10 -0
- package/esm/store/ai-question/question-update-store.d.ts +11 -0
- package/esm/store/ai-question/question-update-store.js +33 -0
- package/esm/store/ai-report/global-store.d.ts +81 -0
- package/esm/store/ai-report/global-store.js +30 -0
- 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 +13 -0
- package/esm/utils/config.js +17 -0
- package/esm/utils/interceptor.d.ts +2 -0
- package/esm/utils/interceptor.js +127 -0
- package/esm/utils/request.d.ts +3 -0
- package/esm/utils/request.js +14 -0
- package/esm/utils/utils.d.ts +58 -0
- package/esm/utils/utils.js +115 -0
- package/lib/assets/icons/AI.svg +1 -0
- package/lib/assets/icons/free.svg +1 -0
- package/lib/assets/icons/video.svg +1 -0
- package/lib/components/AiHeaderTitle/index.d.ts +4 -0
- package/lib/components/AiHeaderTitle/index.js +24 -0
- package/lib/components/AiHeaderTitle/interface.d.ts +4 -0
- package/lib/components/AiHeaderTitle/interface.js +2 -0
- package/lib/components/BigBallSvg/index.d.ts +3 -0
- package/lib/components/BigBallSvg/index.js +19 -0
- package/lib/components/BigBallSvg/styled.d.ts +3 -0
- package/lib/components/BigBallSvg/styled.js +31 -0
- package/lib/components/Charts/Chart.d.ts +4 -0
- package/lib/components/Charts/Chart.js +57 -0
- package/lib/components/Charts/ReportPie.d.ts +4 -0
- package/lib/components/Charts/ReportPie.js +147 -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 +17 -0
- package/lib/components/Charts/const.js +20 -0
- package/lib/components/Charts/interface.d.ts +18 -0
- package/lib/components/Charts/interface.js +2 -0
- package/lib/components/RootProvider/index.d.ts +3 -0
- package/lib/components/RootProvider/index.js +29 -0
- package/lib/components/ScoreBigBall/index.d.ts +4 -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/ScrollDialogContent/index.d.ts +5 -0
- package/lib/components/ScrollDialogContent/index.js +8 -0
- package/lib/components/SvgIcon/index.d.ts +4 -0
- package/lib/components/SvgIcon/index.js +57 -0
- package/lib/components/SvgIcon/interface.d.ts +4 -0
- package/lib/components/SvgIcon/interface.js +2 -0
- package/lib/components/VideoPreview/index.d.ts +4 -0
- package/lib/components/VideoPreview/index.js +21 -0
- package/lib/components/VideoPreview/interface.d.ts +15 -0
- package/lib/components/VideoPreview/interface.js +2 -0
- package/lib/components/VideoPreview/styled.d.ts +10 -0
- package/lib/components/VideoPreview/styled.js +27 -0
- package/lib/constants/ai-question.d.ts +27 -0
- package/lib/constants/ai-question.js +43 -0
- package/lib/constants/ai-report.d.ts +29 -0
- package/lib/constants/ai-report.js +42 -0
- package/lib/enum/ai-question.d.ts +38 -0
- package/lib/enum/ai-question.js +45 -0
- package/lib/enum/ai-report.d.ts +27 -0
- package/lib/enum/ai-report.js +33 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +24 -0
- 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 +117 -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 +3 -0
- package/lib/modules/ai-ability/index.js +12 -0
- package/lib/modules/ai-ability/interface.d.ts +16 -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.d.ts +4 -0
- package/lib/modules/ai-question/Root.js +149 -0
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +49 -0
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +59 -0
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +64 -0
- package/lib/modules/ai-question/components/AiAnalysis/const.d.ts +5 -0
- package/lib/modules/ai-question/components/AiAnalysis/const.js +14 -0
- package/lib/modules/ai-question/components/AiAnalysis/index.d.ts +3 -0
- package/lib/modules/ai-question/components/AiAnalysis/index.js +32 -0
- package/lib/modules/ai-question/components/AiAnalysis/interface.d.ts +23 -0
- package/lib/modules/ai-question/components/AiAnalysis/interface.js +2 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +25 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +33 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +117 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +33 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.js +2 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +8 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +9 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.js +33 -0
- package/lib/modules/ai-question/components/BaseAccordion/const.d.ts +1 -0
- package/lib/modules/ai-question/components/BaseAccordion/const.js +4 -0
- package/lib/modules/ai-question/components/BaseAccordion/index.d.ts +4 -0
- package/lib/modules/ai-question/components/BaseAccordion/index.js +100 -0
- package/lib/modules/ai-question/components/BaseAccordion/interface.d.ts +9 -0
- package/lib/modules/ai-question/components/BaseAccordion/interface.js +2 -0
- package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +10 -0
- package/lib/modules/ai-question/components/BaseAccordion/styled.js +79 -0
- package/lib/modules/ai-question/components/BootVideo/index.d.ts +4 -0
- package/lib/modules/ai-question/components/BootVideo/index.js +118 -0
- package/lib/modules/ai-question/components/BootVideo/interface.d.ts +8 -0
- package/lib/modules/ai-question/components/BootVideo/interface.js +2 -0
- package/lib/modules/ai-question/components/BootVideo/styled.d.ts +13 -0
- package/lib/modules/ai-question/components/BootVideo/styled.js +51 -0
- package/lib/modules/ai-question/components/QuestionModel/Header.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/Header.js +28 -0
- package/lib/modules/ai-question/components/QuestionModel/Item.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionModel/Item.js +74 -0
- package/lib/modules/ai-question/components/QuestionModel/List.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/List.js +52 -0
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +19 -0
- package/lib/modules/ai-question/components/QuestionModel/index.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/index.js +76 -0
- package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +19 -0
- package/lib/modules/ai-question/components/QuestionModel/interface.js +2 -0
- package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionModel/styled.js +11 -0
- package/lib/modules/ai-question/components/QuestionPreview/index.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionPreview/index.js +36 -0
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +11 -0
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +14 -0
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +55 -0
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +19 -0
- package/lib/modules/ai-question/components/QuestionTemplate/index.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +35 -0
- package/lib/modules/ai-question/components/QuestionTemplate/interface.d.ts +43 -0
- package/lib/modules/ai-question/components/QuestionTemplate/interface.js +2 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +115 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +66 -0
- package/lib/modules/ai-question/components/QuestionUpdate/const.d.ts +14 -0
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +57 -0
- package/lib/modules/ai-question/components/QuestionUpdate/index.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +262 -0
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +63 -0
- package/lib/modules/ai-question/components/QuestionUpdate/interface.js +2 -0
- package/lib/modules/ai-question/index.d.ts +4 -0
- package/lib/modules/ai-question/index.js +25 -0
- package/lib/modules/ai-question/interface.d.ts +78 -0
- package/lib/modules/ai-question/interface.js +2 -0
- package/lib/modules/ai-question/useAiQuestion.d.ts +17 -0
- package/lib/modules/ai-question/useAiQuestion.js +24 -0
- package/lib/modules/ai-report/Root.d.ts +4 -0
- package/lib/modules/ai-report/Root.js +82 -0
- package/lib/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +13 -0
- package/lib/modules/ai-report/components/AIEvaluate/Evaluate.js +62 -0
- package/lib/modules/ai-report/components/AIEvaluate/Graph.d.ts +13 -0
- package/lib/modules/ai-report/components/AIEvaluate/Graph.js +227 -0
- package/lib/modules/ai-report/components/AIEvaluate/index.d.ts +3 -0
- package/lib/modules/ai-report/components/AIEvaluate/index.js +45 -0
- package/lib/modules/ai-report/components/MenuAnchor/MenuAnchor.d.ts +4 -0
- package/lib/modules/ai-report/components/MenuAnchor/MenuAnchor.js +108 -0
- package/lib/modules/ai-report/components/MenuAnchor/index.d.ts +4 -0
- package/lib/modules/ai-report/components/MenuAnchor/index.js +25 -0
- package/lib/modules/ai-report/components/MenuAnchor/interface.d.ts +10 -0
- package/lib/modules/ai-report/components/MenuAnchor/interface.js +2 -0
- package/lib/modules/ai-report/components/NotFinish/index.d.ts +3 -0
- package/lib/modules/ai-report/components/NotFinish/index.js +27 -0
- package/lib/modules/ai-report/components/RankingRange/Item.d.ts +4 -0
- package/lib/modules/ai-report/components/RankingRange/Item.js +32 -0
- package/lib/modules/ai-report/components/RankingRange/index.d.ts +4 -0
- package/lib/modules/ai-report/components/RankingRange/index.js +176 -0
- package/lib/modules/ai-report/components/RankingRange/interface.d.ts +26 -0
- package/lib/modules/ai-report/components/RankingRange/interface.js +2 -0
- package/lib/modules/ai-report/components/RankingRange/styled.d.ts +7 -0
- package/lib/modules/ai-report/components/RankingRange/styled.js +14 -0
- package/lib/modules/ai-report/components/ScoreReport/Bar.d.ts +3 -0
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +52 -0
- package/lib/modules/ai-report/components/ScoreReport/Failed.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/Failed.js +27 -0
- package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +3 -0
- package/lib/modules/ai-report/components/ScoreReport/Report.js +40 -0
- package/lib/modules/ai-report/components/ScoreReport/Score.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/Score.js +39 -0
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +35 -0
- package/lib/modules/ai-report/components/ScoreReport/index.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/index.js +46 -0
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +13 -0
- package/lib/modules/ai-report/components/ScoreReport/interface.js +2 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +22 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.js +26 -0
- package/lib/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
- package/lib/modules/ai-report/components/Suggestion/Suggestion.js +31 -0
- package/lib/modules/ai-report/components/Suggestion/index.d.ts +3 -0
- package/lib/modules/ai-report/components/Suggestion/index.js +32 -0
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +4 -0
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +45 -0
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +4 -0
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +96 -0
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +4 -0
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +32 -0
- package/lib/modules/ai-report/components/VideoQuestion/index.d.ts +3 -0
- package/lib/modules/ai-report/components/VideoQuestion/index.js +27 -0
- package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +14 -0
- package/lib/modules/ai-report/components/VideoQuestion/interface.js +2 -0
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +71 -0
- package/lib/modules/ai-report/components/VideoQuestion/styled.js +94 -0
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.js +26 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +57 -0
- package/lib/modules/ai-report/components/WorkPlaces/index.d.ts +3 -0
- package/lib/modules/ai-report/components/WorkPlaces/index.js +72 -0
- package/lib/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
- package/lib/modules/ai-report/components/WorkPlaces/interface.js +2 -0
- package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
- package/lib/modules/ai-report/components/WorkPlaces/styled.js +30 -0
- package/lib/modules/ai-report/index.d.ts +4 -0
- package/lib/modules/ai-report/index.js +25 -0
- package/lib/modules/ai-report/interface.d.ts +177 -0
- package/lib/modules/ai-report/interface.js +2 -0
- package/lib/modules/ai-report/useAiReport.d.ts +28 -0
- package/lib/modules/ai-report/useAiReport.js +20 -0
- package/lib/modules/ai-report/utils.d.ts +1 -0
- package/lib/modules/ai-report/utils.js +5 -0
- 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-template/index.js +25 -0
- 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 +14 -0
- package/lib/services/ai-ability.js +13 -0
- package/lib/services/ai-question.d.ts +12 -0
- package/lib/services/ai-question.js +25 -0
- package/lib/services/ai-report.d.ts +14 -0
- package/lib/services/ai-report.js +20 -0
- package/lib/services/ai-template.d.ts +4 -0
- package/lib/services/ai-template.js +16 -0
- package/lib/store/ai-ability/question-ability-store.d.ts +12 -0
- package/lib/store/ai-ability/question-ability-store.js +13 -0
- package/lib/store/ai-question/ai-analysis-store.d.ts +33 -0
- package/lib/store/ai-question/ai-analysis-store.js +164 -0
- package/lib/store/ai-question/boot-video-store.d.ts +17 -0
- package/lib/store/ai-question/boot-video-store.js +24 -0
- package/lib/store/ai-question/global-store.d.ts +35 -0
- package/lib/store/ai-question/global-store.js +25 -0
- package/lib/store/ai-question/question-model-store.d.ts +24 -0
- package/lib/store/ai-question/question-model-store.js +142 -0
- package/lib/store/ai-question/question-preview-store.d.ts +14 -0
- package/lib/store/ai-question/question-preview-store.js +24 -0
- package/lib/store/ai-question/question-template-store.d.ts +12 -0
- package/lib/store/ai-question/question-template-store.js +13 -0
- package/lib/store/ai-question/question-update-store.d.ts +11 -0
- package/lib/store/ai-question/question-update-store.js +36 -0
- package/lib/store/ai-report/global-store.d.ts +81 -0
- package/lib/store/ai-report/global-store.js +33 -0
- 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 +13 -0
- package/lib/utils/config.js +20 -0
- package/lib/utils/interceptor.d.ts +2 -0
- package/lib/utils/interceptor.js +132 -0
- package/lib/utils/request.d.ts +3 -0
- package/lib/utils/request.js +22 -0
- package/lib/utils/utils.d.ts +58 -0
- package/lib/utils/utils.js +129 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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").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").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").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
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;
|
|
@@ -0,0 +1,39 @@
|
|
|
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; };
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as AiQuestion } from './modules/ai-question';
|
|
2
|
+
export { default as AiReport } from './modules/ai-report';
|
|
3
|
+
export { default as MenuAnchor } from './modules/ai-report/components/MenuAnchor/MenuAnchor';
|
|
4
|
+
export { default as AiTemplate } from './modules/ai-template';
|
|
5
|
+
export { default as AiAbility } from './modules/ai-ability';
|
|
6
|
+
export { default as VideoPreview } from './components/VideoPreview';
|
|
7
|
+
export { useAiQuestion } from './modules/ai-question/useAiQuestion';
|
|
8
|
+
export { useAiReport } from './modules/ai-report/useAiReport';
|
|
9
|
+
export { avocadoVideoInterview } from './utils/config';
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as AiQuestion } from './modules/ai-question';
|
|
2
|
+
export { default as AiReport } from './modules/ai-report';
|
|
3
|
+
export { default as MenuAnchor } from './modules/ai-report/components/MenuAnchor/MenuAnchor';
|
|
4
|
+
export { default as AiTemplate } from './modules/ai-template';
|
|
5
|
+
export { default as AiAbility } from './modules/ai-ability';
|
|
6
|
+
export { default as VideoPreview } from './components/VideoPreview';
|
|
7
|
+
export { useAiQuestion } from './modules/ai-question/useAiQuestion';
|
|
8
|
+
export { useAiReport } from './modules/ai-report/useAiReport';
|
|
9
|
+
export { avocadoVideoInterview } from './utils/config';
|
|
@@ -0,0 +1,135 @@
|
|
|
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;
|
|
@@ -0,0 +1,115 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import RootProvider from "../../components/RootProvider";
|
|
3
|
+
import AiAbilityRoot from './Root';
|
|
4
|
+
var AiAbility = function () {
|
|
5
|
+
return (_jsx(RootProvider, { children: _jsx(AiAbilityRoot, {}) }));
|
|
6
|
+
};
|
|
7
|
+
export default AiAbility;
|