diff --git a/.github/DISCUSSION_TEMPLATE/02_discussions.yml b/.github/DISCUSSION_TEMPLATE/01_discussions.yml similarity index 100% rename from .github/DISCUSSION_TEMPLATE/02_discussions.yml rename to .github/DISCUSSION_TEMPLATE/01_discussions.yml diff --git a/.github/DISCUSSION_TEMPLATE/01_general.yml b/.github/DISCUSSION_TEMPLATE/01_general.yml deleted file mode 100644 index e6b1f36..0000000 --- a/.github/DISCUSSION_TEMPLATE/01_general.yml +++ /dev/null @@ -1,22 +0,0 @@ -title: '[GENERAL]: ' -labels: ['discussion', 'discussions/general'] -body: - - type: dropdown - attributes: - label: Select area of your topic - description: What would you like to discuss? - options: - - 'Question' - - 'Product' - - 'Product feedback' - - 'Bug' - - 'Show and tell' - - 'Else' - validations: - required: true - - type: textarea - attributes: - label: Body - description: Start discussion. - validations: - required: true diff --git a/.github/DISCUSSION_TEMPLATE/02_accessibility.yml b/.github/DISCUSSION_TEMPLATE/02_accessibility.yml new file mode 100644 index 0000000..394b5ba --- /dev/null +++ b/.github/DISCUSSION_TEMPLATE/02_accessibility.yml @@ -0,0 +1,37 @@ +title: '[ACCESS]: ' +labels: ['discussion', 'discussions/accessibility'] +body: + - type: dropdown + attributes: + label: Select accessibility topic + description: Please specify the area of accessibility you want to discuss. + options: + - 'UI/UX Accessibility' + - 'Web Content Accessibility Guidelines (WCAG)' + - 'Screen Reader Support' + - 'Keyboard Navigation' + - 'Color Contrast Issues' + - 'Other Accessibility Concerns' + validations: + required: true + - type: textarea + attributes: + label: Description + description: Provide a detailed explanation of the accessibility topic or issue. + validations: + required: true + - type: checkboxes + attributes: + label: Affected platforms + description: Select the platforms where this accessibility issue is observed. + options: + - 'Web Application' + - 'Desktop Application' + - 'Mobile Application' + - 'Other' + validations: + required: true + - type: input + attributes: + label: Suggested Solutions (Optional) + description: If you have any suggestions for addressing the issue, provide them here. diff --git a/.github/DISCUSSION_TEMPLATE/03_accessibility.yml b/.github/DISCUSSION_TEMPLATE/03_accessibility.yml deleted file mode 100644 index 6e2cf09..0000000 --- a/.github/DISCUSSION_TEMPLATE/03_accessibility.yml +++ /dev/null @@ -1,22 +0,0 @@ -title: '[ACCESS]: ' -labels: ['discussion', 'discussions/accessibility'] -body: - - type: dropdown - attributes: - label: Select area of your topic - description: What would you like to discuss? - options: - - 'Question' - - 'Product' - - 'Product feedback' - - 'Bug' - - 'Show and tell' - - 'Else' - validations: - required: true - - type: textarea - attributes: - label: Body - description: Start discussion. - validations: - required: true diff --git a/.github/ISSUE_TEMPLATE/01_bug_report.yml b/.github/ISSUE_TEMPLATE/01_bug_report.yml index 9b535fb..df37903 100644 --- a/.github/ISSUE_TEMPLATE/01_bug_report.yml +++ b/.github/ISSUE_TEMPLATE/01_bug_report.yml @@ -15,7 +15,7 @@ body: id: contact attributes: label: Contact details - description: If possible, write down the contact information if you need additional communication, if you want contact via “github”, leave this field blank. + description: If possible, write down the contact information for this bug report. If you need additional communication, if you want contact via “github”, leave this field blank. placeholder: example@domain.com validations: required: false @@ -54,7 +54,7 @@ body: id: terms attributes: label: Code of conduct - description: By submitting this issue, you agree to follow our code of conduct. + description: By submitting this bug report, you agree to follow our code of conduct. options: - label: I agree to follow this project's code of conduct required: true @@ -62,7 +62,7 @@ body: id: issue-policy attributes: label: Issue policy - description: By submitting this issue, you agree to follow our issue policy. + description: By submitting this bug report, you agree to follow our issue policy. options: - label: I agree to follow this project's issue policy required: true @@ -70,7 +70,7 @@ body: id: security-policy attributes: label: Security policy - description: By submitting this issue, you agree to follow our security policy. + description: By submitting this bug report, you agree to follow our security policy. options: - label: I agree to follow this project's security policy. required: true diff --git a/.github/ISSUE_TEMPLATE/02_feature_request.yml b/.github/ISSUE_TEMPLATE/02_feature_request.yml index f95be63..d315077 100644 --- a/.github/ISSUE_TEMPLATE/02_feature_request.yml +++ b/.github/ISSUE_TEMPLATE/02_feature_request.yml @@ -15,10 +15,8 @@ body: id: contact attributes: label: Contact details - description: If possible, write down the contact information if you need additional communication, if you want contact via “github”, leave this field blank. + description: If possible, write down the contact information for this feature request. If you need additional communication, if you want contact via “github”, leave this field blank. placeholder: example@domain.com - validations: - required: false - type: textarea id: what-wanted attributes: @@ -43,7 +41,7 @@ body: id: terms attributes: label: Code of conduct - description: By submitting this issue, you agree to follow our code of conduct. + description: By submitting this feature request, you agree to follow our code of conduct. options: - label: I agree to follow this project's code of conduct required: true @@ -51,7 +49,7 @@ body: id: issue-policy attributes: label: Issue policy - description: By submitting this issue, you agree to follow our issue policy. + description: By submitting this feature request, you agree to follow our issue policy. options: - label: I agree to follow this project's issue policy required: true @@ -59,7 +57,7 @@ body: id: security-policy attributes: label: Security policy - description: By submitting this issue, you agree to follow our security policy. + description: By submitting this feature request, you agree to follow our security policy. options: - label: I agree to follow this project's security policy. required: true diff --git a/.github/ISSUE_TEMPLATE/03_question.yml b/.github/ISSUE_TEMPLATE/03_question.yml index 2740f3c..d8a8211 100644 --- a/.github/ISSUE_TEMPLATE/03_question.yml +++ b/.github/ISSUE_TEMPLATE/03_question.yml @@ -15,7 +15,7 @@ body: id: contact attributes: label: Contact details - description: If possible, write down the contact information if you need additional communication, if you want contact via “github”, leave this field blank. + description: If possible, write down the contact information for this question. If you need additional communication, if you want contact via “github”, leave this field blank. placeholder: example@domain.com validations: required: false @@ -28,11 +28,19 @@ body: value: ... validations: required: true + - type: checkboxes + id: terms + attributes: + label: Code of conduct + description: By submitting this question, you agree to follow our code of conduct. + options: + - label: I agree to follow this project's code of conduct + required: true - type: checkboxes id: issue-policy attributes: label: Issue policy - description: By submitting this issue, you agree to follow our issue policy. + description: By submitting this question, you agree to follow our issue policy. options: - label: I agree to follow this project's issue policy required: true @@ -40,7 +48,7 @@ body: id: security-policy attributes: label: Security policy - description: By submitting this issue, you agree to follow our security policy. + description: By submitting this question, you agree to follow our security policy. options: - label: I agree to follow this project's security policy. required: true diff --git a/.github/ISSUE_TEMPLATE/04_documentation_issue.yml b/.github/ISSUE_TEMPLATE/04_documentation_issue.yml index 0a1a239..fdbf21a 100644 --- a/.github/ISSUE_TEMPLATE/04_documentation_issue.yml +++ b/.github/ISSUE_TEMPLATE/04_documentation_issue.yml @@ -15,10 +15,8 @@ body: id: contact attributes: label: Contact details - description: If possible, write down the contact information if you need additional communication, if you want contact via “github”, leave this field blank. + description: If possible, write down the contact information for this documentation issue. If you need additional communication, if you want contact via “github”, leave this field blank. placeholder: example@domain.com - validations: - required: false - type: input id: where-issue attributes: @@ -40,7 +38,7 @@ body: id: terms attributes: label: Code of conduct - description: By submitting this issue, you agree to follow our code of conduct. + description: By submitting this documentation issue, you agree to follow our code of conduct. options: - label: I agree to follow this project's code of conduct required: true @@ -48,7 +46,7 @@ body: id: issue-policy attributes: label: Issue policy - description: By submitting this issue, you agree to follow our issue policy. + description: By submitting this documentation issue, you agree to follow our issue policy. options: - label: I agree to follow this project's issue policy required: true diff --git a/.gitignore b/.gitignore index dd3119f..9368888 100644 --- a/.gitignore +++ b/.gitignore @@ -126,3 +126,6 @@ ts*.buildinfo* # Python VENV **/venv/ + +# JSCPD reports +report/ diff --git a/.husky/README.md b/.husky/README.md index 6c6959e..e721626 100644 --- a/.husky/README.md +++ b/.husky/README.md @@ -37,18 +37,8 @@ Next one are popular errors and fails thrown by hooks: ### Error-code "001" -Code of this exception can be fixed by setting up and installing WSL or set up -instructions of renaming executables: - -- Rename "npm" into "npm.cmd" within your setups; -- Rename "npx" into "npx.cmd" within your setups; - -Source:\ - - -> [!Note] -> If this not helping, go through entire algorithm of fixing hooks from HUSKY and -> setting up virtual machine for UNIX-subsystem. +Read more about this here:\ +[Error "001"](./docs/h001.md) ### Error-code "127" diff --git a/.jscpd.json b/.jscpd.json new file mode 100644 index 0000000..3cbe4b5 --- /dev/null +++ b/.jscpd.json @@ -0,0 +1,6 @@ +{ + "threshold": 0, + "reporters": ["html", "console", "badge"], + "ignore": ["**/__snapshots__/**", "**/venv/**", "**/node_modules/**", "./report/**"], + "absolute": true +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 726b9c2..4d9d841 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,7 +5,10 @@ }, "yaml.schemas": { "yamllint": ["https://json.schemastore.org/yamllint.json"], - "https://json.schemastore.org/yamllint.json": "/.github/ISSUE_TEMPLATE/config.yml" + "https://json.schemastore.org/yamllint.json": [ + "/.github/ISSUE_TEMPLATE/config.yml", + "/.github/ISSUE_TEMPLATE/shared_sections.yml" + ] }, "files.autoSave": "onFocusChange", "editor.formatOnSave": true, diff --git a/package.json b/package.json index 7c797d5..b5e4fcc 100644 --- a/package.json +++ b/package.json @@ -188,6 +188,7 @@ "@electron/lint-roller": "^3.0.0", "@eslint/eslintrc": "^3.2.0", "@eslint/js": "^9.15.0", + "@jscpd/badge-reporter": "^4.0.1", "@npmcli/package-json": "^6.0.1", "@types/fs-extra": "^11.0.4", "@types/minimist": "^1.2.5", @@ -215,6 +216,7 @@ "github-wiki-sidebar": "^1.1.1", "globals": "^15.12.0", "husky": "^9.1.7", + "jscpd": "^4.0.5", "lint": "^1.1.2", "lint-staged": "^15.2.10", "markdownlint": "^0.37.0",