Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make component public#983

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
levkk merged 1 commit intomasterfromlevkk-comp-public
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
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
2 changes: 1 addition & 1 deletionpgml-apps/cargo-pgml-components/Cargo.lock
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

2 changes: 1 addition & 1 deletionpgml-apps/cargo-pgml-components/Cargo.toml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-pgml-components"
version = "0.1.12"
version = "0.1.13"
edition = "2021"
authors = ["PostgresML <team@postgresml.org>"]
license = "MIT"
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ pub struct Component {
pub value: String,
}

#[macro_export]
macro_rules! component {
($name:tt) => {
impl From<$name> for crate::components::Component {
Expand All@@ -36,7 +37,8 @@ macro_rules! component {
};
}

pub(crate) use component;

pub use component;

// Render any string.
impl From<&str> for Component {
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,8 +2,8 @@
// You shouldn't modify it manually.

<% if root { %>
mod component;
pub(crate) use component::{component, Component};
pubmod component;
pub use component::{component, Component};
<% } %>
<% for component in modules.iter() { %>
// <%= component.full_path() %>
Expand Down
4 changes: 3 additions & 1 deletionpgml-dashboard/src/components/component.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ pub struct Component {
pub value: String,
}

#[macro_export]
macro_rules! component {
($name:tt) => {
impl From<$name> for crate::components::Component {
Expand All@@ -36,7 +37,8 @@ macro_rules! component {
};
}

pub(crate) use component;

pub use component;

// Render any string.
impl From<&str> for Component {
Expand Down
4 changes: 2 additions & 2 deletionspgml-dashboard/src/components/mod.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
// This file is automatically generated.
// You shouldn't modify it manually.

mod component;
pub(crate) use component::{component, Component};
pubmod component;
pub use component::{component, Component};

// src/components/breadcrumbs
pub mod breadcrumbs;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp