From 6180f6b816ead992713722ed78b12f13a7449ff5 Mon Sep 17 00:00:00 2001 From: linchen1987 Date: Mon, 27 Jun 2022 13:39:04 +0800 Subject: [PATCH] docs: update doc for Blocklet SDK (#143) --- .makefiles/bump_version.sh | 3 +-- CHANGELOG.md | 4 ++++ blocklet.yml | 6 ++++-- logo.png | Bin 0 -> 4572 bytes package.json | 2 +- src/developer/blocklet-sdk/index.md | 26 +++++++++++++++++++++++-- src/developer/blocklet-sdk/index.zh.md | 26 +++++++++++++++++++++++-- version | 2 +- 8 files changed, 59 insertions(+), 10 deletions(-) create mode 100644 logo.png diff --git a/.makefiles/bump_version.sh b/.makefiles/bump_version.sh index ad8530c..40e23c6 100755 --- a/.makefiles/bump_version.sh +++ b/.makefiles/bump_version.sh @@ -26,8 +26,7 @@ if [ -f $VERSION ]; then V_PATCH=${BASE_LIST[2]} echo -e "${NOTICE_FLAG} Current version: ${WHITE}$BASE_STRING" echo -e "${NOTICE_FLAG} Latest commit hash: ${WHITE}$LATEST_HASH" - V_MINOR=$((V_MINOR + 1)) - V_PATCH=0 + V_PATCH=$((V_PATCH + 1)) SUGGESTED_VERSION="$V_MAJOR.$V_MINOR.$V_PATCH" echo -ne "${QUESTION_FLAG} ${CYAN}Enter a version number [${WHITE}$SUGGESTED_VERSION${CYAN}]: " read INPUT_STRING diff --git a/CHANGELOG.md b/CHANGELOG.md index ea3172f..5ef07f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.6.3 (June 27, 2022) + +- docs: update doc for Blocklet SDK + ## 0.6.2 (April 28, 2022) - doc: update sdk doc diff --git a/blocklet.yml b/blocklet.yml index 0eb208a..7d2a4e8 100644 --- a/blocklet.yml +++ b/blocklet.yml @@ -1,5 +1,5 @@ name: '@arcblock/abtnode-docs' -version: 0.6.2 +version: 0.6.3 description: >- Blocklet Server Documentation, a help documentation for quickly get started with Blocklet Server. @@ -8,9 +8,11 @@ files: - public/ - screenshots/ - blocklet.md + - logo.png keywords: - Docs - ABTNode +logo: logo.png repository: type: git url: git+https://github.com/ArcBlock/abtnode-docs.git @@ -25,7 +27,7 @@ title: Blocklet Server Docs community: https://gitter.im/ArcBlock/community documentation: https://docs.arcblock.io support: support@arcblock.io -specVersion: 1.2.4 +specVersion: 1.2.7 did: z8ia5NLSuFwhPimBJHRdPmp6yx9fG8rcFex4b timeout: start: 10 diff --git a/logo.png b/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..49ccb839fd3db750ee14e7d41532c5427a095b7e GIT binary patch literal 4572 zcmbtYc|4Te+dngdvCa@hWa;sc%2MHn@iL=ClBJZ8t;a)1p=?=Z1}*lbvJ^5!j3qp_ z5QbDlhNNg2GomoE)Qn}uEbra#^LhXMect!;{&9cKb7s@qA=0^>ZdW>Jw8O2L~Qijk&==|_Jz5w>o?XE zOJZKXww!EFX6$cB5bZrHJ14nqS;K5tqWrnU8Ht-ZZGRT{XI`JNOO#4?786UzS!*62 zJjT4Y95igZ5i6urr#1wn3>h{(@Lu^`6L-e5peyF*UvGqM9#yCHxB7PqmE!o^wUfeU z2ay`CYkqzovoo1oE|;H}m>4IR>q-|&FgpOIy1uRsKku@rDa^K2B|5q&d2XCvt#llgUf%_z<4JS*38|}9>d_|a$|7-+ z#IyC@3G)a>haUsMmmL9>lwaj@bb=hwHP>`%P7rD4Eh2wT)QFA41d`zAVRF*!N8^zVd(?_f3A$3<`vg?q^9 z?pcZVVI-fZAO7_RcGLJ9H!f}|6F*XZp8OFeUb#s&kC36!&qWy4n4UwV6#l;n^C-TR1 zVLS$9L5YXc$qJtK9+Q6t?@{O1o7FK8NslUg#|}Tdq}B6%+{ac3?XuC3V4UGji`Edl zY~4vL)sCNs?8sTm#iAj@Adm;s4k;2fqJlb%7*@99QWNpXPF$C_PuK||Oe+7@&6`;Z z=(p0ijn%8t_@1<~B0qeMNZWT%_^@c5c|iemb2bc-JsHF1QO^bgHVD121O5pK{95%b zgeOyKG9t345{g=-a$1KGqHPwq8C7UA3K70p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HV<>LoM9U!PGX&Q&lONaeVNBky={xgHx_lVFdtl;eC5`A}RmtK=^S)M%FRo3X zZpivLv)LavQb(ezv8(-9I&GiDquaCmy#>ffJV)-e=%Zd!{+;wHK5SUYsDZ0xUs7+V z?5XS(4?)%AH6-_1*(oNkVRi3zw_GkFguGKb7HH*0O`kC5Cq~7B`^$?NFQ_2x}?X!T+y;p*sF|67pDY(qIBOBSA(3-^^ z=SsCRpui91bd4J%G`tL)C8V-C~LjU*y>lDsNrCMz(qoNgIvN-|##KNp8<$+8X zX>XVF+-GYbq7yu&_hDNy&X$*#*YX0Up1v3_D)!t4hy?rfIXDs&@whaNgmld$W)HBgo=zt7_vwA{{(cRxc9IIay4*^ z0=ganVnAt)ySDfe#?OWd8uhIW1+cLTTon@&vviRN8-g9U02M;`qXhEAqLiQ?DteAa z1_sWDG^2V7V1zL6hJ1S8Q??4Kf)dO}+ZnK%h((s-br|q)lF2hU-nlykYrB~^ zbLhN=0&~S-k43H$xUcOj3C@qYO_{A_8+U01MJDxJl7#c=5Nx=!qN=~_`&H!^=ealEc1k!>(m{fE!Cz+UI~u=!h?WNgWWRr|V~ zIL%?PeR+enf`=|QJgr3{d?LQpQCAkZs!x$|C}Lq!kFbqtpX_6H96?gS{A<-uRf=e1 zDP6}^pNLoDy^#~cUB;*RtYHPDttf7gKyTu_mjuzKNTzSdvR!|xw18LtDuNCx_4PyH stPu$;a@}Is4il3f?RigIN0{`OimlR`C(VbU%NSsH)X}=`uy4|T17qHleE `-1`: The latest time is at first. `1`: The latest time is at last. +- _@return_ `{ code, users, paging }` -- _@return_ `{ code, users }` +``` +Paging { + total: number of users + pageSize: number of users per page + pageCount: number of page + page: current page number +} +``` #### client.getPermissionsByRole(role) diff --git a/src/developer/blocklet-sdk/index.zh.md b/src/developer/blocklet-sdk/index.zh.md index fd5a020..29205eb 100644 --- a/src/developer/blocklet-sdk/index.zh.md +++ b/src/developer/blocklet-sdk/index.zh.md @@ -57,9 +57,31 @@ Get owner of the team #### client.getUsers() -Get all users of the team +获取用户列表 + +- _@param_ **paging** `Object` + - **paging.pageSize** `` + - **paging.page** `` +- _@param_ **query** `Object` + - **query.role** `String` 按 role name 匹配 + - `$none`: 匹配没有 role 的用户 + - **query.approved** `Boolean` 按 approved 匹配 + - **query.search** `String` 按 did 或 fullName 匹配 +- _@param_ **sort** `Object` + - **sort.createdAt** `Number` + - **sort.updatedAt** `Number` + - **sort.lastLoginAt** `Number` + - > `-1`: The latest time is at first. `1`: The latest time is at last. +- _@return_ `{ code, users, paging }` -- _@return_ `{ code, users }` +``` +Paging { + total: 全部用户数量 + pageSize: 每页用户数量 + pageCount: 一共有几页 + page: 当前是第几页 +} +``` #### client.getPermissionsByRole(role) diff --git a/version b/version index b616048..844f6a9 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.6.2 +0.6.3