feat: add frontend

This commit is contained in:
2022-10-07 16:15:53 +02:00
parent abfaf19c47
commit 97059d4c6e
72 changed files with 47026 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import {RestLinks} from "~/repositories/models/rest-response.model";
export interface Axe extends RestLinks {
identifier: number;
shortTitle: string;
title: string;
color: string;
}

View File

@@ -0,0 +1,6 @@
import {RestLinks} from "~/repositories/models/rest-response.model";
export interface Question extends RestLinks {
label: string;
description: string;
}

View File

@@ -0,0 +1,31 @@
import {RestLinks} from "~/repositories/models/rest-response.model";
export interface Score {
scoreAvg: number;
axeIdentifier: number;
}
export interface Quiz extends RestLinks {
id: number;
createdDate: string;
scores: Score[];
}
export interface Response {
axeId: number;
questionId: string;
score?: number;
comment?: string;
}
export interface ResponseWithQuestion extends RestLinks {
axeIdentifier: number;
question: string;
score: number;
comment: string;
}
export interface QuizRate {
score?: number;
comment?: string;
}

View File

@@ -0,0 +1,20 @@
export interface RestLinks {
"_links": {
"self": {
"href": string;
}
}
}
export interface Page {
"page": {
"size": number;
"totalElements": number;
"totalPages": number;
"number": number;
}
}
export interface RestResponse<T> extends RestLinks, Page {
_embedded: { [key: string]: T[] };
}

View File

@@ -0,0 +1,4 @@
export interface Token {
"name": string,
"password": "password"
}