🎉 Start refactoring PageTop for Sycamore
This commit is contained in:
parent
9f62955acb
commit
38ca8f1d1c
155 changed files with 2805 additions and 10960 deletions
39
packages/drust/Cargo.toml
Normal file
39
packages/drust/Cargo.toml
Normal 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",
|
||||
#]
|
||||
6
packages/drust/config/common.toml
Normal file
6
packages/drust/config/common.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[app]
|
||||
name = "Drust"
|
||||
description = "A modern web Content Management System to share your world."
|
||||
|
||||
[database]
|
||||
db_type = "mysql"
|
||||
10
packages/drust/config/default.toml
Normal file
10
packages/drust/config/default.toml
Normal 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"
|
||||
7
packages/drust/config/local.default.toml
Normal file
7
packages/drust/config/local.default.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[database]
|
||||
db_name = "drust"
|
||||
db_user = "drust"
|
||||
db_pass = "demo"
|
||||
|
||||
[dev]
|
||||
pagetop_project_dir = "/home/manuelcillero/Proyectos/pagetop"
|
||||
22
packages/drust/src/main.rs
Normal file
22
packages/drust/src/main.rs
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue