fix question query load

This commit is contained in:
João Geonizeli
2022-07-21 21:51:41 -03:00
parent 386050d4ad
commit a2a3b3219c
19 changed files with 229 additions and 4930 deletions

View File

@@ -55,12 +55,12 @@ export const QuestionByBloomTaxonomy: FC = () => {
const {loading, data} = useQuery<QuestionsByBloomTaxonomyCountQuery>(
QuestionsByBloomTaxonomyCount, {
variables: {
rememberWhere: {bloomTaxonomy: ['remember'], ...where},
understandWhere: {bloomTaxonomy: ['understand'], ...where},
applyWhere: {bloomTaxonomy: ['apply'], ...where},
analyzeWhere: {bloomTaxonomy: ['analyze'], ...where},
evaluateWhere: {bloomTaxonomy: ['evaluate'], ...where},
createWhere: {bloomTaxonomy: ['create'], ...where},
rememberWhere: {bloomTaxonomy: ['REMEMBER'], ...where},
understandWhere: {bloomTaxonomy: ['UNDERSTAND'], ...where},
applyWhere: {bloomTaxonomy: ['APPLY'], ...where},
analyzeWhere: {bloomTaxonomy: ['ANALYZE'], ...where},
evaluateWhere: {bloomTaxonomy: ['EVALUATE'], ...where},
createWhere: {bloomTaxonomy: ['CREATE'], ...where},
}
})

View File

@@ -44,7 +44,7 @@ export const TextEditor: FC<Props> = ({ name, defaultValue }) => {
config={{
toolbar: toolbarOptions,
ckfinder: {
uploadUrl: `${process.env.REACT_APP_BACKEND_URL}/uploads`,
uploadUrl: `/uploads`,
},
}}
onChange={(_: any, editor: any) => onChange(editor.getData())}

View File

@@ -42,7 +42,6 @@ export const ReviewMessagesFragments = gql`
text
user {
name
avatarUrl
}
createdAt
}

View File

@@ -3,7 +3,6 @@ import { gql } from "@apollo/client";
import { Card } from "../../../components";
import { Question } from "../../../__generated__/graphql-schema";
import { loadWIRISplugin } from "../../../utils/plugins";
import { BLOOM_TAXONOMY, DIFFICULTY } from "../../../utils/types";
export const ViewModeFragments = gql`
@@ -67,8 +66,6 @@ export const ViewMode: FC<Props> = ({ questionData: question }) => {
const difficulty = DIFFICULTY.find((item) => question.difficulty === item.value)?.label
const bloomTaxonomy = BLOOM_TAXONOMY.find((item) => question.bloomTaxonomy === item.value)?.label
loadWIRISplugin()
return (
<div className="max-w-screen-lg">
<Card className="mb-3" title="Características">