diff --git a/CHANGELOG.md b/CHANGELOG.md index f329cd57..ed45d4f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ * 测试集合处,点击删除不成功 * 修改编辑接口后,再回到测试集合处数据不更新问题 * 修复mongodb帐号密码配置错误时引发的错误 -* 修复删除分组后侧边数据没哟更新问题 +* 修复删除分组后侧边数据没有更新问题 ### v1.3.4 diff --git a/client/containers/Project/Interface/InterfaceList/Edit.scss b/client/containers/Project/Interface/InterfaceList/Edit.scss index 947b5bf9..e02b9a25 100755 --- a/client/containers/Project/Interface/InterfaceList/Edit.scss +++ b/client/containers/Project/Interface/InterfaceList/Edit.scss @@ -68,6 +68,7 @@ text-overflow:ellipsis; white-space: nowrap; padding-right: 24px; + line-height: 100%; } .colValue{ display: inline-block; diff --git a/doc/images/ldap.png b/doc/images/ldap.png new file mode 100644 index 00000000..13b31855 Binary files /dev/null and b/doc/images/ldap.png differ diff --git a/doc/page/manage/build.md b/doc/page/manage/build.md index b642e63f..cb13015c 100755 --- a/doc/page/manage/build.md +++ b/doc/page/manage/build.md @@ -76,7 +76,12 @@ node server/app.js //启动服务器后,请访问 127.0.0.1:{config.json配置 打开项目目录 config.json 文件,添加如下字段: ``` -"ldapLogin": { +{ + "port": "*****", + "adminAccount": "********", + "db": {...}, + "mail": {...}, + "ldapLogin": { "enable": true, "server": "ldap://l-ldapt1.ops.dev.cn0.qunar.com", "baseDn": "CN=Admin,CN=Users,DC=test,DC=com", @@ -84,6 +89,8 @@ node server/app.js //启动服务器后,请访问 127.0.0.1:{config.json配置 "searchDn": "OU=UserContainer,DC=test,DC=com", "searchStandard": "mail" } +} + ``` 这里面的配置项含义如下: @@ -94,4 +101,8 @@ node server/app.js //启动服务器后,请访问 127.0.0.1:{config.json配置 - `searchDn` 查询用户数据的路径,类似数据库中的一张表的地址,注意这里也必须是全路径; - `searchStandard` 查询条件,这里是mail表示查询用户信息是通过邮箱信息来查询的。注意,该字段信息与LDAP数据库存储数据的字段相对应,如果如果存储用户邮箱信息的字段是email, 这里就需要修改成email. +用npm run dev重新编译,可以在登录页看到如下画面,说明ladp配置成功 + + +




