Skip to content
Open
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
7 changes: 7 additions & 0 deletions .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 .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 .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 .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 .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"]
}
]
}
}
Binary file added Assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 53 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,53 @@
# Poster
为 Xiaomi Vela 设备开发的 POST 调试请求快应用。支持向任何位置发送 POST 请求。
<div align="center">
<img width="100px" src="./Assets/logo.png" align="center" alt="RStatus" />
<h2 align="center">Poster</h2>
<p align="center">小米穿戴设备网络调试工具</p>
</div>
<div align="center">
<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/virelyx258/Poster?style=for-the-badge">
<img alt="GitHub" src="https://img.shields.io/github/license/virelyx258/Poster?style=for-the-badge">
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/virelyx258/Poster?style=for-the-badge">
</div>

## 简介
> [!IMPORTANT]
> 以下内容于2025年11月8日撰写,本软件的实际功能可能会因新版本推送而与简介有所差异。

**Poster** 是一个适用于 Xiaomi Vela JS 操作系统的 POST 请求发送工具。其内部以⌈快捷指令⌋的方式来保存 POST 请求,以便用户在需要的时候直接发送特定的 POST 请求。

- 技术栈:`JavaScript`
- 支持的操作系统:Xiaomi Vela JS

## Todo List
- [x] 设备列表
- [x] 发送成功/失败提示
- [ ] `{` `}` 等符号的输入

## 下载
前往[Release](https://github.com/virelyx258/Poster/releases)页面进行下载。

## 编译

该软件使用 AIoT IDE 进行编写和调试。如果你想要编译该软件,请准备以下环境:

- Windows 10 和以上版本的电脑
- AIoT IDE 最新版本

同时,该软件引用了 [InputMethod](https://github.com/NEORUAA/Vela_input_method),请在编辑 / 引用代码时遵守相关协议。

## 使用教程

1. 点击主页右下角的“➕”按钮,进入“新建”页面;
2. 输入 POST URL (请求地址)、请求数据、名称和简介等基本信息;
3. 点击“新建”页面最下方的“√”按钮,保存该条快捷指令;
4. 侧滑或点击页面左上角的“<”按钮,返回到主界面,刚才新建的快捷指令自动显示。
5. 日常使用,点击快捷指令列表中的项目即可快速发送 POST ,并弹窗提示请求结果。

## 兼容性

软件目前适配进度:

- [x] REDMI Watch 6
- [x] REDMI Watch 5 (eSIM)
- [x] Xiaomi Smart Band 9 Pro
- [ ] Xiaomi Smart Band 9 (部分界面未完善)
21 changes: 21 additions & 0 deletions 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 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 added jsconfig.json
Empty file.
Loading