steedos-cli 2.2.52-beta.7 → 2.2.52
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/LICENSE.txt +2 -5
- package/README.md +28 -2
- package/default.steedos.config.js +273 -0
- package/default.steedos.settings.yml +114 -0
- package/dist/auth/index.d.ts +1 -0
- package/dist/commands/auth/login.d.ts +1 -0
- package/dist/commands/data/export.d.ts +1 -0
- package/dist/commands/data/import.d.ts +1 -0
- package/dist/commands/i18n.d.ts +1 -0
- package/dist/commands/i18n.js +1 -1
- package/dist/commands/i18n.js.map +1 -1
- package/dist/commands/package/build.d.ts +1 -0
- package/dist/commands/source/config.d.ts +1 -0
- package/dist/commands/source/convert.d.ts +1 -0
- package/dist/commands/source/delete.d.ts +4 -0
- package/dist/commands/source/deploy.d.ts +1 -0
- package/dist/commands/source/retrieve.d.ts +1 -0
- package/dist/commands/start.d.ts +1 -0
- package/dist/commands/start.js +477 -0
- package/dist/commands/start.js.map +1 -0
- package/dist/i18n/convert.d.ts +1 -0
- package/dist/i18n/convert.js +5 -1
- package/dist/i18n/convert.js.map +1 -1
- package/dist/i18n/index.d.ts +1 -0
- package/dist/index.d.ts +0 -0
- package/dist/source/convert/jsontofiles.d.ts +1 -0
- package/dist/source/convert/loadfiletojson.d.ts +1 -0
- package/dist/source/convert/steedosPackageJson.d.ts +1 -0
- package/dist/source/deploy/index.d.ts +5 -0
- package/dist/source/retrieve/index.d.ts +6 -0
- package/dist/start/index.d.ts +9 -0
- package/dist/start/index.js +165 -0
- package/dist/start/index.js.map +1 -0
- package/dist/util/index.d.ts +5 -0
- package/dist/util/index.js +39 -0
- package/dist/util/index.js.map +1 -0
- package/dist/util/load_file.d.ts +1 -0
- package/dist/util/parse_type.d.ts +8 -0
- package/dist/util/rm_dir.d.ts +1 -0
- package/dist/util/split_to_list.d.ts +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +14 -45
- package/dist/commands/convert/i18n.js +0 -32
- package/dist/commands/convert/i18n.js.map +0 -1
package/LICENSE.txt
CHANGED
|
@@ -6,14 +6,11 @@ To determine under which license you may use a file from the Steedos source code
|
|
|
6
6
|
please resort to the header of that file.
|
|
7
7
|
|
|
8
8
|
If the file has no header, the following rules apply
|
|
9
|
-
1.
|
|
10
|
-
2.
|
|
11
|
-
3. source code that is neither (1) nor (2) is licensed under AGPL, see License.AGPL.txt
|
|
9
|
+
1. enterprise features are licensed under Steedos Enterprise Terms, see License.enterprise.txt
|
|
10
|
+
2. source code that is neither (1) is licensed under MIT, see https://opensource.org/licenses/MIT
|
|
12
11
|
|
|
13
12
|
On request, licenses under different terms are available.
|
|
14
13
|
|
|
15
|
-
Project templates can be found in the folders steedos-projects/
|
|
16
|
-
|
|
17
14
|
Source code of enterprise features are files that
|
|
18
15
|
* are in folders named "ee" or start with "ee_", or in subfolders of such folders.
|
|
19
16
|
* contain the strings "ee_" in its filename name.
|
package/README.md
CHANGED
|
@@ -57,5 +57,31 @@ steedos run --help
|
|
|
57
57
|
- export: 从服务器获取数据生成本地文件。 比如 `steedos data:export -o accounts`或`steedos data:export -o accounts -p`
|
|
58
58
|
- import: 将本地文件部署到服务器。 比如 `steedos data:import -f accounts.json`或`steedos data:import -p account-plan.json`
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
|
|
61
|
+
## 检索内置对象的扩展属性
|
|
62
|
+
|
|
63
|
+
### 方式1: 使用package.yml
|
|
64
|
+
1 新增package.yml
|
|
65
|
+
```
|
|
66
|
+
# 例如同步部门的自定义字段、按钮. 新增`steedos-app/package.yml`
|
|
67
|
+
CustomAction:
|
|
68
|
+
- organizations.*
|
|
69
|
+
CustomActionScript:
|
|
70
|
+
- organizations.*
|
|
71
|
+
CustomField:
|
|
72
|
+
- organizations.*
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
2 在项目跟路径下执行命令
|
|
76
|
+
```
|
|
77
|
+
steedos source:retrieve -y ./steedos-app/package.yml
|
|
78
|
+
```
|
|
79
|
+
### 方式2: retrieve -m 命令
|
|
80
|
+
示例1: 同步部门的自定义按钮`btn1`
|
|
81
|
+
```
|
|
82
|
+
steedos source:retrieve -m CustomAction:organizations.btn1
|
|
83
|
+
```
|
|
84
|
+
示例2: 同步部门所有自定义按钮
|
|
85
|
+
```
|
|
86
|
+
steedos source:retrieve -m CustomAction:organizations.*
|
|
87
|
+
```
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require('dotenv-flow').config(
|
|
4
|
+
{
|
|
5
|
+
path: process.cwd(),
|
|
6
|
+
silent: true
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Steedos ServiceBroker configuration file
|
|
11
|
+
*
|
|
12
|
+
* More info about options:
|
|
13
|
+
* https://moleculer.services/docs/0.14/configuration.html
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* Overwriting options in production:
|
|
17
|
+
* ================================
|
|
18
|
+
* You can overwrite any option with environment variables.
|
|
19
|
+
* For example to overwrite the "logLevel" value, use `LOGLEVEL=warn` env var.
|
|
20
|
+
* To overwrite a nested parameter, e.g. retryPolicy.retries, use `RETRYPOLICY_RETRIES=10` env var.
|
|
21
|
+
*
|
|
22
|
+
* To overwrite broker’s deeply nested default options, which are not presented in "steedos.config.js",
|
|
23
|
+
* use the `MOL_` prefix and double underscore `__` for nested properties in .env file.
|
|
24
|
+
* For example, to set the cacher prefix to `MYCACHE`, you should declare an env var as `MOL_CACHER__OPTIONS__PREFIX=mycache`.
|
|
25
|
+
* It will set this:
|
|
26
|
+
* {
|
|
27
|
+
* cacher: {
|
|
28
|
+
* options: {
|
|
29
|
+
* prefix: "mycache"
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
33
|
+
*/
|
|
34
|
+
module.exports = {
|
|
35
|
+
// Namespace of nodes to segment your nodes on the same network.
|
|
36
|
+
namespace: "steedos",
|
|
37
|
+
// Unique node identifier. Must be unique in a namespace.
|
|
38
|
+
nodeID: process.env.NODEID,
|
|
39
|
+
// Custom metadata store. Store here what you want. Accessing: `this.broker.metadata`
|
|
40
|
+
metadata: {},
|
|
41
|
+
|
|
42
|
+
// Enable/disable logging or use custom logger. More info: https://moleculer.services/docs/0.14/logging.html
|
|
43
|
+
// Available logger types: "Console", "File", "Pino", "Winston", "Bunyan", "debug", "Log4js", "Datadog"
|
|
44
|
+
logger: [{
|
|
45
|
+
type: "Console",
|
|
46
|
+
options: {
|
|
47
|
+
level: "warn",
|
|
48
|
+
// Using colors on the output
|
|
49
|
+
colors: true,
|
|
50
|
+
// Print module names with different colors (like docker-compose for containers)
|
|
51
|
+
moduleColors: false,
|
|
52
|
+
// Line formatter. It can be "json", "short", "simple", "full", a `Function` or a template string like "{timestamp} {level} {nodeID}/{mod}: {msg}"
|
|
53
|
+
formatter: "full",
|
|
54
|
+
// Custom object printer. If not defined, it uses the `util.inspect` method.
|
|
55
|
+
objectPrinter: null,
|
|
56
|
+
// Auto-padding the module name in order to messages begin at the same column.
|
|
57
|
+
autoPadding: false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: "File",
|
|
62
|
+
options: {
|
|
63
|
+
// Logging level
|
|
64
|
+
level: "warn",
|
|
65
|
+
// Folder path to save files. You can use {nodeID} & {namespace} variables.
|
|
66
|
+
folder: "./logs",
|
|
67
|
+
// Filename template. You can use {date}, {nodeID} & {namespace} variables.
|
|
68
|
+
filename: "{nodeID}-{date}.log",
|
|
69
|
+
// Line formatter. It can be "json", "short", "simple", "full", a `Function` or a template string like "{timestamp} {level} {nodeID}/{mod}: {msg}"
|
|
70
|
+
formatter: "json",
|
|
71
|
+
// Custom object printer. If not defined, it uses the `util.inspect` method.
|
|
72
|
+
objectPrinter: null,
|
|
73
|
+
// End of line. Default values comes from the OS settings.
|
|
74
|
+
eol: "\n",
|
|
75
|
+
// File appending interval in milliseconds.
|
|
76
|
+
interval: 1 * 1000
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
|
|
81
|
+
// Default log level for built-in console logger. It can be overwritten in logger options above.
|
|
82
|
+
// Available values: trace, debug, info, warn, error, fatal
|
|
83
|
+
logLevel: "warn",
|
|
84
|
+
|
|
85
|
+
// Define transporter.
|
|
86
|
+
// More info: https://moleculer.services/docs/0.14/networking.html
|
|
87
|
+
// Note: During the development, you don't need to define it because all services will be loaded locally.
|
|
88
|
+
// In production you can set it via `TRANSPORTER=nats://localhost:4222` environment variable.
|
|
89
|
+
transporter: function () {
|
|
90
|
+
try {
|
|
91
|
+
return JSON.parse(process.env.STEEDOS_TRANSPORTER);
|
|
92
|
+
} catch (error) {
|
|
93
|
+
return process.env.STEEDOS_TRANSPORTER;
|
|
94
|
+
}
|
|
95
|
+
}(), //process.env.STEEDOS_TRANSPORTER,
|
|
96
|
+
|
|
97
|
+
// Define a cacher.
|
|
98
|
+
// More info: https://moleculer.services/docs/0.14/caching.html
|
|
99
|
+
cacher: function () {
|
|
100
|
+
try {
|
|
101
|
+
return JSON.parse(process.env.STEEDOS_CACHER);
|
|
102
|
+
} catch (error) {
|
|
103
|
+
return process.env.STEEDOS_CACHER;
|
|
104
|
+
}
|
|
105
|
+
}(),
|
|
106
|
+
|
|
107
|
+
// Define a serializer.
|
|
108
|
+
// Available values: "JSON", "Avro", "ProtoBuf", "MsgPack", "Notepack", "Thrift".
|
|
109
|
+
// More info: https://moleculer.services/docs/0.14/networking.html#Serialization
|
|
110
|
+
serializer: "JSON",
|
|
111
|
+
|
|
112
|
+
// Number of milliseconds to wait before reject a request with a RequestTimeout error. Disabled: 0
|
|
113
|
+
requestTimeout: 0,
|
|
114
|
+
|
|
115
|
+
// Retry policy settings. More info: https://moleculer.services/docs/0.14/fault-tolerance.html#Retry
|
|
116
|
+
retryPolicy: {
|
|
117
|
+
// Enable feature
|
|
118
|
+
enabled: false,
|
|
119
|
+
// Count of retries
|
|
120
|
+
retries: 5,
|
|
121
|
+
// First delay in milliseconds.
|
|
122
|
+
delay: 100,
|
|
123
|
+
// Maximum delay in milliseconds.
|
|
124
|
+
maxDelay: 1000,
|
|
125
|
+
// Backoff factor for delay. 2 means exponential backoff.
|
|
126
|
+
factor: 2,
|
|
127
|
+
// A function to check failed requests.
|
|
128
|
+
check: err => err && !!err.retryable
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
// Limit of calling level. If it reaches the limit, broker will throw an MaxCallLevelError error. (Infinite loop protection)
|
|
132
|
+
maxCallLevel: 100,
|
|
133
|
+
|
|
134
|
+
// Number of seconds to send heartbeat packet to other nodes.
|
|
135
|
+
heartbeatInterval: 10,
|
|
136
|
+
// Number of seconds to wait before setting node to unavailable status.
|
|
137
|
+
heartbeatTimeout: 30,
|
|
138
|
+
|
|
139
|
+
// Cloning the params of context if enabled. High performance impact, use it with caution!
|
|
140
|
+
contextParamsCloning: false,
|
|
141
|
+
|
|
142
|
+
// Tracking requests and waiting for running requests before shuting down. More info: https://moleculer.services/docs/0.14/context.html#Context-tracking
|
|
143
|
+
tracking: {
|
|
144
|
+
// Enable feature
|
|
145
|
+
enabled: false,
|
|
146
|
+
// Number of milliseconds to wait before shuting down the process.
|
|
147
|
+
shutdownTimeout: 5000,
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
// Disable built-in request & emit balancer. (Transporter must support it, as well.). More info: https://moleculer.services/docs/0.14/networking.html#Disabled-balancer
|
|
151
|
+
disableBalancer: false,
|
|
152
|
+
|
|
153
|
+
// Settings of Service Registry. More info: https://moleculer.services/docs/0.14/registry.html
|
|
154
|
+
registry: {
|
|
155
|
+
// Define balancing strategy. More info: https://moleculer.services/docs/0.14/balancing.html
|
|
156
|
+
// Available values: "RoundRobin", "Random", "CpuUsage", "Latency", "Shard"
|
|
157
|
+
strategy: "RoundRobin",
|
|
158
|
+
// Enable local action call preferring. Always call the local action instance if available.
|
|
159
|
+
preferLocal: true
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
// Settings of Circuit Breaker. More info: https://moleculer.services/docs/0.14/fault-tolerance.html#Circuit-Breaker
|
|
163
|
+
circuitBreaker: {
|
|
164
|
+
// Enable feature
|
|
165
|
+
enabled: false,
|
|
166
|
+
// Threshold value. 0.5 means that 50% should be failed for tripping.
|
|
167
|
+
threshold: 0.5,
|
|
168
|
+
// Minimum request count. Below it, CB does not trip.
|
|
169
|
+
minRequestCount: 20,
|
|
170
|
+
// Number of seconds for time window.
|
|
171
|
+
windowTime: 60,
|
|
172
|
+
// Number of milliseconds to switch from open to half-open state
|
|
173
|
+
halfOpenTime: 10 * 1000,
|
|
174
|
+
// A function to check failed requests.
|
|
175
|
+
check: err => err && err.code >= 500
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
// Settings of bulkhead feature. More info: https://moleculer.services/docs/0.14/fault-tolerance.html#Bulkhead
|
|
179
|
+
bulkhead: {
|
|
180
|
+
// Enable feature.
|
|
181
|
+
enabled: false,
|
|
182
|
+
// Maximum concurrent executions.
|
|
183
|
+
concurrency: 10,
|
|
184
|
+
// Maximum size of queue
|
|
185
|
+
maxQueueSize: 100,
|
|
186
|
+
},
|
|
187
|
+
|
|
188
|
+
// Enable action & event parameter validation. More info: https://moleculer.services/docs/0.14/validating.html
|
|
189
|
+
validator: true,
|
|
190
|
+
|
|
191
|
+
errorHandler: null,
|
|
192
|
+
|
|
193
|
+
// Enable/disable built-in metrics function. More info: https://moleculer.services/docs/0.14/metrics.html
|
|
194
|
+
metrics: {
|
|
195
|
+
enabled: false,
|
|
196
|
+
// Available built-in reporters: "Console", "CSV", "Event", "Prometheus", "Datadog", "StatsD"
|
|
197
|
+
reporter: {
|
|
198
|
+
type: "Prometheus",
|
|
199
|
+
options: {
|
|
200
|
+
// HTTP port
|
|
201
|
+
port: 3030,
|
|
202
|
+
// HTTP URL path
|
|
203
|
+
path: "/metrics",
|
|
204
|
+
// Default labels which are appended to all metrics labels
|
|
205
|
+
defaultLabels: registry => ({
|
|
206
|
+
namespace: registry.broker.namespace,
|
|
207
|
+
nodeID: registry.broker.nodeID
|
|
208
|
+
})
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
// Enable built-in tracing function. More info: https://moleculer.services/docs/0.14/tracing.html
|
|
214
|
+
tracing: {
|
|
215
|
+
enabled: false,
|
|
216
|
+
// Available built-in exporters: "Console", "Datadog", "Event", "EventLegacy", "Jaeger", "Zipkin"
|
|
217
|
+
exporter: {
|
|
218
|
+
type: "Console", // Console exporter is only for development!
|
|
219
|
+
options: {
|
|
220
|
+
// Custom logger
|
|
221
|
+
logger: null,
|
|
222
|
+
// Using colors
|
|
223
|
+
colors: true,
|
|
224
|
+
// Width of row
|
|
225
|
+
width: 100,
|
|
226
|
+
// Gauge width in the row
|
|
227
|
+
gaugeWidth: 40
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
|
|
232
|
+
// Register custom middlewares
|
|
233
|
+
middlewares: [],
|
|
234
|
+
|
|
235
|
+
// Register custom REPL commands.
|
|
236
|
+
replCommands: null,
|
|
237
|
+
|
|
238
|
+
skipProcessEventRegistration: true,
|
|
239
|
+
|
|
240
|
+
// Called after broker created.
|
|
241
|
+
created(broker) {
|
|
242
|
+
// Clear all cache entries
|
|
243
|
+
broker.logger.warn('Clear all cache entries on startup.')
|
|
244
|
+
broker.cacher.clean();
|
|
245
|
+
|
|
246
|
+
const objectql = require(require.resolve('@steedos/objectql', {paths: [process.cwd()]}));
|
|
247
|
+
objectql.broker.init(broker);
|
|
248
|
+
|
|
249
|
+
//TODO 此处不考虑多个node服务模式.
|
|
250
|
+
process.on('SIGTERM', close.bind(broker, 'SIGTERM'));
|
|
251
|
+
process.on('SIGINT', close.bind(broker, 'SIGINT'));
|
|
252
|
+
async function close(signal) {
|
|
253
|
+
try {
|
|
254
|
+
await this.cacher.clean(); //TODO 此clean 有问题,如果在启动过程中就停止服务,则会清理不干净。尝试试用reids client 原生clean(flushdb)。
|
|
255
|
+
await this.cacher.close();
|
|
256
|
+
} catch (error) {
|
|
257
|
+
// console.log(`error`, error)
|
|
258
|
+
}
|
|
259
|
+
console.log(`[${signal}]服务已停止: namespace: ${this.namespace}, nodeID: ${this.nodeID}`);
|
|
260
|
+
process.exit(0);
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
|
|
264
|
+
// Called after broker started.
|
|
265
|
+
started(broker) {
|
|
266
|
+
|
|
267
|
+
},
|
|
268
|
+
|
|
269
|
+
// Called after broker stopped.
|
|
270
|
+
stopped(broker) {
|
|
271
|
+
|
|
272
|
+
}
|
|
273
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
datasources:
|
|
2
|
+
default:
|
|
3
|
+
connection:
|
|
4
|
+
url: ${MONGO_URL}
|
|
5
|
+
objectFiles:
|
|
6
|
+
- "./steedos-app/**"
|
|
7
|
+
public:
|
|
8
|
+
cfs:
|
|
9
|
+
store: ${STEEDOS_CFS_STORE}
|
|
10
|
+
templateSpaceId: 'template'
|
|
11
|
+
webservices:
|
|
12
|
+
jsreport:
|
|
13
|
+
url: ${JSREPORT_URL}
|
|
14
|
+
urlProvideForJsreport: ${JSREPORT_TO_ACQUIRE_DATA_URL}
|
|
15
|
+
app_exchange:
|
|
16
|
+
url: ${STEEDOS_APP_EXCHANGE_URL}
|
|
17
|
+
page:
|
|
18
|
+
assetUrls: ${STEEDOS_PUBLIC_PAGE_ASSETURLS}
|
|
19
|
+
unpkgUrl: ${STEEDOS_PUBLIC_PAGE_UNPKGURL}
|
|
20
|
+
cfs:
|
|
21
|
+
store: ${STEEDOS_CFS_STORE}
|
|
22
|
+
local:
|
|
23
|
+
folder: ${STEEDOS_STORAGE_DIR}
|
|
24
|
+
aliyun:
|
|
25
|
+
region: ${STEEDOS_CFS_ALIYUN_REGION}
|
|
26
|
+
bucket: ${STEEDOS_CFS_ALIYUN_BUCKET}
|
|
27
|
+
folder: ${STEEDOS_CFS_ALIYUN_FOLDER}
|
|
28
|
+
accessKeyId: ${STEEDOS_CFS_ALIYUN_ACCESSKEYID}
|
|
29
|
+
secretAccessKey: ${STEEDOS_CFS_ALIYUN_SECRETACCESSKEY}
|
|
30
|
+
aws:
|
|
31
|
+
endpoint: ${STEEDOS_CFS_AWS_S3_ENDPOINT}
|
|
32
|
+
bucket: ${STEEDOS_CFS_AWS_S3_BUCKET}
|
|
33
|
+
accessKeyId: ${STEEDOS_CFS_AWS_S3_ACCESS_KEY_ID}
|
|
34
|
+
secretAccessKey: ${STEEDOS_CFS_AWS_S3_SECRET_ACCESS_KEY}
|
|
35
|
+
s3ForcePathStyle: ${STEEDOS_CFS_AWS_S3_FORCE_PATH_STYLE}
|
|
36
|
+
signatureVersion: ${STEEDOS_CFS_AWS_S3_SIGNATURE_VERSION}
|
|
37
|
+
steedosCloud:
|
|
38
|
+
region: ${STEEDOS_CFS_CLOUD_REGION}
|
|
39
|
+
bucket: ${STEEDOS_CFS_CLOUD_BUCKET}
|
|
40
|
+
endpoint: ${STEEDOS_CFS_CLOUD_ENDPOINT}
|
|
41
|
+
accessKeyId: ${STEEDOS_CFS_CLOUD_ACCESSKEYID}
|
|
42
|
+
secretAccessKey: ${STEEDOS_CFS_CLOUD_SECRETACCESSKEY}
|
|
43
|
+
tenant:
|
|
44
|
+
_id: ${STEEDOS_CLOUD_SPACE_ID}
|
|
45
|
+
name: 华炎魔方
|
|
46
|
+
logo_url: ${STEEDOS_TENANT_LOGO_URL}
|
|
47
|
+
logo_square_url: ${STEEDOS_TENANT_LOGO_SQUARE_URL}
|
|
48
|
+
background_url: ${STEEDOS_TENANT_BACKGROUND_URL}
|
|
49
|
+
enable_activation: ${STEEDOS_TENANT_ENABLE_ACTIVATION} # 启用初始化向导
|
|
50
|
+
enable_register: ${STEEDOS_TENANT_ENABLE_REGISTER} # 启用注册功能 true / false
|
|
51
|
+
enable_forget_password: ${STEEDOS_TENANT_ENABLE_FORGET_PASSWORD}
|
|
52
|
+
enable_create_tenant: ${STEEDOS_TENANT_ENABLE_CREATE_TENANT}
|
|
53
|
+
enable_password_login: ${STEEDOS_TENANT_ENABLE_PASSWORD_LOGIN}
|
|
54
|
+
enable_mobile_code_login: ${STEEDOS_TENANT_ENABLE_MOBILE_CODE_LOGIN}
|
|
55
|
+
enable_email_code_login: ${STEEDOS_TENANT_ENABLE_EMAIL_CODE_LOGIN}
|
|
56
|
+
enable_bind_email: ${STEEDOS_TENANT_ENABLE_BIND_EMAIL}
|
|
57
|
+
enable_bind_mobile: ${STEEDOS_TENANT_ENABLE_BIND_MOBILE}
|
|
58
|
+
tokenSecret: ${STEEDOS_TENANT_TOKEN_SECRET} # 默认值 43位字符串, 每次重启服务时生成新的值
|
|
59
|
+
accessTokenExpiresIn: ${STEEDOS_TENANT_ACCESS_TOKEN_EXPIRES_IN} # 默认值 90d
|
|
60
|
+
refreshTokenExpiresIn: ${STEEDOS_TENANT_REFRESH_TOKEN_EXPIRES_IN} # 默认值 7d
|
|
61
|
+
sms:
|
|
62
|
+
qcloud:
|
|
63
|
+
smsqueue_interval: 1000
|
|
64
|
+
sdkappid: ${STEEDOS_SMS_QCLOUD_SDKAPPID}
|
|
65
|
+
appkey: ${STEEDOS_SMS_QCLOUD_APPKEY}
|
|
66
|
+
signname: ${STEEDOS_SMS_QCLOUD_SIGNNAME}
|
|
67
|
+
email:
|
|
68
|
+
from: ${MAIL_FROM}
|
|
69
|
+
url: ${MAIL_URL}
|
|
70
|
+
signname: ${MAIL_SIGNNAME}
|
|
71
|
+
cron:
|
|
72
|
+
instancerecordqueue_interval: 10000
|
|
73
|
+
mailqueue_interval: 10000
|
|
74
|
+
# push_interval: 1000
|
|
75
|
+
webhookqueue_interval: 1000
|
|
76
|
+
build_index: "0 0 * * * *"
|
|
77
|
+
instances_stat:
|
|
78
|
+
schedule: ${STEEDOS_INSTANCES_STAT_SCHEDULE}
|
|
79
|
+
dingtalk:
|
|
80
|
+
api_Key: ${APIKEY}
|
|
81
|
+
log_path: ${DING_LOGPATH}
|
|
82
|
+
qywx:
|
|
83
|
+
api_Key: ${APIKEY}
|
|
84
|
+
log_path: ${QYWX_LOGPATH}
|
|
85
|
+
push:
|
|
86
|
+
apn:
|
|
87
|
+
keyData: ${STEEDOS_PUSH_APN_DATA}
|
|
88
|
+
certData: ${STEEDOS_PUSH_APN_DATA}
|
|
89
|
+
gcm:
|
|
90
|
+
apiKey: xxx
|
|
91
|
+
xinge:
|
|
92
|
+
accessId: ${STEEDOS_PUSH_XINGE_ACCESSID}
|
|
93
|
+
secretKey: ${STEEDOS_PUSH_XINGE_SECRETKEY}
|
|
94
|
+
huawei:
|
|
95
|
+
appId: ${STEEDOS_PUSH_HUAWEI_APPID}
|
|
96
|
+
appSecret: ${STEEDOS_PUSH_HUAWEI_APPSECRET}
|
|
97
|
+
appPkgName: ${STEEDOS_PUSH_HUAWEI_APPPKGNAME}
|
|
98
|
+
mi:
|
|
99
|
+
appSecret: ${STEEDOS_PUSH_MI_APPSECRET}
|
|
100
|
+
production: ${STEEDOS_PUSH_MI_PRODUCTION}
|
|
101
|
+
pay:
|
|
102
|
+
weixin:
|
|
103
|
+
appid: ${PAY_WEIXIN_APPID}
|
|
104
|
+
mch_id: ${PAY_WEIXIN_MCH_ID}
|
|
105
|
+
partner_key: ${PAY_WEIXIN_PARTNER_KEY}
|
|
106
|
+
sso:
|
|
107
|
+
oidc:
|
|
108
|
+
config_url: ${SSO_OIDC_CONFIG_URL}
|
|
109
|
+
client_id: ${SSO_OIDC_CLIENT_ID}
|
|
110
|
+
client_secret: ${SSO_OIDC_CLIENT_SECRET}
|
|
111
|
+
name: ${SSO_OIDC_NAME}
|
|
112
|
+
label: ${SSO_OIDC_LABEL}
|
|
113
|
+
logo: ${SSO_OIDC_LOGO}
|
|
114
|
+
require_local_account: ${SSO_OIDC_REQUIRE_LOCAL_ACCOUNT}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function authRequest(url: string, requestOptions: any, requestCallback: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/commands/i18n.js
CHANGED
|
@@ -23,7 +23,7 @@ I18nCommand.args = [
|
|
|
23
23
|
description: 'language',
|
|
24
24
|
}
|
|
25
25
|
];
|
|
26
|
-
I18nCommand.description = `
|
|
26
|
+
I18nCommand.description = `sync i18n resources`;
|
|
27
27
|
I18nCommand.flags = {
|
|
28
28
|
serverDir: flags.string({ char: 's', description: 'Steedos Server Dir' }),
|
|
29
29
|
packageDir: flags.string({ char: 'p', description: 'Steedos Package Dir' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/commands/i18n.ts"],"names":[],"mappings":";;AAAA,MAAM,EAAC,OAAO,EAAE,KAAK,EAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA;AAClD,yCAAsC;AACtC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,MAAM,WAAY,SAAQ,OAAO;IAC/B,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC/C,+BAA+B;QAC/B,6BAA6B;QAC7B,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QACpB,IAAI,SAAS,GAAG,KAAK,CAAC,SAAS,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QACjD,IAAI,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,SAAS,CAAC;QAC9C,MAAc,CAAC,MAAM,GAAG,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACzB,IAAA,gBAAQ,EAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IAC5B,CAAC;CACF;AAED,WAAW,CAAC,IAAI,GAAG;IAClB;QACC,IAAI,EAAS,MAAM;QACnB,QAAQ,EAAK,IAAI;QACjB,WAAW,EAAE,UAAU;KACvB;CACD,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/commands/i18n.ts"],"names":[],"mappings":";;AAAA,MAAM,EAAC,OAAO,EAAE,KAAK,EAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAA;AAClD,yCAAsC;AACtC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,MAAM,WAAY,SAAQ,OAAO;IAC/B,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC/C,+BAA+B;QAC/B,6BAA6B;QAC7B,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QACpB,IAAI,SAAS,GAAG,KAAK,CAAC,SAAS,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QACjD,IAAI,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,SAAS,CAAC;QAC9C,MAAc,CAAC,MAAM,GAAG,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACzB,IAAA,gBAAQ,EAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IAC5B,CAAC;CACF;AAED,WAAW,CAAC,IAAI,GAAG;IAClB;QACC,IAAI,EAAS,MAAM;QACnB,QAAQ,EAAK,IAAI;QACjB,WAAW,EAAE,UAAU;KACvB;CACD,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,qBAAqB,CAAA;AAE/C,WAAW,CAAC,KAAK,GAAG;IAChB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,oBAAoB,EAAC,CAAC;IACvE,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,qBAAqB,EAAC,CAAC;CAC5E,CAAA;AAED,MAAM,CAAC,OAAO,GAAG,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|