Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
hueitan committed Oct 26, 2020
1 parent c275196 commit 86779ca
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 95 deletions.
142 changes: 72 additions & 70 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CONTRIBUTING

**Clone the repo to your computer**
```sh
git clone https://github.com/huei90/angular-validation.git
git clone https://github.com/hueitan/angular-validation.git
```

**Install Grunt and Download dependencies**
Expand Down
12 changes: 6 additions & 6 deletions Q&A.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Yes, you can do it by using `validation-group`
<span id="checkBlur"></span>
```

### Can I validate the form when init ? [#10](https://github.com/huei90/angular-validation/issues/10)###
### Can I validate the form when init ? [#10](https://github.com/hueitan/angular-validation/issues/10)###

```html
<form name="Form">
Expand All @@ -36,24 +36,24 @@ $timeout(function () { // call $timeout to make sure the Form Constructor is gen
});
```

### What's the differentiate between validator-method `submit` and `submit-only`[#4](https://github.com/huei90/angular-validation/issues/4)###
### What's the differentiate between validator-method `submit` and `submit-only`[#4](https://github.com/hueitan/angular-validation/issues/4)###

`submit` : when user click submit, then start watching using `watch` to validate<br/>
`submit-only` : when user click `submit`, doesn't validate through `watch` until `submit` button is clicked.

### Use checkValid() manually [#19](https://github.com/huei90/angular-validation/issues/19)###
### Use checkValid() manually [#19](https://github.com/hueitan/angular-validation/issues/19)###

Before using `checkValid()`, you have to execute `submit` first to get the latest result.

### How do we do tooltips for error messages upon focusing? [#68](https://github.com/huei90/angular-validation/issues/68#issuecomment-86445467)
### How do we do tooltips for error messages upon focusing? [#68](https://github.com/hueitan/angular-validation/issues/68#issuecomment-86445467)

Using `validCallback` and `invalidCallback` to implement

### Can this works correctly with AngularUI, ui-select, others ... ?###

Yes, `angular-validation` works perfectly with other directive. (isolation scope). Find out more from the demo page.

### Working with `ng-submit` and submitting with enter, not click [#247](https://github.com/huei90/angular-validation/issues/247)###
### Working with `ng-submit` and submitting with enter, not click [#247](https://github.com/hueitan/angular-validation/issues/247)###

As per plnkr - https://plnkr.co/edit/nwTEuxuTMmpEc4hrFwGp?p=preview

Expand All @@ -66,7 +66,7 @@ Add checkValid and submit into both ng-click and ng-submit
</form>
```

### Can I validate $modelValue instead of a $viewValue? [#272](https://github.com/huei90/angular-validation/pull/272)###
### Can I validate $modelValue instead of a $viewValue? [#272](https://github.com/hueitan/angular-validation/pull/272)###

