Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Revert "feat: add js document" #817

Merged
merged 1 commit into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 1 addition & 34 deletions docs/en/start/lock/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Demo success!
Download java sdk and examples:

```shell @if.not.exist java-sdk
git clone https://github.com/layotto/java-sdk.git
git clone https://github.com/layotto/java-sdk
```

Change directory:
Expand Down Expand Up @@ -138,39 +138,6 @@ TryLockResponse{success=true}
UnlockResponse{status=LOCK_UNEXIST}
```

### **JavaScript**

Download js sdk and examples:

```shell @if.not.exist js-sdk
git clone https://github.com/layotto/js-sdk.git
```

Change directory:

```shell
cd js-sdk/demo
```

Build:

```shell
npm install
```

Run the examples:

```shell
npm run test:lock
```

And you will see:

```bash
true
{ status: 0 }
```

<!-- tabs:end -->

## Next Step
Expand Down
35 changes: 1 addition & 34 deletions docs/zh/start/lock/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Demo success!
下载 java sdk 和示例代码:

```shell @if.not.exist java-sdk
git clone https://github.com/layotto/java-sdk.git
git clone https://github.com/layotto/java-sdk
```

切换目录:
Expand Down Expand Up @@ -138,39 +138,6 @@ TryLockResponse{success=true}
UnlockResponse{status=LOCK_UNEXIST}
```

### **JavaScript**

下载 js sdk 和示例代码:

```shell @if.not.exist js-sdk
git clone https://github.com/layotto/js-sdk.git
```

切换目录:

```shell
cd js-sdk/demo
```

构建:

```shell
npm install
```

运行:

```shell
npm run test:lock
```

打印出以下信息说明运行成功:

```bash
true
{ status: 0 }
```

<!-- tabs:end -->

## 下一步
Expand Down