2017-09-15 18:28:23 +03:00
|
|
|
use futures::Future;
|
2017-09-17 13:08:42 +03:00
|
|
|
use web::{Resource, ResponseFuture};
|
2017-09-15 18:28:23 +03:00
|
|
|
|
2018-06-16 11:51:51 +03:00
|
|
|
// The CSS should be built to a single CSS file at compile time
|
|
|
|
#[derive(StaticResource)]
|
|
|
|
#[filename = "assets/themes.css"]
|
|
|
|
#[mime = "text/css"]
|
|
|
|
pub struct ThemesCss;
|
|
|
|
|
2017-09-15 18:28:23 +03:00
|
|
|
#[derive(StaticResource)]
|
|
|
|
#[filename = "assets/style.css"]
|
|
|
|
#[mime = "text/css"]
|
|
|
|
pub struct StyleCss;
|
|
|
|
|
|
|
|
#[derive(StaticResource)]
|
|
|
|
#[filename = "assets/script.js"]
|
|
|
|
#[mime = "application/javascript"]
|
|
|
|
pub struct ScriptJs;
|
|
|
|
|
2017-10-25 14:24:42 +03:00
|
|
|
#[derive(StaticResource)]
|
|
|
|
#[filename = "assets/search.js"]
|
|
|
|
#[mime = "application/javascript"]
|
|
|
|
pub struct SearchJs;
|
|
|
|
|
2017-09-15 18:28:23 +03:00
|
|
|
// SIL Open Font License 1.1: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
|
|
|
|
// Copyright 2015 The Amatic SC Project Authors (contact@sansoxygen.com)
|
|
|
|
#[derive(StaticResource)]
|
|
|
|
#[filename = "assets/amatic-sc-v9-latin-regular.woff"]
|
|
|
|
#[mime = "application/font-woff"]
|
|
|
|
pub struct AmaticFont;
|