-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Init #1
Merged
Init #1
Changes from all commits
Commits
Show all changes
105 commits
Select commit
Hold shift + click to select a range
291b311
initi
iruzevic c572189
adding license
iruzevic f924a1b
adding license
iruzevic e8a207d
adding composer fixes
iruzevic 724bbcc
removing files
iruzevic c2c54b3
updating uploads helper
iruzevic f372b1a
updating uploads helper
iruzevic cc4a11a
updating uploads helper
iruzevic 816c21b
updating uploads helper
iruzevic 071fb02
updating uploads helper
iruzevic 626baa0
updating uploads helper
iruzevic 3aaa9fe
updating uploads helper
iruzevic f4f54db
updating uploads helper
iruzevic 6508440
updating uploads helper
iruzevic 7d6e3e4
updating uploads helper
iruzevic d1017cc
updating uploads helper
iruzevic 4ca32bb
updating uploads helper
iruzevic bd3d37c
updating uploads helper
iruzevic 5aeb89c
updating uploads helper
iruzevic 8620c2d
updating uploads helper
iruzevic e755c53
updating uploads helper
iruzevic e822be6
updating uploads helper
iruzevic db471c8
updating uploads helper
iruzevic 409ffe3
updating uploads helper
iruzevic 961da13
updating uploads helper
iruzevic f597e9e
updating uploads helper
iruzevic ba09fcc
updating uploads helper
iruzevic 49e0417
updating uploads helper
iruzevic 9450aa7
updating uploads helper
iruzevic 3eedbe5
updating uploads helper
iruzevic 6239e3e
updating uploads helper
iruzevic 8f66dc3
updating uploads helper
iruzevic 90451c7
updating uploads helper
iruzevic 8a382fd
updating uploads helper
iruzevic 88d892a
updating uploads helper
iruzevic a9e1788
updating uploads helper
iruzevic 0ec57cb
updating uploads helper
iruzevic 45aad75
updating uploads helper
iruzevic 3949aba
updating uploads helper
iruzevic d1ba08d
updating uploads helper
iruzevic 5300d9e
updating uploads helper
iruzevic 0dec99b
updating uploads helper
iruzevic 479e8bd
updating uploads helper
iruzevic 5c13f22
updating uploads helper
iruzevic ca0ad12
updating uploads helper
iruzevic 2b2ef8d
updating uploads helper
iruzevic a21232e
updating uploads helper
iruzevic 9859b73
updating uploads helper
iruzevic 2910211
updating uploads helper
iruzevic fb555f5
updating uploads helper
iruzevic e86ff55
updating uploads helper
iruzevic bebd15e
updating uploads helper
iruzevic 60af2d7
updating uploads helper
iruzevic 85b33d3
updating uploads helper
iruzevic b612299
updating uploads helper
iruzevic 094a8dd
updating uploads helper
iruzevic 78978d6
updating uploads helper
iruzevic dcc877c
updating uploads helper
iruzevic 09bc89c
updating uploads helper
iruzevic 26ec6f1
updating uploads helper
iruzevic 5bd3689
updating uploads helper
iruzevic 38b5abb
updating uploads helper
iruzevic a8d1834
updating uploads helper
iruzevic a7f0d37
updating block admin enque
iruzevic 1c4cd2c
updating block admin enque
iruzevic aaa329c
updating block admin enque
iruzevic bd421c0
updating block admin enque
iruzevic 3ac26f9
updating block admin enque
iruzevic 25beeb3
updating block admin enque
iruzevic e612e93
updating block admin enque
iruzevic fe2d331
updating block admin enque
iruzevic 8b66346
updating block admin enque
iruzevic a319037
updating block admin enque
iruzevic 045e396
updating block admin enque
iruzevic 08f2d64
updating block admin enque
iruzevic 885325c
updating block admin enque
iruzevic 889b8ae
updating block admin enque
iruzevic 5e13ff3
updating block admin enque
iruzevic 8840c33
updating block admin enque
iruzevic 3dc1878
updating block admin enque
iruzevic ca0959d
updating block admin enque
iruzevic cc39378
updating block admin enque
iruzevic 06c112d
updating block admin enque
iruzevic 9dcb5cc
updating block admin enque
iruzevic 7a6d073
updating block admin enque
iruzevic b0a2af5
updating block admin enque
iruzevic 29c3bf5
updating block admin enque
iruzevic 1e2a88e
updating block admin enque
iruzevic ca51491
updating block admin enque
iruzevic a6b25b8
updating block admin enque
iruzevic 7799159
updating block admin enque
iruzevic a1a530e
updating block admin enque
iruzevic 2be732d
updating block admin enque
iruzevic dd99d88
updating block admin enque
iruzevic 513fb4c
updating block admin enque
iruzevic 4dfc617
updating block admin enque
iruzevic c12ecb4
updating block admin enque
iruzevic 80333f9
updating block admin enque
iruzevic 37fef76
updating block admin enque
iruzevic 67c8a27
updating block admin enque
iruzevic b857078
updating block admin enque
iruzevic 5e41b94
updating block admin enque
iruzevic 578f311
updating block admin enque
iruzevic 91e4492
fixing dropzone upload size limit
iruzevic d20dfac
fixing dropzone upload size limit
iruzevic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,29 @@ | ||
# | ||
# Exclude these files from release archives. | ||
# This will also make them unavailable when using Composer with `--prefer-dist`. | ||
# https://blog.madewithlove.be/post/gitattributes/ | ||
# | ||
/.git export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/phpcs.xml.dist export-ignore | ||
/phpstan.neon export-ignore | ||
/phpstan.neon.dist export-ignore | ||
/CODE_OF_CONDUCT.md export-ignore | ||
|
||
composer.lock -diff | ||
yarn.lock -diff | ||
package.lock -diff | ||
|
||
# | ||
# Auto-detect text files and perform LF normalization | ||
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/ | ||
# | ||
* text=auto | ||
|
||
# | ||
# The above will handle all files NOT found below | ||
# | ||
*.md text | ||
*.php text | ||
*.inc text |
Validating CODEOWNERS rules …
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 @@ | ||
@infinum/wordpress-team |
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,17 @@ | ||
Hi there! Thanks for helping out in improving our Eightshift Forms Utils library. | ||
|
||
## Reporting an issue | ||
|
||
If you are not sure how something works be sure to read our [documentation](https://eightshift.com/). If you found a bug in the code, please [open an issue](https://github.com/infinum/eightshift-forms/issues) and follow the instructions in the issue template. | ||
|
||
## Contributing patches and new features | ||
|
||
If you found a bug and want to fix it, or you want to add some new and cool feature, [fork](https://github.com/infinum/eightshift-forms) our repository, then create a `feature` branch from the `main` branch. For instance `feature/some-bug-fix` or `feature/some-cool-new-feature`. | ||
|
||
Once you've coded things up, be sure you check that your code is following our [coding standards](https://github.com/infinum/eightshift-coding-standards). Also test that your code isn't breaking anything :) | ||
|
||
Then submit a pull request to `develop` branch. Once we check everything we'll merge the changes into `main` with correct version correction (noted by the milestone flag and `future release` tag). | ||
|
||
## Integration testing | ||
|
||
If you want to create integration tests for your code that would be great. We will add some in due time, and they are not necessary for a PR. |
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: Bug report | ||
about: Create a report to help us improve | ||
title: "[BUG] - " | ||
labels: bug | ||
assignees: iruzevic | ||
|
||
--- | ||
|
||
Thank you for your interest in our project! If you've encountered a bug, please provide a link to a live example or a clear set of steps to reproduce it. It would also be helpful to include any relevant code or screenshots. |
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: Feature request | ||
about: Suggest an idea for this project | ||
title: "[FEATURE] - " | ||
labels: feature request | ||
assignees: iruzevic | ||
|
||
--- | ||
|
||
Thank you for your interest in our project! We value your ideas and feedback. Please provide detailed information regarding your feature request. |
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 us a question | ||
title: "[QUESTION] - " | ||
labels: question | ||
assignees: iruzevic | ||
|
||
--- | ||
|
||
Thank you for showing interest in our project. Please feel free to ask us any questions you may have. To help us assist you better, please provide a clear and concise question. For example, "How do I make this happen?” |
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 @@ | ||
# Description | ||
|
||
<!--- Write in detail what you did and what issue did you fix with this PR. --> | ||
|
||
# Screenshots / Videos | ||
|
||
<!--- Show us what you did. --> | ||
|
||
# Linked documentation PR | ||
|
||
<!--- If this PR has documentation please put the link here. --> |
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,93 @@ | ||
name: Continuous integration checks | ||
|
||
on: | ||
# Run on PRs and pushes, only on significant changes. | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
|
||
# Prevent multiple unnecessary CI runs on the same branch. | ||
# Link: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
phpcs: | ||
name: PHPCS check on PHP ${{ matrix.php }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [ '7.4' ] | ||
|
||
steps: | ||
# Checkout repository | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Setup PHP versions, run checks | ||
- name: PHP setup | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
tools: cs2pr | ||
env: | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Install dependencies and handle caching in one go. | ||
# @link https://github.com/marketplace/actions/install-composer-dependencies | ||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: highest | ||
ignore-cache: "yes" | ||
|
||
- name: Check coding standards using PHPCS | ||
continue-on-error: true | ||
run: composer test:standards -- --runtime-set testVersion ${{ matrix.php }}- --report-full --report-checkstyle=./phpcs-report.xml | ||
|
||
- name: Show PHPCS results in PR | ||
run: cs2pr ./phpcs-report.xml | ||
|
||
phpstan: | ||
name: PHPStan check | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.allowed_failure }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [ '7.4' ] | ||
allowed_failure: [ true ] | ||
|
||
steps: | ||
# Checkout repository | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Setup PHP versions, run checks | ||
- name: PHP setup | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
env: | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Install dependencies and handle caching in one go. | ||
# @link https://github.com/marketplace/actions/install-composer-dependencies | ||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: highest | ||
ignore-cache: "yes" | ||
|
||
- name: Check code consistency using PHPStan | ||
run: composer test:types |
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 @@ | ||
# Project Specific | ||
/vendor | ||
/.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,11 @@ | ||
|
||
# Change Log for the Eightshift Forms Utils library | ||
All notable changes to this project will be documented in this file. | ||
|
||
This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/). | ||
|
||
## [1.0.0] | ||
|
||
- Initial production release. | ||
|
||
[1.0.0]: https://github.com/infinum/eightshift-forms/releases/tag/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,76 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, 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. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
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, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Eightshift | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 | ||||
---|---|---|---|---|---|---|
@@ -1 +1,42 @@ | ||||||
# eightshift-forms-utils | ||||||
![image](https://repository-images.githubusercontent.com/204961525/1788eeba-8046-47bf-b315-32b060db1c8e) | ||||||
|
||||||
[![GitHub tag](https://img.shields.io/github/tag/infinum/eightshift-forms-utils.svg?style=for-the-badge)](https://github.com/infinum/eightshift-forms-utils) | ||||||
[![GitHub stars](https://img.shields.io/github/stars/infinum/eightshift-forms-utils.svg?style=for-the-badge&label=Stars)](https://github.com/infinum/eightshift-forms-utils) | ||||||
[![license](https://img.shields.io/github/license/infinum/eightshift-forms-utils.svg?style=for-the-badge)](https://github.com/infinum/eightshift-forms-utils) | ||||||
[![codecov](https://img.shields.io/codecov/c/gh/infinum/eightshift-forms-utils/branch/develop?label=Codecov&style=for-the-badge&token=02Lfa2jjoK)](https://codecov.io/gh/infinum/eightshift-forms-utils) | ||||||
|
||||||
# Eightshift Forms Utils Library | ||||||
|
||||||
Eightshift Forms Utils library is a set of helpers and utils that can be used in the main Eightshift Forms plugin or additional Add-on plugins. | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
## ⚠️ Requirements | ||||||
To get started, you'll need: | ||||||
|
||||||
* [Composer](https://getcomposer.org/) | ||||||
* [git](https://git-scm.com/) | ||||||
* [WP-CLI](https://wp-cli.org/) | ||||||
|
||||||
## 🏁 Quick start | ||||||
|
||||||
Clone the project + build to get started: | ||||||
|
||||||
1. `git clone [email protected]:infinum/eightshift-forms-utils.git` | ||||||
2. `composer install` | ||||||
|
||||||
## 📚 Documentation | ||||||
|
||||||
Eightshift forms documentation is located [here](docs/README.md). | ||||||
|
||||||
Eightshift forms plugin is created on the [Eightshift development kit](https://eightshift.com). | ||||||
|
||||||
## 🛟 Getting help | ||||||
|
||||||
If you have any questions or problems, please [open an issue](https://github.com/infinum/eightshift-forms/issues) on GitHub. | ||||||
|
||||||
When submitting issues or otherwise participating in development, please follow our [code of conduct](https://github.com/infinum/eightshift-forms/blob/develop/CODE_OF_CONDUCT.md), and fill out the issue template properly. We'll do our best to answer your issues as quickly as humanly possible: following these steps helps us out a lot in doing that. | ||||||
|
||||||
## 👩💻 Maintainers 🧑💻 | ||||||
Eightshift Forms is maintained and sponsored by [Infinum](https://infinum.com). | ||||||
|
||||||
## ⚖️ License | ||||||
Eightshift Forms ©2024 [Infinum](https://infinum.com). It is free software, and may be redistributed under the terms specified in the LICENSE file. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.