From 650ae5ae81109c2ef11c7e0f9a024e7934aca44f Mon Sep 17 00:00:00 2001
From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com>
Date: Sat, 9 Dec 2023 06:52:03 +0700
Subject: [PATCH 01/33] chore: update npm ignore files
---
.npmignore | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.npmignore b/.npmignore
index 483dbe0..457d2f8 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,2 +1,6 @@
+.env.example
.github/
+.tests/
scripts/
+coverage/
+public/
From 0e0fe562c1706b30fc03b206a6b4ce5a9bee65ad Mon Sep 17 00:00:00 2001
From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com>
Date: Sat, 9 Dec 2023 08:18:06 +0700
Subject: [PATCH 02/33] docs(readme): Added badge join to community (#207)
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 24b48cd..67a6353 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,7 @@
+
@@ -370,4 +371,4 @@ Want to contribute? Please note our contribution guidelines [here](/CONTRIBUTING
Copyright © 2023 Rangga Fajar Oktariansyah

-
\ No newline at end of file
+
From ecb3bfd4829f0df6ec2fb86167552eea187b257c Mon Sep 17 00:00:00 2001
From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com>
Date: Sat, 9 Dec 2023 20:28:45 +0700
Subject: [PATCH 03/33] docs(readme): fixed small typo
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 67a6353..30f5de7 100644
--- a/README.md
+++ b/README.md
@@ -6,8 +6,8 @@
Report Bugs · Request Feature · Ask Question
-
-
+
+
From e00e8d4d28716c57861bc7bee250c0e8fadee5ab Mon Sep 17 00:00:00 2001
From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com>
Date: Sun, 10 Dec 2023 12:38:24 +0700
Subject: [PATCH 04/33] ci(generate-locale-readme): fixed message commit
---
.github/workflows/generate-locale-doc.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/generate-locale-doc.yml b/.github/workflows/generate-locale-doc.yml
index 30be507..ba2f7e8 100644
--- a/.github/workflows/generate-locale-doc.yml
+++ b/.github/workflows/generate-locale-doc.yml
@@ -58,7 +58,7 @@ jobs:
- name: Push commit to a new branch and create prs
run: |
branch="auto_update_locale_readme"
- message="docs(translation): auto update translation readme"
+ message="docs(i18n): auto update translation readme"
body=$(printf "## Changes File\n\n\`\`\`diff\n$(git diff)\n\`\`\`\n\n> Co-authored-by: github-actions[bot] ")
if [[ "$(git status --porcelain)" != "" ]]; then
git branch -D ${branch} || true
From b273770aef5f35b7d52d1eafb72c70495a1acd2d Mon Sep 17 00:00:00 2001
From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com>
Date: Sun, 10 Dec 2023 12:43:07 +0700
Subject: [PATCH 05/33] infra(mergify): added automatic reviews for github
actions is actor
---
.github/mergify.yml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/.github/mergify.yml b/.github/mergify.yml
index ebb96c8..b8a4c77 100644
--- a/.github/mergify.yml
+++ b/.github/mergify.yml
@@ -1,8 +1,6 @@
queue_rules:
- # If you have other queues defined, add this at the end so it is processed last
- name: dep-update
batch_size: 10
- # Wait for up to 30 minutes for the batch to fill up
batch_max_wait_time: 30 min
queue_conditions:
- author = dependabot[bot]
@@ -20,8 +18,15 @@ pull_request_rules:
- "#approved-reviews-by>=1"
actions:
queue:
+ - name: Automatic approve for GitHub Actions pull requests
+ conditions:
+ - author = github-actions[bot]
+ actions:
+ review:
+ type: APPROVE
- name: Automatic merge for GitHub Actions pull requests
conditions:
- author = github-actions[bot]
+ - "#approved-reviews-by>=1"
actions:
merge:
From b9187910dfb199d13a2837fdcdf9a168157232f8 Mon Sep 17 00:00:00 2001
From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com>
Date: Tue, 12 Dec 2023 09:14:32 +0700
Subject: [PATCH 06/33] chore: fixed small typo
---
.npmignore | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.npmignore b/.npmignore
index 457d2f8..a5cfb4a 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,6 +1,6 @@
.env.example
.github/
-.tests/
+tests/
scripts/
coverage/
public/
From 55281f3360cab0477fd26344700fa63cc7eee47e Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 15 Dec 2023 01:20:19 +0000
Subject: [PATCH 07/33] build(deps): bump all dependencies and devDependencies
version (#208)
Co-authored-by: github-actions[bot]
---
package-lock.json | 86 +++++++++++++++++++++++------------------------
1 file changed, 43 insertions(+), 43 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 9dc5ad7..75f32a5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -156,21 +156,21 @@
}
},
"node_modules/@babel/core": {
- "version": "7.23.5",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.5.tgz",
- "integrity": "sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.6.tgz",
+ "integrity": "sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==",
"dev": true,
"dependencies": {
"@ampproject/remapping": "^2.2.0",
"@babel/code-frame": "^7.23.5",
- "@babel/generator": "^7.23.5",
- "@babel/helper-compilation-targets": "^7.22.15",
+ "@babel/generator": "^7.23.6",
+ "@babel/helper-compilation-targets": "^7.23.6",
"@babel/helper-module-transforms": "^7.23.3",
- "@babel/helpers": "^7.23.5",
- "@babel/parser": "^7.23.5",
+ "@babel/helpers": "^7.23.6",
+ "@babel/parser": "^7.23.6",
"@babel/template": "^7.22.15",
- "@babel/traverse": "^7.23.5",
- "@babel/types": "^7.23.5",
+ "@babel/traverse": "^7.23.6",
+ "@babel/types": "^7.23.6",
"convert-source-map": "^2.0.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
@@ -209,12 +209,12 @@
"dev": true
},
"node_modules/@babel/generator": {
- "version": "7.23.5",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.5.tgz",
- "integrity": "sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz",
+ "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==",
"dev": true,
"dependencies": {
- "@babel/types": "^7.23.5",
+ "@babel/types": "^7.23.6",
"@jridgewell/gen-mapping": "^0.3.2",
"@jridgewell/trace-mapping": "^0.3.17",
"jsesc": "^2.5.1"
@@ -224,14 +224,14 @@
}
},
"node_modules/@babel/helper-compilation-targets": {
- "version": "7.22.15",
- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz",
- "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz",
+ "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==",
"dev": true,
"dependencies": {
- "@babel/compat-data": "^7.22.9",
- "@babel/helper-validator-option": "^7.22.15",
- "browserslist": "^4.21.9",
+ "@babel/compat-data": "^7.23.5",
+ "@babel/helper-validator-option": "^7.23.5",
+ "browserslist": "^4.22.2",
"lru-cache": "^5.1.1",
"semver": "^6.3.1"
},
@@ -365,14 +365,14 @@
}
},
"node_modules/@babel/helpers": {
- "version": "7.23.5",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.5.tgz",
- "integrity": "sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.6.tgz",
+ "integrity": "sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA==",
"dev": true,
"dependencies": {
"@babel/template": "^7.22.15",
- "@babel/traverse": "^7.23.5",
- "@babel/types": "^7.23.5"
+ "@babel/traverse": "^7.23.6",
+ "@babel/types": "^7.23.6"
},
"engines": {
"node": ">=6.9.0"
@@ -464,9 +464,9 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.23.5",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.5.tgz",
- "integrity": "sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz",
+ "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==",
"dev": true,
"bin": {
"parser": "bin/babel-parser.js"
@@ -667,20 +667,20 @@
}
},
"node_modules/@babel/traverse": {
- "version": "7.23.5",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.5.tgz",
- "integrity": "sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz",
+ "integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==",
"dev": true,
"dependencies": {
"@babel/code-frame": "^7.23.5",
- "@babel/generator": "^7.23.5",
+ "@babel/generator": "^7.23.6",
"@babel/helper-environment-visitor": "^7.22.20",
"@babel/helper-function-name": "^7.23.0",
"@babel/helper-hoist-variables": "^7.22.5",
"@babel/helper-split-export-declaration": "^7.22.6",
- "@babel/parser": "^7.23.5",
- "@babel/types": "^7.23.5",
- "debug": "^4.1.0",
+ "@babel/parser": "^7.23.6",
+ "@babel/types": "^7.23.6",
+ "debug": "^4.3.1",
"globals": "^11.1.0"
},
"engines": {
@@ -711,9 +711,9 @@
"dev": true
},
"node_modules/@babel/types": {
- "version": "7.23.5",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz",
- "integrity": "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz",
+ "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==",
"dev": true,
"dependencies": {
"@babel/helper-string-parser": "^7.23.4",
@@ -1996,9 +1996,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001566",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001566.tgz",
- "integrity": "sha512-ggIhCsTxmITBAMmK8yZjEhCO5/47jKXPu6Dha/wuCS4JePVL+3uiDEBuhu2aIoT+bqTOR8L76Ip1ARL9xYsEJA==",
+ "version": "1.0.30001570",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001570.tgz",
+ "integrity": "sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw==",
"dev": true,
"funding": [
{
@@ -2342,9 +2342,9 @@
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
},
"node_modules/electron-to-chromium": {
- "version": "1.4.609",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.609.tgz",
- "integrity": "sha512-ihiCP7PJmjoGNuLpl7TjNA8pCQWu09vGyjlPYw1Rqww4gvNuCcmvl+44G+2QyJ6S2K4o+wbTS++Xz0YN8Q9ERw==",
+ "version": "1.4.613",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.613.tgz",
+ "integrity": "sha512-r4x5+FowKG6q+/Wj0W9nidx7QO31BJwmR2uEo+Qh3YLGQ8SbBAFuDFpTxzly/I2gsbrFwBuIjrMp423L3O5U3w==",
"dev": true
},
"node_modules/emittery": {
From 303b119285687922e99634ec872d02df333ff3e0 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 18 Dec 2023 20:41:00 +0000
Subject: [PATCH 08/33] build(deps-dev): bump @types/node from 20.10.4 to
20.10.5 (#209)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.10.4 to 20.10.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
package-lock.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 75f32a5..8bd8a4c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1549,9 +1549,9 @@
"integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w=="
},
"node_modules/@types/node": {
- "version": "20.10.4",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.4.tgz",
- "integrity": "sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==",
+ "version": "20.10.5",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz",
+ "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==",
"dependencies": {
"undici-types": "~5.26.4"
}
From aed99a66842b165cd72189f6f3c9c09734fef001 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 18 Dec 2023 20:41:05 +0000
Subject: [PATCH 09/33] build(deps): bump github/codeql-action from 2 to 3
(#210)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
.github/workflows/codeql.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index fda6093..f9daa60 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -50,7 +50,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
- uses: github/codeql-action/init@v2
+ uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -64,7 +64,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
- uses: github/codeql-action/autobuild@v2
+ uses: github/codeql-action/autobuild@v3
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -77,6 +77,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v2
+ uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
From 94a1a0e5599249454833ff16532db0d9276ccb0d Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 18 Dec 2023 20:41:10 +0000
Subject: [PATCH 10/33] build(deps): bump actions/setup-node from 4.0.0 to
4.0.1 (#211)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v4.0.1)
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
.github/workflows/auto-build-pkg.yml | 2 +-
.github/workflows/generate-locale-doc.yml | 2 +-
.github/workflows/generate-theme-doc.yml | 2 +-
.github/workflows/setup-package.yml | 2 +-
.github/workflows/test.yml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/auto-build-pkg.yml b/.github/workflows/auto-build-pkg.yml
index e970af8..0f13498 100644
--- a/.github/workflows/auto-build-pkg.yml
+++ b/.github/workflows/auto-build-pkg.yml
@@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
diff --git a/.github/workflows/generate-locale-doc.yml b/.github/workflows/generate-locale-doc.yml
index ba2f7e8..4beefe3 100644
--- a/.github/workflows/generate-locale-doc.yml
+++ b/.github/workflows/generate-locale-doc.yml
@@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
diff --git a/.github/workflows/generate-theme-doc.yml b/.github/workflows/generate-theme-doc.yml
index b99faea..0474451 100644
--- a/.github/workflows/generate-theme-doc.yml
+++ b/.github/workflows/generate-theme-doc.yml
@@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
diff --git a/.github/workflows/setup-package.yml b/.github/workflows/setup-package.yml
index f09849b..fb65ce1 100644
--- a/.github/workflows/setup-package.yml
+++ b/.github/workflows/setup-package.yml
@@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- - uses: actions/setup-node@v4
+ - uses: actions/setup-node@v4.0.1
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index a4f2db6..ca11478 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
From e4d10baf8ffedb78b5315fc5c2accf4017d58c97 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 18 Dec 2023 20:41:16 +0000
Subject: [PATCH 11/33] build(deps): bump rickstaa/top-issues-action from
1.3.77 to 1.3.83 (#212)
Bumps [rickstaa/top-issues-action](https://github.com/rickstaa/top-issues-action) from 1.3.77 to 1.3.83.
- [Release notes](https://github.com/rickstaa/top-issues-action/releases)
- [Commits](https://github.com/rickstaa/top-issues-action/compare/8c70898862d1e7808bd5ce009405ac44f461044d...ce1a949c62a7a5d8b4890d596b5c5da37db628ca)
---
updated-dependencies:
- dependency-name: rickstaa/top-issues-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
.github/workflows/top-issues-dashboard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/top-issues-dashboard.yml b/.github/workflows/top-issues-dashboard.yml
index 9bdf214..b9c05e3 100644
--- a/.github/workflows/top-issues-dashboard.yml
+++ b/.github/workflows/top-issues-dashboard.yml
@@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run top issues action
- uses: rickstaa/top-issues-action@8c70898862d1e7808bd5ce009405ac44f461044d # v1.3.77
+ uses: rickstaa/top-issues-action@ce1a949c62a7a5d8b4890d596b5c5da37db628ca # v1.3.83
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
From dcb0f8dedcd869bec81dd94c93e74ef6b8a2b3c0 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 22 Dec 2023 01:17:16 +0000
Subject: [PATCH 12/33] build(deps): bump all dependencies and devDependencies
version (#214)
Co-authored-by: github-actions[bot]
---
package-lock.json | 26 +++++++++++++-------------
package.json | 2 +-
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 8bd8a4c..30fac6d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,7 +23,7 @@
"devDependencies": {
"@markdoc/markdoc": "^0.4.0",
"@types/jest": "^29.5.11",
- "@types/node": "^20.10.4",
+ "@types/node": "^20.10.5",
"jest": "^29.7.0",
"nodemon": "^3.0.2",
"ts-jest": "^29.1.1",
@@ -1399,9 +1399,9 @@
}
},
"node_modules/@types/babel__generator": {
- "version": "7.6.7",
- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.7.tgz",
- "integrity": "sha512-6Sfsq+EaaLrw4RmdFWE9Onp63TOUue71AWb4Gpa6JxzgTYtimbM086WnYTy2U67AofR++QKCo08ZP6pwx8YFHQ==",
+ "version": "7.6.8",
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz",
+ "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==",
"dev": true,
"dependencies": {
"@babel/types": "^7.0.0"
@@ -1557,9 +1557,9 @@
}
},
"node_modules/@types/qs": {
- "version": "6.9.10",
- "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.10.tgz",
- "integrity": "sha512-3Gnx08Ns1sEoCrWssEgTSJs/rsT2vhGP+Ja9cnnk9k4ALxinORlQneLXFeFKOTJMOeZUFD1s7w+w2AphTpvzZw=="
+ "version": "6.9.11",
+ "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.11.tgz",
+ "integrity": "sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ=="
},
"node_modules/@types/range-parser": {
"version": "1.2.7",
@@ -1996,9 +1996,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001570",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001570.tgz",
- "integrity": "sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw==",
+ "version": "1.0.30001571",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001571.tgz",
+ "integrity": "sha512-tYq/6MoXhdezDLFZuCO/TKboTzuQ/xR5cFdgXPfDtM7/kchBO3b4VWghE/OAi/DV7tTdhmLjZiZBZi1fA/GheQ==",
"dev": true,
"funding": [
{
@@ -2342,9 +2342,9 @@
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
},
"node_modules/electron-to-chromium": {
- "version": "1.4.613",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.613.tgz",
- "integrity": "sha512-r4x5+FowKG6q+/Wj0W9nidx7QO31BJwmR2uEo+Qh3YLGQ8SbBAFuDFpTxzly/I2gsbrFwBuIjrMp423L3O5U3w==",
+ "version": "1.4.616",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.616.tgz",
+ "integrity": "sha512-1n7zWYh8eS0L9Uy+GskE0lkBUNK83cXTVJI0pU3mGprFsbfSdAc15VTFbo+A+Bq4pwstmL30AVcEU3Fo463lNg==",
"dev": true
},
"node_modules/emittery": {
diff --git a/package.json b/package.json
index f72bc1b..6e31aa5 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
"devDependencies": {
"@markdoc/markdoc": "^0.4.0",
"@types/jest": "^29.5.11",
- "@types/node": "^20.10.4",
+ "@types/node": "^20.10.5",
"jest": "^29.7.0",
"nodemon": "^3.0.2",
"ts-jest": "^29.1.1",
From 14734470806f1ec49ebab77c57465520c9098b66 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 25 Dec 2023 20:31:25 +0000
Subject: [PATCH 13/33] build(deps): bump rickstaa/top-issues-action from
1.3.83 to 1.3.86 (#215)
Bumps [rickstaa/top-issues-action](https://github.com/rickstaa/top-issues-action) from 1.3.83 to 1.3.86.
- [Release notes](https://github.com/rickstaa/top-issues-action/releases)
- [Commits](https://github.com/rickstaa/top-issues-action/compare/ce1a949c62a7a5d8b4890d596b5c5da37db628ca...c89f81ea20ab265071194cf102bc881f476ecca8)
---
updated-dependencies:
- dependency-name: rickstaa/top-issues-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
.github/workflows/top-issues-dashboard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/top-issues-dashboard.yml b/.github/workflows/top-issues-dashboard.yml
index b9c05e3..129ea6b 100644
--- a/.github/workflows/top-issues-dashboard.yml
+++ b/.github/workflows/top-issues-dashboard.yml
@@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run top issues action
- uses: rickstaa/top-issues-action@ce1a949c62a7a5d8b4890d596b5c5da37db628ca # v1.3.83
+ uses: rickstaa/top-issues-action@c89f81ea20ab265071194cf102bc881f476ecca8 # v1.3.86
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
From 6314772042d7cb2b6efefa4025fc3f87e040d952 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 29 Dec 2023 01:08:08 +0000
Subject: [PATCH 14/33] build(deps): bump all dependencies and devDependencies
version (#216)
Co-authored-by: github-actions[bot]
---
package-lock.json | 14 +++++++-------
package.json | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 30fac6d..5ce96db 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13,7 +13,7 @@
"@resvg/resvg-js": "^2.6.0",
"@types/escape-html": "^1.0.4",
"@types/express": "^4.17.21",
- "axios": "^1.6.2",
+ "axios": "^1.6.3",
"dotenv": "^16.3.1",
"escape-html": "^1.0.3",
"express": "^4.18.2",
@@ -1721,9 +1721,9 @@
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"node_modules/axios": {
- "version": "1.6.2",
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz",
- "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==",
+ "version": "1.6.3",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.3.tgz",
+ "integrity": "sha512-fWyNdeawGam70jXSVlKl+SUNVcL6j6W79CuSIPfi6HnDUmSCH6gyUys/HrqHeA/wU0Az41rRgean494d0Jb+ww==",
"dependencies": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",
@@ -1996,9 +1996,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001571",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001571.tgz",
- "integrity": "sha512-tYq/6MoXhdezDLFZuCO/TKboTzuQ/xR5cFdgXPfDtM7/kchBO3b4VWghE/OAi/DV7tTdhmLjZiZBZi1fA/GheQ==",
+ "version": "1.0.30001572",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001572.tgz",
+ "integrity": "sha512-1Pbh5FLmn5y4+QhNyJE9j3/7dK44dGB83/ZMjv/qJk86TvDbjk0LosiZo0i0WB0Vx607qMX9jYrn1VLHCkN4rw==",
"dev": true,
"funding": [
{
diff --git a/package.json b/package.json
index 6e31aa5..5c16f78 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"@resvg/resvg-js": "^2.6.0",
"@types/escape-html": "^1.0.4",
"@types/express": "^4.17.21",
- "axios": "^1.6.2",
+ "axios": "^1.6.3",
"dotenv": "^16.3.1",
"escape-html": "^1.0.3",
"express": "^4.18.2",
From 972dd96548a77b39de6115a562eb6f689c8a8b53 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 1 Jan 2024 01:25:16 +0000
Subject: [PATCH 15/33] build(deps): bump all dependencies and devDependencies
version (#217)
Co-authored-by: github-actions[bot]
---
package-lock.json | 50 +++++++++++++++++++++++------------------------
package.json | 2 +-
2 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 5ce96db..a141ecc 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,7 +23,7 @@
"devDependencies": {
"@markdoc/markdoc": "^0.4.0",
"@types/jest": "^29.5.11",
- "@types/node": "^20.10.5",
+ "@types/node": "^20.10.6",
"jest": "^29.7.0",
"nodemon": "^3.0.2",
"ts-jest": "^29.1.1",
@@ -156,9 +156,9 @@
}
},
"node_modules/@babel/core": {
- "version": "7.23.6",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.6.tgz",
- "integrity": "sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==",
+ "version": "7.23.7",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.7.tgz",
+ "integrity": "sha512-+UpDgowcmqe36d4NwqvKsyPMlOLNGMsfMmQ5WGCu+siCe3t3dfe9njrzGfdN4qq+bcNUt0+Vw6haRxBOycs4dw==",
"dev": true,
"dependencies": {
"@ampproject/remapping": "^2.2.0",
@@ -166,10 +166,10 @@
"@babel/generator": "^7.23.6",
"@babel/helper-compilation-targets": "^7.23.6",
"@babel/helper-module-transforms": "^7.23.3",
- "@babel/helpers": "^7.23.6",
+ "@babel/helpers": "^7.23.7",
"@babel/parser": "^7.23.6",
"@babel/template": "^7.22.15",
- "@babel/traverse": "^7.23.6",
+ "@babel/traverse": "^7.23.7",
"@babel/types": "^7.23.6",
"convert-source-map": "^2.0.0",
"debug": "^4.1.0",
@@ -365,13 +365,13 @@
}
},
"node_modules/@babel/helpers": {
- "version": "7.23.6",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.6.tgz",
- "integrity": "sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA==",
+ "version": "7.23.7",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.7.tgz",
+ "integrity": "sha512-6AMnjCoC8wjqBzDHkuqpa7jAKwvMo4dC+lr/TFBz+ucfulO1XMpDnwWPGBNwClOKZ8h6xn5N81W/R5OrcKtCbQ==",
"dev": true,
"dependencies": {
"@babel/template": "^7.22.15",
- "@babel/traverse": "^7.23.6",
+ "@babel/traverse": "^7.23.7",
"@babel/types": "^7.23.6"
},
"engines": {
@@ -667,9 +667,9 @@
}
},
"node_modules/@babel/traverse": {
- "version": "7.23.6",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz",
- "integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==",
+ "version": "7.23.7",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.7.tgz",
+ "integrity": "sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==",
"dev": true,
"dependencies": {
"@babel/code-frame": "^7.23.5",
@@ -1418,9 +1418,9 @@
}
},
"node_modules/@types/babel__traverse": {
- "version": "7.20.4",
- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.4.tgz",
- "integrity": "sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==",
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz",
+ "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==",
"dev": true,
"dependencies": {
"@babel/types": "^7.20.7"
@@ -1549,9 +1549,9 @@
"integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w=="
},
"node_modules/@types/node": {
- "version": "20.10.5",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz",
- "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==",
+ "version": "20.10.6",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.6.tgz",
+ "integrity": "sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==",
"dependencies": {
"undici-types": "~5.26.4"
}
@@ -1625,9 +1625,9 @@
}
},
"node_modules/acorn": {
- "version": "8.11.2",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
- "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
+ "version": "8.11.3",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
+ "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
"dev": true,
"bin": {
"acorn": "bin/acorn"
@@ -2571,9 +2571,9 @@
}
},
"node_modules/follow-redirects": {
- "version": "1.15.3",
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz",
- "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==",
+ "version": "1.15.4",
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz",
+ "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==",
"funding": [
{
"type": "individual",
diff --git a/package.json b/package.json
index 5c16f78..a3cb484 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
"devDependencies": {
"@markdoc/markdoc": "^0.4.0",
"@types/jest": "^29.5.11",
- "@types/node": "^20.10.5",
+ "@types/node": "^20.10.6",
"jest": "^29.7.0",
"nodemon": "^3.0.2",
"ts-jest": "^29.1.1",
From b87b3924a3abd55758a93c4c6a2dc32f94b955ce Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 1 Jan 2024 19:38:38 +0000
Subject: [PATCH 16/33] build(deps): bump rickstaa/top-issues-action from
1.3.86 to 1.3.87 (#218)
Bumps [rickstaa/top-issues-action](https://github.com/rickstaa/top-issues-action) from 1.3.86 to 1.3.87.
- [Release notes](https://github.com/rickstaa/top-issues-action/releases)
- [Commits](https://github.com/rickstaa/top-issues-action/compare/c89f81ea20ab265071194cf102bc881f476ecca8...fa1b14384871ebbc2f341f953a728e8370788992)
---
updated-dependencies:
- dependency-name: rickstaa/top-issues-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
.github/workflows/top-issues-dashboard.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/top-issues-dashboard.yml b/.github/workflows/top-issues-dashboard.yml
index 129ea6b..b679134 100644
--- a/.github/workflows/top-issues-dashboard.yml
+++ b/.github/workflows/top-issues-dashboard.yml
@@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run top issues action
- uses: rickstaa/top-issues-action@c89f81ea20ab265071194cf102bc881f476ecca8 # v1.3.86
+ uses: rickstaa/top-issues-action@fa1b14384871ebbc2f341f953a728e8370788992 # v1.3.87
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
with:
From 4038ca837710621c7f39a04f777d98a58693d0c9 Mon Sep 17 00:00:00 2001
From: Rangga Fajar Oktariansyah <86386385+FajarKim@users.noreply.github.com>
Date: Tue, 2 Jan 2024 17:59:29 +0700
Subject: [PATCH 17/33] refactor: revise code for readability and
maintainability (#219)
---
src/card.ts | 277 ++++++++++++++++++++++++++--------------------------
1 file changed, 138 insertions(+), 139 deletions(-)
diff --git a/src/card.ts b/src/card.ts
index f126e63..935ec8f 100644
--- a/src/card.ts
+++ b/src/card.ts
@@ -24,64 +24,67 @@ export default function cardStyle(data: GetData, uiConfig: UiConfig): string {
// Setting angles and positions for SVG elements
const direction = isRtlDirection ? "rtl" : "ltr";
- const titleXAngle = isDisabledAnimations ? (isRtlDirection ? 520 : 15) : (isRtlDirection ? 510 : 5);
- const titleYAngle = isDisabledAnimations ? 0 : -10;
- const textXAngle = isRtlDirection ? 215 : 25;
- const dataXAngle = isRtlDirection ? 15 : 225;
- const iconXAngle = isRtlDirection ? 225 : 0;
- const imageXAngle = isDisabledAnimations ? 120 : 125;
- const imageYAngle = isDisabledAnimations ? 70 : 65;
- const userXAngle = isDisabledAnimations ? 119.9 : 109.9;
- const userYAngle = isDisabledAnimations ? 140 : 130;
- const follXAngle = isDisabledAnimations ? 120 : 110;
- const follYAngle = isDisabledAnimations ? 161 : 151;
+ const angle = {
+ titleXAngle: isDisabledAnimations ? (isRtlDirection ? 520 : 15) : (isRtlDirection ? 510 : 5),
+ titleYAngle: isDisabledAnimations ? 0 : -10,
+ textXAngle: isRtlDirection ? 210 : 25,
+ dataXAngle: isRtlDirection ? 5 : 230,
+ iconXAngle: isRtlDirection ? 220 : 0,
+ imageXAngle: isDisabledAnimations ? 120 : 125,
+ imageYAngle: isDisabledAnimations ? 70 : 65,
+ userXAngle: isDisabledAnimations ? 119.9 : 109.9,
+ userYAngle: isDisabledAnimations ? 140 : 130,
+ follXAngle: isDisabledAnimations ? 120 : 110,
+ follYAngle: isDisabledAnimations ? 161 : 151,
+ };
// Setting styles for hiding stroke and border based on UI configuration
const hideStroke = parseBoolean(uiConfig.hideStroke) ? `` : `stroke="#${uiConfig.strokeColor}" stroke-width="5"`;
const hideBorder = parseBoolean(uiConfig.hideBorder) ? `` : `stroke="#${uiConfig.borderColor}" stroke-opacity="1" stroke-width="${uiConfig.borderWidth}"`;
// CSS animations for SVG elements
- const animations = parseBoolean(uiConfig.disabledAnimations || uiConfig.Format === "png") ? `` : ` /* Animations */
- @keyframes scaleInAnimation {
- from {
- transform: translate(-5px, 5px) scale(0);
- }
- to {
- transform: translate(-5px, 5px) scale(1);
- }
- }
- @keyframes fadeInAnimation {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- @keyframes fadeLeftInAnimation {
- from {
- opacity: 0;
- transform: translate(-90px, 10px);
- }
- to {
- opacity: 1;
- transform: translate(10px, 10px);
- }
- }
-
- .div-animation {
- animation: fadeLeftInAnimation 0.7s ease-in-out forwards;
- }
-
- .image-profile-animation {
- animation: scaleInAnimation 1.2s ease-in-out forwards;
- transform-origin: ${imageXAngle}px ${imageYAngle}px;
- }
-
- .single-item-animation {
- opacity: 0;
- animation: fadeInAnimation 0.3s ease-in-out forwards;
- }`;
+ const animations = parseBoolean(uiConfig.disabledAnimations || uiConfig.Format === "png") ? `` : `
+ /* Animations */
+ @keyframes scaleInAnimation {
+ from {
+ transform: translate(-5px, 5px) scale(0);
+ }
+ to {
+ transform: translate(-5px, 5px) scale(1);
+ }
+ }
+ @keyframes fadeInAnimation {
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
+ }
+ @keyframes fadeLeftInAnimation {
+ from {
+ opacity: 0;
+ transform: translate(-90px, 10px);
+ }
+ to {
+ opacity: 1;
+ transform: translate(10px, 10px);
+ }
+ }
+
+ .div-animation {
+ animation: fadeLeftInAnimation 0.7s ease-in-out forwards;
+ }
+
+ .image-profile-animation {
+ animation: scaleInAnimation 1.2s ease-in-out forwards;
+ transform-origin: ${angle.imageXAngle}px ${angle.imageYAngle}px;
+ }
+
+ .single-item-animation {
+ opacity: 0;
+ animation: fadeInAnimation 0.3s ease-in-out forwards;
+ }`;
// Extracting and formatting hidden and shown items based on UI configuration
const hiddenItems = uiConfig.hiddenItems || "";
@@ -110,15 +113,15 @@ export default function cardStyle(data: GetData, uiConfig: UiConfig): string {
// Generating SVG code for each visible card item
const cardItemsSVG = cardItemsToShow.map((item, index) => `
-
-
-
- ${item.text}:
- ${item.value}
-
- `).join("\n");
+
+
+
+ ${item.text}:
+ ${item.value}
+
+ `).join("\n");
/**
* Generates a linear gradient SVG code based on an array of color stops.
@@ -135,13 +138,12 @@ export default function cardStyle(data: GetData, uiConfig: UiConfig): string {
return ``;
}).join("");
return `
-
-
- ${gradientStops}
-
-
-
- `;
+
+
+ ${gradientStops}
+
+
+ `;
}
// Generating SVG code for the background based on background color or gradient
@@ -155,81 +157,78 @@ export default function cardStyle(data: GetData, uiConfig: UiConfig): string {
const gradientColors = gradientHexArray.map(color => color.trim());
backgroundSVG = generateGradient(gradientColors);
} else {
- backgroundSVG = ``;
+ backgroundSVG = `
+ `;
}
}
}
// Final SVG code for the GitHub stats card
- return `