Skip to content

Commit

Permalink
webapp: structure sources
Browse files Browse the repository at this point in the history
  • Loading branch information
pnmadelaine committed Oct 18, 2023
1 parent 6fa04f3 commit a4a78a6
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 14 deletions.
File renamed without changes
File renamed without changes.
18 changes: 7 additions & 11 deletions typhon-webapp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
mod drv_log;
mod editable_text;
mod evaluation;
mod home;
mod job;
mod jobset;
mod login;
mod project;
mod pages;
mod streams;
mod timestamp;
mod widgets;

use pages::*;

use typhon_types::*;

use gloo_console::log;
use gloo_net::http;
use gloo_storage::LocalStorage;
use gloo_storage::Storage;
use seed::{prelude::*, *};
use serde::{Deserialize, Serialize};
use typhon_types::*;

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct Settings {
Expand Down Expand Up @@ -412,7 +408,7 @@ fn header(base_url: &Url, model: &Model) -> Node<Msg> {
let urls_2 = Urls::new(base_url);
header![
main![a![
raw![std::str::from_utf8(include_bytes!("./logo.svg")).unwrap()],
raw![std::str::from_utf8(include_bytes!("../assets/images/logo.svg")).unwrap()],
span!["Typhon"],
attrs! { At::Href => urls_1.home() }
]],
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::drv_log;
use crate::perform_request;
use crate::view_error;
use crate::view_log;
use crate::widgets::drv_log;
use crate::Settings;

use typhon_types::*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::perform_request;
use crate::timestamp;
use crate::view_error;
use crate::widgets::timestamp;

use seed::{prelude::*, *};
use typhon_types::*;
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions typhon-webapp/src/pages/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub mod evaluation;
pub mod home;
pub mod job;
pub mod jobset;
pub mod login;
pub mod project;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::editable_text;
use crate::perform_request;
use crate::view_error;
use crate::widgets::editable_text;

use seed::{prelude::*, *};

Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions typhon-webapp/src/widgets/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod drv_log;
pub mod editable_text;
pub mod timestamp;
File renamed without changes.

0 comments on commit a4a78a6

Please sign in to comment.