2 Star 13 Fork 7

Yu-Core / YourWeather

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

YourWeather

English | 简体中文

Blazor 跨平台入门级Demo,多个项目共用一个Rcl(Razor类库),通过天气API获取当前天气和天气预报,具有多个天气源,也可以选择指定位置的天气。

Blazor WebAssembly / Blazor Server / MAUI / Winform / WPF / Photino Blazor

在线演示地址(GitHub)

在线演示地址(Gitee)

特点

  • 多个天气源
    • 高德地图
    • OpenWeather
    • 和风天气
    • 心知天气
    • VisualCrossing
  • 定位
  • 持久化存储
    • Blazor WebAssembly 和 Blazor Server 中使用 localStorage
    • Maui Blazor 中使用 Maui 提供的首选项
    • Winform、WPF 中使用 localStorage
    • Photino 中使用 localStorage
  • 主题切换
    • MASA.Blazor 提供
    • 额外支持 跟随系统主题
    • 额外支持 Maui 状态栏/标题栏的颜色改变
    • 额外支持 Winform、WPF 标题栏深色模式
    • 额外支持 Photino 的 Windows标题栏深色模式
  • 使用默认浏览器打开外部链接
    • 通过js创建a标签

截图

Blazor WebAssembly Blazor Server MAUI Android
Winform WPF
MAUI Windows Photino Linux ( Deepin )

相关技术

  • 前端框架:Blazor
  • UI组件库:Masa Blazor
  • 跨平台UI框架:Maui
  • 桌面端UI框架:Winform、WPF
  • 轻量级跨平台框架:Photino

项目结构

详见./YourWeather/README.md

支持的平台

  • Web
    • Blazor WebAssembly
    • Blazor Server
  • Windows
    • Maui Blazor
    • Winform (Blazor Hybrid)
    • WPF (Blazor Hybrid)
    • Photino Blazor
  • Linux
    • Photino Blazor

    Linux上无法运行请参考这里

  • Android
    • Maui Blazor
  • iOS
    • Maui Blazor
  • Mac
    • Maui Blazor
    • Photino Blazor

感谢以下开源项目

以上排名不分先后

MIT License Copyright (c) 2022 Yu-Core Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Blazor 跨平台入门级Demo,天气预报,Blazor WebAssembly / Blazor Server / MAUI / Winform / WPF /Photino Blazor 展开 收起
C# 等 4 种语言
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/Yu-core/YourWeather.git
git@gitee.com:Yu-core/YourWeather.git
Yu-core
YourWeather
YourWeather
master

搜索帮助