From 36f67bd5e2cb63013460f03c84455f6994d2ab20 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Wed, 27 Mar 2024 20:42:07 -0500 Subject: [PATCH] update 0.4 doc links to 0.5 --- README.md | 21 ++++++++++++--------- examples/mobile_demo/README.md | 2 +- packages/check/src/issues.rs | 6 +++--- packages/core-macro/src/props/mod.rs | 2 +- packages/desktop/Cargo.toml | 2 +- packages/desktop/README.md | 2 +- packages/desktop/src/readme.md | 2 +- packages/dioxus-lib/Cargo.toml | 2 +- packages/dioxus/Cargo.toml | 2 +- packages/extension/README.md | 2 +- packages/fullstack/README.md | 2 +- packages/liveview/Cargo.toml | 2 +- packages/mobile/Cargo.toml | 2 +- packages/mobile/README.md | 4 ++-- packages/server-macro/Cargo.toml | 2 +- packages/web/Cargo.toml | 2 +- translations/ja-jp/README.md | 2 +- translations/tr-tr/README.md | 22 +++++++++++----------- translations/zh-cn/README.md | 22 ++++++++++++---------- 19 files changed, 54 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 20cdfce12..d19a9dcee 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ | Examples | - Guide + Guide | 中文 | @@ -73,8 +73,8 @@ fn app() -> Element { } ``` - ## ⭐️ Unique features: + - Cross-platform apps in three lines of code (web, desktop, mobile, server, and more) - [Ergonomic state management](https://dioxuslabs.com/blog/release-050) combines the best of React, Solid, and Svelte - Extremely performant, powered by Rust's fastest wasm-framework [sledgehammer](https://dioxuslabs.com/blog/templates-diffing) @@ -82,6 +82,7 @@ fn app() -> Element { - And more! Read the [take a tour of Dioxus](https://dioxuslabs.com/learn/0.5/). ## Instant hot-reloading + With one command, `dx serve` and your app is running. Edit your markup and styles and see the results in real time. Rust code hotreloading is not yet 1st class, but possible with [hot-lib-reloader](https://docs.rs/hot-lib-reloader/latest/hot_lib_reloader/).
@@ -96,7 +97,6 @@ Simply run `dx bundle` and your app will be built and bundled with maximization
- ## Fantastic documentation We've put a ton of effort into building clean, readable, and comprehensive documentation. All html elements and listeners are documented with MDN docs, and our docsite runs continuous integration with Dioxus itself to ensure that the docs are always up to date. Check out the [Dioxus website](https://dioxuslabs.com/learn/0.5/) for guides, references, recipes, and more. Fun fact: we use the Dioxus website as a testbed for new diouxs features - [check it out!](https://github.com/dioxusLabs/docsite) @@ -121,12 +121,12 @@ Dioxus is a community-driven project, with a very active [Discord](https://disco - ## Full-time core team Dioxus has grown from a side project to a small team of fulltime engineers. Thanks to the generous support of FutureWei, Satellite.im, the GitHub Accelerator program, we're able to work on Dioxus full-time. Our long term goal is for Dioxus to become self-sustaining by providing paid high-quality enterprise tools. If your company is interested in adopting Dioxus and would like to work with us, please reach out! ## Supported Platforms +
@@ -225,7 +225,7 @@ The examples in the top level of this repository can be run with `cargo run --ex ## Dioxus vs other frameworks -We love all frameworks and enjoy watching innovation in the Rust ecosystem. In fact, many of our projects are shared with other frameworks. For example, our flex-box library [Taffy](https://github.com/DioxusLabs/taffy) is used by [Bevy](https://bevyengine.org/), [Zed](https://zed.dev/), [Lapce](https://lapce.dev/), [Iced](https://github.com/iced-rs/iced), and many more. +We love all frameworks and enjoy watching innovation in the Rust ecosystem. In fact, many of our projects are shared with other frameworks. For example, our flex-box library [Taffy](https://github.com/DioxusLabs/taffy) is used by [Bevy](https://bevyengine.org/), [Zed](https://zed.dev/), [Lapce](https://lapce.dev/), [Iced](https://github.com/iced-rs/iced), and many more. Dioxus places an emphasis on a few key points that make it different from other frameworks: @@ -234,7 +234,6 @@ Dioxus places an emphasis on a few key points that make it different from other - **Renderer-agnostic**: you can swap out the renderer for any platform you want thanks to [our fast VirtualDOM](https://dioxuslabs.com/blog/templates-diffing). - **Collaborative**: whenever possible, we spin out crates like [Taffy](https://github.com/DioxusLabs/taffy), [magnanis](https://github.com/DioxusLabs/collect-assets), [include_mdbook](https://github.com/DioxusLabs/include_mdbook), and [blitz](http://github.com/dioxusLabs/blitz) so the ecosystem can grow together. - ### Dioxus vs Tauri Tauri is a framework for building desktop (and soon, mobile) apps where your frontend is written in a web-based framework like React, Vue, Svelte, etc. Whenever you need to do native work, you can write Rust functions and call them from your frontend. @@ -252,6 +251,7 @@ Leptos is a library for building fullstack web-apps, similar to SolidJS and Soli - **Reactivity model**: Leptos uses signals for its underlying reactivity, while Dioxus opts for a VirtualDom and re-renders. While in theory signals are more efficient, in practice, Dioxus' VirtualDom performs little-to-no actual diffing (thanks to our [block-dom inspired templates](https://dioxuslabs.com/blog/templates-diffing)) and is [actually faster than Leptos](https://krausest.github.io/js-framework-benchmark/2024/table_chrome_123.0.6312.59.html). - **Control flow**: Because Leptos uses signals for reactivity, you are constrained to Leptos' primitives for things like `for` loops and `if` statements. If you get this wrong, your app will lose reactivity, leading to hard to debug UI issues. With Dioxus, you can use iterators, regular Rust `for` loops and `if` statements, and your app will still be reactive. In practice, a Dioxus component to insert counters into a list might look like this: + ```rust fn Counters() -> Element { let mut counters = use_signal(|| vec![0; initial_length]); @@ -269,7 +269,9 @@ fn Counters() -> Element { } } ``` + [While in Leptos, you would need to track keys, use the `` component, create new signals, and manually clean up memory](https://book.leptos.dev/view/04_iteration.html#dynamic-rendering-with-the-for-component): + ```rust fn Counters() -> Element { let initial_counters = (0..initial_length) @@ -331,6 +333,7 @@ fn Counters() -> Element { - **Different scopes**: Dioxus provides renderers for web, desktop, mobile, LiveView, and more. We also maintain community libraries and a cross-platform SDK. The scope of this work is huge, meaning we've historically released at a slower cadence than Leptos. Leptos focuses on the fullstack web, with features that Dioxus doesn't have like ``-based streaming HTML, islands, `
` components, and other web-specific features. Generally, web apps you build with Leptos will have a smaller footprint. - **Different DSLs**: While both frameworks target the web, Dioxus uses its own custom Rust-like DSL for building UIs while Leptos uses a more HTML-like syntax. We chose this to retain compatibility with IDE features like codefolding and syntax highlighting. Generally, Dioxus leans into more "magic" with its DSL. For example, dioxus will automatically format strings for you while Leptos requires you to use closures and `format!` or `format_args!`. + ```rust // dioxus rsx! { @@ -384,18 +387,18 @@ Dioxus and Electron are two entirely different projects with similar goals. Elec - **Maturity**: Electron is a mature project with a large community and a lot of tooling. Dioxus is still quite young in comparison to Electron. Expect to run into features like deeplinking that require extra work to implement. - ## Contributing -- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.4/contributing). + +- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.5/contributing). - Report issues on our [issue tracker](https://github.com/dioxuslabs/dioxus/issues). - [Join](https://discord.gg/XgGxMSkvUM) the discord and ask questions! - ## License + This project is licensed under the [MIT license]. [mit license]: https://github.com/DioxusLabs/dioxus/blob/master/LICENSE-MIT diff --git a/examples/mobile_demo/README.md b/examples/mobile_demo/README.md index bf0ec5166..4d5ea46ed 100644 --- a/examples/mobile_demo/README.md +++ b/examples/mobile_demo/README.md @@ -7,5 +7,5 @@ Right now, Dioxus supports mobile targets including iOS and Android. However, ou This project was generated using [cargo-mobile2](https://github.com/tauri-apps/cargo-mobile2). We have yet to integrate this generation into the Dioxus-CLI. The open issue for this is [#1157](https://github.com/DioxusLabs/dioxus/issues/1157). ## Running this project -Because the tooling and ecosystem is still young, Dioxus mobile can be difficult to setup and run. We have [detailed guides](https://dioxuslabs.com/learn/0.5/getting_started/mobile) for creating, building, and running on both iOS and Android. +Because the tooling and ecosystem is still young, Dioxus mobile can be difficult to setup and run. We have [detailed guides](https://dioxuslabs.com/learn/0.5/getting_started) for creating, building, and running on both iOS and Android. diff --git a/packages/check/src/issues.rs b/packages/check/src/issues.rs index 81ffc0870..eec3b750a 100644 --- a/packages/check/src/issues.rs +++ b/packages/check/src/issues.rs @@ -159,11 +159,11 @@ impl Display for IssueReport { #[allow(clippy::enum_variant_names)] // we'll add non-hook ones in the future /// Issues that might be found via static analysis of a Dioxus file. pub enum Issue { - /// https://dioxuslabs.com/learn/0.4/reference/hooks#no-hooks-in-conditionals + /// https://dioxuslabs.com/learn/0.5/reference/hooks#no-hooks-in-conditionals HookInsideConditional(HookInfo, ConditionalInfo), - /// https://dioxuslabs.com/learn/0.4/reference/hooks#no-hooks-in-loops + /// https://dioxuslabs.com/learn/0.5/reference/hooks#no-hooks-in-loops HookInsideLoop(HookInfo, AnyLoopInfo), - /// https://dioxuslabs.com/learn/0.4/reference/hooks#no-hooks-in-closures + /// https://dioxuslabs.com/learn/0.5/reference/hooks#no-hooks-in-closures HookInsideClosure(HookInfo, ClosureInfo), HookOutsideComponent(HookInfo), } diff --git a/packages/core-macro/src/props/mod.rs b/packages/core-macro/src/props/mod.rs index f0f8b7c8d..948bec5d3 100644 --- a/packages/core-macro/src/props/mod.rs +++ b/packages/core-macro/src/props/mod.rs @@ -1009,7 +1009,7 @@ Finally, call `.build()` to create the instance of `{name}`. name: field_name, .. } = field; if *field_name == "key" { - return Err(Error::new_spanned(field_name, "Naming a prop `key` is not allowed because the name can conflict with the built in key attribute. See https://dioxuslabs.com/learn/0.4/reference/dynamic_rendering#rendering-lists for more information about keys")); + return Err(Error::new_spanned(field_name, "Naming a prop `key` is not allowed because the name can conflict with the built in key attribute. See https://dioxuslabs.com/learn/0.5/reference/dynamic_rendering#rendering-lists for more information about keys")); } let StructInfo { ref builder_name, .. diff --git a/packages/desktop/Cargo.toml b/packages/desktop/Cargo.toml index c9fd2323d..22632a8ae 100644 --- a/packages/desktop/Cargo.toml +++ b/packages/desktop/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" description = "WebView renderer for Dioxus" license = "MIT OR Apache-2.0" repository = "https://github.com/DioxusLabs/dioxus/" -homepage = "https://dioxuslabs.com/learn/0.4/getting_started/desktop" +homepage = "https://dioxuslabs.com/learn/0.5/getting_started" keywords = ["dom", "ui", "gui", "react"] [dependencies] diff --git a/packages/desktop/README.md b/packages/desktop/README.md index d9aca2a49..e2827bcd1 100644 --- a/packages/desktop/README.md +++ b/packages/desktop/README.md @@ -25,7 +25,7 @@ This requires that webview is installed on the target system. WebView is installed by default on macOS and iOS devices, but might not come preinstalled on Windows or Linux devices. To fix these issues, follow the [instructions in the guide](guide-url). -[guide-url]: https://dioxuslabs.com/learn/0.5/getting_started/desktop +[guide-url]: https://dioxuslabs.com/learn/0.5/getting_started ## Features diff --git a/packages/desktop/src/readme.md b/packages/desktop/src/readme.md index f42276d38..1764d279a 100644 --- a/packages/desktop/src/readme.md +++ b/packages/desktop/src/readme.md @@ -47,4 +47,4 @@ To configure the webview, menubar, and other important desktop-specific features ## Future Steps -Make sure to read the [Dioxus Guide](https://dioxuslabs.com/learn/0.4/) if you already haven't! +Make sure to read the [Dioxus Guide](https://dioxuslabs.com/learn/0.5/) if you already haven't! diff --git a/packages/dioxus-lib/Cargo.toml b/packages/dioxus-lib/Cargo.toml index 6dcd58554..bf1b84757 100644 --- a/packages/dioxus-lib/Cargo.toml +++ b/packages/dioxus-lib/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" description = "Portable, performant, and ergonomic framework for building cross-platform user interfaces in Rust" license = "MIT OR Apache-2.0" repository = "https://github.com/DioxusLabs/dioxus/" -homepage = "https://dioxuslabs.com/learn/0.4/" +homepage = "https://dioxuslabs.com/learn/0.5/" keywords = ["dom", "ui", "gui", "react", "wasm"] rust-version = "1.65.0" diff --git a/packages/dioxus/Cargo.toml b/packages/dioxus/Cargo.toml index 2e8c665ef..bc06cb07c 100644 --- a/packages/dioxus/Cargo.toml +++ b/packages/dioxus/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" description = "Portable, performant, and ergonomic framework for building cross-platform user interfaces in Rust" license = "MIT OR Apache-2.0" repository = "https://github.com/DioxusLabs/dioxus/" -homepage = "https://dioxuslabs.com/learn/0.4/" +homepage = "https://dioxuslabs.com/learn/0.5/" keywords = ["dom", "ui", "gui", "react", "wasm"] rust-version = "1.65.0" diff --git a/packages/extension/README.md b/packages/extension/README.md index 4dc708c4c..c53fd88b1 100644 --- a/packages/extension/README.md +++ b/packages/extension/README.md @@ -32,7 +32,7 @@ This overview provides a brief introduction to Dioxus. For a more in-depth guide - [Book (0.5)](https://dioxuslabs.com/learn/0.5) ## Contributing -- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.4/contributing). +- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.5/contributing). - Report issues on our [issue tracker](https://github.com/dioxuslabs/dioxus/issues). - [Join](https://discord.gg/XgGxMSkvUM) the discord and ask questions! diff --git a/packages/fullstack/README.md b/packages/fullstack/README.md index 65f2732d1..3a547839e 100644 --- a/packages/fullstack/README.md +++ b/packages/fullstack/README.md @@ -65,7 +65,7 @@ async fn get_meaning(of: String) -> Result, ServerFnError> { ## Getting Started -To get started with full stack Dioxus, check out our [getting started guide](https://dioxuslabs.com/learn/0.5/getting_started/fullstack), or the [full stack examples](https://github.com/DioxusLabs/dioxus/tree/master/packages/fullstack/examples). +To get started with full stack Dioxus, check out our [getting started guide](https://dioxuslabs.com/learn/0.5/getting_started), or the [full stack examples](https://github.com/DioxusLabs/dioxus/tree/master/packages/fullstack/examples). ## Contributing diff --git a/packages/liveview/Cargo.toml b/packages/liveview/Cargo.toml index 714f05aed..8f2712898 100644 --- a/packages/liveview/Cargo.toml +++ b/packages/liveview/Cargo.toml @@ -3,7 +3,7 @@ name = "dioxus-liveview" version = { workspace = true } edition = "2021" repository = "https://github.com/DioxusLabs/dioxus/" -homepage = "https://dioxuslabs.com/learn/0.4/getting_started/liveview" +homepage = "https://dioxuslabs.com/learn/0.5/getting_started" keywords = ["dom", "ui", "gui", "react", "liveview"] description = "Build server-side apps with Dioxus" authors = ["Jonathan Kelley", "Evan Almloff"] diff --git a/packages/mobile/Cargo.toml b/packages/mobile/Cargo.toml index eeb44d4d0..ff8ee6712 100644 --- a/packages/mobile/Cargo.toml +++ b/packages/mobile/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Jonathan Kelley"] edition = "2021" description = "Mobile-compatible renderer for Dioxus" repository = "https://github.com/DioxusLabs/dioxus/" -homepage = "https://dioxuslabs.com/learn/0.4/getting_started/mobile" +homepage = "https://dioxuslabs.com/learn/0.5/getting_started" keywords = ["dom", "ui", "gui", "react"] license = "MIT OR Apache-2.0" diff --git a/packages/mobile/README.md b/packages/mobile/README.md index c927024c3..f694925fe 100644 --- a/packages/mobile/README.md +++ b/packages/mobile/README.md @@ -15,7 +15,7 @@ [discord-url]: https://discord.gg/XgGxMSkvUM [Website](https://dioxuslabs.com) | -[Guides](https://dioxuslabs.com/learn/0.4/) | +[Guides](https://dioxuslabs.com/learn/0.5/) | [API Docs](https://docs.rs/dioxus-mobile/latest/dioxus_mobile) | [Chat](https://discord.gg/XgGxMSkvUM) @@ -29,7 +29,7 @@ Dioxus Mobile supports both iOS and Android. However, Android support is still q Getting set up with mobile can but quite challenging. The tooling here isn't great (yet) and might take some hacking around to get things working. macOS M1 is broadly unexplored and might not work for you. -You can read [our guide](https://dioxuslabs.com/learn/0.5/getting_started/mobile) on mobile development with Dioxus to get started. +You can read [our guide](https://dioxuslabs.com/learn/0.5/getting_started) on mobile development with Dioxus to get started. ## Contributing diff --git a/packages/server-macro/Cargo.toml b/packages/server-macro/Cargo.toml index 5fbab807b..a79b86b65 100644 --- a/packages/server-macro/Cargo.toml +++ b/packages/server-macro/Cargo.toml @@ -3,7 +3,7 @@ name = "dioxus_server_macro" version = { workspace = true } edition = "2021" repository = "https://github.com/DioxusLabs/dioxus/" -homepage = "https://dioxuslabs.com/docs/0.4/guide/en/getting_started/fullstack.html" +homepage = "https://dioxuslabs.com/docs/0.5/guide/en/getting_started/fullstack.html" keywords = ["dom", "ui", "gui", "react", "liveview"] authors = ["Jonathan Kelley", "Evan Almloff"] license = "MIT OR Apache-2.0" diff --git a/packages/web/Cargo.toml b/packages/web/Cargo.toml index 5ab3b86a8..56a419d17 100644 --- a/packages/web/Cargo.toml +++ b/packages/web/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" description = "Web renderer for Dioxus using websys" license = "MIT OR Apache-2.0" repository = "https://github.com/DioxusLabs/dioxus/" -homepage = "https://dioxuslabs.com/learn/0.4/getting_started/wasm" +homepage = "https://dioxuslabs.com/learn/0.5/getting_started" keywords = ["dom", "ui", "gui", "react", "wasm"] [dependencies] diff --git a/translations/ja-jp/README.md b/translations/ja-jp/README.md index aa878dede..7482dd60d 100644 --- a/translations/ja-jp/README.md +++ b/translations/ja-jp/README.md @@ -40,7 +40,7 @@ | 例 | - ガイド + ガイド | 中文 | diff --git a/translations/tr-tr/README.md b/translations/tr-tr/README.md index 0adfea3ed..0a0cafdc6 100644 --- a/translations/tr-tr/README.md +++ b/translations/tr-tr/README.md @@ -40,7 +40,7 @@ | Examples | - Guide + Guide | 中文 | @@ -54,11 +54,7 @@
-> [!WARNING] -> Dioxus 0.5 (şuan 'master' reposunda) uyumluluk kıran değişiklilere sahip ve Dioxus 0.4 ile uyumlu değil. - - ->Çevirmen Notu (Translator Note): Teknik terimleri orijinal haliyle kullanıp, olabildiğince açıklamaya çalıştım ki hem tecrübeli hem de yeni başlayan arkadaşlar için daha kolay olsun diye. Hatalar varsa affola. +> Çevirmen Notu (Translator Note): Teknik terimleri orijinal haliyle kullanıp, olabildiğince açıklamaya çalıştım ki hem tecrübeli hem de yeni başlayan arkadaşlar için daha kolay olsun diye. Hatalar varsa affola. Dioxus, Rust ile geliştirebileceğiniz, uyumlu, performanslı ve ergonomik bir frameworktür (geliştirme yapıları). @@ -79,15 +75,17 @@ Dioxus web, masaüstü, statik site, mobil uygulama, TUI(Termial User Interface( Eğer React biliyorsanız, Dioxus'u zaten biliyorsunuzdur. ## Nevi Şahsına Münhasır Özellikler: + - Masaüstü uygulamaları 10 satır koddan daha az yazılarak doğrudan çalıştırılabilir (Electron kullanmadan). - İnanılmaz derecede ergonomic ve güçlü durum yönetimine sahiptir. -- Kod dahilinde kapsayıcı döküman - fareyi üzerine getirdiğinizde bütün HTML elementleri, listeners (takipçileri) ve events (olayları) için bilgi edinebilirsiniz. +- Kod dahilinde kapsayıcı döküman - fareyi üzerine getirdiğinizde bütün HTML elementleri, listeners (takipçileri) ve events (olayları) için bilgi edinebilirsiniz. - Çok hızlı 🔥🔥 ve epey hafıza verimlidir. - Hot-Reload (Derlemek zorunda olmadan değişikleri görme) sayesinde daha hızlı geliştirme imkanı sağlar. - Coroutine(Eş zamanlı gibi hissettiren ama aslında sırayla yapılan işlemler) ve suspense(Yükleme bitene kadar halihazırda var olanı gösteren yapı) ile birinci sınıf asenkron desteği sunar. - Daha fazlası için göz at: [Tam Sürüm Notu](https://dioxuslabs.com/blog/introducing-dioxus/). ## Desteklenen Platformlar +
@@ -146,6 +144,7 @@ Eğer React biliyorsanız, Dioxus'u zaten biliyorsunuzdur. ## Neden Dioxus? + Uygulama geliştirmek için birsürü seçenek var, neden Dioxusu seçesin ? Baktığımızda öncelikli olarak Dioxus geliştirici deneyimini önceliğinde tutar. Bu durum Dioxus üzerinde eşsiz birçok özellikte görülür: @@ -161,24 +160,25 @@ Dioxus ayrıca eklentilere müsait bir platform. - Komponentleri ve hatta özel elementleri geliştirip paylaşabilirsiniz. Yani... Dioxus güzel de, benim neden işime yaramıyor ? + - Gelişimi halen devam etmekte, APIlar değişim göstermekte, bir şeyler bozulabilir.(Bunu yapmamaya çalışsak bile) - No-std(standart kütüphanesiz) bir ortamda çalıştırmanız gerekiyor. - React tarzı hook modeli(diğer yapılara ve özelliklere erişmenizi sağlayan) ile arayüz geliştirmeyi sevmiyor olabilirsiniz. - ## Katkı (Contributing) -- Websitemizi ziyaret edebilirsiniz. [Katkı kısmı](https://dioxuslabs.com/learn/0.4/contributing). + +- Websitemizi ziyaret edebilirsiniz. [Katkı kısmı](https://dioxuslabs.com/learn/0.5/contributing). - Sorunlarınızı raporlayabilirsiniz. [Sorun takipçisi](https://github.com/dioxuslabs/dioxus/issues). - [Katıl](https://discord.gg/XgGxMSkvUM) Discord'a ve sorularını sor! - ## Lisans + Bu proje [MIT license] ile lisanslanmıştır. [mit license]: https://github.com/DioxusLabs/dioxus/blob/master/LICENSE-MIT -Aksi açıkça belirtilmedikçe, yapılan ve Dioxus'a dahil edilen her türlü katkı (contribution) belirtilmesizin MIT lisansı ile lisanslanacaktır. \ No newline at end of file +Aksi açıkça belirtilmedikçe, yapılan ve Dioxus'a dahil edilen her türlü katkı (contribution) belirtilmesizin MIT lisansı ile lisanslanacaktır. diff --git a/translations/zh-cn/README.md b/translations/zh-cn/README.md index 261c8c0c1..274d2bfb2 100644 --- a/translations/zh-cn/README.md +++ b/translations/zh-cn/README.md @@ -40,7 +40,7 @@ | 代码示例 | - 开发指南 + 开发指南 | English | @@ -66,20 +66,22 @@ fn app() -> Element { } ``` -Dioxus 可用于生成 网页前端、桌面应用、静态网站、移动端应用、TUI程序、 liveview程序等多类平台应用,Dioxus完全与渲染器无关,可以作用于任何渲染平台。 +Dioxus 可用于生成 网页前端、桌面应用、静态网站、移动端应用、TUI 程序、 liveview 程序等多类平台应用,Dioxus 完全与渲染器无关,可以作用于任何渲染平台。 如果你能够熟悉使用 React 框架,那 Dioxus 对你来说将非常简单。 ## 独特的特性: -- 只需不到10行代码就能原生运行桌面程序(并非 Electron 的封装) + +- 只需不到 10 行代码就能原生运行桌面程序(并非 Electron 的封装) - 符合人体工程学的设计以及拥有强大的状态管理 - 全面的内联文档 - 包含所有 HTML 元素、监听器 和 事件 指南。 -- 极快的运行效率🔥🔥和极高的内存效率 +- 极快的运行效率 🔥🔥 和极高的内存效率 - 智能项目热重载以便快速迭代 -- 使用协程和Suspense来进行一流的异步支持 +- 使用协程和 Suspense 来进行一流的异步支持 - 更多内容请查看 [版本发布信息](https://dioxuslabs.com/blog/introducing-dioxus/). ## 已支持的平台 +
@@ -137,11 +139,11 @@ Dioxus 可用于生成 网页前端、桌面应用、静态网站、移动端应
-## 为什么选择Dioxus? +## 为什么选择 Dioxus? 目前有非常多的应用开发选择,为什么偏偏要选择 Dioxus 呢? -首先,Dioxus将开发者的体验放在首位。这体现在 Dioxus 特有的各种功能上。 +首先,Dioxus 将开发者的体验放在首位。这体现在 Dioxus 特有的各种功能上。 - 自动格式化 RSX 格式代码,并拥有 VSCode 插件作为支持。 - 热加载基于 RSX 代码解析器,同时支持桌面程序和网页程序。 @@ -153,16 +155,16 @@ Dioxus 也是一个可扩展化的平台。 - 构建并分享开发者自定义的组件代码。 Dioxus 那么优秀,但什么时候它不适合我呢? -- 它还没有完全成熟。api仍在变化,可能会出现故障(尽管我们试图避免) + +- 它还没有完全成熟。api 仍在变化,可能会出现故障(尽管我们试图避免) - 您需要运行在 no-std 的环境之中。 - 你不喜欢使用 React-like 的方式构建 UI 项目。 - ## 贡献代码 + - 在我们的 [问题追踪](https://github.com/dioxuslabs/dioxus/issues) 中汇报你遇到的问题。 - [加入](https://discord.gg/XgGxMSkvUM)我们的 Discord 与我们交流。 -