eli-video-interview 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +411 -0
- package/esm/assets/icons/free.svg +1 -0
- package/esm/assets/icons/video.svg +1 -0
- package/esm/components/BigBallSvg/index.d.ts +3 -0
- package/esm/components/BigBallSvg/index.js +17 -0
- package/esm/components/BigBallSvg/index.module.css +37 -0
- package/esm/components/Charts/Chart.d.ts +4 -0
- package/esm/components/Charts/Chart.js +38 -0
- package/esm/components/Charts/const.d.ts +382 -0
- package/esm/components/Charts/const.js +382 -0
- package/esm/components/Charts/interface.d.ts +3 -0
- package/esm/components/Charts/interface.js +1 -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 +31 -0
- package/esm/components/SvgIcon/interface.d.ts +3 -0
- package/esm/components/SvgIcon/interface.js +1 -0
- package/esm/components/VideoPreview/index.d.ts +4 -0
- package/esm/components/VideoPreview/index.js +20 -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 +2 -0
- package/esm/constants/ai-report.js +12 -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 +6 -0
- package/esm/index.js +6 -0
- package/esm/modules/ai-question/Root.d.ts +4 -0
- package/esm/modules/ai-question/Root.js +141 -0
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +39 -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 +35 -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 +19 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +23 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +114 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +27 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.js +1 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +39 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +20 -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 +73 -0
- package/esm/modules/ai-question/components/BootVideo/index.d.ts +4 -0
- package/esm/modules/ai-question/components/BootVideo/index.js +100 -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 +33 -0
- package/esm/modules/ai-question/components/BootVideo/styled.js +49 -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 +74 -0
- package/esm/modules/ai-question/components/QuestionModel/List.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/List.js +39 -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 +64 -0
- package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +18 -0
- package/esm/modules/ai-question/components/QuestionModel/interface.js +1 -0
- package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +9 -0
- package/esm/modules/ai-question/components/QuestionModel/styled.js +9 -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 +23 -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 +47 -0
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +20 -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 +38 -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/QuestionTemplate/styled.d.ts +87 -0
- package/esm/modules/ai-question/components/QuestionTemplate/styled.js +33 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +91 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +63 -0
- package/esm/modules/ai-question/components/QuestionUpdate/const.d.ts +14 -0
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +53 -0
- package/esm/modules/ai-question/components/QuestionUpdate/index.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +203 -0
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +57 -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 +22 -0
- package/esm/modules/ai-question/interface.d.ts +74 -0
- package/esm/modules/ai-question/interface.js +1 -0
- package/esm/modules/ai-question/useAiQuestion.d.ts +15 -0
- package/esm/modules/ai-question/useAiQuestion.js +18 -0
- package/esm/modules/ai-report/Root.d.ts +4 -0
- package/esm/modules/ai-report/Root.js +73 -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 +44 -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 +45 -0
- package/esm/modules/ai-report/components/ScoreReport/RosePie.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/RosePie.js +19 -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/ScoreBigBall.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/ScoreBigBall.js +26 -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/const.d.ts +34 -0
- package/esm/modules/ai-report/components/ScoreReport/const.js +77 -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 +20 -0
- package/esm/modules/ai-report/components/ScoreReport/interface.js +1 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +25 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.js +36 -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 +89 -0
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +4 -0
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +34 -0
- package/esm/modules/ai-report/components/VideoQuestion/index.d.ts +3 -0
- package/esm/modules/ai-report/components/VideoQuestion/index.js +21 -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 +90 -0
- package/esm/modules/ai-report/index.d.ts +4 -0
- package/esm/modules/ai-report/index.js +22 -0
- package/esm/modules/ai-report/interface.d.ts +114 -0
- package/esm/modules/ai-report/interface.js +1 -0
- package/esm/modules/ai-report/useAiReport.d.ts +20 -0
- package/esm/modules/ai-report/useAiReport.js +16 -0
- package/esm/services/ai-question.d.ts +13 -0
- package/esm/services/ai-question.js +17 -0
- package/esm/services/ai-report.d.ts +2 -0
- package/esm/services/ai-report.js +5 -0
- package/esm/store/ai-question/ai-analysis-store.d.ts +29 -0
- package/esm/store/ai-question/ai-analysis-store.js +132 -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 +32 -0
- package/esm/store/ai-question/global-store.js +23 -0
- package/esm/store/ai-question/question-model-store.d.ts +24 -0
- package/esm/store/ai-question/question-model-store.js +130 -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 +57 -0
- package/esm/store/ai-report/global-store.js +28 -0
- package/esm/utils/config.d.ts +11 -0
- package/esm/utils/config.js +17 -0
- package/esm/utils/interceptor.d.ts +2 -0
- package/esm/utils/interceptor.js +119 -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/free.svg +1 -0
- package/lib/assets/icons/video.svg +1 -0
- package/lib/components/BigBallSvg/index.d.ts +3 -0
- package/lib/components/BigBallSvg/index.js +22 -0
- package/lib/components/BigBallSvg/index.module.css +37 -0
- package/lib/components/Charts/Chart.d.ts +4 -0
- package/lib/components/Charts/Chart.js +43 -0
- package/lib/components/Charts/const.d.ts +382 -0
- package/lib/components/Charts/const.js +385 -0
- package/lib/components/Charts/interface.d.ts +3 -0
- package/lib/components/Charts/interface.js +2 -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 +33 -0
- package/lib/components/SvgIcon/interface.d.ts +3 -0
- package/lib/components/SvgIcon/interface.js +2 -0
- package/lib/components/VideoPreview/index.d.ts +4 -0
- package/lib/components/VideoPreview/index.js +22 -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 +2 -0
- package/lib/constants/ai-report.js +15 -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 +6 -0
- package/lib/index.js +18 -0
- package/lib/modules/ai-question/Root.d.ts +4 -0
- package/lib/modules/ai-question/Root.js +146 -0
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +44 -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 +40 -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 +19 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +26 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +119 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +27 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.js +2 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +39 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +26 -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 +76 -0
- package/lib/modules/ai-question/components/BootVideo/index.d.ts +4 -0
- package/lib/modules/ai-question/components/BootVideo/index.js +105 -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 +33 -0
- package/lib/modules/ai-question/components/BootVideo/styled.js +55 -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 +76 -0
- package/lib/modules/ai-question/components/QuestionModel/List.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/List.js +44 -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 +69 -0
- package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +18 -0
- package/lib/modules/ai-question/components/QuestionModel/interface.js +2 -0
- package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +9 -0
- package/lib/modules/ai-question/components/QuestionModel/styled.js +15 -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 +23 -0
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +17 -0
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +52 -0
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +25 -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 +43 -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/QuestionTemplate/styled.d.ts +87 -0
- package/lib/modules/ai-question/components/QuestionTemplate/styled.js +39 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +96 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +65 -0
- package/lib/modules/ai-question/components/QuestionUpdate/const.d.ts +14 -0
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +56 -0
- package/lib/modules/ai-question/components/QuestionUpdate/index.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +208 -0
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +57 -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 +27 -0
- package/lib/modules/ai-question/interface.d.ts +74 -0
- package/lib/modules/ai-question/interface.js +2 -0
- package/lib/modules/ai-question/useAiQuestion.d.ts +15 -0
- package/lib/modules/ai-question/useAiQuestion.js +22 -0
- package/lib/modules/ai-report/Root.d.ts +4 -0
- package/lib/modules/ai-report/Root.js +78 -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 +46 -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 +50 -0
- package/lib/modules/ai-report/components/ScoreReport/RosePie.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/RosePie.js +24 -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/ScoreBigBall.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/ScoreBigBall.js +31 -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/const.d.ts +34 -0
- package/lib/modules/ai-report/components/ScoreReport/const.js +80 -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 +20 -0
- package/lib/modules/ai-report/components/ScoreReport/interface.js +2 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +25 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.js +39 -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 +94 -0
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +4 -0
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +36 -0
- package/lib/modules/ai-report/components/VideoQuestion/index.d.ts +3 -0
- package/lib/modules/ai-report/components/VideoQuestion/index.js +26 -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 +93 -0
- package/lib/modules/ai-report/index.d.ts +4 -0
- package/lib/modules/ai-report/index.js +27 -0
- package/lib/modules/ai-report/interface.d.ts +114 -0
- package/lib/modules/ai-report/interface.js +2 -0
- package/lib/modules/ai-report/useAiReport.d.ts +20 -0
- package/lib/modules/ai-report/useAiReport.js +20 -0
- package/lib/services/ai-question.d.ts +13 -0
- package/lib/services/ai-question.js +28 -0
- package/lib/services/ai-report.d.ts +2 -0
- package/lib/services/ai-report.js +10 -0
- package/lib/store/ai-question/ai-analysis-store.d.ts +29 -0
- package/lib/store/ai-question/ai-analysis-store.js +138 -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 +32 -0
- package/lib/store/ai-question/global-store.js +26 -0
- package/lib/store/ai-question/question-model-store.d.ts +24 -0
- package/lib/store/ai-question/question-model-store.js +136 -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 +57 -0
- package/lib/store/ai-report/global-store.js +31 -0
- package/lib/utils/config.d.ts +11 -0
- package/lib/utils/config.js +20 -0
- package/lib/utils/interceptor.d.ts +2 -0
- package/lib/utils/interceptor.js +124 -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 +153 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
var _a;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.getQuestionModelStore = exports.useQuestionModelStore = void 0;
|
|
19
|
+
var react_1 = require("react");
|
|
20
|
+
var hox_1 = require("hox");
|
|
21
|
+
var immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
22
|
+
var ai_question_1 = require("../../constants/ai-question");
|
|
23
|
+
var utils_1 = require("../../utils/utils");
|
|
24
|
+
exports.useQuestionModelStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
25
|
+
var _a = (0, react_1.useState)(), questionModelData = _a[0], updateModel = _a[1];
|
|
26
|
+
var _b = (questionModelData || {}).steps, steps = _b === void 0 ? [] : _b;
|
|
27
|
+
/**
|
|
28
|
+
* 权重值计算
|
|
29
|
+
* @param steps 模型数据
|
|
30
|
+
*/
|
|
31
|
+
var computeWeight = (0, react_1.useCallback)(function (steps) {
|
|
32
|
+
var aiTypeList = steps.filter(function (step) { return (0, ai_question_1.IS_AI_ANALYSIS)(step); }); // AI评分题
|
|
33
|
+
var uniqueAiTypeList = (0, utils_1.arrayUnique)(aiTypeList, 'token'); // 去除重复AI评分题
|
|
34
|
+
var uniqueAiTypeListLength = uniqueAiTypeList.length;
|
|
35
|
+
var weightList = aiTypeList.filter(function (_a) {
|
|
36
|
+
var isNotCompute = _a.isNotCompute;
|
|
37
|
+
return !isNotCompute;
|
|
38
|
+
}).map(function (_a) {
|
|
39
|
+
var weight = _a.weight;
|
|
40
|
+
return Math.floor(Number(weight));
|
|
41
|
+
});
|
|
42
|
+
var weightsLen = Array.from(new Set(weightList)).length; // 权重值分组数量
|
|
43
|
+
var lastAiTestToken = aiTypeList.length ? aiTypeList[aiTypeList.length - 1].token : '';
|
|
44
|
+
var beforeTotalWeight = aiTypeList
|
|
45
|
+
.map(function (_a) {
|
|
46
|
+
var token = _a.token, weight = _a.weight;
|
|
47
|
+
return (lastAiTestToken !== token ? Number(weight) : 0);
|
|
48
|
+
})
|
|
49
|
+
.reduce(function (pv, i) { return pv + i; }, 0);
|
|
50
|
+
var totalDuration = 0;
|
|
51
|
+
var getWeight = function (_a) {
|
|
52
|
+
var token = _a.token, weight = _a.weight;
|
|
53
|
+
if (weightsLen <= 1) {
|
|
54
|
+
var averageWeight = 100 / uniqueAiTypeListLength;
|
|
55
|
+
var disableWeight = 100 - Math.floor(averageWeight * (uniqueAiTypeListLength - 1) * 100) / 100;
|
|
56
|
+
return token === uniqueAiTypeList[uniqueAiTypeListLength - 1].token
|
|
57
|
+
? (0, utils_1.computeDecimalValue)(disableWeight.toString())
|
|
58
|
+
: (0, utils_1.computeDecimalValue)(averageWeight.toString());
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return lastAiTestToken !== token ? weight : (0, utils_1.computeDecimalValue)((100 - beforeTotalWeight).toString());
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var $splice = steps.map(function (step, i) {
|
|
65
|
+
totalDuration += step.duration;
|
|
66
|
+
delete step.isNotCompute;
|
|
67
|
+
return [
|
|
68
|
+
i,
|
|
69
|
+
1,
|
|
70
|
+
__assign(__assign({}, step), { weight: (0, ai_question_1.IS_AI_ANALYSIS)(step) ? getWeight(step) : 0 }),
|
|
71
|
+
];
|
|
72
|
+
});
|
|
73
|
+
updateModel(__assign(__assign({}, questionModelData), { duration: totalDuration, steps: (0, immutability_helper_1.default)(steps, { $splice: $splice }) }));
|
|
74
|
+
}, [questionModelData]);
|
|
75
|
+
/**
|
|
76
|
+
* 更新模型数据权重值
|
|
77
|
+
* @param value 权重值
|
|
78
|
+
* @param index 下标
|
|
79
|
+
*/
|
|
80
|
+
var updateModelWeight = (0, react_1.useCallback)(function (value, index) {
|
|
81
|
+
var _a;
|
|
82
|
+
var formatValue = (0, utils_1.formatNumberDecimal)(value);
|
|
83
|
+
var curOriginalWeight = Number(steps[index].weight);
|
|
84
|
+
var aiTypeList = steps.filter(function (step) { return (0, ai_question_1.IS_AI_ANALYSIS)(step); });
|
|
85
|
+
var disabledStep = aiTypeList.length ? aiTypeList[aiTypeList.length - 1] : undefined;
|
|
86
|
+
var maxInputValue = (0, utils_1.computeDecimalValue)((curOriginalWeight + ((disabledStep === null || disabledStep === void 0 ? void 0 : disabledStep.weight) ? Number(disabledStep === null || disabledStep === void 0 ? void 0 : disabledStep.weight) : 0)).toString());
|
|
87
|
+
if (Number(formatValue) <= maxInputValue) {
|
|
88
|
+
var newSteps = (0, immutability_helper_1.default)(steps, (_a = {}, _a[index] = { weight: { $set: formatValue } }, _a));
|
|
89
|
+
computeWeight(newSteps);
|
|
90
|
+
}
|
|
91
|
+
}, [steps, computeWeight]);
|
|
92
|
+
/**
|
|
93
|
+
* 新增模型数据
|
|
94
|
+
* @param modelStep 新增数据项
|
|
95
|
+
*/
|
|
96
|
+
var addModel = (0, react_1.useCallback)(function (modelStep) {
|
|
97
|
+
var stepArr = Array.isArray(modelStep)
|
|
98
|
+
? modelStep.map(function (item) { return (__assign(__assign({}, item), { isNotCompute: true, uniqueId: (0, utils_1.uniqueId)() })); })
|
|
99
|
+
: [__assign(__assign({}, modelStep), { isNotCompute: true, uniqueId: (0, utils_1.uniqueId)() })];
|
|
100
|
+
var newSteps = (0, immutability_helper_1.default)(steps, { $push: stepArr });
|
|
101
|
+
computeWeight(newSteps);
|
|
102
|
+
}, [computeWeight, steps]);
|
|
103
|
+
/**
|
|
104
|
+
* 编辑模型数据
|
|
105
|
+
* @param modelStep 编辑数据项
|
|
106
|
+
* @param index 下标
|
|
107
|
+
*/
|
|
108
|
+
var editModel = (0, react_1.useCallback)(function (modelStep, index) {
|
|
109
|
+
var aiTypeList = steps.filter(function (step) { return (0, ai_question_1.IS_AI_ANALYSIS)(step); });
|
|
110
|
+
var newSteps = (0, immutability_helper_1.default)(steps, {
|
|
111
|
+
$splice: [[index, 1, __assign(__assign(__assign({}, steps[index]), modelStep), { weight: aiTypeList.length ? modelStep.weight : 100 })]],
|
|
112
|
+
});
|
|
113
|
+
computeWeight(newSteps);
|
|
114
|
+
}, [computeWeight, steps]);
|
|
115
|
+
/**
|
|
116
|
+
* 删除模型数据
|
|
117
|
+
* @param index 下标
|
|
118
|
+
*/
|
|
119
|
+
var removeModel = (0, react_1.useCallback)(function (index) {
|
|
120
|
+
var newSteps = (0, immutability_helper_1.default)(steps, { $splice: [[index, 1]] });
|
|
121
|
+
if (newSteps.length) {
|
|
122
|
+
computeWeight(newSteps);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
updateModel(__assign(__assign({}, questionModelData), { duration: 0, steps: newSteps }));
|
|
126
|
+
}
|
|
127
|
+
}, [computeWeight, questionModelData, steps]);
|
|
128
|
+
return {
|
|
129
|
+
questionModelData: questionModelData,
|
|
130
|
+
addModel: addModel,
|
|
131
|
+
editModel: editModel,
|
|
132
|
+
removeModel: removeModel,
|
|
133
|
+
updateModel: updateModel,
|
|
134
|
+
updateModelWeight: updateModelWeight,
|
|
135
|
+
};
|
|
136
|
+
}), _a[0]), exports.getQuestionModelStore = _a[1];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AiEvaluationList } from '@@/src/modules/ai-question/components/QuestionTemplate/interface';
|
|
2
|
+
export declare const useQuestionPreviewStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
+
visible: boolean;
|
|
4
|
+
previewItem: AiEvaluationList | undefined;
|
|
5
|
+
updatePreview: (visible: boolean, item?: AiEvaluationList) => void;
|
|
6
|
+
}> | undefined) => {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
previewItem: AiEvaluationList | undefined;
|
|
9
|
+
updatePreview: (visible: boolean, item?: AiEvaluationList) => void;
|
|
10
|
+
}, getQuestionPreviewStore: () => {
|
|
11
|
+
visible: boolean;
|
|
12
|
+
previewItem: AiEvaluationList | undefined;
|
|
13
|
+
updatePreview: (visible: boolean, item?: AiEvaluationList) => void;
|
|
14
|
+
} | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getQuestionPreviewStore = exports.useQuestionPreviewStore = void 0;
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var hox_1 = require("hox");
|
|
7
|
+
exports.useQuestionPreviewStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
8
|
+
var _a = (0, react_1.useState)(false), visible = _a[0], setVisible = _a[1];
|
|
9
|
+
var _b = (0, react_1.useState)(), previewItem = _b[0], setPreviewItem = _b[1];
|
|
10
|
+
/**
|
|
11
|
+
* 更新预览数据
|
|
12
|
+
* @param visible 是否展示
|
|
13
|
+
* @param item 展示数据
|
|
14
|
+
*/
|
|
15
|
+
var updatePreview = (0, react_1.useCallback)(function (visible, item) {
|
|
16
|
+
setVisible(visible);
|
|
17
|
+
setPreviewItem(item);
|
|
18
|
+
}, []);
|
|
19
|
+
return {
|
|
20
|
+
visible: visible,
|
|
21
|
+
previewItem: previewItem,
|
|
22
|
+
updatePreview: updatePreview,
|
|
23
|
+
};
|
|
24
|
+
}), _a[0]), exports.getQuestionPreviewStore = _a[1];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AiEvaluationData } from '@/modules/ai-question/components/QuestionTemplate/interface';
|
|
3
|
+
export declare const useQuestionTemplateStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
4
|
+
aiEvaluationData: AiEvaluationData[];
|
|
5
|
+
updateAiEvaluationData: import("react").Dispatch<import("react").SetStateAction<AiEvaluationData[]>>;
|
|
6
|
+
}> | undefined) => {
|
|
7
|
+
aiEvaluationData: AiEvaluationData[];
|
|
8
|
+
updateAiEvaluationData: import("react").Dispatch<import("react").SetStateAction<AiEvaluationData[]>>;
|
|
9
|
+
}, getQuestionTemplateStore: () => {
|
|
10
|
+
aiEvaluationData: AiEvaluationData[];
|
|
11
|
+
updateAiEvaluationData: import("react").Dispatch<import("react").SetStateAction<AiEvaluationData[]>>;
|
|
12
|
+
} | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getQuestionTemplateStore = exports.useQuestionTemplateStore = void 0;
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var hox_1 = require("hox");
|
|
7
|
+
exports.useQuestionTemplateStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
8
|
+
var _a = (0, react_1.useState)([]), aiEvaluationData = _a[0], updateAiEvaluationData = _a[1];
|
|
9
|
+
return {
|
|
10
|
+
aiEvaluationData: aiEvaluationData,
|
|
11
|
+
updateAiEvaluationData: updateAiEvaluationData,
|
|
12
|
+
};
|
|
13
|
+
}), _a[0]), exports.getQuestionTemplateStore = _a[1];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UpdateQuestionState } from '@/modules/ai-question/components/QuestionUpdate/interface';
|
|
2
|
+
export declare const useUpdateQuestionStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
+
questionState: UpdateQuestionState;
|
|
4
|
+
updateQuestionState: (params: Partial<UpdateQuestionState>) => void;
|
|
5
|
+
}> | undefined) => {
|
|
6
|
+
questionState: UpdateQuestionState;
|
|
7
|
+
updateQuestionState: (params: Partial<UpdateQuestionState>) => void;
|
|
8
|
+
}, getUpdateQuestionStore: () => {
|
|
9
|
+
questionState: UpdateQuestionState;
|
|
10
|
+
updateQuestionState: (params: Partial<UpdateQuestionState>) => void;
|
|
11
|
+
} | undefined;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var _a;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.getUpdateQuestionStore = exports.useUpdateQuestionStore = void 0;
|
|
16
|
+
var react_1 = require("react");
|
|
17
|
+
var hox_1 = require("hox");
|
|
18
|
+
var ahooks_1 = require("ahooks");
|
|
19
|
+
var const_1 = require("../../modules/ai-question/components/QuestionUpdate/const");
|
|
20
|
+
var ai_question_1 = require("../../enum/ai-question");
|
|
21
|
+
exports.useUpdateQuestionStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
22
|
+
var _a = (0, ahooks_1.useSetState)({
|
|
23
|
+
open: false,
|
|
24
|
+
aiShowType: ai_question_1.ADD_QUESTION_TYPE.FREE,
|
|
25
|
+
item: const_1.defaultQuestionParams,
|
|
26
|
+
token: '',
|
|
27
|
+
index: -1,
|
|
28
|
+
}), questionState = _a[0], setState = _a[1];
|
|
29
|
+
var updateQuestionState = (0, react_1.useCallback)(function (params) {
|
|
30
|
+
setState(__assign(__assign({}, questionState), params));
|
|
31
|
+
}, [questionState, setState]);
|
|
32
|
+
return {
|
|
33
|
+
questionState: questionState,
|
|
34
|
+
updateQuestionState: updateQuestionState,
|
|
35
|
+
};
|
|
36
|
+
}), _a[0]), exports.getUpdateQuestionStore = _a[1];
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AiInterviewReportList, AiReportProps } from '@/modules/ai-report/interface';
|
|
3
|
+
export declare const useAiReportStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
4
|
+
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
5
|
+
updateState: (params: Partial<AiReportProps>) => void;
|
|
6
|
+
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
7
|
+
token: string;
|
|
8
|
+
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
9
|
+
disabledScore?: boolean | undefined;
|
|
10
|
+
reminderSent?: boolean | undefined;
|
|
11
|
+
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
12
|
+
stepToken?: string | undefined;
|
|
13
|
+
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
14
|
+
onLoad?: ((values: import("@/modules/ai-report/interface").AiReportLoadedValues) => void) | undefined;
|
|
15
|
+
onExportReportClick?: (() => void) | undefined;
|
|
16
|
+
onScoreChange?: ((scoreState?: import("@/modules/ai-report/interface").ScoreManualUpdateState | undefined) => void) | undefined;
|
|
17
|
+
onStepChange?: ((stepToken: string) => void) | undefined;
|
|
18
|
+
onSendReminderClick?: (() => void) | undefined;
|
|
19
|
+
onScoreRankIntervalsChange?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => void) | undefined;
|
|
20
|
+
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
21
|
+
}> | undefined) => {
|
|
22
|
+
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
23
|
+
updateState: (params: Partial<AiReportProps>) => void;
|
|
24
|
+
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
25
|
+
token: string;
|
|
26
|
+
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
27
|
+
disabledScore?: boolean | undefined;
|
|
28
|
+
reminderSent?: boolean | undefined;
|
|
29
|
+
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
30
|
+
stepToken?: string | undefined;
|
|
31
|
+
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
32
|
+
onLoad?: ((values: import("@/modules/ai-report/interface").AiReportLoadedValues) => void) | undefined;
|
|
33
|
+
onExportReportClick?: (() => void) | undefined;
|
|
34
|
+
onScoreChange?: ((scoreState?: import("@/modules/ai-report/interface").ScoreManualUpdateState | undefined) => void) | undefined;
|
|
35
|
+
onStepChange?: ((stepToken: string) => void) | undefined;
|
|
36
|
+
onSendReminderClick?: (() => void) | undefined;
|
|
37
|
+
onScoreRankIntervalsChange?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => void) | undefined;
|
|
38
|
+
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
39
|
+
}, getAiReportStore: () => {
|
|
40
|
+
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
41
|
+
updateState: (params: Partial<AiReportProps>) => void;
|
|
42
|
+
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
43
|
+
token: string;
|
|
44
|
+
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
45
|
+
disabledScore?: boolean | undefined;
|
|
46
|
+
reminderSent?: boolean | undefined;
|
|
47
|
+
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
48
|
+
stepToken?: string | undefined;
|
|
49
|
+
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
50
|
+
onLoad?: ((values: import("@/modules/ai-report/interface").AiReportLoadedValues) => void) | undefined;
|
|
51
|
+
onExportReportClick?: (() => void) | undefined;
|
|
52
|
+
onScoreChange?: ((scoreState?: import("@/modules/ai-report/interface").ScoreManualUpdateState | undefined) => void) | undefined;
|
|
53
|
+
onStepChange?: ((stepToken: string) => void) | undefined;
|
|
54
|
+
onSendReminderClick?: (() => void) | undefined;
|
|
55
|
+
onScoreRankIntervalsChange?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => void) | undefined;
|
|
56
|
+
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
57
|
+
} | undefined;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var _a;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.getAiReportStore = exports.useAiReportStore = void 0;
|
|
16
|
+
var react_1 = require("react");
|
|
17
|
+
var hox_1 = require("hox");
|
|
18
|
+
exports.useAiReportStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
19
|
+
var _a = (0, react_1.useState)({
|
|
20
|
+
token: '',
|
|
21
|
+
stepToken: '',
|
|
22
|
+
disabledScore: true,
|
|
23
|
+
scoreRankIntervals: [],
|
|
24
|
+
operableButtons: [],
|
|
25
|
+
}), state = _a[0], setState = _a[1];
|
|
26
|
+
var _b = (0, react_1.useState)(), reportResult = _b[0], updateReportResult = _b[1];
|
|
27
|
+
var updateState = (0, react_1.useCallback)(function (params) {
|
|
28
|
+
setState(__assign(__assign({}, state), params));
|
|
29
|
+
}, [state]);
|
|
30
|
+
return __assign(__assign({}, state), { reportResult: reportResult, updateState: updateState, updateReportResult: updateReportResult });
|
|
31
|
+
}), _a[0]), exports.getAiReportStore = _a[1];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.avocadoVideoInterview = void 0;
|
|
15
|
+
exports.avocadoVideoInterview = {
|
|
16
|
+
init: function (config) {
|
|
17
|
+
console.log(config);
|
|
18
|
+
window['AvocadoVideoInterviewConfig'] = __assign({}, config);
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (_) try {
|
|
29
|
+
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;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
var axios_1 = __importDefault(require("axios"));
|
|
54
|
+
var js_cookie_1 = __importDefault(require("js-cookie"));
|
|
55
|
+
var dayjs_1 = __importDefault(require("dayjs"));
|
|
56
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
57
|
+
var service = axios_1.default.create({ timeout: 60000 });
|
|
58
|
+
var tautology = function (err) {
|
|
59
|
+
var back = new Promise(function (resolve) {
|
|
60
|
+
console.log('接口' + err.config.url + '请求失败,重新请求');
|
|
61
|
+
resolve(true);
|
|
62
|
+
});
|
|
63
|
+
return back.then(function () {
|
|
64
|
+
console.log(err);
|
|
65
|
+
return service(err.config);
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
var err = function (error) {
|
|
69
|
+
if (error.response) {
|
|
70
|
+
var data = error.response.data;
|
|
71
|
+
console.log(data);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
// 请求超时状态
|
|
75
|
+
if (error.message.includes('timeout')) {
|
|
76
|
+
console.log('超时了');
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
// 可以展示断网组件
|
|
80
|
+
console.log('断网了');
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return Promise.reject(error);
|
|
84
|
+
};
|
|
85
|
+
var handleParams = function (config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
86
|
+
var avocadoConfig, cookieAccessToken, ts, _a, accessToken, expireTime, expires;
|
|
87
|
+
return __generator(this, function (_b) {
|
|
88
|
+
switch (_b.label) {
|
|
89
|
+
case 0:
|
|
90
|
+
avocadoConfig = window['AvocadoVideoInterviewConfig'];
|
|
91
|
+
cookieAccessToken = js_cookie_1.default.get('avocado-video-interview-access-token');
|
|
92
|
+
ts = new Date().getTime();
|
|
93
|
+
config.baseURL = avocadoConfig.server_url || "https://fbm-api.fbmms.cn";
|
|
94
|
+
return [4 /*yield*/, (cookieAccessToken ? Promise.resolve({}) : avocadoConfig.auth_callback())];
|
|
95
|
+
case 1:
|
|
96
|
+
_a = _b.sent(), accessToken = _a.accessToken, expireTime = _a.expireTime;
|
|
97
|
+
if (accessToken) {
|
|
98
|
+
expires = expireTime ? (0, dayjs_1.default)(new Date(expireTime * 1000)).diff(new Date(), 'hour') / 24 : undefined;
|
|
99
|
+
js_cookie_1.default.set('avocado-video-interview-access-token', accessToken, expires ? { expires: expires } : {});
|
|
100
|
+
}
|
|
101
|
+
config.headers['x-access-token'] = accessToken || cookieAccessToken;
|
|
102
|
+
config.params ? (config.params = __assign(__assign({}, config.params), { ts: ts })) : (config.params = { ts: ts });
|
|
103
|
+
return [2 /*return*/, config];
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}); };
|
|
107
|
+
service.interceptors.request.use(function (config) {
|
|
108
|
+
return handleParams(config);
|
|
109
|
+
}, err);
|
|
110
|
+
service.interceptors.response.use(function (response) {
|
|
111
|
+
var status = response.status, _a = response.data, code = _a.code, message = _a.message;
|
|
112
|
+
if (status === 200 && code === 0) {
|
|
113
|
+
return response.data;
|
|
114
|
+
}
|
|
115
|
+
else if (status === 200 && code === -30003) {
|
|
116
|
+
js_cookie_1.default.remove('avocado-video-interview-access-token');
|
|
117
|
+
return tautology(response);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
fbm_ui_1.Message.error(message);
|
|
121
|
+
}
|
|
122
|
+
return Promise.reject(response.data);
|
|
123
|
+
}, err);
|
|
124
|
+
exports.default = service;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.GET = exports.POST = void 0;
|
|
18
|
+
var interceptor_1 = __importDefault(require("./interceptor"));
|
|
19
|
+
var POST = function (reqConfig) { return (0, interceptor_1.default)(__assign(__assign({}, reqConfig), { method: 'POST' })); };
|
|
20
|
+
exports.POST = POST;
|
|
21
|
+
var GET = function (reqConfig) { return (0, interceptor_1.default)(__assign(__assign({}, reqConfig), { method: 'GET' })); };
|
|
22
|
+
exports.GET = GET;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 根据传入秒数计算出时分秒
|
|
3
|
+
* @param second 秒数
|
|
4
|
+
* @param convertText 是否需要转换为文本,默认为true
|
|
5
|
+
* @returns [时, 分, 秒]
|
|
6
|
+
*/
|
|
7
|
+
export declare const getSecondToTime: (second: number, convertText?: boolean) => Array<number | string> | string;
|
|
8
|
+
/**
|
|
9
|
+
* 把非数字的都替换掉,除了数字和.
|
|
10
|
+
* 保证只有出现一个.而没有多个.
|
|
11
|
+
* 保证第一个为数字而不是.
|
|
12
|
+
* 保证.只出现一次,而不能出现两次以上
|
|
13
|
+
* 只能输入两个小数
|
|
14
|
+
* @param value 需要格式化的值
|
|
15
|
+
* @returns 格式化后的值
|
|
16
|
+
*/
|
|
17
|
+
export declare const formatNumberDecimal: (value: string) => string;
|
|
18
|
+
/**
|
|
19
|
+
* 正则验证两位小数
|
|
20
|
+
*/
|
|
21
|
+
export declare const decimalReg: RegExp;
|
|
22
|
+
/**
|
|
23
|
+
* 保留两位小数
|
|
24
|
+
* @param value 值
|
|
25
|
+
* @returns 返回保留两位小数的值
|
|
26
|
+
*/
|
|
27
|
+
export declare const computeDecimalValue: (value: string) => number;
|
|
28
|
+
/**
|
|
29
|
+
* 生成唯一ID
|
|
30
|
+
* @returns 唯一ID
|
|
31
|
+
*/
|
|
32
|
+
export declare const uniqueId: () => string;
|
|
33
|
+
/** 去掉回车换行-空格 */
|
|
34
|
+
export declare const formatStr: (str: string) => string;
|
|
35
|
+
/**
|
|
36
|
+
* 格式化分值
|
|
37
|
+
* @param score 分数
|
|
38
|
+
* @returns 计算后分数
|
|
39
|
+
*/
|
|
40
|
+
export declare const formatScore: (score: number) => number;
|
|
41
|
+
export declare const formatLowScore: (num: number) => number;
|
|
42
|
+
/**
|
|
43
|
+
* 关键字高亮
|
|
44
|
+
* @param content 内容
|
|
45
|
+
* @param keyword 关键词
|
|
46
|
+
* @param bgColor 背景色
|
|
47
|
+
* @param tagName 标签名
|
|
48
|
+
*/
|
|
49
|
+
export declare const highlighKeywords: (content: string, keyword: string, bgColor: string, tagName?: string) => string;
|
|
50
|
+
/**
|
|
51
|
+
* 根据数组对象的某个字段去重
|
|
52
|
+
* @param arr 数组对象
|
|
53
|
+
* @param key 字段名称
|
|
54
|
+
* @returns 去重后数组
|
|
55
|
+
*/
|
|
56
|
+
export declare const arrayUnique: (arr: any[], key: string) => any[];
|
|
57
|
+
export declare const isExceedMaxFileSize: (size: number) => boolean;
|
|
58
|
+
export declare const isExceedMaxVideoFileSize: (size: number) => boolean;
|