-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1498 from thematters/develop
Release: v3.15.0
- Loading branch information
Showing
42 changed files
with
916 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@master | ||
|
||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '12.16' | ||
|
||
- name: Cache Dependencies | ||
id: cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Generate Types | ||
if: github.ref == 'refs/heads/develop' || github.base_ref == 'develop' | ||
run: | | ||
npm run gen:clean \ | ||
&& npm run gen:type | ||
- name: Generate Types (production) | ||
if: github.ref == 'refs/heads/master' || github.base_ref == 'master' | ||
run: | | ||
npm run gen:clean \ | ||
&& npm run gen:type:prod | ||
- name: Lint | ||
run: | | ||
npm run lint \ | ||
&& npm run format:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "matters-web", | ||
"version": "3.14.0", | ||
"version": "3.15.0", | ||
"description": "codebase of Matters' website", | ||
"sideEffects": false, | ||
"author": "Matters <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,58 @@ | ||
import { TEXT } from '~/common/enums' | ||
|
||
export const OAUTH_PROVIDER = ['likecoin', 'stripe-connect'] | ||
|
||
export const OAUTH_SCOPE_TREE = { | ||
query: { | ||
viewer: { | ||
__text__: { | ||
zh_hant: ` Liker ID、${TEXT.zh_hant.email}、${TEXT.zh_hant.settingsAccount}、${TEXT.zh_hant.draft}、收藏作品、${TEXT.zh_hant.readHistory}等`, | ||
zh_hans: ` Liker ID、${TEXT.zh_hant.email}、${TEXT.zh_hant.settingsAccount}、${TEXT.zh_hant.draft}、收藏作品、${TEXT.zh_hant.readHistory}等`, | ||
_t: { | ||
zh_hant: `Liker ID、電子信箱、帳戶設定、草稿、收藏作品、瀏覽記錄等`, | ||
zh_hans: `Liker ID、邮箱、帳戶设定、草稿、收藏作品、浏览记录等`, | ||
}, | ||
likerId: { | ||
__text__: { | ||
zh_hant: ' Liker ID', | ||
zh_hans: ' Liker ID', | ||
_t: { | ||
zh_hant: 'Liker ID', | ||
zh_hans: 'Liker ID', | ||
}, | ||
}, | ||
info: { | ||
email: { | ||
__text__: { | ||
zh_hant: TEXT.zh_hant.email, | ||
zh_hans: TEXT.zh_hant.email, | ||
_t: { | ||
zh_hant: '電子信箱', | ||
zh_hans: '邮箱', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
mutation: {}, | ||
mutation: { | ||
level1: { | ||
_t: { | ||
zh_hant: '基本信息、標籤、評論、封鎖、追蹤等', | ||
zh_hans: '基本信息、标签、评论、屏蔽、追踪等', | ||
}, | ||
}, | ||
level2: { | ||
_t: { | ||
zh_hant: '作品發佈、評論修改、草稿刪除等', | ||
zh_hans: '作品发布、评论修改、草稿删除等', | ||
}, | ||
publishArticle: { | ||
_t: { | ||
zh_hant: '作品發佈', | ||
zh_hans: '作品发布', | ||
}, | ||
}, | ||
}, | ||
level3: { | ||
_t: { | ||
zh_hant: '作品修訂、錢包、金流等', | ||
zh_hans: '文章修订、钱包、支付等', | ||
}, | ||
putDraft: { | ||
_t: { | ||
zh_hant: '作品草稿', | ||
zh_hans: '作品草稿', | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ const ViewerFragments = { | |
hasPaymentPassword | ||
} | ||
info { | ||
createdAt | ||
agreeOn | ||
userNameEditable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.