Skip to content
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
merged 105 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
291b311
initi
iruzevic Jan 4, 2024
c572189
adding license
iruzevic Jan 4, 2024
f924a1b
adding license
iruzevic Jan 4, 2024
e8a207d
adding composer fixes
iruzevic Jan 4, 2024
724bbcc
removing files
iruzevic Jan 4, 2024
c2c54b3
updating uploads helper
iruzevic Jan 4, 2024
f372b1a
updating uploads helper
iruzevic Jan 4, 2024
cc4a11a
updating uploads helper
iruzevic Jan 4, 2024
816c21b
updating uploads helper
iruzevic Jan 4, 2024
071fb02
updating uploads helper
iruzevic Jan 5, 2024
626baa0
updating uploads helper
iruzevic Jan 5, 2024
3aaa9fe
updating uploads helper
iruzevic Jan 5, 2024
f4f54db
updating uploads helper
iruzevic Jan 5, 2024
6508440
updating uploads helper
iruzevic Jan 5, 2024
7d6e3e4
updating uploads helper
iruzevic Jan 5, 2024
d1017cc
updating uploads helper
iruzevic Jan 5, 2024
4ca32bb
updating uploads helper
iruzevic Jan 5, 2024
bd3d37c
updating uploads helper
iruzevic Jan 5, 2024
5aeb89c
updating uploads helper
iruzevic Jan 5, 2024
8620c2d
updating uploads helper
iruzevic Jan 5, 2024
e755c53
updating uploads helper
iruzevic Jan 5, 2024
e822be6
updating uploads helper
iruzevic Jan 5, 2024
db471c8
updating uploads helper
iruzevic Jan 5, 2024
409ffe3
updating uploads helper
iruzevic Jan 5, 2024
961da13
updating uploads helper
iruzevic Jan 5, 2024
f597e9e
updating uploads helper
iruzevic Jan 5, 2024
ba09fcc
updating uploads helper
iruzevic Jan 5, 2024
49e0417
updating uploads helper
iruzevic Jan 5, 2024
9450aa7
updating uploads helper
iruzevic Jan 5, 2024
3eedbe5
updating uploads helper
iruzevic Jan 5, 2024
6239e3e
updating uploads helper
iruzevic Jan 8, 2024
8f66dc3
updating uploads helper
iruzevic Jan 8, 2024
90451c7
updating uploads helper
iruzevic Jan 8, 2024
8a382fd
updating uploads helper
iruzevic Jan 8, 2024
88d892a
updating uploads helper
iruzevic Jan 9, 2024
a9e1788
updating uploads helper
iruzevic Jan 10, 2024
0ec57cb
updating uploads helper
iruzevic Jan 10, 2024
45aad75
updating uploads helper
iruzevic Jan 11, 2024
3949aba
updating uploads helper
iruzevic Jan 11, 2024
d1ba08d
updating uploads helper
iruzevic Jan 11, 2024
5300d9e
updating uploads helper
iruzevic Jan 11, 2024
0dec99b
updating uploads helper
iruzevic Jan 11, 2024
479e8bd
updating uploads helper
iruzevic Jan 11, 2024
5c13f22
updating uploads helper
iruzevic Jan 11, 2024
ca0ad12
updating uploads helper
iruzevic Jan 11, 2024
2b2ef8d
updating uploads helper
iruzevic Jan 11, 2024
a21232e
updating uploads helper
iruzevic Jan 11, 2024
9859b73
updating uploads helper
iruzevic Jan 11, 2024
2910211
updating uploads helper
iruzevic Jan 11, 2024
fb555f5
updating uploads helper
iruzevic Jan 11, 2024
e86ff55
updating uploads helper
iruzevic Jan 11, 2024
bebd15e
updating uploads helper
iruzevic Jan 11, 2024
60af2d7
updating uploads helper
iruzevic Jan 11, 2024
85b33d3
updating uploads helper
iruzevic Jan 11, 2024
b612299
updating uploads helper
iruzevic Jan 12, 2024
094a8dd
updating uploads helper
iruzevic Jan 12, 2024
78978d6
updating uploads helper
iruzevic Jan 12, 2024
dcc877c
updating uploads helper
iruzevic Jan 12, 2024
09bc89c
updating uploads helper
iruzevic Jan 12, 2024
26ec6f1
updating uploads helper
iruzevic Jan 12, 2024
5bd3689
updating uploads helper
iruzevic Jan 12, 2024
38b5abb
updating uploads helper
iruzevic Jan 12, 2024
a8d1834
updating uploads helper
iruzevic Jan 12, 2024
a7f0d37
updating block admin enque
iruzevic Jan 15, 2024
1c4cd2c
updating block admin enque
iruzevic Jan 15, 2024
aaa329c
updating block admin enque
iruzevic Jan 15, 2024
bd421c0
updating block admin enque
iruzevic Jan 15, 2024
3ac26f9
updating block admin enque
iruzevic Jan 15, 2024
25beeb3
updating block admin enque
iruzevic Jan 16, 2024
e612e93
updating block admin enque
iruzevic Jan 16, 2024
fe2d331
updating block admin enque
iruzevic Jan 16, 2024
8b66346
updating block admin enque
iruzevic Jan 16, 2024
a319037
updating block admin enque
iruzevic Jan 16, 2024
045e396
updating block admin enque
iruzevic Jan 16, 2024
08f2d64
updating block admin enque
iruzevic Jan 16, 2024
885325c
updating block admin enque
iruzevic Jan 16, 2024
889b8ae
updating block admin enque
iruzevic Jan 16, 2024
5e13ff3
updating block admin enque
iruzevic Jan 16, 2024
8840c33
updating block admin enque
iruzevic Jan 16, 2024
3dc1878
updating block admin enque
iruzevic Jan 17, 2024
ca0959d
updating block admin enque
iruzevic Jan 17, 2024
cc39378
updating block admin enque
iruzevic Jan 17, 2024
06c112d
updating block admin enque
iruzevic Jan 17, 2024
9dcb5cc
updating block admin enque
iruzevic Jan 17, 2024
7a6d073
updating block admin enque
iruzevic Jan 17, 2024
b0a2af5
updating block admin enque
iruzevic Jan 17, 2024
29c3bf5
updating block admin enque
iruzevic Jan 17, 2024
1e2a88e
updating block admin enque
iruzevic Jan 17, 2024
ca51491
updating block admin enque
iruzevic Jan 17, 2024
a6b25b8
updating block admin enque
iruzevic Jan 17, 2024
7799159
updating block admin enque
iruzevic Jan 17, 2024
a1a530e
updating block admin enque
iruzevic Jan 17, 2024
2be732d
updating block admin enque
iruzevic Jan 17, 2024
dd99d88
updating block admin enque
iruzevic Jan 17, 2024
513fb4c
updating block admin enque
iruzevic Jan 17, 2024
4dfc617
updating block admin enque
iruzevic Jan 17, 2024
c12ecb4
updating block admin enque
iruzevic Jan 17, 2024
80333f9
updating block admin enque
iruzevic Jan 18, 2024
37fef76
updating block admin enque
iruzevic Jan 18, 2024
67c8a27
updating block admin enque
iruzevic Jan 18, 2024
b857078
updating block admin enque
iruzevic Jan 18, 2024
5e41b94
updating block admin enque
iruzevic Jan 18, 2024
578f311
updating block admin enque
iruzevic Jan 18, 2024
91e4492
fixing dropzone upload size limit
iruzevic Jan 18, 2024
d20dfac
fixing dropzone upload size limit
iruzevic Jan 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .gitattributes
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@infinum/wordpress-team
17 changes: 17 additions & 0 deletions .github/CONTRIBUTING.md
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.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
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?”
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
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. -->
93 changes: 93 additions & 0 deletions .github/workflows/ci.yml
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Project Specific
/vendor
/.vscode
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/.vscode
/.vscode
# Mac OS custom attribute store and thumbnails
*.DS_Store
._*

11 changes: 11 additions & 0 deletions CHANGELOG.md
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
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
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
21 changes: 21 additions & 0 deletions LICENSE
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.
43 changes: 42 additions & 1 deletion README.md
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.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Eightshift Forms Utils library is a set of helpers and utils that can be used in the main Eightshift Forms plugin or additional Add-ons.

## ⚠️ 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 &copy;2024 [Infinum](https://infinum.com). It is free software, and may be redistributed under the terms specified in the LICENSE file.
Loading
Loading