Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
linchen1987 committed Jun 9, 2023
1 parent 78d8e65 commit 5f31413
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 23 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.131 (June 09, 2023)

- fix

## 0.1.130 (June 09, 2023)

- docs: update docs for blocklet sdk
Expand Down
2 changes: 1 addition & 1 deletion developer/docs/blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repository:
type: git
url: git+https://github.com/blocklet/blocklet-site.git
specVersion: 1.2.8
version: 0.1.130
version: 0.1.131
logo: logo.png
files:
- hooks/post-start.js
Expand Down
18 changes: 9 additions & 9 deletions developer/docs/pages/reference/blocklet-sdk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,15 @@ const {

Please reference [Blocklet Preferences](/how-to/preferences) for how to change the structure and value in `env.preferences`.

### mode

In which mode the blocklet is running

```js
env.mode === 'development'; // The blocklet is running in the development mode
env.mode === 'production'; // The blocklet is running in the production mode
```

## Config

Unlike Environment, the information in Config will be updated in real time, and the application does not need to be restarted
Expand All @@ -506,15 +515,6 @@ import { env, components } from '@blocklet/config'
- `port` e.g. 5678
- `webEndpoint` e.g. http://127.0.0.1:5678

### mode

In which mode the blocklet is running

```js
env.mode === 'development'; // The blocklet is running in the development mode
env.mode === 'production'; // The blocklet is running in the production mode
```

## Component

```javascript
Expand Down
18 changes: 9 additions & 9 deletions developer/docs/pages/reference/blocklet-sdk/index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,15 @@ const {

请参照 [应用偏好](/how-to/preferences) 来了解如何修改 `env.preferences` 的结构和数据。

### mode

Blocklet 以什么模式运行

```js
env.mode === 'development'; // Blocklet 以开发模式运行
env.mode === 'production'; // Blocklet 以正式模式运行
```

## Config

和 Environment 不用的是 Config 中的信息会实时更新,应用无需重启
Expand All @@ -506,15 +515,6 @@ import { env, components } from '@blocklet/config'
- `port` e.g. 5678
- `webEndpoint` e.g. http://127.0.0.1:5678

### mode

Blocklet 以什么模式运行

```js
env.mode === 'development'; // Blocklet 以开发模式运行
env.mode === 'production'; // Blocklet 以正式模式运行
```

## Component

```javascript
Expand Down
2 changes: 1 addition & 1 deletion developer/pages/blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository:
type: git
url: git+https://github.com/blocklet/blocklet-site.git
specVersion: 1.2.8
version: 0.1.130
version: 0.1.131
logo: logo.png
files: []
interfaces:
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.130
0.1.131
2 changes: 1 addition & 1 deletion website/docs/blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repository:
type: git
url: git+https://github.com/blocklet/blocklet-site.git
specVersion: 1.2.8
version: 0.1.130
version: 0.1.131
logo: logo.png
files: []
interfaces:
Expand Down
2 changes: 1 addition & 1 deletion website/pages/blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository:
type: git
url: git+https://github.com/blocklet/blocklet-site.git
specVersion: 1.2.8
version: 0.1.130
version: 0.1.131
logo: logo.png
files: []
interfaces:
Expand Down

0 comments on commit 5f31413

Please sign in to comment.