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
12,343 changes: 7,319 additions & 5,024 deletions wearable/calendar/package-lock.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions wearable/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
5 changes: 3 additions & 2 deletions wearable/calendar/src/pages/index/index.ux
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,16 @@ export default {
height: 100%;
border-radius: 240px;
flex-direction: column;
align-items: center;
}

@media not (width <= 212) {
@media screen and (shape: pill-shaped) {
.home-page {
width: 100%;
height: 100%;
border-radius: 240px;
flex-direction: column;
align-items: center;
align-items: flex-start;
}
}

Expand Down
7 changes: 7 additions & 0 deletions wearable/eventBus/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.nyc_output
/coverage
/node_modules
/tests/fixtures
/sign
/dist
/build
7 changes: 7 additions & 0 deletions wearable/eventBus/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.nyc_output
/coverage
/node_modules
/sign
/dist
/build
.husky/
16 changes: 16 additions & 0 deletions wearable/eventBus/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
node_modules
build
dist

.DS_Store
Thumbs.db

*.log
*.iml
.idea/
.vscode/

.nyc_output
/coverage

/logs
22 changes: 22 additions & 0 deletions wearable/eventBus/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
printWidth: 100, // 指定代码长度,超出换行
tabWidth: 2, // tab 键的宽度
useTabs: false, // 使用空格替代tab
semi: false, // 结尾加上分号
singleQuote: false, // 使用单引号
quoteProps: "consistent", // 要求对象字面量属性是否使用引号包裹,(‘as-needed’: 没有特殊要求,禁止使用,'consistent': 保持一致 , preserve: 不限制,想用就用)
trailingComma: "none", // 不添加对象和数组最后一个元素的逗号
bracketSpacing: false, // 对象中对空格和空行进行处理
jsxBracketSameLine: false, // 在多行JSX元素的最后一行追加 >
requirePragma: false, // 是否严格按照文件顶部的特殊注释格式化代码
insertPragma: false, // 是否在格式化的文件顶部插入Pragma标记,以表明该文件被prettier格式化过了
proseWrap: "preserve", // 按照文件原样折行
htmlWhitespaceSensitivity: "ignore", // html文件的空格敏感度,控制空格是否影响布局
endOfLine: "auto", // 结尾是 \n \r \n\r auto
overrides: [
{
files: "*.ux",
options: {parser: "vue"}
}
]
}
44 changes: 44 additions & 0 deletions wearable/eventBus/.stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module.exports = {
extends: [
"stylelint-config-standard",
"stylelint-config-recess-order"
// "stylelint-selector-bem-pattern"
],
ignoreFiles: ["node_modules", "test", "dist", "**/*.js"],
rules: {
"no-descending-specificity": null,
"color-hex-case": "lower",
"color-hex-length": "short",
"at-rule-no-unknown": null,
"block-no-empty": null,
"selector-pseudo-class-no-unknown": [
true,
{
ignorePseudoClasses: ["blur"]
}
],
"property-no-unknown": [
true,
{
ignoreProperties: [
"placeholder-color",
"gradient-start",
"gradient-center",
"gradient-end",
"caret-color",
"selected-color",
"block-color"
]
}
],
"max-line-length": null,
// "indentation": 2,
// "no-empty-source": null,
"selector-type-no-unknown": [
true,
{
ignoreTypes: ["selected-color", "block-color"]
}
]
}
}
40 changes: 40 additions & 0 deletions wearable/eventBus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## 快速上手

### 1. 开发

```
npm install
npm run start
```

### 2. 构建

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

### 3. 调试

```
npm run watch
```
### 4. 代码规范化配置
代码规范化可以帮助开发者在git commit前进行代码校验、格式化、commit信息校验

使用前提:必须先关联git

macOS or Linux
```
sh husky.sh
```

windows
```
./husky.sh
```


## 了解更多

你可以通过我们的[官方文档](https://iot.mi.com/vela/quickapp)熟悉和了解快应用。
21 changes: 21 additions & 0 deletions wearable/eventBus/commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"bug", // 此项特别针对bug号,用于向测试反馈bug列表的bug修改情况
"feat", // 新功能(feature)
"fix", // 修补bug
"docs", // 文档(documentation)
"style", // 格式(不影响代码运行的变动)
"refactor", // 重构(即不是新增功能,也不是修改bug的代码变动)
"test", // 增加测试
"chore", // 构建过程或辅助工具的变动
"revert", // feat(pencil): add ‘graphiteWidth’ option (撤销之前的commit)
"merge" // 合并分支, 例如: merge(前端页面): feature-xxxx修改线程地址
]
]
}
}
3 changes: 3 additions & 0 deletions wearable/eventBus/husky.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npx husky install
npx husky add .husky/pre-commit 'npx lint-staged'
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}'
Empty file.
Loading
Loading