\ No newline at end of file diff --git a/static/doc/adv_mock.html b/static/doc/adv_mock.html index a7feaf61..2f589874 100644 --- a/static/doc/adv_mock.html +++ b/static/doc/adv_mock.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 使用手册 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
@@ -147,15 +142,15 @@ diff --git a/static/doc/api.html b/static/doc/api.html index 4a94b829..471fc550 100644 --- a/static/doc/api.html +++ b/static/doc/api.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
diff --git a/static/doc/case.html b/static/doc/case.html index ea4678c6..6ec637f1 100644 --- a/static/doc/case.html +++ b/static/doc/case.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 使用手册 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
diff --git a/static/doc/data.html b/static/doc/data.html index 63a663ed..d4f3e289 100644 --- a/static/doc/data.html +++ b/static/doc/data.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 使用手册 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
@@ -163,15 +158,15 @@
  • - Postman 数据导入 + Postman 数据导入
  • - HAR 数据导入 + HAR 数据导入
  • - Swagger 数据导入 + Swagger 数据导入
  • diff --git a/static/doc/devops.html b/static/doc/devops.html index 40ebb450..5173d1c2 100644 --- a/static/doc/devops.html +++ b/static/doc/devops.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 内网部署 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    @@ -117,11 +112,11 @@ @@ -141,7 +136,7 @@
  • - 配置邮箱 (仅支持 SMTP) + 配置邮箱 (仅支持 SMTP)
  • @@ -202,7 +197,12 @@ yapi update -v v1.1.}

    如何申请STMP服务器账号和密码可以参考下面的教程:如何开通电子邮箱的SMTP功能

    配置LDAP登录 #

    打开项目目录 config.json 文件,添加如下字段:

    -
    "ldapLogin": {
    +
    {
    +  "port": "*****",
    +  "adminAccount": "********",
    +  "db": {...},
    +  "mail": {...},
    +  "ldapLogin": {
           "enable": true,
           "server": "ldap://l-ldapt1.ops.dev.cn0.qunar.com",
           "baseDn": "CN=Admin,CN=Users,DC=test,DC=com",
    @@ -210,9 +210,12 @@ yapi update -v v1.1."searchDn": "OU=UserContainer,DC=test,DC=com",
           "searchStandard": "mail"
        }
    +}
     

    这里面的配置项含义如下:

    • enable 表示是否配置LDAP登录,true(支持LDAP登录)/false(不支持LDAP登录);
    • server LDAP服务器地址,前面需要加上 ldap:// 前缀,也可以是ldaps:// 表示是通过SSL连接;
    • baseDn LDAP服务器的登录用户名,必须是从根结点到用户节点的全路径;
    • bindPassword 登录该LDAP服务器的密码;
    • searchDn 查询用户数据的路径,类似数据库中的一张表的地址,注意这里也必须是全路径;
    • searchStandard 查询条件,这里是mail表示查询用户信息是通过邮箱信息来查询的。注意,该字段信息与LDAP数据库存储数据的字段相对应,如果如果存储用户邮箱信息的字段是email, 这里就需要修改成email.
    +

    用npm run dev重新编译,可以在登录页看到如下画面,说明ladp配置成功

    +






    diff --git a/static/doc/getfamiliar.html b/static/doc/getfamiliar.html index 464cba5d..f8ca6f37 100644 --- a/static/doc/getfamiliar.html +++ b/static/doc/getfamiliar.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 使用手册 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    diff --git a/static/doc/images/ldap.png b/static/doc/images/ldap.png new file mode 100644 index 00000000..13b31855 Binary files /dev/null and b/static/doc/images/ldap.png differ diff --git a/static/doc/index.html b/static/doc/index.html index 1791d7e0..99510b54 100644 --- a/static/doc/index.html +++ b/static/doc/index.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    diff --git a/static/doc/interface.html b/static/doc/interface.html index c7caebf7..9b0fb743 100644 --- a/static/doc/interface.html +++ b/static/doc/interface.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 使用手册 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    diff --git a/static/doc/manage.html b/static/doc/manage.html index e6e14497..4d292a7a 100644 --- a/static/doc/manage.html +++ b/static/doc/manage.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 使用手册 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    diff --git a/static/doc/mock.html b/static/doc/mock.html index 8e9eb5f0..c19f576d 100644 --- a/static/doc/mock.html +++ b/static/doc/mock.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 使用手册 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    @@ -145,19 +140,19 @@
  • - 定义 mock 数据示例 + 定义 mock 数据示例
  • - YApi-Mock 跟 Mockjs 区别 + YApi-Mock 跟 Mockjs 区别
  • - 如何使用 Mock + 如何使用 Mock
  • - Mock 语法规范 + Mock 语法规范
  • diff --git a/static/doc/plugin-dev.html b/static/doc/plugin-dev.html index 85e8a064..287091de 100644 --- a/static/doc/plugin-dev.html +++ b/static/doc/plugin-dev.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 插件 Wiki - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    @@ -123,7 +118,7 @@ diff --git a/static/doc/quickstart.html b/static/doc/quickstart.html index a1a29312..1877dea5 100644 --- a/static/doc/quickstart.html +++ b/static/doc/quickstart.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 使用手册 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    diff --git a/static/doc/redev.html b/static/doc/redev.html index 19b04203..149c8cf4 100644 --- a/static/doc/redev.html +++ b/static/doc/redev.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 插件 Wiki - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    @@ -123,7 +118,7 @@
  • - 启动 prd 环境服务器 + 启动 prd 环境服务器
  • diff --git a/static/doc/releases.html b/static/doc/releases.html index b7d674ba..24ca9b0a 100644 --- a/static/doc/releases.html +++ b/static/doc/releases.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 版本记录 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -
    @@ -185,7 +180,7 @@

    v1.3.5 #

    Feature #

    • 增加项目成员批量导入
    • 数据导入同步,数据导入支持swagger 3.0
    • swagger 数据导入支持 2xx 的httpcode
    • 新增系统信息页面

    Bug Fixed #

      -
    • 修复离开接口编辑页面的 confirm 框有时候会触发两次 & confirm 的 ‘X’ 按钮无效
    • 修复添加集合后测试集合list不更新问题
    • 测试集合点击对应接口侧边栏不切换
    • 测试集合处,点击删除不成功
    • 修改编辑接口后,再回到测试集合处数据不更新问题
    • 修复mongodb帐号密码配置错误时引发的错误
    • 修复删除分组后侧边数据没哟更新问题
    +
  • 修复离开接口编辑页面的 confirm 框有时候会触发两次 & confirm 的 ‘X’ 按钮无效
  • 修复添加集合后测试集合list不更新问题
  • 测试集合点击对应接口侧边栏不切换
  • 测试集合处,点击删除不成功
  • 修改编辑接口后,再回到测试集合处数据不更新问题
  • 修复mongodb帐号密码配置错误时引发的错误
  • 修复删除分组后侧边数据没有更新问题
  • v1.3.4 #

    Feature #

    • 帮助文档首页增加部署公司
    • 进入project页面加入loading
    • 接口list页table中加入分页
    • 项目添加者自动变成项目组长

    Bug Fixed #

      diff --git a/static/doc/usage.html b/static/doc/usage.html index 71ae4e0b..14e944b6 100644 --- a/static/doc/usage.html +++ b/static/doc/usage.html @@ -2,15 +2,14 @@ + + + + + + YApi 接口管理平台 使用手册 - - - - - - - - + @@ -18,10 +17,6 @@ - - - -