-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
427 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish Sponsors | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: 30 15 * * 0-6 | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Generate Sponsors 💖 | ||
uses: JamesIves/github-sponsors-readme-action@v1 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
file: 'README.md' | ||
|
||
- name: Deploy to GitHub Pages 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: main | ||
folder: '.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
target | ||
Cargo.lock | ||
Cargo.lock | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,3 @@ | ||
# Components | ||
|
||
Freya comes with a set of ready to use components: | ||
|
||
- [`Button`](https://docs.rs/freya/latest/freya/components/fn.Button.html) | ||
- [`Switch`](https://docs.rs/freya/latest/freya/components/fn.Switch.html) | ||
- [`ScrollView`](https://docs.rs/freya/latest/freya/components/fn.ScrollView.html) | ||
- [`VirtualScrollView`](https://docs.rs/freya/latest/freya/components/fn.VirtualScrollView.html) | ||
- [`Accordion`](https://docs.rs/freya/latest/freya/components/fn.Accordion.html) | ||
- [`Canvas`](https://docs.rs/freya/latest/freya/components/fn.Canvas.html) | ||
- [`CursorArea`](https://docs.rs/freya/latest/freya/components/fn.CursorArea.html) | ||
- [`Drag and Drop`](https://docs.rs/freya/latest/freya/components/fn.DragZone.html) | ||
- [`Dropdown`](https://docs.rs/freya/latest/freya/components/fn.Dropdown.html) | ||
- [`ExternalLink`](https://docs.rs/freya/latest/freya/components/fn.ExternalLink.html) | ||
- [`GestureArea`](https://docs.rs/freya/latest/freya/components/fn.GestureArea.html) | ||
- [`Graph`](https://docs.rs/freya/latest/freya/components/fn.Graph.html) | ||
- [`Input`](https://docs.rs/freya/latest/freya/components/fn.Input.html) | ||
- [`Loader`](https://docs.rs/freya/latest/freya/components/fn.Loader.html) | ||
- [`NetworkImage`](https://docs.rs/freya/latest/freya/components/fn.NetworkImage.html) | ||
- [`Slider`](https://docs.rs/freya/latest/freya/components/fn.Slider.html) | ||
- [`ThemeProvider`](https://docs.rs/freya/latest/freya/components/fn.ThemeProvider.html) | ||
- [`Tooltip`](https://docs.rs/freya/latest/freya/components/fn.Tooltip.html) | ||
Freya comes with a set of ready to use components. View the [API docs](https://docs.rs/freya/latest/freya/components/index.html#functions) for a full list. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# Hot reload | ||
|
||
Freya supports Dioxus hot reload, this means you can update the `layout` and `styling` of your app on the fly, without having to compile any rust code. | ||
Freya supports Dioxus hot reload, which means that you can update the `layout` and `styling` of your app on the fly, without having to recompile your project. | ||
|
||
## Setup | ||
|
||
Just before launching your app, you need to initialize the hot-reload context: | ||
Before launching your app, you need to initialize the hot-reload context: | ||
|
||
```rust, no_run | ||
fn main() { | ||
use freya::prelude::*; | ||
use freya::hot_reload::FreyaCtx; | ||
fn main() { | ||
dioxus_hot_reload::hot_reload_init!(Config::<FreyaCtx>::default()); | ||
launch(app); | ||
} | ||
``` | ||
|
||
That's it! | ||
That's it! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.