Skip to content

Commit 5a6e7f0

Browse files
authored
Merge pull request #1 from LaswitchTech/dev
v0.0.0
2 parents b883c93 + 7041be0 commit 5a6e7f0

53 files changed

Lines changed: 1922 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.editorconfig‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
; http://editorconfig.org/
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.{yml,yaml}]
14+
indent_size = 2
15+
16+
[{vendor,inc/phpseclib}/**]
17+
; Use editor default (possible autodetection).
18+
indent_style =
19+
indent_size =
20+
end_of_line =
21+
trim_trailing_whitespace =
22+
insert_final_newline =

‎.github/FUNDING.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [LaswitchTech]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
### Description
11+
12+
[Description of the bug or feature]
13+
14+
### Steps to reproduce
15+
16+
1. [First Step]
17+
2. [Second Step]
18+
3. [and so on...]
19+
20+
**Expected behavior:** [What you expected to happen]
21+
22+
**Actual behavior:** [What actually happened]
23+
24+
### Versions
25+
26+
* [PHP]
27+
* [Browser]
28+
29+
### Screenshots or Logs
30+
31+
[Paste your logs or attach the screenshot]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: feature request
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## Description
2+
3+
<!--
4+
Please provide a brief summary of the changes this PR introduces.
5+
Explain the problem being solved or the feature being added.
6+
-->
7+
8+
## Related Issues
9+
10+
<!--
11+
List related issues (e.g. "Fixes #123" or "Closes #456") to automatically link and close them
12+
when this PR is merged.
13+
-->
14+
15+
## Proposed Changes
16+
17+
<!--
18+
If relevant, list the main changes or highlight major improvements (e.g. "Added new API endpoint
19+
for user registration" or "Refactored the XYZ module for better performance").
20+
Provide enough context so reviewers can easily follow the changes.
21+
-->
22+
23+
-
24+
-
25+
-
26+
27+
## How Has This Been Tested?
28+
29+
<!--
30+
Share details on how the changes have been tested (e.g., unit tests, manual testing,
31+
CI passes, etc.). If no tests were added or modified, explain why.
32+
-->
33+
34+
## Screenshots (if appropriate)
35+
36+
<!--
37+
If there's any UI change, attach screenshots or animated GIFs to illustrate it.
38+
-->
39+
40+
## Checklist
41+
42+
<!--
43+
Add any additional checks if needed.
44+
-->
45+
46+
- [ ] My code follows the code style of this project
47+
- [ ] I have reviewed my changes for potential security vulnerabilities
48+
49+
## Additional Comments
50+
51+
<!--
52+
If you have any further comments or questions for the reviewers,
53+
mention them here. (e.g., concerns about certain aspects,
54+
ideas for further improvements, etc.)
55+
-->

‎.github/no-response.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Configuration for probot-no-response - https://github.com/probot/no-response
2+
3+
# Number of days of inactivity before an Issue is closed for lack of response
4+
daysUntilClose: 14
5+
# Label requiring a response
6+
responseRequiredLabel: need more info
7+
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
8+
closeComment: >
9+
This issue has been automatically closed because there has been no response
10+
to our request for more information from the original author. With only the
11+
information that is currently in the issue, we don't have enough information
12+
to take action. Please reach out if you have or find the answers we need so
13+
that we can investigate further.

‎.github/workflows/release.yml‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Set Tag as Filename
18+
id: tag_name
19+
run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV
20+
21+
- name: Create ZIP file
22+
run: |
23+
# -r : recurse
24+
# -q : quiet (optional)
25+
# -x : exclude patterns (globs)
26+
zip -r "source.zip" . \
27+
-x ".git/*" \
28+
-x ".github/*" \
29+
-x ".editorconfig" \
30+
-x ".gitignore"
31+
32+
- name: Generate SHA256 checksum
33+
run: sha256sum "source.zip" > "source.sha256"
34+
35+
- name: Generate Changelog
36+
id: generate_changelog
37+
run: |
38+
# Find the most recent tag before the current one
39+
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^)
40+
41+
# Create a new CHANGELOG.md file with headers
42+
echo -e "# Changelog\n" > CHANGELOG.md
43+
44+
# List commit messages between the previous tag and current HEAD
45+
git log ${PREV_TAG}..HEAD --pretty=format:"* %s" >> CHANGELOG.md
46+
47+
# List unique contributors for these commits
48+
echo -e "\n\n# Contributors\n" >> CHANGELOG.md
49+
git log ${PREV_TAG}..HEAD --format='%aN' | sort -u | awk '{print "* " $0}' >> CHANGELOG.md
50+
51+
- name: Create Release
52+
id: create_release
53+
uses: actions/create-release@v1
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
56+
with:
57+
tag_name: ${{ github.ref }}
58+
release_name: Release ${{ github.ref }}
59+
draft: false
60+
prerelease: false
61+
body_path: ./CHANGELOG.md
62+
63+
- name: Upload Asset
64+
uses: actions/upload-release-asset@v1
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
67+
with:
68+
upload_url: ${{ steps.create_release.outputs.upload_url }}
69+
asset_path: ./source.zip
70+
asset_name: source.zip
71+
asset_content_type: application/zip
72+
73+
- name: Upload SHA256 Checksum
74+
uses: actions/upload-release-asset@v1
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
77+
with:
78+
upload_url: ${{ steps.create_release.outputs.upload_url }}
79+
asset_path: ./source.sha256
80+
asset_name: source.sha256
81+
asset_content_type: text/plain

‎.gitignore‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Composer
2+
composer.phar
3+
*composer.phar
4+
.composer/
5+
/vendor/
6+
7+
# Mac OS X
8+
.DS_Store
9+
*.DS_Store
10+
11+
# Windows
12+
Thumbs.db
13+
Desktop.ini
14+
15+
# Git
16+
.git
17+
TOKEN
18+
19+
# Filetypes
20+
*.cfg
21+
*.log
22+
23+
# Exclude Files
24+
!info.cfg
25+
!routes.cfg
26+
!styles.cfg
27+
!listing.cfg
28+
29+
# Exclude Locales Configurations and Translations
30+
!Locale/*/*.cfg
31+
32+
# Unique Directories
33+
/tmp/
34+
35+
# Custom Module Files
36+
/Definition/

‎AUTHORS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"LaswitchTech"<https://laswitchtech.com/>

‎CODE_OF_CONDUCT.md‎

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Contributor Covenant Code of Conduct
2+
In order to foster a positive and inclusive community, we enforce a Code of Conduct in all of our projects and spaces. We expect all contributors, maintainers, and users to abide by its terms. Please read the full text so that you can understand what actions will and will not be tolerated.
3+
4+
## Our Pledge
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
Examples of behavior that contributes to a positive environment for our community include:
11+
12+
* Demonstrating empathy and kindness toward other people
13+
* Being respectful of differing opinions, viewpoints, and experiences
14+
* Giving and gracefully accepting constructive feedback
15+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
16+
* Focusing on what is best not just for us as individuals, but for the overall community
17+
18+
Examples of unacceptable behavior include:
19+
20+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
21+
* Trolling, insulting or derogatory comments, and personal or political attacks
22+
* Public or private harassment
23+
* Publishing others' private information, such as a physical or email address, without their explicit permission
24+
* Other conduct which could reasonably be considered inappropriate in a professional setting
25+
26+
## Enforcement Responsibilities
27+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
28+
29+
Community leaders 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, and will communicate reasons for moderation decisions when appropriate.
30+
31+
## Scope
32+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
33+
34+
## Enforcement
35+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at report@laswitchtech.com. All complaints will be reviewed and investigated promptly and fairly.
36+
37+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
38+
39+
## Enforcement Guidelines
40+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
41+
42+
### 1. Correction
43+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
44+
45+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
46+
47+
### 2. Warning
48+
**Community Impact**: A violation through a single incident or series of actions.
49+
50+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
51+
52+
### 3. Temporary Ban
53+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
54+
55+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
56+
57+
### 4. Permanent Ban
58+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
59+
60+
**Consequence**: A permanent ban from any sort of public interaction within the community.
61+
62+
## Attribution
63+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
64+
65+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).

0 commit comments

Comments
 (0)