Initial commit

This commit is contained in:
rl544
2026-06-25 07:43:27 +09:00
commit c0814f4315
4494 changed files with 11587 additions and 0 deletions
+93
View File
@@ -0,0 +1,93 @@
Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
+18
View File
@@ -0,0 +1,18 @@
# Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
## Recommended IDE Setup
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
## Type Support For `.vue` Imports in TS
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
1. Disable the built-in TypeScript Extension
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
+14
View File
@@ -0,0 +1,14 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as QuizService from "./quizservice.js";
export {
QuizService
};
export {
CategoryInfo,
DescriptiveGradingRecord,
Question,
TargetInfo
} from "./models.js";
+202
View File
@@ -0,0 +1,202 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Create as $Create } from "@wailsio/runtime";
export class CategoryInfo {
"name": string;
"count": number;
/** Creates a new CategoryInfo instance. */
constructor($$source: Partial<CategoryInfo> = {}) {
if (!("name" in $$source)) {
this["name"] = "";
}
if (!("count" in $$source)) {
this["count"] = 0;
}
Object.assign(this, $$source);
}
/**
* Creates a new CategoryInfo instance from a string or object.
*/
static createFrom($$source: any = {}): CategoryInfo {
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
return new CategoryInfo($$parsedSource as Partial<CategoryInfo>);
}
}
export class DescriptiveGradingRecord {
"id": number;
"questionId": number;
"source": string;
"userAnswer": string;
"score": number;
"evaluation": string;
"username": string;
"createdAt": string;
/** Creates a new DescriptiveGradingRecord instance. */
constructor($$source: Partial<DescriptiveGradingRecord> = {}) {
if (!("id" in $$source)) {
this["id"] = 0;
}
if (!("questionId" in $$source)) {
this["questionId"] = 0;
}
if (!("source" in $$source)) {
this["source"] = "";
}
if (!("userAnswer" in $$source)) {
this["userAnswer"] = "";
}
if (!("score" in $$source)) {
this["score"] = 0;
}
if (!("evaluation" in $$source)) {
this["evaluation"] = "";
}
if (!("username" in $$source)) {
this["username"] = "";
}
if (!("createdAt" in $$source)) {
this["createdAt"] = "";
}
Object.assign(this, $$source);
}
/**
* Creates a new DescriptiveGradingRecord instance from a string or object.
*/
static createFrom($$source: any = {}): DescriptiveGradingRecord {
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
return new DescriptiveGradingRecord($$parsedSource as Partial<DescriptiveGradingRecord>);
}
}
export class Question {
"id": number;
"source": string;
"category": string;
"questionText": string;
"choice1": string;
"choice2": string;
"choice3": string;
"choice4": string;
"choice5": string;
"correctAnswer": number;
"correctAnswerStr": string;
"explanation": string;
"difficulty": string;
"passage": string;
"imageUrl": string;
"geminiExplanation": string;
"isBookmarked": boolean;
"subject": string;
"correctAnswers": string;
"oid": number;
/** Creates a new Question instance. */
constructor($$source: Partial<Question> = {}) {
if (!("id" in $$source)) {
this["id"] = 0;
}
if (!("source" in $$source)) {
this["source"] = "";
}
if (!("category" in $$source)) {
this["category"] = "";
}
if (!("questionText" in $$source)) {
this["questionText"] = "";
}
if (!("choice1" in $$source)) {
this["choice1"] = "";
}
if (!("choice2" in $$source)) {
this["choice2"] = "";
}
if (!("choice3" in $$source)) {
this["choice3"] = "";
}
if (!("choice4" in $$source)) {
this["choice4"] = "";
}
if (!("choice5" in $$source)) {
this["choice5"] = "";
}
if (!("correctAnswer" in $$source)) {
this["correctAnswer"] = 0;
}
if (!("correctAnswerStr" in $$source)) {
this["correctAnswerStr"] = "";
}
if (!("explanation" in $$source)) {
this["explanation"] = "";
}
if (!("difficulty" in $$source)) {
this["difficulty"] = "";
}
if (!("passage" in $$source)) {
this["passage"] = "";
}
if (!("imageUrl" in $$source)) {
this["imageUrl"] = "";
}
if (!("geminiExplanation" in $$source)) {
this["geminiExplanation"] = "";
}
if (!("isBookmarked" in $$source)) {
this["isBookmarked"] = false;
}
if (!("subject" in $$source)) {
this["subject"] = "";
}
if (!("correctAnswers" in $$source)) {
this["correctAnswers"] = "";
}
if (!("oid" in $$source)) {
this["oid"] = 0;
}
Object.assign(this, $$source);
}
/**
* Creates a new Question instance from a string or object.
*/
static createFrom($$source: any = {}): Question {
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
return new Question($$parsedSource as Partial<Question>);
}
}
export class TargetInfo {
"name": string;
"count": number;
/** Creates a new TargetInfo instance. */
constructor($$source: Partial<TargetInfo> = {}) {
if (!("name" in $$source)) {
this["name"] = "";
}
if (!("count" in $$source)) {
this["count"] = 0;
}
Object.assign(this, $$source);
}
/**
* Creates a new TargetInfo instance from a string or object.
*/
static createFrom($$source: any = {}): TargetInfo {
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
return new TargetInfo($$parsedSource as Partial<TargetInfo>);
}
}
+114
View File
@@ -0,0 +1,114 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as $models from "./models.js";
/**
* AddBookmark adds a source and question ID to the Bookmark table
*/
export function AddBookmark(source: string, questionID: number): $CancellablePromise<void> {
return $Call.ByID(2172709195, source, questionID);
}
export function AskGemini(source: string, id: number, prompt: string, base64Image: string): $CancellablePromise<string> {
return $Call.ByID(248984702, source, id, prompt, base64Image);
}
/**
* GetBookmarkedCategories retrieves categories that have bookmarked questions
*/
export function GetBookmarkedCategories(): $CancellablePromise<$models.CategoryInfo[]> {
return $Call.ByID(2614333737).then(($result: any) => {
return $$createType1($result);
});
}
/**
* GetBookmarkedQuestions retrieves all bookmarked questions for a given category and difficulty
*/
export function GetBookmarkedQuestions(category: string, difficulty: string): $CancellablePromise<$models.Question[]> {
return $Call.ByID(1774610406, category, difficulty).then(($result: any) => {
return $$createType3($result);
});
}
/**
* GetBookmarkedTargets retrieves difficulties (targets) that have bookmarked questions within a category
*/
export function GetBookmarkedTargets(category: string): $CancellablePromise<$models.TargetInfo[]> {
return $Call.ByID(859878861, category).then(($result: any) => {
return $$createType5($result);
});
}
export function GetCategories(): $CancellablePromise<$models.CategoryInfo[]> {
return $Call.ByID(4276529076).then(($result: any) => {
return $$createType1($result);
});
}
export function GetDescriptiveGradingHistory(source: string, questionID: number): $CancellablePromise<$models.DescriptiveGradingRecord[]> {
return $Call.ByID(1670245718, source, questionID).then(($result: any) => {
return $$createType7($result);
});
}
export function GetQuestions(category: string, difficulty: string, subject: string): $CancellablePromise<$models.Question[]> {
return $Call.ByID(2580577541, category, difficulty, subject).then(($result: any) => {
return $$createType3($result);
});
}
export function GetSubjects(category: string, difficulty: string): $CancellablePromise<string[]> {
return $Call.ByID(1060436249, category, difficulty).then(($result: any) => {
return $$createType8($result);
});
}
export function GetTargets(category: string): $CancellablePromise<$models.TargetInfo[]> {
return $Call.ByID(371042150, category).then(($result: any) => {
return $$createType5($result);
});
}
export function GradeDescriptiveAnswer(source: string, questionID: number, userAnswer: string): $CancellablePromise<$models.DescriptiveGradingRecord | null> {
return $Call.ByID(642001377, source, questionID, userAnswer).then(($result: any) => {
return $$createType9($result);
});
}
/**
* RemoveBookmark removes a source and question ID from the Bookmark table
*/
export function RemoveBookmark(source: string, questionID: number): $CancellablePromise<void> {
return $Call.ByID(189585076, source, questionID);
}
export function SaveAiExplanation(source: string, id: number, explanation: string): $CancellablePromise<void> {
return $Call.ByID(71515486, source, id, explanation);
}
/**
* SetGeminiKey sets the API key for Gemini calls
*/
export function SetGeminiKey(key: string): $CancellablePromise<void> {
return $Call.ByID(2865570266, key);
}
// Private type creation functions
const $$createType0 = $models.CategoryInfo.createFrom;
const $$createType1 = $Create.Array($$createType0);
const $$createType2 = $models.Question.createFrom;
const $$createType3 = $Create.Array($$createType2);
const $$createType4 = $models.TargetInfo.createFrom;
const $$createType5 = $Create.Array($$createType4);
const $$createType6 = $models.DescriptiveGradingRecord.createFrom;
const $$createType7 = $Create.Array($$createType6);
const $$createType8 = $Create.Array($Create.Any);
const $$createType9 = $Create.Nullable($$createType6);
@@ -0,0 +1,14 @@
//@ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Create as $Create } from "@wailsio/runtime";
function configure() {
Object.freeze(Object.assign($Create.Events, {
}));
}
configure();
@@ -0,0 +1,14 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import type { Events } from "@wailsio/runtime";
declare module "@wailsio/runtime" {
namespace Events {
interface CustomEvents {
"time": string;
}
}
}
+16
View File
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/wails.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/vs2015.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<title>Master CBT</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
+2866
View File
File diff suppressed because it is too large Load Diff
+32
View File
@@ -0,0 +1,32 @@
{
"name": "frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build:dev": "vue-tsc && vite build --minify false --mode development",
"build": "vue-tsc && vite build --mode production",
"preview": "vite preview"
},
"dependencies": {
"@wailsio/runtime": "latest",
"katex": "^0.17.0",
"lucide-vue-next": "^1.0.0",
"marked": "^18.0.5",
"pinia": "^3.0.4",
"vue": "^3.2.45",
"vue-pdf-embed": "^2.1.4",
"vue-router": "^4.6.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^6.0.0",
"autoprefixer": "^10.5.0",
"daisyui": "^5.5.23",
"postcss": "^8.5.15",
"tailwindcss": "^3.4.19",
"typescript": "^4.9.3",
"vite": "^8.0.5",
"vue-tsc": "^1.0.11"
}
}
+6
View File
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 466 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 B

Some files were not shown because too many files have changed in this diff Show More