-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
17 changed files
with
247 additions
and
64 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,14 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isFloat(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(1.1) | ||
</script> |
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
18 changes: 18 additions & 0 deletions
18
nuxt-module/docs/components/content/validators/IsBetween.vue
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,18 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
<FormInput label="Min" type="text" v-model="value2" /> | ||
<FormInput label="Max" type="text" v-model="value3" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isBetween(value, value2, value3) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(1) | ||
const value2 = ref(2) | ||
const value3 = ref(10) | ||
</script> |
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isDate(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(new Date()) | ||
</script> |
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isEven(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(2) | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/validators/IsFunction.vue
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isFunction(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(() => {}) | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/validators/IsInteger.vue
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isInteger(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(1) | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/validators/IsLeapYear.vue
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isLeapYear(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(2020) | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/validators/IsNegative.vue
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isNegative(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(-1) | ||
</script> |
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isNull(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(null) | ||
</script> |
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isOdd(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(1) | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/validators/IsPositive.vue
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isPositive(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(1) | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/validators/IsPrime.vue
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isPrime(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(1) | ||
</script> |
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isTime(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('12:00') | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/validators/IsUndefined.vue
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isUndefined(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(undefined) | ||
</script> |
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 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ isZero(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(0) | ||
</script> |
Oops, something went wrong.