@marktowin/prototype-core 1.0.4 → 1.0.5

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/README.md CHANGED
@@ -21,7 +21,26 @@ void mountPrototypeApp({
21
21
  })
22
22
  ```
23
23
 
24
- 完整接入方式见 `examples/basic`。默认关闭访问认证并使用本地协作模式;需要云端协作时通过 `runtimeConfig` 显式注入配置。
24
+ 完整接入方式见 `examples/basic`。默认关闭访问认证并使用本地协作模式;需要云端协作时通过 `runtimeConfig` 显式注入配置。
25
+
26
+ 数据源面板会根据 `runtimeConfig` 检查 Gitee、OSS、原型访问和 Bug 删除密码是否齐全。部署变量不能在浏览器中直接读取,消费者只能传入是否存在,禁止传入真实值:
27
+
28
+ ```ts
29
+ runtimeConfig: {
30
+ environment: {
31
+ deployment: {
32
+ host: Boolean(__DEPLOY_ENV_STATUS__.host),
33
+ port: Boolean(__DEPLOY_ENV_STATUS__.port),
34
+ username: Boolean(__DEPLOY_ENV_STATUS__.username),
35
+ password: Boolean(__DEPLOY_ENV_STATUS__.password),
36
+ path: Boolean(__DEPLOY_ENV_STATUS__.path),
37
+ backupPath: Boolean(__DEPLOY_ENV_STATUS__.backupPath),
38
+ },
39
+ },
40
+ }
41
+ ```
42
+
43
+ `__DEPLOY_ENV_STATUS__` 应由消费者构建配置根据 `DEPLOY_*` 是否存在生成,且只能包含布尔值。
25
44
 
26
45
  ## 开发
27
46