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 2b49a16 commit d1e3c63
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 15 deletions.
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion typhon-webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta charset="utf-8" />
<title>Typhon</title>
<link data-trunk rel="copy-dir" href="node_modules/@fontsource" data-target-path="@fontsource" />
<link data-trunk rel="sass" href="index.scss" />
<link data-trunk rel="css" href="node_modules/remixicon/fonts/remixicon.css" />
<link data-trunk rel="sass" href="assets/style/index.scss" />
<script type="application/json" id="settings">null</script>
</head>
<body>
Expand Down
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 d1e3c63

Please sign in to comment.