-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
148 changed files
with
24,898 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": false, | ||
"targets": { | ||
"chrome": "100", | ||
"firefox": "100", | ||
"safari": "16" | ||
} | ||
} | ||
] | ||
] | ||
} |
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,11 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,27 @@ | ||
module.exports = { | ||
extends: ['@softalert2/eslint-config', 'plugin:no-unsanitized/DOM', 'plugin:jsdoc/recommended'], | ||
plugins: ['jsdoc'], | ||
rules: { | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
'@typescript-eslint/no-empty-interface': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-this-alias': 0, | ||
'@typescript-eslint/triple-slash-reference': 0, | ||
'jsdoc/require-param-description': 0, | ||
'jsdoc/require-property-description': 0, | ||
'jsdoc/require-returns-description': 0, | ||
'jsdoc/no-undefined-types': 0, | ||
'jsdoc/tag-lines': 0, | ||
'jsdoc/valid-types': 0, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['softalert2.d.ts'], | ||
rules: { | ||
'jsdoc/require-param': 0, | ||
'jsdoc/require-returns': 0, | ||
'jsdoc/require-param-type': 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,13 @@ | ||
# Contributor Code of Conduct | ||
|
||
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. | ||
|
||
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion. | ||
|
||
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team. | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers. | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/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,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: softinvest |
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,37 @@ | ||
name: Bug Report | ||
description: Something not working as expected | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: current-behavior | ||
attributes: | ||
label: Current behavior | ||
description: Describe how the issue manifests | ||
placeholder: Tell us what you see! | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected behavior | ||
description: Describe what the desired behavior would be | ||
placeholder: Tell us what exactly you want and why! | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: live-demo | ||
attributes: | ||
label: Live demo !!! THIS FIELD IS REQUIRED !!! | ||
description: | | ||
Provide a WORKING example in order for us to be able to reproduce the issue | ||
!!! SCREENSHOTS ARE NOT LIVE EXAMPLES !!! | ||
Bug reports without live demo will be closed! | ||
value: | | ||
The live demo template: https://codepen.io/limonte/pen/JjoWRMx | ||
validations: | ||
required: true |
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,24 @@ | ||
name: Feature request | ||
description: Wouldn’t it be nice if SoftAlert2 could ... | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this feature request! | ||
- type: textarea | ||
id: motivation | ||
attributes: | ||
label: New feature motivation | ||
description: Describe the context, the use-case and the advantages of the feature request | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: New feature description | ||
description: Optionally describe the functional changes that would have to be made in SoftAlert2 | ||
- type: textarea | ||
id: implementation | ||
attributes: | ||
label: New feature implementation | ||
description: Optionally describe the technical changes to be made in SoftAlert2 |
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,10 @@ | ||
--- | ||
name: Question | ||
about: Ask a question | ||
labels: | ||
--- | ||
|
||
Please post your question to StackOverflow: https://stackoverflow.com/questions/ask | ||
Make sure to add the `softalert2` tag to the question. | ||
|
||
Thank you. |
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,64 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install npm dependencies | ||
run: yarn install | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Run linters | ||
run: yarn lint | ||
|
||
- name: Check types | ||
run: yarn check-types | ||
|
||
- name: Run tests in Chrome | ||
run: yarn test --browser chrome | ||
|
||
- name: Run tests in Firefox | ||
if: github.ref_name == 'main' | ||
run: yarn test --browser firefox | ||
|
||
- name: Test in CommonJS | ||
if: github.ref_name == 'main' | ||
run: node test/require-in-commonjs.cjs | ||
|
||
- name: Test with Webpack | ||
if: github.ref_name == 'main' | ||
run: | | ||
yarn add --dev webpack@^5.0.0 webpack-cli@^5.0.0 | ||
yarn webpack-build | ||
yarn add --dev webpack@^4.0.0 webpack-cli@^4.0.0 | ||
export NODE_OPTIONS=--openssl-legacy-provider | ||
yarn webpack-build | ||
- name: Check TypeScript | ||
if: github.ref_name == 'main' | ||
run: | | ||
ln -s ../../ test/ts/node_modules | ||
tsc --lib dom,es6 --noEmit test/ts/simple-usage.ts | ||
tsc --lib dom,es6 --noEmit test/ts/dist-softalert2.ts softalert2.d.ts | ||
tsc --lib dom,es6 --noEmit test/ts/src-softalert2.ts softalert2.d.ts | ||
- name: Run automated release process with semantic-release | ||
if: github.ref_name == 'main' | ||
uses: cycjimmy/semantic-release-action@v3 | ||
with: | ||
extra_plugins: | | ||
@semantic-release/changelog | ||
@semantic-release/git | ||
@semantic-release/exec | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 @@ | ||
node_modules | ||
dist | ||
cypress/fixtures | ||
cypress/screenshots | ||
.idea | ||
.vscode |
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,2 @@ | ||
README.md | ||
|
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,3 @@ | ||
{ | ||
"extends": "@softalert2/stylelint-config" | ||
} |
Oops, something went wrong.