Yes, adding `use-view-value="false"` attribute forces to use $modelValue instead of a $viewValue for evaluation when form is submitted. By default $viewValue is used. This need raises from a need of localized number inputs, which have to be stored in a $viewValue as a string (e.g. "2 000,0"), however in a $modelValue they are stored as a properly formatted number (2000). This can be done e.g. by using a custom directive with properly specified $formatters and $parsers.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ angular-validation 1.4.4
[![Code Climate](https://codeclimate.com/github/hueitan/angular-validation/badges/gpa.svg)](https://codeclimate.com/github/hueitan/angular-validation)
[![Coverage Status](https://coveralls.io/repos/hueitan/angular-validation/badge.svg?branch=master&service=github)](https://coveralls.io/github/hueitan/angular-validation?branch=master)
[![devDependency Status](https://david-dm.org/hueitan/angular-validation/dev-status.png)](https://david-dm.org/hueitan/angular-validation#info=devDependencies)
[![Gitter chat](https://badges.gitter.im/huei90/angular-validation.png)](https://gitter.im/huei90/angular-validation)
[![Gitter chat](https://badges.gitter.im/hueitan/angular-validation.png)](https://gitter.im/hueitan/angular-validation)

Client-side Validation should be simple and clean.
<br/>Don't let Client-side Validation dirty your controller.
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "angular-validation",
"version": "1.4.4",
"homepage": "https://github.com/huei90/angular-validation",
"homepage": "https://github.com/hueitan/angular-validation",
"authors": [
"huei90"
"hueitan"
],
"description": "Client-side Validation for AngularJS",
"main": "dist/angular-validation.js",
Expand Down
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<meta name="keywords" content="angular","angularjs","validation","angular validation","validator","client-side" />

<meta property="og:title" content="angular-validation" />
<meta property="og:url" content="http://huei90.github.io/angular-validation/" />
<meta property="og:url" content="http://hueitan.github.io/angular-validation/" />
<meta property="og:description" content="Client-side Validation for AngularJS" />
<meta property="og:image" content="//avatars0.githubusercontent.com/u/2560096?v=3&s=460" />

Expand Down Expand Up @@ -57,8 +57,8 @@
<li><a href="#getting_started">Getting started</a></li>
<li><a href="#style_guide">Style guide</a></li>
<li><a href="#examples">Examples</a></li>
<li><a href="https://github.com/huei90/angular-validation/blob/master/API.md" target="_blank">API</a></li>
<li><a href="https://github.com/huei90/angular-validation/issues" target="_blank">Report an issue</a></li>
<li><a href="https://github.com/hueitan/angular-validation/blob/master/API.md" target="_blank">API</a></li>
<li><a href="https://github.com/hueitan/angular-validation/issues" target="_blank">Report an issue</a></li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -266,7 +266,7 @@ <h2>Examples</h2>
<legend>Form (Additions validation)</legend>
<div class="input-group m-b-20" style="width: 50%;">
<input type="text" class="form-control" validator="huei" name="huei" ng-model="form4.huei" placeholder="It's must be 'Huei Tan'" message-id="huei">
<span class="input-group-addon">With <a href="https://github.com/huei90/angular-validation#custom-function-huei" target="_blank">Function</a> </span>
<span class="input-group-addon">With <a href="https://github.com/hueitan/angular-validation#custom-function-huei" target="_blank">Function</a> </span>

</div>
<span id="huei"></span>
Expand All @@ -275,15 +275,15 @@ <h2>Examples</h2>
<input type="text" class="form-control" validator="huei" name="noMsg" ng-model="form4.noMsg" no-validation-message="true" placeholder="It's must be 'Huei Tan'" message-id="noMsg">
<span class="input-group-addon">
<span ng-if="!Form4.noMsg.$valid">type: Huei Tan</span>
<span ng-if="Form4.noMsg.$valid"><a href="https://github.com/huei90/angular-validation#no-validation-message" target="_blank">no-validation-message</a></span>
<span ng-if="Form4.noMsg.$valid"><a href="https://github.com/hueitan/angular-validation#no-validation-message" target="_blank">no-validation-message</a></span>
</span>
</div>

<div class="input-group m-b-20" style="width: 50%;">
<input type="text" class="form-control" validator="huei" name="canChange" huei-error-message="{{ form4.changeErrorMsg }}" ng-model="form4.canChange" placeholder="Type Wrong !!" message-id="canChange">
<span class="input-group-addon">
<span ng-if="!form4.show"><a href="javascript:void(0);" ng-click="form4.changeMsg();form4.show = true;">Change Error Msg</a></span>
<span ng-if="form4.show">Type Again <a href="https://github.com/huei90/angular-validation/blob/master/demo/demo.js#L45" target="_blank">#</a></span>
<span ng-if="form4.show">Type Again <a href="https://github.com/hueitan/angular-validation/blob/master/demo/demo.js#L45" target="_blank">#</a></span>
</span>
</div>
<span id="canChange"></span>
Expand Down Expand Up @@ -445,7 +445,7 @@ <h2>Examples</h2>
</div>
</div>

<a href="https://github.com/huei90/angular-validation" target="_blank"><img src="demo/iconmonstr-github-10-icon-128.png" id="github-link" alt="Fork me on Github"/></a>
<a href="https://github.com/hueitan/angular-validation" target="_blank"><img src="demo/iconmonstr-github-10-icon-128.png" id="github-link" alt="Fork me on Github"/></a>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
Expand All @@ -462,7 +462,7 @@ <h2>Examples</h2>

<script>
((window.gitter = {}).chat = {}).options = {
room: 'huei90/angular-validation'
room: 'hueitan/angular-validation'
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
Expand Down
4 changes: 2 additions & 2 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
var options = {
version: '1.4.4',
where: 'client',
packageName: 'huei90:angular-validation'
packageName: 'hueitan:angular-validation'
};

// meta data
Package.describe({
name: options.packageName,
version: options.version,
summary: 'Client-side Validation for AngularJS',
git: 'https://github.com/huei90/angular-validation',
git: 'https://github.com/hueitan/angular-validation',
documentation: 'README.md'
});

Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@
"description": "Client-side Validation for AngularJS",
"repository": {
"type": "git",
"url": "https://github.com/huei90/angular-validation"
"url": "https://github.com/hueitan/angular-validation"
},
"homepage": "http://huei90.github.io/angular-validation/",
"homepage": "http://hueitan.github.io/angular-validation/",
"scripts": {
"test": "grunt karma",
"build": "grunt build",
"development": "grunt dev"
},
"author": {
"name": "Huei Tan",
"email": "[email protected]",
"url": "https://github.com/huei90"
"url": "https://github.com/hueitan"
},
"license": "MIT",
"keywords": [
Expand All @@ -27,7 +26,7 @@
"client-side"
],
"main": "./dist/angular-validation.js",
"bugs": "https://github.com/huei90/angular-validation/issues",
"bugs": "https://github.com/hueitan/angular-validation/issues",
"devDependencies": {
"babel-core": "^6.7.7",
"babel-loader": "^6.2.4",
Expand Down

0 comments on commit 86779ca

Please sign in to comment.