Skip to content

Commit

Permalink
Version 1.0 realease
Browse files Browse the repository at this point in the history
  • Loading branch information
Septias committed Mar 24, 2021
1 parent 83cbe02 commit 9a0fd78
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Backend/sync.ron
Backend/debug.log
Backend/credentials.txt
2 changes: 1 addition & 1 deletion Backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Septias <39526136+Septias@users.noreply.github.com>"]
edition = "2018"
name = "better_ilias"
version = "0.1.0"
version = "1.0.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
10 changes: 10 additions & 0 deletions Backend/Rocket.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
[debug]
address = "127.0.0.1"
port = 2020


[global]
address = "127.0.0.1"
keep_alive = 5
limits = {forms = 32768}
log = "debug"
port = 2020
read_timeout = 5
write_timeout = 5
4 changes: 1 addition & 3 deletions Backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use rocket_contrib::serve::StaticFiles;
use std::sync::Arc;
#[macro_use]
extern crate rocket;


use tokio::task::JoinHandle;
use tree::ILiasTree;

Expand Down Expand Up @@ -35,7 +33,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
rocket::ignite()
.mount(
"/assets/",
StaticFiles::from("C:/dev/repositories/BettIlias/Frontend/dist/assets"),
StaticFiles::from("./dist/assets"),
)
.mount("/", routes![server::get_node, server::index, server::open_file, server::update, server::set_credentials])
.manage(ilias)
Expand Down
2 changes: 1 addition & 1 deletion Backend/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub async fn update(node: State<'_, Arc<ILiasTree>>) -> JsonValue {

#[get("/")]
pub async fn index() -> std::result::Result<NamedFile, std::io::Error> {
NamedFile::open("C:/dev/repositories/BettIlias/Frontend/dist/index.html").await
NamedFile::open("./dist/index.html").await
}

#[get("/api/open/<file..>")]
Expand Down
4 changes: 2 additions & 2 deletions Frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "my-vue-app",
"version": "0.0.0",
"name": "better_ilias_frontend",
"version": "1.0.0",
"scripts": {
"dev": "vite",
"build": "vite build"
Expand Down
1 change: 1 addition & 0 deletions Frontend/src/components/Ilias.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default defineComponent({
if (resp.data.status == "ok") {
wrong.value = "";
login.value = false;
update()
} else {
wrong.value = resp.data.status;
}
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
This tool is still in pre-release so it only works with the approriat setup - which is documented nowhere.

# BetterIlias

A tool for better interaction with the managment-website from Albert-Ludwigs-Universität Freiburg.


## Features
* interatact with ilias through a nice frontend which doesn't need 2sec to load
![image](https://user-images.githubusercontent.com/39526136/111999674-7c42d800-8b1d-11eb-8462-b31d891e3d5a.png)
Expand Down

0 comments on commit 9a0fd78

Please sign in to comment.