Make prettier happy too
This commit is contained in:
parent
c64bc463db
commit
d5a3025e12
|
|
@ -4,7 +4,7 @@ import type { LearningUnit } from "@/types";
|
||||||
import * as log from "loglevel";
|
import * as log from "loglevel";
|
||||||
|
|
||||||
import LearningContentContainer from "@/components/learningPath/LearningContentContainer.vue";
|
import LearningContentContainer from "@/components/learningPath/LearningContentContainer.vue";
|
||||||
import {COMPLETION_FAILURE, COMPLETION_SUCCESS} from "@/constants";
|
import { COMPLETION_FAILURE, COMPLETION_SUCCESS } from "@/constants";
|
||||||
import { computed, reactive } from "vue";
|
import { computed, reactive } from "vue";
|
||||||
|
|
||||||
log.debug("LearningContent.vue setup");
|
log.debug("LearningContent.vue setup");
|
||||||
|
|
@ -92,7 +92,8 @@ function handleBack() {
|
||||||
<button
|
<button
|
||||||
class="flex-1 inline-flex items-center text-left p-4 border"
|
class="flex-1 inline-flex items-center text-left p-4 border"
|
||||||
:class="{
|
:class="{
|
||||||
'border-orange-500': currentQuestion.completion_status === COMPLETION_FAILURE,
|
'border-orange-500':
|
||||||
|
currentQuestion.completion_status === COMPLETION_FAILURE,
|
||||||
'border-2': currentQuestion.completion_status === COMPLETION_FAILURE,
|
'border-2': currentQuestion.completion_status === COMPLETION_FAILURE,
|
||||||
}"
|
}"
|
||||||
data-cy="fail"
|
data-cy="fail"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div class="h-screen">
|
||||||
class="h-screen"
|
<iframe width="100%" height="100%" scrolling="no" :src="value.url" />
|
||||||
>
|
|
||||||
<iframe width="100%" height="100%" scrolling="no" :src="value.url" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="container-medium">
|
<div class="container-medium">
|
||||||
<div class="mt-4 lg:mt-12">
|
<div class="mt-4 lg:mt-12">
|
||||||
<p class="text-large my-4">{{ value.description }}</p>
|
<p class="text-large my-4">{{ value.description }}</p>
|
||||||
<h1>{{ content.title }}</h1>
|
<h1>{{ content.title }}</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,13 @@
|
||||||
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
|
||||||
|
|
||||||
|
export type FragmentType<TDocumentType extends DocumentNode<any, any>> =
|
||||||
export type FragmentType<TDocumentType extends DocumentNode<any, any>> = TDocumentType extends DocumentNode<
|
TDocumentType extends DocumentNode<infer TType, any>
|
||||||
infer TType,
|
? TType extends { " $fragmentName"?: infer TKey }
|
||||||
any
|
? TKey extends string
|
||||||
>
|
? { " $fragmentRefs"?: { [key in TKey]: TType } }
|
||||||
? TType extends { ' $fragmentName'?: infer TKey }
|
: never
|
||||||
? TKey extends string
|
|
||||||
? { ' $fragmentRefs'?: { [key in TKey]: TType } }
|
|
||||||
: never
|
: never
|
||||||
: never
|
: never;
|
||||||
: never;
|
|
||||||
|
|
||||||
// return non-nullable if `fragmentType` is non-nullable
|
// return non-nullable if `fragmentType` is non-nullable
|
||||||
export function useFragment<TType>(
|
export function useFragment<TType>(
|
||||||
|
|
@ -31,10 +28,14 @@ export function useFragment<TType>(
|
||||||
export function useFragment<TType>(
|
export function useFragment<TType>(
|
||||||
_documentNode: DocumentNode<TType, any>,
|
_documentNode: DocumentNode<TType, any>,
|
||||||
fragmentType: ReadonlyArray<FragmentType<DocumentNode<TType, any>>> | null | undefined
|
fragmentType: ReadonlyArray<FragmentType<DocumentNode<TType, any>>> | null | undefined
|
||||||
): ReadonlyArray<TType> | null | undefined
|
): ReadonlyArray<TType> | null | undefined;
|
||||||
export function useFragment<TType>(
|
export function useFragment<TType>(
|
||||||
_documentNode: DocumentNode<TType, any>,
|
_documentNode: DocumentNode<TType, any>,
|
||||||
fragmentType: FragmentType<DocumentNode<TType, any>> | ReadonlyArray<FragmentType<DocumentNode<TType, any>>> | null | undefined
|
fragmentType:
|
||||||
|
| FragmentType<DocumentNode<TType, any>>
|
||||||
|
| ReadonlyArray<FragmentType<DocumentNode<TType, any>>>
|
||||||
|
| null
|
||||||
|
| undefined
|
||||||
): TType | ReadonlyArray<TType> | null | undefined {
|
): TType | ReadonlyArray<TType> | null | undefined {
|
||||||
return fragmentType as any
|
return fragmentType as any;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,20 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
import * as types from './graphql';
|
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
|
||||||
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
import * as types from "./graphql";
|
||||||
|
|
||||||
const documents = {
|
const documents = {
|
||||||
"\n mutation SendFeedbackMutation($input: SendFeedbackInput!) {\n sendFeedback(input: $input) {\n id\n satisfaction\n goalAttainment\n proficiency\n receivedMaterials\n materialsRating\n errors {\n field\n messages\n }\n }\n }\n": types.SendFeedbackMutationDocument,
|
"\n mutation SendFeedbackMutation($input: SendFeedbackInput!) {\n sendFeedback(input: $input) {\n id\n satisfaction\n goalAttainment\n proficiency\n receivedMaterials\n materialsRating\n errors {\n field\n messages\n }\n }\n }\n":
|
||||||
|
types.SendFeedbackMutationDocument,
|
||||||
};
|
};
|
||||||
|
|
||||||
export function graphql(source: "\n mutation SendFeedbackMutation($input: SendFeedbackInput!) {\n sendFeedback(input: $input) {\n id\n satisfaction\n goalAttainment\n proficiency\n receivedMaterials\n materialsRating\n errors {\n field\n messages\n }\n }\n }\n"): (typeof documents)["\n mutation SendFeedbackMutation($input: SendFeedbackInput!) {\n sendFeedback(input: $input) {\n id\n satisfaction\n goalAttainment\n proficiency\n receivedMaterials\n materialsRating\n errors {\n field\n messages\n }\n }\n }\n"];
|
export function graphql(
|
||||||
|
source: "\n mutation SendFeedbackMutation($input: SendFeedbackInput!) {\n sendFeedback(input: $input) {\n id\n satisfaction\n goalAttainment\n proficiency\n receivedMaterials\n materialsRating\n errors {\n field\n messages\n }\n }\n }\n"
|
||||||
|
): typeof documents["\n mutation SendFeedbackMutation($input: SendFeedbackInput!) {\n sendFeedback(input: $input) {\n id\n satisfaction\n goalAttainment\n proficiency\n receivedMaterials\n materialsRating\n errors {\n field\n messages\n }\n }\n }\n"];
|
||||||
|
|
||||||
export function graphql(source: string): unknown;
|
export function graphql(source: string): unknown;
|
||||||
export function graphql(source: string) {
|
export function graphql(source: string) {
|
||||||
return (documents as any)[source] ?? {};
|
return (documents as any)[source] ?? {};
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;
|
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> =
|
||||||
|
TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,2 +1,2 @@
|
||||||
export * from "./gql"
|
export * from "./fragment-masking";
|
||||||
export * from "./fragment-masking"
|
export * from "./gql";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue