From 782b608b98d4f37bda085b8c10021a553f2ad485 Mon Sep 17 00:00:00 2001 From: luoxiao Date: Sun, 5 Nov 2023 16:03:58 +0800 Subject: [PATCH] feat: melt was renamed thaw --- .github/workflows/get-melt-changed.yml | 14 +++---- .github/workflows/gh-pages.yml | 8 ++-- Cargo.toml | 10 ++--- README.md | 4 +- demo/Cargo.toml | 2 +- demo/README.md | 2 +- demo/Trunk.toml | 2 +- demo/index.html | 4 +- demo/src/app.rs | 6 +-- demo/src/components/demo.rs | 4 +- demo/src/components/site_header.rs | 8 ++-- demo/src/pages/alert/mod.rs | 2 +- demo/src/pages/auto_complete/mod.rs | 2 +- demo/src/pages/avatar/mod.rs | 2 +- demo/src/pages/badge/mod.rs | 2 +- demo/src/pages/button/mod.rs | 2 +- demo/src/pages/card/mod.rs | 2 +- demo/src/pages/checkbox/mod.rs | 2 +- demo/src/pages/color_picker/mod.rs | 2 +- demo/src/pages/components.rs | 4 +- demo/src/pages/divider/mod.rs | 2 +- demo/src/pages/grid/mod.rs | 8 ++-- demo/src/pages/home.rs | 6 +-- demo/src/pages/icon/mod.rs | 2 +- demo/src/pages/image/mod.rs | 2 +- demo/src/pages/input/mod.rs | 2 +- demo/src/pages/input_number/mod.rs | 2 +- demo/src/pages/menu/mod.rs | 2 +- demo/src/pages/message/mod.rs | 2 +- demo/src/pages/mobile.rs | 2 +- demo/src/pages/modal/mod.rs | 2 +- demo/src/pages/nav_bar/mod.rs | 4 +- demo/src/pages/radio/mod.rs | 2 +- demo/src/pages/select/mod.rs | 2 +- demo/src/pages/skeleton/mod.rs | 2 +- demo/src/pages/slider/mod.rs | 2 +- demo/src/pages/space/mod.rs | 2 +- demo/src/pages/switch/mod.rs | 2 +- demo/src/pages/tabbar/mod.rs | 4 +- demo/src/pages/table/mod.rs | 2 +- demo/src/pages/tabs/mod.rs | 2 +- demo/src/pages/tag/mod.rs | 2 +- demo/src/pages/toast/mod.rs | 6 +-- demo/src/pages/upload/mod.rs | 2 +- src/alert/alert.css | 14 +++---- src/alert/mod.rs | 14 +++---- src/auto_complete/auto-complete.css | 10 ++--- src/auto_complete/mod.rs | 10 ++--- src/avatar/avatar.css | 14 +++---- src/avatar/mod.rs | 8 ++-- src/badge/badge.css | 12 +++--- src/badge/mod.rs | 12 +++--- src/button/button.css | 52 +++++++++++++------------- src/button/mod.rs | 42 ++++++++++----------- src/card/card.css | 24 ++++++------ src/card/mod.rs | 16 ++++---- src/checkbox/checkbox.css | 18 ++++----- src/checkbox/mod.rs | 12 +++--- src/code/code.css | 2 +- src/code/mod.rs | 2 +- src/color_picker/color-picker.css | 20 +++++----- src/color_picker/mod.rs | 20 +++++----- src/divider/divider.css | 4 +- src/divider/mod.rs | 4 +- src/grid/grid_item.rs | 2 +- src/grid/mod.rs | 2 +- src/input/input.css | 30 +++++++-------- src/input/mod.rs | 20 +++++----- src/layout/layout-sider.css | 2 +- src/layout/layout.css | 4 +- src/layout/layout_header.rs | 2 +- src/layout/layout_sider.rs | 2 +- src/layout/mod.rs | 4 +- src/menu/menu-group.css | 4 +- src/menu/menu-item.css | 14 +++---- src/menu/menu_group.rs | 4 +- src/menu/menu_item.rs | 14 +++---- src/menu/mod.rs | 2 +- src/message/message.css | 12 +++--- src/message/message.rs | 10 ++--- src/message/message_provider.rs | 2 +- src/mobile/nav_bar/mod.rs | 10 ++--- src/mobile/nav_bar/nav-bar.css | 10 ++--- src/mobile/tabbar/mod.rs | 4 +- src/mobile/tabbar/tabbar-item.css | 8 ++-- src/mobile/tabbar/tabbar.css | 4 +- src/mobile/tabbar/tabbar_item.rs | 10 ++--- src/mobile/toast/mod.rs | 2 +- src/mobile/toast/toast.css | 2 +- src/modal/mod.rs | 8 ++-- src/modal/modal.css | 10 ++--- src/progress/mod.rs | 12 +++--- src/progress/progress.css | 12 +++--- src/radio/mod.rs | 12 +++--- src/radio/radio.css | 18 ++++----- src/select/mod.rs | 24 ++++++------ src/select/select.css | 28 +++++++------- src/skeleton/mod.rs | 6 +-- src/skeleton/skeleton.css | 14 +++---- src/slider/mod.rs | 12 +++--- src/slider/slider.css | 12 +++--- src/space/mod.rs | 4 +- src/space/space.css | 4 +- src/switch/mod.rs | 10 ++--- src/switch/switch.css | 12 +++--- src/table/mod.rs | 14 +++---- src/table/table.css | 36 +++++++++--------- src/tabs/mod.rs | 12 +++--- src/tabs/tab.css | 4 +- src/tabs/tab.rs | 2 +- src/tabs/tabs.css | 8 ++-- src/tag/mod.rs | 10 ++--- src/tag/tag.css | 8 ++-- src/upload/mod.rs | 6 +-- src/upload/upload-dragger.css | 12 +++--- src/upload/upload.css | 4 +- src/upload/upload_dragger.rs | 8 ++-- src/utils/mount_style.rs | 4 +- src/utils/signal.rs | 2 +- src/wave/mod.rs | 4 +- src/wave/wave.css | 2 +- 121 files changed, 487 insertions(+), 487 deletions(-) diff --git a/.github/workflows/get-melt-changed.yml b/.github/workflows/get-melt-changed.yml index 6172a5d..9b4bda4 100644 --- a/.github/workflows/get-melt-changed.yml +++ b/.github/workflows/get-melt-changed.yml @@ -1,18 +1,18 @@ -name: Get Melt Changed Call +name: Get Thaw Changed Call on: workflow_call: outputs: - melt_changed: - description: "Melt Changed" - value: ${{ jobs.create.outputs.melt_changed }} + thaw_changed: + description: "Thaw Changed" + value: ${{ jobs.create.outputs.thaw_changed }} jobs: create: name: Detect Source Change runs-on: ubuntu-latest outputs: - melt_changed: ${{ steps.set-source-changed.outputs.melt_changed }} + thaw_changed: ${{ steps.set-source-changed.outputs.thaw_changed }} steps: - name: Checkout uses: actions/checkout@v4 @@ -29,7 +29,7 @@ jobs: - name: List source files that changed run: echo '${{ steps.changed-source.outputs.all_changed_files }}' - - name: Set melt_changed + - name: Set thaw_changed id: set-source-changed run: | - echo "melt_changed=${{ steps.changed-source.outputs.any_changed }}" >> "$GITHUB_OUTPUT" + echo "thaw_changed=${{ steps.changed-source.outputs.any_changed }}" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index fa4e494..2193171 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -5,12 +5,12 @@ on: - cron: "0 23 * * *" jobs: - get-melt-changed: - uses: ./.github/workflows/get-melt-changed.yml + get-thaw-changed: + uses: ./.github/workflows/get-thaw-changed.yml deploy: runs-on: ubuntu-latest - needs: [get-melt-changed] - if: needs.get-melt-changed.outputs.melt_changed == 'true' + needs: [get-thaw-changed] + if: needs.get-thaw-changed.outputs.thaw_changed == 'true' permissions: contents: write # To push a branch pull-requests: write # To create a PR from that branch diff --git a/Cargo.toml b/Cargo.toml index a5c9567..8cd0181 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] -name = "melt-ui" +name = "thaw" version = "0.0.5" edition = "2021" -keywords = ["web", "leptos", "ui", "melt-ui"] +keywords = ["web", "leptos", "ui", "thaw"] -authors = ["luoxiaozero "] +authors = ["luoxiaozero"] description = "An easy to use leptos component library" -homepage = "https://github.com/luoxiaozero/melt-ui" -repository = "https://github.com/luoxiaozero/melt-ui" +homepage = "https://github.com/thaw-ui/thaw" +repository = "https://github.com/thaw-ui/thaw" license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index deafbae..bae2a41 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

- Melt Logo + Thaw Logo

-

Melt UI

+

Thaw UI

An easy to use leptos component library

**The 0.0.x release does not consider API compatibility at this time** diff --git a/demo/Cargo.toml b/demo/Cargo.toml index eba34a1..26db529 100644 --- a/demo/Cargo.toml +++ b/demo/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] leptos = { version = "0.5.1", features = ["csr"] } -melt-ui = { path = "../" } +thaw = { path = "../" } icondata = { version = "0.1.0", features = [ "AiCloseOutlined", "AiCheckOutlined", diff --git a/demo/README.md b/demo/README.md index 51063f2..6bb9cd2 100644 --- a/demo/README.md +++ b/demo/README.md @@ -1,3 +1,3 @@ ## Used -Run the `trunk serve` command and then open the `http://127.0.0.1:6421/melt-ui` URL +Run the `trunk serve` command and then open the `http://127.0.0.1:6421/thaw` URL diff --git a/demo/Trunk.toml b/demo/Trunk.toml index d9e0ddb..9ccd33e 100644 --- a/demo/Trunk.toml +++ b/demo/Trunk.toml @@ -1,6 +1,6 @@ [build] target = "index.html" -public_url = "/melt-ui/" +public_url = "/thaw/" # release = true [watch] diff --git a/demo/index.html b/demo/index.html index 631cb5d..af64a68 100644 --- a/demo/index.html +++ b/demo/index.html @@ -4,10 +4,10 @@ - Melt UI + Thaw UI diff --git a/demo/src/app.rs b/demo/src/app.rs index 33aef7e..937521d 100644 --- a/demo/src/app.rs +++ b/demo/src/app.rs @@ -1,7 +1,7 @@ use crate::pages::*; use leptos::*; use leptos_router::*; -use melt_ui::*; +use thaw::*; #[component] pub fn App() -> impl IntoView { @@ -24,8 +24,8 @@ pub fn App() -> impl IntoView { provide_context(theme); view! { - - + + diff --git a/demo/src/components/demo.rs b/demo/src/components/demo.rs index 88fd860..796a1a9 100644 --- a/demo/src/components/demo.rs +++ b/demo/src/components/demo.rs @@ -1,5 +1,5 @@ use leptos::*; -use melt_ui::*; +use thaw::*; #[slot] pub struct DemoCode { @@ -13,7 +13,7 @@ pub fn Demo(demo_code: DemoCode, children: Children) -> impl IntoView { mount_style("demo", prisms::prism_css!()); let theme = use_theme(Theme::light); let style = create_memo(move |_| { - let mut style = String::from("background-image: url(/melt-ui/grid_dot.svg); background-repeat: repeat; background-size: 1.5rem; margin-top: 1rem; padding: 1rem; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem;"); + let mut style = String::from("background-image: url(/thaw/grid_dot.svg); background-repeat: repeat; background-size: 1.5rem; margin-top: 1rem; padding: 1rem; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem;"); theme.with(|theme| { if theme.common.color_scheme == "dark" { style.push_str("border: 1px solid #383f52;"); diff --git a/demo/src/components/site_header.rs b/demo/src/components/site_header.rs index 2a7dada..7fbfa76 100644 --- a/demo/src/components/site_header.rs +++ b/demo/src/components/site_header.rs @@ -1,6 +1,6 @@ use leptos::*; use leptos_router::use_navigate; -use melt_ui::*; +use thaw::*; #[component] pub fn SiteHeader() -> impl IntoView { @@ -29,7 +29,7 @@ pub fn SiteHeader() -> impl IntoView { view! { - +
impl IntoView { } > - "Melt UI" + "Thaw UI"
@@ -51,7 +51,7 @@ pub fn SiteHeader() -> impl IntoView {