Reorganize
This commit is contained in:
15
Cargo.toml
15
Cargo.toml
@@ -1,5 +1,5 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["crates/*"]
|
members = ["crates/bin/*", "crates/lib/*", "crates/macro/*", "crates/service/*"]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
@@ -64,12 +64,13 @@ type_complexity = "allow"
|
|||||||
#
|
#
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
assetserver = { path = "crates/assetserver" }
|
macro-assets = { path = "crates/macro/macro-assets" }
|
||||||
toolbox = { path = "crates/toolbox" }
|
macro-sass = { path = "crates/macro/macro-sass" }
|
||||||
libservice = { path = "crates/libservice" }
|
assetserver = { path = "crates/lib/assetserver" }
|
||||||
service-webpage = { path = "crates/service-webpage" }
|
libservice = { path = "crates/lib/libservice" }
|
||||||
macro-assets = { path = "crates/macro-assets" }
|
toolbox = { path = "crates/lib/toolbox" }
|
||||||
macro-sass = { path = "crates/macro-sass" }
|
|
||||||
|
service-webpage = { path = "crates/service/service-webpage" }
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -12,5 +12,3 @@ pub trait Asset {
|
|||||||
/// The embedded file contents as a byte slice
|
/// The embedded file contents as a byte slice
|
||||||
const BYTES: &'static [u8];
|
const BYTES: &'static [u8];
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: image manipulation
|
|
||||||
|
Before Width: | Height: | Size: 284 KiB After Width: | Height: | Size: 284 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
@@ -1,6 +1,5 @@
|
|||||||
use maud::{Markup, Render, html};
|
use maud::{Markup, Render, html};
|
||||||
|
|
||||||
// TODO: turn these into one self-contained struct
|
|
||||||
pub struct MangledBetaEmail {}
|
pub struct MangledBetaEmail {}
|
||||||
|
|
||||||
impl Render for MangledBetaEmail {
|
impl Render for MangledBetaEmail {
|
||||||
@@ -71,8 +71,6 @@ const OPTS: Options = Options {
|
|||||||
|
|
||||||
impl Render for Markdown<'_> {
|
impl Render for Markdown<'_> {
|
||||||
fn render(&self) -> Markup {
|
fn render(&self) -> Markup {
|
||||||
// TODO: cache
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
let mut ast = markdown::to_mdast(MD_A, &opts.parse).unwrap();
|
let mut ast = markdown::to_mdast(MD_A, &opts.parse).unwrap();
|
||||||
let walk = AstWalkMut::new(&mut ast);
|
let walk = AstWalkMut::new(&mut ast);
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
use assetserver::Asset;
|
use assetserver::Asset;
|
||||||
use macro_assets::assets;
|
use macro_assets::assets;
|
||||||
|
|
||||||
// TODO: auto-generate from dir
|
|
||||||
assets! {
|
assets! {
|
||||||
prefix: "/assets"
|
prefix: "/assets"
|
||||||
router: asset_router()
|
router: asset_router()
|
||||||
@@ -9,10 +9,6 @@ use crate::{
|
|||||||
routes::assets::Image_Icon,
|
routes::assets::Image_Icon,
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: emoji
|
|
||||||
// TODO: spellcheck
|
|
||||||
// TODO: check links
|
|
||||||
|
|
||||||
pub async fn links() -> Markup {
|
pub async fn links() -> Markup {
|
||||||
let meta = PageMetadata {
|
let meta = PageMetadata {
|
||||||
title: "Links".into(),
|
title: "Links".into(),
|
||||||
Reference in New Issue
Block a user