Skip to content

Commit 30afeb0

Browse files
committed
feat: update docs
1 parent 0a87b07 commit 30afeb0

File tree

5 files changed

+7
-14
lines changed

5 files changed

+7
-14
lines changed

README.zh-CN.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ NocoBase 采用插件化架构,所有新功能都可以通过开发和安装
7070

7171
NocoBase 支持三种安装方式:
7272

73-
- <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/docker-compose">Docker 安装(推荐)</a>
73+
- <a target="_blank" href="https://docs-cn.nocobase.com/welcome/getting-started/installation/docker-compose">Docker 安装(推荐)</a>
7474

7575
适合无代码场景,不需要写代码。升级时,下载最新镜像并重启即可。
7676

77-
- <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/create-nocobase-app">create-nocobase-app 安装</a>
77+
- <a target="_blank" href="https://docs-cn.nocobase.com/welcome/getting-started/installation/create-nocobase-app">create-nocobase-app 安装</a>
7878

7979
项目的业务代码完全独立,支持低代码开发。
8080

81-
- <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/git-clone">Git 源码安装</a>
81+
- <a target="_blank" href="https://docs-cn.nocobase.com/welcome/getting-started/installation/git-clone">Git 源码安装</a>
8282

8383
如果你想体验最新未发布版本,或者想参与贡献,需要在源码上进行修改、调试,建议选择这种安装方式,对开发技术水平要求较高,如果代码有更新,可以走 git 流程拉取最新代码。

docs/en-US/welcome/getting-started/installation/git-clone.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ yarn install
2727

2828
## 4. Set environment variables
2929

30-
The environment variables required by NocoBase are stored in the root `.env` file, modify the environment variables according to the actual situation, if you don't know how to change them, [click here for environment variables description](../../development/env.md), or you can leave it as default.
30+
The environment variables required by NocoBase are stored in the root `.env` file, modify the environment variables according to the actual situation, if you don't know how to change them, [click here for environment variables description](/api/env), or you can leave it as default.
3131

3232
```bash
3333
# Using sqlite database

docs/en-US/welcome/getting-started/upgrading/git-clone.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ git pull
1414

1515
## 3. Update dependencies
1616

17-
```
17+
```bash
1818
yarn install
1919
```
2020

docs/zh-CN/welcome/getting-started/installation/git-clone.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ yarn install
2929

3030
## 4. 设置环境变量
3131

32-
NocoBase 所需的环境变量储存在根目录 `.env` 文件里,根据实际情况修改环境变量,如果你不知道怎么改,[点此查看环境变量说明](../../development/env.md),也可以保持默认。
32+
NocoBase 所需的环境变量储存在根目录 `.env` 文件里,根据实际情况修改环境变量,如果你不知道怎么改,[点此查看环境变量说明](/api/env),也可以保持默认。
3333

3434
```bash
3535
# 使用 sqlite 数据库

packages/core/server/src/plugin-manager/PluginManager.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,7 @@ export class PluginManager {
4242
this.repository = this.collection.repository as PluginManagerRepository;
4343
this.repository.setPluginManager(this);
4444
this.app.resourcer.define(resourceOptions);
45-
this.app.acl.use(async (ctx, next) => {
46-
if (ctx.action.resourceName === 'pm') {
47-
ctx.permission = {
48-
skip: true,
49-
};
50-
}
51-
await next();
52-
});
45+
this.app.acl.allow('pm', ['enable', 'disable', 'remove'], 'allowConfigure');
5346
this.server = net.createServer((socket) => {
5447
socket.on('data', async (data) => {
5548
const { method, plugins } = JSON.parse(data.toString());

0 commit comments

Comments
 (0)