diff --git a/src/static_assets/mod.rs b/src/static_assets/mod.rs
index cfa45d4..0c5ae95 100644
--- a/src/static_assets/mod.rs
+++ b/src/static_assets/mod.rs
@@ -35,6 +35,22 @@ pub mod routes {
lazy_static! {
pub static ref ASSETS: Assets = Assets::new();
}
+ #[derive(Serialize)]
+ pub struct Svg {
+ pub eye_off: &'static str,
+ pub eye: &'static str,
+ }
+
+ impl Svg {
+ /// create new instance of Routes
+ pub fn new() -> Svg {
+ Svg {
+ eye: &static_files::assets::CSS,
+ eye_off: &static_files::assets::CSS,
+ }
+ }
+ }
+
#[derive(Serialize)]
/// Top-level routes data structure for V1 AP1
@@ -42,6 +58,7 @@ pub mod routes {
/// Authentication routes
pub css: &'static str,
pub mobile_css: &'static str,
+ pub svg: Svg,
}
impl Assets {
@@ -50,6 +67,7 @@ pub mod routes {
Assets {
css: &static_files::assets::CSS,
mobile_css: &static_files::assets::CSS,
+ svg: Svg::new(),
}
}
}
diff --git a/src/static_assets/static_files.rs b/src/static_assets/static_files.rs
index 8565556..3d273f7 100644
--- a/src/static_assets/static_files.rs
+++ b/src/static_assets/static_files.rs
@@ -29,6 +29,9 @@ pub mod assets {
lazy_static! {
pub static ref CSS: &'static str = FILES.get("./static/cache/css/main.css").unwrap();
+ pub static ref EYE: &'static str = FILES.get("./static/cache/img/svg/eye.svg").unwrap();
+ pub static ref EYE_OFF: &'static str =
+ FILES.get("./static/cache/img/svg/eye-off.svg").unwrap();
pub static ref MOBILE_CSS: &'static str =
FILES.get("./static/cache/css/mobile.css").unwrap();
}
diff --git a/static/cache/img/svg/eye-off.svg b/static/cache/img/svg/eye-off.svg
new file mode 100644
index 0000000..6c83c3f
--- /dev/null
+++ b/static/cache/img/svg/eye-off.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/static/cache/img/svg/eye.svg b/static/cache/img/svg/eye.svg
new file mode 100644
index 0000000..60e1e5f
--- /dev/null
+++ b/static/cache/img/svg/eye.svg
@@ -0,0 +1 @@
+
\ No newline at end of file