Skip to content

Commit b5b4f50

Browse files
author
Jess Divers
committed
chore: refactor to remove deprecated component
1 parent e25ca41 commit b5b4f50

File tree

3 files changed

+44
-11
lines changed

3 files changed

+44
-11
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"nuxt-graphql-request": "^7.0.5",
4343
"sass": "^1.66.1",
4444
"ucla-library-design-tokens": "^5.28.0",
45-
"ucla-library-website-components": "3.46.1"
45+
"ucla-library-website-components": "3.47.0"
4646
},
4747
"engines": {
4848
"pnpm": "^9.12.1"
4949
}
50-
}
50+
}

pages/collections/la-rebellion/filmmakers/[slug].vue

+37-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// COMPONENT RE-IMPORTS
33
// TODO: remove when we have implemented component library as a module
44
// https://nuxt.com/docs/guide/directory-structure/components#library-authors
5-
import { BlockTag, ButtonDropdown, CardMeta, FlexibleMediaGalleryNewLightbox, NavBreadcrumb, ResponsiveImage, RichText, SectionStaffSubjectLibrarian, SectionWrapper, TwoColLayoutWStickySideBar } from 'ucla-library-website-components'
5+
import { BlockTag, ButtonDropdown, CardMeta, FlexibleMediaGalleryNewLightbox, NavBreadcrumb, ResponsiveImage, RichText, SectionWrapper, SmartLink, TableComponent, TableRow, TwoColLayoutWStickySideBar } from 'ucla-library-website-components'
66
77
// HELPERS
88
import _get from 'lodash/get'
@@ -187,10 +187,43 @@ useHead({
187187
theme="paleblue"
188188
class="filmography-section-wrapper"
189189
>
190-
<section-staff-subject-librarian
191-
:items="page.associatedFilms"
190+
<TableComponent
192191
:table-headers="['', 'Film', 'Role', 'Year']"
193-
/>
192+
:table-caption="'Filmography'"
193+
>
194+
<TableRow
195+
v-for="item, index in parsedAssociatedFilms"
196+
:key="index"
197+
:num-cells="4"
198+
>
199+
<template #column1>
200+
<div class="responsive-image">
201+
<ResponsiveImage :media="item.image[0]" />
202+
</div>
203+
</template>
204+
<template #column2>
205+
<h1>
206+
<SmartLink
207+
class="film-title"
208+
:to="item.filmLink[0].uri"
209+
>
210+
{{ item.titleGeneral }}
211+
</SmartLink>
212+
</h1>
213+
<RichText :rich-text-content="item.description" />
214+
</template>
215+
<template #column3>
216+
<p class="subtitle">
217+
{{ item.roles }}
218+
</p>
219+
</template>
220+
<template #column4>
221+
<p class="subtitle">
222+
{{ item.year }}
223+
</p>
224+
</template>
225+
</TableRow>
226+
</TableComponent>
194227
</SectionWrapper>
195228
</main>
196229
</template>

pnpm-lock.yaml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)