-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: add ci yml * ci: fix check-types * ci: lint config * ci: lint fix * feat: log version * ci: check more node versions
- Loading branch information
Showing
174 changed files
with
11,387 additions
and
8,363 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,6 @@ app/web/store | |
plugins/ | ||
app/web/asset/ | ||
app/view/ | ||
test.js | ||
test.js | ||
|
||
config/manifest.json |
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,12 @@ | ||
module.exports = { | ||
extends: [require.resolve('ko-lint-config/.eslintrc')], | ||
rules: { | ||
'no-param-reassign': 0, | ||
'prefer-rest-params': 0, | ||
'no-octal-escape': 0, | ||
'new-cap': 0, | ||
'no-new': 0, | ||
'react/no-unescaped-entities': 0, | ||
'no-control-regex': 0, | ||
}, | ||
}; |
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,43 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Run Prettier | ||
run: yarn prettier | ||
|
||
- name: Run Eslint | ||
run: yarn eslint | ||
|
||
- name: Run Stylelint | ||
run: yarn stylelint | ||
|
||
- name: Run check-types | ||
run: yarn check-types | ||
|
||
- name: Run build | ||
run: yarn build |
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,4 +1,3 @@ | ||
.vscode | ||
node_modules | ||
config/manifest.json | ||
run | ||
|
@@ -7,4 +6,4 @@ cache | |
.history | ||
public | ||
resources | ||
app/view | ||
app/view |
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,8 @@ | ||
# Please Checkout And Make Sure Patterns Isn't Exist In .gitignore File First | ||
*.md | ||
**/iconfont*/* | ||
*.yml | ||
app/view/ | ||
public | ||
|
||
config/manifest.json |
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,5 @@ | ||
const prettier = require('ko-lint-config/.prettierrc'); | ||
|
||
module.exports = { | ||
...prettier, | ||
}; |
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,5 @@ | ||
# Please Checkout And Make Sure Patterns Isn't Exist In .gitignore File First | ||
|
||
**/iconfont*/* | ||
app/view/ | ||
public |
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,6 @@ | ||
module.exports = { | ||
extends: ['ko-lint-config/.stylelintrc'], | ||
rules: { | ||
'value-no-vendor-prefix': null, | ||
}, | ||
}; |
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,4 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"cSpell.words": ["SUBSCRIPTIONSENDTYPE", "SUBSCRIPTIONSENDTYPECN", "SUBSCRIPTIONSTATUS"] | ||
} |
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,35 @@ | ||
const { createTimedTask, changeTimedTask, cancelTimedTask, timedTaskList, timedTaskResult } = require('./app/utils/timedTask') | ||
const { | ||
createTimedTask, | ||
changeTimedTask, | ||
cancelTimedTask, | ||
timedTaskList, | ||
timedTaskResult, | ||
} = require('./app/utils/timedTask'); | ||
|
||
// 接收 app 发送来的消息并作出反应 | ||
module.exports = agent => { | ||
module.exports = (agent) => { | ||
// 创建文章订阅任务 | ||
agent.messenger.on('createTimedTask', ({ id, sendCron }) => { | ||
createTimedTask(id, sendCron, agent) | ||
}) | ||
createTimedTask(id, sendCron, agent); | ||
}); | ||
|
||
// 改变文章订阅任务 | ||
agent.messenger.on('changeTimedTask', ({ id, sendCron }) => { | ||
changeTimedTask(id, sendCron, agent) | ||
}) | ||
changeTimedTask(id, sendCron, agent); | ||
}); | ||
|
||
// 取消文章订阅任务 | ||
agent.messenger.on('cancelTimedTask', ({ id }) => { | ||
cancelTimedTask(id, agent) | ||
}) | ||
cancelTimedTask(id, agent); | ||
}); | ||
|
||
// 文章订阅任务列表 | ||
agent.messenger.on('timedTaskList', () => { | ||
timedTaskList(agent) | ||
}) | ||
timedTaskList(agent); | ||
}); | ||
|
||
// 打印文章订阅任务的执行结果 | ||
agent.messenger.on('timedTaskResult', ({ result }) => { | ||
timedTaskResult(result, agent) | ||
}) | ||
} | ||
timedTaskResult(result, agent); | ||
}); | ||
}; |
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
Oops, something went wrong.