openyida 1.0.0-beta.6 → 1.0.0-beta.7
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 +1 -7
- package/lib/create-form.js +1 -1
- package/lib/locales/en.js +0 -1
- package/lib/locales/ja.js +0 -1
- package/lib/locales/zh.js +0 -1
- package/package.json +2 -12
- package/yida-skills/skills/yida-create-app/SKILL.md +4 -33
package/lib/create-app.js
CHANGED
|
@@ -95,9 +95,6 @@ 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";
|
|
101
98
|
|
|
102
99
|
const SEP = "=".repeat(50);
|
|
103
100
|
console.error(SEP);
|
|
@@ -106,7 +103,6 @@ async function run(args) {
|
|
|
106
103
|
console.error(t("create_app.app_name", appName));
|
|
107
104
|
console.error(t("create_app.app_desc", description));
|
|
108
105
|
console.error(t("create_app.app_icon", icon, iconColor));
|
|
109
|
-
console.error(t("create_app.app_theme", colour, navTheme, layoutDirection));
|
|
110
106
|
|
|
111
107
|
// Step 1: 读取登录态
|
|
112
108
|
console.error(t("common.step_login", 1));
|
|
@@ -135,9 +131,7 @@ async function run(args) {
|
|
|
135
131
|
description: JSON.stringify({ zh_CN: description, en_US: description, type: "i18n" }),
|
|
136
132
|
icon: iconValue,
|
|
137
133
|
iconUrl: iconValue,
|
|
138
|
-
colour,
|
|
139
|
-
navTheme,
|
|
140
|
-
layoutDirection,
|
|
134
|
+
colour: "blue",
|
|
141
135
|
defaultLanguage: "zh_CN",
|
|
142
136
|
openExclusive: "n",
|
|
143
137
|
openPhysicColumn: "n",
|
package/lib/create-form.js
CHANGED
|
@@ -62,7 +62,7 @@ const fs = require("fs");
|
|
|
62
62
|
const path = require("path");
|
|
63
63
|
const querystring = require("querystring");
|
|
64
64
|
const { execSync } = require("child_process");
|
|
65
|
-
const { loadCookieData, triggerLogin, refreshCsrfToken, resolveBaseUrl } = require("./utils");
|
|
65
|
+
const { findProjectRoot, loadCookieData, triggerLogin, refreshCsrfToken, resolveBaseUrl } = require("./utils");
|
|
66
66
|
const { t } = require("./i18n");
|
|
67
67
|
|
|
68
68
|
// ── 配置读取 ──────────────────────────────────────────
|
package/lib/locales/en.js
CHANGED
|
@@ -217,7 +217,6 @@ 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}",
|
|
221
220
|
step_create: "\n📦 Step 2: Create App\n",
|
|
222
221
|
success: " ✅ App created successfully!",
|
|
223
222
|
app_type_label: " appType: {0}",
|
package/lib/locales/ja.js
CHANGED
|
@@ -215,7 +215,6 @@ 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}",
|
|
219
218
|
step_create: "\n📦 Step 2: アプリを作成\n",
|
|
220
219
|
success: " ✅ アプリが正常に作成されました!",
|
|
221
220
|
app_type_label: " appType: {0}",
|
package/lib/locales/zh.js
CHANGED
|
@@ -214,7 +214,6 @@ 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}",
|
|
218
217
|
step_create: "\n📦 Step 2: 创建应用\n",
|
|
219
218
|
success: " ✅ 应用创建成功!",
|
|
220
219
|
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.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "OpenYida CLI - 宜搭低代码 AI 开发工具(安装即用,零配置)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"openyida": "./bin/yida.js",
|
|
@@ -22,17 +22,7 @@
|
|
|
22
22
|
"lint:fix": "eslint bin/ lib/ scripts/ --ext .js --fix",
|
|
23
23
|
"postinstall": "node scripts/postinstall.js"
|
|
24
24
|
},
|
|
25
|
-
"keywords": [
|
|
26
|
-
"yida",
|
|
27
|
-
"aliwork",
|
|
28
|
-
"dingtalk",
|
|
29
|
-
"cli",
|
|
30
|
-
"openyida",
|
|
31
|
-
"low-code",
|
|
32
|
-
"ai",
|
|
33
|
-
"qoder",
|
|
34
|
-
"wukong"
|
|
35
|
-
],
|
|
25
|
+
"keywords": ["yida", "aliwork", "dingtalk", "cli", "openyida", "low-code", "ai", "qoder", "wukong"],
|
|
36
26
|
"author": "OpenYida Contributors",
|
|
37
27
|
"license": "MIT",
|
|
38
28
|
"dependencies": {
|
|
@@ -53,38 +53,15 @@ openyida create-app "考勤管理" "员工考勤打卡系统" "xian-daka" "#00B8
|
|
|
53
53
|
```bash
|
|
54
54
|
openyida create-app <appName> [description] [icon] [iconColor]
|
|
55
55
|
```
|
|
56
|
+
|
|
56
57
|
**参数说明**:
|
|
57
58
|
|
|
58
59
|
| 参数 | 必填 | 默认值 | 说明 |
|
|
59
60
|
| --- | --- | --- | --- |
|
|
60
61
|
| `appName` | 是 | — | 应用名称 |
|
|
61
62
|
| `description` | 否 | 同 appName | 应用描述 |
|
|
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
|
-
|
|
63
|
+
| `icon` | 否 | `xian-yingyong` | 图标标识 |
|
|
64
|
+
| `iconColor` | 否 | `#0089FF` | 图标颜色 |
|
|
88
65
|
|
|
89
66
|
**示例**:
|
|
90
67
|
|
|
@@ -92,14 +69,8 @@ openyida create-app <appName> [description] [icon] [iconColor]
|
|
|
92
69
|
# 最简用法
|
|
93
70
|
openyida create-app "考勤管理"
|
|
94
71
|
|
|
95
|
-
#
|
|
72
|
+
# 完整参数
|
|
96
73
|
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"
|
|
103
74
|
```
|
|
104
75
|
|
|
105
76
|
**输出**:日志输出到 stderr,JSON 结果输出到 stdout:
|