Skip to content

Commit

Permalink
add directus-format-title package
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Aug 7, 2024
1 parent 2860ef9 commit 2022999
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"devDependencies": {
"@directus/sdk": "16.1.1",
"@directus/format-title": "^11.0.0",
"@formkit/auto-animate": "0.8.2",
"@nuxt/devtools": "1.0.8",
"@nuxt/image": "1.3.0",
Expand Down
3 changes: 2 additions & 1 deletion pages/agency-directory/[slug].vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { formatTitle } from '@directus/format-title'

Check failure on line 2 in pages/agency-directory/[slug].vue

View workflow job for this annotation

GitHub Actions / Lint

Insert `;`
import type { Project } from '~/types/schema';
const { $directus, $readItems } = useNuxtApp();
Expand Down Expand Up @@ -244,7 +245,7 @@ useSchemaOrg([
<dd>
<ul>
<li v-for="(specialty, spIdx) in partner?.specializations" :key="spIdx">
{{ toTitleCase(specialty) }}
{{ formatTitle(specialty) }}
</li>
</ul>
</dd>
Expand Down
3 changes: 2 additions & 1 deletion pages/built-with-directus/[slug].vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { formatTitle } from '@directus/format-title';
import type { AgencyPartner, Project, ProjectFile } from '~/types/schema';
const { $directus, $readItems } = useNuxtApp();
Expand Down Expand Up @@ -236,7 +237,7 @@ useSchemaOrg([
<dd>
<ul>
<li v-for="(item, itemIdx) in project?.built_with" :key="itemIdx">
{{ toTitleCase(item) }}
{{ formatTitle(item) }}
</li>
</ul>
</dd>
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions utils/titleCase.ts

This file was deleted.

0 comments on commit 2022999

Please sign in to comment.