Skip to content

Commit 33cd0b7

Browse files
committed
chore: add license and coc document
1 parent 7e11574 commit 33cd0b7

File tree

3 files changed

+334
-1
lines changed

3 files changed

+334
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ build/
44
coverage/
55
.lambdatest/
66
.eslintcache
7-
.env
7+
.env
8+
.DS_Store
9+
.idea

CODE_OF_CONDUCT.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
2+
# Contributor Covenant Code of Conduct
3+
4+
## Our Pledge
5+
6+
We as members, contributors, and leaders of this open-source project pledge
7+
to make participation in our community and contribution to our project an
8+
inclusive experience for everyone, regardless of age, body size, visible or
9+
invisible disability, ethnicity, gender identity, and expression, sexual identity
10+
and orientation, level of experience, education, socio-economic status,
11+
nationality, personal appearance, race, caste, color, or religion.
12+
13+
We pledge to act and interact in ways that contribute to an open, welcoming,
14+
diverse, inclusive, and healthy community.
15+
16+
## Our Standards
17+
18+
Examples of behavior that contributes to a positive environment for our
19+
community include:
20+
21+
* Demonstrating empathy and kindness toward other people.
22+
* Being respectful of differing opinions, viewpoints, and experiences.
23+
* Giving and gracefully accepting constructive feedback.
24+
* Accepting responsibility and apologizing to those affected by our mistakes,
25+
and learning from the experience.
26+
* Focusing on what is best not just for us as individuals, but for the overall
27+
community.
28+
29+
Examples of unacceptable behavior include:
30+
31+
* The use of sexualized language or imagery, and sexual attention or advances of
32+
any kind
33+
* Trolling, insulting or derogatory comments, and personal or political attacks
34+
* Public or private harassment
35+
* Publishing others' private information, such as a physical or email address,
36+
without their explicit permission
37+
* Other conduct which could reasonably be considered inappropriate in a
38+
professional setting
39+
40+
## Enforcement Responsibilities
41+
42+
Community leaders are responsible for clarifying and enforcing our standards of
43+
acceptable behavior and will take appropriate and fair corrective action in
44+
response to any behavior that they deem inappropriate, threatening, offensive,
45+
or harmful.
46+
47+
Community leaders have the right and responsibility to remove, edit, or reject
48+
comments, commits, code, wiki edits, issues, and other contributions that are
49+
not aligned to this Code of Conduct, and will communicate reasons for moderation
50+
decisions when appropriate.
51+
52+
## Scope
53+
54+
This Code of Conduct applies within all community spaces, and also applies when
55+
an individual is officially representing the community in public spaces.
56+
Examples of representing our community include using an official e-mail address,
57+
posting via an official social media account, or acting as an appointed
58+
representative at an online or offline event.
59+
60+
## Enforcement
61+
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported to the community leaders responsible for enforcement at
64+
65+
All complaints will be reviewed and investigated promptly and fairly.
66+
67+
All community leaders are obligated to respect the privacy and security of the
68+
reporter of any incident.
69+
70+
## Enforcement Guidelines
71+
72+
Community leaders will follow these Community Impact Guidelines in determining
73+
the consequences for any action they deem in violation of this Code of Conduct:
74+
75+
### 1. Correction
76+
77+
**Community Impact**: Use of inappropriate language or other behavior deemed
78+
unprofessional or unwelcome in the community.
79+
80+
**Consequence**: A private, written warning from community leaders, providing
81+
clarity around the nature of the violation and an explanation of why the
82+
behavior was inappropriate. A public apology may be requested.
83+
84+
### 2. Warning
85+
86+
**Community Impact**: A violation through a single incident or series of
87+
actions.
88+
89+
**Consequence**: A warning with consequences for continued behavior. No
90+
interaction with the people involved, including unsolicited interaction with
91+
those enforcing the Code of Conduct, for a specified period of time. This
92+
includes avoiding interactions in community spaces as well as external channels
93+
like social media. Violating these terms may lead to a temporary or permanent
94+
ban.
95+
96+
### 3. Temporary Ban
97+
98+
**Community Impact**: A serious violation of community standards, including
99+
sustained inappropriate behavior.
100+
101+
**Consequence**: A temporary ban from any sort of interaction or public
102+
communication with the community for a specified period of time. No public or
103+
private interaction with the people involved, including unsolicited interaction
104+
with those enforcing the Code of Conduct, is allowed during this period.
105+
Violating these terms may lead to a permanent ban.
106+
107+
### 4. Permanent Ban
108+
109+
**Community Impact**: Demonstrating a pattern of violation of community
110+
standards, including sustained inappropriate behavior, harassment of an
111+
individual, or aggression toward or disparagement of classes of individuals.
112+
113+
**Consequence**: A permanent ban from any sort of public interaction within the
114+
community.
115+
116+
## Attribution
117+
118+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119+
version 2.1, available at
120+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121+
122+
Community Impact Guidelines were inspired by
123+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124+
125+
For answers to common questions about this code of conduct, see the FAQ at
126+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127+
[https://www.contributor-covenant.org/translations][translations].
128+
129+
[homepage]: https://www.contributor-covenant.org
130+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131+
[Mozilla CoC]: https://github.com/mozilla/diversity
132+
[FAQ]: https://www.contributor-covenant.org/faq
133+
[translations]: https://www.contributor-covenant.org/translations

LICENSE

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
Apache License
2+
Version 2.0, January 2004
3+
http://www.apache.org/licenses/
4+
5+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6+
7+
1. Definitions.
8+
9+
"License" shall mean the terms and conditions for use, reproduction,
10+
and distribution as defined by Sections 1 through 9 of this document.
11+
12+
"Licensor" shall mean the copyright owner or entity authorized by
13+
the copyright owner that is granting the License.
14+
15+
"Legal Entity" shall mean the union of the acting entity and all
16+
other entities that control, are controlled by, or are under common
17+
control with that entity.
18+
19+
"You" (or "Your") shall mean an individual or Legal Entity
20+
exercising permissions granted by this License.
21+
22+
"Source" form shall mean the preferred form for making modifications,
23+
including but not limited to software source code, documentation
24+
source, and configuration files.
25+
26+
"Object" form shall mean any form resulting from mechanical
27+
transformation or translation of a Source form, including but
28+
not limited to compiled object code, generated documentation,
29+
and conversions to other media types.
30+
31+
"Work" shall mean the work of authorship, whether in Source or
32+
Object form, made available under the License, as indicated by a
33+
copyright notice that is included in or attached to the work
34+
(an example is provided in the Appendix below).
35+
36+
"Derivative Works" shall mean any work, whether in Source or Object
37+
form, that is based on (or derived from) the Work and for which the
38+
editorial revisions, annotations, elaborations, or other modifications
39+
represent, as a whole, an original work of authorship. For the purposes
40+
of this License, Derivative Works shall not include works that remain
41+
separable from, or merely link (or bind by name) to the interfaces of,
42+
the Work and Derivative Works thereof.
43+
44+
"Contribution" shall mean any work of authorship, including
45+
the original version of the Work and any modifications or additions
46+
to that Work or Derivative Works thereof, that is intentionally
47+
submitted to Licensor for inclusion in the Work by the copyright owner
48+
or by an individual or Legal Entity authorized to submit on behalf of
49+
the copyright owner. For the purposes of this definition, "submitted"
50+
means any form of electronic, verbal, or written communication sent
51+
to the Licensor or its representatives, including but not limited to
52+
communication on electronic mailing lists, source code control systems,
53+
and issue tracking systems that are managed by, or on behalf of, the
54+
Licensor for the purpose of discussing and improving the Work, but
55+
excluding communication that is conspicuously marked or otherwise
56+
designated in writing by the copyright owner as "Not a Contribution."
57+
58+
"Contributor" shall mean Licensor and any individual or Legal Entity
59+
on behalf of whom a Contribution has been received by Licensor and
60+
subsequently incorporated within the Work.
61+
62+
2. Grant of Copyright License.
63+
Subject to the terms and conditions of this License, each Contributor
64+
hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
65+
royalty-free, irrevocable copyright license to reproduce, prepare
66+
Derivative Works of, publicly display, publicly perform, sublicense,
67+
and distribute the Work and such Derivative Works in Source or Object
68+
form.
69+
70+
3. Grant of Patent License.
71+
Subject to the terms and conditions of this License, each Contributor
72+
hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
73+
royalty-free, irrevocable (except as stated in this section) patent
74+
license to make, have made, use, offer to sell, sell, import, and
75+
otherwise transfer the Work, where such license applies only to those
76+
patent claims licensable by such Contributor that are necessarily
77+
infringed by their Contribution(s) alone or by combination of their
78+
Contribution(s) with the Work to which such Contribution(s) was
79+
submitted. If You institute patent litigation against any entity
80+
(including a cross-claim or counterclaim in a lawsuit) alleging that
81+
the Work or a Contribution incorporated within the Work constitutes
82+
direct or contributory patent infringement, then any patent licenses
83+
granted to You under this License for that Work shall terminate as
84+
of the date such litigation is filed.
85+
86+
4. Redistribution.
87+
You may reproduce and distribute copies of the Work or Derivative
88+
Works thereof in any medium, with or without modifications, and in
89+
Source or Object form, provided that You meet the following conditions:
90+
91+
(a) You must give any other recipients of the Work or Derivative
92+
Works a copy of this License; and
93+
94+
(b) You must cause any modified files to carry prominent notices
95+
stating that You changed the files; and
96+
97+
(c) You must retain, in the Source form of any Derivative Works that
98+
You distribute, all copyright, patent, trademark, and attribution
99+
notices from the Source form of the Work, excluding those notices
100+
that do not pertain to any part of the Derivative Works; and
101+
102+
(d) If the Work includes a "NOTICE" text file as part of its
103+
distribution, then any Derivative Works that You distribute must
104+
include a readable copy of the attribution notices contained
105+
within such NOTICE file, excluding those notices that do not
106+
pertain to any part of the Derivative Works, in at least one
107+
of the following places: within a NOTICE text file distributed
108+
as part of the Derivative Works; within the Source form or
109+
documentation, if provided along with the Derivative Works; or,
110+
within a display generated by the Derivative Works, if and
111+
wherever such third-party notices normally appear. The contents
112+
of the NOTICE file are for informational purposes only and
113+
do not modify the License. You may add Your own attribution
114+
notices within Derivative Works that You distribute, alongside
115+
or as an addendum to the NOTICE text from the Work, provided
116+
that such additional attribution notices cannot be construed
117+
as modifying the License.
118+
119+
You may add Your own copyright statement to Your modifications and
120+
may provide additional or different license terms and conditions
121+
for use, reproduction, or distribution of Your modifications, or
122+
for any such Derivative Works as a whole, provided Your use,
123+
reproduction, and distribution of the Work otherwise complies with
124+
the conditions stated in this License.
125+
126+
5. Submission of Contributions.
127+
Unless You explicitly state otherwise, any Contribution intentionally
128+
submitted for inclusion in the Work by You to the Licensor shall be
129+
under the terms and conditions of this License, without any additional
130+
terms or conditions. Notwithstanding the above, nothing herein shall
131+
supersede or modify the terms of any separate license agreement You
132+
may have executed with Licensor regarding such Contributions.
133+
134+
6. Trademarks.
135+
This License does not grant permission to use the trade names,
136+
trademarks, service marks, or product names of the Licensor, except
137+
as required for describing the origin of the Work and reproducing
138+
the content of the NOTICE file.
139+
140+
7. Disclaimer of Warranty.
141+
Unless required by applicable law or agreed to in writing, Licensor
142+
provides the Work (and each Contributor provides its Contributions)
143+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
144+
KIND, either express or implied, including, without limitation, any
145+
warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY,
146+
or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
147+
determining the appropriateness of using or redistributing the Work
148+
and assume any risks associated with Your exercise of permissions
149+
under this License.
150+
151+
8. Limitation of Liability.
152+
In no event and under no legal theory,
153+
whether in tort (including negligence), contract, or otherwise,
154+
unless required by applicable law (such as deliberate and grossly
155+
negligent acts) or agreed to in writing, shall any Contributor be
156+
liable to You for damages, including any direct, indirect, special,
157+
incidental, or consequential damages of any character arising as a
158+
result of this License or out of the use or inability to use the
159+
Work (including but not limited to damages for loss of goodwill,
160+
work stoppage, computer failure or malfunction, or any and all
161+
other commercial damages or losses), even if such Contributor
162+
has been advised of the possibility of such damages.
163+
164+
9. Accepting Warranty or Additional Liability.
165+
While redistributing the Work or Derivative Works thereof,
166+
You may choose to offer, and charge a fee for, acceptance of support,
167+
warranty, indemnity, or other liability obligations and/or rights
168+
consistent with this License. However, in accepting such obligations,
169+
You may act only on Your own behalf and on Your sole responsibility,
170+
not on behalf of any other Contributor, and only if You agree to indemnify,
171+
defend, and hold each Contributor harmless for any liability
172+
incurred by, or claims asserted against, such Contributor by reason
173+
of your accepting any such warranty or additional liability.
174+
175+
APPENDIX: How to apply the Apache License to your work.
176+
177+
To apply the Apache License to your work, attach the following
178+
boilerplate notice, with the fields enclosed by brackets "[]"
179+
replaced with your own identifying information. (Don't include
180+
the brackets!) The text should be enclosed in the appropriate
181+
comment syntax for the file format. We also recommend that a
182+
file or class name and description of purpose be included on the
183+
same "printed page" as the copyright notice for easier
184+
identification within third-party archives.
185+
186+
Copyright 2024 LambdaTest Inc.
187+
188+
Licensed under the Apache License, Version 2.0 (the "License");
189+
you may not use this file except in compliance with the License.
190+
You may obtain a copy of the License at
191+
192+
http://www.apache.org/licenses/LICENSE-2.0
193+
194+
Unless required by applicable law or agreed to in writing, software
195+
distributed under the License is distributed on an "AS IS" BASIS,
196+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
197+
See the License for the specific language governing permissions and
198+
limitations under the License.

0 commit comments

Comments
 (0)