Skip to content

Nested components #975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove comments
  • Loading branch information
levkk committed Sep 2, 2023
commit 0ac8c31894971862cb40a062896e84f62468dfbe
26 changes: 0 additions & 26 deletions pgml-apps/cargo-pgml-components/src/frontend/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,32 +134,6 @@ pub fn add(path: &Path, overwrite: bool) {
/// Update `mod.rs` with all the components in `src/components`.
pub fn update_modules() {
update_module(Path::new(COMPONENT_DIRECTORY), true);
// let mut modules = Vec::new();
// let mut paths: Vec<_> = unwrap_or_exit!(read_dir(COMPONENT_DIRECTORY))
// .map(|p| p.unwrap())
// .collect();
// paths.sort_by_key(|dir| dir.path());

// for path in paths {
// let path = path.path();
// if path.is_file() {
// continue;
// }

// let component = Component::from(Path::new(&path));
// modules.push(component);
// }

// let modules = unwrap_or_exit!(templates::Mod { modules, root: true }.render_once());
// let existing_modules = unwrap_or_exit!(read_to_string(COMPONENT_MOD));

// if !compare_strings(&modules, &existing_modules) {
// debug!("mod.rs is different");
// unwrap_or_exit!(write_to_file(&Path::new(COMPONENT_MOD), &modules));
// info(&format!("written {}", COMPONENT_MOD));
// }

// debug!("mod.rs is the same");
}

/// Recusively write `mod.rs` in every Rust module directory
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy