page2pdf_server 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +3 -3
- package/.eslintrc +32 -32
- package/.github/ISSUE_TEMPLATE/bug_report.md +28 -28
- package/.github/ISSUE_TEMPLATE/feature_request.md +15 -15
- package/.github/ISSUE_TEMPLATE/refactoring.md +15 -15
- package/.github/PULL_REQUEST_TEMPLATE.md +18 -18
- package/.github/stale.yml +17 -17
- package/.github/workflows/cd.yml +75 -75
- package/.github/workflows/ci.yml +36 -36
- package/.husky/pre-commit +6 -6
- package/.husky/pre-push +4 -4
- package/.prettierrc +8 -8
- package/.vscode/settings.json +3 -3
- package/LICENSE +17 -17
- package/README.md +54 -23
- package/ecosystem.config.js +41 -41
- package/jest.config.js +35 -35
- package/nodemon.json +6 -6
- package/package.json +8 -10
- package/src/CSS/345/205/274/345/256/271/346/200/247.txt +69 -0
- package/src/app.ts +7 -2
- package/src/components/home/controller.ts +2 -2
- package/src/components/home/pdfController.ts +9 -5
- package/src/components/home/services.ts +3 -3
- package/src/components/home/splitController.ts +9 -5
- package/src/components/home/validators.ts +1 -1
- package/src/db/home.ts +3 -3
- package/src/helpers/apiResponse.ts +1 -1
- package/src/helpers/error/TimeOutError.ts +1 -1
- package/src/helpers/loggers.ts +1 -1
- package/src/index.ts +4 -1
- package/src/middlewares/errorHandler.ts +1 -1
- package/src/routes/index.ts +2 -2
- package/src/types/request/config.ts +10 -5
- package/src/types/request/home.ts +1 -1
- package/src/utils/pdfgen.ts +66 -16
- package/src//346/265/213/350/257/225.txt +26 -2
- package/test//346/211/223/345/215/260/346/234/215/345/212/241.http +17 -0
- package/tsconfig.json +41 -41
- package/tslint.json +22 -22
- package/.idea/codeStyles/Project.xml +0 -58
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/encodings.xml +0 -7
- package/.idea/inspectionProfiles/Project_Default.xml +0 -7
- package/.idea/modules.xml +0 -8
- package/.idea/page2pdf-server.iml +0 -12
- package/.idea/tenstack-starter-main.iml +0 -12
- package/.idea/vcs.xml +0 -6
package/.babelrc
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": ["@babel/preset-env", "@babel/preset-typescript"]
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"presets": ["@babel/preset-env", "@babel/preset-typescript"]
|
|
3
|
+
}
|
package/.eslintrc
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"parser": "@typescript-eslint/parser",
|
|
4
|
-
"parserOptions": {
|
|
5
|
-
"ecmaVersion": "latest",
|
|
6
|
-
"sourceType": "module",
|
|
7
|
-
"project": "./tsconfig.json"
|
|
8
|
-
},
|
|
9
|
-
"plugins": ["import", "prettier"],
|
|
10
|
-
"ignorePatterns": ["node_modules/*", "dist/*", ".*", "jest*", "ecosystem*" ],
|
|
11
|
-
"extends": [
|
|
12
|
-
"plugin:@typescript-eslint/recommended",
|
|
13
|
-
"prettier"
|
|
14
|
-
],
|
|
15
|
-
"rules": {
|
|
16
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
17
|
-
"@typescript-eslint/no-empty-interface": "off",
|
|
18
|
-
"@typescript-eslint/ban-types": "off",
|
|
19
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
20
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
21
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
22
|
-
"@typescript-eslint/no-unused-vars": ["error", {
|
|
23
|
-
"argsIgnorePattern": "^_"
|
|
24
|
-
}],
|
|
25
|
-
"import/order": ["error"],
|
|
26
|
-
"prettier/prettier": [
|
|
27
|
-
"error",
|
|
28
|
-
{
|
|
29
|
-
"endOfLine": "auto"
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"parser": "@typescript-eslint/parser",
|
|
4
|
+
"parserOptions": {
|
|
5
|
+
"ecmaVersion": "latest",
|
|
6
|
+
"sourceType": "module",
|
|
7
|
+
"project": "./tsconfig.json"
|
|
8
|
+
},
|
|
9
|
+
"plugins": ["import", "prettier"],
|
|
10
|
+
"ignorePatterns": ["node_modules/*", "dist/*", ".*", "jest*", "ecosystem*" ],
|
|
11
|
+
"extends": [
|
|
12
|
+
"plugin:@typescript-eslint/recommended",
|
|
13
|
+
"prettier"
|
|
14
|
+
],
|
|
15
|
+
"rules": {
|
|
16
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
17
|
+
"@typescript-eslint/no-empty-interface": "off",
|
|
18
|
+
"@typescript-eslint/ban-types": "off",
|
|
19
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
20
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
21
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
22
|
+
"@typescript-eslint/no-unused-vars": ["error", {
|
|
23
|
+
"argsIgnorePattern": "^_"
|
|
24
|
+
}],
|
|
25
|
+
"import/order": ["error"],
|
|
26
|
+
"prettier/prettier": [
|
|
27
|
+
"error",
|
|
28
|
+
{
|
|
29
|
+
"endOfLine": "auto"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
33
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: ""
|
|
5
|
-
labels: "bug"
|
|
6
|
-
assignees: ""
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Description
|
|
10
|
-
|
|
11
|
-
_A clear and concise description of what the bug is._
|
|
12
|
-
|
|
13
|
-
# Reproduction
|
|
14
|
-
|
|
15
|
-
_Steps to reproduce the behavior:_
|
|
16
|
-
|
|
17
|
-
_1. Go to '...'_
|
|
18
|
-
_2. Click on '....'_
|
|
19
|
-
_3. Scroll down to '....'_
|
|
20
|
-
_4. See error_
|
|
21
|
-
|
|
22
|
-
# Expected
|
|
23
|
-
|
|
24
|
-
_A clear and concise description of what you expected to happen._
|
|
25
|
-
|
|
26
|
-
# Screenshots
|
|
27
|
-
|
|
28
|
-
_If applicable, add screenshots to help explain your problem._
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ""
|
|
5
|
+
labels: "bug"
|
|
6
|
+
assignees: ""
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Description
|
|
10
|
+
|
|
11
|
+
_A clear and concise description of what the bug is._
|
|
12
|
+
|
|
13
|
+
# Reproduction
|
|
14
|
+
|
|
15
|
+
_Steps to reproduce the behavior:_
|
|
16
|
+
|
|
17
|
+
_1. Go to '...'_
|
|
18
|
+
_2. Click on '....'_
|
|
19
|
+
_3. Scroll down to '....'_
|
|
20
|
+
_4. See error_
|
|
21
|
+
|
|
22
|
+
# Expected
|
|
23
|
+
|
|
24
|
+
_A clear and concise description of what you expected to happen._
|
|
25
|
+
|
|
26
|
+
# Screenshots
|
|
27
|
+
|
|
28
|
+
_If applicable, add screenshots to help explain your problem._
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
title: ""
|
|
5
|
-
labels: "implementation"
|
|
6
|
-
assignees: ""
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Request
|
|
10
|
-
|
|
11
|
-
_A clear and concise description of what the problem is._
|
|
12
|
-
|
|
13
|
-
# Suggestion
|
|
14
|
-
|
|
15
|
-
_A clear and concise description of what you want to happen._
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ""
|
|
5
|
+
labels: "implementation"
|
|
6
|
+
assignees: ""
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Request
|
|
10
|
+
|
|
11
|
+
_A clear and concise description of what the problem is._
|
|
12
|
+
|
|
13
|
+
# Suggestion
|
|
14
|
+
|
|
15
|
+
_A clear and concise description of what you want to happen._
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Refactoring
|
|
3
|
-
about: Add content to be refactored
|
|
4
|
-
title: ""
|
|
5
|
-
labels: "refactoring"
|
|
6
|
-
assignees: ""
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Refactor description
|
|
10
|
-
|
|
11
|
-
_A clear and concise description of the related Content._
|
|
12
|
-
|
|
13
|
-
# Refactor suggestion
|
|
14
|
-
|
|
15
|
-
_A clear and concise description of any alternative solutions or features you've considered._
|
|
1
|
+
---
|
|
2
|
+
name: Refactoring
|
|
3
|
+
about: Add content to be refactored
|
|
4
|
+
title: ""
|
|
5
|
+
labels: "refactoring"
|
|
6
|
+
assignees: ""
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Refactor description
|
|
10
|
+
|
|
11
|
+
_A clear and concise description of the related Content._
|
|
12
|
+
|
|
13
|
+
# Refactor suggestion
|
|
14
|
+
|
|
15
|
+
_A clear and concise description of any alternative solutions or features you've considered._
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Description
|
|
2
|
-
|
|
3
|
-
_Explain briefly about the purpose & context of this PR_
|
|
4
|
-
|
|
5
|
-
# Screenshots
|
|
6
|
-
|
|
7
|
-
_If possible add a screenshot and/or gif_
|
|
8
|
-
|
|
9
|
-
# Example | Usage
|
|
10
|
-
|
|
11
|
-
_Please share examples and how to reproduce_
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# Related Issues | Pr
|
|
16
|
-
|
|
17
|
-
_`close`|`resolve` <ISSUE> (ex. `resolve #20`)_
|
|
18
|
-
_link issues to close automatically_
|
|
1
|
+
# Description
|
|
2
|
+
|
|
3
|
+
_Explain briefly about the purpose & context of this PR_
|
|
4
|
+
|
|
5
|
+
# Screenshots
|
|
6
|
+
|
|
7
|
+
_If possible add a screenshot and/or gif_
|
|
8
|
+
|
|
9
|
+
# Example | Usage
|
|
10
|
+
|
|
11
|
+
_Please share examples and how to reproduce_
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Related Issues | Pr
|
|
16
|
+
|
|
17
|
+
_`close`|`resolve` <ISSUE> (ex. `resolve #20`)_
|
|
18
|
+
_link issues to close automatically_
|
package/.github/stale.yml
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# Number of days of inactivity before an issue becomes stale
|
|
2
|
-
daysUntilStale: 100
|
|
3
|
-
# Number of days of inactivity before a stale issue is closed
|
|
4
|
-
daysUntilClose: 7
|
|
5
|
-
# Issues with these labels will never be considered stale
|
|
6
|
-
exemptLabels:
|
|
7
|
-
- pinned
|
|
8
|
-
- security
|
|
9
|
-
# Label to use when marking an issue as stale
|
|
10
|
-
staleLabel: wontfix
|
|
11
|
-
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
12
|
-
markComment: >
|
|
13
|
-
This issue has been automatically marked as stale because it has not had
|
|
14
|
-
recent activity. It will be closed if no further activity occurs. Thank you
|
|
15
|
-
for your contributions.
|
|
16
|
-
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
17
|
-
closeComment: false
|
|
1
|
+
# Number of days of inactivity before an issue becomes stale
|
|
2
|
+
daysUntilStale: 100
|
|
3
|
+
# Number of days of inactivity before a stale issue is closed
|
|
4
|
+
daysUntilClose: 7
|
|
5
|
+
# Issues with these labels will never be considered stale
|
|
6
|
+
exemptLabels:
|
|
7
|
+
- pinned
|
|
8
|
+
- security
|
|
9
|
+
# Label to use when marking an issue as stale
|
|
10
|
+
staleLabel: wontfix
|
|
11
|
+
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
12
|
+
markComment: >
|
|
13
|
+
This issue has been automatically marked as stale because it has not had
|
|
14
|
+
recent activity. It will be closed if no further activity occurs. Thank you
|
|
15
|
+
for your contributions.
|
|
16
|
+
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
17
|
+
closeComment: false
|
package/.github/workflows/cd.yml
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
name: CD
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ main, develop ]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
test:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- name: Checkout repository
|
|
12
|
-
uses: actions/checkout@v2.3.4
|
|
13
|
-
|
|
14
|
-
- name: Set up Node.js
|
|
15
|
-
uses: actions/setup-node@v2.4.1
|
|
16
|
-
with:
|
|
17
|
-
node-version: 16
|
|
18
|
-
|
|
19
|
-
- name: Install Dependencies
|
|
20
|
-
run: yarn
|
|
21
|
-
|
|
22
|
-
- name: Run Lint
|
|
23
|
-
run: yarn lint
|
|
24
|
-
|
|
25
|
-
- name: Build module
|
|
26
|
-
run: yarn build
|
|
27
|
-
|
|
28
|
-
- name: Run Test code
|
|
29
|
-
run: yarn test
|
|
30
|
-
|
|
31
|
-
# ↓↓↓↓ Please edit below according your environment ↓↓↓↓
|
|
32
|
-
# deploy:
|
|
33
|
-
# runs-on: ubuntu-latest
|
|
34
|
-
# needs: test
|
|
35
|
-
# steps:
|
|
36
|
-
# - name: Checkout repository
|
|
37
|
-
# uses: actions/checkout@v2.3.4
|
|
38
|
-
|
|
39
|
-
# - name: Deploy DEVELOPMENT
|
|
40
|
-
# uses: appleboy/ssh-action@v0.1.4
|
|
41
|
-
# if: github.ref == 'refs/heads/develop'
|
|
42
|
-
# with:
|
|
43
|
-
# key: ${{ secrets.DEV_PEM_KEY }}
|
|
44
|
-
# host: ${{ secrets.DEV_HOST }}
|
|
45
|
-
# username: ubuntu
|
|
46
|
-
# script: |
|
|
47
|
-
# cd /home/ubuntu/source
|
|
48
|
-
# git checkout develop
|
|
49
|
-
# git fetch --all
|
|
50
|
-
# git reset --hard origin/develop
|
|
51
|
-
# git pull origin develop
|
|
52
|
-
# yarn
|
|
53
|
-
# yarn build
|
|
54
|
-
# export NODE_ENV=development && pm2 startOrReload ecosystem.config.js
|
|
55
|
-
# pm2 set pm2:autodump true
|
|
56
|
-
# pm2 save
|
|
57
|
-
|
|
58
|
-
# - name: Deploy PRODUCTION
|
|
59
|
-
# uses: appleboy/ssh-action@v0.1.4
|
|
60
|
-
# if: github.ref == 'refs/heads/main'
|
|
61
|
-
# with:
|
|
62
|
-
# key: ${{ secrets.PROD_PEM_KEY }}
|
|
63
|
-
# host: ${{ secrets.PROD_HOST }}
|
|
64
|
-
# username: ubuntu
|
|
65
|
-
# script: |
|
|
66
|
-
# cd /home/ubuntu/source
|
|
67
|
-
# git checkout main
|
|
68
|
-
# git fetch --all
|
|
69
|
-
# git reset --hard origin/main
|
|
70
|
-
# git pull origin main
|
|
71
|
-
# yarn
|
|
72
|
-
# yarn build
|
|
73
|
-
# export NODE_ENV=production && pm2 startOrReload ecosystem.config.js
|
|
74
|
-
# pm2 set pm2:autodump true
|
|
75
|
-
# pm2 save
|
|
1
|
+
name: CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main, develop ]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout repository
|
|
12
|
+
uses: actions/checkout@v2.3.4
|
|
13
|
+
|
|
14
|
+
- name: Set up Node.js
|
|
15
|
+
uses: actions/setup-node@v2.4.1
|
|
16
|
+
with:
|
|
17
|
+
node-version: 16
|
|
18
|
+
|
|
19
|
+
- name: Install Dependencies
|
|
20
|
+
run: yarn
|
|
21
|
+
|
|
22
|
+
- name: Run Lint
|
|
23
|
+
run: yarn lint
|
|
24
|
+
|
|
25
|
+
- name: Build module
|
|
26
|
+
run: yarn build
|
|
27
|
+
|
|
28
|
+
- name: Run Test code
|
|
29
|
+
run: yarn test
|
|
30
|
+
|
|
31
|
+
# ↓↓↓↓ Please edit below according your environment ↓↓↓↓
|
|
32
|
+
# deploy:
|
|
33
|
+
# runs-on: ubuntu-latest
|
|
34
|
+
# needs: test
|
|
35
|
+
# steps:
|
|
36
|
+
# - name: Checkout repository
|
|
37
|
+
# uses: actions/checkout@v2.3.4
|
|
38
|
+
|
|
39
|
+
# - name: Deploy DEVELOPMENT
|
|
40
|
+
# uses: appleboy/ssh-action@v0.1.4
|
|
41
|
+
# if: github.ref == 'refs/heads/develop'
|
|
42
|
+
# with:
|
|
43
|
+
# key: ${{ secrets.DEV_PEM_KEY }}
|
|
44
|
+
# host: ${{ secrets.DEV_HOST }}
|
|
45
|
+
# username: ubuntu
|
|
46
|
+
# script: |
|
|
47
|
+
# cd /home/ubuntu/source
|
|
48
|
+
# git checkout develop
|
|
49
|
+
# git fetch --all
|
|
50
|
+
# git reset --hard origin/develop
|
|
51
|
+
# git pull origin develop
|
|
52
|
+
# yarn
|
|
53
|
+
# yarn build
|
|
54
|
+
# export NODE_ENV=development && pm2 startOrReload ecosystem.config.js
|
|
55
|
+
# pm2 set pm2:autodump true
|
|
56
|
+
# pm2 save
|
|
57
|
+
|
|
58
|
+
# - name: Deploy PRODUCTION
|
|
59
|
+
# uses: appleboy/ssh-action@v0.1.4
|
|
60
|
+
# if: github.ref == 'refs/heads/main'
|
|
61
|
+
# with:
|
|
62
|
+
# key: ${{ secrets.PROD_PEM_KEY }}
|
|
63
|
+
# host: ${{ secrets.PROD_HOST }}
|
|
64
|
+
# username: ubuntu
|
|
65
|
+
# script: |
|
|
66
|
+
# cd /home/ubuntu/source
|
|
67
|
+
# git checkout main
|
|
68
|
+
# git fetch --all
|
|
69
|
+
# git reset --hard origin/main
|
|
70
|
+
# git pull origin main
|
|
71
|
+
# yarn
|
|
72
|
+
# yarn build
|
|
73
|
+
# export NODE_ENV=production && pm2 startOrReload ecosystem.config.js
|
|
74
|
+
# pm2 set pm2:autodump true
|
|
75
|
+
# pm2 save
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
types: [ opened, synchronize, reopened ]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
test:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
strategy:
|
|
12
|
-
matrix:
|
|
13
|
-
node-version: [ '16' ]
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- name: Checkout repository
|
|
17
|
-
uses: actions/checkout@v2.3.4
|
|
18
|
-
|
|
19
|
-
- name: Set up Node.js ${{ matrix.node-version }}
|
|
20
|
-
uses: actions/setup-node@v2.4.1
|
|
21
|
-
with:
|
|
22
|
-
node-version: ${{ matrix.node-version }}
|
|
23
|
-
|
|
24
|
-
- name: Install Dependencies
|
|
25
|
-
run: yarn
|
|
26
|
-
|
|
27
|
-
- name: Run Lint
|
|
28
|
-
run: yarn lint
|
|
29
|
-
|
|
30
|
-
- name: Run Test code
|
|
31
|
-
run: yarn test
|
|
32
|
-
|
|
33
|
-
- name: Build module
|
|
34
|
-
run: yarn build
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [ opened, synchronize, reopened ]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
node-version: [ '16' ]
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout repository
|
|
17
|
+
uses: actions/checkout@v2.3.4
|
|
18
|
+
|
|
19
|
+
- name: Set up Node.js ${{ matrix.node-version }}
|
|
20
|
+
uses: actions/setup-node@v2.4.1
|
|
21
|
+
with:
|
|
22
|
+
node-version: ${{ matrix.node-version }}
|
|
23
|
+
|
|
24
|
+
- name: Install Dependencies
|
|
25
|
+
run: yarn
|
|
26
|
+
|
|
27
|
+
- name: Run Lint
|
|
28
|
+
run: yarn lint
|
|
29
|
+
|
|
30
|
+
- name: Run Test code
|
|
31
|
+
run: yarn test
|
|
32
|
+
|
|
33
|
+
- name: Build module
|
|
34
|
+
run: yarn build
|
|
35
|
+
|
|
36
|
+
|
package/.husky/pre-commit
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
. "$(dirname "$0")/_/husky.sh"
|
|
3
|
-
|
|
4
|
-
yarn prettify
|
|
5
|
-
yarn lint:fix
|
|
6
|
-
git add
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
. "$(dirname "$0")/_/husky.sh"
|
|
3
|
+
|
|
4
|
+
yarn prettify
|
|
5
|
+
yarn lint:fix
|
|
6
|
+
git add
|
package/.husky/pre-push
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
. "$(dirname "$0")/_/husky.sh"
|
|
3
|
-
|
|
4
|
-
yarn build
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
. "$(dirname "$0")/_/husky.sh"
|
|
3
|
+
|
|
4
|
+
yarn build
|
package/.prettierrc
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"parser": "typescript",
|
|
3
|
-
"semi": true,
|
|
4
|
-
"singleQuote": false,
|
|
5
|
-
"tabWidth": 2,
|
|
6
|
-
"trailingComma": "all",
|
|
7
|
-
"printWidth": 80
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"parser": "typescript",
|
|
3
|
+
"semi": true,
|
|
4
|
+
"singleQuote": false,
|
|
5
|
+
"tabWidth": 2,
|
|
6
|
+
"trailingComma": "all",
|
|
7
|
+
"printWidth": 80
|
|
8
|
+
}
|
package/.vscode/settings.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.stickyScroll.enabled": true
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"editor.stickyScroll.enabled": true
|
|
3
|
+
}
|
package/LICENSE
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
Copyright (c) 2021, Filoscoder
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
-
the Software without restriction, including without limitation the rights to
|
|
6
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
7
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
8
|
-
subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
|
11
|
-
copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
15
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
16
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
1
|
+
Copyright (c) 2021, Filoscoder
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
7
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
8
|
+
subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
15
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
16
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
18
18
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|