-
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
15 changed files
with
250 additions
and
44 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,16 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
<FormInput label="End" type="text" v-model="start" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ endWith(value, start) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('https://usemods') | ||
const start = ref('.com') | ||
</script> |
16 changes: 16 additions & 0 deletions
16
nuxt-module/docs/components/content/modifiers/EndWithout.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,16 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
<FormInput label="End" type="text" v-model="start" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ endWithout(value, start) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('https://usemods.com/rocks') | ||
const start = ref('rocks') | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/modifiers/EscapeHtml.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> | ||
{{ escapeHtml(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('<p>Hello World</p>') | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/modifiers/Ordinalize.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> | ||
<FormNumber label="Value" v-model="value" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ ordinalize(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref(1) | ||
</script> |
16 changes: 16 additions & 0 deletions
16
nuxt-module/docs/components/content/modifiers/Pluralize.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,16 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
<FormNumber label="Count" v-model.number="count" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ pluralize(value, count) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('scooter') | ||
const count = ref(1) | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/modifiers/SplitByWords.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> | ||
{{ splitByWords(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('Scooters are the future') | ||
</script> |
16 changes: 16 additions & 0 deletions
16
nuxt-module/docs/components/content/modifiers/StartWith.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,16 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
<FormInput label="Start" type="text" v-model="start" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ startWith(value, start) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('usemods.com') | ||
const start = ref('https://') | ||
</script> |
16 changes: 16 additions & 0 deletions
16
nuxt-module/docs/components/content/modifiers/StartWithout.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,16 @@ | ||
<template> | ||
<Example> | ||
<ExampleInputs> | ||
<FormInput label="Value" type="text" v-model="value" /> | ||
<FormInput label="Start" type="text" v-model="start" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ startWithout(value, start) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('https://usemods.com') | ||
const start = ref('https://') | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/modifiers/UnescapeHtml.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> | ||
{{ unescapeHtml(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('<p>Hello World</p>') | ||
</script> |
14 changes: 14 additions & 0 deletions
14
nuxt-module/docs/components/content/modifiers/deslugify.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> | ||
{{ deslugify(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('scooters-are-the-future') | ||
</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> | ||
{{ slugify(value) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('Scooters are the future') | ||
</script> |
18 changes: 18 additions & 0 deletions
18
nuxt-module/docs/components/content/modifiers/surroundWith.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="Start" type="text" v-model="start" /> | ||
<FormInput label="End" type="text" v-model="end" /> | ||
</ExampleInputs> | ||
<ExampleResult> | ||
{{ surroundWith(value, start, end) }} | ||
</ExampleResult> | ||
</Example> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const value = ref('usemods') | ||
const start = ref('https://') | ||
const end = ref('.com') | ||
</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
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
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