-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #361 from fujaba/fix/remove-scenario-solutions
Remove fulibScenarios Solutions from Assignments
- Loading branch information
Showing
41 changed files
with
148 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 1 addition & 18 deletions
19
frontend/src/app/assignment/modules/assignment/tasks/tasks.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,3 @@ | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-6" *ngIf="$any(assignment)?.solution as solution"> | ||
<div class="position-sticky" style="top: 4rem"> | ||
<div class="mb-3"> | ||
<label class="form-label" for="solutionInput">Sample Solution</label> | ||
<app-scenario-codemirror | ||
id="solutionInput" | ||
[content]="solution" | ||
[readOnly]="true" | ||
></app-scenario-codemirror> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-12" [class.col-md-6]="$any(assignment)?.solution"> | ||
Tasks | ||
<app-task-list [tasks]="assignment?.tasks"></app-task-list> | ||
</div> | ||
</div> | ||
<app-task-list [tasks]="assignment?.tasks"></app-task-list> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
frontend/src/app/assignment/modules/edit-assignment/code-search/code-search.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="mb-3"> | ||
<label class="form-label" for="codeSearchCheck">Code Search</label> | ||
<div class="form-check"> | ||
<input type="checkbox" class="form-check-input" id="codeSearchCheck" | ||
[(ngModel)]="classroom.codeSearch" (change)="context.saveDraft()"> | ||
<label class="form-check-label" for="codeSearchCheck">Enable Code Search</label> | ||
</div> | ||
<div class="form-text"> | ||
Code Search will import the source code from Classroom repositories and index it. | ||
It can be used to find code duplicates across submissions and allows grading multiple students at the same time. | ||
</div> | ||
</div> | ||
<div class="mb-3" *ngIf="classroom.codeSearch"> | ||
<label class="form-label" for="openaiApiKeyInput">OpenAI API Key</label> | ||
<app-masked-input | ||
id="openaiApiKeyInput" | ||
type="password" | ||
[(value)]="classroom.openaiApiKey" | ||
(change)="context.saveDraft()" | ||
placeholder="sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
></app-masked-input> | ||
<div class="form-text"> | ||
Your OpenAI API key for advanced Code Search. Generate one in the | ||
<a href="https://platform.openai.com/account/api-keys" target="_blank">OpenAI API Keys</a>. | ||
</div> | ||
</div> |
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
frontend/src/app/assignment/modules/edit-assignment/code-search/code-search.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import {Component} from '@angular/core'; | ||
import {AssignmentContext} from "../../../services/assignment.context"; | ||
import {ClassroomInfo} from "../../../model/assignment"; | ||
|
||
@Component({ | ||
selector: 'app-code-search', | ||
templateUrl: './code-search.component.html', | ||
styleUrls: ['./code-search.component.scss'] | ||
}) | ||
export class CodeSearchComponent { | ||
classroom: ClassroomInfo; | ||
|
||
constructor( | ||
readonly context: AssignmentContext, | ||
) { | ||
this.classroom = this.context.assignment.classroom ||= {}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.