Skip to content
Closed
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
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)

46 changes: 46 additions & 0 deletions multi-screen-calculator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## 欢迎使用快应用-Vela计算器模板
项目主要展示一个基础的计算器

### 项目开发相关命令

#### 1. 开发

```
npm install
npm run start
```

#### 2. 构建

```
npm run build
npm run release
```

#### 3. 调试
```
npm run watch
```
### 项目目录结构(src)
```
.
├── manifest.json //描述项目配置信息的manifest 文件(关于该文件的详细说明请参考档,
│ [小米Vela快速应用框架Manifest文档](https://iot.mi.com/vela/quickapp/zh/content/framework/manifest.html))
├── app.ux //放置项目公共资源脚本的app.ux 文件
├── pages //应用主要页面代码
│ ├── index
| | └── index.ux // 计算器首页


├── i18n(国际化文件夹,具体参考快应用文档)
| ├── defaults.json
| ├── zh-CN.json
| └── en-US.json
└── common //存放公共资源文件夹
```

## 了解更多

你可以通过我们的[官方文档](https://iot.mi.com/vela/quickapp)熟悉和了解快应用。

2 changes: 2 additions & 0 deletions vela_workshop_24point/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### vela大会上传 24点 作业
### 项目名称格式 24point7729 (7729为个人手机尾号)
19 changes: 19 additions & 0 deletions weather-demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## 项目功能介绍

### 可以上下滑动查看七天内的天气(假数据)

### 页面精美,运行流畅

![image](src/common/result.png)

## 运行环境要求
```
nodejs版本:v18.20.5
```
## 关键实现思路
```
1、首先在整张界面放入背景图片(bg.jpg),并将其置于底层
2、然后加入一个容器放在背景图片上方,并设置一定的透明度
3、在加入的容器内加入两个容器,一个是div容器用来说明界面内容,一个是scroll容器,用来展示天气列表,支持滑动
4、最后调整布局和字体
```
10 changes: 10 additions & 0 deletions weather-demo/src/app.ux
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script>
export default {
onCreate() {
console.log("app created")
},
onDestroy() {
console.log("app destroyed")
}
}
</script>
Binary file added weather-demo/src/common/icons/100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/101.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/102.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/103.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/104.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/153.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/154.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/300.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/301.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/302.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/303.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/304.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/305.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/306.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/307.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/308.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/309.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/311.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/312.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/313.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/314.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/315.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/316.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added weather-demo/src/common/icons/317.png
Binary file added weather-demo/src/common/icons/318.png
Binary file added weather-demo/src/common/icons/350.png
Binary file added weather-demo/src/common/icons/351.png
Binary file added weather-demo/src/common/icons/399.png
Binary file added weather-demo/src/common/icons/400.png
Binary file added weather-demo/src/common/icons/401.png
Binary file added weather-demo/src/common/icons/402.png
Binary file added weather-demo/src/common/icons/403.png
Binary file added weather-demo/src/common/icons/404.png
Binary file added weather-demo/src/common/icons/405.png
Binary file added weather-demo/src/common/icons/406.png
Binary file added weather-demo/src/common/icons/407.png
Binary file added weather-demo/src/common/icons/408.png
Binary file added weather-demo/src/common/icons/409.png
Binary file added weather-demo/src/common/icons/410.png
Binary file added weather-demo/src/common/icons/456.png
Binary file added weather-demo/src/common/icons/457.png
Binary file added weather-demo/src/common/icons/499.png
Binary file added weather-demo/src/common/icons/500.png
Binary file added weather-demo/src/common/icons/501.png
Binary file added weather-demo/src/common/icons/502.png
Binary file added weather-demo/src/common/icons/503.png
Binary file added weather-demo/src/common/icons/504.png
Binary file added weather-demo/src/common/icons/507.png
Binary file added weather-demo/src/common/icons/508.png
Binary file added weather-demo/src/common/icons/509.png
Binary file added weather-demo/src/common/icons/510.png
Binary file added weather-demo/src/common/icons/511.png
Binary file added weather-demo/src/common/icons/512.png
Binary file added weather-demo/src/common/icons/513.png
Binary file added weather-demo/src/common/icons/514.png
Binary file added weather-demo/src/common/icons/515.png
Binary file added weather-demo/src/common/icons/900.png
Binary file added weather-demo/src/common/icons/901.png
Binary file added weather-demo/src/common/icons/999.png
14 changes: 14 additions & 0 deletions weather-demo/src/common/icons/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# License

Attribution: Heweather https://www.heweather.com

This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/

版权所有人:和风天气 https://www.heweather.com

本作品采用知识共享 署名 4.0 国际 许可协议进行许可。访问 http://creativecommons.org/licenses/by/4.0/ 查看该许可协议。





Binary file added weather-demo/src/common/icons/bg.jpg
Binary file added weather-demo/src/common/logo.png
Binary file added weather-demo/src/common/result.png
1 change: 1 addition & 0 deletions weather-demo/src/config-watch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions weather-demo/src/i18n/defaults.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"a":{"b":"default hello"}}
1 change: 1 addition & 0 deletions weather-demo/src/i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"a":{"b":"hello"}}
1 change: 1 addition & 0 deletions weather-demo/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"a":{"b":"你好"}}
31 changes: 31 additions & 0 deletions weather-demo/src/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"package": "com.application.watch.demo",
"name": "weather",
"versionName": "1.0.0",
"versionCode": 1,
"minPlatformVersion": 1000,
"icon": "/common/logo.png",
"deviceTypeList": [
"watch"
],
"features": [
{
"name": "system.router"
}
],
"config": {
"logLevel": "log",
"designWidth": 480
},
"router": {
"entry": "pages/index",
"pages": {
"pages/index": {
"component": "index"
},
"pages/detail": {
"component": "detail"
}
}
}
}
26 changes: 26 additions & 0 deletions weather-demo/src/pages/detail/detail.ux
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<template>
<div class="demo-page">
<text class="title">{{ text }}</text>
</div>
</template>

<script>
export default {
private: {
text: "欢迎打开详情页"
}
}
</script>

<style>
.demo-page {
flex-direction: column;
justify-content: center;
align-items: center;
}

.title {
font-size: 20px;
text-align: center;
}
</style>
Loading
Loading