From 18ec9fadc73fb434422742b10f058efd535d398a Mon Sep 17 00:00:00 2001
From: jiangchen <1703935164@qq.com>
Date: Tue, 1 Sep 2026 14:25:34 +0800
Subject: [PATCH] Initial DSHWatch DSHWatchPhone scaffold
---
.eslintignore | 7 +++++
.gitignore | 16 ++++++++++
README.md | 13 ++++++++
jsconfig.json | 0
package.json | 18 +++++++++++
src/CardDemo/index.ux | 24 +++++++++++++++
src/Common/logo.png | Bin 0 -> 3106 bytes
src/Demo/index.ux | 48 +++++++++++++++++++++++++++++
src/DemoDetail/index.ux | 27 ++++++++++++++++
src/app.ux | 14 +++++++++
src/config-phone.json | 1 +
src/global.js | 34 +++++++++++++++++++++
src/manifest.json | 66 ++++++++++++++++++++++++++++++++++++++++
src/sitemap.json | 4 +++
14 files changed, 272 insertions(+)
create mode 100644 .eslintignore
create mode 100644 .gitignore
create mode 100644 README.md
create mode 100644 jsconfig.json
create mode 100644 package.json
create mode 100644 src/CardDemo/index.ux
create mode 100644 src/Common/logo.png
create mode 100644 src/Demo/index.ux
create mode 100644 src/DemoDetail/index.ux
create mode 100644 src/app.ux
create mode 100644 src/config-phone.json
create mode 100644 src/global.js
create mode 100644 src/manifest.json
create mode 100644 src/sitemap.json
diff --git a/.eslintignore b/.eslintignore
new file mode 100644
index 0000000..dc1a78f
--- /dev/null
+++ b/.eslintignore
@@ -0,0 +1,7 @@
+/.nyc_output
+/coverage
+/node_modules
+/tests/fixtures
+/sign
+/dist
+/build
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3d1760d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,16 @@
+node_modules
+build
+dist
+
+.DS_Store
+Thumbs.db
+
+*.log
+*.iml
+.idea/
+.vscode/
+
+.nyc_output
+/coverage
+
+/logs
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f859aa2
--- /dev/null
+++ b/README.md
@@ -0,0 +1,13 @@
+## 快速上手
+
+您可通过运行 `npm run start` 后,使用快应用引擎扫描二维码快速开发。
+
+## 了解更多
+
+你可以通过我们的[官方文档](https://doc.quickapp.cn/)熟悉和了解快应用。
+
+可以通过我们[快应用官方示例项目](https://github.com/quickappcn/sample),快速掌握
+api 和组件的用法
+
+对我们有什么意见,建议或者 bug,可以在这里反馈
+https://github.com/quickappcn/issues
diff --git a/jsconfig.json b/jsconfig.json
new file mode 100644
index 0000000..e69de29
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..e884377
--- /dev/null
+++ b/package.json
@@ -0,0 +1,18 @@
+{
+ "name": "DSHWatchPhone",
+ "version": "1.0.0",
+ "description": "",
+ "engines": {
+ "node": ">=8.10"
+ },
+ "scripts": {
+ "start": "aiot start --watch",
+ "build": "aiot build",
+ "release": "aiot release",
+ "lint": "eslint --format codeframe --fix --ext .ux,.js src/"
+ },
+ "devDependencies": {
+ "@aiot-toolkit/jsc": "^1.0.3",
+ "aiot-toolkit": "^2.0.5"
+ }
+}
\ No newline at end of file
diff --git a/src/CardDemo/index.ux b/src/CardDemo/index.ux
new file mode 100644
index 0000000..7d0b3f5
--- /dev/null
+++ b/src/CardDemo/index.ux
@@ -0,0 +1,24 @@
+
+
+
+ {{text}}
+ {{des}}
+
+
+
+
+
+
diff --git a/src/Common/logo.png b/src/Common/logo.png
new file mode 100644
index 0000000000000000000000000000000000000000..b3c0fb0b1a5a754d9a9fbefc8e6c4b225d7dac26
GIT binary patch
literal 3106
zcmaJ@3pkW%8-B-R9CFH`gDp){wu8eQ7-l9kV`hYqm?En(@nJACGUF^wNEBPNh*WY2
zC6Q2VG)hT?T~b?)sierEoX5;R+S>j9>)L<6>-xUuec$iCpXYuK-*tV7jt<+E6}1%s
z0LnJjG$*MQF5dER=@XL4#!JmAKHZh?%=PAnGJ_yM@!}qYkTz_l599Gx$=BUwM@1c+^FLRU&-X3Eg
zNQHb^))7IFbA$uKGs54K=!M#5fiw#vNgc2uJ`)+n4&d-eVdki>eo4~x;xQV9{0iaw
zo1^{|3=xerHo#y>7$OOSMSiS9Tn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!dq^B=fnv@QRb=}De))2tp@=y~lj^)fkIIpp1^jP@pEVbek}?$THdqWN}h
z{~gnai15Sb-b}uoU}QP^CPxlCY~7tOTG-mZQ@*fp?jSQe)YiA!7L=+I>Mu>b9Vxtf
zL43;+dcWPdym8=c!~W{nA1?MpH+_7o3R5)>Wfx&gv#wsYLU4?QJ7qJTSKnJQUD%t!
z8gG}6Q}kyHeu~-sWE&zsI9B0Oi{<1x=M^Je68B1nsBlDB9Z=Edq
zRD}Mt*438>N5zUsmKVUS7B20!Ize>?j-0m|c+?#qrA6+z{p!}8^6N{_MHHsUo$ae>
zm~M|Uv6U5=*DV&fJ8{9F`T1V5a$6ew9nX;5>$Lwv$o;
z2MrH?(V(UjJn$NbA(3m}gjiI(??(t;yuQIxT302bDlto5*ugPfUg-exr(ep;HqDd{
zi^LmDLxN>;YFz2$7Co!1{+;RkU>MRk_f%4A)rvoG3o~-W?S>$G#!sm|v1RlH&nWpw
z8|4ikM-v-GHG7-Q#Jl8NWry9h<+`GYC+-Y*;)5mZxN~|(bMrnsvd69;D24bcBV-eY9mp}&N11xuT
z!e~wKHrv>mSfNPK
zy_bpWSt;jOXYipIAhtf~R%?Ex9->tyw@%21E(RrBGI|xXTxO&*y*1M7F3q1=)jeIO
zkLXZ`+qI7OUtpXYeVVCUU^-HpK7B4KDyl=J1krTZeMIRfQ>1wvwWq+2qBJ$%)x5;V
zIWzvvKHHvO!u^8f+Jci*Yc`&1vSXlQCn&0u*{Gb>mV*Ue|W=k~y
literal 0
HcmV?d00001
diff --git a/src/Demo/index.ux b/src/Demo/index.ux
new file mode 100644
index 0000000..dd018c4
--- /dev/null
+++ b/src/Demo/index.ux
@@ -0,0 +1,48 @@
+
+
+
+ 欢迎打开{{title}}
+
+
+
+
+
+
+
+
diff --git a/src/DemoDetail/index.ux b/src/DemoDetail/index.ux
new file mode 100644
index 0000000..ad9b3b2
--- /dev/null
+++ b/src/DemoDetail/index.ux
@@ -0,0 +1,27 @@
+
+
+
+ {{text}}
+
+
+
+
+
+
diff --git a/src/app.ux b/src/app.ux
new file mode 100644
index 0000000..b2c4fdf
--- /dev/null
+++ b/src/app.ux
@@ -0,0 +1,14 @@
+
diff --git a/src/config-phone.json b/src/config-phone.json
new file mode 100644
index 0000000..9e26dfe
--- /dev/null
+++ b/src/config-phone.json
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/src/global.js b/src/global.js
new file mode 100644
index 0000000..da7ab8f
--- /dev/null
+++ b/src/global.js
@@ -0,0 +1,34 @@
+/**
+ * @file 全局能力的配置与获取
+ * 文档地址:https://doc.quickapp.cn/tutorial/framework/optimization-skills.html#%E4%BD%BF%E7%94%A8-globaljs
+ */
+
+function getGlobalRef() {
+ return Object.getPrototypeOf(global) || global
+}
+
+const quickappGlobal = getGlobalRef()
+
+/**
+ * 设置全局(被APP与Page共享)数据;
+ * @param key {string}
+ * @param val {*}
+ */
+function setGlobalData(key, val) {
+ quickappGlobal[key] = val
+}
+
+/**
+ * 获取全局(被APP与Page共享)数据;
+ * @param key {string}
+ * @return {*}
+ */
+function getGlobalData(key) {
+ return quickappGlobal[key]
+}
+
+// 两个方法默认定义在全局
+setGlobalData('setGlobalData', setGlobalData)
+setGlobalData('getGlobalData', getGlobalData)
+
+export { setGlobalData, getGlobalData }
diff --git a/src/manifest.json b/src/manifest.json
new file mode 100644
index 0000000..f62afba
--- /dev/null
+++ b/src/manifest.json
@@ -0,0 +1,66 @@
+{
+ "package": "com.application.demo",
+ "name": "DSHWatchPhone",
+ "versionName": "1.0.0",
+ "versionCode": 1,
+ "minPlatformVersion": 1070,
+ "icon": "/Common/logo.png",
+ "deviceTypeList": [
+ "phone"
+ ],
+ "features": [
+ {
+ "name": "system.prompt"
+ },
+ {
+ "name": "system.router"
+ },
+ {
+ "name": "system.shortcut"
+ }
+ ],
+ "permissions": [
+ {
+ "origin": "*"
+ }
+ ],
+ "config": {
+ "logLevel": "log"
+ },
+ "router": {
+ "entry": "Demo",
+ "pages": {
+ "Demo": {
+ "component": "index"
+ },
+ "DemoDetail": {
+ "component": "index"
+ }
+ },
+ "widgets": {
+ "CardDemo": {
+ "name": "CardDemo",
+ "description": "快应用卡片展示",
+ "component": "index",
+ "path": "/CardDemo",
+ "features": []
+ }
+ }
+ },
+ "display": {
+ "titleBarBackgroundColor": "#f2f2f2",
+ "titleBarTextColor": "#414141",
+ "menu": false,
+ "menuBarData": {
+ "menuBar": true
+ },
+ "pages": {
+ "Demo": {
+ "titleBarText": "示例页"
+ },
+ "DemoDetail": {
+ "titleBarText": "详情页"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/sitemap.json b/src/sitemap.json
new file mode 100644
index 0000000..8d03ea3
--- /dev/null
+++ b/src/sitemap.json
@@ -0,0 +1,4 @@
+{
+ "doc": "https://doc.quickapp.cn/framework/sitemap.html",
+ "rules": [{ "rule": "enable", "page": "*" }]
+}