openyida 1.0.0-beta.5 → 1.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/create-app.js CHANGED
@@ -95,6 +95,9 @@ async function run(args) {
95
95
  const description = args[1] || appName;
96
96
  const icon = args[2] || "xian-yingyong";
97
97
  const iconColor = args[3] || "#0089FF";
98
+ const colour = args[4] || "deepBlue";
99
+ const navTheme = args[5] || "dark";
100
+ const layoutDirection = args[6] || "slide";
98
101
 
99
102
  const SEP = "=".repeat(50);
100
103
  console.error(SEP);
@@ -103,6 +106,7 @@ async function run(args) {
103
106
  console.error(t("create_app.app_name", appName));
104
107
  console.error(t("create_app.app_desc", description));
105
108
  console.error(t("create_app.app_icon", icon, iconColor));
109
+ console.error(t("create_app.app_theme", colour, navTheme, layoutDirection));
106
110
 
107
111
  // Step 1: 读取登录态
108
112
  console.error(t("common.step_login", 1));
@@ -131,7 +135,9 @@ async function run(args) {
131
135
  description: JSON.stringify({ zh_CN: description, en_US: description, type: "i18n" }),
132
136
  icon: iconValue,
133
137
  iconUrl: iconValue,
134
- colour: "blue",
138
+ colour,
139
+ navTheme,
140
+ layoutDirection,
135
141
  defaultLanguage: "zh_CN",
136
142
  openExclusive: "n",
137
143
  openPhysicColumn: "n",
package/lib/locales/en.js CHANGED
@@ -217,6 +217,7 @@ Examples:
217
217
  app_name: " App name: {0}",
218
218
  app_desc: " Description: {0}",
219
219
  app_icon: " Icon: {0} ({1})",
220
+ app_theme: " Theme: colour={0} navTheme={1} layout={2}",
220
221
  step_create: "\n📦 Step 2: Create App\n",
221
222
  success: " ✅ App created successfully!",
222
223
  app_type_label: " appType: {0}",
package/lib/locales/ja.js CHANGED
@@ -215,6 +215,7 @@ openyida - Yida CLI ツール
215
215
  app_name: " アプリ名: {0}",
216
216
  app_desc: " 説明: {0}",
217
217
  app_icon: " アイコン: {0} ({1})",
218
+ app_theme: " テーマ: colour={0} navTheme={1} layout={2}",
218
219
  step_create: "\n📦 Step 2: アプリを作成\n",
219
220
  success: " ✅ アプリが正常に作成されました!",
220
221
  app_type_label: " appType: {0}",
package/lib/locales/zh.js CHANGED
@@ -214,6 +214,7 @@ openyida - 宜搭命令行工具
214
214
  app_name: " 应用名称: {0}",
215
215
  app_desc: " 应用描述: {0}",
216
216
  app_icon: " 图标: {0} ({1})",
217
+ app_theme: " 主题: colour={0} navTheme={1} layout={2}",
217
218
  step_create: "\n📦 Step 2: 创建应用\n",
218
219
  success: " ✅ 应用创建成功!",
219
220
  app_type_label: " appType: {0}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openyida",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "OpenYida CLI - 宜搭低代码 AI 开发工具(安装即用,零配置)",
5
5
  "bin": {
6
6
  "openyida": "./bin/yida.js",
@@ -22,7 +22,17 @@
22
22
  "lint:fix": "eslint bin/ lib/ scripts/ --ext .js --fix",
23
23
  "postinstall": "node scripts/postinstall.js"
24
24
  },
25
- "keywords": ["yida", "aliwork", "dingtalk", "cli", "openyida", "low-code", "ai", "qoder", "wukong"],
25
+ "keywords": [
26
+ "yida",
27
+ "aliwork",
28
+ "dingtalk",
29
+ "cli",
30
+ "openyida",
31
+ "low-code",
32
+ "ai",
33
+ "qoder",
34
+ "wukong"
35
+ ],
26
36
  "author": "OpenYida Contributors",
27
37
  "license": "MIT",
28
38
  "dependencies": {
@@ -53,15 +53,38 @@ openyida create-app "考勤管理" "员工考勤打卡系统" "xian-daka" "#00B8
53
53
  ```bash
54
54
  openyida create-app <appName> [description] [icon] [iconColor]
55
55
  ```
56
-
57
56
  **参数说明**:
58
57
 
59
58
  | 参数 | 必填 | 默认值 | 说明 |
60
59
  | --- | --- | --- | --- |
61
60
  | `appName` | 是 | — | 应用名称 |
62
61
  | `description` | 否 | 同 appName | 应用描述 |
63
- | `icon` | 否 | `xian-yingyong` | 图标标识 |
64
- | `iconColor` | 否 | `#0089FF` | 图标颜色 |
62
+ | `icon` | 否 | `xian-yingyong` | 图标标识(见文末图标列表) |
63
+ | `iconColor` | 否 | `#0089FF` | 图标背景色(见文末色值列表) |
64
+ | `colour` | 否 | `deepBlue` | 主题色(见下方主题色说明) |
65
+ | `navTheme` | 否 | `dark` | 导航风格:`dark`(深色)/ `light`(浅色) |
66
+ | `layoutDirection` | 否 | `slide` | 导航布局:`slide`(侧边栏)/ `ver`(L 型顶导) |
67
+
68
+ **主题色(colour)可选值**:
69
+
70
+ | 值 | 颜色 | 适合场景 |
71
+ | --- | --- | --- |
72
+ | `deepBlue` | 深蓝 | 政务、金融、法律、企业管理、正式场合 |
73
+ | `podBlue` | 蓝色 | 科技、教育、通用办公、SaaS 应用 |
74
+ | `royalBlue` | 皇家蓝 | 高端商务、专业服务、企业级应用、信任感强 |
75
+ | `lightBlue` | 浅蓝 | 清新简约、云服务、通讯社交、年轻化应用 |
76
+ | `teal` | 青色 | 医疗健康、环保、清新简洁类应用 |
77
+ | `podGreen` | 绿色 | 农业、环保、健康、生态、可持续发展 |
78
+ | `deepPurple` | 深紫 | 创意设计、艺术、高端品牌、奢侈品 |
79
+ | `purple` | 紫色 | 女性用户、美妆、时尚、创新科技 |
80
+ | `podOrange` | 橙色 | 活力、电商、餐饮、娱乐、社交 |
81
+ | `yellow` | 黄色 | 儿童教育、阳光活力、警示提醒类应用 |
82
+ | `magenta` | 玫红色 | 时尚、创意、社交、娱乐类应用 |
83
+ | `red` | 红色 | 党建、政务、新闻、紧急类应用 |
84
+ | `greyBlue` | 灰蓝 | 稳重商务、工业制造、技术工程、专业工具 |
85
+ | `coffee` | 咖啡 | 传统行业、文化教育、复古风格、温馨舒适 |
86
+ | `black` | 黑色 | 极简设计、奢侈品牌、科技前沿、高端定制 |
87
+
65
88
 
66
89
  **示例**:
67
90
 
@@ -69,8 +92,14 @@ openyida create-app <appName> [description] [icon] [iconColor]
69
92
  # 最简用法
70
93
  openyida create-app "考勤管理"
71
94
 
72
- # 完整参数
95
+ # 自定义图标
73
96
  openyida create-app "考勤管理" "员工考勤打卡系统" "xian-daka" "#00B853"
97
+
98
+ # 完整参数(含主题色、导航风格、布局)
99
+ openyida create-app "考勤管理" "员工考勤打卡系统" "xian-daka" "#00B853" "deepBlue" "dark" "slide"
100
+
101
+ # 党建应用示例(红色主题 + 浅色导航)
102
+ openyida create-app "党建管理" "党员信息管理系统" "xian-zhengfu" "#FF4D4F" "red" "light" "ver"
74
103
  ```
75
104
 
76
105
  **输出**:日志输出到 stderr,JSON 结果输出到 stdout: