Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lc -a and lf and store all question #67

Merged
merged 39 commits into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
73dd1e3
feat(update): check update when first run lc and will be not allow un…
wh131462 Mar 14, 2024
c1f11ad
fix: fix the hidden check update
wh131462 Mar 14, 2024
c24f546
docs: instead of incorrect symble
wh131462 Mar 14, 2024
0cf2939
chore: remove unsless code (#45)
wh131462 Mar 14, 2024
44f16ca
docs: simplifying the npm install command (#44)
thinkasany Mar 14, 2024
2454a28
ci(test): update file name (#46)
thinkasany Mar 14, 2024
06074a5
docs: add ci and npm badge (#47)
thinkasany Mar 14, 2024
78bf136
ci: update name (#48)
thinkasany Mar 14, 2024
32b24a1
chore(pre-commit): modify command (#49)
thinkasany Mar 14, 2024
750f70b
feat: add get question tag type api
SmallTeddy Mar 15, 2024
08024fc
fix: finder error
SmallTeddy Mar 15, 2024
8c93e68
feat(update): check update when first run lc and will be not allow un…
wh131462 Mar 14, 2024
1c2ac23
fix: fix the hidden check update
wh131462 Mar 14, 2024
9745883
chore: lf add select mode
wh131462 Mar 15, 2024
8cea143
feat: add getAllQuestion api
SmallTeddy Mar 15, 2024
dff47fe
feat: add getAllQuestion api
SmallTeddy Mar 15, 2024
f33f591
feat: add all question store
SmallTeddy Mar 15, 2024
5d2189f
feat: add all question store
SmallTeddy Mar 15, 2024
3ff1d7b
feat: add lc all option
SmallTeddy Mar 15, 2024
4182f80
feat: add lc all option
SmallTeddy Mar 15, 2024
9c00e80
fix: allQuestion controller
SmallTeddy Mar 15, 2024
30b8b5b
fix: allQuestion controller
SmallTeddy Mar 15, 2024
e3f484a
fix: allQuestion controller
SmallTeddy Mar 15, 2024
8319898
fix: allQuestion realm data structure
SmallTeddy Mar 15, 2024
0572624
fix: allQuestion realm data structure
SmallTeddy Mar 15, 2024
d31e479
chore: fix update error info
wh131462 Mar 15, 2024
e2b9a03
chore: finish lc -a and store get set question by all question store
wh131462 Mar 15, 2024
844a7be
Merge pull request #58 from EternalHeartTeam/03-11-lf-select-mode
SmallTeddy Mar 15, 2024
3fa11e1
fix: delete the list of irrelevant questions from the front end
SmallTeddy Mar 15, 2024
daa7441
fix: delete the list of irrelevant questions from the front end
SmallTeddy Mar 15, 2024
c726d9d
Merge pull request #62 from EternalHeartTeam/feat-lf-tag
SmallTeddy Mar 15, 2024
2bdd0d8
feat: get 'jsonExampleTestcases', 'exampleTestcases'
hyfree Mar 15, 2024
affa176
Merge pull request #64 from EternalHeartTeam/feat-get-jsonExampleTest…
SmallTeddy Mar 16, 2024
81f1173
chore: change jsdoc for function
wh131462 Mar 16, 2024
801fbc8
fix(lk): fix the lk in specified directory
wh131462 Mar 16, 2024
1c00952
chore: prettier add print width
wh131462 Mar 16, 2024
093201c
fix(lc): fix the process to handle the question has no enough data
wh131462 Mar 16, 2024
5180e5a
perf(allquestion): modify the controller to get/set preferly
wh131462 Mar 16, 2024
2605089
feat lf command select mode (#65)
SmallTeddy Mar 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
extends: ['@commitlint/config-conventional']
};
44 changes: 22 additions & 22 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true
},
extends: '@antfu',
overrides: [
{
env: {
node: true
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script'
}
}
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {}
}
env: {
browser: true,
commonjs: true,
es2021: true
},
extends: '@antfu',
overrides: [
{
env: {
node: true
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script'
}
}
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {}
};
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: npm # See documentation for possible values
directory: / # Location of package manifests
schedule:
interval: weekly
- package-ecosystem: npm # See documentation for possible values
directory: / # Location of package manifests
schedule:
interval: weekly
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ name: ci
on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-latest
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3

- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: ci
run: |
npm install
npm run test
- name: ci
run: |
npm install
npm run test
32 changes: 16 additions & 16 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: gen-org-contributors

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
generate:
runs-on: ubuntu-latest
if: github.repository == 'EternalHeartTeam/leetcode-practice'
steps:
- uses: thinkasany/organize-contributors@master
with:
organize_name: EternalHeartTeam
github_token: ${{ secrets.ACTION_TOKEN }}
png_path: images/contributors.png
json_path: contributors.json
branch: svg
commit_message: 'chore: update contributors'
excludes_list: 'ImgBotApp,github-actions[bot],actions-user,imgbot[bot],dependabot[bot]'
generate:
runs-on: ubuntu-latest
if: github.repository == 'EternalHeartTeam/leetcode-practice'
steps:
- uses: thinkasany/organize-contributors@master
with:
organize_name: EternalHeartTeam
github_token: ${{ secrets.ACTION_TOKEN }}
png_path: images/contributors.png
json_path: contributors.json
branch: svg
commit_message: 'chore: update contributors'
excludes_list: 'ImgBotApp,github-actions[bot],actions-user,imgbot[bot],dependabot[bot]'
36 changes: 18 additions & 18 deletions .github/workflows/pr-add-label.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: pr-add-label

on:
pull_request_target:
types: [opened, edited, reopened, synchronize]
pull_request_target:
types: [opened, edited, reopened, synchronize]

jobs:
add-label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Check PR number
id: pr_number
run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
add-label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Check PR number
id: pr_number
run: echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV

- name: Run add-label Action
uses: thinkasany/pr-label-action@master
with:
github_token: ${{ secrets.ACTION_TOKEN }}
pr_number: ${{ env.PR_NUMBER }}
organize_name: EternalHeartTeam
team_name: eternalheartteam
- name: Run add-label Action
uses: thinkasany/pr-label-action@master
with:
github_token: ${{ secrets.ACTION_TOKEN }}
pr_number: ${{ env.PR_NUMBER }}
organize_name: EternalHeartTeam
team_name: eternalheartteam
36 changes: 18 additions & 18 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: Create Cli Release

on:
push:
tags:
- 'cli-v*'
push:
tags:
- 'cli-v*'

jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'EternalHeartTeam/leetcode-practice'
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build-cli
- run: npm run publish-cli
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
build:
runs-on: ubuntu-latest
if: github.repository == 'EternalHeartTeam/leetcode-practice'
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build-cli
- run: npm run publish-cli
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
19 changes: 12 additions & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": false,
"trailingComma": "none",
"bracketSpacing": true
"singleQuote": true,
"semi": true,
"tabWidth": 4,
"trailingComma": "none",
"printWidth": 360,
"quoteProps": "consistent",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "always",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf",
"singleAttributePerLine": true
}
54 changes: 27 additions & 27 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"github": {
"release": true,
"web": true,
"autoGenerate": true
},
"git": {
"commitMessage": "chore: release v${version}",
"tagName": "cli-v${version}",
"tag": true,
"push": true,
"pushArgs": ["--follow-tags"]
},
"npm": {
"publish": false
},
"hooks": {
"before:release": "prettier --write CHANGELOG.md && git add CHANGELOG.md ",
"after:release": "git checkout master && git push origin master:stable-v${version} || true && echo 更新版本 ${version} 成功!"
},
"plugins": {
"@release-it/bumper": {
"preset": "angular"
"github": {
"release": true,
"web": true,
"autoGenerate": true
},
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md",
"ignoreRecommendedBump": true
"git": {
"commitMessage": "chore: release v${version}",
"tagName": "cli-v${version}",
"tag": true,
"push": true,
"pushArgs": ["--follow-tags"]
},
"npm": {
"publish": false
},
"hooks": {
"before:release": "prettier --write CHANGELOG.md && git add CHANGELOG.md ",
"after:release": "git checkout master && git push origin master:stable-v${version} || true && echo 更新版本 ${version} 成功!"
},
"plugins": {
"@release-it/bumper": {
"preset": "angular"
},
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md",
"ignoreRecommendedBump": true
}
}
}
}
Loading
Loading