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,171 @@
|
|
|
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, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
50
|
+
import { Box, Typography, Button, AddIcon, Message, Dialog } from 'fbm-ui';
|
|
51
|
+
import { useImmer } from 'use-immer';
|
|
52
|
+
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
53
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
54
|
+
import RankingRangeItem from './Item';
|
|
55
|
+
var RankingRange = function (_a) {
|
|
56
|
+
var open = _a.open, onClose = _a.onClose;
|
|
57
|
+
var isCall = useRef(false);
|
|
58
|
+
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
|
59
|
+
var _c = useImmer([]), interval = _c[0], updateInterval = _c[1];
|
|
60
|
+
var _d = useAiReportStore(function (store) { return [store.scoreRankIntervals]; }), scoreRankIntervals = _d.scoreRankIntervals, onScoreRankIntervalsChange = _d.onScoreRankIntervalsChange, onScoreRankIntervalsSubmit = _d.onScoreRankIntervalsSubmit;
|
|
61
|
+
var formatScoreRankIntervals = useCallback(function (scoreRankIntervals) {
|
|
62
|
+
isCall.current = false;
|
|
63
|
+
updateInterval(scoreRankIntervals.map(function (item) { return (__assign(__assign({}, item), { scoreRankIntervals: {
|
|
64
|
+
startRankProportion: item.scoreRankIntervals.startRankProportion * 100,
|
|
65
|
+
endRankProportion: item.scoreRankIntervals.endRankProportion * 100,
|
|
66
|
+
} })); }));
|
|
67
|
+
}, [updateInterval]);
|
|
68
|
+
useEffect(function () {
|
|
69
|
+
formatScoreRankIntervals(scoreRankIntervals || []);
|
|
70
|
+
}, [scoreRankIntervals, formatScoreRankIntervals]);
|
|
71
|
+
useEffect(function () {
|
|
72
|
+
var rankIntervals = interval.map(function (_a) {
|
|
73
|
+
var _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion;
|
|
74
|
+
return ({
|
|
75
|
+
startRankProportion: startRankProportion / 100,
|
|
76
|
+
endRankProportion: endRankProportion / 100,
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
if (isCall.current) {
|
|
80
|
+
onScoreRankIntervalsChange && onScoreRankIntervalsChange(rankIntervals);
|
|
81
|
+
}
|
|
82
|
+
}, [interval, onScoreRankIntervalsChange]);
|
|
83
|
+
var handleAdd = useCallback(function () {
|
|
84
|
+
var lastItem = interval[interval.length - 1];
|
|
85
|
+
var lastStartRankProportion = lastItem === null || lastItem === void 0 ? void 0 : lastItem.scoreRankIntervals.startRankProportion;
|
|
86
|
+
if (interval.length === 5) {
|
|
87
|
+
Message.error('最多添加5条记录');
|
|
88
|
+
}
|
|
89
|
+
else if (lastStartRankProportion === 99) {
|
|
90
|
+
Message.error('最后一条记录起始值为99无法分割');
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
updateInterval(function (draft) {
|
|
94
|
+
var insertStartRank = lastItem ? Math.ceil(lastStartRankProportion + (99 - lastStartRankProportion) / 2) : 100;
|
|
95
|
+
draft.splice(interval.length - 1, 0, {
|
|
96
|
+
rank: interval.length,
|
|
97
|
+
score: {
|
|
98
|
+
startScore: 0,
|
|
99
|
+
endScore: 0,
|
|
100
|
+
isFloat: false,
|
|
101
|
+
isInInterval: false,
|
|
102
|
+
},
|
|
103
|
+
scoreRankIntervals: {
|
|
104
|
+
startRankProportion: lastItem ? lastStartRankProportion : 0,
|
|
105
|
+
endRankProportion: insertStartRank,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
draft[interval.length].scoreRankIntervals.startRankProportion = lastItem ? insertStartRank : 0;
|
|
109
|
+
});
|
|
110
|
+
isCall.current = true;
|
|
111
|
+
}
|
|
112
|
+
}, [interval, updateInterval]);
|
|
113
|
+
var handleChange = useCallback(function (value, index) {
|
|
114
|
+
var prevValue = index === 0 ? 1 : interval[index - 1].scoreRankIntervals.endRankProportion + 1;
|
|
115
|
+
var nextValue = index === interval.length - 1 ? 100 : interval[index + 1].scoreRankIntervals.endRankProportion;
|
|
116
|
+
var canChange = value >= prevValue && value <= nextValue && value !== interval[index].scoreRankIntervals.endRankProportion;
|
|
117
|
+
if (canChange) {
|
|
118
|
+
updateInterval(function (draft) {
|
|
119
|
+
draft[index].scoreRankIntervals.endRankProportion = value;
|
|
120
|
+
draft[index + 1].scoreRankIntervals.startRankProportion = value;
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
updateInterval(function (draft) {
|
|
125
|
+
draft[index] = __assign({}, interval[index]);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
isCall.current = true;
|
|
129
|
+
}, [interval, updateInterval]);
|
|
130
|
+
var handleDelete = useCallback(function (index) {
|
|
131
|
+
updateInterval(function (draft) {
|
|
132
|
+
var deleteItem = interval[index];
|
|
133
|
+
draft.splice(index, 1);
|
|
134
|
+
draft[index - 1].scoreRankIntervals.endRankProportion = deleteItem.scoreRankIntervals.endRankProportion;
|
|
135
|
+
});
|
|
136
|
+
isCall.current = true;
|
|
137
|
+
}, [interval, updateInterval]);
|
|
138
|
+
var handleOk = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var rankIntervals, error_1;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
switch (_a.label) {
|
|
142
|
+
case 0:
|
|
143
|
+
if (!onScoreRankIntervalsSubmit) return [3 /*break*/, 4];
|
|
144
|
+
rankIntervals = interval.map(function (_a) {
|
|
145
|
+
var _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion;
|
|
146
|
+
return ({
|
|
147
|
+
startRankProportion: startRankProportion / 100,
|
|
148
|
+
endRankProportion: endRankProportion / 100,
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
setLoading(true);
|
|
152
|
+
_a.label = 1;
|
|
153
|
+
case 1:
|
|
154
|
+
_a.trys.push([1, 3, , 4]);
|
|
155
|
+
return [4 /*yield*/, onScoreRankIntervalsSubmit(rankIntervals)];
|
|
156
|
+
case 2:
|
|
157
|
+
_a.sent();
|
|
158
|
+
setLoading(false);
|
|
159
|
+
onClose();
|
|
160
|
+
return [3 /*break*/, 4];
|
|
161
|
+
case 3:
|
|
162
|
+
error_1 = _a.sent();
|
|
163
|
+
setLoading(false);
|
|
164
|
+
return [3 /*break*/, 4];
|
|
165
|
+
case 4: return [2 /*return*/];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}); };
|
|
169
|
+
return (_jsx(Dialog, __assign({ open: open, title: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E", size: "sm", okProps: { loading: loading }, onClose: onClose, onOk: handleOk }, { children: _jsx(ScrollDialogContent, { children: _jsxs(Box, __assign({ sx: { padding: 3 } }, { children: [_jsxs(Box, __assign({ display: "flex", sx: { mb: 2 } }, { children: [_jsx(Typography, __assign({ flex: "1 0", variant: "body1" }, { children: "\u6392\u540D\u524D" })), _jsx(Typography, __assign({ flex: "1 0", variant: "body1" }, { children: "\u5206\u6570" }))] })), interval.map(function (item, index) { return (_jsx(RankingRangeItem, { item: item, index: index, disabled: index === interval.length - 1, onChange: handleChange, onDelete: handleDelete }, item.rank)); }), _jsx(Button, __assign({ icon: _jsx(AddIcon, {}), sx: { mt: 2 }, variant: "outlined", color: "inherit", onClick: handleAdd }, { children: "\u6DFB\u52A0\u6392\u540D\u533A\u95F4" }))] })) }) })));
|
|
170
|
+
};
|
|
171
|
+
export default RankingRange;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface ScoreRankIntervals {
|
|
2
|
+
startRankProportion: number;
|
|
3
|
+
endRankProportion: number;
|
|
4
|
+
}
|
|
5
|
+
export interface Score {
|
|
6
|
+
startScore: number;
|
|
7
|
+
endScore: number;
|
|
8
|
+
isFloat: boolean;
|
|
9
|
+
isInInterval: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ScoreRankInterval {
|
|
12
|
+
rank: number;
|
|
13
|
+
scoreRankIntervals: ScoreRankIntervals;
|
|
14
|
+
score: Score;
|
|
15
|
+
}
|
|
16
|
+
export interface RankingRangeItemProps {
|
|
17
|
+
index: number;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
item: ScoreRankInterval;
|
|
20
|
+
onChange: (value: number, index: number) => void;
|
|
21
|
+
onDelete: (index: number) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface RankingRangeProps {
|
|
24
|
+
open: boolean;
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RangeInput: import("@emotion/styled").StyledComponent<import("fbm-ui").BaseInputProps & import("@mui/material").OutlinedInputProps & import("@mui/material").InputProps & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const RangeTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Input, Typography, styled } from 'fbm-ui';
|
|
2
|
+
export var RangeInput = styled(Input)({
|
|
3
|
+
width: 82,
|
|
4
|
+
});
|
|
5
|
+
export var RangeTypography = styled(Typography)(function (_a) {
|
|
6
|
+
var theme = _a.theme;
|
|
7
|
+
return ({
|
|
8
|
+
color: "".concat(theme.palette.primary.main, " !important"),
|
|
9
|
+
lineHeight: '38px !important',
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useState } from 'react';
|
|
14
|
+
import { Box, Typography } from 'fbm-ui';
|
|
15
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
|
+
import { scoreRankIntervalColors } from "../../../../constants/ai-report";
|
|
17
|
+
var Bar = function () {
|
|
18
|
+
var _a = useState(1), currentRank = _a[0], setCurrentRank = _a[1];
|
|
19
|
+
var _b = useState('前0% ~ 100%'), text = _b[0], setText = _b[1];
|
|
20
|
+
var _c = useAiReportStore(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _c.reportResult, scoreRankIntervals = _c.scoreRankIntervals;
|
|
21
|
+
var _d = (reportResult || {}).score, score = _d === void 0 ? 0 : _d;
|
|
22
|
+
useEffect(function () {
|
|
23
|
+
var floatInterval = scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.find(function (interval) { return score >= interval.score.startScore && score <= interval.score.endScore; });
|
|
24
|
+
if (floatInterval) {
|
|
25
|
+
var rank = floatInterval.rank, _a = floatInterval.scoreRankIntervals, startRankProportion = _a.startRankProportion, endRankProportion = _a.endRankProportion;
|
|
26
|
+
setCurrentRank(rank);
|
|
27
|
+
setText("\u524D".concat(startRankProportion * 100, "% ~ ").concat(endRankProportion * 100, "%"));
|
|
28
|
+
}
|
|
29
|
+
}, [score, scoreRankIntervals]);
|
|
30
|
+
if (!scoreRankIntervals || (scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.length) === 0)
|
|
31
|
+
return null;
|
|
32
|
+
return (_jsxs(Box, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: text })), _jsx(Box, __assign({ display: "flex", alignItems: "center", sx: { height: 12, mt: 0.5 } }, { children: scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.map(function (_a, index) {
|
|
33
|
+
var rank = _a.rank, _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion;
|
|
34
|
+
return [
|
|
35
|
+
_jsx(Box, { sx: {
|
|
36
|
+
width: "".concat((endRankProportion - startRankProportion) * 100, "%"),
|
|
37
|
+
height: currentRank === rank ? 'calc(100% + 4px)' : '100%',
|
|
38
|
+
background: scoreRankIntervalColors[index],
|
|
39
|
+
border: '1px solid rgb(255, 255, 255)',
|
|
40
|
+
} }, rank),
|
|
41
|
+
];
|
|
42
|
+
}) }))] }));
|
|
43
|
+
};
|
|
44
|
+
export default Bar;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Box, CancelIcon, Typography, Button, RefreshIcon } from 'fbm-ui';
|
|
14
|
+
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
15
|
+
var FAILED = INTERVIEW_STATUS.FAILED;
|
|
16
|
+
var Failed = function (_a) {
|
|
17
|
+
var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh;
|
|
18
|
+
return (_jsxs(Box, __assign({ loading: loading, display: "flex", alignItems: "center", padding: "32px 24px" }, { children: [status === FAILED && (_jsx(CancelIcon, { style: {
|
|
19
|
+
background: 'white',
|
|
20
|
+
color: '#ff6c6c',
|
|
21
|
+
width: '24px',
|
|
22
|
+
height: '24px',
|
|
23
|
+
} })), _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), _jsx(Button, __assign({ variant: "text", endIcon: _jsx(RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" }))] })));
|
|
24
|
+
};
|
|
25
|
+
export default Failed;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useState } from 'react';
|
|
14
|
+
import { Box } from 'fbm-ui';
|
|
15
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
|
+
import { formatScore, formatLowScore } from "../../../../utils/utils";
|
|
17
|
+
import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
|
|
18
|
+
import RosePie from './RosePie';
|
|
19
|
+
import ScoreLegend from './ScoreLegend';
|
|
20
|
+
import ScoreBigBall from './ScoreBigBall';
|
|
21
|
+
var STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED;
|
|
22
|
+
var Report = function () {
|
|
23
|
+
var _a = useState([]), source = _a[0], setSource = _a[1];
|
|
24
|
+
var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
|
|
25
|
+
var _b = reportResult || {}, score = _b.score, status = _b.status, steps = _b.steps;
|
|
26
|
+
useEffect(function () {
|
|
27
|
+
var source = steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) {
|
|
28
|
+
var status = item.status, _a = item.question, name = _a.name, type = _a.type, _b = item.scoreInfo, originScore = _b.originScore, weight = _b.weight, score = _b.score;
|
|
29
|
+
return status === STEP_COMPLETED
|
|
30
|
+
? [
|
|
31
|
+
type,
|
|
32
|
+
"".concat(index + 1, ". ").concat(name),
|
|
33
|
+
formatScore(originScore),
|
|
34
|
+
formatScore(Number(weight)),
|
|
35
|
+
formatScore(score),
|
|
36
|
+
formatLowScore(parseInt(score.toString(), 10)),
|
|
37
|
+
index,
|
|
38
|
+
]
|
|
39
|
+
: undefined;
|
|
40
|
+
}).filter(function (p) { return p; });
|
|
41
|
+
setSource(source);
|
|
42
|
+
}, [status, steps]);
|
|
43
|
+
return (_jsxs(Box, __assign({ width: "100%" }, { children: [_jsxs(Box, __assign({ height: 240, sx: { position: 'relative' } }, { children: [_jsx(RosePie, { source: source || [] }), _jsx(ScoreBigBall, { score: score || 0, status: status })] })), _jsx(ScoreLegend, { color: "rgb(59, 203, 121)" })] })));
|
|
44
|
+
};
|
|
45
|
+
export default Report;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import Chart from "../../../../components/Charts/Chart";
|
|
14
|
+
import { rosePieOptions } from './const';
|
|
15
|
+
var RosePie = function (_a) {
|
|
16
|
+
var _b = _a.source, source = _b === void 0 ? [] : _b;
|
|
17
|
+
return _jsx(Chart, { options: __assign(__assign({}, rosePieOptions), { dataset: { source: source } }) });
|
|
18
|
+
};
|
|
19
|
+
export default RosePie;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useState } from 'react';
|
|
14
|
+
import dayjs from 'dayjs';
|
|
15
|
+
import { Box, Popover, Typography, Button, DownloadIcon } from 'fbm-ui';
|
|
16
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
|
+
import { formatScore } from "../../../../utils/utils";
|
|
18
|
+
import { ScoreTypography, ScoreUnitTypography, RefreshIconRoot } from './styled';
|
|
19
|
+
import RankingRange from '../RankingRange';
|
|
20
|
+
import Bar from './Bar';
|
|
21
|
+
var Score = function (_a) {
|
|
22
|
+
var loading = _a.loading, onRefresh = _a.onRefresh;
|
|
23
|
+
var _b = useState(false), openRankingRange = _b[0], setOpenRankingRange = _b[1];
|
|
24
|
+
var _c = useState(false), openRefresh = _c[0], setOpenRefresh = _c[1];
|
|
25
|
+
var _d = useAiReportStore(function (store) { return [store.reportResult, store.operableButtons]; }), reportResult = _d.reportResult, operableButtons = _d.operableButtons, onExportReportClick = _d.onExportReportClick;
|
|
26
|
+
var _e = reportResult || {}, score = _e.score, createTime = _e.createTime;
|
|
27
|
+
useEffect(function () {
|
|
28
|
+
if (!loading)
|
|
29
|
+
setOpenRefresh(false);
|
|
30
|
+
}, [loading]);
|
|
31
|
+
var content = (_jsxs(Box, __assign({ padding: 2 }, { children: [_jsx(Typography, __assign({ variant: "body1", color: "secondary" }, { children: "\u5237\u65B0\u540E\u5C06\u6309\u6700\u65B0\u7B97\u5206\u89C4\u5219\u8BA1\u7B97\uFF0C\u662F\u5426\u786E\u8BA4\u5237\u65B0" })), _jsx(Box, __assign({ paddingTop: 1, textAlign: "right" }, { children: _jsx(Button, __assign({ loading: loading, onClick: onRefresh }, { children: "\u5237\u65B0" })) }))] })));
|
|
32
|
+
return (_jsxs(Box, __assign({ display: "flex", sx: { padding: '24px' } }, { children: [_jsx(RankingRange, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), _jsxs(Box, __assign({ flex: "1 0" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsxs(ScoreTypography, { children: [formatScore(score || 0), _jsx(ScoreUnitTypography, __assign({ variant: "caption" }, { children: "\u5206" }))] }), _jsx("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/recommended.svg", alt: "" }), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && (_jsx(Button, __assign({ variant: "outlined", size: "small", icon: _jsx(DownloadIcon, {}), sx: { ml: 1 }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })), _jsxs(Box, __assign({ display: "flex", alignItems: "center", mt: 1 }, { children: [(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && (_jsx(Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: _jsx(RefreshIconRoot, { onClick: function () { return setOpenRefresh(true); } }) }))), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 0.5 }, { children: ["\u62A5\u544A\u751F\u6210\u4E8E ", dayjs(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('scoreRank')) && (_jsx(Button, __assign({ variant: "text", size: "small", sx: { textDecoration: 'underline' }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] }))] })), _jsx(Box, __assign({ width: 200 }, { children: _jsx(Bar, {}) }))] })));
|
|
33
|
+
};
|
|
34
|
+
export default Score;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
+
import { formatScore } from "../../../../utils/utils";
|
|
14
|
+
import BigBallSvg from "../../../../components/BigBallSvg";
|
|
15
|
+
import { ScoreBigBallRoot } from './styled';
|
|
16
|
+
var ScoreBigBall = function (_a) {
|
|
17
|
+
var score = _a.score, status = _a.status;
|
|
18
|
+
return (_jsxs(_Fragment, { children: [_jsxs(ScoreBigBallRoot, __assign({ style: { backgroundColor: status === 1 ? '#fbfbfb' : 'rgba(59, 203, 120, 0.1)' } }, { children: [status !== 1 && _jsx(BigBallSvg, {}), status === 1 && (_jsx("div", __assign({ style: { color: 'rgba(0,0,0,0.26)', fontSize: '12px' } }, { children: _jsx("span", { children: "\u5019\u9009\u4EBA\u672A\u4F5C\u7B54" }) }))), status === 2 && (_jsx("div", __assign({ style: { color: '#40be47' } }, { children: _jsx("span", { children: "\u8BA1\u7B97\u4E2D..." }) }))), status === 3 && (_jsxs("div", __assign({ style: { color: '#40be47' } }, { children: [_jsx("span", __assign({ style: { fontFamily: 'DIN Alternate Bold', fontSize: 20, fontWeight: 'bold' } }, { children: formatScore(score) > 100 ? 100 : formatScore(score) })), _jsx("span", __assign({ style: { marginLeft: '2px', fontSize: '12px' } }, { children: "\u5206" }))] })))] })), status === 2 && (_jsx("div", { style: {
|
|
19
|
+
position: 'absolute',
|
|
20
|
+
top: 0,
|
|
21
|
+
right: 0,
|
|
22
|
+
bottom: 0,
|
|
23
|
+
left: 0,
|
|
24
|
+
} }))] }));
|
|
25
|
+
};
|
|
26
|
+
export default ScoreBigBall;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
|
+
import { Box, Typography, Tooltip, InfoIcon } from 'fbm-ui';
|
|
15
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
|
+
import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
|
|
17
|
+
import { formatScore } from "../../../../utils/utils";
|
|
18
|
+
var STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED;
|
|
19
|
+
var ScoreLegend = function (props) {
|
|
20
|
+
var color = props.color;
|
|
21
|
+
var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
|
|
22
|
+
var _a = reportResult || {}, score = _a.score, steps = _a.steps;
|
|
23
|
+
var title = useMemo(function () {
|
|
24
|
+
return (_jsxs(Box, { children: [_jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u8BA1\u7B97\u516C\u5F0F\uFF1A\u7EFC\u5408\u8BC4\u5206 = \u8BC4\u5206 * \u5355\u9898\u6743\u91CD" })), steps === null || steps === void 0 ? void 0 : steps.map(function (step, index) {
|
|
25
|
+
if (step.scoreInfo.weight && step.status === STEP_COMPLETED) {
|
|
26
|
+
return (_jsxs(Box, { children: [_jsxs(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: [index + 1, ".", step.question.name] })), _jsxs(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: ["\u5F97\u5206\uFF1A", formatScore(step.scoreInfo.score), "\u5206 = ", step.scoreInfo.finalScore.toFixed(0), " * ", step.scoreInfo.weight, "%"] }))] }, step.token));
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
})] }));
|
|
30
|
+
}, [steps]);
|
|
31
|
+
return (_jsxs(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "center", sx: { mb: 2 } }, { children: [_jsx(Box, { style: { width: '8px', height: '8px', backgroundColor: color } }), _jsxs(Box, __assign({ display: "flex", alignItems: "center", sx: { margin: '0 4px' } }, { children: [_jsx(Typography, __assign({ sx: { fontSize: 12, color: color } }, { children: "\u89C6\u9891\u9762\u8BD5\u5F97\u5206\uFF1A" })), _jsxs(Typography, __assign({ sx: { fontSize: 18, color: color, fontWeight: 700 } }, { children: [formatScore(score || 0), _jsx("span", __assign({ style: { fontSize: 12, fontWeight: 'normal', marginLeft: 2 } }, { children: "\u5206" }))] }))] })), _jsx(Box, { children: _jsx(Tooltip, __assign({ title: title }, { children: _jsx("span", __assign({ style: { display: 'flex', alignItems: 'center' } }, { children: _jsx(InfoIcon, { sx: { fontSize: 14, color: color } }) })) })) })] })));
|
|
32
|
+
};
|
|
33
|
+
export default ScoreLegend;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const rosePieOptions: {
|
|
2
|
+
legend: {
|
|
3
|
+
show: boolean;
|
|
4
|
+
};
|
|
5
|
+
tooltip: {
|
|
6
|
+
position: string;
|
|
7
|
+
formatter: (params: any) => string;
|
|
8
|
+
};
|
|
9
|
+
series: {
|
|
10
|
+
type: string;
|
|
11
|
+
dimensions: string[];
|
|
12
|
+
radius: number[];
|
|
13
|
+
roseType: string;
|
|
14
|
+
label: {
|
|
15
|
+
formatter: (params: any) => any;
|
|
16
|
+
position: string;
|
|
17
|
+
fontWeight: string;
|
|
18
|
+
fontSize: number;
|
|
19
|
+
fontFamily: string;
|
|
20
|
+
};
|
|
21
|
+
minShowLabelAngle: number;
|
|
22
|
+
stillShowZeroSum: boolean;
|
|
23
|
+
hoverAnimation: boolean;
|
|
24
|
+
encode: {
|
|
25
|
+
value: string;
|
|
26
|
+
weight: string;
|
|
27
|
+
};
|
|
28
|
+
itemStyle: {
|
|
29
|
+
color: (params: any) => string;
|
|
30
|
+
borderColor: string;
|
|
31
|
+
borderWidth: number;
|
|
32
|
+
};
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { RosePieColors } from "../../../../constants/ai-report";
|
|
2
|
+
export var rosePieOptions = {
|
|
3
|
+
legend: {
|
|
4
|
+
show: false,
|
|
5
|
+
},
|
|
6
|
+
tooltip: {
|
|
7
|
+
position: 'bottom',
|
|
8
|
+
formatter: function (params) {
|
|
9
|
+
var data = params.data;
|
|
10
|
+
var title = data[1];
|
|
11
|
+
if (title.length > 15) {
|
|
12
|
+
title = title.split(/(.{15})/).filter(function (x) { return x; });
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
title = [title];
|
|
16
|
+
}
|
|
17
|
+
var scoreTxt = data[4] === -1 ? '候选人未作答' : "\u5F97\u5206: ".concat(data[4], "\u5206");
|
|
18
|
+
return "<div>\n <div>".concat(title.map(function (t) { return "".concat(t, "<br />"); }).join(''), "</div>\n <div style=\"margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.96)\">\n ").concat(scoreTxt, "\n </div>\n </div>");
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
series: [
|
|
22
|
+
{
|
|
23
|
+
type: 'pie',
|
|
24
|
+
dimensions: ['type', 'title', 'origin', 'weight', 'final', 'finalInt', 'processIndex'],
|
|
25
|
+
radius: [45, 100],
|
|
26
|
+
roseType: 'radius',
|
|
27
|
+
label: {
|
|
28
|
+
formatter: function (params) {
|
|
29
|
+
var final = params.data[4];
|
|
30
|
+
if (final <= 8)
|
|
31
|
+
return '';
|
|
32
|
+
return final.toString();
|
|
33
|
+
},
|
|
34
|
+
position: 'inside',
|
|
35
|
+
fontWeight: 'bold',
|
|
36
|
+
fontSize: 14,
|
|
37
|
+
fontFamily: 'DIN Alternate Bold',
|
|
38
|
+
},
|
|
39
|
+
minShowLabelAngle: 20,
|
|
40
|
+
stillShowZeroSum: false,
|
|
41
|
+
hoverAnimation: false,
|
|
42
|
+
encode: {
|
|
43
|
+
value: 'finalInt',
|
|
44
|
+
weight: 'weight',
|
|
45
|
+
},
|
|
46
|
+
itemStyle: {
|
|
47
|
+
color: function (params) {
|
|
48
|
+
var type = params.data[0];
|
|
49
|
+
var final = params.data[4];
|
|
50
|
+
if (final === -1) {
|
|
51
|
+
return '#fbfbfb';
|
|
52
|
+
}
|
|
53
|
+
if (type === 2) {
|
|
54
|
+
if (final < 8) {
|
|
55
|
+
return 'rgba(59, 203, 120, 0.2)';
|
|
56
|
+
}
|
|
57
|
+
if (final < 20) {
|
|
58
|
+
return 'rgba(59, 203, 120, 0.4)';
|
|
59
|
+
}
|
|
60
|
+
return 'rgba(59, 203, 120, 0.6)';
|
|
61
|
+
}
|
|
62
|
+
var processIndex = params.data[6];
|
|
63
|
+
var color = RosePieColors[processIndex] || RosePieColors[RosePieColors.length - 1];
|
|
64
|
+
if (final < 8) {
|
|
65
|
+
return color[0];
|
|
66
|
+
}
|
|
67
|
+
if (final < 20) {
|
|
68
|
+
return color[1];
|
|
69
|
+
}
|
|
70
|
+
return color[2];
|
|
71
|
+
},
|
|
72
|
+
borderColor: '#ffffff',
|
|
73
|
+
borderWidth: 1,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
};
|