Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative path rather than @ project-scope... #317

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions packages/vue/src/base-course/Viewable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import { HotKey } from '../SkldrMouseTrap';
import { Answer, Displayable, Question } from '../base-course/Displayable';
import { ViewData } from '../base-course/Interfaces/ViewData';
import { CardRecord, QuestionRecord } from '../db/types';
import SkldrVue from '@/SkldrVue';
import SkldrVue from '../SkldrVue';

/**
* Base class for card views in courses.
*/
export default abstract class Viewable extends SkldrVue {
export default abstract class Viewable extends SkldrVue implements Vue {
@Prop() public data: ViewData[];
public toString(): string {
this.warn('toString() not implemented');
return '!!! preview not implemented !!!';
}
protected startTime: moment.Moment = moment.utc();
Expand Down Expand Up @@ -60,11 +61,11 @@ export abstract class QuestionView<Q extends Question> extends Viewable {
static seedData: any[];
/**
* Represents an ELO spread between the user and the question.
*
*
* Negative values indicate that the user is likely to get the question
* wrong, while positive values indicate that the user is likely to get
* the question right.
*
*
* Questions may be presented to the user in a way that is more or less
* difficult than the question's default difficulty.
*/
Expand Down
Loading