-
Notifications
You must be signed in to change notification settings - Fork 0
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 #43 from ooemperor/dev
Updating doc, adding settings page to admin user and fixing loading gif in user frontend task template
- Loading branch information
Showing
35 changed files
with
942 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
# CodeGrader (CG) | ||
|
||
This repository will provide the scripts and code for a running Grader. | ||
This will be a web application with User Management and automatic Code Execution and evaluation. | ||
This repository contains the source code for the CodeGrader. | ||
The CodeGrader is an application with User Management and automatic Code Execution and evaluation. | ||
|
||
For more detailed information on how to setup this Project please visit the doc Folder. | ||
|
||
This project is created as a Bachelor Thesis at the University of Bern. | ||
This project is created as a Bachelor Thesis at the University of Bern in 2023/2024. | ||
|
||
## Installation / Deployment | ||
For running the application you can find a detailed Guid in the doc folder for a complete guide. | ||
|
||
## Help | ||
If you have any questions about the application, feel free to get in touch. \ | ||
E-Mail: [[email protected]](mailto:[email protected]) | ||
|
||
## License | ||
This application is avaible under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3. | ||
|
||
|
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
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,52 @@ | ||
# CodeGrader - https://github.com/ooemperor/CodeGrader | ||
# Copyright © 2023, 2024 Michael Kaiser <[email protected]> | ||
# | ||
# This file is part of CodeGrader. | ||
# | ||
# CodeGrader is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# CodeGrader is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with CodeGrader. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
""" | ||
Handler Class for the Settings View of the admin frontend | ||
""" | ||
|
||
import flask | ||
from flask import request, render_template, redirect, url_for, flash, Response | ||
from .Base import BaseHandler | ||
from typing import Union | ||
|
||
|
||
class SettingsHandler(BaseHandler): | ||
""" | ||
Handler Class for the Settings | ||
""" | ||
|
||
def __init__(self, request: flask.Request) -> None: | ||
""" | ||
Constructor for the handler of a single Task | ||
@param request: The request provided by the routes file | ||
@type request: flask.Request | ||
@return: Nothing | ||
@rtype: None | ||
""" | ||
super().__init__(request) | ||
|
||
def get(self) -> Union[str, Response]: | ||
""" | ||
Get Method to render the settings view for the user that is logged in | ||
@return: The rendered site or a redirect | ||
@rtype: str|Response | ||
""" | ||
settings = self.api.get(f"/admin/{self.admin.id}") | ||
|
||
return render_template("settings.html", **settings) |
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.