Skip to content
Closed

test #25

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .gitee/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## 概要

*在此部分更新信息,说明更改的必要性、具体做了什么以及如何实现的,如果有新功能出现,请提供参考资料(依赖关系、类似问题和解决方案等)。*

## 影响

*在此部分更新信息(如适用),说明更改如何影响用户、构建过程、硬件、文档、安全性、兼容性等。*

## 测试

*在此部分更新信息,详细说明如何验证更改,使用什么主机进行构建(操作系统、CPU、编译器等),使用什么目标进行验证(架构、板子:配置等)。提供更改前后的构建和运行日志将非常有帮助。*
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @xiaoxiang781216 @GUIDINGLI @shenyanxiu @luorong216
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
*Note: Please adhere to [Contributing Guidelines](https://github.com/open-vela/docs/blob/dev/CONTRIBUTING.md).*

## Summary

*Update this section with information on why change is necessary,
what it exactly does and how, if new feature shows up, provide
references (dependencies, similar problems and solutions), etc.*

## Impact

*Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.*

## Testing

*Update this section with details on how did you verify the change,
what Host was used for build (OS, CPU, compiler, ..), what Target was
used for verification (arch, board:config, ..), etc. Providing build
and runtime logs from before and after change is highly appreciated.*

2 changes: 1 addition & 1 deletion .github/workflows/checkpatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
checkpatch:
uses: open-vela/public-actions/.github/workflows/checkpatch.yml@trunk
uses: open-vela/public-actions/.github/workflows/checkpatch.yml@dev
secrets: inherit
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: CI

# Controls when the workflow will run
on:
pull_request_review:
types: [submitted]
pull_request_target:
types: [opened, reopened, synchronize]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
ci:
uses: open-vela/public-actions/.github/workflows/ci.yml@trunk
uses: open-vela/public-actions/.github/workflows/ci.yml@dev
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Close stale issues and PR'
on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch: # 允许手动触发

jobs:
stale:
uses: open-vela/public-actions/.github/workflows/stale.yml@dev
secrets: inherit

21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


## 简介

该仓库实现了 openvela app应用代码示例,开发者可以根据我们的文档和示例,快速上手开发。

## demo说明

- [万年历](calendar)
- [图表](chart)
- [设置页](settings)
- [计算器](multi-screen-calculator)
- [任务列表demo](multi_screen_todolist)
- [播放器](player)
- [小米手环天气预报应用1](weather)
- [小米手环天气预报应用2](weather-demo)

## 开发说明

项目需要使用官方ide开发调试,请参考文档[官方文档](https://iot.mi.com/vela/quickapp/zh/guide/start/use-ide.html)

2 changes: 1 addition & 1 deletion calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@aiot-toolkit/velasim": "^0.1.26-beta.3",
"aiot-toolkit": "^1.1.4",
"aiot-toolkit": "^2.0.5",
"babel-eslint": "^10.0.1",
"eslint": "^6.8.0",
"eslint-plugin-ux": "^0.0.4",
Expand Down
6 changes: 6 additions & 0 deletions calendar/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"features": [
{
"name": "system.router"
},
{
"name": "system.device"
},
{
"name": "system.app"
}
],
"config": {
Expand Down
2 changes: 1 addition & 1 deletion calendar/src/pages/index/index.ux
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default {
flex-direction: column;
}

@media not (width <= 212) {
@media screen and (shape: circle) {
.home-page {
width: 100%;
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@aiot-toolkit/velasim": "^0.1.26-beta.3",
"aiot-toolkit": "^1.1.4",
"aiot-toolkit": "^2.0.5",
"babel-eslint": "^10.0.1",
"eslint": "^6.8.0",
"eslint-plugin-ux": "^0.0.4",
Expand Down
7 changes: 7 additions & 0 deletions home-control/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.nyc_output
/coverage
/node_modules
/sign
/dist
/build
.husky/
18 changes: 18 additions & 0 deletions home-control/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 佩戴设备家电控制 (Home Control)

## 简介
面向手环/手表的家电控制前端示例,包含单页首页与二级详情页,支持开关、亮度/温度/频道调节。数据为内置假数据,便于界面演示。

## 功能
- 手动控制:开关、亮度/温度/频道加减
- 家庭概览:仅图标与状态点,无文字

## 结构
- 入口与路由:`src/manifest.json`
- 首页:`src/pages/index/index.ux`
- 详情页:`src/pages/detail/detail.ux`
- 全局数据:`src/common/store.js`

## 截图
示例界面请参见项目中的图片与模拟器预览。
![示例图](image.png)
Binary file added home-control/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading