This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
0 parents
commit ba730c9
Showing
50 changed files
with
17,327 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,3 @@ | ||
{ | ||
"presets": ["env"] | ||
} |
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 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[**/*.{config,csproj,dotsettings,feature,fxcop,markdown,md,ncrunch*,ndepend,rb,targets,xml,xsd,json}] | ||
indent_size = 2 | ||
|
||
[**/*.{cs,cshtml,css,html,js,less}] | ||
indent_size = 4 |
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": "@justeat/eslint-config-fozzie" | ||
} |
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,31 @@ | ||
# Set default behaviour, in case users don't have core.autocrlf set. | ||
* text eol=lf | ||
|
||
# Explicitly declare text files we want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.cs text | ||
*.erb text | ||
*.feature text | ||
*.json text | ||
*.markdown text | ||
*.md text | ||
*.rake text | ||
*.rb text | ||
*.sublime-project text | ||
*.tenjin text | ||
*.txt text | ||
*.yml text | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.sln text eol=crlf | ||
*.css text eol=lf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.dll binary | ||
*.exe binary | ||
*.gif binary | ||
*.jpeg binary | ||
*.jpg binary | ||
*.nupkg binary | ||
*.png binary | ||
|
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,14 @@ | ||
# The CODEOWNERS file is used to define individuals or teams that are | ||
# responsible for code in a repository. | ||
|
||
# Code owners are automatically requested for review when someone opens a pull | ||
# request that modifies code that they own. | ||
|
||
# Order is important; the last matching pattern takes the most precedence. | ||
|
||
|
||
# These owners will be the default owners for everything in the repo. | ||
* @justeat/ui-admins | ||
|
||
# When someone opens a pull request that only modifies JS unit test files | ||
#*.test.js @justeat/ui-admins |
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,26 @@ | ||
__*This is the standard PR description template.*__ | ||
|
||
__*Delete the parts of this template that aren’t relevant to the current PR you are submitting – for example, you may not need to amend documentation or testing of the component.*__ | ||
|
||
--- | ||
|
||
_A short description of your PR goes here._ | ||
|
||
## UI Review Checks | ||
|
||
![image](https://user-images.githubusercontent.com/805184/35801356-f756b018-0a63-11e8-8ca4-ec045d43c16c.png) | ||
|
||
- [ ] UI Documentation has been [created|updated] | ||
- [ ] JavaScript Tests have been [created|updated] | ||
- [ ] Module has been tested in Global Documentation | ||
|
||
## Browsers Tested | ||
|
||
- [ ] Chrome | ||
- [ ] Edge | ||
- [ ] Internet Explorer 11 | ||
- [ ] Mobile (i.e. iPhone/Android - please list device) | ||
|
||
### List any other browsers that this PR has been tested in: | ||
|
||
- [View our supported browser list](https://fozzie.just-eat.com/documentation/general/browser-support) |
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,30 @@ | ||
# Include your project-specific ignores in this file | ||
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files | ||
# Find more examples at https://github.com/github/gitignore | ||
|
||
# Dependencies | ||
# - Node modules directory. comment this line to commit them. | ||
node_modules/* | ||
|
||
|
||
# OS or Editor folders | ||
._* | ||
.cache | ||
.DS_Store | ||
.idea | ||
.project | ||
.settings | ||
.tmproj | ||
*.esproj | ||
*.sublime-* | ||
.vscode | ||
nbproject | ||
Thumbs.db | ||
logs | ||
*.log | ||
.yalc | ||
yalc.lock | ||
package-lock.json | ||
|
||
dist/ | ||
coverage |
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 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "6" | ||
- "8" | ||
|
||
cache: yarn | ||
|
||
after_success: | ||
- yarn run test:coveralls |
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,253 @@ | ||
# Changelog | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
|
||
v1.0.0 | ||
------------------------------ | ||
*May 25, 2018* | ||
|
||
### Changed | ||
- v1 project release. | ||
|
||
|
||
v0.18.1 | ||
------------------------------ | ||
*May 25, 2018* | ||
|
||
### Changed | ||
- Updated browser support link. | ||
|
||
|
||
v0.18.0 | ||
------------------------------ | ||
*April 26, 2018* | ||
|
||
### Changed | ||
- Changed logic to only validate on an empty field if it is required. | ||
|
||
|
||
v0.17.1 | ||
------------------------------ | ||
*April 12, 2018* | ||
|
||
### Changed | ||
- Package bump in order to clear out bad npm deployment. | ||
|
||
|
||
v0.17.0 | ||
------------------------------ | ||
*April 12, 2018* | ||
|
||
### Changed | ||
- Use `f-dom` instead of `querySelector` & `querySelectorAll`. | ||
|
||
### Fixed | ||
- Fixed issue where one of the `querySelectorAll` calls had a chained `forEach` function which is not supported in some browsers. | ||
|
||
|
||
v0.16.0 | ||
------------------------------ | ||
*March 26, 2018* | ||
|
||
### Fixed | ||
- Trims the value property for conditionalRequired rule to invalidate a field if it only contains spaces | ||
|
||
|
||
v0.15.0 | ||
------------------------------ | ||
*March 8, 2018* | ||
|
||
### Added | ||
- Improved accessibility by allowing a user to validate the form on pressing enter. | ||
|
||
|
||
v0.14.0 | ||
------------------------------ | ||
*February 23, 2018* | ||
|
||
### Added | ||
- Comments added to each rule definition | ||
|
||
### Fixed | ||
- Fixed instances where the `email`, `minlength` and `maxlength` fields would validate as true when they shouldn't do | ||
- Tests added for the above cases | ||
|
||
|
||
v0.13.0 | ||
------------------------------ | ||
*February 23, 2018* | ||
|
||
### Changed | ||
- Have made it the default behaviour to set the `novalidate` attribute on a form when `f-validate` is initialised on it. This can be overidden if the developer wants to allow the default HTML5 validation to kick in by setting the `enableHTML5Validation` option to true. | ||
- Custom error attributes changed so that they are in the format `data-val-` as they weren't consistent. | ||
- Updated some of the test descriptions on error messages to be a little clearer as to the expected functionality. Re-jigged the ordering as well, so that the default rules come first. | ||
- Snapshots updated with the above changes. | ||
|
||
|
||
v0.12.0 | ||
------------------------------ | ||
*February 19, 2018* | ||
|
||
### Fixed | ||
- Fixed issue with `validateOn` marking form as valid when `blur` event fired due to validating child elements inside groups | ||
- Readme typo | ||
|
||
### Added | ||
- Constant `validationGroup` added that defines the data-attribute for group validation elements | ||
|
||
### Changed | ||
- Pull request image updated | ||
- Updated how validation groups get assigned. Now uses the data-attribute `data-val-group` rather than the class `validation-group` as modules should use attributes for hook definitions. | ||
- Some of the tests updated so that they are a bit clearer in their definition. Stubbed date has changed to 2018 in the tests (as it was a bit confusing testing against a future date) | ||
|
||
|
||
v0.11.0 | ||
------------------------------ | ||
*February 7, 2018* | ||
|
||
### Added | ||
- Migrated 'conditionalRequired' rule from other project | ||
|
||
|
||
v0.10.0 | ||
------------------------------ | ||
*February 6, 2018* | ||
|
||
### Added | ||
- Allow user to specify location of error message per field | ||
|
||
### Changed | ||
- Only validate fields on blur/keyup if they are not empty | ||
- dateInFuture: Only validating fields when they have both been interacted with | ||
- dateInFuture: Allowing current year/month to be valid | ||
|
||
|
||
v0.9.0 | ||
------------------------------ | ||
*January 30, 2018* | ||
|
||
### Added | ||
- Browserslist added | ||
|
||
### Changed | ||
- Package update for `gulp-build-fozzie` | ||
- Updating the babel config | ||
|
||
### Fixed | ||
- Fixed test warning for js-dom on `submit` (as it doesn't handle submit events) | ||
|
||
|
||
v0.8.2 | ||
------------------------------ | ||
*January 26, 2018* | ||
|
||
### Added | ||
- Added "files" property to `package.json` so that only the `dist` directory is published to npm. | ||
|
||
|
||
v0.8.1 | ||
------------------------------ | ||
*January 26, 2018* | ||
|
||
### Removed | ||
- Unnecessary space from import | ||
|
||
v0.8.0 | ||
------------------------------ | ||
*January 24, 2018* | ||
|
||
### Added | ||
- Ability to validate on 'blur' or 'keyup' | ||
- Migrated 'dateinfuture' rule from other project | ||
- Explicitly restrict an implementation where you're able to both group messages and validate on blur/keyup | ||
|
||
v0.7.0 | ||
------------------------------ | ||
*January 19, 2018* | ||
|
||
### Added | ||
- Default error message to each rule | ||
- Logic to display and hide default error messages | ||
- Logic to display and hide custom error messages | ||
- Ability to group messages together either at the top/bottom of form | ||
|
||
### Changed | ||
- Moved classes into constants file | ||
|
||
v0.6.1 | ||
------------------------------ | ||
*January 14, 2018* | ||
|
||
### Changed | ||
- Split rule definitions and associated unit tests into separate files. | ||
- Updated some of the unit test descriptions. | ||
|
||
### Removed | ||
- Unnecessary eslint disable line comments. | ||
|
||
|
||
v0.6.0 | ||
------------------------------ | ||
*January 11, 2018* | ||
|
||
### Added | ||
- Callback handlers for success and error events. | ||
- Separate callback.js file added to manage callback addition and running. | ||
|
||
|
||
v0.5.0 | ||
------------------------------ | ||
*December 20, 2017* | ||
|
||
### Added | ||
- Added JS unit test utility module. | ||
|
||
### Changed | ||
- Using JS unit test utility module in unit test files. | ||
|
||
|
||
v0.4.0 | ||
------------------------------ | ||
*December 20, 2017* | ||
|
||
### Added | ||
- Using `concurrently` to run npm tasks concurrently...! | ||
|
||
### Changed | ||
- Main file pointed at dist directory. | ||
- Fixed ESlint issues. | ||
- Changed custom validation rule so that it throws an error rather than logs to the console. | ||
- Tidied up Travis config. | ||
|
||
### Removed | ||
- Removed placeholder readmes. | ||
|
||
|
||
v0.3.0 | ||
------------------------------ | ||
*December 19, 2017* | ||
|
||
### Added | ||
- Removed inputs with certain attributes from being validated. | ||
|
||
### Changed | ||
- Prevented the last rule on a field from overwriting previous state. | ||
- Binding isValid method to submit. | ||
|
||
|
||
v0.2.0 | ||
------------------------------ | ||
*December 19, 2017* | ||
|
||
### Added | ||
- Added base rules JSON and conditions/tests. | ||
|
||
|
||
v0.1.0 | ||
------------------------------ | ||
*December 12, 2017* | ||
|
||
### Added | ||
- Initial setup of component template. |
Oops, something went wrong.