🎉 Start refactoring PageTop for Sycamore

This commit is contained in:
Manuel Cillero 2024-11-12 23:42:42 +01:00
parent 9f62955acb
commit 38ca8f1d1c
155 changed files with 2805 additions and 10960 deletions

39
packages/drust/Cargo.toml Normal file
View file

@ -0,0 +1,39 @@
[package]
name = "drust"
version = "0.0.3"
edition = "2021"
description = "A modern web Content Management System to share your world."
homepage = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
authors = { workspace = true }
[dependencies]
pagetop.workspace = true
# Packages.
#pagetop-admin = { version = "0.0", path = "../pagetop-admin" }
#pagetop-user = { version = "0.0", path = "../pagetop-user" }
#pagetop-node = { version = "0.0", path = "../pagetop-node" }
# Themes.
#pagetop-bootsier = { version = "0.0", path = "../pagetop-bootsier" }
#pagetop-bulmix = { version = "0.0", path = "../pagetop-bulmix" }
#[features]
#default = [ "mysql" ]
#mysql = [
# "pagetop-user/mysql",
# "pagetop-node/mysql",
#]
#postgres = [
# "pagetop-user/postgres",
# "pagetop-node/postgres",
#]
#sqlite = [
# "pagetop-user/sqlite",
# "pagetop-node/sqlite",
#]

View file

@ -0,0 +1,6 @@
[app]
name = "Drust"
description = "A modern web Content Management System to share your world."
[database]
db_type = "mysql"

View file

@ -0,0 +1,10 @@
[app]
#theme = "Basic"
#theme = "Chassis"
theme = "Inception"
#theme = "Bootsier"
#theme = "Bulmix"
language = "es-ES"
[log]
tracing = "Info,pagetop=Debug,sqlx::query=Warn"

View file

@ -0,0 +1,7 @@
[database]
db_name = "drust"
db_user = "drust"
db_pass = "demo"
[dev]
pagetop_project_dir = "/home/manuelcillero/Proyectos/pagetop"

View file

@ -0,0 +1,22 @@
use pagetop::prelude::*;
struct Drust;
impl PackageTrait for Drust {
fn dependencies(&self) -> Vec<PackageRef> {
vec![
// Packages.
//&pagetop_admin::Admin,
//&pagetop_user::User,
//&pagetop_node::Node,
// Themes.
//&pagetop_bootsier::Bootsier,
//&pagetop_bulmix::Bulmix,
]
}
}
#[pagetop::main]
async fn main() -> std::io::Result<()> {
Application::prepare(&Drust).run()?.await
}