Skip to content

Commit

Permalink
Move weather demo to demos/ sub-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Oct 26, 2024
1 parent 58efd53 commit e01a121
Show file tree
Hide file tree
Showing 54 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ jobs:
rm -rf $output_path/demos
mkdir -p $output_path/demos
for demo_subdir in examples,gallery, demos,printerdemo,rust examples,todo,rust examples,todo-mvc,rust examples,slide_puzzle, examples,memory, examples,imagefilter,rust examples,plotter, examples,opengl_underlay, examples,carousel,rust demos,energy-monitor, examples,weather-demo, demos,home-automation,rust; do
for demo_subdir in examples,gallery, demos,printerdemo,rust examples,todo,rust examples,todo-mvc,rust examples,slide_puzzle, examples,memory, examples,imagefilter,rust examples,plotter, examples,opengl_underlay, examples,carousel,rust demos,energy-monitor, demos,weather-demo, demos,home-automation,rust; do
IFS=',' read example_or_demo demo subdir <<< "${demo_subdir}"
mkdir -p $output_path/demos/$demo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wasm_demos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: |
sed -i "s/#wasm# //" Cargo.toml
wasm-pack build --release --target web --no-default-features --features slint/default,chrono
working-directory: examples/weather-demo
working-directory: demos/weather-demo
- name: "Upload Demo Artifacts"
if: ${{ inputs.build_artifacts }}
uses: actions/upload-artifact@v4
Expand All @@ -81,7 +81,7 @@ jobs:
examples/opengl_underlay/
demos/energy-monitor/
demos/home-automation/rust
examples/weather-demo/
demos/weather-demo/
!/**/.gitignore
- name: Clean cache # Otherwise the cache is much too big
run: |
Expand Down
12 changes: 6 additions & 6 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -147,26 +147,26 @@ Files: examples/fancy-switches/images/*.png examples/fancy-switches/images/*.svg
Copyright: Copyright © SixtyFPS GmbH <[email protected]>
License: MIT

Files: examples/weather-demo/index.html
Files: demos/weather-demo/index.html
Copyright: Copyright © SixtyFPS GmbH <[email protected]>
License: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0

Files: examples/weather-demo/docs/*.png
Files: demos/weather-demo/docs/*.png
Copyright: Copyright © SixtyFPS GmbH <[email protected]>
License: MIT

Files: examples/weather-demo/ui/assets/icons/*.svg
Files: demos/weather-demo/ui/assets/icons/*.svg
Copyright: Fontawesome project <https://fontawesome.com/license/free>
License: CC-BY-4.0

Files: examples/weather-demo/ui/assets/weathericons-font.ttf
Files: demos/weather-demo/ui/assets/weathericons-font.ttf
Copyright: Weather Icons <http://erikflowers.github.io/weather-icons/>
License: OFL-1.1

Files: examples/weather-demo/android-res/*/ic_launcher.png
Files: demos/weather-demo/android-res/*/ic_launcher.png
Copyright: Copyright © Felgo GmbH <[email protected]>
License: CC-BY-ND-4.0

Files: examples/weather-demo/ui/assets/felgo-logo.svg
Files: demos/weather-demo/ui/assets/felgo-logo.svg
Copyright: Copyright © Felgo GmbH <[email protected]>
License: CC-BY-ND-4.0
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ members = [
'demos/home-automation/rust',
'examples/mcu-board-support',
'examples/uefi-demo',
'examples/weather-demo',
'demos/weather-demo',
'helper_crates/const-field-offset',
'helper_crates/vtable',
'helper_crates/vtable/macro',
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,6 @@ You can of course also contact us privately via email to [[email protected]](mailto
[#25]: https://www.npmjs.com/package/slint-ui
[#26]: https://slint.dev/latest/docs/node
[#28]: https://github.com/slint-ui/slint-nodejs-template
[#29]: ./examples/weather-demo/docs/img/desktop-preview.png "Weather Demo"
[#29]: ./demos/weather-demo/docs/img/desktop-preview.png "Weather Demo"
[#30]: https://slint.dev/demos/weather-demo/

1 change: 1 addition & 0 deletions demos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ These demos showcase different complex use-cases for building UIs with Slint.
| --- | --- | --- |
| [Printer UI ![Printer Demo image](https://github.com/user-attachments/assets/7e7400ad-283a-4404-b04a-8620ba4df452)](./printerdemo) | A fictional user interface for the touch screen of a printer. <br/> [Project...](./printerdemo) | [Wasm Demo](https://slint.dev/snapshots/master/demos/printerdemo/) |
| [Energy Meter![Energy meter demo image](https://github.com/user-attachments/assets/abfe03e3-ded6-4ddc-82b7-8303ee45515c "Energy meter demo image")](./energy-monitor/) | A fictional user interface of a device that monitors energy consumption in a building. <br/> [Project...](./energy-monitor) | [Wasm Demo](https://slint.dev/snapshots/master/demos/energy-monitor/) |
| [Weather![Weather demo image](./weather-demo/docs/img/desktop-preview.png "7 GUI's demo image")](./weather-demo/) | A simple, cross-platform (Desktop, Android, Wasm) weather application using real weather data from the [OpenWeather](https://openweathermap.org/) API. <br/> [Project...](./weather-demo/) | [Wasm Demo](https://slint.dev/snapshots/master/demos/weather-demo/) |

---
### Running the Rust Demos
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A simple, cross-platform (Desktop, Android, Wasm) weather application using real

| `.slint` Design | Rust Source (Desktop) | Rust Source (Android / Wasm) | Online wasm Preview | Open in SlintPad |
| --- | --- | --- | --- | --- |
| [`main.slint`](./weather-demo/ui/main.slint) | [`main.rs`](./weather-demo/src/main.rs) | [`lib.rs`](./weather-demo/src/lib.rs) | [Online simulation](https://slint.dev/snapshots/master/demos/weather-demo/) | [Preview in Online Code Editor](https://slint.dev/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/weather-demo/ui/main.slint) |
| [`main.slint`](./weather-demo/ui/main.slint) | [`main.rs`](./weather-demo/src/main.rs) | [`lib.rs`](./weather-demo/src/lib.rs) | [Online simulation](https://slint.dev/snapshots/master/demos/weather-demo/) | [Preview in Online Code Editor](https://slint.dev/snapshots/master/editor?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/demos/weather-demo/ui/main.slint) |

Weather Demo is a weather application made by [Felgo](https://felgo.com/).

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ These examples demonstrate the main features of Slint and how to use them in dif
| [Maps![Maps demo image](https://github.com/slint-ui/slint/assets/959326/f5e8cca6-dee1-4681-83da-88fec27f9a45 "OpenGL Underlay demo image")](./maps/) | A rust example that load image tiles asynchronously from OpenStreetMap server and allow panning and zooming. <br/> [Project...](./maps/) | |
| [Virtual Keyboard![Virtual Keyboard demo image](https://user-images.githubusercontent.com/6715107/231668373-23faedf8-b42a-401d-b3a2-845d5e61252b.png "Virtual Keyboard demo image")](./virtual_keyboard/) | A Rust and C++ example that shows how to implement a custom virtual keyboard in Slint. <br/> [Project...](./virtual_keyboard/) | |
| [7GUIs![7 GUI's demo image](https://user-images.githubusercontent.com/22800467/169002497-5b90e63b-5717-4290-8ac7-c618d9e2a4f1.png "7 GUI's demo image")](./7guis/) | Our implementations of the ["7GUIs"](https://7guis.github.io/7guis/) Tasks. <br/> [Project...](./7guis/) | |
| [Weather![Weather demo image](./weather-demo/docs/img/desktop-preview.png "7 GUI's demo image")](./weather-demo/) | A simple, cross-platform (Desktop, Android, Wasm) weather application using real weather data from the [OpenWeather](https://openweathermap.org/) API. <br/> [Project...](./weather-demo/) | [Wasm Demo](https://slint.dev/snapshots/master/demos/weather-demo/) |

#### External examples
| Thumbnail | Description |
Expand Down

0 comments on commit e01a121

Please sign in to comment.